On Thursday, May 25, 2017 at 10:01:40 AM UTC-5, M Pitman wrote:
>
>
> If anyone can shed any light on what I'm seeing with the __delay_cycles 
> command I would be interested in hearing about it.  Thanks.
>

Program the PRUs in assembly, especially if you want single cycle
accuracy.

...or at least provide us the assembly listing for the C code, as well
as the entire C program.  There are lots of things that can be
happening behind the scenes since you're using C.

On the MPS-430, for example, the __delay_cycles() routine actually
turns off most of the processor (to save power) and wakes it back up
after the delay expires, which could obviously cause unexpected
behavior if you didn't realize that's what it was doing.  I don't use
C compiler so I'm not sure how this routine is implemented for the 

PRU, but it probably isn't a simple noop loop like you might expect. 

-- 
Charles [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/afd7ba5d-929b-446e-92f8-4860ab0dbca0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to