I'm trying to create a 1 second counter or something close to that. I'm using atmega 2561, external ossilator 7372800. Coding in C, using avr studio.
I was able to get timer1 to interrupt about every 2 seconds, but my problem is I can't use an interrupt, because I want to count everytime the timer goes off, but I use other interrupts and I noticed, like if I pushed a button, the timer count wouldn't increase( it basically won't go into the interrupt, since it was in an interrupt).
How would I read the data, without having to use the ISR? I'm currently using 256 prescaler (TCCR1B = 0x04)
Thanks in advance