Datasheet
Programming PIC Microcontrollers in BASIC - mikroElektronika
provide you comfortable work with EEPROM.
Notes:
Be aware that 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.
5.2.6.1 EEPROM_Read – Reads 1 byte from EEPROM
Prototype
sub function EEprom_Read(dim Address as byte) as byte
Description Function reads byte from <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.
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.
http://www.mikroelektronika.co.yu/english/product/books/picbasicbook/05.htm (52 sur 112)05/11/2004 02:20:52










