Mikroelektronika MIKROE-742 데이터 시트

다운로드
페이지 532
FLASH MEMORY LIBRARY
This library provides routines for accessing microcontroller Flash memory. Note that prototypes
differ for MCU to MCU due to the amount of Flash memory.
Note: Due to the AVR family flash specifics, flash library is MCU dependent. Since some AVR MCU's
have more or less than 64kb of Flash memory, prototypes may be different from chip to chip. 
Please refer to datasheet before using flash library.
Note: Currently, Write operations are not supported. See mikroPascal PRO for AVR specifics for details.
Library Routines
- FLASH_Read_Byte 
- FLASH_Read_Bytes 
- FLASH_Read_Word 
- FLASH_Read_Words 
- Flash_Write 
- Flash_Write_8 
- Flash_Write_16 
- Flash_Write_32 
- Flash_Write_64 
- Flash_Erase 
- Flash_Erase_64 
- Flash_Erase_1024 
- Flash_Erase_Write 
- Flash_Erase_Write_64 
- Flash_Erase_Write-1024 
FLASH_Read_Byte
230
MIKROELEKTRONIKA
- SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroPASCAL PRO for AVR
CHAPTER 6
Prototype
// for MCUs with 64kb of Flash memory or less
function FLASH_Read_Byte(address : word) : byte; 
// for MCUs with Flash memory larger than 64kb
function FLASH_Read_Byte(address : dword) : byte; 
Returns
Returns data byte from Flash memory.
Description
Reads data from the specified address in Flash memory.
Requires
Nothing.
Example
// for MCUs with Flash memory larger than 64kb
var tmp : dword;
...
begin
tmp := Flash_Read(0x0D00);
end