电子说
在电子设计领域,液晶显示模块是人机交互中不可或缺的组件。今天,我们来详细了解Newhaven Display International推出的NHD - 0208BZ - FSW - GBW - 3V3字符液晶显示模块。
文件下载:NHD-0208BZ-FSW-GBW-3V3.pdf
该模块的型号包含了丰富的信息:
| Pin No. | Symbol | External Connection | Function Description |
|---|---|---|---|
| 1 | VSS | Power Supply | Ground |
| 2 | VDD | Power Supply | Supply Voltage for logic (+3.0V) |
| 3 | V0 | Adj Power Supply | Power supply for contrast (approx. 0V) |
| 4 | RS | MPU | Register select signal. RS = 0: Command, RS = 1: Data |
| 5 | R/W | MPU | Read/Write select signal, R/W = 1: Read R/W: = 0: Write |
| 6 | E | MPU | Operation enable signal. Falling edge triggered. |
| 7 - 10 | DB0 – DB3 | MPU | Four low order bi - directional three - state data bus lines. Not used during 4 - bit operation. |
| 11 - 14 | DB4 – DB7 | MPU | Four high order bi - directional three - state data bus lines. |
| A | LED+ | Power Supply | Power supply for LED Backlight (+3.0V) |
| K | LED - | Power Supply | Ground for Backlight |
| 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 | 2.7 | 3.0 | 3.3 | V | |
| Supply Current | IDD | Ta = 25°C, VDD = 3.0V | - | 1.0 | 1.5 | mA |
| Supply for LCD (contrast) | VDD - V0 | Ta = 25°C | - | 3.0 | - | V |
| “H” Level input | Vih | 0.7 VDD | - | VDD | V | |
| “L” Level input | Vil | 0 | - | 0.6 | V | |
| “H” Level output | Voh | 0.75 VDD | - | - | V | |
| “L” Level output | Vol | - | - | 0.2 VDD | V | |
| Backlight Supply Voltage | Vled | - | - | 3.0 | - | V |
| Backlight Supply Current | Iled | Vled = 3.0V | - | 15 | 25 | 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 |
| 模块内置ST7066U控制器,其规格可从http://www.newhavendisplay.com/app_notes/ST7066U.pdf下载。DDRAM地址与显示位置对应关系如下: | 1 | 2 | … | 4 | 5 | 6 | 7 | 8 |
|---|---|---|---|---|---|---|---|---|
| 00 | 01 | 02 | 03 | 04 | 05 | 06 | 07 | |
| 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 |
| 该模块提供了多种指令,用于控制显示、光标等操作,以下是部分指令示例: | Instruction | Instruction Code | Description | Description Time (270KHz) |
|---|---|---|---|---|
| Clear Display | 0 0 0 0 0 0 0 0 0 | Write "20H" to DDRAM and set DDRAM address to "00H" from AC | 1.52 ms | |
| Return Home | 0 0 0 0 0 0 0 0 1 X | Set DDRAM address to "00H" from AC and return cursor to its original position if shifted. The contents of DDRAM are not changed. | 1.52 ms |
void command(char i)
{
P1 = i;
D_I = 0;
R_W = 0;
E = 1;
Delay(1);
E = 0;
}
void write(char i)
{
P1 = i;
D_I = 1;
R_W = 0;
E = 1;
Delay(1);
E = 0;
}
void init()
{
E = 0;
Delay(100);
command(0x30);
Delay(30);
command(0x30);
Delay(10);
command(0x30);
Delay(10);
command(0x38);
command(0x0c);
command(0x06);
}
void command(char i)
{
P1 = i;
D_I = 0;
R_W = 0;
Nybble();
i = i < < 4;
P1 = i;
Nybble();
}
void write(char i)
{
P1 = i;
D_I = 1;
R_W = 0;
Nybble();
i = i < < 4;
P1 = i;
Nybble();
}
void Nybble()
{
E = 1;
Delay(1);
E = 0;
}
void init()
{
P1 = 0;
P3 = 0;
Delay(100);
P1 = 0x30;
Delay(30);
Nybble();
Delay(10);
Nybble();
Delay(10);
Nybble();
Delay(10);
P1 = 0x20;
Nybble();
command(0x28);
command(0x10);
command(0x0F);
command(0x06);
}
该模块经过了多项质量测试,包括高温存储、低温存储、高温操作、低温操作、高温高湿操作、热冲击抵抗、振动测试和静电测试等,具体测试条件和时间可参考文档。
使用该液晶显示模块时,可参考www.newhavendisplay.com/specs/precautions.pdf中的注意事项。同时,关于保修信息和条款可访问http://www.newhavendisplay.com/index.php?main_page=terms。
通过以上对NHD - 0208BZ - FSW - GBW - 3V3字符液晶显示模块的详细解析,你是否对其有了更深入的了解呢?在实际设计中,你会考虑使用这款模块吗?欢迎在评论区分享你的想法。
全部0条评论
快来发表一下你的评论吧 !