Before writing data to Flash Memory, the user must first call the
FlashWrite()
function, and check whether data can be written or not.
After calling the
EraseFlash()
function, data can be written to that
segment.
Refer to the demo programs in the
CD:\Napdos\7188XABC\7188XC\Demo\BC_TC\Memory folder for more
information.
4.8.2 Using EEPROM
The EEPROM is designed to store data that is not changed frequently,
such as:
Module ID, configuration settings
COM port configuration settings
Small
databases
The erase/write cycle of the EEPROM is limited to1,000,000 erase/write
cycles, so it should not be changed frequently when testing. The
EEPROM can be erased/written in a single byte, so it is very useful in
real world applications.
The I-7188XC(D) has 2K bytes of EEPROM memory, containing 8
blocks and each block contains 256 bytes, giving a total of 2048 bytes of
EEPROM memory. Normally, the EEPROM is in protected mode by
default, meaning that no data can be written to the EEPROM. The
EE_WriteEnable()
function must be called to unprotect it before writing
any data.
For example: To write data to EEPROM block1, address 10, first call the
EE_WriteEnable()
function . The code is shown below.
I-7188XC Series User’s Manual(Ver.1.0, Apr/2007,7MH-21-10) ---
62
Содержание I-7188XC Series
Страница 87: ...I 7188XC Series User s Manual Ver 1 0 Apr 2007 7MH 21 10 87...
Страница 136: ...I 7188XC Series User s Manual Ver 1 0 Apr 2007 7MH 21 10 136...
Страница 142: ...Step 8 Make the project I 7188XC Series User s Manual Ver 1 0 Apr 2007 7MH 21 10 142...
Страница 149: ...Step 8 Rebuild the project I 7188XC Series User s Manual Ver 1 0 Apr 2007 7MH 21 10 149...