Is it possible to use two timers for one interrupt vector on avr?

Published: 5/10/2017
Is it possible to use two timers for one interrupt vector on avr?
Source: ELECTRONICS.STACKEXCHANGE.COM

I want to use timer1 and timer2 for same vector TIMER#_COMPA_vect isr on atmega328p. Idea is to start and stop one when requested, for time sensitive functions. And to keep another running always for clock time keeping. When initializing both timers, they don't work. Whereas they do when initializing separately. Timer2 void timer2CtcInit(void){ //Timer 2 interrupt service routine CTC settings, 1

Read more
Related news
Comment