Beruflich Dokumente
Kultur Dokumente
3 29
Level
Description
VSS
0V
Ground
VDD
5.0V
VO
RS
H/L
R/W
H/L
H: Read(MPUModule) L: Write(MPUModule)
H,HL
DB0
H/L
DB1
H/L
DB2
H/L
10
DB3
H/L
11
DB4
H/L
12
DB5
H/L
13
DB6
H/L
14
DB7
H/L
15
LED +
16
LED
8 29
VR
10K ~20K
Vdd
Vo
V ss
Bias and
Power Circuit
80 series
or
68 series
Com 1~16
C ontroller/Com Driver
H D44780
or
Equivalent
N.V.
Generator
M PU
RS
R /W
E
D B0~DB7
16X 2 LCD
Seg1~40
Seg41~80
Seg D river
M
CL1
CL2
V dd,V ss,V1~V5
O ptional
Character located
D D RA M address
D D RA M address
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
10 29
9.Function Description
The LCD display Module is built in a LSI controller, the controller has two 8-bit registers, an
instruction register (IR) and a data register (DR).
The IR stores instruction codes, such as display clear and cursor shift, and address information for
display data RAM (DDRAM) and character generator (CGRAM). The IR can only be written from the
MPU. The DR temporarily stores data to be written or read from DDRAM or CGRAM. When
address information is written into the IR, then data is stored into the DR from DDRAM or CGRAM.
By the register selector (RS) signal, these two registers can be selected.
RS
R/W
Operation
Low bits
Example: DDRAM addresses 4E
AC
(hexadecimal)
11 29
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
2-Line by 16-Character Display
12 29
Relationship between CGRAM Addresses, Character Codes (DDRAM) and Character patterns
Table 1.
F o r 5 * 8 d o t c h a ra c te r p a tte rn s
C h a ra c te r C o d e s
( D D R A M d a ta )
7
H ig h
Low
* 0
* 0
C h a ra c te r P a tte rn s
( C G R A M d a ta )
C G R A M A d d re ss
5
Low
0 0
0 0
0 1
0 1
0 0 0 1 0
1 0
1 1
1 1
0 0
0 0
0 1
0 1
0 0 1
1 0
1 0
1 1
1 1
0 0
0 0
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
H ig h
1
1
1
1
0
0
1
1
0
1
0
1
H ig h
* *
* *
* *
* *
* *
* *
* *
* *
* *
* *
* *
* *
* *
* *
* *
* *
* *
Low
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
C h a ra c te r
p a tte rn ( 1 )
0
0
0
C u rs o r p a tte rn
0
0
0
0
0
0
0
0
0
0
0
0
C h a ra c te r
p a tte rn ( 2 )
C u rs o r p a tte rn
F o r 5 * 1 0 d o t c h a ra c te r p a tte rn s
C h a ra c te r C o d e s
( D D R A M d a ta )
7
H ig h
Low
* 0
C h a ra c te r P a tte rn s
( C G R A M d a ta )
C G R A M A d d re ss
5
0
0
0
0
0
0
0
0
1
1
1
0
0
0
0
1
1
1
1
0
0
0
H ig h
0
0
1
1
0
0
1
1
0
0
1
0
1
0
1
0
1
0
1
0
1
0
*
*
*
*
*
*
*
*
*
*
*
Low
*
*
*
*
*
*
*
*
*
*
*
* 0
* 0
*
*
*
*
*
*
*
*
* 0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
H ig h
: " H ig h "
13 29
2
Low
C h a ra c te r
p a tte rn
C u rs o r p a tte rn
LLLL LLLH LLHL LLHH LHLL LHLH LHHL LHHH HLLL HLLH HLHL HLHH HHLL HHLH HHHL HHHH
LLLL
CG
RAM
(1)
LLLH
CG
RAM
(2)
LLHL
CG
RAM
(3)
LLHH
CG
RAM
(4)
LHLL
CG
RAM
(5)
LHLH
CG
RAM
(6)
LHHL
CG
RAM
(7)
LHHH
CG
RAM
(8)
HLLL
CG
RAM
(1)
HLLH
CG
RAM
(2)
HLHL
CG
RAM
(3)
HLHH
CG
RAM
(4)
HHLL
CG
RAM
(5)
HHLH
CG
RAM
(6)
HHHL
CG
RAM
(7)
HHHH
CG
RAM
(8)
14 29
11.Instruction Table
Instruction Code
Instruction
Execution time
Description
(fosc=270Khz)
1.53ms
1.53ms
Return Home
Entry Mode
Set
I/D
SH
39s
Display
ON/OFF
Control
39s
Cursor or
Display Shift
Function Set
Set CGRAM
Address
Set DDRAM
Address
S/C R/L
39s
39s
AC5 AC4 AC3 AC2 AC1 AC0 Set CGRAM address in address counter.
39s
DL
AC6 AC5 AC4 AC3 AC2 AC1 AC0 Set DDRAM address in address counter.
39s
0s
Read Busy
Flag and
Address
BF
Write Data to
RAM
D7
D6
D5
D4
D3
D2
D1
D0
43s
Read Data
from RAM
D7
D6
D5
D4
D3
D2
D1
D0
43s
dont care
15 29
12.Timing Characteristics
12.1
Write Operation
Ta=25, VDD=5.0V
Item
Symbol
Min
Typ
Max
Unit
TC
1200
ns
TPW
140
ns
TR,TF
25
ns
tAS
ns
tAH
10
ns
tDSW
40
ns
tH
10
ns
16 29
12.2
Read Operation
Ta=25, VDD=5V
Item
Symbol
Min
Typ
Max
Unit
TC
1200
ns
TPW
140
ns
TR,TF
25
ns
tAS
ns
tAH
10
ns
tDDR
100
ns
tH
10
ns
17 29
13.Initializing of LCM
Power on
Wait for more than 40 ms after VDD rises to 4.5 V
BF can not be checked before this instruction.
RS R/W DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0 Function set
0
*
0
0
1
1
0
*
*
*
Wait for more than 39us
BF can not be checked before this instruction.
Function set
RS R/W DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0 Display ON/OFF control
0
0
*
* *
*
0
0
0
0
0
*
* *
*
1
D C B
0
Wait for more than 37 s
RS R/W DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0 Display Clear
0
0
0
*
*
*
*
0
0
0
0
1
0
*
*
*
*
0
0
0
Wait for more than 1.53ms
RS R/W DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0 Entry Mode Set
0
0
*
* *
*
0
0
0
0
0
* *
*
0
0
1
I/D SH *
Initialization ends
4-Bit Ineterface
18 29
Power on
Wait for more than 40 ms after VDDrises to 4.5 V
BF can not be checked before this instruction.
RS R/WDB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0 Function set
0 0 0 0 1 1 N F * *
Wait for more than 39us
BF can not be checked before this instruction.
8-Bit Ineterface
19 29
15.Backlight Information
Specification
PARAMETER
SYMBOL MIN
TYP
MAX
UNIT
TEST
Supply Current
ILED
12.8
16
20
mA
V=3.5V
Supply Voltage
3.4
3.5
3.6
Reverse Voltage
VR
IV
212
265
CD/M2 ILED=16mA
Luminous
Intensity
ILED16mA
CONDITION
50K
only)
Hr.
25,50-60%RH,
(Note 1)
Color
White
Note: The LED of B/L is drive by current only, drive voltage is for reference only.
drive voltage can make driving current under safety area (current between
minimum and maximum).
Note 1:50K hours is only an estimate for reference.
B/L
LCM
ill never get Vee output from pin15)
21 29