Software equiv of MCLR for PIC18F ?
Hello,
I've seen several posts but don't know which, if any, apply to a PIC18F6722.
I want to do as near as possible to a MCLR RESET using software.
Someone suggested "@ RESET" and someone else suggested this for a PIC16:
Asm
bcf PCLATH, 3
bcf PCLATH, 4
goto 0
EndAsm
but don't know if it also applies to a PIC18.
Can someone tell me which will work for a PIC18F, and where I can find references to it?
Thanks,
Len
Re: Software equiv of MCLR for PIC18F ?
Found a thread that said to use '@ RESET' for a PIC18, and the other method for a PIC16. :)
Re: Software equiv of MCLR for PIC18F ?
a look into MPASM help could have shown you this genuine supplied command ... ;)
see: PIC18 Device Instruction Set / Table: PIC18 Control Operations.
Alain
Re: Software equiv of MCLR for PIC18F ?
Will look again. Didn't look in the appendix, but just saw @ documented as a one line ASM command. Thank you.