code resetting MCU
2005-06-05 by Kathy Quinlan
Hi all, I have a problem with a project. I can see the problem externally, I have a counter that counts from 1 to 255, ticks over to 0 and counts up again.... Sometimes during the operation, the counter resets to 1 and starts again. I have sent MCUCSR to port A, so that I can tell what caused the reset, but nothing shows (unless I make it do a POR or manual reset) I am using a Mega8535. I am out of ideas on what to check, and would love any tips. The AVR works fine in the STK500, but only seems to fail in the target hardware. The hardware is only a MAX232 and a MAX485, external crystal (14.7456MHz) a 0.1uf cap from reset to ground (nothing else on ground as I am using the internal BOD and POR) Regards, Kat.