3.5inch 8&16BIT Module MRB3511 User Manual en
3.5inch 8&16BIT Module MRB3511 User Manual en
www.lcdwiki.com 1 / 26 Rev1.0
LCDWIKI 3.5inch 8&16BIT Module MRB3511 User Manual CR2019-MI4701
Product Description
The product is a 3.5-inch TFT LCD display module with capacitive touch screen. It
has 480x320 resolution, supports 16BIT RGB 65K color display, and the internal driver IC
is ILI9488, which uses 8-bit or 16-bit parallel port communication. The module includes
LCD display, capacitive 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
Support 8-bit or 16-bit parallel data bus mode switching, fast transfer speed
Supports ALIENTEK STM32 Mini, Elite, WarShip, Explorer, and Apollo development
Product Parameters
Name Description
SKU MRB3511
Driver IC ILI9488
www.lcdwiki.com 2 / 26 Rev1.0
LCDWIKI 3.5inch 8&16BIT Module MRB3511 User Manual CR2019-MI4701
Touch IC GT911
Interface Description
www.lcdwiki.com 3 / 26 Rev1.0
LCDWIKI 3.5inch 8&16BIT Module MRB3511 User Manual CR2019-MI4701
NOTE:
1. The module hardware supports 8-bit and 16-bit parallel port data bus mode
A. Solder R16 with 0Ω resistor or short circuit directly, and disconnect R8:
Select 16-bit parallel port data bus mode, use DB0~DB15 data pins(default)
Select 8-bit parallel port data bus mode, use DB0~DB7 data pins
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
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
www.lcdwiki.com 4 / 26 Rev1.0
LCDWIKI 3.5inch 8&16BIT Module MRB3511 User Manual CR2019-MI4701
life; 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.
6 DB0
7 DB1
8 DB2
9 DB3
LCD data bus low 8-bit pin
10 DB4
11 DB5
12 DB6
13 DB7
14 DB8
15 DB9
16 DB10
17 DB11 LCD data bus high 8-bit pin(When using the 8-bit
parallel port data bus mode, the upper 8-bit pin is
18 DB12
not used.)
19 DB13
20 DB14
21 DB15
www.lcdwiki.com 5 / 26 Rev1.0
LCDWIKI 3.5inch 8&16BIT Module MRB3511 User Manual CR2019-MI4701
26 GND
Module power ground pin
27 GND
Hardware Configuration
The LCD module hardware circuit comprises five parts: an LCD display control circuit, a
power control circuit, a data bus mode selection control circuit, a touch screen control
LCD display control circuit for controlling the pins of the LCD, including control pins and
Power control circuit for stabilizing the supply voltage and selecting the external supply
voltage
Data bus mode selection control circuit for selecting 8-bit or 16-bit data bus mode.
Capacitive touch screen control circuit is used to control touch screen interrupt acquisition,
www.lcdwiki.com 6 / 26 Rev1.0
LCDWIKI 3.5inch 8&16BIT Module MRB3511 User Manual CR2019-MI4701
working principle
345600-byte GRAM. It also supports 8-bit, 9-bit, 16-bit, 18-bit and 24-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. ITI9488 also supports 65K,
262K and 16.7M RGB color display, display color is very rich, while supporting rotating
display and scroll display and video playback, display in a variety of ways.
The ITI9488 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 ITI9488 display method is performed by setting the address and then
www.lcdwiki.com 7 / 26 Rev1.0
LCDWIKI 3.5inch 8&16BIT Module MRB3511 User Manual CR2019-MI4701
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
D/CX is the data or command selection signal, 1-write data or command parameters,
0-write command
D[X: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.
www.lcdwiki.com 8 / 26 Rev1.0
LCDWIKI 3.5inch 8&16BIT Module MRB3511 User Manual CR2019-MI4701
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
1. STM32 instructions
Wiring instructions:
Note:
1. This module can be directly inserted into the TFTLCD slot of the
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
www.lcdwiki.com 9 / 26 Rev1.0
LCDWIKI 3.5inch 8&16BIT Module MRB3511 User Manual CR2019-MI4701
11 DB5 D5 PB5
12 DB6 D6 PB6
13 DB7 D7 PB7
14 DB8 D8 PB8
15 DB9 D9 PB9
16 DB10 D10 PB10
17 DB11 D11 PB11
18 DB12 D12 PB12
19 DB13 D13 PB13
20 DB14 D14 PB14
21 DB15 D15 PB15
22 GND GND GND
23 BL BL PC10
24 VDD 3.3 3.3V
25 VDD 3.3 3.3V
26 GND GND GND
27 GND GND GND
28 NC Not used 5V
29 NC Not used PC2
30 SDA MOSI PC3
31 INT PEN PC1
32 NC Not used NC
33 CRST TCS PC13
34 SCL CLK PC0
1 CS CS PG12
2 RS RS PG0
3 WR WR PD5
www.lcdwiki.com 10 / 26 Rev1.0
LCDWIKI 3.5inch 8&16BIT Module MRB3511 User Manual CR2019-MI4701
4 RD RD PD4
5 RST RST reset pin
6 DB0 D0 PD14
7 DB1 D1 PD15
8 DB2 D2 PD0
9 DB3 D3 PD1
10 DB4 D4 PE7
11 DB5 D5 PE8
12 DB6 D6 PE9
13 DB7 D7 PE10
14 DB8 D8 PE11
15 DB9 D9 PE12
16 DB10 D10 PE13
17 DB11 D11 PE14
18 DB12 D12 PE15
19 DB13 D13 PD8
20 DB14 D14 PD9
21 DB15 D15 PD10
22 GND GND GND
23 BL BL PB0
24 VDD VDD 3.3V
25 VDD VDD 3.3V
26 GND GND GND
27 GND GND GND
28 NC Not used 5V
29 NC Not used PB2
30 SDA MOSI PF9
31 INT PEN PF10
32 NC Not used NC
33 CRST TCS PF11
34 SCL CLK PB1
www.lcdwiki.com 11 / 26 Rev1.0
LCDWIKI 3.5inch 8&16BIT Module MRB3511 User Manual CR2019-MI4701
1 CS CS PG12
2 RS RS PG0
3 WR WR PD5
4 RD RD PD4
5 RST RST reset pin
6 DB0 D0 PD14
7 DB1 D1 PD15
8 DB2 D2 PD0
9 DB3 D3 PD1
10 DB4 D4 PE7
11 DB5 D5 PE8
12 DB6 D6 PE9
13 DB7 D7 PE10
14 DB8 D8 PE11
15 DB9 D9 PE12
16 DB10 D10 PE13
17 DB11 D11 PE14
18 DB12 D12 PE15
19 DB13 D13 PD8
20 DB14 D14 PD9
21 DB15 D15 PD10
22 GND GND GND
23 BL BL PB0
24 VDD VDD 3.3V
25 VDD VDD 3.3V
26 GND GND GND
27 GND GND GND
28 NC Not used 5V
www.lcdwiki.com 12 / 26 Rev1.0
LCDWIKI 3.5inch 8&16BIT Module MRB3511 User Manual CR2019-MI4701
www.lcdwiki.com 13 / 26 Rev1.0
LCDWIKI 3.5inch 8&16BIT Module MRB3511 User Manual CR2019-MI4701
28 NC Not used 5V
2 RS RS PD13
3 WR WR PD5
4 RD RD PD4
5 RST RST reset pin
6 DB0 D0 PD14
7 DB1 D1 PD15
8 DB2 D2 PD0
9 DB3 D3 PD1
10 DB4 D4 PE7
11 DB5 D5 PE8
12 DB6 D6 PE9
13 DB7 D7 PE10
www.lcdwiki.com 14 / 26 Rev1.0
LCDWIKI 3.5inch 8&16BIT Module MRB3511 User Manual CR2019-MI4701
14 DB8 D8 PE11
15 DB9 D9 PE12
16 DB10 D10 PE13
17 DB11 D11 PE14
18 DB12 D12 PE15
19 DB13 D13 PD8
20 DB14 D14 PD9
21 DB15 D15 PD10
22 GND GND GND
23 BL BL PB5
24 VDD VDD 3.3V
25 VDD VDD 3.3V
26 GND GND GND
27 GND GND GND
28 NC Not used 5V
29 NC Not used PG3
Operating Steps:
A. Connect the LCD module(As shown in Picture 1) and the STM32 MCU according
(Please refer to the test program documentation for the test program description.
If you need to use patch, please refer to the patch documentation in the
STM32_Demo_patch directory.)
www.lcdwiki.com 15 / 26 Rev1.0
LCDWIKI 3.5inch 8&16BIT Module MRB3511 User Manual CR2019-MI4701
detailed description of the STM32 test program compilation and download can be
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;
2. C51 instructions
Wiring instructions:
Note:
1. Since the input and output levels of the GPIO of the STC12C5A60S2
www.lcdwiki.com 16 / 26 Rev1.0
LCDWIKI 3.5inch 8&16BIT Module MRB3511 User Manual CR2019-MI4701
microcontroller are 5V, the capacitive touch IC cannot work normally (only
2 RS P12
3 WR P11
4 RD P10
5 RST P33
6 DB0 P00
7 DB1 P01
8 DB2 P02
9 DB3 P03
10 DB4 P04
11 DB5 P05
12 DB6 P06
13 DB7 P07
14 DB8 P20
15 DB9 P21
16 DB10 P22
17 DB11 P23
18 DB12 P24
www.lcdwiki.com 17 / 26 Rev1.0
LCDWIKI 3.5inch 8&16BIT Module MRB3511 User Manual CR2019-MI4701
19 DB13 P25
20 DB14 P26
21 DB15 P27
22 GND GND
23 BL P32
24 VDD 3.3V/5V
25 VDD 3.3V/5V
26 GND GND
27 GND GND
28 NC No need to connect
29 NC No need to connect
30 SDA P34
31 INT P40
32 NC No need to connect
33 CRST P37
34 SCL P36
www.lcdwiki.com 18 / 26 Rev1.0
LCDWIKI 3.5inch 8&16BIT Module MRB3511 User Manual CR2019-MI4701
13 DB7 P37
14 DB8 P20
15 DB9 P21
16 DB10 P22
17 DB11 P23
18 DB12 P24
19 DB13 P25
20 DB14 P26
21 DB15 P27
22 GND GND
23 BL 3.3V
24 VDD 3.3V/5V
25 VDD 3.3V/5V
26 GND GND
27 GND GND
28 NC No need to connect
29 NC No need to connect
30 SDA No need to connect
31 INT No need to connect
32 NC No need to connect
33 CRST No need to connect
34 SCL No need to connect
Operating Steps:
A. Connect the LCD module (As shown in Picture 1)and the C51 MCU according to
(Test program description please refer to the test program description document
www.lcdwiki.com 19 / 26 Rev1.0
LCDWIKI 3.5inch 8&16BIT Module MRB3511 User Manual CR2019-MI4701
detailed description of the C51 test program compilation and download can be
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
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
www.lcdwiki.com 20 / 26 Rev1.0
LCDWIKI 3.5inch 8&16BIT Module MRB3511 User Manual CR2019-MI4701
The IIC code is used by the capacitive touch IC GT911, including IIC initialization,
GT911 touch control code includes touch detection, touch command transmission
The key processing related code is included in the key code (the C51 platform does
The code related to the led configuration operation is included in the led code(the
The GPIO definition of the LCD screen of the STM32 test program is placed in the
shown below:
FSMC test program lcd screen GPIO is defined as shown below (take
www.lcdwiki.com 21 / 26 Rev1.0
LCDWIKI 3.5inch 8&16BIT Module MRB3511 User Manual CR2019-MI4701
The STM32 touch screen related GPIO definition consists of two parts: IIC's GPIO
The IIC GPIO definition is placed in the gtiic.h file as shown below (take the
The interrupt of the 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):
www.lcdwiki.com 22 / 26 Rev1.0
LCDWIKI 3.5inch 8&16BIT Module MRB3511 User Manual CR2019-MI4701
C51 test program lcd screen GPIO definition is placed in the lcd.h file, as shown
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
The C51 touch screen related GPIO definition consists of two parts: IIC's GPIO
The IIC GPIO definition is placed in the gtiic.h file as shown below (take the
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):
www.lcdwiki.com 23 / 26 Rev1.0
LCDWIKI 3.5inch 8&16BIT Module MRB3511 User Manual CR2019-MI4701
The GPIO definition of the touch screen can be modified and can be defined as any
If the microcontroller does not have a P4 GPIO group, penirq can be defined as other
GPIOs.
The STM32 test program parallel port communication code is placed in the LCD.c file,
www.lcdwiki.com 24 / 26 Rev1.0
LCDWIKI 3.5inch 8&16BIT Module MRB3511 User Manual CR2019-MI4701
Both 8- and 16-bit command writes and 8- and 16-bit data writes and reads are
implemented.
Implemented 8-bit and 16-bit commands and 8-bit and 16-bit data write and read.
www.lcdwiki.com 25 / 26 Rev1.0
LCDWIKI 3.5inch 8&16BIT Module MRB3511 User Manual CR2019-MI4701
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.
http://www.lcdwiki.com/Chinese_and_English_display_modulo_settings
The Image2Lcd software needs to be set to horizontal, left to right, top to bottom,
www.lcdwiki.com 26 / 26 Rev1.0