APPLICATION NOTES - NewHaven Display

User’s Guide
NHD-C12864WM-09-FSW-GBW
LCM
(Liquid Crystal Display Graphic Module)
COG- RoHS Compliant
NHD12864WMFSWGBW-
Newhaven Display
128 Lines x 64 Characters
WM= Factory Line
Transflective
Side White LED B/L
STN- Gray
6:00 View
Wide Temperature (-20 ~ +70c)
For product support, contact
Newhaven Display International, LLC
2511 Technology Drive, #101
Elgin, IL 60124
Tel: (847) 844-8795 Fax: (847) 844-8796
January 22, 2007
NHD-C12864WM-09
GENERAL SPECIFICATION
Interace
with Parallel MPU
Display Specification
Display dot matrix :128x64
Display mode:Positive/Transflective/STN Type
Viewing angle :6:00 clock
Display duty:1/64
Driving bias:1/9
Driving voltage:9.5v
Mechanical Dimensions: (Unit:mm)
External dimensions :86.0x44.0x5.7
View area:58x28.8
Dots size:0.36x0.36
Newhaven Display International, LLC
Page 2 of 20
NHD-C12864WM-09
External Dimension
1
PIN
1
2
3
4
5
6
7
8
9
30
SIGNAL
CS2
RESETB
RS
RW
E
DB0
DB1
DB2
DB3
PIN
10
11
12
13
14
15
16
17
18
SIGNAL
DB4
DB5
DB6
DB7
VSS2
VOUT
CAP3N
CAP1P
CAP1N
PIN SIGNAL
19
CAP2N
20
CAP2P
21
VSS
22
VDD
V1
23
24
V2
25
V3
26
V4
V5
27
PIN
28
29
30
SIGNAL
VR
C86
PS
CONTACT
SIDE
STIFFENER
TRANSPARENT
FPC
ELECTRICAL CHARACTERISTICS
ITEM
SYMBOL
VDD
Supply voltage
IDD
Supply current
VLCD
Driving voltage
IEE
Driving current
VLED
LED BKL voltage
LED BKL current
IF
CONDITION
VDD=3.3V
VLCD=9.5V
VLED=4.0
Newhaven Display International, LLC
LED*8
MIN.
2.4
0.6
8
3.0
40
R
MAX.
5.5
1.0
9.5
20
4.0
50
UNIT
V
mA
V
uA
V
mA
Page 3 of 20
Newhaven Display International, LLC
FRONT
BACK
NHD-C12864WM-09
Newhaven Display International, LLC
Newhaven Display International, LLC
Newhaven Display International, LLC
Page 4 of 20
NHD-C12864WM-09
Absolute Maximun Ratings
Electrical Characteristics
Item
Symbol
Condition
Supply Voltage For logic
Vdd-Vss
-
Supply Current For logic
Idd
-
Driving Current For LCD
Iee
Driving Voltage For LCD
Standard Value
Min
Type
-
Max
V
-
5.5
1000
uA
-
-
80
uA
V0-Vss
-
-
-
V
Input Voltage H level
Vih
0.7Vdd
-
Vdd
V
Input Voltage L level
Vil
Vss
-
0.3Vdd
V
Newhaven Display International, LLC
2.4
-
Unit
Page 5 of 20
NHD-C12864WM-09
Timing characteristics
System bus read/write characteristics 1 ( 8080 Series MPU)
Newhaven Display International, LLC
Page 6 of 20
NHD-C12864WM-09
System bus read/write characteristics 2 ( 6800 Series MPU)
Newhaven Display International, LLC
Page 7 of 20
NHD-C12864WM-09
Newhaven Display International, LLC
Page 8 of 20
NHD-C12864WM-09
IC Specification
See The Reference of SUNPLUS Data Book----SPLC501C
PIN assignment
Pin
1
Symbol
Function
This is the chip select signal .When CS1=L” and CS2=
H”,then the chip select becomes active,and data/command
I/O is enabled
CS2
2
RESETB
When RESETB
is set
to “L” ,the setting are
initialized
The RESETB operation is performed by the RESETB signal
level
3
RS
Select register.
0:Instruction register (for write)
counter(for read)
1:Data register(for write and read).
Busy flag &address
4
RW
Read/write select signal.
5
E
Operation (data read/write) enable signal.
6
DB0
7
DB1
8
DB2
9
DB3
10
DB4
11
DB5
12
DB6
13
DB7
This is an 8-bit bi-directional data bus that connects to an 8-bit
or 16-bit standard MPU data bus.
When the serial interface is selected,then DB7 serves as the
serial data input terminal and DB6 serves as the serial clock
input terminal.At this time,DB0-DB5 are set to high
impedence.
When the chip select is inactive,DB0 to DB7 are set to high
impedance.
14
VSS2
A reference power supply for the step-up voltage circuit for
the liquid crystal drive
15
VOUT
DC/DC voltage converter output
16
CAP3-
Capacitor3- for internal DC/DC voltage converter
17
CAP1+
Capacitor1+ for internal DC/DC voltage converter
18
CAP1-
Capacitor1- for internal DC/DC voltage converter
19
CAP2-
Capacitor2- for internal DC/DC voltage converter
20
CAP2+
Capacitor2+ for internal DC/DC voltage converter
21
VSS
Ground.
22
VDD
Power supply for logic
23
V1
24
V2
25
V3
26
V4
LCD driver supply voltages.The voltage determined by LCD
cell is impeadance-converted by a resistive driver or an
operation amplifier for application .Voltages should be the
following relationship:
Newhaven Display International, LLC
Page 9 of 20
NHD-C12864WM-09
27
V5
V0>V1>V2>V3>V4>VSS
When the on-chip operating power circuit is on,the following
are given to V1 to V4 by the on-chip power circuit .Voltage
selection is performed by the set LCD bias command.
LCD
BIAS
V1
V2
V3
V4
1/5BIAS
4/5V0
3/5V0
2/5V0
1/5V0
1/6 BIAS
5/6V0
4/6 V0
2/6 V0
1/6 V0
1/7 BIAS
6/7 V0
5/7 V0
2/7 V0
1/7 V0
1/8 BIAS
7/8 V0
6/8 V0
2/8 V0
1/8 V0
1/9 BIAS
8/9 V0
7/9 V0
2/9 V0
1/9 V0
28
VR
Voltage adjustment pad.Applies voltage betweem V5 and VSS
using a resistive divider
29
C86
C86=H” :6800 series MPU interface
C86=L” :8080 series MPU interface
30
PS
P/S=H :Parallel data input
P/S=L :serial data input
Newhaven Display International, LLC
Page 10 of 20
NHD-C12864WM-09
Instruction Table
Newhaven Display International, LLC
Page 11 of 20
NHD-C12864WM-09
Instruction Description
1.
Display on/off
A0
RD
WR
D7
D6
D5
D4
D3
D2
D1
D0
0
1
0
1
0
1
0
1
1
1
-
D0=1 Display on
D0=0 Display off
2.
Set Display Start Line
A0
RD
WR
D7
D6
D5
D4
D3
D2
D1
D0
0
1
0
0
1
ST5
ST4
ST3
ST2
ST1
ST0
ST5 ST4 ST3 ST2 ST1 ST0
0
0
0
0
Newhaven Display International, LLC
0
0
Line address
0
Page 12 of 20
NHD-C12864WM-09
0
0
0
0
0
1
1
.
.
.
.
.
.
.
1
1
1
1
1
0
62
1
1
1
1
1
1
63
3.
Set Page address
A0
RD
WR
D7
D6
D5
D4
D3
D2
D1
D0
0
1
0
1
0
1
1
P3
P2
P1
P0
P3
P2
P1
P0
Page
0
0
0
0
0
0
0
0
1
1
.
.
.
.
.
0
1
1
1
7
1
0
0
0
8
4.Set Column Address
A0
RD
WR
D7
D6
D5
D4
D3
D2
D1
D0
0
1
0
0
0
0
0
Y7
Y6
Y5
Y4
0
1
0
0
0
0
0
Y3
Y2
Y1
Y0
Y4-Y7 :Higter bits
Y0-Y3 :Lower bits
Y7
Y6
Y5 Y4 Y3 Y2 Y1
Newhaven Display International, LLC
Y0
Column address
Page 13 of 20
NHD-C12864WM-09
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
.
.
.
.
.
.
.
.
.
0
1
0
1
1
1
1
0
94
0
1
0
1
1
1
1
1
95
5Read status
A0
RD
WR
0
0
1
D7
D6
D5
D4
status
D3
D2
D1
D0
0
0
0
0
D3
D2
D1
D0
D2
D1
D0
6. Write display data
A0
RD
WR
1
1
0
D7
D6
D5
D4
write data
7. Read display data
A0
RD
WR
1
0
1
D7
D6
D5
D4
D3
read data
8. ADC Select
A0
RD
WR
D7
D6
D5
D4
D3
D2
D1
D0
0
1
0
1
0
1
0
0
0
0
-
D5
D4
D3
D2
D1
D0
D0=1
Display
Reverse
D0=0
Display
Normal
9. Normal/Reverse Display
A0
RD
WR
D7
Newhaven Display International, LLC
D6
Page 14 of 20
NHD-C12864WM-09
0
1
0
1
0
1
0
0
1
1
D
When D=1 Reverse Display
D=0 Normal Display
10.
Entire Display on/off
A0
RD
WR
D7
D6
D5
D4
D3
D2
D1
D0
0
1
0
1
0
1
0
0
1
0
D
When D=0 Nornal Display
D=1 Reverse Display
11.
Set LCD Bias
A0
RD
WR
D7
D6
D5
D4
D3
D2
D1
D0
0
1
0
1
0
1
0
0
0
1
D
When D=0 Bias=1/9
D=1 Bias=1/7
12.
Read-modify-write
A0
RD
WR
D7
D6
D5
D4
D3
D2
D1
D0
0
1
0
1
1
1
0
0
0
0
0
13.
End
A0
RD
WR
D7
D6
D5
D4
D3
D2
D1
D0
0
1
0
1
1
1
0
1
1
1
0
WR
D7
D6
D5
D4
D3
D2
D1
D0
14.
Reset
A0
RD
Newhaven Display International, LLC
Page 15 of 20
NHD-C12864WM-09
0
1
0
1
1
1
0
0
0
1
0
15.Command output mode select
A0
RD
WR
D7
D6
D5
D4
D3
D2
D1
D0
0
1
0
1
1
0
0
D
*
*
*
16.Set Power Control
A0
RD
WR
D7
D6
D5
D4
D3
D2
D1
D0
0
1
0
0
0
1
0
1
A2
A1
A0
When A0=1 Follower Circuit Is Turn on
A1=1 Regulator Circuit Is Turn on
A2=1 Booster Circuit Is Turn on
17. V5 Voltage Regulator Internal Resistor Ratio Set
A0
RD
WR
D7
D6
D5
D4
D3
D2
D1
D0
0
1
0
0
0
1
0
0
R2
R1
R0
18.The Electronic Volume Mode set
A0
RD
WR
D7
D6
D5
D4
D3
D2
D1
D0
0
1
0
1
0
0
0
0
0
0
1
19. Electronic Volume Register Set
A0
0
RD WR
1
0
D7
D6
D5
D4
D3
D2
D1
D0
0
0
SV5
SV4
SV3
SV2
SV1
SV0
D3
D2
D1
D0
20.Static Indicator on/off
A0
RD
WR
D7
Newhaven Display International, LLC
D6
D5
D4
Page 16 of 20
NHD-C12864WM-09
0
1
0
1
0
1
When D=0: Static Indicator Off
0
1
1
D
0
D=1:Static Indicator On
21. Page blinking
The page blinking mode set
A0
RD
WR
D7
D6
D5
D4
D3
D2
D1
D0
0
1
0
1
0
1
0
0
1
0
1
DB5
0
0
1
.
0
DB4
0
0
0
.
0
DB0
0
0
0
.
1
BlinkingPage
Page blinking register set
A0
0
0
0
0
0
RD
1
1
1
1
1
WR
0
0
0
0
0
DB7
1
0
0
.
0
DB6
0
1
0
.
0
DB3
0
0
0
.
0
DB2
0
0
0
.
0
DB1
0
0
0
.
0
Page7 blink
Page6 blink
Page5 blink
.
Page0 blink
22. Set Driving Mode Set
The driving mode set
A0
RD
WR
D7
D6
D5
D4
D3
D2
D1
D0
0
1
0
1
1
0
1
0
0
1
0
Mode selection register set
A0 RD WR DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0 Driving
selection
0
0
0
0
1
1
1
1
0
0
0
0
1
0
0
1
1
0
0
0
Newhaven Display International, LLC
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
Mode1
Mode2
Mode3
Mode4
Page 17 of 20
NHD-C12864WM-09
23. Nop
A0
RD
WR
D7
D6
D5
D4
D3
D2
D1
D0
0
1
0
1
1
1
0
0
0
1
1
A0
RD
WR
D7
D6
D5
D4
D3
D2
D1
D0
0
1
0
1
1
1
1
*
*
*
*
24. Test
Application Example
Application circuit
Newhaven Display International, LLC
Page 18 of 20
NHD-C12864WM-09
Program Example
E
RW
A0
RES
CS1
COM
DAT
EQU P3.0
EQU P3.1
EQU P3.2
EQU P3.3
EQU P3.4
EQU 30H
EQU 31H
ORG 0000H
AJMP MAIN
ORG 0050H
MAIN: CLR RES
LCALL DELAY
SETB RES
MOV COM,#0E2H
LCALL PR1
LCALL DELAY
LCALL DELAY
MOV COM,#0A1H
LCALL PR1
MOV COM,#0AEH
LCALL PR1
MOV COM,#0C0H
LCALL PR1
MOV COM,#0A3H
LCALL PR1
MOV COM,#02FH
LCALL PR1
MOV COM,#0A6H
LCALL PR1
MOV COM,#0A4H
LCALL PR1
MOV COM,#0ACH
LCALL PR1
MOV COM,#040H
LCALL PR1
MOV COM,#025H
LCALL PR1
MOV COM,#081H
LCALL PR1
MOV COM,#1FH
LCALL PR1
Newhaven Display International, LLC
Page 19 of 20
NHD-C12864WM-09
AD4:
MOV R2,#00H
MOV R4,#0B0H
MOV R5,#00H
MOV R3,#10H
MOV R1,#00H
ADDD4:
MOV COM,R4
LCALL PR1
MOV COM,R5
LCALL PR1
MOV COM,R3
LCALL PR1
MOV DPTR,#TABLE2
TAB4:
CLR A
MOVC A,@A+DPTR
MOV DAT,A
LCALL PR2
INC DPTR
INC R2
MOV COM,#0AFH
LCALL PR1
CJNE R2,#80H,TAB4
INC R1
INC R4
MOV COM,R4
LCALL PR1
MOV R5,#00H
MOV COM,R5
LCALL PR1
MOV R3,#10H
MOV COM,R3
LCALL PR1
CJNE R1,#04H,TAB4
LCALL DELAY1
LCALL DELAY1
LCALL DELAY1
TABLE2:……………………………………………………………………………….
END
Newhaven Display International, LLC
Page 20 of 20
NHD-GDSC12864WM-09
1 CS2
2 RESET
3 RS
4 RW
2.2uF cap
VSS2
14
VOUT
15
CAP3-
16
CAP1+
17
5E
CAP1-
18
6
CAP2-
19
7
CAP2+
20
8
VSS
21
9
VDD
22
V1
23
11
10
V1-V5 via 2.2uF cap
V2
24
12 SCLK
V3
25
13 SI
V4
26
29 C86
V5
27
30 PS
VR
28
INIT Software Commands (hex):
E2 = Soft reset
A1 = ADC select
AE = Disp off
CO = command output
A2 = LCD bias
2F = power control
A6 = Normal mode
A4 = entire disp off
AC = static indicator
40 = Start Address
24 = V5 ratio set
81 = Set contrast
1F = contrast
AF = Disp on
+5Vdc