WAVESHARE XPT2046 3.2inch Touch LCD User Manual
- June 15, 2024
- WAVESHARE
Table of Contents
WAVESHARE XPT2046 3.2inch Touch LCD
Specifications
- Screen Size: 3.2 inch
- Resolution: 3 20×240 pixels
- Touch Technology: Resistive touchscreen
- Touch Controller: XPT2046
- TFT LCD Driver Chip : ILI9341
- Color Depth: 262144 colors
- RAM: 172820 bytes
- Data Interface Modes: i80-system MPU port, serial data transfer port (SPI), RGB 6-/16-/18-bit port
Overview
Hardware Resource
ILI9341
- ILI9341 is a 262144-color TFT LCD driver chip with a resolution of 240×320 (RGB) and 172820 (240 x 320x 18/8) bytes of RAM. Each pixel depth can reach 18 bits.
- ILI9341 has the following data interface modes:
- i80-system MPU port (8-/9-/16-/18-bit bus width).
- serial data transfer port (SPI).
- RGB 6-/16-/18-bit port (DOTCLK, VSYNC, HSYNC, ENABLE, DB[17:0]).
The corresponding relationship between the 18-bit RGB assignment of ILI9341
and LCD GRAM in this screen is shown in the figure:
According to the above figure, ILI9341 is in the 16-bit mode and the available
GRAM data are D17~D13 and D11~D1. D12 and D0 are not used. D12 and D0 of
ILI9341 are not adapted in our LCD module. D17~D13 and D11~D1 of ILI9341
correspond to D15~D0 of MCU. In the 16-bit data of the MCU, the lowest 5 bits
represent blue, the middle 6 bits are green, and the highest 5 bits are red.
The larger the value, the darker the color.
8080 16-bit Interface Sequence Introduction
- For more details about the register, please refer to ILI9341.pdf.
- Here we only introduce the sequence requirements for reading and writing.
The 8080 interface is designed by Intel. It is a parallel, asynchronous, half- duplex communication protocol. It is used for external expansion of RAM and ROM and is also used for LCD interface later.
- Four control cables
- RD: Write enable (write information to register)
- WR: read enable (read information from the register)
- DC(RS): data/command (1 for reading and writing data, 0 for reading and writing commands)
- CS: chip select
- The sequence diagram for writing commands or data is as follows:
- The sequence diagram for reading information is as follows:
XPT2046
- The XPT2046 is a 4-wire resistive touchscreen controller with a successive approximation A/D converter with 12-bit resolution and a conversion rate of 125KHZ.
- The XPT2046 supports low-voltage I/O interfaces from 1.5V to 5.25V.
- The XPT2046 can detect the touched position on the screen by performing two A/D conversions, in addition to measuring the pressure applied on the touch screen. The built-in 2.5V reference voltage can be used as an auxiliary input, temperature measurement, and battery monitoring. The voltage range of battery monitoring can be from 0V to 5V.
- The XPT2046 has a temperature sensor integrated on-chip. Under typical operating conditions of 2.7V, with the reference voltage off, the power consumption can be less than 0.75mW. The XPT2046 is available in tiny packages: TSSOP-16, QFN-16, and VFBGA-48. The working temperature range is -40℃~+85℃. Fully compatible with ADS7846, TSC2046, and AK4182A.
Hardware Description
Sample Demo
This manual uses the development board of the main control chip STM32F103RCT6 to illustrate the basic usage of this LCD. Users can also use other similar development boards for development. 3.2inch 320×240 Touch LCD (D) and STM32F103RCT6 connection interface diagram:
Procedure flow chart
Source code analysis:
Resources
Documentation
- Schematic diagram
- Dimensions
Demo
- Sample demo
Datasheet
- ILI9325
- XPT2046
Support
If you require technical support, please go to the page and open a ticket.
Frequently Asked Questions (FAQ)
- Q: What is the resolution of the LCD screen?
- A: The resolution of the LCD screen is 320×240 pixels.
- Q: What is the color depth of the LCD screen?
- A: The LCD screen has a color depth of 262144 colors.
- Q: What are the available data interface modes for the ILI9341 TFT LCD driver chip?
- A: The available data interface modes are the i80-system MPU port, serial data transfer port (SPI), and RGB 6-/16-/18-bit port.
- Q: What is the resolution of the XPT2046 touchscreen controller?
- A: The XPT2046 touchscreen controller does not have a resolution. It detects the touched position on the screen by performing two A/D conversions.
References
- Log in - Waveshare Wiki
- File:3.2inch 320x240 Touch LCD (D).jpg - Waveshare Wiki
- File:3.2inch 320x240 Touch LCD Spec 03.jpg - Waveshare Wiki
- File:3.2inch 320x240 Touch LCD Spec 04.jpg - Waveshare Wiki
- File:3.2inch 320x240 Touch LCD Spec01.jpg - Waveshare Wiki
- File:3.2inch 320x240 TouchHardware007.png - Waveshare Wiki
- File:3.2inch 320x240 TouchHardware01.png - Waveshare Wiki
- Waveshare Wiki
Read User Manual Online (PDF format)
Read User Manual Online (PDF format) >>