I wrote a small piece of code that allows the creation of multiple independent and concurrent software timers from one hardware time base: https://dannyelectronics.wordpress.com/2016/11/18/a-generic-software-timer/
here is a shot of 3 software timers running independently off TIMER0 of a 12F675.
It is highly modular and portable to pretty much any MCU that has at least 1 hardware timer.
here is a shot of 3 software timers running independently off TIMER0 of a 12F675.
It is highly modular and portable to pretty much any MCU that has at least 1 hardware timer.