ABL electronic PIC16 Personal Computer User Manual


 
EEPROM data memory is available with a number of PICmicros. mikroC includes
library for comfortable work with EEPROM.
Eeprom_Read
Eeprom_Write
mikroC
- C Compiler for Microchip PIC microcontrollers
mikroC
making it simple...
17 2
MikroElektronika:
Development
tools
-
Books
-
Compilers
page
EEPROM Library
Library Routines
Prototype
char Eeprom_Read(char address);
Returns Returns byte from the specified address.
Description Reads data from the specified address. Parameter address is of byte type, which means
it can address only 256 locations. For PIC18 micros with more EEPROM data locations,
it is programmer’s responsibility to set SFR EEADRH register appropriately.
Requires Requires EEPROM module.
Ensure minimum 20ms delay between successive use of routines Eeprom_Write and
Eeprom_Read. Although PIC will write the correct value, Eeprom_Read might return
an undefined result.
Example
char take;
...
take = Eeprom_Read(0x3F);
Eeprom_Read