Hi, all. For TMS570LS1224, how could I delay the microcontroller for some micro seconds? Just like "sleep()" in PC's multithread programming?
And by the way, is this microcontroller multithread or single thread?
Thanks for help.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi, all. For TMS570LS1224, how could I delay the microcontroller for some micro seconds? Just like "sleep()" in PC's multithread programming?
And by the way, is this microcontroller multithread or single thread?
Thanks for help.
Hi, Chuck,
I mean, for example, if I use GIO protocol, I set a pin to 5V, then, I want to keep 5V for 2 seconds, and then, back to 0V. The problem of writing a loop is that, I cannot have the relatively correct " 2 seconds ". I do not know the number of iterations could make the CPU to delay for 2 s. In Arduino, I see they have such delay(int timeInterval) function.
For low power modes, I am not sure, but I think it is too complex. I just want to simply delay the execution of program for a little time.
Thanks.