深入解析NHD - 0216PZ - FL - YBW - PC字符液晶顯示模塊
在電子設(shè)計(jì)領(lǐng)域,液晶顯示模塊是人機(jī)交互中不可或缺的重要組件。今天,我們就來(lái)詳細(xì)探討Newhaven Display International推出的NHD - 0216PZ - FL - YBW - PC字符液晶顯示模塊。
產(chǎn)品概述
NHD - 0216PZ - FL - YBW - PC是一款具備2行16字符顯示能力的液晶顯示模塊。通過型號(hào)解讀,我們能了解到它的諸多特性:
- “NHD - ”代表Newhaven Display品牌。
- “0216 - ”明確了顯示規(guī)格為2行×16字符。
- “PZ - ”是特定的型號(hào)標(biāo)識(shí)。
- “F - ”表示具有半反半透特性。
- “L - ”說明采用了黃/綠色LED背光。
- “Y - ”代表STN - 黃/綠色顯示模式。
- “B - ”意味著最佳視角為6:00方向。
- “W - ”表明具備寬溫度工作范圍。
- “PC - ”中,“P”表示背光引腳15和16反接且R6 = 20歐姆,“C”表示有ESD輸入電容。同時(shí),該模塊符合RoHS標(biāo)準(zhǔn)。
機(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 | Power supply for contrast (approx. 0.6V) |
| 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 | Ground for Backlight |
| 16 | LED + | Power Supply | Power supply for LED Backlight (+5.0V via on - board resistor) |
推薦使用2.54mm間距的引腳作為L(zhǎng)CD連接器。
電氣特性
| 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.3 | V |
| Supply Current | IDD | VDD = 5.0V | - | 1.5 | 2.0 | mA |
| Supply for LCD (contrast) | VDD - V0 | Ta = 25°C | 4.2 | 4.4 | 4.6 | V |
| “H” Level input | Vih | - | 0.7*VDD | - | VDD | V |
| “L” Level input | Vil | - | VSS | - | 0.6 | V |
| “H” Level output | Voh | - | 3.9 | - | VDD | V |
| “L” Level output | Vol | - | - | - | 0.4 | V |
| Backlight Supply Voltage | Vled | - | 4.7 | 5.0 | 5.3 | V |
| Backlight Supply Current | Iled | Vled = 5.0V | 40 | 50 | 60 | mA |
從這些電氣參數(shù)中,我們可以看到該模塊在不同溫度環(huán)境下的工作和存儲(chǔ)范圍,以及供電和電流需求等關(guān)鍵信息。在實(shí)際設(shè)計(jì)中,我們需要確保電源和電路能夠滿足這些參數(shù)要求,以保證模塊的正常工作。
光學(xué)特性
| Item | Symbol | Condition | Min. | Typ. | Max. | Unit | ||
|---|---|---|---|---|---|---|---|---|
| Optimal Viewing Angles | Top | ?Y+ | Cr ≥ 2 | - | 40 | - | ? | |
| Bottom | ?Y - | - | 60 | - | ? | |||
| Left | θX - | - | 60 | - | ? | |||
| Right | θX+ | - | 60 | - | ? | |||
| Contrast Ratio | Cr | 2 | 5 | - | - | |||
| Response Time | Rise | Tr | - | - | 150 | 250 | ms | |
| Fall | Tf | - | - | 200 | 300 | ms |
這些光學(xué)特性決定了模塊的視覺效果,例如最佳視角和對(duì)比度等。在實(shí)際應(yīng)用中,我們需要根據(jù)具體的使用場(chǎng)景來(lái)考慮這些因素,以確保用戶能夠獲得良好的視覺體驗(yàn)。
控制器信息
模塊內(nèi)置了ST7066U控制器,其詳細(xì)規(guī)格可從http://www.newhavendisplay.com/app_notes/ST7066U.pdf下載。了解控制器的特性和功能對(duì)于正確驅(qū)動(dòng)和使用模塊至關(guān)重要。
指令集與時(shí)序特性
指令表
| 模塊提供了豐富的指令集,用于控制顯示內(nèi)容、光標(biāo)位置、顯示開關(guān)等功能。例如: | Instruction | Instruction code | Description | 270 KHZ Execution time (fosc = | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 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 |
在實(shí)際編程中,我們需要根據(jù)需求選擇合適的指令來(lái)實(shí)現(xiàn)相應(yīng)的功能。
時(shí)序特性
無(wú)論是從MPU向ST7066U寫入數(shù)據(jù),還是從ST7066U向MPU讀取數(shù)據(jù),都有嚴(yán)格的時(shí)序要求。例如,寫入數(shù)據(jù)時(shí),Enable Cycle Time(Tc)要求為1200ns,Enable Pulse Width(TPW)為140ns等。在設(shè)計(jì)電路和編寫程序時(shí),必須嚴(yán)格按照這些時(shí)序要求來(lái)操作,否則可能會(huì)導(dǎo)致數(shù)據(jù)傳輸錯(cuò)誤。
初始化程序
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);
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;
}
void init() {
E = 0;
Delay(100); //Wait >40 msec after power is applied
command(0x30);
command(0x30); //command 0x30 = Wake up
Delay(30);
command(0x30);
command(0x30); //command 0x30 = Wake up #2
Delay(10);
command(0x30);
command(0x30); //command 0x30 = Wake up #3
Delay(10);
command(0x38);
command(0x38); //Function set: 8 - bit/2 - line
command(0x10); //Set cursor
command(0x0c);
command(0x0c); //Display ON; Cursor ON
command(0x06); //Entry mode set
}
4位初始化
void command(char i) {
P1 = i;
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;
Nybble(); //Send upper 4 bits
}
void write(char i) {
P1 = i;
D_I = 1; //D/I = HIGH : send data
R_W = 0;
Nybble(); //Clock lower 4 bits
i = i < 4;
P1 = i;
Nybble(); //Clock upper 4 bits
}
void Nybble() {
E = 1;
Delay(1); //enable pulse width >= 300ns
E = 0;
}
void init() {
P1 = 0; P3 = 0;
Delay(100); //Wait >40 msec after power is applied
P1 = 0x30;
Delay(30);
Nybble(); //command 0x30 = Wake up
Delay(10);
Nybble(); //command 0x30 = Wake up #2
Delay(10);
Nybble(); //command 0x30 = Wake up #3
Delay(10);
P1 = 0x20;
Nybble(); //Function set: 4 - bit interface
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
}
不同的初始化方式適用于不同的應(yīng)用場(chǎng)景,我們可以根據(jù)實(shí)際需求進(jìn)行選擇。
質(zhì)量與使用注意事項(xiàng)
質(zhì)量測(cè)試
模塊經(jīng)過了一系列嚴(yán)格的質(zhì)量測(cè)試,包括高溫存儲(chǔ)、低溫存儲(chǔ)、高溫運(yùn)行、低溫運(yùn)行、高溫高濕運(yùn)行、熱沖擊抵抗、振動(dòng)測(cè)試和靜電測(cè)試等。這些測(cè)試確保了模塊在不同環(huán)境下的可靠性和穩(wěn)定性。
使用注意事項(xiàng)
在使用LCDs/LCMs時(shí),需要注意一些事項(xiàng),具體可參考www.newhavendisplay.com/specs/precautions.pdf。同時(shí),關(guān)于保修信息和條款可查看http://www.newhavendisplay.com/index.php?main_page=terms。
總之,NHD - 0216PZ - FL - YBW - PC字符液晶顯示模塊在電子設(shè)計(jì)中具有廣泛的應(yīng)用前景。通過深入了解其特性、參數(shù)和使用方法,我們能夠更好地將其應(yīng)用到實(shí)際項(xiàng)目中。大家在使用過程中遇到過哪些問題呢?歡迎在評(píng)論區(qū)分享交流。
-
液晶顯示模塊
+關(guān)注
關(guān)注
0文章
130瀏覽量
12145
發(fā)布評(píng)論請(qǐng)先 登錄
深入解析NHD - 0216PZ - FL - YBW - PC字符液晶顯示模塊
評(píng)論