buydisplay.com
EastRising
4.2.24 Register Setting Instructions
The register setting instructions are used to save data. A total of 256 registers can be set. At the
same time, it can be used with 9A instructions, allowing the serial screen to execute other
instructions set in 9A instructions according to the contents of the registers. These instructions only
need to be passed through UART or SPI will be passed to the TFT serial screen of
ER-TFT028A2-4-5465 and will be executed. It is a fixed command of the host system or
motherboard. This command does not need to be set in the UartTFT_Tool host computer software
or UartTFT.ini.
表
4-28
:
Register Control Instructions
Instruction
Function
Instruction
Code
No.
Instruction
Parameter
Instruction Description
Execute 9A
Instruction
CAh
Reg
Execute 9A [Reg] command, this command allows the
TFT serial screen to execute other commands according
to the contents of the register
Setting Register
CBh
Reg
Set the pointed register, Reg = 00 ~ FF
Data Input
CCh
Data
Write the data Data into the current register. Before
executing, use the CB command to select the register.
Read Data
CDh
00
Read the content value of the current register, you need
to use the CB command to select the register before
execution.
Register Data
Plus 1
CEh
Reg
Reg represents which register, add 1 to the data in the
register.
Register Data
Minus 1
CFh
Reg
Reg represents which register, subtract 1 from the data
in the register.
For example, set the following 9A command, 80 display picture command and 88 display GIF0
animation command in the text compiler UartTFT.ini:
9Ah #00: 0x80, 0x00, 0x80, 0x01
9Ah #01: 0x80, 0x02, 0x80, 0x01
9Ah #02:
0x80, 0x03
9Ah #03:
0x80, 0x04, 0x88, 0x00
9Ah #04:
0x80, 0x05, 0xB8, 0x00
80h #03: 10, 0, 100, 100 // The 10th picture with the number displayed in the coordinates.
80h #04: 12, 0, 200, 100 // The 12th picture with the number displayed in the coordinates.
80h #05: 20, 0, 300, 100 // The 20th picture with the number displayed in the coordinates.
88h #00: 1, 3, 400, 150, GIF0, 0 // Display GIF0 animation at (400,150) coordinates