/* Flash-r.c: To read the value writing in flash memory address from 1 to 65535. **To press 'q' to quit this program. Compiler: MSC 6.0, MSVC 1.52. Compile mode: Large Project: Flash-r.c ..\lib\7188e.lib Hordware: 7188XB [30,Jan,2007] by Liam [Aug,4,2011] by Nicholas */ #include #include #include #include #include #include "..\..\lib\7188e.h" void main(void) { int data; unsigned e=0x9000,i=0; char c; while(i<65535) { FlashRead(e,i); Print("\r\nThe value which segment %u of Flash Member is %d",i,FlashRead(e,i)); i++; if (i%100==0) { Print("\r\nPress q to quit or any key to continue..."); c=Getch(); if ((c=='q') || (c=='Q')) return; } } }