Wissen/umka
hi!
void SetupTIMER0 (void) { TCCR1B = (1<<CS00); TCNT1 = 255-50; //что бы сделать импульс 80000Гц TIMSK = (1<<TOIE0); } #include <avr/interrupt.h> #include <avr/io.h> .. ISR (TIMER0_OVF_vect) { //теперь прерывание будет происходить через 160кгц // таймера 0 TCNT1 = 65536-62439; }
Public repository record indexed from GitHub. Explore verified star velocity metrics, source code repositories, and curated developer tool directories across the GitHubRepo ecosystem.
hi!