I have a circuit board with an ATMEGA 16 running 2 L298 motor controllers. Everything works fine, but when I stall the motors (stalls at about 2.2A) the chip somtimes hangs or resets. If it hangs it seems to freeze in some random state, setting or reseting varoius i/os. The only way to restore the board is unplug and plug back in the 19V power supply.
I have the reset pin on the chip connected to the 5V feed through a 10K resistor. I also have a 100V 470uf cap on the board to help reduce noise.
Thanks in advance for the help.