深入解析NHD-0416BZ-FL-YBW字符液晶顯示模塊
在電子設(shè)計(jì)領(lǐng)域,液晶顯示模塊是人機(jī)交互的重要組成部分。今天我們來詳細(xì)探討Newhaven Display International推出的NHD - 0416BZ - FL - YBW字符液晶顯示模塊,它具有諸多特性,能滿足多種應(yīng)用場(chǎng)景需求。
產(chǎn)品概述
NHD - 0416BZ - FL - YBW模塊從型號(hào)上就可以看出其特點(diǎn):
- “NHD - ”代表Newhaven Display。
- “0416 - ”表明該模塊有4行,每行可顯示16個(gè)字符。
- “BZ - ”是特定的型號(hào)標(biāo)識(shí)。
- “F - ”表示采用了半透反射技術(shù)。
- “L - ”說明配備了黃綠LED背光源。
- “Y - ”代表STN正性黃綠顯示。
- “B - ”意味著最佳視角為6點(diǎn)鐘方向。
- “W - ”表示具備寬溫度工作范圍,并且該產(chǎn)品符合RoHS標(biāo)準(zhǔn)。
功能與特性
顯示能力
該模塊能夠顯示4行×16個(gè)字符的內(nèi)容,內(nèi)置ST7066U控制器,采用 +5.0V電源供電,具有1/16 duty和1/5 bias的特點(diǎn),并且符合RoHS標(biāo)準(zhǔn),環(huán)保又實(shí)用。
機(jī)械與電氣特性
機(jī)械繪圖
模塊的機(jī)械繪圖是Newhaven Display International的專有財(cái)產(chǎn),未經(jīng)許可不得復(fù)制、再現(xiàn)或披露。這保證了產(chǎn)品設(shè)計(jì)的知識(shí)產(chǎn)權(quán)和獨(dú)特性。
引腳描述與接線圖
| Pin No. | Symbol | External Connection | Function Description |
|---|---|---|---|
| 1 | VSS | Power Supply | Ground |
| 2 | VDD | Power Supply | Supply Voltage for logic (+5.0V) |
| 3 | V0 | Adj Power Supply | Supply Voltage for contrast (approx. 0.5V) |
| 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. |
| 15 | LED+ | Power Supply | Backlight Anode (+5.0V via on - board resistor) |
| 16 | LED - | Power Supply | Backlight Cathode (Ground) |
推薦使用2.54mm間距的引腳作為L(zhǎng)CD連接器。
電氣特性
| Item | Symbol | Condition | Min. | Typ. | Max. | Unit |
|---|---|---|---|---|---|---|
| Operating Temperature Range | T OP | Absolute Max | - 20 | - | +70 | ?C |
| Storage Temperature Range | T ST | Absolute Max | - 30 | - | +80 | ?C |
| Supply Voltage | V DD | - | 4.7 | 5.0 | 5.3 | V |
| Supply Current | I DD | V DD = 5.0V | 1.0 | 1.5 | 2.5 | mA |
| Supply for LCD (contrast) | V LCD | T OP = 25°C | 4.3 | 4.5 | 4.7 | V |
| “H” Level input | V IH | - | 0.7*V DD | - | V DD | V |
| “L” Level input | V IL | - | V SS | - | 0.6 | V |
| “H” Level output | V OH | - | 3.9 | - | V DD | V |
| “L” Level output | V OL | - | V SS | - | 0.4 | V |
| Backlight Supply Voltage | V LED | - | 4.7 - | 5.0 | 5.3 | V |
| Backlight Supply Current | I LED | V LED = 5.0V | 120 | 140 | 160 | mA |
光學(xué)特性
| Item | Symbol | Condition | Min. | Typ. | Max. | Unit | ||
|---|---|---|---|---|---|---|---|---|
| Optimal Viewing Angles | Top | ?Y+ | CR ≥ 2 | 35 | - | ? | ||
| Bottom | ?Y - | - | 60 | - | ? | |||
| Left | θX - | - | 55 | - | ? | |||
| Right | θX+ | - | 55 | - | ? | |||
| Contrast Ratio | CR | - | - | 2 | - | - | ||
| Response Time | Rise | T R | T OP = 25°C | - | 150 | 250 | ms | |
| Fall | T F | - | 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 (f OSC = | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| RS | R/W DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0 | |||||||||||
| 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.52ms |
| Return Home | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | - | Set DDRAM Address to “00H” from AC and return cursor to its original position if shifted. The contents of DDRAM are not changed. | 1.52ms |
| Entry mode Set | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | I/D | SH | Sets cursor move direction and specifies display shift. These parameters are performed during data write and read. | 37μs |
| Display ON/ OFF control | 0 | 0 | 0 | 0 | 0 | 0 | 1 | D | C | B | D = 1: Entire display on C = 1: Cursor on B = 1: Blinking cursor on | 37μs |
| Cursor or Display shift | 0 | 0 | 0 | 0 | 0 | 1 | S/C | R/L | - | - | Sets cursor moving and display shift control bit, and the direction without changing DDRAM data. | 37μs |
| Function set | 0 | 0 | 0 | 0 | 1 | DL | N | F | - | - | DL: Interface data is 8/4 bits N: Number of lines is 2/1 F: Font size is 5x11/5x8 | 37μs |
| Set CGRAM Address | 0 | 0 | 0 | 1 | AC5 AC4 AC3 AC2 AC1 AC0 | Set CGRAM address in address counter | 37μs | |||||
| Set DDRAM Address | 0 | 0 | 1 | AC6 AC5 AC4 AC3 AC2 AC1 AC0 | Set DDRAM address in address counter. | 37μs | ||||||
| Read busy Flag and Address | 0 | 1 | BF | AC6 AC5 AC4 AC3 AC2 AC1 AC0 | Whether during internal operation or not can be known by reading BF. The contents of address counter can also be read. | 0s | ||||||
| Write data To Address | 1 | 0 | D7 | D6 | D5 | D4 | D3 | D2 | D1 | D0 | Write data into internal RAM (DDRAM/CGRAM). | 37μs |
| Read data From RAM | 1 | 1 | D7 | D6 | D5 | D4 | D3 | D2 | D1 | D0 | Read data from internal RAM (DDRAM/CGRAM). | 37μs |
時(shí)序特性
從MPU向ST7066U寫數(shù)據(jù)
| Tc | Enable Cycle Time | Pin E | 1200 | ns | ||
|---|---|---|---|---|---|---|
| TPW | Enable Pulse Width | Pin E | 140 | ns | ||
| TR,TF | Enable Rise/Fall Time | Pin E | 25 | ns | ||
| TAS | Address Setup Time | Pins: RS,RW,E | 0 | 0 | ns | |
| TAH | Address Hold Time | Pins: RS,RW,E | 10 | - | ns | |
| TDSW | Data Setup Time | Pins: DB0 - DB7 | 40 | - | ns | |
| TH | Data Hold Time | Pins: DB0 - DB7 | 10 | ns |
從ST7066U向MPU讀數(shù)據(jù)
| Tc | Enable Cycle Time | Pin E | 1200 | 0 | ns | |
|---|---|---|---|---|---|---|
| TPW | Enable Pulse Width | Pin E | 140 | ns | ||
| TR,TF | Enable Rise/Fall Time | Pin E | 25 | ns | ||
| TAS | Address Setup Time | Pins: RS,RW,E | 0 | 0 | ns | |
| TAH | Address Hold Time | Pins: RS,RW,E | 10 | ns | ||
| TDDR | Data Setup Time | Pins: DB0 - DB7 | - | 100 | ns | |
| TH | Data Hold Time | Pins: DB0 - DB7 | 10 | ns |
內(nèi)置字體表
模塊有內(nèi)置的字體表,方便進(jìn)行字符顯示。不過文檔中字體表部分呈現(xiàn)較為復(fù)雜,大家在實(shí)際使用時(shí)可以根據(jù)具體需求進(jìn)一步研究。
初始化程序
8位初始化
void command(char i)
{
P1 = i; //put data on output Port
D_I = 0;
D_I = 0; //D/I = LOW : send instruction
R_W = 0; //R/W = LOW:Write
E = 1;
Delay (1);
Delay(1); //enable pulse width >= 300ns
E = 0; //Clock enable:falling edge
}
void write(char i) {
P1 = i; //put data on output Port
R_W = 0;
D_I = 1; //D/I = HIGH : send data //R/W = LOW:Write
E = 1;
Delay (1);
Delay(1); //enable pulse width >= 300ns
E = 0;
E = 0; //Clock enable: falling edge
}
void init()
{
E = 0;
Delay(100); //Wait >40 msec after power is applied
Delay (100);
command (0x30); //command 0x30 = Wake up
Delay(30);
Delay(30); //must wait 5ms, busy flag not available
command (0x30); //command 0x30 = Wake up #2
Delay (10); Delay(10); //must wait 160us, busy flag not available
command (0x30); //command 0x30 = Wake up #3
Delay (10);
Delay(10); //must wait 160us, busy flag not available
command (0x38);
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 = 0; //D/I = LOW : send instruction
R_W = 0;
Nybble();
i = i < 4; //R/W = LOW:Write //Send lower 4 bits //Shift over by 4 bits
P1 = i;
P1 = i; //put data on output Port
Nybble(); //Send upper 4 bits
}
void write(char i)
{
P1 = i; //put data on output Port
R_W = 0;
Nybble();
P1 = i;
D_I = 1;
i = i < 4; //D/I = HIGH : send data //R/W = LOW: Write //Clock lower 4 bits //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);
Delay(100); //Wait >40 msec after power is applied
P1 = 0x30; //put 0x30 on the output port
P1 = 0x30;
Delay (30);
Delay(30); //must wait 5ms, busy flag not available
Nybble(); //command 0x30 = Wake up
Delay (10);
Delay(10); //must wait 160us, busy flag not available
Nybble(); //command 0x30 = Wake up #2
Delay (10);
Delay(10); //must wait 160us, busy flag not available
Nybble ();
Nybble(); //command 0x30 = Wake up #3
Delay(10); //can check busy flag now instead of delay
Delay (10);
P1 = 0x20; //put 0x20 on the output port
P1 = 0x20;
Nybble(); //Function set: 4 - bit interface
Nybble ();
command (0x28);
command(0x28); //Function set: 4 - bit/2 - line
command (0x10); //Set cursor
command (0x0F);
command(0x0F); //Display ON; Blinking cursor
command (0x06); //Entry Mode set
}
質(zhì)量信息與注意事項(xiàng)
質(zhì)量測(cè)試
| 模塊進(jìn)行了多項(xiàng)質(zhì)量測(cè)試,包括高溫存儲(chǔ)、低溫存儲(chǔ)、高溫運(yùn)行、低溫運(yùn)行、高溫高濕運(yùn)行、熱沖擊抵抗、振動(dòng)測(cè)試和靜電測(cè)試等。具體測(cè)試條件和注意事項(xiàng)如下: | Test Item | Content of Test | Test Condition | Note |
|---|---|---|---|---|
| High Temperature storage | Endurance test applying the high storage temperature for a long time. | +80?C , 48hrs | 2 | |
| Low Temperature storage | Endurance test applying the low storage temperature for a long time. | -30?C , 48hrs | 1,2 | |
| High Temperature Operation | Endurance test applying the electric stress (voltage & current) and the high thermal stress for a long time. | +70?C 48hrs | 2 | |
| Low Temperature Operation | Endurance test applying the electric stress (voltage & current) and the low thermal stress for a long time. | -20?C , 48hrs | 1,2 | |
| High Temperature / Humidity Operation | Endurance test applying the electric stress (voltage & current) and the high thermal with high humidity stress for a long time. | +40?C , 90% RH , 48hrs | 1,2 | |
| Thermal Shock resistance | Endurance test applying the electric stress (voltage & current) during a cycle of low and high thermal stress. | 0?C,30min -> 25?C,5min -> 50?C,30min = |
-
液晶顯示模塊
+關(guān)注
關(guān)注
0文章
130瀏覽量
12145
發(fā)布評(píng)論請(qǐng)先 登錄
深入解析NHD-0416BZ-FL-YBW字符液晶顯示模塊
評(píng)論