Application Kit TC2X4
Hardware Manual
Application Kit Information
User’s Manual
3-3
V 1.0, 2014-10
3.3.1
Write a display register
A single write to any register can be done by a 32 bit transfer of SPI. Make sure that the
SLSO08 is low during this 32 bit. Bit 31 must be transfered first.
Bit 31 must be 0, this will be indicate a write access.
Bit 30 must be 0, this will be indicate a single access.
Bit 29...Bit 22 is the 8 bit register number which will be written
Bit 21...Bit 6 is the 16bit value which will be written
Bit 5...Bit 0 are dummy bits which are used to execute the write.
To speedup the writing (e.g. write to ram of display controller) it is possible to make a
endless transfer. This is done by this:
first 10 bit transfer
Bit 9 must be 0, this will be indicate a write access.
Bit 8 must be 1, this will be indicate an endless transfer.
Bit 7...Bit 0 is the 8 bit register number which will be written
Now you need to transfer only 16bit values for the registers. With the first 16 bit value
there is no action on the display. With the second value transfer is a write to the register
started. This means after the last value you must make a dummy transfer to write the last
value.
The endless mode can only be leave by a rising edge of SCLK0 with SLSO08 set to high.
This can be done by a dummy transfer to any other chip select or by a transfer from the
touch controller.
3.3.2
Read a display register
A single read from any register can be done by a 32 bit transfer of SPI. Make sure that
the SLSO08 is low during the complete transfer.
first transfer has 16 bit:
Bit 15 must be 1, this will be indicate a read access.
Bit 14 must be 0, this will be indicate a single access.
Bit 13...Bit 7 is the 8 bit register number which will be read
Bit 5...Bit 0 are dummy bits to setup the register number.
second transfer must have 26 bits:
Bit 25...Bit 16 are dummy bits which are needed to readout the register value
Bit 15...Bit 0 are dummy bits to transfer the readed value.
To speedup the reading (e.g. reading from ram of display controller) it is possible to make
a endless transfer. This is done by this:
first 16 bit transfer:
Downloaded by [email protected] 09/08/2019 14:04:27