Each PRU has a CYCLE register which counts the number of cycles since the 
PRU was enabled. They also have a STALL register that counts how many times 
the PRU stalled fetching an instruction.

I've have some notes[1] about them in the PRU Cookbook.

--Mark

[1] 
https://markayoder.github.io/PRUCookbook/07more/more.html#_using_the_built_in_counter_for_timing

On Sunday, July 14, 2019 at 2:59:41 PM UTC-4, Anton Nikiforov wrote:
>
> Hi,
>
> I making some DMA examples with connection between PRU and ARM. 
>
> So I need to measure the time between two PRU code commands.
>
> The simplest way to do it on the ARM side is using library *time* or 
> something like that.
>
> Are there some software method to do the same on the PRU side?
>

-- 
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/3b7cf5e0-77b0-473d-8ef1-302a7c7268bd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to