
Originally Posted by
skimask
I won't work the way you want it to work... Not all of those CONFIG options are location in CONFIG1, some are located CONFIG2L, CONFIG2H, and so on and so on...
And since I'm not 100% sure which PIC you're using, I can't tell you which option goes where.
This is one of my old config setups for a PIC18F4620.
It will work the way he want's it.
Almost all the options are in the CONFIG1 word.
There are no CONFIG2L or H. Because even though I'm not 100% sure which PIC he's using.
I'm 100% sure it's a 16F.
Code:
@MyConfig = _DEBUG_OFF & _LVP_OFF & _FCMEN_OFF & _IESO_OFF & _BOR_ON
@MyConfig = MyConfig & _CP_ON & _MCLRE_ON & _PWRTE_ON & _WDT_ON & _HS_OSC
@ __CONFIG _CONFIG1, MyConfig
Bookmarks