Google Chat: zj734465502@gmail.com
+86-0755-88291180
sales01@spotpear.com
dragon_manager@163.com
services01@spotpear.com
manager01@spotpear.com
WhatsApp:13246739196
This is a 2.4inch LCD display module, supports 65K RGB colors. The display has 240×320 resolution, SPI Interface.
PIN | Description |
VCC | 3.3V |
GND | GND |
DIN | SPI data input (MOSI) |
CLK | SPI clock input (SCLK) |
CS | Chip selection (low active) |
DC | Data/Command control |
RST | Reset |
BL | Backlight |
The controller of this display supports 12bits, 16bits and 18 bits color format, that are RGB44, RGN565 and RGB66. We use the RGB565 for color displying.
For faster communication and reduce the pins, this display use SPI interface.
Note: It is not like the traditional SPI protocol, it only uses MOSI to send data from master to slave for the LCD display. For details please refer to Datasheet Page 105.
RESX: Reset, should be pull-down when power on, set to 1 other time.
CSX: Slave chip select. The chip is enabled only CS is set Low
D/CX: Data/Command selection; DC=0, write command; DC=1, write data
SDA: Data transmitted. (RGB data)
SCL: SPI clock
The SPI communication protocol of the data transmission uses control bits: clock phase (CPHA) and clock polarity (CPOL):
CPOL defines the level while the synchronization clock is idle. If CPOL=0, then it is LOW.
CPHA defines at whish clock’s tick the data transmission starts. CPHL=0 – at the first one, otherwise at the second one
This combination of two bits provides 4 modes of SPI data transmission. The commonly used is SPI0 mode, i.e. GPHL=0 and CPOL=0.
According to the figure above, data transmitting begins at the first falling edge, 8bit data are transmitted at one clock cycle. It is SPI0. MSB.