config words with pic18f's & PICkit2


Closed Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2009
    Posts
    17

    Default config words with pic18f's & PICkit2

    Code:
    '==================================================================
    '  fuses for 18f2620, requires mpasmwin
    '-----------------------------------------------------------------------------------------------------------------------
    @     __CONFIG    _CONFIG1H, _OSC_HS_1H & _FCMEN_OFF_1H & _IESO_OFF_1H
    @     __CONFIG    _CONFIG2H, _WDT_ON_2H & _WDTPS_512_2H
    @     __CONFIG    _CONFIG3H, _CCP2MX_PORTC_3H & _PBADEN_OFF_3H & _LPT1OSC_OFF_3H & _MCLRE_ON_3H
    @     __CONFIG    _CONFIG4L, _STVREN_ON_4L & _LVP_OFF_4L & _XINST_OFF_4L
    '-----------------------------------------------------------------------------------------------------------------------
    from PICkit2:
    Warning: some configuration words not in hex file. ensure default values above right are acceptable.

    #---------------------------------------------------------------------------------------------------------------
    i was under the assumption that when placing the config words in the code, as above, they got compiled in, and what i don't list in the code, other default values, are compiled in automatically. does one need to edit the mpasm p18f2620.inc file with the CONFIG directive to get all the default configuration words to compile in?

    that is, i need to also set these in my code or p18f2620.inc?

    _CONFIG5L
    _CONFIG5H
    _CONFIG6L
    _CONFIG6H
    _CONFIG7L
    _CONFIG7H

    #---------------------------------------------------------------------------------------------------------------

    tia

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


    Did you find this post helpful? Yes | No

    Default

    If the default values are "OK" for what you are doing then ignore the warning. It is just a warning.

    If the warning bugs you then set all of the config registers.
    Dave
    Always wear safety glasses while programming.

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