Hello,
Just a question on istruction that i have never used before today.
I need to read a table of Words values stored in program space flash on my pic.
So i need to user READCODE to retrieve data from a table of DW made in Assembly
where i have stored a table of values.
But when i try to compile a very simple program that use the istruction READCODE
i will get back this errors:
---------------------------------------------------------------------------------
PICBASIC PRO(TM) Compiler 2.60C, (c) 1998, 2011 microEngineering Labs, Inc.
All Rights Reserved.
ERROR: Unable to execute mpasmwin.Error[113] C:\PBP\PBPPIC14.LIB 449 : Symbol
not previously defined (EEADRH)
Error[113] C:\PBP\PBPPIC14.LIB 463 : Symbol not previously defined (EEADRH)
Error[113] C:\PBP\PBPPIC14.LIB 477 : Symbol not previously defined (EEADRH)
Error[113] C:\PBP\PBPPIC14.LIB 491 : Symbol not previously defined (EEADRH)
Error[113] C:\PBP\PBPPIC14.LIB 899 : Symbol not previously defined (EEADRH)
Error[113] C:\PBP\PBPPIC14.LIB 449 : Symbol not previously defined (EEDATH)
Error[113] C:\PBP\PBPPIC14.LIB 463 : Symbol not previously defined (EEDATH)
Error[113] C:\PBP\PBPPIC14.LIB 477 : Symbol not previously defined (EEDATH)
Error[113] C:\PBP\PBPPIC14.LIB 491 : Symbol not previously defined (EEDATH)
Error[113] C:\PBP\PBPPIC14.LIB 823 : Symbol not previously defined (EEDATH)
---------------------------------------------------------------------------------
This is my very simple program just to test if READCODE work:
---------------------------------------------------------------------------------
TRISA = %00100000 ' Set PORTA to all input
TRISB = %00000000 ' Set PORTA to all input
DEFINE OSC 4
Char var WORD
READCODE $100,Char
---------------------------------------------------------------------------------
I use a 16f628A PIC for my project.
But if i try to compile the same prog for a 16f88/16f887(just for example) all work fine and i don't get any errors.
Have you any ideas about it
Maybe the READCODE istruction don't work on all PIC models ?
Thanks in advance,
Gabriele
Bookmarks