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 7188xb.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-7188XB(D) series modules has a capacity
of 512K 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
”7188xb.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\7188XB\Demo\BC_TC\
Memory\
FlashErase()
Function: Erases
a
single
sector of the Flash memory.
Syntax:
int FlashErase(unsigned seg);
I-7188XB Series User’s Manual(Ver.1.0, Apr/2007,
7MH-020-10
) ---
115
Содержание I-7188XB Series
Страница 88: ...I 7188XB Series User s Manual Ver 1 0 Apr 2007 7MH 020 10 88...
Страница 138: ...I 7188XB Series User s Manual Ver 1 0 Apr 2007 7MH 020 10 138...
Страница 144: ...Step 8 Make the project I 7188XB Series User s Manual Ver 1 0 Apr 2007 7MH 020 10 144...
Страница 151: ...Step 8 Rebuild the project I 7188XB Series User s Manual Ver 1 0 Apr 2007 7MH 020 10 151...