电子说
在电子设计领域,液晶显示模块是人机交互的重要组成部分。今天我们来深入了解一下Newhaven Display International推出的NHD - 0216CZ - FL - YBW字符液晶显示模块,看看它有哪些特性和应用要点。
NHD - 0216CZ - FL - YBW是一款具备特定功能和特性的字符液晶显示模块。从型号上我们可以解读出很多信息:
该模块可显示2行,每行16个字符,能满足一般的信息显示需求。
内置SPLC780D或ST7066U控制器,相关规格可分别从http://www.newhavendisplay.com/app_notes/SPLC780D.pdf和http://www.newhavendisplay.com/app_notes/ST7066U.pdf下载。
采用 +5.0V电源供电,具有1/16 duty和1/5 bias的特性,并且符合RoHS标准。
| Pin No. | Symbol | External Connection | Function Description |
|---|---|---|---|
| 1 | VDD | Power Supply | Supply Voltage for logic (+5.0V) |
| 2 | V0 | Adj Power Supply | Power supply for contrast (approx. 0.5V) |
| 3 | RS | MPU | Register select signal. RS = 0: Command, RS = 1: Data |
| 4 | R/W | MPU | Read/Write select signal, R/W = 1: Read R/W: = 0: Write |
| 5 | E | MPU | Operation enable signal. Falling edge triggered. |
| 6 - 9 | DB0 – DB3 | MPU | Four low order bi - directional three - state data bus lines. These four are not used during 4 - bit operation. |
| 10 - 13 | DB4 – DB7 | MPU | Four high order bi - directional three - state data bus lines. |
| 14 | VSS | Power Supply | Ground |
| A | LED+ | Power Supply | Power supply for LED Backlight (+4.2V) |
| K | LED - | Power Supply | Ground for Backlight |
推荐使用1.0mm间距的引脚作为LCD连接器。
| Item | Symbol | Condition | Min. | Typ. | Max. | Unit |
|---|---|---|---|---|---|---|
| Operating Temperature Range | Top | Absolute Max | - 20 | - | +70 | ⁰C |
| Storage Temperature Range | Tst | Absolute Max | - 30 | - | +80 | ⁰C |
| Supply Voltage | VDD | 4.7 | 5.0 | 5.5 | V | |
| Supply Current | IDD | Ta = 25°C, VDD = 5.0V | - | 1.5 | 2.5 | mA |
| Supply for LCD (contrast) | VDD - V0 | Ta = 25°C | - | 4.5 | - | V |
| “H” Level input | Vih | 2.2 | - | VDD | V | |
| “L” Level input | Vil | 0 | - | 0.6 | V | |
| “H” Level output | Voh | 2.4 | - | - | V | |
| “L” Level output | Vol | - | - | 0.4 | V | |
| Backlight Supply Voltage | Vled | - | - | 4.2 | V | |
| Backlight Supply Current | Iled | Vled = 4.2V | - | 120 | 160 | mA |
| Item | Symbol | Condition | Min. | Typ. | Max. | Unit |
|---|---|---|---|---|---|---|
| Viewing Angle – Vertical (top) | AV | Cr ≥2 | - | 25 | - | ⁰ |
| Viewing Angle – Vertical (bottom) | AV | Cr ≥2 | - | 70 | - | ⁰ |
| Viewing Angle – Horizontal (left) | AH | Cr ≥2 | - | 30 | - | ⁰ |
| Viewing Angle – Horizontal (right) | AH | Cr ≥2 | - | 30 | - | ⁰ |
| Contrast Ratio | Cr | - | 2 | - | - | |
| Response Time (rise) | Tr | - | - | 120 | 150 | ms |
| Response Time (fall) | Tf | - | - | 120 | 150 | ms |
/**********************************************************/
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;
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
}
该模块经过了一系列严格的质量测试,包括高温存储、低温存储、高温运行、低温运行、高温高湿运行、热冲击抵抗、振动测试和静电测试等。例如,高温存储测试在 +80⁰C下进行48小时,低温存储测试在 - 30⁰C下进行48小时。
使用LCD/LCM时,可参考www.newhavendisplay.com/specs/precautions.pdf中的注意事项。同时,关于保修信息和条款可查看http://www.newhavendisplay.com/index.php?main_page=terms 。
NHD - 0216CZ - FL - YBW字符液晶显示模块以其丰富的功能、良好的电气和光学特性,为电子工程师在设计人机交互界面时提供了一个可靠的选择。在实际应用中,我们需要根据具体需求合理使用该模块,并严格遵循相关的使用和测试要求。大家在使用过程中遇到过哪些问题呢?欢迎在评论区分享交流。
全部0条评论
快来发表一下你的评论吧 !