Resuming properly from interrupts.

Technical questions regarding the XTC tools and programming with XMOS.
User avatar
dave
Member++
Posts: 31
Joined: Thu Dec 10, 2009 10:11 pm

Post by dave »

When an event occurs, the waiting thread is re-started and a special no-op (event no-op) is issued. This sets the PC to the vector supplied by the selected resource and fetches the instruction(s) using the new PC.

In fast mode the thread will be continually executing the wait until a resource is found to be ready. This will then be immediately followed by an event no-op.

Interrupts are similar.