Problem during compilation 16F676


Closed Thread
Results 1 to 6 of 6
  1. #1
    Join Date
    Oct 2003
    Location
    holland
    Posts
    251

    Default Problem during compilation 16F676

    I want to use a PIC16F676 with internal clock.
    This is what I wrote:
    @ DEVICE PIC16F676,INTRC_OSC_NOCLKOUT
    @ DEVICE PIC16F676,BOD_OFF
    @ DEVICE PIC16F676,MCLR_OFF
    @ DEVICE PIC16F676,CPD_OFF
    @ DEVICE PIC16F676,PROTECT_ON

    DEFINE OSC 4

    TRISA = %00010000
    TRISC = %00000000

    ADCON0 = %00010001
    CMCON = 7

    The compiler say's:

    PM Assembler 4.07, Copyright (c) 1995, 2004 microEngineering Labs, Inc.
    Error D:\CDLITEN\PBP246\16F676.INC 15 : [225] Undefined Symbol 'intrc_osc'
    *** 1 Error ***
    PicBasic Pro Compiler 2.46, (c) 1998, 2005 microEngineering Labs, Inc.
    All Rights Reserved.

    When I look into the inc file of the 16f676 it's there.

    Is this a RTFM at my site or ????
    Regards.
    Mat

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    mm... looks weird, don't have any problem here with your snip of code. the available patch for this device is actually..suppose to be, include in the V2.46. But feel free to patch your software to the latest version
    http://www.melabs.com/support/patches.htm


    try to reinstall your PBP and post your results... sorry
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    Join Date
    Oct 2003
    Location
    holland
    Posts
    251


    Did you find this post helpful? Yes | No

    Default

    I reinstaled the compiler, and I pached (what i already a few moths ago did) again and I got the same results.

    Then I removed everthing and instaled the compiler again, now without the patch. It's ok now.
    There must be a problem in the patch.
    I copied all the data of the 16F676 of the non patch. Than I patched again and put the "old" data of the 16F676 back. It still works.

    Thanks for the hint.
    Mat

  4. #4
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    mm interesting! i'd just report this problem to Melabs. i'll post the results here.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  5. #5
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    well, no luck. None seems to be able to reproduce the problem.. mmm.

    BTW i'd been told there's a new version of the patch comming soon.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  6. #6
    Join Date
    Oct 2003
    Location
    holland
    Posts
    251


    Did you find this post helpful? Yes | No

    Default

    Thanks, I will wait then for the new patch.
    Because I tried the same programm to compile by a friend, and the result was the same after the patch, so I changed it also on his system.

Similar Threads

  1. 16F676 programming problem
    By Christopher4187 in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 18th May 2009, 17:39
  2. 16F676 Please explain this problem...
    By Jayhovah in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 9th May 2008, 21:30
  3. 16F676 Really simple, stupid problem - Help!
    By Jayhovah in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 1st May 2008, 03:28
  4. USART Problem , but don't know where, in pc? or in PIC?
    By precision in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 15th July 2007, 08:12
  5. 1 slave 1 master 1 MAX232 1 problem ?
    By SuB-ZeRo in forum mel PIC BASIC Pro
    Replies: 19
    Last Post: - 31st July 2005, 22:59

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