Software equiv of MCLR for PIC18F ?


Closed Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2011
    Posts
    35

    Default 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

  2. #2
    Join Date
    Jul 2011
    Posts
    35


    Did you find this post helpful? Yes | No

    Default 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.

  3. #3
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,615


    Did you find this post helpful? Yes | No

    Default 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
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  4. #4
    Join Date
    Jul 2011
    Posts
    35


    Did you find this post helpful? Yes | No

    Default 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.

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts