At 11:44 AM 9/9/2004, Mark Jordan wrote: >On 9 Sep 2004 at 3:17, Dave VanHorn wrote: > >> >> > >> > But, if I apply an external reset, all goes back to normal. >> > A 100nF capacitor from RESET pin to ground solves the problem, too. >> > Does the internal PowerOn Reset is not working on Timer2? >> > >> > Any suggestions? >> >> Do you fully init the timer, or do you leave some of the registers at >> defaults? > > Fully init. Every register. Good man. Simplify if you start running out of code space, but otherwise, it's cheap insurance. > You hit the target! > I delayed the TIMER2 init sequence and it works ok now. > Thanks for the tip! > > Interesting that the problem is with TIMER2 only. The others aren't >affected. Maybe this is a PWM module issue. Hmm.. I'd be careful. Something else may be going on. Proceed under caution flag, and investigate any anomalies!
Message
Re: [AVR-Chat] Mega8 reset problem
2004-09-09 by Dave VanHorn
Attachments
- No local attachments were found for this message.