On 12/7/2018 11:16 AM, alanmthomason via BeagleBoard wrote: > I use the BeagleBone Black PRU for a very time critical task. I currently > have registers that increment based on how many instructions I have just > run and their type (SBBO's for instance take more than the usual 1 clock > cycle per instruction) so that I can keep track of time. I have seen > somewhere that you can reset and read an internal clock on the BBB PRUs, > but I just can't seem to find that again. > > Has anyone used this feature, and if so can you guide me on how to go about > reading and resetting?
There's the Industrial Ethernet Peripheral, mentioned by Bill which includes support for 8 timers. In addition, there is an ECAP module within the PRU fabric (separate from the other BBB ECAP timer modules). But I think you may be thinking of the Cycle/Stall registers. You can enable the cycle count register in the Ctrl register (CTR_EN bit), and you can clear the cycle count when the counter is disabled, if desired. -- Charles Steinkuehler [email protected] -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/47b45a80-72b1-65a1-6eb1-f6db633c69f6%40steinkuehler.net. For more options, visit https://groups.google.com/d/optout.
