HY28A-LCDB SPI (ILI9320 + XPT2046)
2.8" 320x240 TFT LCD Display Module with SPI Interface (ILI9320) and Touch controller (XPT2046 = ADS7843).
Hello World
Import programKL25Z_ILI9320_Demo
KL25Z driving an ILI9320 LCD board with touch panel (HY28A-LCDB SPI)
Library
Import librarySPI_TFT_ILI9320
SPI Library for 240x320 TFT LCD with ILI9320, ILI9325 and ILI9328 chip
Pinout
Datasheet
http://mbed.org/media/uploads/frankvnk/ili9320ds_v0.51.pdfNotes
Note
The ILI9320 library has been adapted to auto-detect following LCD drivers: ILI9320, ILI9325 and ILI9328
Schematic
Description
LCD Controller | ILI9320 |
Touch Screen Controller | ADS7843 or XPT2046 |
LCD Type | TFT |
LCD Interface | SPI |
Touch Screen Interface | SPI |
Backlight | LED |
Colours | 65536 |
Resolution | 320*240 |
Pin pitch | 2.00 mm |
Pinout
PIN | SYMBOL | DESCRIPTION | FUNCTION |
1 | 5V_IN | 5V power supply | When powered from 5V supply, Pin 20 & Pin 21 ( 3V3_IN & 3V3_OUT ) provide 3.3V output. |
2 | GND | Ground | Power Ground |
3 | LCDB_SCK | LCD SPI clock | connects to SPI SCK |
4 | LCDB_CS | LCD chip select | Active low |
5 | LCDB_SDO | LCD SPI data output | connects to SPI MISO |
6 | LCDB_SDI | LCD SPI data input | connects to SPI MOSI |
7..14 | NC | ||
15 | RESET | Reset the controller chip | Active low |
16..18 | NC | ||
19 | GND | Ground | Power Ground |
20 | 3V3_IN | 3.3V power supply | 3V3_IN = 3V3OUT, When powered from 3.3V supply DO NOT CONNECT 5V_IN |
21 | 3V3_OUT | 3.3V power supply | 3V3_IN = 3V3OUT, When powered from 3.3V supply DO NOT CONNECT 5V_IN |
22 | GND | Ground | Power Ground |
23..31 | NC | ||
32 | TP_CS | Touch screen chip select | Active low |
33 | TP_SCK | Touch screen SPI clock | connects to SPI SCK |
34 | TP_SDI | Touch screen data input | connects to SPI MOSI |
35 | TP_SDO | Touch screen data output | connects to SPI MISO |
36 | TP_IRQ | Touch screen interrupt output | Active low |
37, 38 | NC | ||
39 | GND | Ground | Power Ground |
40 | BL_CTRL | Backlight brightness adjustment | Control the backlight brightness via PWM |