SmartGPU2-LCD480X320Touch-CommandSet

SMART GPU 2 3.5” TOUCH
Command Set
Vizic Technologies ©2014 127
2.11.2 Read Bytes From EEPROM Buffer 52hex ‘R’ ascii
Commands (host)
6 bytes
1.- 0x45 (hex), E (ascii). *EEPROM command.
2.- 0x52 (hex), R (ascii).
3.- EEPROM RAM Buffer Address High Byte.
4.- EEPROM RAM Buffer Address Low Byte.
5.- Bytes To Read High Byte.
6.- Bytes To Read Low Byte.
Responses (device)
DRB(N bytes) + SRB(2 bytes) + ACK/NAK(1
byte).
1-N.- DRB(Data Read Bytes).
N+1.-SRB(Successfully Read Bytes) High byte
N+2.-SRB(Successfully Read Bytes) Low byte
N+3.-0x4F (hex), O (ascii) success ACK or
0x46 (hex), F (ascii) fail NAK.
Description
This Command Reads Data from the EEPROM
RAM Buffer starting from the EEPROM RAM
Buffer Address(0-2047) and reading the Bytes
To Read parameter, this could be from 1-2048
bytes.
After the command succeeded, Successfully
Read bytes should be checked to detect the valid
data bytes. In case of Successfully Read bytes
< Bytes to Read, it means the read pointer
reached end of the EEPROM RAM Buffer during
read operation. This command always will try to
read the Bytes to Read parameter, however note
that even Successfully Read bytes < Bytes to
Read, this command will always return the
requested Byte to Read bytes, that is: if
Successfully Read bytes < Bytes to Read then
the SmartGPU 2 will complete/fill requested data
bytes with 0x00(hex). Successfully Read bytes
parameter will be the number of returned valid
read bytes, the rest will be just 0x00(hex).
During Read, Write, Erase, Compare, etc.
EEPROM Functions/Commands, user may not
call any other command rather than EEPROM
commands, as the EEPROM RAM Buffer data is
only valid during calls to EEPROM only functions,
if any other function/command different than
EEPROM related is called, EEPROM RAM Buffer
will be discarded and data in it will be lost.