/* EEPROM-r.c: Reads the data that has been written to the EEPROM. Compiler: BC++ 3.1, Turbo C++ 1.01 (3.01) MSVC 1.52 Compile mode: Large Project: EEPROM-r.c ..\..\Lib\upac5000.lib Hordware: uPAC-5000 Description The uPAC-5000 module contains 16K bytes of EEPROM which includes space reserved for the system. The first 4K bytes (Block 0 ~ 15) reserved for the system, so user can use the other blocks whose total size of 12K bytes. [Dec 28, 2011] by Liam */ #include #include "..\..\lib\upac5000.h" void main(void) { int addr=0; InitLib(); /* InitLib() must be called before other functions in the library may be used */ while(addr<256) { DelayMs(10); Print("\r\n The value writing to 1 block address %d of EEPROM is %d", addr, EE_RandomRead(1, addr)); addr++; if(addr%25==0) { Print("\n\rPress any key to continue..."); Getch(); } } }