探索NHD - 0216SZ - NSW - BBW - 33V3液晶顯示模塊
在電子設(shè)計(jì)領(lǐng)域,液晶顯示模塊是非常重要的組件,它能夠直觀地呈現(xiàn)各種信息。今天我們就來深入了解一下Newhaven Display公司的NHD - 0216SZ - NSW - BBW - 33V3字符液晶顯示模塊。
文件下載:NHD-0216SZ-NSW-BBW-33V3.pdf
產(chǎn)品概述
這個(gè)型號(hào)的液晶顯示模塊具有諸多特點(diǎn)。它采用2行16字符的顯示布局,內(nèi)置ST7066U或等效控制器,供電為+3.3V,符合RoHS標(biāo)準(zhǔn),具有1/16 duty和1/5 bias的特性。
產(chǎn)品命名解析
- NHD:代表Newhaven Display。
- 0216:表示2行16字符。
- SZ:為型號(hào)標(biāo)識(shí)。
- N:代表透射式。
- SW:表示側(cè)面白色LED背光。
- B:STN負(fù)性 - 藍(lán)色。
- BW:寬溫度范圍,最佳視角6:00。
- 33V3:3.3V的邏輯供電電壓,3V的背光電壓。
引腳說明與接線圖
| 該模塊的引腳功能明確,以下是詳細(xì)介紹: | Pin No. | Symbol | External Connection | Function Description |
|---|---|---|---|---|
| 1 | VSS | Power Supply Ground | 電源地 | |
| 2 | VDD | Power Supply | 邏輯供電電壓(+3.3V) | |
| 3 | V0 | Adj. Power Supply | 對(duì)比度供電電壓(約0.3V) | |
| 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 | 四個(gè)低階雙向三態(tài)數(shù)據(jù)總線,4位操作時(shí)不使用 | |
| 11 - 14 | DB4 – DB7 | MPU | 四個(gè)高階雙向三態(tài)數(shù)據(jù)總線 | |
| 15 | LED+ | Power Supply | 背光陽極(+3.0V) | |
| 16 | LED- | Power Supply | 背光陰極(地) |
推薦使用2.54mm間距的引腳作為LCD連接器。
電氣與光學(xué)特性
電氣特性
| Item | Symbol | Condition | Min. | Typ. | Max. | Unit |
|---|---|---|---|---|---|---|
| 工作溫度范圍 | TOP | Absolute Max | -20 | - | +70 | ?C |
| 存儲(chǔ)溫度范圍 | TST | Absolute Max | -30 | - | +80 | ?C |
| 供電電壓 | VDD | - | 3.1 | 3.3 | 3.5 | V |
| 供電電流 | IDD | VDD = 5.0V | 0.5 | 1.5 | 3.0 | mA |
| 液晶對(duì)比度供電 | VDD – V0 | TOP = 25°C | 2.8 | 3.0 | 3.2 | V |
| “H” 電平輸入 | VIH | - | 0.7 * VDD | - | VDD | V |
| “L” 電平輸入 | VIL | - | VSS | - | 0.6 | V |
| “H” 電平輸出 | VOH | - | 0.75 * VDD | - | VDD | V |
| “L” 電平輸出 | VOL | - | VSS | - | 0.2 * VDD | V |
| 背光供電電壓 | VLED | - | 2.8 | 3.0 | 3.2 | V |
| 背光供電電流 | ILED | VLED = 3.0 V | 20 | 30 | 40 | mA |
光學(xué)特性
| Item | Symbol | Condition | Min. | Typ. | Max. | Unit |
|---|---|---|---|---|---|---|
| 最佳視角(上) | ?Y+ | CR ≥ 2 | - | 40 | - | ° |
| 最佳視角(下) | ?Y- | - | 60 | - | ° | |
| 最佳視角(左) | θX- | - | 60 | - | ° | |
| 最佳視角(右) | θX+ | - | 60 | - | ° | |
| 對(duì)比度 | CR | - | 2 | 5 | - | - |
| 響應(yīng)時(shí)間(上升) | TR | TOP = 25°C | - | 150 | 250 | ms |
| 響應(yīng)時(shí)間(下降) | TF | - | 200 | 300 | ms |
控制器信息
模塊內(nèi)置ST7066U控制器,其詳細(xì)規(guī)格可從http://www.newhavendisplay.com/app_notes/ST7066U.pdf下載。DDRAM地址有特定的分配,方便數(shù)據(jù)的存儲(chǔ)和讀取。
指令表
| 該模塊有一系列指令,用于控制顯示和操作,以下是部分指令介紹: | Instruction | Instruction code | Description | 270 KHZ Execution time (fosc=) |
|---|---|---|---|---|
| Clear Display | 0 0 0 0 0 0 0 0 0 1 | 寫入“20H”到DDRAM并將DDRAM地址從AC設(shè)置為“00H” | 1.52ms | |
| Return Home | 0 0 0 0 0 0 0 0 1 - | 設(shè)置DDRAM地址從AC到“00H”,若光標(biāo)移動(dòng)則返回原位置,DDRAM內(nèi)容不變 | 1.52ms | |
| Entry mode Set | 0 0 0 0 0 0 0 1 I/D SH | 設(shè)置光標(biāo)移動(dòng)方向和顯示移位 | 37μs | |
| Display ON/ OFF control | 0 0 0 0 0 0 1 D C B | D = 1顯示開啟,C = 1光標(biāo)開啟,B = 1光標(biāo)閃爍 | 37μs |
初始化程序
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
Delay(1);
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);
Delay(1); //enable pulse width >= 300ns
E = 0; //Clock enable: falling edge
}
void init()
{
E = 0;
Delay (100); //Wait >40 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);
command (0x0c);
command (0x06); //Set cursor //Display ON; Cursor ON //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;
Nybble(); //Send upper 4bits
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 ();
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);
Delay(1); //enable pulse width >= 300ns
E = 0; //Clock enable: falling edge
}
void init()
{
P1 = 0;
P3 = 0;
Delay(100); //Wait >40 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
P1 = 0x20; //put 0x20 on the output port
Delay (10);
Nybble(); //Function set: 4-bit interface
command (0x28); //Function set: 4-bit/2-line
command (0x10);
command (0x0F); //Set cursor
command(0x0F); //Display ON; Blinking cursor
command (0x06); //Entry Mode set
}
質(zhì)量與使用注意事項(xiàng)
質(zhì)量測試
該模塊經(jīng)過多項(xiàng)質(zhì)量測試,包括高溫存儲(chǔ)、低溫存儲(chǔ)、高溫操作、低溫操作、高溫高濕操作、熱沖擊抗性、振動(dòng)測試和靜電測試等。
使用注意事項(xiàng)
在使用時(shí),需要注意一些事項(xiàng),具體可參考www.newhavendisplay.com/specs/precautions.pdf。同時(shí),關(guān)于保修信息和條款可查看http://www.newhavendisplay.com/index.php?main_page=terms 。
NHD - 0216SZ - NSW - BBW - 33V3液晶顯示模塊在電子設(shè)計(jì)中具有廣泛的應(yīng)用前景,各位工程師在實(shí)際使用時(shí),不妨根據(jù)其特性和要求進(jìn)行合理設(shè)計(jì)。大家在使用這個(gè)模塊的過程中遇到過哪些問題呢?歡迎在評(píng)論區(qū)分享交流。
-
液晶顯示模塊
+關(guān)注
關(guān)注
0文章
130瀏覽量
12145
發(fā)布評(píng)論請(qǐng)先 登錄
探索NHD - 0216SZ - NSW - BBW - 33V3液晶顯示模塊
評(píng)論