Mikroelektronika MIKROE-350 Fiche De Données

Page de 526
EEPROM LIBRARY
EEPROM data memory is available with a number of AVR family. The mikroBasic PRO for AVR
includes a library for comfortable work with MCU's internal EEPROM.
Note: EEPROM Library functions implementation is MCU dependent, consult the appropriate
MCU datasheet for details about available EEPROM size and address range.
Library Routines
- EEPROM_Read 
- EEPROM_Write 
EEPROM_Read
211
MIKROELEKTRONIKA
- SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroBasic PRO for AVR
CHAPTER 6
Prototype
sub function EEPROM_Read(dim address as wordas byte
Returns
Byte from the specified address.
Description
Reads data from specified address.
Parameters : 
address:
address of the EEPROM memory location to be read. 
Requires
Nothing.
Example
dim eeAddr as word
temp 
as byte
...
eeAddr = 2
temp = EEPROM_Read(eeAddr)