PDA

View Full Version : not previously defind (_INTRC_OSC) errror



teverett
- 18th October 2006, 04:24
I receive this Error message each time I try to compile my code – I have attached my INC file at the bottom. Can anyone tell me why I am getting this ?



'----------- my error message --------------------

Error[113] C:\pbp16F88.inc 22: symbol not previously defind (_INTRC_OSC)

.--------- my INC file -----------------------------

;************************************************* ***************
;* 16F88.INC *
;* *
;* By : Leonard Zerman, Jeff Schmoyer *
;* Notice : Copyright (c) 2004 microEngineering Labs, Inc. *
;* All Rights Reserved *
;* Date : 01/07/04 *
;* Version : 2.45 *
;* Notes : *
;************************************************* ***************
NOLIST
ifdef PM_USED
LIST
include 'M16F88.INC' ; PM header
device pic16F88, intrc_osc, wdt_on, pwrt_on, mclr_on, lvp_off, protect_off, CCPMX_ON
XALL
NOLIST
else
LIST
LIST p = 16F88, r = dec, w = -302
INCLUDE "P16F88.INC" ; MPASM Header
__config _CONFIG1, _INTRC_OSC & _WDT_ON & _PWRTE_ON & _MCLR_ON & _LVP_OFF & _CP_OFF
NOLIST
endif
LIST

; importaint "CCPMX_ON" tells multiplexor to use B.3 instead of default B.0

Darrel Taylor
- 18th October 2006, 05:58
Since you are using MPASM, for the internal oscillator, the OSC configuration should be either

_INTRC_CLKOUT or _INTRC_IO

instead of _INTRC_OSC

For other oscillator options, see the bottom of the P16F88.inc file in the MPASM folder.

teverett
- 18th October 2006, 17:59
Thank you ... it all works perfect now !