Time Since Event From A Master Timer

An Example Using A Master Roll Over Timer To Get Time Since Last Event //—– DO IN 1mS HEARTBEAT TIMER —– main_1ms_clock_timer_irq++; //—– USING THE TIMER —– unsigned long main_1ms_clock_timer_irq; unsigned long main_1ms_clock_timer; unsigned long process_last_time; unsigned long process_1ms_time_since_last; //Create a local copy of the timer (which won't change in the interrupt when being used […]

Read More