https://bevice.ru/posts/104.html
AVR использование таймеров ( ATMega8 TIMER0)