NHD - 0216SZ - FSB - GBW字符液晶顯示模塊詳解
在電子設(shè)計(jì)領(lǐng)域,液晶顯示模塊是人機(jī)交互的重要組成部分。今天,我們就來詳細(xì)探討一下NHD - 0216SZ - FSB - GBW字符液晶顯示模塊。
產(chǎn)品概述
NHD - 0216SZ - FSB - GBW是Newhaven Display推出的一款字符液晶顯示模塊。該模塊具有2行16字符的顯示能力,內(nèi)置SPLC780D或ST7066U控制器,采用+5.0V電源供電,具備1/16 duty、1/5 bias的特性,并且符合RoHS標(biāo)準(zhǔn)。其型號(hào)中的各個(gè)部分含義如下:
- “0216”表示2行16字符;
- “SZ”代表特定的系列;
- “F”表示Transflective;
- “SB”表示Side Blue LED Backlight;
- “G”表示G - STN - Gray;
- “B”表示6:00 view;
- “W”表示W(wǎng)ide Temperature(-20°C ~ +70°C)。
機(jī)械與電氣特性
引腳說明與接線圖
| 該模塊共有16個(gè)引腳,每個(gè)引腳都有其特定的功能: | Pin No. | Symbol | External Connection | Function Description |
|---|---|---|---|---|
| 1 | VSS | Power Supply Ground | 電源地 | |
| 2 | VDD | Power Supply | 邏輯電源電壓(+5.0V) | |
| 3 | V0 | Adj Power Supply | 對(duì)比度電源(約0.4V) | |
| 4 | RS | MPU | 寄存器選擇信號(hào),RS = 0:命令;RS = 1:數(shù)據(jù) | |
| 5 | R/W | MPU | 讀寫選擇信號(hào),R/W = 1:讀;R/W = 0:寫 | |
| 6 | E | MPU | 操作使能信號(hào),下降沿觸發(fā) | |
| 7 - 10 | DB0 – DB3 | MPU | 低四位雙向三態(tài)數(shù)據(jù)總線,4位操作時(shí)不使用 | |
| 11 - 14 | DB4 – DB7 | MPU | 高四位雙向三態(tài)數(shù)據(jù)總線 | |
| 15 | LED+ | Power Supply | LED背光電源(通過板載電阻接+5.0V) | |
| 16 | LED - | Power Supply | 背光地 |
電氣特性
| 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.6 | - | 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 | - | - | 5.0 | - | V |
| Backlight Supply Current | Iled | Vled = 5.0V | - | 20 | 30 | mA |
光學(xué)特性
| 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 |
控制器與字符顯示
控制器信息
該模塊內(nèi)置SPLC780D和ST7066U控制器,其詳細(xì)規(guī)格可分別從以下鏈接下載:
- SPLC780D:http://www.newhavendisplay.com/app_notes/SPLC780D.pdf
- ST7066U:http://www.newhavendisplay.com/app_notes/ST7066U.pdf
顯示字符地址代碼
| 顯示字符的地址代碼如下: | 2 | 5 | 6 | 7 | 9 | 10 | 13 | 14 | 16 | |||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 00 | 01 | 03 | 04 | 05 | 06 | 0E | ||||||||
| 40 | 41 | 42 | 44 | 47 | 4E | 4F |
內(nèi)置字體表
內(nèi)置字體表包含了各種字符的編碼對(duì)應(yīng)關(guān)系,具體內(nèi)容可參考文檔中的表格。
初始化程序
8位初始化
/**********************************************************/
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
}
4位初始化
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
}
質(zhì)量與使用注意事項(xiàng)
質(zhì)量測(cè)試
該模塊進(jìn)行了多項(xiàng)質(zhì)量測(cè)試,包括高溫存儲(chǔ)、低溫存儲(chǔ)、高溫操作、低溫操作、高溫高濕操作、熱沖擊抗性、振動(dòng)測(cè)試和靜電測(cè)試等,具體測(cè)試條件和注意事項(xiàng)可參考文檔中的表格。
使用注意事項(xiàng)
使用LCDs/LCMs時(shí),可參考www.newhavendisplay.com/specs/precautions.pdf中的預(yù)防措施。同時(shí),保修信息和條款可查看http://www.newhavendisplay.com/index.php?main_page=terms。
在實(shí)際設(shè)計(jì)中,電子工程師們需要根據(jù)具體的應(yīng)用場(chǎng)景和需求,合理選擇初始化方式和參數(shù),以確保該液晶顯示模塊能夠穩(wěn)定、高效地工作。大家在使用這款模塊的過程中遇到過哪些問題呢?歡迎在評(píng)論區(qū)分享交流。
-
初始化程序
+關(guān)注
關(guān)注
1文章
30瀏覽量
6888
發(fā)布評(píng)論請(qǐng)先 登錄
NHD - 0216SZ - FSB - GBW字符液晶顯示模塊詳解
評(píng)論