symbol not prev. def. _INTRC_OSC 16F88


Closed Thread
Results 1 to 5 of 5
  1. #1
    MarkR's Avatar
    MarkR Guest

    Default symbol not prev. def. _INTRC_OSC 16F88

    Code:
    ; Set fuses:
    ;==========================================================================================
    
    @ __config _CONFIG1, _INTRC_OSC_NOCLKOUT & _WDT_OFF & _PWRTE_OFF & _MCLR_ON & _LVP_OFF & _CP_OFF
    @ __config _CONFIG2, _FCMEN_OFF & _IESO_OFF
    _HS_OSC, _XT_OSC does work but I want to use the internal 8MHz oscillator.
    I have already comment out the config in the INC file.
    The INTRC_OSC_NOCLKOUT is placed in the M16F88.INC file under the PBP/INC directory so that shouldn't be the problem.


    error is: Error[113] C:\XWISP2\TAP.ASM 391 : Symbol not previously defined (__INTRC_OSC_NOCLKOUT)

    I use the MPASM assambler and PBP2.44

  2. #2
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    Is that a double underscore __ instead of a single _ before the INTRC?

  3. #3
    MarkR's Avatar
    MarkR Guest


    Did you find this post helpful? Yes | No

    Default

    Double before config, rest is single
    The error message shows two underscores indeed, but when I delete the single underscore before INTRC_OSC_NOCLKOUT in my code then the following message is displayed:
    Error[113] C:\XWISP2\TAP.ASM 391 : Symbol not previously defined (INTRC_OSC_NOCLKOUT)

    The only working oscillator configs are HS_OSC, XT_OSC, LP_OSC
    Last edited by MarkR; - 8th May 2006 at 12:05.

  4. #4
    MarkR's Avatar
    MarkR Guest


    Did you find this post helpful? Yes | No

    Default

    Found the error:
    When I took another close look at the 16F88.INC file I saw this line:

    INCLUDE "p16F88.INC" ; MPASM Header

    instead of the M16F88.INC for the PM, so I looked in the p16F88 file and then saw _INTRC_IO

    I never noticed it before because LP HS and XT are the same and never used the internal osc before. Next time I'll wait till I'm fully awake and than read the file again before asking.

  5. #5
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    938


    Did you find this post helpful? Yes | No

    Default Re: symbol not prev. def. _INTRC_OSC 16F88

    Used to have PM until a few days, it took me just one hour to notice I was searching the P16F88.INC file in the wrong place.

    Using MPASM, search the file(s) in the "MPASM Suite" folder, not the PBP's...
    Roger

Similar Threads

  1. Can't get ADC to loop
    By TravisM in forum mel PIC BASIC
    Replies: 2
    Last Post: - 11th October 2009, 15:33
  2. 16f877 and ps/2 keyboard error???
    By boraciner in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 5th July 2009, 08:14
  3. Errors In MPLAB 8.02
    By HOTLNC in forum mel PIC BASIC Pro
    Replies: 20
    Last Post: - 4th June 2008, 13:52
  4. STATUS re-curtain W
    By zugvogel1 in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 13th February 2005, 15:21
  5. Proton development board with Picbasic
    By pjsmith in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 25th July 2004, 22:19

Members who have read this thread : 0

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