电子说
在电子设计领域,液晶显示模块是人机交互中不可或缺的部件。今天我们来深入了解Newhaven Display International公司的NHD字符液晶显示模块,它在性能和功能上都有诸多亮点,能为各类电子设备提供清晰的信息显示。
文件下载:NHD-0108CZ-FSW-GBW-33V3.pdf
NHD字符液晶显示模块具有1行8字符的显示能力,内置ST7066U或等效控制器,采用+3.3V电源供电,支持4位或8位MPU接口,并且符合RoHS标准,环保可靠。
从机械图纸来看,该模块的尺寸标注清晰,如55.4±0.5mm、52.4±0.5mm等具体尺寸,同时采用2.54mm间距的引脚作为推荐的LCD连接器。在设计时,工程师需要根据这些尺寸进行合理的布局,确保模块能够与其他部件完美适配。
| Pin No. | Symbol | External Connection | Function Description |
|---|---|---|---|
| 1 | VSS | Power Supply | Ground |
| 2 | VDD | Power Supply | Supply Voltage for Logic (+3.3V) |
| 3 | V0 | Adj. Power Supply | Supply Voltage 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 | DB4 – DB7 | MPU | Four high order bi - directional three - state data bus lines. |
| 11 - 14 | DB0 – DB3 | MPU | Four low order bi - directional three - state data bus lines. These four are not used during 4 - bit operation. |
| A | LED+ | Power Supply | Backlight Anode (30 mA @ 2.8 V) |
| K | LED - | Power Supply | Backlight Cathode (Ground) |
这些引脚各司其职,在电路连接时,我们要准确无误地将其与相应的电路进行连接,以确保模块正常工作。比如RS引脚用于区分是发送命令还是数据,这在编程控制时非常关键。
| 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 | - | 3.1 | 3.3 | 3.5 | V |
| Supply Current | IDD | VDD = 3.3V | 0.5 | 1.5 | 3.0 | mA |
| Supply for LCD (Contrast) | VDD – V0 | TOP = 25°C | 3.1 | 3.3 | 3.5 | V |
| “H” Level input | VIH | - | 0.7 * VDD | - | VDD | V |
| “L” Level input | VIL | - | VSS | - | 0.6 | V |
| “H” Level output | VOH | - | 0.75 * VDD | - | VDD | V |
| “L” Level output | VOL | - | VSS | - | 0.2 * VDD | V |
| Backlight Supply Current | ILED | - | - | 30 | 40 | mA |
| Backlight Supply Voltage | VLED | ILED = 30mA | 2.7 | 2.8 | 3.0 | V |
了解这些电气特性有助于我们在不同的环境条件下合理使用该模块。例如,在设计电源电路时,要确保提供的电源电压在3.1 - 3.5V之间,以保证模块稳定运行。
| Item | Symbol | Condition | Min. | Typ. | Max. | Unit | ||
|---|---|---|---|---|---|---|---|---|
| Optimal Viewing Angles | Top | ϕY+ | CR ≥ 2 | - | 40 | - | ° | |
| Bottom | ϕY - | - | 60 | - | ° | |||
| Left | θX - | - | 60 | - | ° | |||
| Right | θX+ | - | 60 | - | ° | |||
| Contrast Ratio | CR | - | 2 | 5 | - | - | ||
| Response Time | Rise | TR | TOP = 25°C | - | 150 | 250 | ms | |
| Fall | TF | - | 200 | 300 | ms |
在实际应用中,我们可以根据这些光学特性来调整模块的安装位置和角度,以获得最佳的显示效果。比如,在设计产品外壳时,要考虑到最佳视角范围,让用户能够清晰地看到显示内容。
模块提供了丰富的指令集,如清屏、返回主页、设置显示模式等。例如,Clear Display指令可以将DDRAM的数据清空并将地址设置为“00H”,执行时间为1.52ms。这些指令在编程时需要根据实际需求进行调用,以实现不同的显示功能。
模块支持8位和4位初始化方式。以8位初始化为例,代码如下:
void command(char i)
{
P1 = i; D_1 = 0; RW = 0; //R/W=LOW: Write //put data on output Port //D/I=LOW: send instruction
E = 1;
Delay(1); //enable pulse width >= 300ns
E = 0; //Clock enable: falling edge
}
void write(char i)
{
D_1 = 1; P1 = i; RW = 0; //put data on output Port //R/W=LOW:Write //D/l=HIGH: send data
E = 1; Delay(1); //enable pulse width >= 300ns
E = 0; //Clock enable: falling edge
}
void init()
{
E = 0; Delay(100); command(0x30); //Wait >40 msec after power is applied //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); command(0x38); command(0x10); //must wait 160us, busy flag not available //Function set: 8 - bit/2 - line //Set cursor
command(0x0c); //Display ON; Cursor ON
command(0x06); //Entry mode set
}
在实际编程中,我们需要根据具体的硬件平台和需求对这些代码进行适当的修改和调整。
该模块经过了多项质量测试,包括高低温存储、高低温操作、湿热操作、热冲击、振动和静电测试等。这些测试确保了模块在不同环境条件下的可靠性和稳定性。例如,在高温存储测试中,模块需要在+80⁰C的环境下持续48小时,以验证其在高温环境下的性能。
NHD字符液晶显示模块在性能、功能和可靠性方面都表现出色。作为电子工程师,我们在使用该模块时,要充分了解其机械、电气、光学等特性,合理运用指令集和初始化程序,同时关注质量测试结果,以确保设计出的产品能够稳定、可靠地运行。大家在实际应用中是否遇到过类似模块的使用问题呢?欢迎在评论区分享。
全部0条评论
快来发表一下你的评论吧 !