电子说
在电子设计领域,液晶显示模块是人机交互的重要组成部分。今天我们来深入了解Newhaven Display International推出的NHD - 0216SZ - FSPG - GBW字符液晶显示模块,看看它有哪些特性和应用要点。
NHD - 0216SZ - FSPG - GBW是一款具有特定功能和特性的字符液晶显示模块。从型号上我们可以解读出很多信息:
该模块能够显示2行,每行16个字符,满足一般的信息显示需求。
内置SPLC780D或ST7066U控制器,你可以通过http://www.newhavendisplay.com/app_notes/SPLC780D.pdf 和 http://www.newhavendisplay.com/app_notes/ST7066U.pdf 下载它们的详细规格说明。
采用 +5.0V电源供电,工作时的电源参数如下:
| 项目 | 符号 | 条件 | 最小值 | 典型值 | 最大值 | 单位 |
|---|---|---|---|---|---|---|
| 工作温度范围 | Top | 绝对最大 | -20 | - | +70 | °C |
| 存储温度范围 | Tst | 绝对最大 | -30 | - | +80 | °C |
| 电源电压 | VDD | 4.7 | 5.0 | 5.5 | V | |
| 电源电流 | IDD | Ta = 25°C,VDD = 5.0V | - | 1.5 | 2.5 | mA |
| 液晶对比度电源 | VDD - V0 | Ta = 25°C | - | 4.6 | - | V |
| “H” 电平输入 | Vih | 2.2 | - | VDD | V | |
| “L” 电平输入 | Vil | 0 | - | 0.6 | V | |
| “H” 电平输出 | Voh | 2.4 | - | - | V | |
| “L” 电平输出 | Vol | - | - | 0.4 | V | |
| 背光电源电压 | Vled | - | - | 5.0 | - | V |
| 背光电源电流 | Iled | Vled = 5.0V | - | 25 | 30 | mA |
| 项目 | 符号 | 条件 | 最小值 | 典型值 | 最大值 | 单位 |
|---|---|---|---|---|---|---|
| 垂直视角(顶部) | AV | Cr ≥ 2 | - | 25 | - | ° |
| 垂直视角(底部) | AV | Cr ≥ 2 | - | 70 | - | ° |
| 水平视角(左侧) | AH | Cr ≥ 2 | - | 30 | - | ° |
| 水平视角(右侧) | AH | Cr ≥ 2 | - | 30 | - | ° |
| 对比度 | Cr | - | 2 | - | - | |
| 响应时间(上升) | Tr | - | - | 120 | 150 | ms |
| 响应时间(下降) | Tf | - | - | 120 | 150 | ms |
| 引脚号 | 符号 | 外部连接 | 功能描述 |
|---|---|---|---|
| 1 | VSS | 电源 | 接地 |
| 2 | VDD | 电源 | 逻辑电源电压( +5.0V) |
| 3 | V0 | 调节电源 | 对比度电源(约0.4V) |
| 4 | RS | MPU | 寄存器选择信号。RS = 0:命令;RS = 1:数据 |
| 5 | R/W | MPU | 读写选择信号,R/W = 1:读;R/W = 0:写 |
| 6 | E | MPU | 操作使能信号,下降沿触发 |
| 7 - 10 | DB0 – DB3 | MPU | 四个低阶双向三态数据总线,4位操作时不使用 |
| 11 - 14 | DB4 – DB7 | MPU | 四个高阶双向三态数据总线 |
| 15 | LED+ | 电源 | LED背光电源(通过板载电阻 +5.0V) |
| 16 | LED - | 电源 | 背光接地 |
/**********************************************************/
void command(char i) {
P1 = i; //put data on output Port
D_I = 0; //D/I = LOW : send instruction
R_W = 0; //R/W = LOW:Write
E = 1;
Delay(1); //enable pulse width >= 300ns
E = 0; //Clock enable: falling edge
}
/**********************************************************/
void write(char i) {
P1 = i; //put data on output Port
D_I = 1; //D/I = HIGH : send data
R_W = 0; //R/W = LOW : Write
E = 1;
Delay(1); //enable pulse width >= 300ns
E = 0; //Clock enable: falling edge
}
/**********************************************************/
void init() {
E = 0;
Delay(100); //Wait >15 msec after power is applied
command(0x30); //command 0x30 = Wake up
Delay(30); //must wait 5ms, busy flag not available
command(0x30); //command 0x30 = Wake up #2
Delay(10); //must wait 160us, busy flag not available
command(0x30); //command 0x30 = Wake up #3
Delay(10); //must wait 160us, busy flag not available
command(0x38); //Function set: 8-bit/2-line
command(0x10); //Set cursor
command(0x0c); //Display ON; Cursor ON
command(0x06); //Entry mode set
}
void command(char i) {
P1 = i; //put data on output Port
D_I = 0; //D/I = LOW : send instruction
R_W = 0; //R/W = LOW:Write
Nybble(); //Send lower 4 bits
i = i < < 4; //Shift over by 4 bits
P1 = i; //put data on output Port
Nybble(); //Send upper 4 bits
}
void write(char i) {
P1 = i; //put data on output Port
D_I = 1; //D/I = HIGH : send data
R_W = 0; //R/W = LOW: Write
Nybble(); //Clock lower 4 bits
i = i < < 4; //Shift over by 4 bits
P1 = i; //put data on output Port
Nybble(); //Clock upper 4 bits
}
void Nybble() {
E = 1;
Delay(1); //enable pulse width >= 300ns
E = 0; //Clock enable: falling edge
}
void init() {
P1 = 0;
P3 = 0;
Delay(100); //Wait >15 msec after power is applied
P1 = 0x30; //put 0x30 on the output port
Delay(30); //must wait 5ms, busy flag not available
Nybble(); //command 0x30 = Wake up
Delay(10); //must wait 160us, busy flag not available
Nybble(); //command 0x30 = Wake up #2
Delay(10); //must wait 160us, busy flag not available
Nybble(); //command 0x30 = Wake up #3
Delay(10); //can check busy flag now instead of delay
P1 = 0x20; //put 0x20 on the output port
Nybble(); //Function set: 4-bit interface
command(0x28); //Function set: 4-bit/2-line
command(0x10); //Set cursor
command(0x0F); //Display ON; Blinking cursor
command(0x06); //Entry Mode set
}
该模块经过了多项严格的质量测试,包括高温存储、低温存储、高温操作、低温操作、高温高湿操作、热冲击抗性、振动测试和静电测试等。这些测试确保了模块在不同环境下的稳定性和可靠性。
在使用该液晶显示模块时,需要注意一些事项。你可以访问www.newhavendisplay.com/specs/precautions.pdf查看详细的预防措施。同时,关于保修信息和条款条件可以在http://www.newhavendisplay.com/index.php?main_page=terms 找到。
NHD - 0216SZ - FSPG - GBW字符液晶显示模块以其丰富的功能、良好的性能和可靠的质量,在电子设计中具有广泛的应用前景。大家在实际应用中,不妨根据自己的需求合理选择和使用。你在使用液晶显示模块时遇到过哪些问题呢?欢迎在评论区分享。
全部0条评论
快来发表一下你的评论吧 !