I agree that using a real chip is better. Using one with JTAG is even better because you can fiddle with the bits real-time and see what works. The AvrDragon is a killer product IMHO. That said, I developed my original RTOS (www.barello.net/Avrx) completely in the simulator. I learned some pretty hard lessons about race conditions (set break point, hit it 75 times, then single step until I found the race...) and peripheral set up. I am very careful reading and parsing the data sheets now... So, there is no fundamental reason why the simulator won't do what Mr. Keller needs done. Cheers! -----Original Message----- From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On Behalf Of kernels_nz Sent: Wednesday, January 17, 2007 5:07 PM To: AVR-Chat@yahoogroups.com Subject: [AVR-Chat] Re: hrm... 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? > > > Yahoo! Groups Links
Message
RE: [AVR-Chat] Re: hrm...
2007-01-18 by larry barello
Attachments
- No local attachments were found for this message.