View Single Post
Old 04-24-2012, 12:52 PM   #34 (permalink)
adamj12b
Master EcoModder
 
Join Date: Apr 2009
Location: Charlton MA, USA
Posts: 463

EVVette - '71 Chevy Corvette Coupe
Thanks: 31
Thanked 183 Times in 94 Posts
Quote:
Originally Posted by dave koller View Post
Adam:
On the Atmega1284P does the watchdog stop the processor or does an event of lost oscillation stop it? I asked as DJBecker triggered a memory of a problem I had with a physical layout of the driving Xtal - I had to ground strap the metal can of it to stop an internal shutdown glitch due to stray spikes - I know - I know a stab in the dark ....
Well It looks like the processor is still doing something because I still get a 16.0001Mhz clock on the CKOUT pin of the chip. If I enable the watchdog to always be on, the LED blinks rapidly and I get a clock out of about 2Mhz. This makes me think that when the watchdog is always on, the chip just cycles and cycles.

The way it is right now, the status LED is solid on.

Im going digging through the code again and going to try and set up some serial prints at points of start up hopefully to find where its failing.

On a side note, I commented out all the code in the enable and disable watchdog functions with no difference in operation..... This lead me to wanting to add the serial prints.

-Adam
__________________
www.EVVette.com - 1971 Corvette Coupe Conversion to all Electric!
www.AdamBrunette.com - Machining, CNC, Robotics and Electronics.

You can download RTD Explorer for the Cougar controllers at www.EVVette.com
  Reply With Quote