Software time measurment between different PRU commands

86 views
Skip to first unread message

Anton Nikiforov

unread,
Jul 14, 2019, 2:59:41 PM7/14/19
to BeagleBoard
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?

Mark A. Yoder

unread,
Jul 15, 2019, 10:33:45 AM7/15/19
to BeagleBoard
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

Giulio Moro

unread,
Aug 20, 2019, 5:58:56 PM8/20/19
to BeagleBoard
It may not be exactly what you want, but, for quick measurements, I tend to toggle a bit on R30 and use an oscilloscope connected to the corresponding pin.
Reply all
Reply to author
Forward
0 new messages