4inch Resistive Touch LCD

From Waveshare Wiki
Jump to: navigation, search
4inch Resistive Touch LCD
4inch-Resistive-Touch-LCD

4 inch 480x800 Multicolor Graphic LCD, with resistive touch screen
{{{name2}}}

{{{name3}}}

{{{name4}}}

{{{name5}}}

Primary Attribute
Category: LCD, OLEDs / LCDs
{{{userDefinedInfo}}}: {{{userdefinedvalue}}}
Brand: Waveshare
Website
English: Waveshare Website
Chinese: 官方中文站点
Onboard Interfaces
Related Products

Introduction

4 inch 480*800 Multicolor Graphic LCD, with resistive touch screen

More

Features

  • 4inch 65K colorful screen
  • 480×800 resolution, clear display
  • Adopts 16-bit parallel bus transmission, fast data rate
  • Onboard touch controller, smoother touch experience
  • Programmable backlight control, power saving

Interface

PIN Description
5V 5V Power input
GND Ground
D0~D15 Data pins
LCD_CS LCD chip-selection
DC Command/Data selection
WR Write
RD Read
RST Reset
NC Not connected
BL_VCC 5V/3.3V
GND Ground
BL Back-light pin
TP_IRQ Interrupt pin of touch panel
TP_CS Chip selection pin of touch panel
TP_SCK SPI SCK pin of touch panel
TP_SDI SPI data input of touch panel
TP_SDO SPI data output of touch panel
3.3V 3.3V power input.(You can only use 3.3V or 5V)
GND Ground

Hardware description

LCD Controller

This 4inch Resistive Touch LCD supports 16bit/8bit data input. By default, the LCD use RGB565 color format, 16bits. Users can change to 8bits mode by change the BS resistor to 0 side.

The controller of the LCD is NT35510, use 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

Touch Controller

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

4inch Resistive Touch LCD 005.jpg

Expected result

4inch Resistive Touch LCD 007.jpg

Resources


FAQ

Support

Mail.png Contact your seller (fast response and most recommended)

or send emails to [email protected] (not fast enough but please be patient) for help.

Our working time: 09:00-18:00 (UTC+8 Monday to Saturday)