View Full Version : simple question
09-09-2008, 09:22 AM
I would like to know how to force a reset inside my code,or how can I make the code restart at the begining.
09-09-2008, 09:35 AM
You can either put a label at the beginning of the code and use a GOTO to get to it, or you can connect and I/O pin through a 220 ohm resistor to the /RESET pin and drive it LOW when you want to reset.
Or flip the power switch off then on after a few seconds.
Like so many other situations, "jiggle the handle".
·"If you build it, they will come."
09-10-2008, 11:48 AM
If you want a reset to be initiated through software and no touching it, I would do what Chris Savage said: connect the Res terminal to an I/O pin with a 220 ohm resistor in series. A GOTO label is good, but you might want to force a hardware reset and the above method would be the easiest and the most effective IMO.