Mikroelektronika MIKROE-742 데이터 시트

다운로드
페이지 532
EEPROM LIBRARY
EEPROM data memory is available with a number of AVR family. The mikroPascal 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 constrains.
Library Routines
- EEPROM_Read 
- EEPROM_Write 
EEPROM_Read
227
MIKROELEKTRONIKA
- SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroPASCAL PRO for AVR
CHAPTER 6
Prototype
function EEPROM_Read(address: word) : 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
var eeAddr : word;
temp : byte;
...
eeAddr := 2
temp := EEPROM_Read(eeAddr);