![background image](http://html1.mh-extra.com/html/icp-das-usa/i-8411/i-8411_user-manual_3619301095.webp)
I-8000 Series (C Language Based) User Manual, Version 1.0.1 Page: 95
Copyright © 2012 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
For user
Reserved for
system use
System
OS
4.3.
API for EEPROM
●
The EEPROM contains 64 blocks (block 0 ~ 63), and each block has 256 bytes (address 0
~ 255), with a total size of 16,384 bytes (16K) capacity.
●
The default mode for EEPROM is write-protected mode.
●
The system program and OS are stored in EEPROM that are allocated as shown below.
API fo
r
writing data to the EEPROM
1.
EE_WriteEnable()
Before
writing data to the EEPROM, the
EE_WriteEnable() must be called to write-enable
the
EEPROM.
2.
EE_WriteProtect()
After the
data has finished being written to the EEPROM,
the
EE_WriteProtect() must be called to in order to
write-protect the EEPROM.
3.
EE_MultiWrite()
After
using the EE_WriteEnable() to write-enable
EEPROM,
the EE_MultiWrite()must be called to write the
data.
API for
reading data from the EEPROM
4. EE_MultiRead()
The EE_WriteEnable() must be called to read data from the EEPROM no matter what
the current mode is.
For example, to write data to block1, address 10 of the EEPROM.
Block 0 ~ 6
Block 7
Block 8 ~ 31
Block 32 ~ 64