if you're using an 18F type pic, you can just use the reset command.
@ reset
if using a 16F,
asm
clrf PCLATH
goto 0
endasm
Darrel
if you're using an 18F type pic, you can just use the reset command.
@ reset
if using a 16F,
asm
clrf PCLATH
goto 0
endasm
Darrel
DT
@ reset
yup... always read the whole datasheet.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
The code doesnīt make a software reset to all registers
@clrf PCLATH
@ goto 0
What i did wrong?
Regards
Leonel Monteiro
well i'm not sure to agree 100% about that method. Are you still using the 18F series?
looks no 'cause you must use @ reset
did you try with the i/o reset method?
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
I'm using 16F so the @reset itīs not possible.
I didnīt try the I/O method because my PCB is done...
my assumption is by using this method, it jumps only to the reset vector. So it doesn't produce any effects on the registers... so the i/o style should be considered.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Yes, I agree with you...
What do you think the ideia to do software reset putting all my registers to zero. Itīs easier and i havenīt to use the I/O method
Bookmarks