pf compiler problem


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

    Default pf compiler problem

    G'day All
    I've trying to use the 4functn.bas and FP20.Bas in a program for 16f876, I've placed all the files needed in the project folder as per the Melab's readme FP.zip documentation, setup mpasm as my assembler in PBP picbasic options and PBP as the compiler
    The only thing i changed was to add the below first 2 defines and chage the lcd to port b from the original ports for a 877 and the assembler error i get is..
    error[113]c:\pbp\pbppic14.lib 2668:Symbol not previously defined [portb]
    can some one help with what this means and how i might fix it??

    Thanks Dave


    Define LOADER_USED 1
    Define OSC 20
    include "fp20.bas"

    ' Define LCD registers and bits
    DEFINE LCD_DREG Portb
    DEFINE LCD_DBIT 0
    DEFINE LCD_EREG Portb
    DEFINE LCD_EBIT 4
    DEFINE LCD_RSREG Portb
    DEFINE LCD_RSBIT 5
    DEFINE LCD_BITS 4
    DEFINE LCD_LINES 2

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


    Did you find this post helpful? Yes | No

    Default

    1. Have you tried it with Portb all in UPPERCASE in the LCD define statements?

    2. Are you trying to compile your program for a PIC that hasn't got PORTB?... eg you intend to compile for 16F675 but you've got a typo specifying 12F675?

  3. #3
    dave_c's Avatar
    dave_c Guest


    Did you find this post helpful? Yes | No

    Default

    Thanks Melanie,
    quirky thing isn't it ....! yep the change to uppercase solved that problem now to put it into action. It's this type of problem that drives me crazy.
    typo's have been a problem as can be seen from the thread title

Similar Threads

  1. Problem to compile my program
    By wagner in forum Off Topic
    Replies: 5
    Last Post: - 7th July 2008, 20:17
  2. compiler problem
    By Russ Kincaid in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 25th April 2008, 01:29
  3. 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
  4. Pro Compiler Problem - Cancelled
    By Homerclese in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 18th March 2007, 05:48
  5. Replies: 4
    Last Post: - 8th June 2006, 23:15

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