SURENOO SSP0320A-240320

Contents

Surenoo 3.2 inch 320x240 Serial SPI TFT LCD Module User Manual

Model: SSP0320A-240320

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).

3.2 inch 320x240 SPI TFT LCD Module with Resistive Touch

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

3.2 inch 320x240 SPI TFT LCD Module without Touch

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

NameParameter
Display ColorRGB 65K color
SKU (With Touch Panel)MSP3218
SKU (Without Touch Panel)MSP3217
Screen Size3.2 (inch)
TypeTFT/TN
Driver ICILI9341
Resolution240*320 (Pixel)
Module Interface4-Wire SPI interface
Active Area (AA area)48.60x64.80 (mm)
Module PCB Size55.04x89.30 (mm)
Operating Temperature-20℃~70℃
Storage Temperature-30℃~80℃
VCC Power Voltage3.3V~5V
Logic IO Port Voltage3.3V (TTL)
Power ConsumptionAbout 90mA
Specifications table for 3.2 inch TFT LCD module

Figure 3: Detailed Specifications Table

4. Setup

4.1 External Dimensions

External dimensions diagram of the 3.2 inch TFT LCD module

Figure 4: External Dimensions Diagram (all measurements in mm)

4.2 Interface Definition (Pinout)

Back view of the 3.2 inch TFT LCD module showing pin labels and SD card slot

Figure 5: Module Back View with Pin Labels

NumberModule PinDescription
1VCCLCD power supply is positive (3.3V~5V)
2GNDLCD Power ground
3CSLCD selection control signal
4RESETLCD reset control signal
5DC/RSLCD register / data selection control signal
6SDI(MOSI)LCD SPI bus write data signal
7SCKLCD SPI bus clock signal
8LEDLCD 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)
10T_CLKTouch screen SPI bus clock signal
11T_CSTouch screen chip select control pin
12T_DINTouch screen SPI bus write data pin
13T_DOTouch screen SPI bus read data pin
14T_IRQTouch 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

NumberModule PinCorresponding UNO Pin
1SDO(MISO)12
2LEDA0
3SCK13
4SDI(MOSI)11
5DC/RSA3
6RESETA4
7CSA5
8GNDGND
9VCC5V/3.3V
10T_IRQ6
11T_DO4
12T_DIN5
13T_CS2
14T_CLK3

4.3.2 Arduino MEGA2560

NumberModule PinCorresponding MEGA2560 Pin
1SDO(MISO)50
2LEDA0
3SCK52
4SDI(MOSI)51
5DC/RSA3
6RESETA4
7CSA5
8GNDGND
9VCC5V/3.3V
10T_IRQ49
11T_DO47
12T_DIN48
13T_CS45
14T_CLK46

4.3.3 STC89C52RC and STC12C5A60S2 Microcontrollers

NumberModule PinCorresponding STC89/STC12 Pin
1VCC5V/3.3V
2GNDGND
3CSP13
4RESETP33
5DC/RSP12
6SDI(MOSI)P15
7SCKP17
8LEDP32
9SDO(MISO)P16
10T_CLKP36
11T_CSP37
12T_DINP34
13T_DOP35
14T_IRQP40

4.3.4 STM32F103RCT6 Microcontroller

NumberModule PinCorresponding MiniSTM32 Pin
1VCC5V/3.3V
2GNDGND
3CSPB11
4RESETPB12
5DC/RSPB10
6SDI(MOSI)PB15
7SCKPB13
8LEDPB9
9SDO(MISO)PB14
10T_CLKPC0
11T_CSPC13
12T_DINPC3
13T_DOPC2
14T_IRQPC10

4.3.5 STM32F103ZET6 Microcontroller

NumberModule PinCorresponding Elite STM32 Pin
1VCC5V/3.3V
2GNDGND
3CSPB11
4RESETPB12
5DC/RSPB10
6SDI(MOSI)PB15
7SCKPB13
8LEDPB9
9SDO(MISO)PB14
10T_CLKPC0
11T_CSPC13
12T_DINPC3
13T_DOPC2
14T_IRQPC10

4.3.6 STM32F407ZGT6 Microcontroller

NumberModule PinCorresponding Explorer STM32F4 Pin
1VCC5V/3.3V
2GNDGND
3CSPB15
4RESETPB12
5DC/RSPB14
6SDI(MOSI)PB5
7SCKPB3
8LEDPB13
9SDO(MISO)PB4
10T_CLKPB0
11T_CSPC5
12T_DINPF11
13T_DOPB2
14T_IRQPB1

4.3.7 STM32F429IGT6 Microcontroller

NumberModule PinCorresponding Apollo STM32F4/F7 Pin
1VCC5V/3.3V
2GNDGND
3CSPD11
4RESETPD12
5DC/RSPD5
6SDI(MOSI)PF9
7SCKPF7
8LEDPD6
9SDO(MISO)PF8
10T_CLKPH6
11T_CSPI8
12T_DINPI3
13T_DOPG3
14T_IRQPH11

4.3.8 STM32F767IGT6, STM32H743IIT6 Microcontrollers

NumberModule PinCorresponding Apollo STM32F4/F7 Pin
1VCC5V/3.3V
2GNDGND
3CSPD11
4RESETPD12
5DC/RSPD5
6SDI(MOSI)PB15
7SCKPB13
8LEDPD6
9SDO(MISO)PB14
10T_CLKPH6
11T_CSPI8
12T_DINPI3
13T_DOPG3
14T_IRQPH11

5. Operating Instructions

5.1 Hardware Configuration Overview

The LCD module's hardware circuit comprises three main parts:

  1. **LCD Display Control Circuit**: Manages the LCD's control and data transfer pins.
  2. **Touch Screen Control Circuit**: Handles touch input and coordinate reading (for touch-enabled modules).
  3. **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_calibration program first. Follow on-screen prompts. After successful calibration, the parameters displayed on the screen must be written into the cali_para.h file of the LCDWIKI_TOUCH library.
  • **C51**: Execute the Touch_Adjust test 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.
Play video
Watch video online

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:

For detailed datasheets and selection guides, please refer to the following:

Surenoo Display factory production line

Figure 6: Surenoo Display Factory

Certificate of Compliance and RoHS Certificate

Figure 7: Product Certifications (RoHS, CE)

QR codes for Business Card, WeChat, WhatsApp, KakaoTalk, LINE

Figure 8: Contact Information via QR Codes

Documents and downloads

Ask a question about this manual

Ask about setup, troubleshooting, compatibility, parts, safety, or missing instructions. Manuals+ will review the question and use this page’s manual context to help answer it.

After a successful submission, we securely hash the supplied account or form email before sending it to Microsoft Advertising for conversion attribution. Privacy details.