Surenoo Smc0350c-320480 Series Mcu Interface Tft Lcd Module User Manual

Surenoo Smc0350c-320480 Series Mcu Interface Tft Lcd Module User Manual

Surenoo SMC0350C-320480 Series MCU Interface TFT LCD Module 

Surenoo SMC0350C-320480 Series MCU Interface TFT LCD Module

Product Description

The product is a 3.5-inch TFT LCD display module which supports switching between resistance touch screen and capacitive touch screen. It has 480×320 resolution, supports 16BIT RGB 65K color display, and the internal driver IC is NT35310, which uses 16-bit parallel port communication. The module includes LCD display, resistance touch screen or capacitance touch screen and PCB backplane. It can be plugged into the TFT LCD slot of the STM32 series development board or used on the C51 platform.

Product Features

  • 3.5-inch color screen, support 16BIT RGB 65K color display, display rich colors
  • 320×480 resolution for clear display
  • Support 16-bit parallel data bus mode switching, fast transfer speed
  • Supports ALIENTEK STM32 Mini, Elite, WarShip, Explorer, and Apollo development boards direct plug-in use
  • Support switching between resistance touch screen and capacitive touch screen
  • Provides a rich sample program for STM32 and C51 platforms
  •  Military-grade process standards, long-term stable work
  •  Provide underlying driver technical support
    NameDescription
    Display Color16BIT RGB 65K color
    SKUMRB3512
    Screen Size3.5(inch)
    Screen TypeTFT
    Driver ICNT35310
    Resolution480*320 (Pixel)
    Module Interface16Bit parallel interface
    Active Area48.96×73.44 (mm)
    Touch Screen TypeResistance touch screen or

    Capacitive touch screen

    Touch ICResistance touch screen:XPT2046

    Capacitive touch screen :GT911

    Module PCB Size56.41×97.60 (mm)
    Operating Temperature-10℃~60℃
    Storage Temperature-20℃~70℃
    Operating Voltage3.3V / 5V
    Power ConsumptionTBD
    Product Weight(Including packaging)57g

Product Parameters

NOTE:

  1. The hardware of the module supports switching between resistance touch screen and capacitive touch screen (as shown in the dotted line box in Picture 1 above), as follows:
    A. Use resistance touch screen: solder the components in the dotted line box of RTOUCH, and do not need to weld the components in the dotted line box of CTOUCH;
    B. Use capacitive touch screen: solder the components in the dotted line box of CTOUCH, and do not need to weld the components in the dotted line  box of RTOUCH;
  2. This module can be directly inserted into the TFTLCD slot of the punctual atom development board, no manual wiring is required. 3
  3. The hardware of this module only supports 16 bit mode

Important Note:

  1. The following pin numbers 1~34 are the pin number of Module pin with PCB backplane of our company. If you purchase a bare screen, please refer to the pin definition of the bare screen specification, refer to the wiring according to the signal type instead of directly Wire according to the following module pin numbers. For example: CS is 1 pin on our module. It may be x pin on different size bare screen.
  2. About VCC supply voltage: If you buy a module with PCB backplane, VCC/VDD power supply can be connected to 5V or 3.3V (module has integrated ultra low dropout 5V to 3V circuit), if you buy a bare screen LCD, remember to only connect 3.3V.
  3. About the backlight voltage: The module with the PCB backplane has integrated triode backlight control circuit, which only needs to input the high level of the BL pin or the PWM wave to illuminate the backlight. If you are buying a bare screen, the LEDAx is connected to 3.0V-3.3V and the LEDKx is grounded.
    NumberModule PinPin Description
    1CSLCD reset control pin( low level enable)
    2RSLCD register / data selection control pin

    (high level: register, low level: data)

    3WRLCD write control pin
    4RDLCD read control pin
    5RSTLCD reset control pin( low level reset)
    6D0LCD data bus 16-bit pin
    8D2 
    9D3 
    10D4 
    11D5 
    12D6 
    13D7 
    14D8 
    15D9 
    16D10 
    17D11 
    18D12 
    19D13 
    20D14 
    21D15 
    22GNDModule power ground pin
    23BLLCD backlight control pin(High level light)
    24VDDModule power positive pin (module has integrated voltage regulator IC, It can be connected to 5V or 3.3V on STM32 and 5V on

    C51)

    25VDD 
    26GNDModule power ground pin
    27GND 
    28NCLCD backlight power positive pin (default shared onboard backlight power supply, this pin can not be

    connected)

    29MIResistance touch screen SPI bus read signal
    30MOResistance touch screen SPI bus write signal or capacitance touch screen IIC bus data signal
    31PENCapacitive or resistive touch screen interrupt

    detection pin (low level when touch occurs)

    32NCNot defined, no need to use
    33TCSResistance touch screen chip selection control signal or capacitive touch screen reset signal (low level reset)
    34TCKResistance touch screen SPI bus or capacitive touch screen IIC bus clock signal

Hardware Configuration

The LCD module hardware circuit comprises six parts: an LCD display control circuit, a power control circuit,a Impedance balance adjusting circuit, a capacitive touch screen control circuit , a resistance touch screen control circuit and a backlight control circuit. LCD display control circuit for controlling the pins of the LCD, including control pins and data transfer pins. Power control circuit for stabilizing the supply voltage and selecting the external supply voltage The impedance balance adjusting circuit is used to balance the impedance between MCU pin and LCD pin. resistance touch screen control circuit is used to control touch screen interrupt acquisition, data sampling, AD conversion, data transmission, etc Capacitive touch screen control circuit is used to control touch screen interrupt acquisition, data sampling, AD conversion, data transmission, etc. A backlight control circuit is used to control the brightness of the backlight.

working principle

  1. Introduction to NT35310 Controller
    The NT35310 controller supports a maximum resolution of 320*480 and has a 345600-byte GRAM. It also supports 8-bit, 9-bit, 16-bit, 18-bit parallel port data buses. It also supports 3-wire and 4-wire SPI serial ports. Since the supported resolution is relatively large and the amount of data transmitted is large, the parallel port transmission is adopted, and the transmission speed is fast. NT35310 also supports 65K, 262K and color display, display color is very rich, while supporting rotating display and scroll display and video playback, display in a variety of ways.
    The NT35310 controller uses 16bit (RGB565) to control a pixel display, so it can display up to 65K colors per pixel. The pixel address setting is performed in the order of rows and columns, and the incrementing and decreasing direction is determined by the scanning mode. The NT35310 display method is performed by setting the address and then setting the color value.
  2. Introduction to parallel port communication
    The parallel port communication write mode timing is as shown below:


    The timing of the parallel port communication read mode is shown in the figure below:

CSX is a chip select signal for enabling and disabling parallel port communication, active low DCX is the data or command selection signal, 1-write data or command parameters, 0-write command WRX is a write data control signal RDX is a read data control signal Host-D[17:0] is a parallel port data bit, which has four types: 8-bit, 9-bit, 16-bit, and 18-bit.
When performing a write operation, on the basis of the reset, first set the data or command selection signal, then pull the chip select signal low, then input the content to be written from the host, and then pull the write data control signal low. When pulled high, data is written to the LCD control IC on the rising edge of the write control signal. Finally, the chip select signal is pulled high and a data write operation is completed. When entering the read operation, on the basis of the reset, first pull the chip select signal low, then pull the data or command select signal high, then pull the read data control signal low, and then read the data from the LCD control IC. And then The read data control signal is pulled high, and the data is read out on the rising edge of the read data control signal. Finally, the chip select signal is pulled high, and a data read operation is completed.

Instructions for use

STM32 instructions
Wiring instructions: See the interface description for pin assignments.
Note:

  1. This module can be directly inserted into the TFTLCD slot of the punctual atom development board, no manual wiring is required.
  2. The following internal plug-in pins of the corresponding MCU refer to the MCU pins directly connected to the TFTLCD slot inside the development board, only for reference.
MiniSTM32 development board TFTLCD socket in-line instructions
NumberModule PinCorresponding

TFTLCD socket pin

Corresponding to STM32F103RCT6

microcontroller internal connection pin

1CSCSPC9
2RSRSPC8
3WRWRPC7
4RDRDPC6
5RSTRSTPC4
6D0D0PB0
7D1D1PB1
8D2D2PB2
9D3D3PB3
10D4D4PB4
11D5D5PB5
12D6D6PB6
13D7D7PB7
14D8D8PB8
15D9D9PB9
16D10D10PB10
17D11D11PB11
18D12D12PB12
19D13D13PB13
20D14D14PB14
21D15D15PB15
22GNDGNDGND
23BLBLPC10
24VDD3.33.3V
25VDD3.33.3V
26GNDGNDGND
27GNDGNDGND
28NCNot used5V
29MIMISOPC2
30MOMOSIPC3
31PENPENPC1
32NCNot usedNC
33TCSTCSPC13
34TCKCLKPC0
Elite STM32 development board TFTLCD socket in-line instructions
NumberModule PinCorresponding TFTLCD socket pinCorresponding to STM32F103ZET6 microcontroller internal connection pin
1CSCSPG12
2RSRSPG0
3WRWRPD5
4RDRDPD4
5RSTRSTreset pin
6D0D0PD14
7D1D1PD15
8D2D2PD0
9D3D3PD1
10D4D4PE7
11D5D5PE8
12D6D6PE9
13D7D7PE10
14D8D8PE11
15D9D9PE12
16D10D10PE13
17D11D11PE14
18D12D12PE15
19D13D13PD8
20D14D14PD9
21D15D15PD10
22GNDGNDGND
23BLBLPB0
24VDDVDD3.3V
25VDDVDD3.3V
26GNDGNDGND
27GNDGNDGND
28NCNot used5V
29MIMISOPB2
30MOMOSIPF9
31PENPENPF10
32NCNot usedNC
33TCSTCSPF11
34TCKCLKPB1
WarShip STM32 development board TFTLCD socket in-line instructions
Module PinCorresponding TFTLCD socket pinCorresponding to STM32F103ZET6

microcontroller internal connection pin

V2V3
CSCSPG12
RSRSPG0
WRWRPD5
RDRDPD4
RSTRSTreset pin
D0D0PD14
D1D1PD15
D2D2PD0
D3D3PD1
D4D4PE7
D5D5PE8
D6D6PE9
D7D7PE10
D8D8PE11
D9D9PE12
D10D10PE13
D11D11PE14
D12D12PE15
D13D13PD8
D14D14PD9
D15D15PD10
GNDGNDGND
BLBLPB0
VDDVDD3.3V
VDDVDD3.3V
GNDGNDGND
GNDGNDGND
NCNot used5V
29MIMISOPF8PB2
30MOMOSIPF9
31PENPENPF10
32NCNot usedNC
33TCSTCSPB2PF11
34TCKCLKPB1
Explorer STM32F4 development board TFTLCD socket in-line instructions
NumberModule PinCorresponding

TFTLCD socket pin

Corresponding to STM32F407ZGT6

microcontroller internal connection pin

1CSCSPG12
2RSRSPF12
3WRWRPD5
4RDRDPD4
5RSTRSTreset pin
6D0D0PD14
7D1D1PD15
8D2D2PD0
9D3D3PD1
10D4D4PE7
11D5D5PE8
12D6D6PE9
13D7D7PE10
14D8D8PE11
15D9D9PE12
16D10D10PE13
17D11D11PE14
18D12D12PE15
19D13D13PD8
20D14D14PD9
21D15D15PD10
22GNDGNDGND
23BLBLPB15
24VDDVDD3.3V
25VDDVDD3.3V
26GNDGNDGND
27GNDGNDGND
28NCNot used5V
29MIMISOPB2
30MOMOSIPF11
31PENPENPB1
32NCNot usedNC
33TCSTCSPC13
34TCKCLKPB0
Apollo STM32F4/F7 development board TFTLCD socket in-line instructions
 

Number

 

Module Pin

Corresponding TFTLCD socket pinCorresponding to STM32F429IGT6、STM32F767IGT6、STM32H743IIT6

microcontroller internal connection pin

1CSCSPD7
2RSRSPD13
3WRWRPD5
4RDRDPD4
5RSTRSTreset pin
6D0D0PD14
7D1D1PD15
8D2D2PD0
9D3D3PD1
10D4D4PE7
11D5D5PE8
12D6D6PE9
13D7D7PE10
14D8D8PE11
15D9D9PE12
16D10D10PE13
17D11D11PE14
18D12D12PE15
19D13D13PD8
20D14D14PD9
21D15D15PD10
22GNDGNDGND
23BLBLPB5
24VDDVDD3.3V
25VDDVDD3.3V
26GNDGNDGND
27GNDGNDGND
28NCNot used5V
29MIMISOPG3
30MOMOSIPI3
31PENPENPH7
32NCNot usedNC
33TCSTCSPI8
34TCKCLKPH6

Operating Steps:
A. Connect the LCD module(As shown in Picture 1) and the STM32 MCU according
to the above wiring instructions, and power on;
B. Select the C51 test program to be tested, as shown below:
(Please refer to the test program documentation for the test program
description.)

Open the selected test program project, compile and download; detailed description of the STM32 test program compilation and download can be found in the following document:
http://www.lcdwiki.com/res/PublicFile/STM32_Keil_Use_Illustration_EN.pdf
D. If the LCD module displays characters and graphics normally, the program runs successfully;
C51 instructions

Wiring instructions: See the interface description for pin assignments.
Note:

  1. Since the input and output levels of the GPIO of the STC12C5A60S2 microcontroller are 5V, the capacitive touch IC cannot work normally (only 1.8~3.3V can be accepted). If you want to use the capacitive touch function, you need to connect to the level conversion module;
  2. Since the STC89C52RC microcontroller does not have a push-pull output function, the backlight control pin needs to be connected to a 3.3V power supply to be properly lit.
  3. Since the STC89C52RC microcontroller’s Flash capacity is too small (less than 25KB), the program with touch function cannot be downloaded, so the touch screen does not need wiring.
     STC12C5A60S2 microcontroller test program wiring instructions
      

    Module Pin

    Corresponding to STC12 development board

    wiring pin

     CSP13
     RSP12
     WRP11
     RDP10
     RSTP33
     D0P00
     D1P01
     D2P02
     D3P03
     D4P04
     D5P05
     D6P06
     D7P07
     D8P20
     D9P21
     D10P22
     D11P23
     D12P24
     D13P25
     D14P26
     D15P27
     GNDGND
     BLP31
     VDD5V
     VDD5V
     GNDGND
     GNDGND
     NCNo need to connect
     MINo need to connect
    30MOP34
    31PENP32
    32NCNo need to connect
    33TCSP37
    34TCKP36
    1CSP13
    2RSP12
    3WRP11
    4RDP10
    5RSTP14
    6D0P30
    7D1P31
    8D2P32
    9D3P33
    10D4P34
    11D5P35
    12D6P36
    13D7P37
    14D8P20
    15D9P21
    16D10P22
    17D11P23
    18D12P24
    19D13P25
    20D14P26
    21D15P27
    22GNDGND
    23BL3.3V
    24VDD5V
    25VDD5V
    26GNDGND
    27GNDGND
    28NCNo need to connect
    29MINo need to connect
    30MONo need to connect
    31PENNo need to connect
    32NCNo need to connect
    33TCSNo need to connect
    34TCKNo need to connect

Operating Steps:
A. Connect the LCD module (As shown in Picture 1)and the C51 MCU according tothe above wiring instructions, and power on;
B. Select the C51 test program to be tested, as shown below:
(Test program description please refer to the test program description document in the test package)

C. Open the selected test program project, compile and download; detailed description of the C51 test program compilation and download can be found in the following document:
http://www.lcdwiki.com/res/PublicFile/C51_Keil%26stc-isp_Use_Illustration_EN.pdf
D. If the LCD module displays characters and graphics normally, the program runs successfully;

Software Description
  1. Code Architecture
    A. C51 and STM32 code architecture description The code architecture is shown below: Sample code

    The Demo API code for the main program runtime is included in the test code; LCD initialization and related bin parallel port write data operations are included in the LCD code; Drawing points, lines, graphics, and Chinese and English character display related operations are included in the GUI code; The main function implements the application to run; Platform code varies by platform; The IIC code is used by the capacitive touch IC GT911, including IIC initialization, data writing and reading, etc; Touch code includes two parts: resistance touch screen code and capacitance touch screen (gt911) code; The key processing related code is included in the key code (the C51 platform does not have a button processing code); The code related to the led configuration operation is included in the led code(the C51 platform does not have a led processing code);
  2. GPIO definition description
    A.
    STM32 test program GPIO definition description The GPIO definition of the LCD screen of the STM32 test program is placed in the lcd.h file, which is defined in two ways: 1) STM32F103RCT6 microcontroller test program uses IO analog mode (it does not support FSMC bus) 2) Other STM32 MCU test programs use FSMC bus mode STM32F103RCT6 MCU IO analog test program LCD screen GPIO definition as shown below:

    FSMC test program lcd screen GPIO is defined as shown below (take STM32F103ZET6 microcontroller FSMC test program as an example):

    STM32 platform touch screen related code contains two parts :resistance touch screen code and capacitance touch screen code. Resistance touch screen GPIO definition is placed in the rtp.h file as shown below (take the STM32F103ZET6 microcontroller IO analog test program as an example):

    The capacitance touch screen related GPIO definition consists of two parts: IIC’s GPIO definition and screen interrupt and reset GPIO definition. The IIC GPIO definition is placed in the ctpiic.h file as shown below (take the STM32F103RCT6 microcontroller FSMC test program as an example):

    The interrupt of the touch screen and the reset GPIO definition are placed in GT911.h, as shown in the following figure (take the STM32F103ZET6 microcontroller FSMC test program as an example):

    B. C51 test program GPIO definition description C51 test program lcd screen GPIO definition is placed in the lcd.h file, as shown below(Taking the STC12C5A60S2 microcontroller test program as an example):

    Parallel pin definition needs to select the whole set of GPIO port groups, such as P0, P2, etc., so that when transferring data, the operation is convenient.Other pins can be defined as any free GPIO. C51platform touch screen related code contains two parts :resistance touch screen code and capacitance touch screen code. Resistance touch screen GPIO definition is placed in the rtp.h file as shown below (Taking the STC12C5A60S2 microcontroller test program as an example):
    The capacitance touch screen related GPIO definition consists of two parts: IIC’s GPIO definition and screen interrupt and reset GPIO definition. The IIC GPIO definition is placed in the gtiic.h file as shown below (take the STC12C5A60S2 microcontroller test program as an example):

    The interrupt of the screen and the reset GPIO definition are placed in GT911.h, as shown in the following figure (take the STC12C5A60S2 microcontroller test program as an example):
    The GPIO definition of the touch screen can be modified and can be defined as any other free GPIO.
  3. Parallel port communication code implementation
    A. STM32 test program parallel port communication code implementation The STM32 test program parallel port communication code is placed in the LCD.c file, which is implemented in two ways: 1) STM32F103RCT6 microcontroller test program uses IO analog mode (it does not support FSMC bus) 2) Other STM32 MCU test programs use FSMC bus mode The IO simulation test program is implemented as shown below:

    The FSMC test program is implemented as shown below:

    Both 8- and 16-bit command writes and 8- and 16-bit data writes and reads are implemented.

    B. C51 test program parallel port communication code implementation The relevant code is implemented in the LCD.c file as shown below:
    Implemented 8-bit and 16-bit commands and 8-bit and 16-bit data write and read.
  4. touch screen calibration instructions
    A.
    STM32 test program touch screen calibration instructions The STM32 touch screen calibration program automatically recognizes whether calibration is required or manually enters calibration by pressing a button. It is included in the touch screen test item. The calibration mark and calibration parameters are saved in the AT24C02 flash. If necessary, read from the flash. The calibration process is as shown below:

    B. C51 test program touch screen calibration instructions The C51 touch screen calibration needs to execute the Touch_Adjust test item (only available in the STC12C5A60S2 test program), as shown below:

    After the touch calibration is passed, you need to save the calibration parameters displayed on the screen in the touch.c file, as shown below

Common software

This set of test examples requires the display of Chinese and English, symbols and pictures, so the modulo software is used. There are two types of modulo software: Image2Lcd and PCtoLCD2002. Here is only the setting of the modulo software for the test program. The PCtoLCD2002 modulo software settings are as follows:
Dot matrix format select Dark code the modulo mode select the progressive mode Take the model to choose the direction (high position first) Output number system selects hexadecimal number Custom format selection C51 format The specific setting method is as follows: http://www.lcdwiki.com/Chinese_and_English_display_modulo_settings Image2Lcd modulo software settings are shown below:

The Image2Lcd software needs to be set to horizontal, left to right, top to bottom, and low position to the front scan mode.



www.surenoo.com

References

Documents / Resouces

Download manual
Here you can download full pdf version of manual, it may contain additional safety instructions, warranty information, FCC rules, etc.


Related Manuals