NHD-0420DZW-AG5 - NewHaven Display

 NHD‐0420DZW‐AG5 Character OLED Display Module NHD‐ 0420‐ DZW‐ A‐ G‐ 5‐ Newhaven Display 4 lines x 20 characters OLED Model Emitting Color: Green +5V power supply Newhaven Display International, Inc. 2511 Technology Drive, Suite 101 Elgin IL, 60124 Ph: 847‐844‐8795 Fax: 847‐844‐8796 www.newhavendisplay.com [email protected] [email protected] Document Revision History Revision 0 1 2 3 4 5 6 7 8 Date 4/1/2011 5/26/2011 6/29/2011 7/12/2011 8/31/2011 9/30/2011 3/26/2012 2/8/2013 9/7/2013 Description Initial Product Release Block diagram & Jumper selections updated Pin description updated Serial interface information & Pin description updated Font tables updated Jumper selections updated Jumper selections updated Optical characteristics and mechanical drawing updated Photo of jumpers (solder pads) added Functions and Features •
•
•
•
•
•
4 lines x 20 characters Built‐in LCD comparable controller Parallel or serial MPU interface (Default 6800 MPU parallel) +3.0V or +5.0V Power Supply Size compatible to NHD‐0420DZ series Character LCDs RoHS compliant [2] Changed by ‐ AK AK AK AK AK AK JN AK L
A
I
Mechanical Drawing
1
2
3
4
5
Rev
98.0 0.5
94.0
77.0(VA)
10.50
13.63
P2.54*15=38.10
C
16 -1.0 PTH
D
2.50
1
2.50
3.54
2.9
0.59
0.54
28.6
55.0
F
N
O
C
49.0
16
0.8
1
60.0 0.5
32.0
25.20(VA)
20.95(AA)
B
14.00
17.40
19.53
2.0
10.00 MAX
4.7
E
D
I
2.50
10.0
T
N
70.16(AA)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
5.4
4.75
0.6
0.55
2.00
A
6
Description
4 -2.5 PTH
4 -5.0 PAD
93.0
DOT SIZES
SCALE 5/1
1.60
Date
VSS
VDD
NC
RS
R/W
E
DB0
DB1
DB2
DB3
DB4
DB5
DB6
DB7
NC
NC
3
4
Gen. Tolerance
Unit
±0.3mm
mm
5
Model:
NHD-0420DZW-AG5
6
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.
[3]
B
C
D
Date
09/07/13
2
A
Pin Description Parallel Interface (default): Pin No. Symbol 1 2 3 4 5 6 7‐10 VSS VDD NC RS R/W E DB0 – DB3 11‐14 15 16 DB4 – DB7 NC NC External Connection Power Supply Power Supply ‐
MPU MPU MPU MPU MPU ‐
‐
Function Description
Ground
Supply Voltage for OLED and logic
Must not be connected
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. Must not be connected
Must not be connected
Serial Interface: Pin No. Symbol 1 2 3‐11 12 13 14 15 16 VSS VDD NC SCL SDO SDI /CS NC External Connection Power Supply Power Supply ‐
MPU MPU MPU MPU ‐
Function Description
Ground
Supply Voltage for OLED and logic
Must not be connected
Serial Clock signal
Serial Data output signal
Serial Data input signal
Active LOW Chip Select signal
Must not be connected
Jumper Selections MPU Interface 6800‐MPU Parallel (default) 8080‐MPU Parallel Serial MPU H_PS_L H H L J68_J80
J68 J80 X H_SHL_L
H
H
H
X = Don’t care [4] H_CS1_L
L
L
Open
H_CS2_L
H
H
Open
JCS1 X X Short JCS2
X
X
Short
Wiring Diagrams [5] Electrical Characteristics Item Operating Temperature Range Storage Temperature Range Supply Voltage Supply Current “H” Level input “L” Level input “H” Level output “L” Level output Symbol Top Tst VDD IDD Vih Vil Voh Vol Condition
Absolute Max
Absolute Max
Ta=25°C, VDD=5.0V
Min.
‐40
‐40
Typ.
‐
‐
Max. +80 +80 Unit
⁰C
⁰C
3.0
‐
0.9*VDD
VSS
0.8*VDD
VSS
5.0
43
‐
‐
‐
‐
5.3 ‐ VDD 0.1*VDD VDD 0.2*VDD V
mA
V
V
V
V
Min.
80
80
80
80
2000:1
‐
‐
‐
100,000
Typ.
‐
‐
‐
‐
‐
10
10
90
‐
Max. ‐ ‐ ‐ ‐ ‐ ‐ ‐ ‐ ‐ Unit
⁰
⁰
⁰
⁰
‐
us
us
cd/m2
Hrs
Optical Characteristics Item Viewing Angle – Top Viewing Angle – Bottom Viewing Angle – Left Viewing Angle – Right Contrast Ratio Response Time (rise) Response Time (fall) Brightness Lifetime Symbol CR Tr Tf Condition
‐
‐
50% checkerboard
Ta=25°C, 50% checkerboard Note: Lifetime at typical temperature is based on accelerated high‐temperature operation. Lifetime is tested at average 50% pixels on and is rated as Hours until Half‐Brightness. The Display OFF command can be used to extend the lifetime of the display. Luminance of active pixels will degrade faster than inactive pixels. Residual (burn‐in) images may occur. To avoid this, every pixel should be illuminated uniformly. [6] Table of Commands Code
Instruction RS R/W DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0 Description Clears entire display. Does not change DDRAM address. Sets DDRAM Address to 0x00. Returns shifted display to original position. Sets cursor to auto Increment or Decrement, and sets display shift. Sets Display (D) ON/OFF. Sets Cursor (C) ON/OFF. Sets Blinking (B) of cursor ON/OFF. Moves cursor & shifts display without changing DDRAM contents. Set interface data length. Select Font Table. Move to CGRAM address. Max Execution Time Clear Display 0 0 0 0 0 0 0 0 0 1 Return Home 0 0 0 0 0 0 0 0 1 0 Entry Mode Set 0 0 0 0 0 0 0 1 I/D S Display ON/OFF control 0 0 0 0 0 0 1 D C B Cursor/Displ
ay Shift 0 0 0 0 0 1 S/C R/L 0 0 Function Set 0 0 0 0 1 DL 1 0 FT1 FT0 0 0 0 1 ACG5 ACG4 ACG3 ACG2 ACG1 ACG0 0 0 1 ADD6 ADD5 ADD4 ADD3 ADD2 ADD1 ADD0 Move to DDRAM address. 600us 0 1 BF AC0 Read Busy Flag (BF) and Address Counter. 600us 1 0 Write Data Write data to CGRAM or DDRAM 600us 1 1 Read Data Read data from CGRAM or DDRAM 600us Set CGRAM address Set DDRAM address Read Busy Flag & Address Write data to CGRAM or DDRAM Read data from CGRAM or DDRAM AC6 AC5 AC4 AC3 [7] AC2 AC1 2ms 600us 600us 600us 600us 600us 600us Instruction Descriptions When an instruction is being executed, only the Busy Flag read instruction can be performed. During execution of an instruction, the Busy Flag = “1”. When BF = “0” instructions can be sent to the controller. Clear Display RS 0 R/W 0 DB7 0 DB6 0 DB5 0 DB4 0 DB3
0
DB2
0
DB1
0
DB0
1
This instruction is used to clear the display by writing 0x20 in all DDRAM addresses. This instruction does not change the DDRAM Address. Return Home RS 0 R/W 0 DB7 0 DB6 0 DB5 0 DB4 0 DB3
0
DB2
0
DB1
1
DB0
0
This instruction is used to set the DDRAM Address to 0x00 and shifts the display back to the original state. The cursor (if on) will be at the first line’s left‐most character. The DDRAM contents on the display do not change. Entry Mode Set RS 0 R/W 0 DB7 0 DB6 0 DB5 0 DB4 0 DB3
0
DB2
1
DB1
I/D
DB0
S
I/D = Increment/Decrement When I/D = “1”, the DDRAM or CGRAM Address with automatically increment when a character code is written into or read from the DDRAM or CGRAM. The auto‐increment will move the cursor one character space to the right. When I/D = “0”, the DDRAM or CGRAM Address with automatically decrement when a character code is written into or read from the DDRAM or CGRAM. The auto‐decrement will move the cursor one character space to the left. S = Shift Entire Display When S = “1”, the entire display is shifted to the right (when I/D = “0”) or left (when I/D = “1”). I/D=1, S=1
I/D=0, S=1
[8] Display ON/OFF RS 0 R/W 0 DB7 0 DB6 0 DB5 0 DB4 0 DB3
1
DB2
D
DB1
C
DB0
B
D = Display ON/OFF When D = “1”, the display is turned ON. When D = “0”, the display is turned OFF. Contents in DDRAM are not changed. C = Cursor ON/OFF When C = “1”, the cursor is displayed. The cursor is displayed as 5 dots on the 8th line of a character. When C = “0”, the cursor is OFF. B = Blinking Cursor When B = “1”, the entire character specified by the cursor blinks at a speed of 409.6ms intervals. When B = “0”, the character does not blink, the cursor remains on. Cursor/Display Shift RS 0 R/W 0 DB7 0 DB6 0 DB5 0 DB4 1 DB3
S/C
DB2
R/L
DB1
0
DB0
0
S/C 0 0 1 1 R/L 0 1 0 1 Shift Function Shifts the cursor position to the left (AC is decremented by 1).
Shifts the cursor position to the right (AC is incremented by 1).
Shifts the entire display to the left. The cursor follows the display shift. Shifts the entire display to the right. The cursor follows the display shift. When the display is shifted repeatedly, each line moves only horizontally. The second line display does not shift into the first line. The Address Counter does not change during a Display Shift. Function Set RS 0 R/W 0 DB7 0 DB6 0 DB5 1 DB4 DL DB3
1
DB2
0
DB1
FT1
DB0
FT0
DL = Interface Data Length When DL = “1”, the data is sent or received in 8‐bit length via DB7...DB0. When DL = “0”, the data is sent or received in 4‐bit length via DB7...DB4. When the 4‐bit data length is used, the data must be sent or received in two consecutive writes/reads to combine the data into full 8‐bits. FT1, FT0 = Font Table Selection FT1 0 0 1 1 FT0 0 1 0 1 Font Table English / Japanese Western European #1
English / Russian Western European #2
Note: Changing the font table during operation will immediately change any data currently on the display to the corresponding character on the newly selected font table. [9] Set CGRAM Address RS 0 R/W 0 DB7 0 DB6 1 DB5 ACG5 DB4 ACG4 DB3
ACG3
DB2
ACG2
DB1
ACG1
DB0
ACG0
This instruction is used to set the CGRAM address into the Address Counter. Data can then be written to or read from the CGRAM locations. See section: “How to use CGRAM”. ACG5...ACG0 is the binary CGRAM address. Set DDRAM Address RS 0 R/W 0 DB7 1 DB6 DB5 DB4 DB3
ADD6 ADD5 ADD4 ADD3
DB2
ADD2
DB1
ADD1
DB0
ADD0
This instruction is used to set the DDRAM address into the Address Counter. Data can then be written to or read from the DDRAM locations. ADD6...ADD0 is the binary DDRAM address. Line 1 = Address 0x00 through 0x13 Line 2 = Address 0x40 through 0x53 Line 3 = Address 0x14 through 0x27 Line 4 = Address 0x54 through 0x67 1 00 40 14 54 2 01 41 15 55 3 02 42 16 56 4 03 43 17 57 5 04 44 18 58 6 05 45 19 59 7 8 06 07 46 47 1A 1B 5A 5B 9
08
48
1C
5C
10
09
49
1D
5D
11
0A
4A
1E
5E
12
0B
4B
1F
5F
13
0C
4C
20
60
14
0D
4D
21
61
15
0E
4E
22
62
16 0F 4F 23 63 17 10 50 24 64 18 11 51 25 65 19
12
52
26
66
20
13
53
27
67
Read Busy Flag and Address Counter RS 0 R/W 1 DB7 BF DB6 AC6 DB5 AC5 DB4 AC4 DB3
AC3
DB2
AC2
DB1
AC1
DB0
AC0
This instruction is used to read the Busy Flag (BF) to indicate if the display controller is performing an internal operation. The Address Counter is read simultaneously with checking the Busy Flag. When BF = “1”, the controller is busy and the next instruction will be ignored. When BF = “0”, the controller is not busy and is ready to accept instructions. AC6...AC0 is the binary location of either the CGRAM or DDRAM current address. Write Data to CGRAM or DDRAM RS 1 R/W 0 DB7 DB6 DB5 DB4 DB3
Write Data
DB2
DB1
DB0
This instruction is used to write 8‐bits of data to the CGRAM or DDRAM at the current address counter. After the write is complete, the address is automatically incremented or decremented by 1 according to the Entry Mode. Read Data from CGRAM or DDRAM RS 1 R/W 1 DB7 DB6 DB5 DB4 DB3
Read Data
DB2
DB1
DB0
This instruction is used to read 8‐bits of data to the CGRAM or DDRAM at the current address counter. After the read is complete, the address is automatically incremented or decremented by 1 according to the Entry Mode. The Set CGRAM Address or Set DDRAM Address Instruction must be executed before this instruction can be performed, otherwise the first Read Data will not be valid. [10] MPU Interface When DL is set for 8‐bit mode, the display interfaces with the MPU with DB7...DB0 (DB7 is the MSB). When DL is set for 4‐bit mode, the display interfaces with the MPU with only DB7...DB4 (DB7 is the MSB). Each instruction must be sent in two operations, the 4 high‐order bits first, followed by the 4 low‐order bits. The Busy Flag must be checked after completion of the entire 8‐bit instruction. 6800‐MPU Parallel Interface (default) Item Address setup time Address hold time System cycle time Pulse width (write) Pulse width (read) Data setup time Data hold time Read access time Output disable time Signal RS RS E E DB7...DB0 DB7...DB0 DB7...DB0 DB7...DB0 Symbol
tAS68
tAH68
tCY68
tPW68(W)
tPW68(R)
tDS68
tDH68
tACC68
tOD68
Min.
20
0
500
250
250
40
20
‐
10
[11] Typ.
‐
‐
‐
‐
‐
‐
‐
‐
‐
Max.
‐
‐
‐
‐
‐
‐
‐
180
‐
Unit
ns
ns
ns
ns
ns
ns
ns
ns
ns
Note CL=100pF 8080‐MPU Parallel Interface Item Address setup time Address hold time System cycle time Pulse width (write) Pulse width (read) Data setup time Data hold time Read access time Output disable time Signal RS RS /WR
/RD DB7...DB0 DB7...DB0 DB7...DB0 DB7...DB0 Symbol
tAS80
tAH80
tCY80
tPW80(W)
tPW80(R)
tDS80
tDH80
tACC80
tOD80
Min.
20
0
500
250
250
40
20
‐
10
[12] Typ.
‐
‐
‐
‐
‐
‐
‐
‐
‐
Max.
‐
‐
‐
‐
‐
‐
‐
180
‐
Unit
ns
ns
ns
ns
ns
ns
ns
ns
ns
Note CL=100pF Serial Interface In serial interface mode, instructions and data are both sent on the SDI line and clocked in with the SCL line. /CS must go LOW before transmission, and must go HIGH when switching between writing instructions and writing data. The data on SDI is clocked into the LCD controller on the rising edge of SCL in the following format: Instruction transmission: *Note: RS and RW should be used between each instruction. Data transmission: *Note: RS and RW only need to be set at the start of continuous data transmission. [13] Item Serial clock cycle SCL high pulse width SCL low pulse width CSB setup time CSB hold time Data setup time Data hold time Read access time Signal DB5 (SCL) DB5 (SCL) DB5 (SCL) CSB CSB DB7 (SDI) DB7 (SDI) DB6 (SDO) Symbol
tCYS
tWHS
tWLS
tCSS
tCHS
tDSS
tDHS
tACCS
Min.
300
100
100
150
150
100
100
‐
[14] Typ.
‐
‐
‐
‐
‐
‐
‐
‐
Max.
‐
‐
‐
‐
‐
‐
‐
80
Unit
ns
ns
ns
ns
ns
ns
ns
ns
Note Built‐in Font Tables English/Japanese (FT[1:0] = 00, default) [15] Western European table 1 (FT[1:0] = 01) [16] English/Russian (FT[1:0] = 10) [17] Western European table 2 (FT[1:0] = 11) [18] How to use CGRAM The Character Generator RAM (CGRAM) is used to generate custom 5x8 character patterns. There are 8 available addresses: CGRAM Address 0x00 through 0x08. Character Code DDRAM address on Font Table used to write CGRAM character to display Character Patterns (CGRAM data) CGRAM Address 5 4 3 0 0 0 0 0 1 Character Patterns (CGRAM data) 2 1 0
7 6 5 4 3 2 1 0
0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 . . . . 0 0 0 0 1 1 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 . . . . 0 0 1 1 0 0 1 1 ‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
0x00 0x01 0x02...0x06 0x07 . . . . 1 . . . . . . . . 1 1 0
1
0
1
0
1
0
1
0
1
0 1
0
1
0
1
.
.
.
. 0
1
0
1
0
1
0
1
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
‐
1
1
1
1
1
1
1
0
1
0
1
0
1
0
0
0
.
.
.
. 0
0
0
0
1
0
0
0
1
0
0
1
0
0
0
0
0
1
1
0
1
0
0
0
.
.
.
. 0
1
0
0
0
1
0
0
1
0
0
1
1
0
0
0
0
0
1
1
1
1
1
0
.
.
.
. 0
0
0
0
0
1
1
0
1
0
0
1
0
1
0
0
0
1
1
0
1
0
0
0
.
.
.
. 0
1
0
0
0
1
0
0
0
1
1
0
0
0
1
0
1
0
1
0
1
0
0
0
.
.
.
. 0
0
0
0
1
0
0
0
Character pattern #0 Cursor position Character pattern #1 Cursor position Character pattern #7 Cursor position Notes: “‐” = Not used The cursor line position can be used, it will be displayed as a logic‐OR if the cursor is turned ON. CGRAM is stored in positions 0x00 through 0x07 of the font table. Therefore, to write the first CGRAM character to the display, you would move the cursor to the desired DDRAM location on the display and write character data 0x00. [19] Initialization Sequence 8‐bit mode: Power ON Wait for power stabilization: ≥ 1ms Function Set: RS 0 R/W 0 DB7 0 Check BUSY flag DB6 0 DB5 1 DB4 1 DB3
1
DB2
0
DB1
X
DB0
X
DB6 0 DB5 0 DB4 0 DB3
1
DB2
0
DB1
X
DB0
X
DB6 0 DB5 0 DB4 0 DB3
0
DB2
0
DB1
0
DB0
1
Display OFF: RS 0 R/W 0 DB7 0 Check BUSY flag Display Clear: RS 0 R/W 0 DB7 0 Check BUSY flag Entry Mode Set: RS 0 R/W 0 DB7 0 DB6 0 DB5 0 DB4 0 DB3
0
DB2
1
DB1
1
DB0
0
Check BUSY flag Home Command: RS 0 R/W 0 DB7 0 DB6 0 DB5 0 DB4 0 DB3
0
DB2
0
DB1
1
DB0
0
Check BUSY flag Display ON: RS 0 R/W 0 DB7 0 DB6 0 DB5 0 DB4 0 DB3
1
DB2
1
DB1
X
DB0
X
Initialization End [20] 4‐bit mode: Power ON Wait for power stabilization: ≥ 1ms Function Set: RS R/W DB7 DB6 DB5 DB4 0 0 0 0 0 0 0 0 1 0 0 0 1 1 X 0 0 X Check BUSY flag Display OFF: RS 0 0 R/W 0 0 DB7 0 1 Check BUSY flag DB6 0 0 DB5 0 X DB4 0 X DB6 0 0 DB5 0 0 DB4 0 1 DB6 0 1 DB5 0 1 DB4 0 0 DB6 0 0 DB5 0 1 DB4 0 0 DB6 0 1 DB5 0 X DB4 0 X Display Clear: RS 0 0 R/W 0 0 DB7 0 0 Check BUSY flag Entry Mode Set: RS 0 0 R/W 0 0 DB7 0 0 Check BUSY flag Home Command: RS 0 0 R/W 0 0 Check BUSY flag DB7 0 0 Display ON: RS 0 0 R/W 0 0 Initialization End DB7 0 1 [21] Quality Information Test Item Content of Test High Temperature storage Test the endurance of the display at high storage temperature. Test the endurance of the display at low storage temperature. Test the endurance of the display by applying electric stress (voltage & current) at high temperature. Test the endurance of the display by applying electric stress (voltage & current) at low temperature. Test the endurance of the display by applying electric stress (voltage & current) at high temperature with high humidity. Test the endurance of the display by applying electric stress (voltage & current) during a cycle of low and high temperatures. Test the endurance of the display by 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 Atmospheric Pressure test Static electricity test Test Condition Test the endurance of the display by applying atmospheric pressure to simulate transportation by air. Test the endurance of the display by applying electric static discharge. 2 ‐40⁰C , 240hrs
1,2
+80⁰C 240hrs
2 ‐40⁰C , 240hrs
1,2
+60⁰C , 90% RH , 240hrs 1,2
‐40⁰C,30min ‐> 25⁰C,5min ‐> 80⁰C,30min = 1 cycle 100 cycles 10‐22Hz , 15mm amplitude. 22‐500Hz, 1.5G 30min in each of 3 directions X,Y,Z 115mbar, 40hrs
3 VS=800V, RS=1.5kΩ, CS=100pF One time Note 1: No condensation to be observed. Note 2: Conducted after 2 hours of storage at 25⁰C, 0%RH. Note 3: Test performed on product itself, not inside a container. Evaluation Criteria: 1: Display is fully functional during operational tests and after all tests, at room temperature. 2: No observable defects. 3: Luminance >50% of initial value. 4: Current consumption within 50% of initial value Precautions for using OLEDs/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 [22] Note
+80⁰C , 240hrs
3