SmartGPU2-LCD480X320Touch-CommandSet

SMART GPU 2 3.5” TOUCH
Command Set
Vizic Technologies ©2014 124
2.11 EEPROM-FLASH Commands
The Smart GPU 2 includes an embedded EEPROM like-FLASH 16Kb storage,
this is mapped as 8 Pages of 2048 bytes, this EEPROM-FLASH is useful to store non-
volatile data when an application require to maintain data even if power is removed from
the system.
The next image shows the EEPROM-FLASH memory map and the Internal 2048
bytes RAM Buffer for Read-Write Operations:
The internal 2048 RAM buffer is used to perform single byte read-write
operations, once data is ready to be saved, contents of all EEPROM RAM Buffer must
be saved on the EEPROM-FLASH Page 0 7. A typical EEPROM-FLASH usage
procedure example is described next:
*Consider that Page0 contains data that it needs to be copied to Page2:
1.-Init/Clear all EEPROM RAM Buffer(2048b) with 0xFF.
2.-Fill all EEPROM RAM Buffer(2048b) with Contents of Page 0(2048b).
3.-Data is ready to be saved from EEPROM RAM Buffer to EEPROM Page2.
4.-Erase EEPROM Page2(2048b).
5.-Save data from EEPROM RAM Buffer(2048b) to EEPROM Page2(2048b).
6.-Compare EEPROM RAM Buffer contents(2048b) to EEPROM Page2 contents(2048b).
7.-Contents must be the same of EEPROM Page0 and EEPROM Page2.
User must take in account that all the “Fill RAM Buffer with EEPROM PageX” ,
“Save RAM Buffer to EEPROM PageX”, “compare Buffer VS PageX”, “Erase PageX”
are 2048bytes operations, this means that all PageX is copied to all the Buffer, all Buffer
contents are Saved to the PageX, all Buffer contents are compared VS PageX and all
PageX contents are erased depending on the called command.