I-8000 Series (C Language Based) User Manual, Version 1.0.1 Page: 100
Copyright © 2012 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
4.5.
API for NVRAM
●
The I-8000 is equipped with an RTC (Real Time Clock), 31 bytes of NVRAM can be used
to store data.
●
NVRAM is SRAM, but it uses battery to keep the data, so the data in NVRAM does not
lost its information when the module is power off.
●
NVRAM has no limit on the number of the re-write times. (Flash and EEPROM both
have the limit on re-write times) If the leakage current is not happened, the battery
can be used 10 years.
API for writing data to the NVRAM
1. WriteNVRAM()
The WriteNVRAM() must be called in order to write data to the NVRAM.
API for reading data from the NVRAM
2. ReadNVRAM()
The ReadNVRAM() must be called in order to write data to the NVRAM.
For example, use the following code to write data to the NVRAM address 0.