Mikroelektronika MIKROE-350 データシート

ページ / 526
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 mikroBasic PRO for AVR specifics for
details.
Library Routines
- FLASH_Read_Byte 
- FLASH_Read_Bytes 
- FLASH_Read_Word 
- FLASH_Read_Words 
FLASH_Read_Byte
214
MIKROELEKTRONIKA
- SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroBasic PRO for AVR
CHAPTER 6
Prototype
' for MCUs with 64kb of Flash memory or less
sub function FLASH_Read_Byte(dim address as wordas byte 
' for MCUs with Flash memory larger than 64kb
sub function FLASH_Read_Byte(dim address as longwordas 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
dim tmp as longword
...
tmp = Flash_Read(0x0D00)
...