Timer-counter interruptions ATmega8 | Microcontrollers from scratch #15

Опубликовано: 18 Май 2026
на канале: Dmitriy Zabarilo
42,457
955

Interrupts from the timer-counter of the microcontroller can be caused both at overflow of the counter, and at coincidence with the value written down in the register register TCNTx. The use of timer-count interrupts allows you to avoid the use of delays connected by the library delay.h, and thus unload the microcontroller. Settings and connection are made by setting the corresponding bits in the TIMSK register.