PDA

View Full Version : Software equiv of MCLR for PIC18F ?



LGabrielson
- 25th August 2012, 05:21
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

LGabrielson
- 25th August 2012, 16:09
Found a thread that said to use '@ RESET' for a PIC18, and the other method for a PIC16. :)

Acetronics2
- 25th August 2012, 17:10
a look into MPASM help could have shown you this genuine supplied command ... ;)

see: PIC18 Device Instruction Set / Table: PIC18 Control Operations.

Alain

LGabrielson
- 26th August 2012, 00:07
Will look again. Didn't look in the appendix, but just saw @ documented as a one line ASM command. Thank you.