16F886 (illegal opcode CONFIG1)


Closed Thread
Results 1 to 13 of 13

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default Re: 16F886 (illegal opcode CONFIG1)

    Are you sure you have the 16F886 selected in the Microcontroller dropdown box of MicroCode Studio?
    DT

  2. #2
    Join Date
    Jan 2009
    Location
    Alabama,USA
    Posts
    235


    Did you find this post helpful? Yes | No

    Default Re: 16F886 (illegal opcode CONFIG1)

    16F886 is in the dropdown window! yep!

  3. #3
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default Re: 16F886 (illegal opcode CONFIG1)

    Under View > Compile and Program Options > Assembler tab ...
    Is the path above the Find buttons ... C:\Program Files\Microchip\MPASM Suite or C:\Program Files (x86)\Microchip\MPASM Suite for 64-bit systems?

    If not, click the Find manually button and point it there.
    MicroCode Studio will usually find the wrong path if you have more than one MPASMWIN on your computer.
    DT

  4. #4
    Join Date
    Jan 2009
    Location
    Alabama,USA
    Posts
    235


    Did you find this post helpful? Yes | No

    Default Re: 16F886 (illegal opcode CONFIG1)

    My path is C:\Program Files\Microchip\MPASM Suite. Yes, I am aware of this Gottcha! I had to deal with it a few years ago. I double checked it to make sure something didn't revert back to the Wrong MPASM. This just doesn't make any since. I even tried to use @config (0x20F4) but that didn't work either. I also checked my spellling four times to make sure... what else?

  5. #5
    Join Date
    Jan 2009
    Location
    Alabama,USA
    Posts
    235


    Did you find this post helpful? Yes | No

    Default Re: 16F886 (illegal opcode CONFIG1)

    Darrel, On the assembler tab page, what is INH8XM, INH8XS, and INHX32?
    Last edited by MOUNTAIN747; - 17th January 2013 at 23:26.

  6. #6
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default Re: 16F886 (illegal opcode CONFIG1)

    Those specify the .HEX file format and should not be changed.
    Later versions of MicroCode Studio have removed those options.

    Please send me your .LST file after a failed compile.
    DT

  7. #7
    Join Date
    Jan 2009
    Location
    Alabama,USA
    Posts
    235


    Did you find this post helpful? Yes | No

    Default Re: 16F886 (illegal opcode CONFIG1)

    You'll have to explain how I send it to you. I can't use Private Message.

Similar Threads

  1. Illegal upcode
    By lerameur in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 10th November 2011, 23:31
  2. Extra I2CWRITE opcode at beginning of *.hex file
    By tturpin in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 24th May 2011, 03:13
  3. NTVDM CPU has encountered illegal instruction
    By Sanddune in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 19th June 2009, 04:01
  4. 16f886
    By Larry in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 4th November 2008, 16:57
  5. 16f886
    By hvacrtech in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 27th May 2008, 05:06

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