4inch Resistive Touch LCD
| ||
Overview
Introduction
4-inch 480 x 800 Multicolor Graphic LCD, with the resistive touch screen, adopts an 8080 parallel interface for LCD communication and supports host controllers such as STM32.
More |
Parameter
Pin Function
Pin | Description |
5V | Power Input |
GND | GND |
D0~D15 | Data Cable |
LCD_CS | LCD Chip Selection |
DC | Instruction/Data Register Selection |
WR | Write Action |
RD | Read Action |
RST | Reset |
NC | Not connect |
BL_VCC | 5V or 3.3V |
GND | Ground |
BL | Backlight Adjustment |
TP_IRQ | Touch panel interruption |
TP_CS | Touch panel chip selection |
TP_SCK | Touch panel SPI clock signal |
TP_SDI | Touch panel SPI data input |
TP_SDO | Touch panel SPI data output |
3.3V | Power Input (or you can choose 5V) |
GND | Ground |
Hardware description
LCD Controller
This 4-inch Resistive Touch LCD supports 16bit/8bit data input. By default, the LCD uses RGB565 color format, 16bits. Users can change to the 8-bit mode by changing the BS resistor to the 0 side.
The controller of the LCD is NT35510, uses an MPU8080 interface:
- Resolution options
- 480RGB × 1024 by pass GRAM
- 480RGB × 864 with 480x24-bitsx 864 GRAM
- 480RGB × 854 with 480x24-bitsx 854 GRAM
- 480RGB × 800 with 480x24-bitsx 800 GRAM
- 480RGB × 720 with 480x24-bitsx 720 GRAM
- 480RGB × 640 with 480x24-bitsx 640 GRAM
- Display mode:
- Full-color mode: 1670M-colors
- Reduce color mode: 262K colors
- Reduce color mode: 65K colors
- Idle mode: 8-colors
- Interface
- 8-/16-/24-bits 80-series MPU interface
- 16-bit serial peripheral interface
- I2C interface
- 16-/18-/24-bits RGB interface
- MIPI Display Serial Interface
- Mobile Display Digital Interface (MDDI V1.2, 1 strobe, and 1 or 2 data lane pairs)
For more details, please refer to datasheet of NT35510.
Communication Protocol
- The above picture is the sequence diagram of MPU8080 parallel port communication write and read register or GRAM, among which:
- CSX is the slave chip select, only when CS is low, the NT35510 will be enabled.
- D/CX is the data/command control pin of the chip. When DC = 0, it is the instruction register, and when DC = 1, it is the data register.
- RDX is read action control pin, RD = 1, WR = 0 is read action.
- WRX is the write action control pin, WR=1, RD=0 is the write action.
- D[23:0] is 24 bidirectional IO data pins, 4inch Resistive Touch LCD only uses 16 of them.
- Host D[23:0] represents the IO pin of the MCU connected to the screen.
- Driver D[23:0] is the IO pin of the screen driver.
The above picture shows the principle of writing 16Bit RGB565 data into NT35510, NT35510 converts 16Bit color data to 24Bit for display.
XPT2046
The touch controller of this LCD is XPT2046. The TP_IRQ pin is used to detect if the LCD is touched. TP_IRQ is LOW if LCD is touched otherwise it is high.
- The XPT2046 is a 4-wire resistive touch screen controller that incorporates a 12-bit 125kHz sampling SAR type A/D converter.
- The XPT2046 supports digital I/O interface voltage from 1.5V to 5.25V.
- The XPT2046 can detect the pressed screen location by performing two A/D conversions.
- The XPT2046 can measure touch screen pressure. On-chip VREF can be utilized for analog auxiliary input, temperature measurement and battery monitoring with the ability to measure voltage from 0V to 5V.
- The XPT2046 has an on-chip temperature sensor.
For more details of XPT2046, please refer to datasheet.
Example
For this LCD, we provide an example based on Waveshare Open103Z development board. The codes use FSMC interface of STM32F103ZET6.
Hardware connection
LCD | STM32 |
5V | 5V |
GND | GND |
D0~D7 | PD14(D0), PD15, PD0, PD1, PE7, PE8, PE9, PE10(D7) |
D8~D15 | PE11(D8), PE12, PE13, PE14, PE15, PD8, PD9, PD10(D15) |
LCD_CS | PG12 |
DC | PG5 |
WR | PD5 |
RD | PD4 |
LCD_RST | PB1 |
NC | Not connect |
BL_VCC | 5V or 3.3V |
GND | GND |
BL | PB0 |
TP_IRQ | PC5 |
TP_CS | PC4 |
TP_SCK | PB13 |
TP_SDI | PB15 |
TP_SDO | PB14 |
3.3V | Not connect |
GND | GND |
Expected result
Resources
Support
Technical Support
If you need technical support or have any feedback/review, please click the Submit Now button to submit a ticket, Our support team will check and reply to you within 1 to 2 working days. Please be patient as we make every effort to help you to resolve the issue.
Working Time: 9 AM - 6 PM GMT+8 (Monday to Friday)