Newhaven NHD-0216K1Z-NSPG-FBW Character liquid crystal display module Datasheet

NHD‐0216K1Z‐NSPG‐FBW
Character Liquid Crystal Display Module
NHD‐
0216‐
K1Z‐
N‐
SPG‐
F‐
B‐
W‐
Newhaven Display
2 Lines x 16 Characters
Model
Transmissive
Green LED Backlight
FSTN Negative
6:00 Optimal View
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
[email protected]
[email protected]
Document Revision History
Revision
0
1
Date
9/30/2011
6/27/2017
Description
Initial Release
Mechanical Drawing, Electrical & Optical Char. Updated
Functions and Features





2 lines x 16 characters
Built‐in controller (ST7066U)
+5.0V Power Supply
1/16 duty, 1/5 bias
RoHS compliant
[2]
Changed by
‐
NP
Mechanical Drawing
1
2
R
P
5.08
A1
Date
A
B
3.55
2.95
0.6
0.55
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
1.6
4- 2.5 PTH
4- 5.0 PAD
1/16 Duty, 1/5 Bias
5.0V VDD, 3.7V VLCD
FSTN Negative / Transmissive
6:00
Green LED
ST7066U 8/4-Bit MPU Interface
2
6
8.6
0.4
P
1
16
O
R
2.5
Description
0.6
5.95
5.55
0.7
0.65
8.0
16- 1.0 PTH
P2.54*15=38.1
40.55
75.0
2.0
1
4- 1.0
2. Voltage:
3. Display Mode:
4. Optimal View:
5. Backlight:
6. Driver IC:
2.5
31.0
11.5(AA)
K1
A
D 1. Driver:
15.76
12.55
10.3
5.7
25.2
16.0(VA)
36.0 0.5
K
16
1
5
Rev
13.2Max
2
7.55
12.45
P2.54*15=38.1
8.0
1.8 16- 1.0 PTH
3.0
A
C
4
80.0 0.5
71.2
66.0(VA)
56.2(AA)
4.95
B
Y
R
A
T
E
I
3
3
DOT SIZE
SCALE 5/1
4
Vss
Vdd
Vo
RS
R/W
E
DB0
DB1
DB2
DB3
DB4
DB5
DB6
DB7
A
K
Unit
mm
Gen. Tol.
Date
±0.3
06/27/17
5
Part Number:
NHD-0216K1Z-NSPG-FBW
6
The information 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.
[3]
C
D
Pin Description and Wiring Diagram
Pin No.
1
2
3
4
5
6
7‐10
Symbol
VSS
VDD
V0
RS
R/W
E
DB0 – DB3
External Connection
Power Supply
Power Supply
Adj. Power Supply
MPU
MPU
MPU
MPU
11‐14
15
16
DB4 – DB7
LED+
LED‐
MPU
Power Supply
Power Supply
Function Description
Ground
Supply Voltage for Logic (+5.0V)
Supply Voltage for Contrast (approx. 1.3V)
Register Select signal. RS=0: Command, RS=1: Data
Read/Write select signal, R/W=1: Read R/W: =0: Write
Operation Enable signal. Falling edge triggered.
Four low order bi‐directional three‐state data bus lines.
These four are not used during 4‐bit operation.
Four high order bi‐directional three‐state data bus lines.
Backlight Anode (130 mA @ 5.0V)
Backlight Cathode (Ground)
Recommended LCD connector: 2.54mm pitch pins
Backlight connector: ‐‐‐
Mates with: ‐‐‐
[4]
Electrical Characteristics
Item
Operating Temperature Range
Storage Temperature Range
Supply Voltage
Supply Current
Supply for LCD (contrast)
“H” Level input
“L” Level input
“H” Level output
“L” Level output
Backlight Supply Voltage
Backlight Supply Current
Symbol
TOP
TST
VDD
IDD
VLCD
VIH
VIL
VOH
VOL
Condition
Absolute Max
Absolute Max
‐
VDD = 5.0V
TOP = 25°C
Min.
‐20
‐30
4.5
0.5
3.5
0.7 * VDD
VSS
3.9
VSS
Typ.
‐
‐
5.0
1.5
3.7
‐
‐
‐
‐
Max.
+70
+80
5.5
3
3.9
VDD
0.6
VDD
0.4
Unit
⁰C
⁰C
V
mA
V
V
V
V
V
ILED
VLED
‐
ILED = 130mA
‐
4.8
130
5.0
150
5.2
mA
V
*The LED of the backlight is driven by current drain; drive voltage is for reference only. Drive voltage must be selected to ensure backlight current drain is below MAX
level stated.
Optical Characteristics
Optimal
Viewing
Angles
Item
Top
Bottom
Left
Right
Contrast Ratio
Response Time
Rise
Fall
Symbol
ϕY+
ϕY‐
θX‐
θX+
CR
TR
TF
Condition
CR ≥ 2
‐
TOP = 25°C
Min.
‐
‐
‐
‐
‐
‐
‐
Typ.
30
60
45
45
5
150
150
Max.
‐
‐
‐
‐
‐
200
200
Controller Information
Built‐in ST7066U Controller
Please download specification at http://www.newhavendisplay.com/app_notes/ST7066U.pdf
Display Character Address Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F
[5]
Unit
°
°
°
°
‐
ms
ms
Table of Commands
Instruction code
Instruction
RS
R/W
DB7
Clear
Display
0
0
0
0
0
0
0
0
0
1
Return
Home
0
0
0
0
0
0
0
0
1
-
Entry mode
Set
0
0
0
0
0
0
0
1
I/D
SH
Display ON/
OFF control
0
0
0
0
0
0
1
D
C
B
Cursor or
Display
shift
0
0
0
0
0
1
S/C
R/L
-
-
Function
set
0
0
0
0
1
DL
N
F
-
-
0
0
0
1
0
0
1
Set
CGRAM
Address
Set
DDRAM
Address
Read busy
Flag and
Address
Write data
To Address
Read data
From RAM
0
1
BF
1
0
D7
1
1
D7
DB6 DB5 DB4 DB3 DB2 DB1 DB0
Write “20H” to DDRAM and
set DDRAM address to
“00H” from AC
Set DDRAM Address to
“00H” from AC and return
cursor to its original position
if shifted. The contents of
DDRAM are not changed.
Sets cursor move direction
and specifies display shift.
These parameters are
performed during data write
and read.
D=1: Entire display on
C=1: Cursor on
B=1: Blinking cursor on
Sets cursor moving and
display shift control bit, and
the direction without
changing DDRAM data.
DL: Interface data is 8/4 bits
N: Number of lines is 2/1
F: Font size is 5x11/5x8
Execution
time (fOSC=
270 KHZ
1.52ms
1.52ms
37µs
37µs
37µs
37µs
AC3
AC2 AC1
AC0
Set CGRAM address in
address counter
37µs
AC4 AC3
AC2 AC1
AC0
Set DDRAM address in
address counter.
37µs
AC5 AC4
AC6 AC5
Description
Whether during internal
operation or not can be
AC6 AC5 AC4 AC3 AC2 AC1 AC0 known by reading BF. The
contents of address counter
can also be read.
Write data into internal RAM
D6
D5
D4
D3
D2
D1
D0
(DDRAM/CGRAM).
Read data from internal
D6
D5
D4
D3
D2
D1
D0
RAM (DDRAM/CGRAM).
[6]
0s
37µs
37µs
Timing Characteristics
Writing data from MPU to ST7066U
[7]
Reading data from ST7066U to MPU
[8]
Built‐in Font Table
[9]
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
}
/**********************************************************/
[10]
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 upper 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 upper 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
}
/**********************************************************/
[11]
Quality Information
Test Item
Content of Test
High Temperature storage
Endurance test applying the high storage
temperature for a long time.
Endurance test applying the low storage
temperature for a long time.
Endurance test applying the electric stress
(voltage & current) and the high thermal
stress for a long time.
Endurance test applying the electric stress
(voltage & current) and the low thermal
stress for a long time.
Endurance test applying the electric stress
(voltage & current) and the high thermal
with high humidity stress for a long time.
Endurance test applying the electric stress
(voltage & current) during a cycle of low
and high thermal stress.
Endurance test applying vibration to
simulate transportation and use.
Low Temperature storage
High Temperature
Operation
Low Temperature
Operation
High Temperature /
Humidity Operation
Thermal Shock resistance
Vibration test
Static electricity test
Test Condition
Endurance test applying electric static
discharge.
2
‐30⁰C , 200 Hrs.
1,2
+70⁰C, 200 Hrs.
2
‐20⁰C , 200 Hrs.
1,2
+60⁰C , 90% RH , 96 Hrs.
1,2
‐20⁰C,30min ‐> 25⁰C,5min ‐>
70⁰C,30min = 1 cycle
10 cycles
10‐55Hz , 1.5mm amplitude.
60 sec in each of 3 directions
X,Y,Z
For 15 minutes
VS=±800V, RS=330Ω, CS=150pF
10 Times
Note 1: No condensation to be observed.
Note 2: Conducted after 4 hours of storage at 25⁰C, 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
[12]
Note
+80⁰C , 200 Hrs.
3
Similar pages