探索NHD - 0108FZ - FL - YBW - 3V3字符液晶顯示模塊
在電子設計領(lǐng)域,液晶顯示模塊是不可或缺的組件,它為用戶提供了直觀的信息展示界面。今天我們來詳細了解一下Newhaven Display推出的NHD - 0108FZ - FL - YBW - 3V3字符液晶顯示模塊。
文件下載:NHD-0108FZ-FL-YBW-3V3.pdf
一、產(chǎn)品概述
NHD - 0108FZ - FL - YBW - 3V3是一款具有特定功能和特性的字符液晶顯示模塊。從其型號可以解讀出很多關(guān)鍵信息:
- “NHD - ”代表Newhaven Display。
- “0108 - ”表示該模塊為1行8字符顯示。
- “FZ - ”是特定的型號。
- “F - ”表示具有半透反射特性。
- “L - ”說明采用黃色/綠色LED背光。
- “Y - ”代表STN - 黃色/綠色顯示模式。
- “B - ”表示6:00視角。
- “W - ”意味著具備寬溫度范圍( - 20°C ~ +70°C)。
- “3V3 - ”表示3V的電源電壓和3V的背光電壓,并且該產(chǎn)品符合RoHS標準。
二、功能與特性
2.1 基本參數(shù)
- 顯示規(guī)格:1行8字符顯示,內(nèi)置ST7066U控制器。
- 電源供應:采用 +3.0V電源,1/16 duty,1/5 bias。
2.2 電氣特性
| 項目 | 符號 | 條件 | 最小值 | 典型值 | 最大值 | 單位 |
|---|---|---|---|---|---|---|
| 工作溫度范圍 | Top | 絕對最大 | -20 | - | +70 | °C |
| 存儲溫度范圍 | Tst | 絕對最大 | -30 | - | +80 | °C |
| 電源電壓 | VDD | - | 2.7 | 3.0 | 3.3 | V |
| 電源電流 | IDD | Ta = 25°C,VDD = 3.0V | - | 1.0 | 1.5 | mA |
| LCD對比度電源 | VDD - V0 | Ta = 25°C | - | 3.0 | - | V |
| “H” 電平輸入 | Vih | - | 0.7 VDD | - | VDD | V |
| “L” 電平輸入 | Vil | - | 0 | - | 0.6 | V |
| “H” 電平輸出 | Voh | - | 0.75 VDD | - | - | V |
| “L” 電平輸出 | Vol | - | - | - | 0.2 VDD | V |
| 背光電源電壓 | Vled | - | - | 3.0 | - | V |
| 背光電源電流 | Iled | Vled = 3.0V | - | 120 | 140 | mA |
2.3 光學特性
| 項目 | 符號 | 條件 | 最小值 | 典型值 | 最大值 | 單位 |
|---|---|---|---|---|---|---|
| 垂直視角(頂部) | AV | Cr ≥ 2 | - | 35 | - | ° |
| 垂直視角(底部) | AV | Cr ≥ 2 | - | 60 | - | ° |
| 水平視角(左側(cè)) | AH | Cr ≥ 2 | - | 40 | - | ° |
| 水平視角(右側(cè)) | AH | Cr ≥ 2 | - | 40 | - | ° |
| 對比度 | Cr | - | - | 6 | - | - |
| 響應時間(上升) | Tr | - | - | 150 | 250 | ms |
| 響應時間(下降) | Tf | - | - | 150 | 250 | ms |
三、引腳說明與接線圖
| 引腳編號 | 符號 | 外部連接 | 功能描述 |
|---|---|---|---|
| 1 | VSS | 電源 | 接地 |
| 2 | VDD | 電源 | 邏輯電源電壓( +3.0V) |
| 3 | V0 | 調(diào)節(jié)電源 | 對比度電源(約0V) |
| 4 | RS | MPU | 寄存器選擇信號。RS = 0:命令;RS = 1:數(shù)據(jù) |
| 5 | R/W | MPU | 讀寫選擇信號,R/W = 1:讀;R/W = 0:寫 |
| 6 | E | MPU | 操作使能信號,下降沿觸發(fā) |
| 7 - 10 | DB0 – DB3 | MPU | 四個低階雙向三態(tài)數(shù)據(jù)總線,4位操作時不使用 |
| 11 - 14 | DB4 – DB7 | MPU | 四個高階雙向三態(tài)數(shù)據(jù)總線 |
| 15 | LED+ | 電源 | LED背光電源( +3.0V) |
| 16 | LED - | 電源 | 背光接地 |
推薦的LCD連接器為2.54mm間距引腳。
四、控制器信息
| 該模塊內(nèi)置ST7066U控制器,其規(guī)格可在http://www.newhavendisplay.com/app_notes/ST7066U.pdf下載。DDRAM地址與顯示位置對應關(guān)系如下: | 顯示位置 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
|---|---|---|---|---|---|---|---|---|---|
| DDRAM地址 | 00 | 01 | 02 | 03 | 04 | 05 | 06 | 07 |
五、命令表
| 該模塊有一系列的指令,通過不同的指令碼實現(xiàn)不同的功能,如清屏、光標移動、顯示開關(guān)等。以下是部分指令示例: | 指令 | 指令碼(RS、R/W、DB7 - DB0) | 描述 | 描述時間(270KHz) |
|---|---|---|---|---|
| 清屏 | 0 0 0 0 0 0 0 0 0 1 | 將 “20H” 寫入DDRAM,并將DDRAM地址從AC設置為 “00H” | 1.52 ms | |
| 返回主頁 | 0 0 0 0 0 0 0 0 1 X | 將DDRAM地址從AC設置為 “00H”,如果光標已移動則返回原位置,DDRAM內(nèi)容不變 | 1.52 ms | |
| 輸入模式設置 | 0 0 0 0 0 0 0 1 VD S | 設置光標移動方向并指定顯示移位,在數(shù)據(jù)讀寫時執(zhí)行 | 37 us |
六、初始化程序
6.1 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(0x0c); //Display ON; Cursor ON
command(0x06); //Entry mode set
}
/**********************************************************/
6.2 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 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ì)量信息與注意事項
7.1 質(zhì)量測試
該模塊進行了多項質(zhì)量測試,包括高溫存儲、低溫存儲、高溫操作、低溫操作、高溫高濕操作、熱沖擊抗性、振動測試和靜電測試等,以確保其在不同環(huán)境下的可靠性。
7.2 注意事項
使用該液晶顯示模塊時,需要注意一些事項,具體可查看www.newhavendisplay.com/specs/precautions.pdf。同時,關(guān)于保修信息和條款可訪問http://www.newhavendisplay.com/index.php?main_page=terms。
在實際設計中,電子工程師們需要根據(jù)這些詳細的信息來合理使用該液晶顯示模塊,你在使用類似模塊時遇到過哪些問題呢?歡迎在評論區(qū)分享。
-
液晶顯示模塊
+關(guān)注
關(guān)注
0文章
130瀏覽量
12145
發(fā)布評論請先 登錄
探索NHD - 0108FZ - FL - YBW - 3V3字符液晶顯示模塊
評論