Newhaven Display NHD - 0208BZ - RN - YBW - 3V液晶顯示模塊深度解析
在電子設(shè)計(jì)領(lǐng)域,液晶顯示模塊是人機(jī)交互的重要組成部分。今天我們來深入剖析Newhaven Display的NHD - 0208BZ - RN - YBW - 3V字符液晶顯示模塊,希望能為各位電子工程師在實(shí)際設(shè)計(jì)中提供有價(jià)值的參考。
一、產(chǎn)品概述
NHD - 0208BZ - RN - YBW - 3V是一款具有特定功能和特性的液晶顯示模塊。其型號各部分含義如下:
- “NHD - ”代表Newhaven Display品牌。
- “0208 - ”表示該模塊為2行8字符顯示。
- “BZ - ”為具體型號。
- “R - ”代表反射式顯示。
- “N - ”表示無背光。
- “Y - ”采用STN - 黃/綠顯示模式。
- “B - ”具備6:00視角。
- “W - ”支持寬溫度范圍( - 20°C ~ +70°C)。
- “3V - ”使用3V電源供電,并且符合RoHS標(biāo)準(zhǔn)。
二、功能與特性
2.1 顯示規(guī)格
該模塊為2行8字符顯示,能夠滿足一些簡單信息的展示需求,比如小型設(shè)備的狀態(tài)顯示等。
2.2 內(nèi)置控制器
內(nèi)置ST7066U控制器,可通過訪問ST7066U規(guī)格文檔獲取詳細(xì)信息。
2.3 電源與參數(shù)
采用 +3.0V電源供電,驅(qū)動(dòng)方式為1/16 duty,1/5 bias,同時(shí)符合RoHS標(biāo)準(zhǔn),這使得其在環(huán)保和電氣性能上都有一定保障。
三、機(jī)械與引腳信息
3.1 機(jī)械繪圖
該模塊的驅(qū)動(dòng)方式為1/16 duty,1/5 bias,VDD3.0V,VLCD3.0V;顯示類型為STN - YG/正性/反射式/6:00視角;工作溫度范圍為 - 20°C - 70°C,存儲溫度范圍為 - 30°C - 80°C。
3.2 引腳描述
| 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. These four are not used during 4 - bit operation. |
| 11 - 14 | DB4 – DB7 | MPU | Four high order bi - directional three - state data bus lines. |
| A | NC | - | No Connect |
| K | NC | - | No Connect |
推薦使用2.54mm間距的引腳作為LCD連接器。
四、電氣與光學(xué)特性
4.1 電氣特性
| 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 | - | - | - | - | V |
| Backlight Supply Current | Iled | - | - | - | - | mA |
4.2 光學(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 |
五、控制器信息
5.1 DDRAM地址
| DDRAM地址與顯示位置對應(yīng)關(guān)系如下: | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
|---|---|---|---|---|---|---|---|---|
| 00 | 01 | 02 | 03 | 04 | 05 | 06 | 07 | |
| 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 |
5.2 命令表
| 該模塊提供了豐富的命令,用于控制顯示和操作,例如清屏、光標(biāo)移動(dòng)、顯示開關(guān)等,不同命令有不同的指令代碼和執(zhí)行時(shí)間。以下是部分命令示例: | Instruction | Instruction Code | Description | Description Time (270KHz) |
|---|---|---|---|---|
| Clear Display | 0 0 0 0 0 0 0 0 0 1 | 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 |
六、初始化程序
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ì)量與使用注意事項(xiàng)
7.1 質(zhì)量測試
該模塊進(jìn)行了多項(xiàng)質(zhì)量測試,包括高溫存儲、低溫存儲、高溫運(yùn)行、低溫運(yùn)行、高溫高濕運(yùn)行、熱沖擊抗性、振動(dòng)測試和靜電測試等,確保其在不同環(huán)境下的可靠性。
7.2 使用注意事項(xiàng)
使用LCDs/LCMs時(shí),可參考使用注意事項(xiàng)。同時(shí),關(guān)于保修信息和條款可訪問相關(guān)頁面。
在實(shí)際設(shè)計(jì)中,各位工程師可以根據(jù)具體需求選擇合適的初始化方式和命令來驅(qū)動(dòng)該液晶顯示模塊。大家在使用過程中遇到過哪些問題呢?歡迎在評論區(qū)分享交流。
-
液晶顯示模塊
+關(guān)注
關(guān)注
0文章
130瀏覽量
12145 -
初始化程序
+關(guān)注
關(guān)注
1文章
30瀏覽量
6887
發(fā)布評論請先 登錄
Newhaven Display NHD - 0208BZ - RN - YBW - 3V液晶顯示模塊深度解析
評論