I have used the following header for the 12F683 many times and never encountered any compiling problems. Try it.
CMCON0 = 7 'comparators off
ANSEL = 0 'all inputs digital, the adcin command automatically converts it to analog
DEFINE OSCCON_1K 1 ' Set OSCCAL for 1K device to accurize osc
OSCCON = %01110111 'Set osc to 8MHZ 12F683. Normally I leave this line out to default to 4MHZ
@ DEVICE MCLR_ON, INTRC_OSC_NOCLKOUT, WDT_ON, BOD_OFF, PWRT_ON, PROTECT_ON
START:




Bookmarks