Plus to the above, you still had one underscore instead of the correct two.
Ioannis
Plus to the above, you still had one underscore instead of the correct two.
Ioannis
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:
I think you refer to an ancient version of PBP.
Now we do not use this @ DEVICE MCLR_ON.....
Current versions use this syntax:
IoannisCode:#config __config _INTRC_OSC_NOCLKOUT & _WDT_ON & _BOD_OFF & _MCLRE_ON & _CP_OFF #endconfig
Yes it is old. I think it's version 2.65 or something.
Bookmarks