16F819 compile problems


Closed Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2005
    Location
    New Zealand
    Posts
    171

    Thumbs down 16F819 compile problems

    I'm trying to compile a simple code but I get this error, I'm running CDLite and PBP2.46

    @ DEVICE INTRC_OSC, WDT_OFF, MCLR_OFF, CCPMX_OFF

    DEFINE OSC 1
    DEFINE ADC_BITS 8 'Set number of bits in result
    DEFINE ADC_CLOCK 3 'Set clock source (3=rc)
    DEFINE ADC_SAMPLEUS 50 'Set sampling time in us

    TRISA = %00000001 'Set I/O
    TRISB = %00000000 'Set I/O
    ADCON1 = %10001110 'Right justify result set PORTA.0 ana, rest digi
    OSCCON = %01000000 'Set internal osc to 1MHz

    temp VAR BYTE
    rst1 VAR PORTB.3 'DS1267 POT1 chip select port
    clk VAR PORTB.4 'DS1267 POTS clock port
    dq VAR PORTB.2 'DS1267 POTS Data port

    PORTA = 0
    PORTB = 0
    Clear

    Start:

    ADCIN 0,temp
    High rst1 'activate pot
    ShiftOut dq,clk,1,[%0\1,temp,temp]
    Low rst1

    GoTo start

    Here's the error msg:

    PM Assembler 4.07,Copyright (c) 1995, 2004 microEngineering Labs, Inc
    Error C:\PROGRA~1\PICBAS~1.16\PBPPIC14.LIB 5807 : [225] Undefined Symbol 'PAUSEUSL'
    *** 1 Error ***
    PicBasic Pro Compiler 2.46, (c) 1998, 2005 microEngineering Labs, Inc.

    What I have noticed is two things, firstly I don't have the .INC and .BAS files for a 16F819 which is weird cos i recently upgraded to the latest version of PBP, and te error line "Error C:\PROGRA~1\PICBAS~1.16\PBPPIC14.LIB 5807 " is pointing to something 1.16???

    How come u can't copy and paste from the compiler output screen??

    Thanks for any help
    George

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


    Did you find this post helpful? Yes | No

    Default

    DEFINE OSC 1 is one problem. PBP supports 3(3.58) 4 8 10 12 16 20 24 25 32 33 40 48.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

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


    Did you find this post helpful? Yes | No

    Default

    Your problem is in that line
    Code:
    DEFINE OSC 1
    Look at the supprted Xtal speed in the PBP manual for this DEFINE

    BUT anyway you're using the internal one... Look for OSCCON register Section 4 of the datasheet
    Steve

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

  4. #4
    Join Date
    Oct 2005
    Location
    New Zealand
    Posts
    171


    Did you find this post helpful? Yes | No

    Default

    Thanks guys - changed to 4 and works a treat now

Similar Threads

  1. 16F819 ADC problems
    By MUC in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 22nd March 2008, 18:36
  2. Compile problems
    By ffindog in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 25th June 2007, 02:51
  3. 18F2620 compile problems in PBP
    By Joe Rocci in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 13th August 2006, 10:11
  4. Replies: 2
    Last Post: - 9th February 2006, 22:03
  5. Code dsigner lite problems
    By toalan in forum Off Topic
    Replies: 2
    Last Post: - 23rd February 2005, 20:08

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