电子说
在电子设备的设计中,显示模块是人机交互的重要组件。今天,我们来深入了解Newhaven Display推出的NHD - 0108BZ - RN - YBW - 3V字符液晶显示模块,看看它有哪些特性和优势。
NHD - 0108BZ - RN - YBW - 3V是一款单排8字符的液晶显示模块,适用于多种电子设备。以下是对其型号含义的解读:
该模块为1行8字符显示,内置ST7066U控制器,支持 + 3.0V电源供电,采用1/8 duty、1/4 bias的驱动方式。
| 项目 | 符号 | 条件 | 最小值 | 典型值 | 最大值 | 单位 |
|---|---|---|---|---|---|---|
| 工作温度范围 | Top | 绝对最大 | -20 | - | +70 | °C |
| 存储温度范围 | Tst | 绝对最大 | -30 | - | +80 | °C |
| 电源电压 | VDD | 2.7 | 3.0 | 3.3 | V | |
| 电源电流 | IDD | Ta = 25°C,VDD = 3.0V | - | 1.0 | 1.5 | mA |
| LCD供电(对比度) | VDD - V0 | Ta = 25°C | - | 3.0 | - | V |
| “H” 电平输入 | Vih | 0.7 VDD | - | VDD | V | |
| “L” 电平输入 | Vil | 0 | - | 0.6 | V | |
| “H” 电平输出 | Voh | 0.75 VDD | - | - | V | |
| “L” 电平输出 | Vol | - | - | 0.2 VDD | V |
| 项目 | 符号 | 条件 | 最小值 | 典型值 | 最大值 | 单位 |
|---|---|---|---|---|---|---|
| 垂直视角(顶部) | 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 |
| 3 | VO |
| 4 | RS |
| 5 | RW |
| 6 | E |
| 7 | DB0 |
| 8 | DB1 |
| 9 | DB2 |
| 10 | DB3 |
| 11 | DB4 |
| 12 | DB5 |
| 13 | DB6 |
| 14 | DB7 |
| 引脚编号 | 符号 | 外部连接 | 功能描述 |
|---|---|---|---|
| 1 | VSS | 电源 | 接地 |
| 2 | VDD | 电源 | 逻辑供电电压( + 3.0V) |
| 3 | V0 | 调节电源 | 对比度供电(约0V) |
| 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 | 四个高阶双向三态数据总线 |
推荐使用2.54mm间距的引脚作为LCD连接器。
该模块提供了丰富的命令,用于控制显示和操作。例如:
/**********************************************************/
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(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 4bits
}
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);
command(0x0F); //Display ON; Blinking cursor
command(0x06); //Entry Mode set
}
该模块经过了多项质量测试,包括高温存储、低温存储、高温操作、低温操作、高温高湿操作、热冲击抗性、振动测试和静电测试等。
更多使用注意事项可参考:www.newhavendisplay.com/specs/precautions.pdf
NHD - 0108BZ - RN - YBW - 3V字符液晶显示模块具有宽温度范围、低功耗等特点,适用于多种电子设备。通过本文的介绍,相信大家对该模块有了更深入的了解。在实际设计中,你是否会考虑使用这款显示模块呢?欢迎在评论区分享你的想法。
全部0条评论
快来发表一下你的评论吧 !