Forum Discussion
Altera_Forum
Honored Contributor
12 years agoYes it is a common way to do it. You have a status bit, either a "busy" or "running" bit that is 1 as long as the component is performing the tast, or a "done" bit that is 0 when processing and 1 when the task is finished. The CPU regularly reads that bit and waits until it changes to the regular value. This is called "polling".
If the task is long and you would like the CPU to do something else in the mean time and be warned as soon as the task is finished, you can also use an interrupt.