NHD-0220FZ-FSW-GBW-P-33V3字符液晶顯示模塊技術(shù)解析
一、模塊概述
NHD - 0220FZ - FSW - GBW - P - 33V3是Newhaven Display International, Inc.生產(chǎn)的一款字符液晶顯示模塊。從其型號可以解讀出豐富的信息:
文件下載:NHD-0220FZ-FSW-GBW-P-33V3.pdf
- “NHD - ”代表Newhaven Display。
- “0220 - ”表示該模塊為2行×20字符的顯示規(guī)格。
- “FZ - ”是特定的型號標(biāo)識。
- “F - ”代表半透反射型。
- “SW - ”表示側(cè)面白色LED背光。
- “B - ”意味著6:00最佳視角。
- “W - ”代表寬溫度范圍。
- “P - ”表示引腳已焊接。
- “33V3 - ”表示3.3V的VDD電源和3.0V的背光電源,并且該模塊符合RoHS標(biāo)準(zhǔn)。
二、功能與特性
顯示規(guī)格
該模塊具有2行×20字符的顯示能力,內(nèi)置ST7066U控制器,采用+3.3V電源供電,工作模式為1/16 duty,1/5 bias。
引腳分配
| 詳細(xì)的引腳分配如下表所示: | Pin No. | Symbol | External Connection | Function Description |
|---|---|---|---|---|
| 1 | VSS | Power Supply | Ground | |
| 2 | VDD | Power Supply | Supply Voltage for logic (+3.3V) | |
| 3 | V0 | Adj. Power Supply | Supply Voltage for contrast (approx. 0 V) | |
| 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 (15mA @3V) | |
| 16 | LED - | Power Supply | Backlight Cathode (Ground) | |
| 17 | VSS | |||
| 18 | VDD | |||
| 19 | V0 | |||
| 20 | RS | |||
| 21 | RW | |||
| 22 | E | |||
| 23 - 26 | DB4 - DB7 | |||
| 27 | LED+ | |||
| 28 | LED - |
推薦使用1.27mm間距的引腳作為LCD連接器。
三、電氣與光學(xué)特性
電氣特性
| 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 | - | 3.0 | 3.3 | 3.6 | V |
| Supply Current | IDD | VDD = 3.3V | 0.5 | 1.0 | 2.0 | mA |
| Supply for LCD (contrast) | VLCD | TOP = 25°C | 3.1 | 3.3 | 3.5 | V |
| “H” Level input | VIH | - | 0.7 * VDD | - | VDD | V |
| “L” Level input | VIL | - | VSS | - | 0.6 | V |
| “H” Level output | VOH | - | 0.75 * VDD | - | VDD | V |
| “L” Level output | VOL | - | VSS | - | 0.2 * VDD | V |
| Backlight Supply Voltage | VLED | - | 2.8 | 3.0 | 3.2 | V |
| Backlight Supply Current | ILED | VLED = 3.0V | 7 | 15 | 20 | mA |
光學(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 | TOP = 25°C | - | 150 | 250 | ms |
| Fall | TF | - | 200 | 300 | ms |
四、控制器與指令
控制器信息
模塊內(nèi)置ST7066U控制器,詳細(xì)的規(guī)格說明可從http://www.newhavendisplay.com/app_notes/ST7066U.pdf下載。
指令集
| 模塊提供了豐富的指令集,用于控制顯示操作,例如清屏、光標(biāo)移動、顯示開關(guān)等。以下是部分指令示例: | Instruction | Instruction code | Description | 270 KHZ Execution time (fosc = ) |
|---|---|---|---|---|
| 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 |
五、初始化程序
8位初始化
/**********************************************************/
void command(char i)
{
P1 = i; //put data on output Port
D_I = 0; //D/I = LOW : send instruction
RW = 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
RW = 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 >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); //Set cursor
command(0x0c); //Display ON; Cursor ON
command(0x06); //Entry mode set
}
/**********************************************************/
4位初始化
/**********************************************************/
void command(char i)
{
P1 = i; //put data on output Port
D_I = 0; //D/I = LOW : send instruction
RW = 0;
Nybble(); //Send upper 4 bits
i = i < 4; //Shift over by 4 bits
P1 = i; //put data on output Port
Nybble(); //Send lower 4 bits
}
void write(char i)
{
P1 = i; //put data on output Port
D_I = 1; //D/I = HIGH : send data
RW = 0;
Nybble(); //Clock upper 4 bits
i = i < 4; //Shift over by 4 bits
P1 = i; //put data on output Port
Nybble(); //Clock lower 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 >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
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ì)量與使用注意事項
質(zhì)量測試
該模塊經(jīng)過了多項質(zhì)量測試,包括高溫存儲、低溫存儲、高溫運行、低溫運行、高溫高濕運行、熱沖擊抗性、振動測試和靜電測試等,以確保其在不同環(huán)境下的可靠性。
使用注意事項
使用LCD/LCM時的詳細(xì)注意事項可在www.newhavendisplay.com/specs/precautions.pdf查看。同時,保修信息和條款可訪問http://www.newhavendisplay.com/index.php?main_page=terms 。
在實際應(yīng)用中,電子工程師可以根據(jù)這些特性和參數(shù),合理地將NHD - 0220FZ - FSW - GBW - P - 33V3模塊集成到自己的項目中。你在使用這款模塊時,有沒有遇到過一些特殊的問題呢?歡迎在評論區(qū)分享。
-
初始化程序
+關(guān)注
關(guān)注
1文章
30瀏覽量
6887
發(fā)布評論請先 登錄
NHD-0220FZ-FSW-GBW-P-33V3字符液晶顯示模塊技術(shù)解析
評論