DOT MATRIX LCD CONTROLLER WITH 16-DOT COMMON DRIVER AND 40-DOT
SEGMENT DRIVER
GENERAL DESCRIPTION
The ML9040-Axx/-Bxx is a dot matrix LCD controller which is fabricated in low power CMOS
silicon gate technology. Character display on the dot matrix character type LCD can be
controlled in combination with a 4-bit or 8-bit microcontroller. This LSI consists of 16-dot
COMMON driver, 40-dot SEGMENT driver, display data RAM, character generator RAM,
character generator ROM and control circuit.
The ML9040-Axx/-Bxx has the character generator ROM that can be programmed by custom
mask. The ML9040-Axx/-Bxx is a standard version having 160 characters with lowercase (5 x
7 dots), and 32 characters with uppercase (5 x 10 dots) in this ROM.
inary
FEATURES
• Easy interface with an 8-bit or 4-bit microcontroller.
• Dot matrix LCD controller/driver for lowercase (5 x 7 dots) or uppercase (5 x 10 dots).
• Automatic power ON reset.
• COMMON signal drivers (16) and SEGMENT signal drivers (40).
• Can control up to 80 characters when used in combination with MSM5259.
• Character generator ROM for 160 characters with lowercase (5 x 7 dots) and 32 characters with
uppercase (5 x 10 dots).
• Character patterns are programmable by character generator RAM. (Lowercase: 5 x 8 dots,
8 patterns, uppercase: 5 x 11 dots, 4 patterns).
• Built-in oscillation circuit to connect with external resistor or ceralock.
• 1/8 duty (1 line; 5 x 7 dots + cursor), 1/11 duty (1 line; 5 x 10 dots + cursor), or 1/16 duty (2
lines; 5 x 7 dots + cursor), selectable.
• Clear display even at 1/5 bias, 3.0V LCD driving voltage.
• LCD driving waveform
ML9040-Axx: A mode
ML9040-Bxx: B mode
• Package options:
80-pin plastic QFP (QFP80-P-1420-0.80-BK)
(Product name: ML9040-Axx/-BxxGA)
xx indicates code number.
1
¡ SemiconductorML9040-Axx/-Bxx
2
BLOCK DIAGRAM
DO
SEG
1~40
40
COM
1~16
16
L
CP
DF
16
55
5
8
8
77
7
8
8
8
8
7
4
4
V
DD
GND
OSC
1
OSC
2
E
RS
R/W
DB
0
- DB
3
DB4 - DB
7
V
1
Common
signal
driver
16-bit
shift
register
Parallel/
serial
conversion
Cursor blink
control
Character
generator
ROM
(CG RAM)
Character
generator
RAM
(CG RAM)
Display data
RAM
(DD RAM)
Timing
generation
circuit
Input/
output
buffer
Instruction
register
(IR)
Instruction
decoder
(ID)
Data
register
(DR)
Busy flag
(BF)
Address
counter
(ADC)
4040
Segment
signal
driver
40-bit
latch
40-bit
shift
register
V
2
V
3
V
4
V
5
INPUT AND OUTPUT CONFIGURATION
V
DD
ML9040-Axx/-Bxx¡ Semiconductor
V
DD
V
DD
P
N
Applicable to pin E.
V
DD
V
DD
P
N
V
Applicable to pins DB
DD
- DB7.
0
P
N
Applicable to pins R/W and RS.
P
V
DD
N
P
N
Applicable to pins DO, CP, L, and DF.
3
PIN CONFIGURATION (TOP VIEW)
ML9040-Axx/-Bxx GA
27
26
24
SEG
79
25
SEG
78
SEG
77
SEG
76
23
SEG
80
28
SEG
75
29
SEG
74
30
SEG
73
31
SEG
72
32
SEG
71
33
SEG
70
34
SEG
69
35
SEG
68
36
SEG
67
37
SEG
66
¡ SemiconductorML9040-Axx/-Bxx
38
SEG
65
SEG
SEG
SEG
SEG
SEG
SEG
SEG
SEG
SEG
SEG
SEG
SEG
SEG
SEG
SEG
SEG
SEG
SEG
SEG
SEG
SEG
SEG
GND
OSC
22
21
20
19
18
17
16
15
14
13
12
11
10
1
2
3
4
5
6
7
8
9
10
11
12
13
14
9
15
8
16
7
17
6
18
5
19
4
20
3
21
2
22
1
23
24
1
64
63
62
61
60
59
58
57
56
55
54
53
52
51
50
49
48
47
46
45
44
43
42
41
SEG
SEG
COM
COM
COM
COM
COM
COM
COM
COM
COM
COM
COM
COM
COM
COM
COM
COM
DB
7
DB
6
DB
5
DB
4
DB
3
DB
2
39
40
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
25
2
OSC
26
33
34
32
31
30
29
28
27
5
4
3
2
1
V
V
V
L
V
V
CP
V
DD
DF
35
DO
36
RS
37
R/W
38
40
39
1
0
E
DB
DB
80-Pin Plastic QFP
4
PIN DESCRIPTIONS
ML9040-Axx/-Bxx¡ Semiconductor
Symbol
Description
R/WRead/write selection input pin.
"H" : Read, and "L" : Write
RSRegister selection input pin.
"H" : Data register, and "L" : Instruction register
EInput pin for data input/output with CPU and for instruction register activation.
DB0 - DB
7
OSC1, OSC
2
Input/output pins for data send/receive with CPU
Clock oscillating pins required for internal operation upon receipt of the LCD drive signal
and CPU instruction.
COM1 - COM
SEG1 - SEG
16
40
LCD COMMON signal output pins.
LCD SEGMENT signal output pins.
DOOutput pin to be connected to MSM5259 to expand the number of characters to be
displayed.
CPClock output pin used when DO pin data output shifts inside of MSM5259.
LClock output pin for the serially transferred data to be latched to MSM5259.
DFThe alternating current signal (Display Frequency) output pin.
V
DD
Power supply pin.
GNDGround pin.
V1, V2, V3, V4, V
Bias voltage input pins to drive the LCD.
5
5
ABSOLUTE MAXIMUM RATINGS
¡ SemiconductorML9040-Axx/-Bxx
Parameter
Supply Voltage
LCD Driving Voltage
Input VoltageV
Power DissipationP
Storage TemperatureT
SymbolConditionRatingUnitApplicable pin
Ta = 25°C–0.3 to + 7.0VVDD, GND
Ta = 25°C
Ta = 25°C–0.3 to V
—500mW—
—–55 to + 150°C—
V
1
V4, V
V
DD
, V2, V
5
I
D
STG
3
RECOMMENDED OPERATING CONDITIONS
Parameter
Supply Voltage
Data Holding Voltage
LCD Driving Voltage
*1
*2
Operating TemperatureT
SymbolConditionRangeUnitApplicable pin
V
V
DD
HOLD
—4.5 to 5.5VVDD, GND
—3.0 to 5.5VVDD, GND
1/4 bias, VDD–V
V
LCD
op
1/5 bias, VDD–V
—–20 to + 75°C—
V
DD
V
DD
– 8.0 to
+ 0.3
V
V
1
V4, V
, V2, V
3
5
R/W, RS, E,
DB
+ 0.3V
DD
*3
5
5
3.0 to 6.0V
*4
3.0 to 6.0V
0
OSC
V
DD
- DB
1
, V
7
5
*1 Voltage to assure Rf oscillation and register data retention.
*2 Voltage between VDD and V
5.
*3 Voltages applicable to V1, V2, V3 and V4 are as follows.
*6 Input the voltage listed in the table below to V1 - V5:
N (LCD lines)
1-line mode2-line mode
Pin
V
V
1
V
2
V
3
V
4
V
DD
V
DD
V
DD
V
DD
LCD
–
4
V
LCD
–
2
V
LCD
–
2
3V
LCD
–
4
V
LCD
–
V
DD
V
DD
V
DD
V
DD
5
2V
LCD
–
5
3V
LCD
–
5
4V
LCD
–
5
V
5
V
is an LCD driving voltage. (For "N" (number of LCD lines),
LCD
– V
V
DD
LCD
refer to the initial set of the instruction code.)
– V
V
DD
LCD
9
¡ SemiconductorML9040-Axx/-Bxx
• Timing for output to the CPU
(V
= 4.5 to 4.5V, Ta = –20 to +75°C)
DD
Parameter
R/W and RS setup time
E "H" pulse widtht
R/W and RS hold time t
E rise time t
E fall time t
E "L" pulse width t
E cycle time t
to DB7 data output delay time t
DB
0
to DB7 data output hold time t
DB
0
SymbolMin.Typ.Max.Unit
t
B
W
A
r
f
L
C
D
O
140 ——ns
280 ——ns
10 — —ns
——100 ns
——100 ns**
280 ——ns
667 ——ns
——220 ns
20 — —ns
*Values of tr and tf are design specification and are actually determined after sample
evaluation.
DB
0
R/W
-DB
RS
V
IH1
V
IH1
V
IL1
t
B
V
V
E
IL1
t
r
IH1
t
7
t
W
D
V
OH1
Output data
V
OL1
V
IH1
V
IH1
V
IL1
t
A
t
L
V
IH1
V
IL1
t
f
t
O
V
OH1
V
OL1
t
C
V
IL1
10
ML9040-Axx/-Bxx¡ Semiconductor
Switching Characteristics
• Timing for input from the CPU
(V
= 4.5 to 5.5V, Ta = –20 to +75°C)
DD
Parameter
R/W and RS setup time
E "H" pulse widtht
R/W and RS hold time t
E rise time t
E fall time t
E "L" pulse width t
E cycle time t
to DB7 input data setup time t
DB
0
to DB7 input data hold time t
DB
0
*Values of tr and tf are design specification and are actually determined after sample
evaluation.
SymbolMin.Typ.Max.Unit
t
B
W
A
r
f
L
C
I
H
140——ns
280——ns
10—— ns
——100ns
——100ns
280——ns
667——ns
180——ns
10—— ns
*
*
DB
0
R/W
RS
E
- DB
V
IL1
V
IH1
V
IL1
V
V
IH1
IL1
t
W
t
I
Input data
t
B
V
IL1
IH1
V
t
r
7
V
IL1
V
IH1
V
IL1
t
A
t
L
V
IH1
V
IL1
t
f
t
H
V
IH1
V
IL1
t
C
V
IL1
11
• Timing for output to MSM5259
Parameter
CP "H" pulse width
CP "L" pulse widtht
DO setup timet
DO holding time t
"L" clock set-up time t
"L" clock hold timet
"L" "H" pulse widtht
DF delay time t
These two registers are selected by the REGISTER SELECTION (RS) pin.
The DR is selected when the "H" level is input to the RS pin and IR is selected when the "L"
level is input.
The IR is used to store the address of the display data RAM (DD RAM) or character
generator RAM (CG RAM) and instruction code.
The IR can be written, but not be read by the microcomputer (CPU).
The DR is used to write and read the data to and from the DD RAM or CG RAM.
The data written to DR by the CPU is automatically written to the DD RAM or CG RAM
as an internal operation.
When an address code is written to IR, the data (of the specified address) is automatically
transferred from the DD RAM or CG RAM to the DR. Next, when the CPU reads the DR,
it is possible to verify DD RAM or CG RAM data from the DR data.
After the writing of DR by the CPU, the next adress in the DD RAM or CG RAM is selected
to be ready for the next CPU writing.
Likewise, after the reading out of DR by the CPU, DD RAM or CG RAM data is read out
by the DR to be ready for the next CPU reading.
Write/read to and from both registers is carried out by the READ/WRITE (R/W) pin.
Table 1 RS and R/W pins functions
R/W
L
HLRead of busy flag (BF) and address counter (ADC)
LHDR write
HHDR read
RSFunction
LIR write
Busy Flag (BF)
When the busy flag is at "H", it indicates that the ML9040-Axx/-Bxx is engaged in internal
operation.
When the busy flag is at "H", any new instruction is ignored.
When R/W = "H" and RS = "L", the busy flag is output from DB7.
New instruction should be input when busy flag is "L" level.
When the busy flag is at "H", the output code of the address counter (ADC) is undefined.
Address Counter (ADC)
The address counter (ADC) allocates the address for the DD RAM and CG RAM write/
read and also for the cursor display.
When the instruction code for a DD RAM address or CG RAM address setting is input to
IR, after deciding whether it is DD RAM or CG RAM, the address code is transferred from
IR to ADC. After writing (reading) the display data to (from) the DD RAM or CG RAM,
the ADC is incremented (decremented) by 1 internally.
The data of the ADC is output to DB0 - DB6 on the conditions that R/W = "H", RS = "L", and
BF = "L".
13
¡ SemiconductorML9040-Axx/-Bxx
Timing Generator Circuit
This circuit is used to generate timing signals to activate internal operations upon receipt
of CPU instruction and also from such internal circuits as the DD RAM, CG RAM, and CG
ROM.
It is designed so that the internal operation caused by accessing from the CPU will not
interfer e with the internal operation caused by LCD driving. Consequently, when data
is written from the CPU to DD RAM, flickering does not occur in a display area other than
the display area where the data is written.
In addition, this circuit generates the transfer signal to MSM5259 for display character
expansion.
Display Data RAM (DD RAM)
This RAM is used to store display data of 8-bit character codes (see Table 2).
DD RAM address corresponds to the display position of the LCD. The correspondence
between the two is described in the following.
DD RAM address (set to ADC) is expressed in hexadecimal notation as shown below:
ADC
(Example)
When DD RAM
address is 2A
DB
6
Hexadecimal notationHexadecimal notation
HLHLH
2A
DB
LSBMSB
0
LL
(1) Corresponden ce between address and display position in the 1-line display mode
First
digit
MSBLSB
2023034045
01
00
794F80
4E
Display position
DD RAM address (hex.)
(2)When the ML9040-Axx/-Bxx alone is used, up to 8 characters can be displayed from the
first to eighth digit.
First
digit
00
2023034
01
04505606707
8
14
When the display is shifted by instruction, the correspondence between the LCD
display position and the DD RAM address changes as shown below:
First
(Display
shifted
to right)
(Display
shifted
to left)
digit
First
digit
2013024035046057068
00
4F
2033044055066077088
02
01
ML9040-Axx/-Bxx¡ Semiconductor
(3)When the ML9040-Axx/-Bxx is used with one MSM5259, up to 16 characters can be
displayed from the first to sixteenth digit as shown below:
First
digit
2023034045056067
00
01
07
8
100A110B120C130D140E150F169
0809
MSM5259 displayML9040-Axx/-Bxx display
When the display is shifted by instruction, the correspondence between the LCD
display and the DD RAM address changes as shown below: