not previously defind (_INTRC_OSC) errror


Closed Thread
Results 1 to 3 of 3
  1. #1
    teverett's Avatar
    teverett Guest

    Default not previously defind (_INTRC_OSC) errror

    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

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    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.
    DT

  3. #3
    teverett's Avatar
    teverett Guest


    Did you find this post helpful? Yes | No

    Default Its working

    Thank you ... it all works perfect now !

Similar Threads

  1. Matrix Keypad routine
    By mister_e in forum Code Examples
    Replies: 134
    Last Post: - 18th September 2022, 20:30
  2. 16F877A Microcode Studio won't compile
    By curt66111 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 25th November 2009, 19:35
  3. Errors In MPLAB 8.02
    By HOTLNC in forum mel PIC BASIC Pro
    Replies: 20
    Last Post: - 4th June 2008, 13:52
  4. 18F452 "Unknown Processor" errors
    By schwinn_rider in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 27th April 2006, 03:56
  5. Replies: 3
    Last Post: - 3rd September 2003, 12:05

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts