|
Re: sleep()
Although there are easy ways to make the processor "pause" or "wait" as described above, they are probably not the best way to implement this function on the IFI Controller. The Master processor expects to receive a data packet from the user processor every 26.2ms.
This means you cannot pause the controller for longer than 26.2ms at a time and still have the control system function.
The best bet is to increment a counter every time a new data packet is received from the master processor. If you need finer control than that, use a timer interrupt.
|