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)

    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

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


    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?

  3. #3
    Join Date
    Jan 2009
    Location
    Alabama,USA
    Posts
    232


    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; - 18th January 2013 at 00:26.

  4. #4
    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

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


    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.

  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)

    DT

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


    Did you find this post helpful? Yes | No

    Default Re: 16F886 (illegal opcode CONFIG1)

    Although the line you showed in post #1 had 2 underscores in __config and had a space after the @ sign ...
    The .lst file shows that the actual line had only 1 underscore and no space.

    It also shows that the __config line in the 16F886.inc file hasn't been commented out.
    DT

Similar Threads

  1. Illegal upcode
    By lerameur in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 11th November 2011, 00: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, 04:13
  3. NTVDM CPU has encountered illegal instruction
    By Sanddune in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 19th June 2009, 05:01
  4. 16f886
    By Larry in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 4th November 2008, 17:57
  5. 16f886
    By hvacrtech in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 27th May 2008, 06:06

Members who have read this thread : 1

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