Hardware reset

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

Post Reply
Desdewit
Posts: 130
Joined: Sat Feb 26, 2011 4:26 am
Location: South Africa
Has thanked: 25 times
Been thanked: 11 times
Contact:

Hardware reset

Post by Desdewit »

Hi

Is it possible to do a software restart on a pic18f252 without using an external reset on MCLR that will reset everything like with power up.

User avatar
JohnCrow
Valued Contributor
Valued Contributor
Posts: 1367
Joined: Wed Sep 19, 2007 1:21 pm
Location: Lincolnshire
Has thanked: 364 times
Been thanked: 716 times
Contact:

Re: Hardware reset

Post by JohnCrow »

Hi Desdewit

Not sure if this is what you mean, but you can make the program reset by using a "C BOX"
Put the following command in the box

reset();

This will reset the program the same as pressing the reset button on the programmer.
Note Ive not used this on your device, but it certainly works on a 18F4550.
1 in 10 people understand binary, the other one doesn't !

Post Reply