Type 5: Flash Memory
Function Description
FlashReadId Retrieces the information about Flash.
FlashErase Erases
a
single
sector of the Flash memory.
FlashWrite Writes one byte of data to the Flash memory.
FlashRead Reads one byte of data from the Flash memory.
…More…
There are many other functions related to the Flash
memory. Please refer to the 7188xc.h header file and the
user manual on the enclosed CD, which can be found at
CD:\Napdos\minios7\document\lib_manual_for_7188xabc\index.htm
for more detailed information.
The Flash memory used in I-7188XC(D) series modules has a capacity
of 256K bytes. The MiniOS7 will use the last 64K bytes, and the
remaining space can be used to store custom programs or data.
Application developers can use these functions to write data to the
Flash memory. When writing data to the Flash memory, data only be
written from “1” to “0”, and cannot be written from “0” to “1”. So, before
writing data to the Flash memory, must be erased first. The erase
process will cause all data to revert to 0xFF, that is all data bits will be
“1”. Only then can data be written. The FlashErase() function is used to
erase one sector (64K bytes) each time.
FlashReadId()
Function: Retrieves the information about Flash.
Syntax:
int FlashReadId(void);
Header: #include
”7188xc.h”
Description: Reads the Flash memory device code (high byte) and
manufacturer code (low byte).
Return Value: 0xA4C2 (MXIC 29f040), 0xA401 (AMD 29f040)
Example: See
CD:\Napdos\7188XABC\7188XC\Demo\BC_TC\
Memory\
FlashErase()
Function: Erases
a
single
sector of the Flash memory.
Syntax:
int FlashErase(unsigned seg);
I-7188XC Series User’s Manual(Ver.1.0, Apr/2007,7MH-21-10) ---
113
Содержание 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...