The PICBASIC PRO compiler book that comes (for $250) with MIcroEngineering Labs product does not mention built in routines. I found a chapter in a MikroElektrnonika "Programming PIC MCUs in BASIC"on line book devoted to these. I assume they work with my system. True? I don't think so.....sigh

http://www.mikroe.com/en/books/picbasicbook/05.htm


The above book says,

-------start snip---------------
Prototype sub procedure EEprom_Write(dim Address as byte, dim Data as byte)
Description

Function writes byte to [Address]. [Address] is of byte type, which means it can address only 256 locations. For PIC18 MCU models with more EEPROM data locations, it is programmer's responsibility to set SFR EEADRH register appropriately.

All interrupts will be disabled during execution of EEPROM_Write routine (GIE bit of INTCON register will be cleared). Routine will set this bit on exit

Ensure minimum 20ms delay between successive use of routines EEPROM_Write and EEPROM_Read. Although EEPROM will write the correct value, EEPROM_Read might return undefined result.
Example

for i = 0 to 20
EEPROM_Write(i, i + 6)
next i
-------------------end snip----------------

I tried the following bit in my PBP compiler.

i VAR BYTE
for i = 0 to 20
EEPROM_Write (i, i + 6)
next i

It complained that the EEPROM line has a syntax error.

What am I just not grasping.....??? I assume the two BASIC packages differ. The question is where do I find the built in routines that come with MY PBP?

Ken