mikroC
mikroC - C Compiler for Microchip PIC microcontrollers
making it simple...
EEPROM Library
EEPROM data memory is available with a number of PICmicros. mikroC includes library for comfortable work with EEPROM.
Library Routines
Eeprom_Read
Eeprom_Write
Eeprom_Read
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); |
|
|
page |
|
172 | MikroElektronika: Development tools - Books - Compilers |
|