PDA

View Full Version : config words with pic18f's & PICkit2



archendekta
- 17th October 2010, 08:53
'================================================= =================
' 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

mackrackit
- 17th October 2010, 10:59
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.