管脚号 | 管脚名称 | LEVER | 管脚功能描述 |
1 | VSS | 0 | 电源地 |
2 | VDD | +5.0V | 电源电压 |
3 | V0 | - | 液晶显示器驱动电压 |
4 | D/I(RS) | H/L | D/I=“H”,表示DB7~DB0为显示数据 |
D/I=“L”,表示DB7~DB0为显示指令数据 | |||
5 | R/W | H/L | R/W=“H”,E=“H”数据被读到DB7∽DB0 |
R/W=“L”,E=“H→L”数据被写到IR或DR | |||
6 | E | H/L | R/W=“L”,E信号下降沿锁存DB7~DB0 |
R/W=“H”,E=“H”DDRAM数据读到DB7~DB0 | |||
7 | DB0 | H/L | 数据线 |
8 | DB1 | H/L | 数据线 |
9 | DB2 | H/L | 数据线 |
10 | DB3 | H/L | 数据线 |
11 | DB4 | H/L | 数据线 |
12 | DB5 | H/L | 数据线 |
13 | DB6 | H/L | 数据线 |
14 | DB7 | H/L | 数据线 |
15 | CS1 | H/L | H:选择芯片(右半屏)信号 |
16 | CS2 | H/L | H:选择芯片(左半屏)信号 |
17 | RET | H/L | 复位信号,低电平复位 |
18 | VOUT | -10V | LCD驱动负电压 |
19 | LED+ | - | LED背光板电源 |
20 | LED- | - | LED背光板电源 |
表1:12864LCD的引脚说明 |
指令名称 | 控制信号 | 控制代码 | ||||||||
R/W | RS | DB7 | DB6 | DB5 | DB4 | DB3 | DB2 | DB1 | DB0 | |
显示开关 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1/0 |
显示起始行设置 | 0 | 0 | 1 | 1 | X | X | X | X | X | X |
页设置 | 0 | 0 | 1 | 0 | 1 | 1 | 1 | X | X | X |
列地址设置 | 0 | 0 | 0 | 1 | X | X | X | X | X | X |
读状态 | 1 | 0 | BUSY | 0 | ON/OFF | RST | 0 | 0 | 0 | 0 |
写数据 | 0 | 1 | 写数据 | |||||||
读数据 | 1 | 1 | 读数据 |
R/WRS | DB7 DB6 DB5 DB4 DB3DB2DB1 DB0 |
00 | 00111111/0 |
R/WRS | DB7 DB6 DB5 DB4 DB3DB2DB1 DB0 |
00 | 11显示起始行(0~63) |
R/WRS | DB7 DB6 DB5 DB4 DB3DB2DB1 DB0 |
00 | 10111页号(0~7) |
R/WRS | DB7 DB6 DB5 DB4 DB3DB2DB1 DB0 |
00 | 01显示列地址(0~63) |
R/WRS | DB7 DB6 DB5 DB4 DB3DB2DB1 DB0 |
10 | BUSY0ON/OFFREST0000 |
R/WRS | DB7 DB6 DB5 DB4 DB3DB2DB1 DB0 |
01 | 写数据 |
R/WRS | DB7 DB6 DB5 DB4 DB3DB2DB1 DB0 |
11 | 读显示数据 |
更多回帖