Display SPI
The host sends the clock and display data. The separate D/C line distinguishes command or register index from data.
The QDtech / LCDWiki MAR2201 2.2-inch module exposes a write-only SPI display interface with a separate RS signal on its 11-contact P3 header.
Use 5 V with J1 open to feed the XC6206 regulator. Close J1 for 3.3 V input to feed the 3.3 V rail directly.
| Pin | Signal | Direction | Function |
|---|---|---|---|
| 1 | VCC Supply input | Supply input | Use 5 V with J1 open to feed the XC6206 regulator. Close J1 for 3.3 V input to feed the 3.3 V rail directly. |
| 2 | GND Supply return | Supply return | Connect to host ground. |
| 3 | GND Supply return | Supply return | Connect to host ground. |
| 4 | NC None | None | Reserved contact. Leave open. |
| 5 | NC None | None | Reserved contact. Leave open. |
| 6 | LED Input | Input | Drive HIGH at 3.3 V for continuous illumination or use PWM. The 74HC245 output drives the base of Q1 (S8050) through R4 (1 kΩ). Q1 sinks the LED cathode current. |
| 7 | CLK Input | Input | Display serial clock. |
| 8 | SDI Input | Input | Host MOSI. Send each byte MSB first and each 16-bit word high byte first. |
| 9 | RS Input | Input | LOW selects a register index (command). HIGH selects register values and pixel data. P3.9 (TFT_RS_IN) passes through the non-inverting 74HC245 to TFT_RS at the panel. |
| 10 | RST Input | Input | Active-low hardware reset. |
| 11 | CS Input | Input | Active-low display selection. |
| Parameter | Limit | Conditions and source |
|---|---|---|
| Module supply3.3 V or 5 V | 3.3 V or 5 V | Close J1 for 3.3 V input. Open J1 for 5 V input so the XC6206 stays in the supply path. QDtech MAR2201 schematic (2014-01-06), sheet 1, and the LCDWiki LCDWIKI_SPI ILI9225 driver. |
| Panel pixels176 × 220 | 176 × 220 | Portrait address coordinates. QDtech MAR2201 schematic (2014-01-06), sheet 1, and the LCDWiki LCDWIKI_SPI ILI9225 driver. |
| Pixel formatRGB565 | RGB565 | The module example uses 16-bit RGB values for its color test. QDtech MAR2201 schematic (2014-01-06), sheet 1, and the LCDWiki LCDWIKI_SPI ILI9225 driver. |
These wiring instructions apply to the MAR2201 board with 11-contact P3 and an ILI9225G panel. Ilitek ILI9225 v0.22, pp. 29–30, describes a controller SPI mode that encodes RS in a start byte. Use the separate P3.9 RS signal and the LCDWiki driver’s framing for this module.