Pages: [1]   Go Down
Author Topic: Software reset  (Read 420 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 18
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,
I have a Arduino USB board and I would like to know if there is any C++ function to reset Arduino and uploading a new program after the reset.
I read this post (http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1178579635/1#1) but I didn't understand how can I make the software reset by the use of ICSP pins.

Thanks.
Logged

0
Offline Offline
Full Member
***
Karma: 0
Posts: 203
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The reset pin is brought out on the ICSP header, pin 5. http://www.potemkin.org/uploads/Pid/arduino_usb.jpg If you tie any another output to that pin, then when you enable that output and pull it low you will reset the processor. Part of the reset process will release the pin and allow it to come high again.

If you use Digital 12, (port B pin 4) it doesn't have a high value function (unless you are using SPI), is also on the header at pin 1 and with a little jumper wire you can connect them. Do not use Digital 13, you can connect that with just a jumper, but it gets strobed by the bootloader to flash your LED, you will perpetually reset.

Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 18
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have understood perfectly.
Thanks a lot, kims.
Logged

Pages: [1]   Go Up
Jump to: