So, will the following work?
- Have a list of "things" to do at certain time intervals (T1, T2, ...Tn).
- Have a main infinite loop running along, interpreting commands it may get in a buffer unrelated to the list.
- A TIMER is setup to interrupt at T1. Then the INT handler sets a new T2 and restarts the timer. This operation would continue to Tn based on the list.
- The TIMER interrupt must always have the same overhead, so it can have the same number of clock cycles.
Is this possible?