Hi Tom - Not all the guys in the group will agree, but i'm still old-school. I like doing my debugging with a "real" chip and "real" led. But basically don't lose hope ! EVERY time that something in the AVR have not done what they were supposed to, it was my software that was at fault. As many other have suggested: Make sure global interrupts are enbaled, make sure the timer interrupt in TIMSK is enabled, make sure the timer is set to run (usually in TCCR1B etc), make sure an interrupt can happen (ie. if you using an overflow interrupt, make sure the timer is not configured for CTC with a value less than the overflow value etc.) The only other thing I can recommend is actually programming a chip and getting a scope and some leds out to debug what is happening. Cheers Hein Auckland, New Zealand --- In AVR-Chat@yahoogroups.com, Thomas Keller <tjkeller1@...> wrote: > > Don: > > Yes, I am using both timwrs. one is as a tomer, the other as PWM. > > tom > > Don AE5K wrote: > > > > > > Tom, > > > > I don't have time right now to go thru your code, but what I recall > > seeing you posted a few days ago I noticed you initialized timer 0 but > > later in program referenced timer 1. Are you using both timers? > > >
Message
Re: hrm...
2007-01-18 by kernels_nz
Attachments
- No local attachments were found for this message.