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.pdf

Notes

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 ControllerILI9325
Touch Screen ControllerADS7843 or XPT2046
LCD TypeTFT
LCD InterfaceSPI & 8-bit & 16-bit
Touch Screen InterfaceSPI
BacklightLED
Colors65536
Resolution320*240
Pin pitch2.00 mm
PIN NOSYMBOLDESCRIPTIONFUNCTION
15V_IN5V power supplyWhen powered from 5V supply,
Pin 20 & Pin 21 ( 3V3_IN & 3V3_OUT ) provide 3.3V output.
2GNDGroundPower Ground
3D10Data busD10
4D11Data busD11
5D12Data busD12
6D13Data busD13
7D14Data busD14
8D15Data busD15
9D16Data busD16
10D17Data busD17
11LCD_CS & CSLCD chip selectActive low
12RSInstruction/Data register selectionRS = 1 : Instruction Register
RS = 0 : Data Register
13LCD_SCK & WRLCD SPI Clock & Writeconnects to SPI SCK & WR = 0, RD = 1
14RDReadWR = 1, RD = 0
15RESETReset the controller chipActive low
16LCD_SDOLCD SPI data outputconnects to SPI MISO
17LCD_SDILCD SPI data inputconnects to SPI MOSI
18NC
19GNDGroundPower Ground
203V3_IN3.3V power supply3V3_IN = 3V3OUT, When powered from 3.3V supply DO NOT CONNECT 5V_IN
213V3_OUT3.3V power supply3V3_IN = 3V3OUT, When powered from 3.3V supply DO NOT CONNECT 5V_IN
22GNDGroundPower Ground
23D0Data busD0
24D1Data busD1
25D2Data busD2
26D3Data busD3
27D4Data busD4
28D5Data busD5
29D6Data busD6
30D7Data busD7
31NC
32TP_CSTouch screen chip selectActive low
33TP_SCKTouch screen SPI clockconnects to SPI SCK
34TP_SDITouch screen data inputconnects to SPI MOSI
35TP_SDOTouch screen data outputconnects to SPI MISO
36TP_IRQTouch screen interruptLow level while the touch screen detects pressing
37NC
38NC
39GNDGroundPower Ground
40BL_CTRLBacklight brightness adjustmentControl the backlight brightness via PWM

HY28B Interface Mode Selection

Note

1 = open
0 = short

IM2IM1IM0Interface Mode
01016bit interface D[17:10], D[07:00]
0118bit interface D[17:10]
100Serial Peripheral Interface (Default SPI)
101Serial Peripheral Interface (SPI)

You need to log in to post a discussion