16f88 configuration ..... and pickit2 configuration word warning....


Closed Thread
Results 1 to 7 of 7
  1. #1
    Join Date
    Feb 2010
    Posts
    30

    Default 16f88 configuration ..... and pickit2 configuration word warning....

    @ DEVICE PIC16F88, INTRC_OSC_NOCLKOUT
    @ DEVICE PIC16F88, WRT_OFF
    @ DEVICE PIC16F88, DEBUG_OFF
    @ DEVICE PIC16F88, CCPMX_OFF
    @ DEVICE PIC16F88, MCLR_OFF
    @ DEVICE PIC16F88, PROTECT_OFF
    @ DEVICE PIC16F88, CPD_OFF
    @ DEVICE PIC16F88, LVP_OFF
    @ DEVICE PIC16F88, BOD_OFF
    @ DEVICE PIC16F88, PWRT_OFF
    @ DEVICE PIC16F88, WDT_OFF
    @ DEVICE PIC16F88, CCPMX_OFF

    @ DEVICE2 PIC16F88, FCMEN_OFF
    @ DEVICE2 PIC16F88, IESO_OFF


    Here it is... DEVICE2 is not recognized (illegal device type).

    If i use DEVICE instead of DEVICE2 , it compiles normally , but the PICKIT2 says ' some configuration bits are not set...'
    (not using MPASM of course)

    And even if i ignore the warning , at the end , i get Error Verification in configuration word........

    Thanks in advance!!!
    Last edited by LakisFM1; - 27th December 2011 at 17:12.

  2. #2
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default Re: 16f88 configuration ..... and pickit2 configuration word warning....

    Depends what version of PBP you have. If my crystal ball is working correctly, this might be the right answer http://www.picbasic.co.uk/forum/showthread.php?t=13724

    with an added line for

    @ __CONFIG _CONFIG2, _IESO_OFF & _FCMEN_OFF
    Last edited by ScaleRobotics; - 27th December 2011 at 19:54.
    http://www.scalerobotics.com

  3. #3
    Join Date
    Feb 2010
    Posts
    30


    Did you find this post helpful? Yes | No

    Default Re: 16f88 configuration ..... and pickit2 configuration word warning....

    unfortunately as i said i don't use MPASM ....

    (PBP 2.60C)

  4. #4
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default Re: 16f88 configuration ..... and pickit2 configuration word warning....

    I think with PM, you can just use the @ DEVICE, and don't need to specify @DEVICE2 (especially since @ DEVICE PIC16F88, INTRC_OSC_NOCLKOUT is really defining config1 configs). I would use your @ DEVICE on all the configs you wish to set. However, I don't use PM, so I could be wrong about this. The warning about all configs not being set, is just a warning. There are a few more configs that are not set. Here is the complete list for the 16F88.

    EDIT:

    It looks like you do name all the configs, so I don't know why you are getting a warning. Although, you do name CCPMX twice .., shouldn't matter though.
    Last edited by ScaleRobotics; - 27th December 2011 at 21:59.
    http://www.scalerobotics.com

  5. #5
    Join Date
    Feb 2010
    Posts
    30


    Did you find this post helpful? Yes | No

    Default Re: 16f88 configuration ..... and pickit2 configuration word warning....

    Thanks for the interest but all these are for MPASM.... i am not sure if i can handle MPASM.... if until tommorow morning have no reply i will try using MPASM.

  6. #6
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default Re: 16f88 configuration ..... and pickit2 configuration word warning....

    but the PICKIT2 says ' some configuration bits are not set...'
    All the PicKit2 software is telling you is there are more things that can be set in the configs. Being that you are happy with leaving the remainder to their default setting just ignore the warning.

    @ DEVICE2 PIC16F88, FCMEN_OFF
    @ DEVICE2 PIC16F88, IESO_OFF
    The above is not needed in your case as you are using the internal OSC. Not sure why PM is causing the error, but you should be fine by not including the two lines.
    Dave
    Always wear safety glasses while programming.

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


    Did you find this post helpful? Yes | No

    Default Re: 16f88 configuration ..... and pickit2 configuration word warning....

    Quote Originally Posted by LakisFM1 View Post
    @ DEVICE PIC16F88, INTRC_OSC_NOCLKOUT
    @ DEVICE PIC16F88, WRT_OFF
    @ DEVICE PIC16F88, DEBUG_OFF
    @ DEVICE PIC16F88, CCPMX_OFF
    @ DEVICE PIC16F88, MCLR_OFF
    @ DEVICE PIC16F88, PROTECT_OFF
    @ DEVICE PIC16F88, CPD_OFF
    @ DEVICE PIC16F88, LVP_OFF
    @ DEVICE PIC16F88, BOD_OFF
    @ DEVICE PIC16F88, PWRT_OFF
    @ DEVICE PIC16F88, WDT_OFF
    @ DEVICE PIC16F88, CCPMX_OFF

    @ DEVICE2 PIC16F88, FCMEN_OFF
    @ DEVICE2 PIC16F88, IESO_OFF


    Here it is... DEVICE2 is not recognized (illegal device type).
    Do them like this ...
    Code:
     @ DEVICE PIC16F88, INTRC_OSC_NOCLKOUT
     @ DEVICE WRT_OFF
     @ DEVICE DEBUG_OFF
     @ DEVICE CCPMX_OFF
     @ DEVICE MCLR_OFF
     @ DEVICE PROTECT_OFF
     @ DEVICE CPD_OFF
     @ DEVICE LVP_OFF
     @ DEVICE BOD_OFF
     @ DEVICE PWRT_OFF
     @ DEVICE WDT_OFF
     @ DEVICE CCPMX_OFF
     '
     @ DEVICE2 FCMEN_OFF
     @ DEVICE2 IESO_OFF
    The PIC part number is not required, and certainly not in every DEVICE line.
    One instance can be handy, as it will cause an error if you compile the program for the wrong chip.

    DEVICE2 doesn't like the part number at all.
    DT

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