Datasheet

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 mikroC PRO for AVR specifics for
details.
Library Routines
- FLASH_Read_Byte
- FLASH_Read_Bytes
- FLASH_Read_Word
- FLASH_Read_Words
FLASH_Read_Byte
278
MIKROELEKTRONIKA - SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroC PRO for AVR
CHAPTER 6
Prototype
// for MCUs with 64kb of Flash memory or less
char FLASH_Read_Byte(unsigned int address);
// for MCUs with Flash memory larger than 64kb
char FLASH_Read_Byte(unsigned long address);
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
unsigned long tmp;
...
tmp = Flash_Read(0x0D00);
...