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 |
HY28B Pin Description
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 |
Low active |
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 |
Low active |
16 |
LCD_SDO |
LCD SPI data output |
connects to SPI MISO |
17 |
LCD_SDI |
LCD SPI data input |
connects to SPI MOSI |
18 |
NC |
Not connect |
Not connect |
19 |
GND |
Ground |
Power Ground |
20 |
3V3_IN |
3.3V power supply |
3V3_IN = 3V3OUT, When powered from 3.3V supply,
5V_IN keep NC. |
21 |
3V3_OUT |
3.3V power supply |
3V3_IN = 3V3OUT, When powered from 3.3V supply,
5V_IN keep NC. |
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 |
Not connect |
Not connect |
32 |
TP_CS |
Touch screen chip select |
Low active |
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 |
Not connect |
Not connect |
38 |
NC |
Not connect |
Not connect |
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) |
Document
WIki Page for Raspberry PI
HY28B dimension.pdf
HY28B schematic.pdf
ILI9325 datasheet.pdf
HY28B PCB(Protel & AD Format).lib
HY28B for SPI interface example source code.rar
HY28B for 16bit interface example source code.rar