
Originally Posted by
LakisFM1
@ DEVICE PIC16F88, INTRC_OSC_NOCLKOUT
@ DEVICE PIC16F88, WRT_OFF
@ DEVICE PIC16F88, DEBUG_OFF
@ DEVICE PIC16F88, CCPMX_OFF
@ DEVICE PIC16F88, MCLR_OFF
@ DEVICE PIC16F88, PROTECT_OFF
@ DEVICE PIC16F88, CPD_OFF
@ DEVICE PIC16F88, LVP_OFF
@ DEVICE PIC16F88, BOD_OFF
@ DEVICE PIC16F88, PWRT_OFF
@ DEVICE PIC16F88, WDT_OFF
@ DEVICE PIC16F88, CCPMX_OFF
@ DEVICE2 PIC16F88, FCMEN_OFF
@ DEVICE2 PIC16F88, IESO_OFF
Here it is... DEVICE2 is not recognized (illegal device type).
Do them like this ...
Code:
@ DEVICE PIC16F88, INTRC_OSC_NOCLKOUT
@ DEVICE WRT_OFF
@ DEVICE DEBUG_OFF
@ DEVICE CCPMX_OFF
@ DEVICE MCLR_OFF
@ DEVICE PROTECT_OFF
@ DEVICE CPD_OFF
@ DEVICE LVP_OFF
@ DEVICE BOD_OFF
@ DEVICE PWRT_OFF
@ DEVICE WDT_OFF
@ DEVICE CCPMX_OFF
'
@ DEVICE2 FCMEN_OFF
@ DEVICE2 IESO_OFF
The PIC part number is not required, and certainly not in every DEVICE line.
One instance can be handy, as it will cause an error if you compile the program for the wrong chip.
DEVICE2 doesn't like the part number at all.
Bookmarks