NO ! Only software !
Don Mario
Kacho, you can produce what looks like a reset by inserting these lines of code where you need the reset to occur:
clear
@ clrf PCLATH
@ goto 0
It will nor reset the hardware registers but clear all user variables and start the probram from scratch as if it was just reset.
Dave Purola,
N8NTA
Thanks Dave,
the question is that :could I change with
if button > 5 sec then @DEVICE MCLR_OFF .... and later
If button > 10 sec. then @DEVICE MCLR_ON
...
or this is possible only in the initial declarations ?
Thxs
i don't believe it's gonna work. These setting are only for the PIC programmer at programming time.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
A simple clear is to jump to the beginning of the program if pin 5 = xxx
with very little work , you do what you want for clearing registers ...
Now, If your program fails, then it's a programming problem ... not a hardware problem.
Remenber chips never do errors ...
Alain
Bookmarks