HY28B 2.8" - Touch Screen TFT LCD - SPI, 8 & 16-bit (ILI9325 + XPT2046)
2.8" 320x240 TFT LCD Display Module with SPI, 8/16-bit Interface (ILI9325) 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://www.adafruit.com/datasheets/ILI9325.pdfNotes
Information
The library and demo code are using SPI mode only.
Even though it mentiones ILI9320, the library has been reworked to auto-detect ILI9320, 9325 and 9328 drivers.
Description
LCD Controller | ILI9325 |
Touch Screen Controller | ADS7843 or XPT2046 |
LCD Type | TFT |
LCD Interface | SPI & 8-bit & 16-bit |
Touch Screen Interface | SPI |
Backlight | LED |
Colors | 65536 |
Resolution | 320*240 |
Pin pitch | 2.00 mm |
PIN NO | 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 | D10 | Data bus | D10 |
4 | D11 | Data bus | D11 |
5 | D12 | Data bus | D12 |
6 | D13 | Data bus | D13 |
7 | D14 | Data bus | D14 |
8 | D15 | Data bus | D15 |
9 | D16 | Data bus | D16 |
10 | D17 | Data bus | D17 |
11 | LCD_CS & CS | LCD chip select | Active low |
12 | RS | Instruction/Data register selection | RS = 1 : Instruction Register |
RS = 0 : Data Register | |||
13 | LCD_SCK & WR | LCD SPI Clock & Write | connects to SPI SCK & WR = 0, RD = 1 |
14 | RD | Read | WR = 1, RD = 0 |
15 | RESET | Reset the controller chip | Active low |
16 | LCD_SDO | LCD SPI data output | connects to SPI MISO |
17 | LCD_SDI | LCD SPI data input | connects to SPI MOSI |
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 | D0 | Data bus | D0 |
24 | D1 | Data bus | D1 |
25 | D2 | Data bus | D2 |
26 | D3 | Data bus | D3 |
27 | D4 | Data bus | D4 |
28 | D5 | Data bus | D5 |
29 | D6 | Data bus | D6 |
30 | D7 | Data bus | D7 |
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 | Low level while the touch screen detects pressing |
37 | NC | ||
38 | NC | ||
39 | GND | Ground | Power Ground |
40 | BL_CTRL | Backlight brightness adjustment | Control the backlight brightness via PWM |
HY28B Interface Mode Selection
Note
1 = open
0 = short
IM2 | IM1 | IM0 | Interface Mode |
0 | 1 | 0 | 16bit interface D[17:10], D[07:00] |
0 | 1 | 1 | 8bit interface D[17:10] |
1 | 0 | 0 | Serial Peripheral Interface (Default SPI) |
1 | 0 | 1 | Serial Peripheral Interface (SPI) |
You need to log in to post a discussion