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
Bookmarks