hi all, i have been scratching my head thinking of how to avoid pbp pause in my routines bcos the command;
1) seems to change system registers (correct me if i'm wrong),
2) is the main cause of many problems i have had with ISR's in the past
3) is blocking, i dont want to waste cycles
i have been trying to make sense of the previous posts in this thread. pls can someone help with a robust snippet.
i think of a delay based on an interrupt timer that serves as the heartbeat with a resolution of say 1us. in the isr, multiple regs (each loaded when needed from various routines) are decremented to act as counters, when anyone hits zero a corresponding flag is set etc...
am i making any sense? i think this is simillar to how some rtos work. is there a better way?




Bookmarks