Display SPI
The host sends the clock and display data. The separate D/C line distinguishes command or register index from data.
The ILI9488 drives a 320 × 480 TFT panel. The MSP3520 brings out separate SPI signals for the display and the resistive touch controller.
Use 5 V with J1 open, or 3.3 V with J1 closed per the module schematic.
| Pin | Signal | Direction | Function |
|---|---|---|---|
| 1 | VCC Supply input | Supply input | Use 5 V with J1 open, or 3.3 V with J1 closed per the module schematic. |
| 2 | GND Supply return | Supply return | Connect to host ground. |
| 3 | CS Input | Input | Active-low display select. |
| 4 | RESET Input | Input | Active-low display reset. |
| 5 | DC/RS Input | Input | Low for a command byte. High for parameters and display data. |
| 6 | SDI Input | Input | Serial display data from the host. |
| 7 | SCK Input | Input | Display serial clock. |
| 8 | LED Input | Input | Drive high at 3.3 V to enable the backlight. |
| 9 | SDO Output | Output | Display data returned to the host. Leave open for a write-only setup. |
| 10 | T_CLK Input | Input | Resistive touch controller SPI clock. |
| 11 | T_CS Input | Input | Active-low XPT2046 select (TP_CS on the schematic). Hold at 3.3 V to deselect touch. |
| 12 | T_DIN Input | Input | Host-to-touch-controller data. |
| 13 | T_DO Output | Output | XPT2046 SPI data output. High impedance while T_CS is high. |
| 14 | T_IRQ Output | Output | Active-low touch interrupt. |
The host sends the clock and display data. The separate D/C line distinguishes command or register index from data.
The XPT2046 can share SCK and MOSI with the display. Use separate CS GPIOs and keep both selects high at startup and the inactive select high during transfers. Use XPT2046 timing for touch. For a write-only display, connect T_DO to host MISO and leave display SDO open.
| Parameter | Limit | Conditions and source |
|---|---|---|
| Module supply3.3 V or 5 V | 3.3 V or 5 V | For 5 V leave J1 open. For 3.3 V close J1. Power off before changing J1. LCDWiki MSP3520 User Manual CR2018-M13128, Interface Definition and 2018-08-06 module schematic. |
| Interface logic3.3 V | 3.3 V | This applies even with a 5 V module supply. LCDWiki MSP3520 User Manual CR2018-M13128, Interface Definition and 2018-08-06 module schematic. |
| Pixel transferRGB666 in serial mode | RGB666 in serial mode | Send three bytes per pixel, one per color, with each 6-bit component in the most significant bits. LCDWiki MSP3520 User Manual CR2018-M13128, Interface Definition and 2018-08-06 module schematic. |
The map covers the 14-contact LCDWiki MSP3520 with resistive touch. The MSP3521 lacks touch. The Ilitek datasheet describes the bare controller and its other interface modes.