Post Created date
timer ovewflow with no isr.
you will be dealing with 4 or 5 SECONDS of time before you even have a chance to wrap. Thank you, I honestly just didn't let the scope go long enough. I'm good now, that was my...
Monday, 31 May 2021 - 01:23
timer ovewflow with no isr.
  grohote is right, its clearly stopping at 0x200 but I'm not sure why.   Exact code.   PORTF |= 0x01; _delay_ms(100); PORTF &= ~0x01; TCCR1A=0...
Sunday, 30 May 2021 - 22:53
timer ovewflow with no isr.
but wgm13-wgm10 are off? (mode 0) UP to 0xFFFF (16-bit)
Sunday, 30 May 2021 - 21:03
timer ovewflow with no isr.
I'm able to get my test results I'd expect now but not if I use a TCNT1  > 255. TCCR1B = 0;// stop the timer.-  Setting this register to 0 effectively stops it TCNT1...
Sunday, 30 May 2021 - 19:54
timer ovewflow with no isr.
Wth? Must have been type o, I'll double check that, but pretty sure I didn't do that in code.
Sunday, 30 May 2021 - 14:02
timer ovewflow with no isr.
    so both of theses examples are the way I thought this worked and given the link on the second one I see proof but its not working when I try it? Maybe I'm...
Sunday, 30 May 2021 - 13:15
timer ovewflow with no isr.
alright, I think I see where I got confused, right I kept thinking the bit would flip on its own. I guess I was thinking of it like a flag. But I still do not see why my code does...
Sunday, 30 May 2021 - 02:24
timer ovewflow with no isr.
curtvm wrote: > In my current design I must have all interrupts off >My end goals here is to know if 16ms have passed or not.   PORTF |= 0x01; _delay_ms(16); PORTF...
Saturday, 29 May 2021 - 23:34
timer ovewflow with no isr.
Timer status bits (such as TOV1) are set when the event happens (for TOV1, that is timer overflow). That status bit changes no matter if that interrupt is enabled. So, lets look...
Saturday, 29 May 2021 - 21:06
timer ovewflow with no isr.
Ok, still trying to understand all of this..   if I do the following   TCNT1 = 0;  //Start the timer. TCCR1B = 0; //normal mode. TIFR1 |= (1 << TOV1);//clear...
Saturday, 29 May 2021 - 17:37
timer ovewflow with no isr.
I think I'm confusing my timers here, I tough TCNT0 was a 16 bit timer. So ....     TCCR1A |= ((1 << CS12) | (1 << CS10)) ; // 1024 Prescaler TCNT1 = 0...
Saturday, 29 May 2021 - 01:03
timer ovewflow with no isr.
Sure, that is how you do it.  You just have to test it "often enough"! but once the flag is set, its set? So can't I test it at any point after the start of the timer?...
Saturday, 29 May 2021 - 00:28

Pages