Timer1 interrupt exactly one second on 16 Mhz - Arduino Forum
Hi, Iam little confused with Timer1 and prescalers etc. What I need is to setup a Timer which execute a function every one second (exactly one second) ISR(TIMER1_OVF_vect) I have a Atmega2560 16 Mhz. . Can someone explain me how to properly setup values for timer1_counter? void setup() { Serial. begin(9600); inicializacija serijskega porta noInterrupts(); disable all interrupts pinMode . . .
more
|