I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---
65
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\7188XA\Demo\BC_TC\Memory folder for more
information.
4.8.2 Using RTC and NVSRAM
The I-7188XA(D) module contains both an RTC and NVRAM, which are
located on the same chip, and an onboard Li battery that is used as
backup for at least 10 years. The features of the RTC are as follows:
BIOS support for RTC time and data
MiniOS7 supports RTC time and date
Seconds, minutes, hours, date of the month
Month, day of the week, year (Leap year valid up to 2079)
NVSRAM: 31 bytes
The NVSRAM can be read/written any number of times. The features of
NVSRAM are as follows:
Data Validity: 10 years
Read/write cycles: unlimited
Total 31 bytes
The
ReadNVRAM()
function can be used to read one byte of data from
the NVRAM and
WriteNVRAM()
function can be used to write one byte
of data to the NVRAM. The code to write data to NVRAM address 0 is
shown below.
int data=0x55, data2;
InitLib(); /* Initiate the 7188xa library */
WriteNVRAM(0, data);
data2= ReadNVRAM(0); /* now data2=data=0x55 */
Summary of Contents for I-7188XA
Page 62: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 62 5 6 COM1 RS 232 1 2 232...
Page 90: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 90 1 2...
Page 140: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 140...
Page 146: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 146 Step 8 Make the project...
Page 153: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 153 Step 8 Rebuild the project...
Page 158: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 158...
Page 162: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 162...
Page 164: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 164...