Template: Pico LCD 1.14 Spec

From Waveshare Wiki
Jump to: navigation, search

Overview

Provide Pico C demo

Parameters

Parameter name parameters
Power Supply 2.6V ~ 5.5V
Operating Current 40mA
Screen Type IPS
Control Chip ST7789VW
Communication Interface 4-wire SPI
Resolution 135 (H) RGB x 240 (V) Pixels
Pixel Size 0.1101 (H) x 0.1035 (V)mm
Display Size 14.864 (H) x 24.912 (V)mm
Dimensions 25.00 (H) x 52.00 (V) mm

Pinout

Pico-LCD-1.14-details-inter.jpg

LCD and the controller

The built-in controller used in this LCD is ST7789VW, which is an LCD controller with 240 x RGB x 320 pixels, while the pixels of this LCD itself is 135 (H) RGB x 240 (V). There are two types of horizontal and vertical screens, so the internal RAM of the LCD is not fully used. The LCD supports 12-bit, 16-bit, and 18-bit input color formats per pixel, namely RGB444, RGB565, and RGB666 three color formats, this routine uses RGB565 color format, which is also a commonly used RGB format.
The LCD uses a four-wire SPI communication interface, which can greatly save the GPIO port, and the communication speed will be faster.

Working Protocol

0.96inch lcd module spi.png
Note: Different from the traditional SPI protocol, the data line from the slave to the master is hidden since the device only has a display requirement.
RESX Is the reset pin, it should be low when powering the module and be higher at other times;;
CSX is slave chip select, when CS is low, the chip is enabled.
D/CX is data/command control pin, when DC = 0, write command, when DC = 1, write data
SDA is the data pin for transmitting RGB data, it works as the MOSI pin of SPI interface;
SCL work s the SCLK pins of SPI interface.
SPI communication has data transfer timing, which is combined by CPHA and CPOL.
CPOL determines the level of the serial synchronous clock at an idle state. When CPOL = 0, the level is Low. However, CPOL has little effect on the transmission.
CPHA determines whether data is collected at the first clock edge or at the second clock edge of the serial synchronous clock; when CPHL = 0, data is collected at the first clock edge.
There are 4 SPI communication modes. SPI0 is commonly used, in which CPHL = 0, CPOL = 0.