ILI9163V at a glance
Item | ILI9163V |
|---|---|
Frame memory | 132RGB × 162 (48,114 bytes) |
Outputs | 396 source, 162 gate |
Colours | 262K; 8 colours in idle mode |
Serial interface | 3-wire and 4-wire |
Parallel interface | 8080 and 6800, 8/9/16/18-bit |
RGB interface | 6, 16 or 18-bit |
I/O supply (VDDI) | 1.65–3.3 V |
Analog supply (VCI) | 2.5–4.0 V |
Serial clock cycle, write / read | ≥ 66 ns / ≥ 150 ns |
Parallel write cycle | ≥ 66 ns |
Gamma | 4 preset curves, selected with 0x26 |
All values are from the Ilitek ILI9163V datasheet (V100) listed under Sources. For your module, the supply range on the module specification takes priority, because the module may add its own regulator or backlight circuit.
Panel resolution: the GM pins
The memory is 132 × 162, but the glass is usually smaller. Three GM pins on the panel select which source and gate outputs are used:
GM[2:0] | Resolution | Outputs used |
|---|---|---|
000 | 132 × 162 | S1–S396, G1–G162 |
001 | 128 × 128 | S7–S390, G2–G129 |
010 | 120 × 160 | S7–S366, G2–G161 |
011 | 128 × 160 | S7–S390, G2–G161 |
100 | 130 × 130 | S7–S396, G2–G131 |
101 | 132 × 132 | S1–S396, G2–G133 |
The GM pins are set by the panel maker, not by your code. If the library window does not match the visible area, part of the image is shifted or a strip of old data stays on screen.
ILI9163V and ST7735S compared
The two chips are often found on the same sizes of module, and both have 132 × 162 memory. The datasheets differ in these points:
Item | ILI9163V (Ilitek V100) | ST7735S (Sitronix V1.1) |
|---|---|---|
Frame memory | 132 × RGB × 162 | 132 × RGB × 162 |
Panel resolutions (GM pins) | 132×162, 128×128, 120×160, 128×160, 130×130, 132×132 | 132×162, 132×132, 128×160 |
I/O supply | 1.65–3.3 V | 1.65–3.7 V |
Analog supply | VCI 2.5–4.0 V | VDD 2.5–4.8 V |
Serial clock cycle, write / read | ≥ 66 ns / ≥ 150 ns | ≥ 66 ns / ≥ 150 ns |
The window, write, MADCTL and colour-format commands are the same MIPI-style commands, but the power, VCOM and frame-rate registers take different values (see the FAQ below). Offsets and tab options for the ST7735 are on our ST7735 page.
Orientation and offsets in common drivers
Driver | Panel | Rotation 0 / 90 / 180 / 270 (MADCTL) | Offset | Colour order |
|---|---|---|---|---|
Linux | 128 × 160 | MX + MY / MX + MV / none / MY + MV | none | BGR |
TFT_eSPI | 128 × 160 | MX + MY / MV + MY / none / MX + MV | none | BGR |
TFT_eSPI | 128 × 128 | MX + MY / MV + MY / none / MX + MV | rotation 2: row 32; rotation 3: column 32 | BGR |
TFT_eSPI numbers its rotations 0–3 rather than in degrees, and its bit combinations for rotations 1 and 3 differ from the Linux driver's 90° and 270°, so do not mix values from the two.
Troubleshooting order
- Red and blue swapped: the colour order is wrong. Bit 3 of MADCTL (
0x08) selects BGR; both drivers above set it. The SRGB pin on the chip sets the filter order (R, G, B or B, G, R) at power-on. - Image shifted, or a band of old pixels at one edge: the window does not match the panel's GM resolution. Set the library to the panel's real resolution; for 128 × 128 in TFT_eSPI, the 32-pixel offset in rotations 2 and 3 is expected.
- Mirrored or upside-down image: MADCTL bits MY (
0x80), MX (0x40) and MV (0x20) set the direction; use the table above. The SMX and SMY pins also flip the scan direction, and the datasheet says register settings are XOR-ed with the pins. - Nothing sensible on screen with ST7735 init code: check the chip. Read the ID with
0x04(defaults 54h 80h 66h) and switch to an ILI9163 init sequence. - Noise, lines or a white screen that changes with wiring: lower the SPI clock. The datasheet minimum write cycle is 66 ns, about 15 MHz.
- Contrast or gamma looks wrong:
0x26selects one of four preset gamma curves (parameter0x01,0x02,0x04or0x08; default0x01). The Linux driver selects0x04. The GS pin changes which curve each value maps to.
Initialization
The Linux ili9163 driver uses this sequence for the Newhaven 1.8″ 128 × 160 panel:
- Gamma curve
0x26=0x04;0xF2=0x00. - Frame rate
0xB1=0x0A 0x14. - Power control
0xC0=0x0A 0x00,0xC1=0x02; VCOM0xC5=0x2F 0x3E,0xC7=0x40. - Colour mode
0x3A= 16-bit, sleep out0x11, wait 100 ms; display on0x29, wait 100 ms. - MADCTL
0x36for the rotation, with BGR.
Power and VCOM values depend on the glass, so if your module came with init code, use it. The datasheet also says that with the EXTC pin low only commands 0x00–0x3A and 0xDA–0xDC are available; to use the extended command set, the datasheet says to connect EXTC to VDDI.
Our 1.77″ ILI9163V modules
Both are 1.77″ 128 × 160 TN modules with a 28.03 × 35.04 mm active area, 0.219 mm pixel pitch, 65K colours and a 12 o'clock viewing direction, built at one of our direct factories:
- PJ177Z12: MCU (8080) interface, 20-pin FPC, 34.00 × 45.83 × 2.75 mm.
- PJT177P07H25-200P11N: SPI interface, 200 cd/m² standard backlight, 34.00 × 45.83 × 2.6 mm.
Related pages
For the Sitronix controller used on many 1.44″ and 1.8″ modules, see ST7735. For 2.0″ and larger 240 × 320 panels, see ST7789V and ILI9341, and for SPI wiring and bus speed, our SPI display page.
ILI9163V init code
// MADCTL (0x36) bits on the ILI9163V: MY 0x80, MX 0x40, MV 0x20, BGR 0x08
uint8_t madctl_for_rotation(int deg) {
uint8_t m;
switch (deg) {
case 0: m = 0x80 | 0x40; break; // MY | MX
case 90: m = 0x40 | 0x20; break; // MX | MV
case 180: m = 0x00; break;
default: m = 0x80 | 0x20; break; // 270: MY | MV
}
return m | 0x08; // the Linux driver always sets BGR
}Display modules using ILI9163V
ILI9163V troubleshooting & FAQ
Can I use ST7735 code for an ILI9163V display?
The basic commands are the same: 0x2A and 0x2B set the window, 0x2C writes pixels, 0x36 sets orientation and 0x3A sets the colour format. The power and frame-rate values are not. The Linux ili9163 driver writes 0x0A 0x14 to frame-rate register 0xB1 and 0x0A 0x00 to power control 0xC0, while the ST7735R sequence uses 0x01 0x2C 0x2D and 0xA2 0x02 0x84. Use an ILI9163 driver or the init code from your module supplier.
How do I tell an ILI9163V from an ST7735?
Read the display ID with command 0x04: after one dummy byte, the ILI9163V datasheet gives 54h, 80h and 66h as the defaults, and commands 0xDA, 0xDB and 0xDC return the same three bytes one at a time. The datasheet notes that the first byte can be changed by a metal option, and some modules do not connect the SPI read line, so also check the module specification.
Why is my 128×128 ILI9163 image shifted by 32 pixels?
In TFT_eSPI, the ILI9163 driver adds an offset only for 128×128 panels: 32 rows in rotation 2 and 32 columns in rotation 3, with no offset in rotations 0 and 1. If the image is shifted or a band of old data appears only in some rotations, check that the library is set to the right resolution (TFT_WIDTH and TFT_HEIGHT).
What SPI clock can an ILI9163V use?
The datasheet gives a minimum serial clock cycle of 66 ns for writes, about 15 MHz, and 150 ns for reads. A full 128×160 frame in RGB565 is 40,960 bytes, about 22 ms at 15 MHz. If the image is noisy, lower the clock and shorten the wires first.
Sources
- Ilitek ILI9163V a-Si TFT LCD Single Chip Driver specification V100 (ILI9163V_DTS_V100_20130416), hosted by Newhaven Display
- Sitronix ST7735S datasheet V1.1, hosted by Crystalfontz
- Linux kernel drivers/gpu/drm/tiny/ili9163.c (commit 5164f7e7)
- Linux kernel drivers/gpu/drm/sitronix/st7735r.c (commit 5164f7e7)
- TFT_eSPI ILI9163 driver files (ILI9163_Defines.h, ILI9163_Rotation.h, commit 16e3759)
- Display Engineer product data: PJ177Z12 and PJT177P07H25-200P11N

