Altera_Forum
Honored Contributor
15 years agosleep vs hardware condition SW problem.
hello, I have a problem I am not sure how to tackle. I have a niosII system with some custom HW blocks around it. One of them generates a PID locked indication signal.
I would like to have the nios wait for this line to come high or sleep for 40ms whichever happens first. I am running microC-OSII. I would like to let the processor run other tasks while it waits for this hardware line to go high or for the timer to expire. Is there an elegant way to achieve this without polling the line and hogging the CPU?