hello:
Actually test the execution time of each statement so slowly. My sys clk is 200MHZ.
for example:
void delay_rotor(UInt8 cycles)
{
while(cycles--);
}
when cycles=1, this code need about 5us.
I don't know why!
thanks !
Hello,
Actually test the execution time of each statement so slowly. My sys clk is 200MHZ.
How do you measure execution time? Are you tracing instructions? or with scope or some timer?
I am not able to tell you where is the issue from your description. Could you be more specific please?
regards,
Peter
HELLO:
I test the gpio