/* NVRam-r.c: 1. Reading the data that has been written to the NVRAM. 2. The data will be increased by 1. Compiler: BC++ 3.1, Turbo C++ 1.01 (3.01) MSVC 1.52 Compile mode: Large Project: NVRam-r.c ..\..\Lib\upac5000.lib Hordware: uPAC-5000 Description The uPAC-5000 module contains both an RTC and NVRAM, which located on the same chip, and an onboard Li battery that is used as backup for at the least 10 years. [Dec 28, 2011] by Liam */ #include #include #include #include "..\..\LIB\upac5000.h" void main(void) { int addr=0; InitLib(); while(addr<31) { DelayMs(10); Print("\n\rThe valume of writing to NVRAM address %d is %d", addr, ReadNVRAM(addr)); addr=addr++; } }