1. Introduction
This manual provides detailed instructions for the Surenoo 3.2 inch 320x240 Serial SPI TFT LCD Module. The module utilizes a 4-wire SPI communication method and is driven by an ILI9341 IC. It features a 240x320 resolution and offers an optional resistive touch function. The module integrates an LCD display, backlight control circuitry, and touch screen control circuitry (for touch-enabled versions).

Figure 1: 3.2 inch 320x240 SPI TFT LCD Module with Resistive Touch (RTP)

Figure 2: 3.2 inch 320x240 SPI TFT LCD Module without Touch (NTP)
2. Product Features
- 3.2-inch color screen supporting 16-bit 65K color display for rich visuals.
- 240x320 pixel resolution with optional resistive touch function.
- Utilizes a 4-wire SPI serial bus, requiring minimal I/O pins for display illumination.
- Equipped with an SD card slot for easy expansion and experimentation.
- Comes with a rich sample program for various applications.
- Manufactured to military-grade process standards, ensuring long-term stable operation.
- Comprehensive underlying driver technical support is provided.
3. Specifications
| Name | Parameter |
|---|---|
| Display Color | RGB 65K color |
| SKU (With Touch Panel) | MSP3218 |
| SKU (Without Touch Panel) | MSP3217 |
| Screen Size | 3.2 (inch) |
| Type | TFT/TN |
| Driver IC | ILI9341 |
| Resolution | 240*320 (Pixel) |
| Module Interface | 4-Wire SPI interface |
| Active Area (AA area) | 48.60x64.80 (mm) |
| Module PCB Size | 55.04x89.30 (mm) |
| Operating Temperature | -20℃~70℃ |
| Storage Temperature | -30℃~80℃ |
| VCC Power Voltage | 3.3V~5V |
| Logic IO Port Voltage | 3.3V (TTL) |
| Power Consumption | About 90mA |

Figure 3: Detailed Specifications Table
4. Setup
4.1 External Dimensions

Figure 4: External Dimensions Diagram (all measurements in mm)
4.2 Interface Definition (Pinout)

Figure 5: Module Back View with Pin Labels
| Number | Module Pin | Description |
|---|---|---|
| 1 | VCC | LCD power supply is positive (3.3V~5V) |
| 2 | GND | LCD Power ground |
| 3 | CS | LCD selection control signal |
| 4 | RESET | LCD reset control signal |
| 5 | DC/RS | LCD register / data selection control signal |
| 6 | SDI(MOSI) | LCD SPI bus write data signal |
| 7 | SCK | LCD SPI bus clock signal |
| 8 | LED | LCD backlight control signal (high level lighting, if you do not need control, please connect 3.3V) |
| Touch Screen Signal Line Wiring (for modules with touch function) | ||
| 10 | T_CLK | Touch screen SPI bus clock signal |
| 11 | T_CS | Touch screen chip select control pin |
| 12 | T_DIN | Touch screen SPI bus write data pin |
| 13 | T_DO | Touch screen SPI bus read data pin |
| 14 | T_IRQ | Touch screen interrupt detection pin |
Note: Pin 9 (SDO/MISO) is for LCD SPI bus read data signal and can be left unconnected if not needed. If the module does not have touch functionality, pins 10-14 should not be connected.
4.3 Wiring Instructions for Microcontrollers
The module supports various microcontrollers. Below are common wiring configurations. Always ensure correct voltage levels (3.3V or 5V) for VCC and Logic IO Port Voltage.
4.3.1 Arduino UNO
| Number | Module Pin | Corresponding UNO Pin |
|---|---|---|
| 1 | SDO(MISO) | 12 |
| 2 | LED | A0 |
| 3 | SCK | 13 |
| 4 | SDI(MOSI) | 11 |
| 5 | DC/RS | A3 |
| 6 | RESET | A4 |
| 7 | CS | A5 |
| 8 | GND | GND |
| 9 | VCC | 5V/3.3V |
| 10 | T_IRQ | 6 |
| 11 | T_DO | 4 |
| 12 | T_DIN | 5 |
| 13 | T_CS | 2 |
| 14 | T_CLK | 3 |
4.3.2 Arduino MEGA2560
| Number | Module Pin | Corresponding MEGA2560 Pin |
|---|---|---|
| 1 | SDO(MISO) | 50 |
| 2 | LED | A0 |
| 3 | SCK | 52 |
| 4 | SDI(MOSI) | 51 |
| 5 | DC/RS | A3 |
| 6 | RESET | A4 |
| 7 | CS | A5 |
| 8 | GND | GND |
| 9 | VCC | 5V/3.3V |
| 10 | T_IRQ | 49 |
| 11 | T_DO | 47 |
| 12 | T_DIN | 48 |
| 13 | T_CS | 45 |
| 14 | T_CLK | 46 |
4.3.3 STC89C52RC and STC12C5A60S2 Microcontrollers
| Number | Module Pin | Corresponding STC89/STC12 Pin |
|---|---|---|
| 1 | VCC | 5V/3.3V |
| 2 | GND | GND |
| 3 | CS | P13 |
| 4 | RESET | P33 |
| 5 | DC/RS | P12 |
| 6 | SDI(MOSI) | P15 |
| 7 | SCK | P17 |
| 8 | LED | P32 |
| 9 | SDO(MISO) | P16 |
| 10 | T_CLK | P36 |
| 11 | T_CS | P37 |
| 12 | T_DIN | P34 |
| 13 | T_DO | P35 |
| 14 | T_IRQ | P40 |
4.3.4 STM32F103RCT6 Microcontroller
| Number | Module Pin | Corresponding MiniSTM32 Pin |
|---|---|---|
| 1 | VCC | 5V/3.3V |
| 2 | GND | GND |
| 3 | CS | PB11 |
| 4 | RESET | PB12 |
| 5 | DC/RS | PB10 |
| 6 | SDI(MOSI) | PB15 |
| 7 | SCK | PB13 |
| 8 | LED | PB9 |
| 9 | SDO(MISO) | PB14 |
| 10 | T_CLK | PC0 |
| 11 | T_CS | PC13 |
| 12 | T_DIN | PC3 |
| 13 | T_DO | PC2 |
| 14 | T_IRQ | PC10 |
4.3.5 STM32F103ZET6 Microcontroller
| Number | Module Pin | Corresponding Elite STM32 Pin |
|---|---|---|
| 1 | VCC | 5V/3.3V |
| 2 | GND | GND |
| 3 | CS | PB11 |
| 4 | RESET | PB12 |
| 5 | DC/RS | PB10 |
| 6 | SDI(MOSI) | PB15 |
| 7 | SCK | PB13 |
| 8 | LED | PB9 |
| 9 | SDO(MISO) | PB14 |
| 10 | T_CLK | PC0 |
| 11 | T_CS | PC13 |
| 12 | T_DIN | PC3 |
| 13 | T_DO | PC2 |
| 14 | T_IRQ | PC10 |
4.3.6 STM32F407ZGT6 Microcontroller
| Number | Module Pin | Corresponding Explorer STM32F4 Pin |
|---|---|---|
| 1 | VCC | 5V/3.3V |
| 2 | GND | GND |
| 3 | CS | PB15 |
| 4 | RESET | PB12 |
| 5 | DC/RS | PB14 |
| 6 | SDI(MOSI) | PB5 |
| 7 | SCK | PB3 |
| 8 | LED | PB13 |
| 9 | SDO(MISO) | PB4 |
| 10 | T_CLK | PB0 |
| 11 | T_CS | PC5 |
| 12 | T_DIN | PF11 |
| 13 | T_DO | PB2 |
| 14 | T_IRQ | PB1 |
4.3.7 STM32F429IGT6 Microcontroller
| Number | Module Pin | Corresponding Apollo STM32F4/F7 Pin |
|---|---|---|
| 1 | VCC | 5V/3.3V |
| 2 | GND | GND |
| 3 | CS | PD11 |
| 4 | RESET | PD12 |
| 5 | DC/RS | PD5 |
| 6 | SDI(MOSI) | PF9 |
| 7 | SCK | PF7 |
| 8 | LED | PD6 |
| 9 | SDO(MISO) | PF8 |
| 10 | T_CLK | PH6 |
| 11 | T_CS | PI8 |
| 12 | T_DIN | PI3 |
| 13 | T_DO | PG3 |
| 14 | T_IRQ | PH11 |
4.3.8 STM32F767IGT6, STM32H743IIT6 Microcontrollers
| Number | Module Pin | Corresponding Apollo STM32F4/F7 Pin |
|---|---|---|
| 1 | VCC | 5V/3.3V |
| 2 | GND | GND |
| 3 | CS | PD11 |
| 4 | RESET | PD12 |
| 5 | DC/RS | PD5 |
| 6 | SDI(MOSI) | PB15 |
| 7 | SCK | PB13 |
| 8 | LED | PD6 |
| 9 | SDO(MISO) | PB14 |
| 10 | T_CLK | PH6 |
| 11 | T_CS | PI8 |
| 12 | T_DIN | PI3 |
| 13 | T_DO | PG3 |
| 14 | T_IRQ | PH11 |
5. Operating Instructions
5.1 Hardware Configuration Overview
The LCD module's hardware circuit comprises three main parts:
- **LCD Display Control Circuit**: Manages the LCD's control and data transfer pins.
- **Touch Screen Control Circuit**: Handles touch input and coordinate reading (for touch-enabled modules).
- **Backlight Control Circuit**: Controls the display's backlight. If backlight control is not needed, the backlight pin can be directly connected to the 3.3V power supply.
5.2 ILI9341 Controller Working Principle
The ILI9341 controller supports a maximum resolution of 240x320 and includes a 172800-byte GRAM. It supports 8-bit, 9-bit, 16-bit, and 18-bit parallel port data buses, as well as 3-wire and 4-wire SPI serial ports. Due to the high number of I/O ports required for parallel control, SPI serial port control is more commonly used. The ILI9341 supports 65K and 262K RGB color display, offering rich display colors and features like rotating display, scroll display, and video playback. It uses 16-bit (RGB565) to control pixel display, with pixel address setting based on rows and columns, and increment/decrement direction determined by scanning mode. Display is achieved by setting the address and then the color value.
5.3 SPI Communication Protocol
The 4-wire SPI bus write mode timing involves several signals:
- **CSX**: Slave chip select. The chip is enabled when CSX is low.
- **DC/RS**: Data/command control pin. Low for command, high for data.
- **SCL**: SPI bus clock. Each rising edge transmits 1 bit of data.
- **SDA**: SPI data transmission. Transmits 8-bit data at a time, high position first.
The CPOL (Clock Polarity) and CPHA (Clock Phase) determine the transmission timing. CPOL=0 means the idle state of the serial synchronous clock is low. CPHA determines if data is acquired on the first or second clock transition edge. SPI0 (CPHL=0, CPOL=0) is commonly used.
5.4 Software Description and Code Architecture
The provided test programs typically consist of a library (e.g., LCDWIKI library for Arduino) and application code. The LCDWIKI library is divided into LCDWIKI_SPI (underlying hardware-related operations), LCDWIKI_GUI (drawing graphics and characters), and LCDWIKI_TOUCH (touch screen operations).
For C51 and STM32, the code architecture generally includes test code, GUI code, LCD code, main function, platform code, touch code, SPI code, key code, and LED code. The main function runs the application, LCD code handles initialization, GUI code manages drawing, touch code handles touch input, SPI code manages communication, and platform code varies by specific platform.
5.5 Software SPI vs. Hardware SPI
- **Display Speed**: Hardware SPI is significantly faster than software SPI.
- **GPIO Definition**: Software SPI allows flexible assignment of all control pins to any idle GPIO. Hardware SPI has fixed data and clock signal pins (platform-dependent), while other control pins can be user-defined.
- **Initialization**: Software SPI only requires GPIO initialization for pin definitions. Hardware SPI requires initialization of relevant control and data registers.
5.6 Touch Screen Calibration
For modules with touch functionality, calibration is often required for accurate input. The process varies by microcontroller platform:
- **Arduino**: Run the
touch_screen_calibrationprogram first. Follow on-screen prompts. After successful calibration, the parameters displayed on the screen must be written into thecali_para.hfile of the LCDWIKI_TOUCH library. - **C51**: Execute the
Touch_Adjusttest item (available in STC12C5A60S2 test programs). - **STM32**: The STM32 test program automatically detects if calibration is needed or allows manual entry by pressing a button. Calibration marks and parameters are saved in the AT24C02 flash.
Video 1: Demonstration of the 3.2 inch SPI Module with 240x320 resolution, showing programming and touch functionality.
6. Maintenance
- **Handling**: Always handle the LCD module by its edges or PCB to avoid touching the display area or sensitive components.
- **Cleaning**: Use a soft, lint-free cloth lightly dampened with isopropyl alcohol to clean the display surface. Avoid harsh chemicals or abrasive materials.
- **Storage**: Store the module in an anti-static bag in a dry, cool environment away from direct sunlight and extreme temperatures.
- **Power Supply**: Ensure the power supply voltage is within the specified 3.3V-5V range to prevent damage.
7. Troubleshooting
- **Display Not Lighting Up**:
- Check VCC and GND connections for proper power supply (3.3V-5V).
- Verify the LED backlight control pin (LED) is connected to 3.3V or controlled correctly.
- Ensure all SPI communication pins (CS, DC/RS, SDI, SCK) are correctly wired according to your microcontroller's pinout.
- **No Display Output / Garbled Display**:
- Confirm the correct driver IC (ILI9341) is selected in your software.
- Check the SPI communication timing (CPOL/CPHA settings) in your code.
- Ensure the correct initialization sequence for the ILI9341 is being sent.
- **Touch Screen Not Responding (for RTP models)**:
- Verify the touch screen specific pins (T_CLK, T_CS, T_DIN, T_DO, T_IRQ) are correctly wired.
- Ensure the touch controller chip (XPT2046) is correctly initialized in your software.
- Perform touch screen calibration as described in Section 5.6.
- If the module does not have a touch function, ensure touch-related pins are not connected.
- **SD Card Not Working**:
- Check the SD card slot connections and ensure the card is properly inserted.
- Verify your software includes the necessary libraries and code for SD card communication.
8. User Tips
- This display module is versatile and can be connected to various microcontrollers, including Arduino, STM32, and Raspberry Pi.
- For touch-enabled versions, the touch controller chip used is XPT2046.
- When using the module, ensure that the correct pin definitions are used in your code, especially when switching between software and hardware SPI implementations.
- If you are not using the touch functionality, you can leave the touch-related pins unconnected to simplify your wiring.
9. Warranty and Support
Surenoo Technology Co., Ltd. is a professional display solution supplier. For technical support, documentation, and further inquiries, please visit the official website or contact support:
- **Official Website**: www.surenoo.com
- **Skype**: Surenoo365
For detailed datasheets and selection guides, please refer to the following:
- Surenoo SPT TFT LCD Module Selection Guide: SPI_TFT_Module.pdf
- SSP0320A-240320 Datasheet: SSP0320A-240320.pdf

Figure 6: Surenoo Display Factory

Figure 7: Product Certifications (RoHS, CE)

Figure 8: Contact Information via QR Codes