PDA

View Full Version : 16F88 Config



n0yox
- 26th October 2015, 02:14
16F88

Can anyone tell me why this generates an error in PBP3 ?


#config
__config _INTRC_OSC_NOCLKOUT & _WDT_OFF & _MCLRE_OFF & _LVP_OFF & _CP_ON & _BODEN_OFF
#endconfig

richard
- 26th October 2015, 02:41
a pic 16f88 has no config setting _INTRC_OSC_NOCLKOUT , or _MCLRE_OFF . it is a syntax error

there is however _INTRC_IO and _MCLR_OFF

n0yox
- 26th October 2015, 03:14
Thank You! That fixed my problem.

n0yox
- 26th October 2015, 03:21
I was wrong I continue to have a error?

HenrikOlsson
- 26th October 2015, 06:07
Hi,
I think you're missing the _CONFIG1 part, as below.

#config
__CONFIG _CONFIG1, _FOSC_INTOSCIO & _WDT_OFF & _MCLRE_OFF & _LVP_OFF & _CP_ON & _BODEN_OFF
#endconfig


/Henrik.

n0yox
- 26th October 2015, 13:30
Thank You, Henrik. My problem is gone! As always I really appreciate the help I get here on the MELabs Forum!

Thanks again