NHD-0420DZ-FL-YBW User Guide Datasheet by Newhaven Display Intl

Newhaven Display Internationall Inc. www.newhavendisglay.com nhtech@newhavendisplayxom nhsales@newhavendisplayxom
NHD-0420DZ-FL-YBW
Character Liquid Crystal Display Module
NHD- Newhaven Display
0420- 4 Lines x 20 Characters
DZ- Model
F- Transflective
L- Yellow/Green LED Backlight
Y- STN- Yellow/Green
B- 6:00 Optimal View
W- Wide Temperature
RoHS Compliant
Newhaven Display International, Inc.
2661 Galvin Ct.
Elgin IL, 60124
Ph: 847-844-8795 Fax: 847-844-8796
www.newhavendisplay.com
nhtech@newhavendisplay.com nhsales@newhavendisplay.com
Document Revision History Revision Date Description Changed by 0 10/21/2008 Initial Release - 1 1/22/2010 User Guide Reformat MC 2 2/25/2010 Updated Mechanical Drawing MC 3 3/19/2010 Updated Mechanical Drawing BE 4 1/6/2011 Updated Controller Information JT 5 5/6/2011 Electrical characteristics updated AK 6 12/5/2011 Mechanical drawing updated AK 7 6/8/2012 Electrical characteristics updated T] 8 6/15/16 Mechanical Drawing, Electrical & Optical Chan, Quality SB Information Updated
[2]
Document Revision History
Revision
Date
Description
Changed by
0
10/21/2008
Initial Release
-
1
1/22/2010
User Guide Reformat
MC
2
2/25/2010
Updated Mechanical Drawing
MC
3
3/19/2010
Updated Mechanical Drawing
BE
4
1/6/2011
Updated Controller Information
JT
5
5/6/2011
Electrical characteristics updated
AK
6
12/5/2011
Mechanical drawing updated
AK
7
6/8/2012
Electrical characteristics updated
TJ
8
6/15/16
Mechanical Drawing, Electrical & Optical Char., Quality
Information Updated
SB
Functions and Features
4 lines x 20 characters
Built-in controllers (ST7066U)
+5.0V Power Supply
1/16 duty, 1/5 bias
RoHS compliant
g ‘flL‘J 15 EWWWWW 4* DDDDDDDDDDUDDDDDDDDD EDD JDDDDD \HDDDDDDDE IDDDDDDDD \HDDDDDDDE DDDDDDDDDDDDDDDDDDDD W? E MAX M4411 \ m PIN N0. SYMBOL .ervaaysr, PJEE'EAY
CONFIDENTIAL
1 2 3 4 5 6
A
B
C
D
B
C
D
1 2 3 4 5 6
Mechanical Drawing
A
[3]
The drawing contained herein is the exclusive property of Newhaven Display International, Inc. and shall not be copied, reproduced, and/or disclosed in any format without permission.
NHD-0420DZ-FL-YBW
06/15/16
Date
Unit Model:
mm
Gen. Tolerance
±0.3mm
Rev Description Date
49.0
98.0 0.5
4-2.5 PTH
4-5.0 PAD
0.6 4.75
0.6
0.55
0.62.95
0.6
0.55
16 K
13.6 MAX
9.0
1.6
LED B/L
2.5
55.0 2.5
93.02.5
60.0 0.5
39.3 10.35
25.2(VA)17.4
20.8(AA)19.6
96.80.6
77.0(VA)
10.5
70.4(AA)
13.8
P2.54*15=38.110.0
15 A
DB7
DOT SIZE
SCALE 5/1
Vdd
Vo
RS
R/W
2
3
5
6
4
DB0
DB1
DB2
DB3
9
8
10
11
7
E
1 Vss
DB5
DB613
14
12
DB4
16- 1.0PTH 1.8
16- 1.8PAD
16
116
1
Pin Description and Wiring Diagram Pln Na. Symbol External Functlon Descrlptlnn Connectlan 1 Vss Power Supply Ground 2 VDD Power Supply Supply Voltage for logic (+5.0v) 3 v0 Power Supply Supply Voltage for contrast (approx. 0.5vl 4 RS MPU Register Select signal. RS:0: Command, R ' Data 5 R/W MPU Read/Write select signal, R/W:1: Read R/W : Write 6 E MPU Operation Enable signal. Falling edge triggered. 740 DBO-DE3 MPU Four low order [Ii-directional three-slate data bus iines. These four are not used during 4-bit operation. 1144 DB4-DE7 MPU Four high order bi-dlrectional lhree»state data bus lines. 15 LED+ Power Supply Backllght Anode l+5.0v via on-board resistorl 16 LED» Power Supply Backllght Cathode lsroundl R B 8-b i t 4-b i t Character Display block diagram nm was 1m: mat E R5 was 1134 use mm R/H vu Character Disp 1 ag block diagram vnu Ke n37 mas DEB nm E R5 vnn mm a. use D34 nae mm W Va [3ND J ii iii a "\_r mean \_I lukeaax
[4]
Pin Description and Wiring Diagram
Pin No.
Symbol
External
Connection
Function Description
1
Vss
Power Supply
Ground
2
VDD
Power Supply
Supply Voltage for logic (+5.0V)
3
V0
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)
Recommended LCD connector: 2.54mm pitch pins
Backlight connector: --- Mates with: ---
Electrical Characteristics Item Symbol Candltlan Min. Typ. Max. Unlt Operating Temperature Range Top Absolute Max -20 - +70 °C Storage Temperature Range TSt Absolute Max -30 - +80 °C Supply Voltage VDD - 4.5 5.0 5.5 v Supply Current iDD VDD:5.0V 1.0 1.2 1.5 mA Supply for LCD leontrast) VDD-VO 4.4 4.5 4.5 v “H“ Level input Vih 0.7*VDD VDD V “L“ Level input Vi| VSS 0.6 V “H“ Level output Voh 3.9 VDD V “L“ Level output Vol VSS 0.4 V Backllgnt Supply Voltage Vled - 4.9 5.0 5.1 v Backllght Supply Current lied V|ed:5.0V 252 280 336 mA Optical Characteristics Item Symbol Cnndltlnn Min. Typ. Max Unit Top ov+ 20 - 0 Bottom (pV- 4o - 0 Left ex- 30 - ° Right ex+ 30 - 0 Contrast Ratio Cr 3 - - Rise Tr 150 200 m5 Fall Tt 150 200 m5 C B P http: www.newhavendisplav.com app notes ST7066U.pdf DDRAM Address 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 13 19 20 00 01 02 03 04 05 06 07 08 09 0A 0B 0C GD 0E 0F 10 11 12 13 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F 20 21 22 23 24 25 26 27 54 55 56 57 58 59 5A 5B 5C SD 5E 5F 60 61 62 63 64 65 66 67
[5]
Electrical Characteristics
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.5
5.0
5.5
V
Supply Current
IDD
VDD=5.0V
Ta=25°C
1.0
1.2
1.5
mA
Supply for LCD (contrast)
VDD-V0
4.4
4.5
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
-
VSS
-
0.4
V
Backlight Supply Voltage
Vled
-
4.9
5.0
5.1
V
Backlight Supply Current
Iled
Vled=5.0V
252
280
336
mA
Optical Characteristics
Item
Symbol
Condition
Min.
Typ.
Max.
Unit
Optimal
Viewing
Angles
Top
ϕY+
Cr 2
-
20
-
Bottom
ϕY-
-
40
-
Left
θX-
-
30
-
Right
θX+
-
30
-
Contrast Ratio
Cr
-
-
3
-
-
Response Time
Rise
Tr
-
-
150
200
ms
Fall
Tf
-
-
150
200
ms
Controller Information
Built-in ST7066U Controller.
Please download specification at http://www.newhavendisplay.com/app_notes/ST7066U.pdf
DDRAM Address
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
00
01
02
03
04
05
06
07
08
09
0A
0B
0C
0D
0E
0F
10
11
12
13
40
41
42
43
44
45
46
47
48
49
4A
4B
4C
4D
4E
4F
50
51
52
53
14
15
16
17
18
19
1A
1B
1C
1D
1E
1F
20
21
22
23
24
25
26
27
54
55
56
57
58
59
5A
5B
5C
5D
5E
5F
60
61
62
63
64
65
66
67
[6]
Table of Commands
Instruction
Instruction code
Description
Execution
time (fosc=
270 KHZ
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.
3s
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
HBO-DB7 >1 Viidh K Wn'le Mode (Writing data from MPU Io $77066U) Tc Enable Cycle Time Pin E 1200 - - ns pr Enable Pulse Width Pin E 140 - - ns TR.TF Enable Rise/Fall Time Pin E - - 25 ns T‘s Address Setup Time Pins: RS.RW.E 0 - - ns Tm Address Hold Time Pins: RS,RW.E 10 - - ns Tm Data Setup Time Pins: DBO - DB7 40 - - ns TN Data Hold Time Pins: DBO - DB7 10 - - ns
[7]
Timing Characteristics
Writing data from MPU to ST7066U
>< mu="">< r5="" rviu="" e="" a="" m="" m...="" 1x="" read="" mode="" (reading="" data="" from="" st7066u="" to="" mpu)="" tc="" enable="" cycle="" time="" pin="" e="" 1200="" -="" —="" ns="" pr="" enable="" pulse="" width="" pin="" e="" 140="" -="" -="" ns="" tr,tf="" enable="" riselfall="" time="" pin="" e="" -="" -="" 25="" ns="" tm="" address="" setup="" time="" pins:="" rs,rw.e="" 0="" -="" -="" ns="" ta"="" address="" hold="" time="" pins:="" rs,rw.e="" 1o="" -="" -="" ns="" tm="" data="" setup="" time="" pins:="" dbo="" -="" db7="" -="" -="" 100="" ns="" t"="" data="" hold="" time="" pins:="" dbo="" —="" d37="" 10="" -="" -="" ns="">
[8]
Reading data from ST7066U to MPU
[174:4 I3-h0 0000 0001 1000 1001 1010 1011 1100 1110 0000 CG (1) 0031 (1) 0010 (3) 0011 (4) 0100 (5) 0101 (3) 0110 (7) 0111 (3) 1030 (1) 1cm (3) 1010 (3) 1011 (4) 1100 (5) 1101 (3) 1110 I27) 1111 (3)
[9]
Built-in Font Table
[10]
Example Initialization Program
8-bit Initialization:
/**********************************************************/
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 >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
}
/**********************************************************/
[11]
4-bit Initialization:
/**********************************************************/
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
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 >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
}
/**********************************************************/
Quality Information Test Item Content of Test Test Condition Note Hign Temperature storage Endurance test applying tne nigh +80%, zoohrs 2 storage temperature for along time. Low Temperature storage Endurance test applying tne law storage -30°c, ZOOhrs 1,2 temperature for a long time. Hign Temperature Endurance test applying tne electric stress +7o°c 200hrs 2 (voltage a current) and stress for a long time. Low Temperature Endurance test applying tne electric stress -20°c, ZOOhrs 1,2 (voltage a current) and stress for a long time. Hign Temperature/ Endurance test applying tne electric stress +50%, 90% RH, 96hrs 1,2 (voltage a current) and tne nigh thermal With nign numiciity stress for a long time. Thermal Shock resistance Endurance test applying the electric stress -20°C,30min >> 25°C,5mirl >> (voltage a current) during 70°c,30m and high thermal stress. 10 cycles Vibration test Endurance test applying vibration to 10-55Hz, 1.5mm amplitude. 3 so sec x,v,2 Far 15 minutes Static electricity test Endurance test applying electric static discnarge. V5:600V, RS:3300, CS:150pF 10 Times N N N P for using LCDs/LCMs S www.newhavendisglaycomfigecsiQrecautionsgdf Warranty Information and Terms & Conditio imp: /www.newhavendisplav.com index.php?main page=terms
[12]
Quality Information
Test Item
Content of Test
Test Condition
Note
High Temperature storage
Endurance test applying the high
storage temperature for a long time.
+80C , 200hrs
2
Low Temperature storage
Endurance test applying the low storage
temperature for a long time.
-30C , 200hrs
1,2
High Temperature
Operation
Endurance test applying the electric stress
(voltage & current) and the high thermal
stress for a long time.
+70C 200hrs
2
Low Temperature
Operation
Endurance test applying the electric stress
(voltage & current) and the low thermal
stress for a long time.
-20C , 200hrs
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.
+60C , 90% RH , 96hrs
1,2
Thermal Shock resistance
Endurance test applying the electric stress
(voltage & current) during a cycle of low
and high thermal stress.
-20C,30min -> 25C,5min ->
70⁰C,30min = 1 cycle
10 cycles
Vibration test
Endurance test applying vibration to
simulate transportation and use.
10-55Hz , 1.5mm amplitude.
60 sec in each of 3 directions
X,Y,Z
For 15 minutes
3
Static electricity test
Endurance test applying electric static
discharge.
VS=600V, RS=330Ω, CS=150pF
10 Times
Note 1: No condensation to be observed.
Note 2: Conducted after 4 hours of storage at 25C, 0%RH.
Note 3: Test performed on product itself, not inside a container.
Precautions for using LCDs/LCMs
See Precautions at www.newhavendisplay.com/specs/precautions.pdf
Warranty Information and Terms & Conditions
http://www.newhavendisplay.com/index.php?main_page=terms