
Originally Posted by
ttease
Thanks for the links and info.
Okay, I read the threads suggested and I'm more confused than before but I believe I have the bits set. I checked by importing the *.asm file into MPLab ver 7.52 and looked at the 'configuration bit' and they are set as I wanted.
I got this working by modifing the 18f4431.inc file to this:
; __CONFIG _CONFIG1H, _OSC_XT_1H
; __CONFIG _CONFIG2H, _WDTEN_ON_2H & _WDPS_128_2H
__CONFIG _CONFIG1H, _OSC_IRCIO_1H
__CONFIG _CONFIG2H, _WDTEN_OFF_2H & _WDPS_128_2H
__CONFIG _CONFIG4L, _LVP_OFF_4L
My question now is what is the current way of setting these bits. These threads as ~ a year old and I'm not sure which way to go with the '__config' being replaced by 'CONFIG' so I comment all the '__CONFIG' lines out and added:
CONFIG OSC=IRC,WDTEN=ON,WDPS=128,LVP=OFF
Is there a better way to do this? Can I add it to the *.bas file?
Bookmarks