Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: [AVR-Chat] Mega8 reset problem

2004-09-09 by Dave VanHorn

>
>        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?

While Atmel has been very good at providing sane powerup values, I have always been nervous about relying on them.  In general, I try to fully init any peripheral that I use.

Also, check how you handle reset. 

I've had problems in the past, initting SPI too soon after reset.
This was an interaction with the device programmer, but you might be seeing something of that nature.

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.