Datasheet S6A0071 Datasheet (Samsung)

Page 1
32COM/60SEG DRIVER & CONTROLLER FOR DOT MATRIX LCD S6A0071
INTRODUCTION
The S6A0071 is a dot matrix LCD controller & driver LSI which is fabricated by low power CMOS technology. It can display 1 line × 24 characters or 2 line × 24 characters with 5 × 7 dots format.
FUNCTION
• Character type dot matrix single chip LCD controller & driver
• Internal driver: 32 common and 60 segment signal output
• Display character pattern: 5 × 7 dots format (240 kinds)
• The Special character pattern is programmable by character generator RAM directly.
• A customer character pattern is programmable by mask option.
• Various instruction functions
• Built-in automatic power on reset
• Driving method is B-type (frame inversion)
FEATURES
Internal Memory
• Character Generator ROM (CGROM): 8,400 bits (240 characters × 5 × 7 dots)
• Character Generator RAM (CGRAM): 64 × 8 bits (8 characters × 5 × 8 dots)
• Display Data RAM (DDRAM): 80 × 8 bits ( 80 characters max.)
Low Power Operation
• Power supply voltage range (VDD): 2.4 to 5.5V
• LCD drive voltage range (VDD - V5): 3.0 to 12.0V
Voltage doubler generates about double from signals power supply On chip generation of LCD supply voltage from voltage doubler (external supply also possible) Programmable duty cycle
• 1/16 duty: 1 line × 5 × 7 dots + cursor × 24 characters
• 1/32 duty: 2 lines × 5 × 7 dots + cursor × 24 characters
Internal oscillator with an external resistor 118 TCP or bare chip available
1
Page 2
S6A0071 32COM/60SEG DRIVER & CONTROLLER FOR DOT MATRIX LCD
BLOCK DIAGRAM
VDD
GND
R/W
RS
E
DB0-DB3
DB4-DB7
OSC1 OSC2
V1 V2 V3 V4 V5
Input/
Output
Buffer
Timing
Generator
Circuit
Busy
Flag
8
8
Data
Register
(DR)
Instruction
Register
(IR)
Parallel/Serial
Data Conversion Circuit
55
Character Generator
ROM
(CGROM)
8400 bits
8
Character Generator
RAM
(CGRAM)
512 bits
8
8
8
Instruction
7
Decoder
7
7
Address
Counter (AC)
Voltage Doubler
Vci C1 C2 V5out T1 T2
Cursor & Blink
Controller
Circuit
8
Display
Data RAM
(DDRAM)
640 bits
60-bit
Shift
Register
32-bit
Shift
Register
60-bit Latch
Circuit
Common
Driver
Seg­ment
Driver
32
COM1­COM32
60
SEG1­SEG60
D
2
Page 3
32COM/60SEG DRIVER & CONTROLLER FOR DOT MATRIX LCD S6A0071
PAD DIAGRAM
118 SEG44
117 SEG43
116 SEG42
115 SEG41
114 SEG40
113 SEG39
112 SEG38
111 SEG37
110 SEG36
109 SEG35
108 SEG34
107 SEG33
106 SEG32
105 SEG31
104 SEG30
103 SEG29
102 SEG28
101 SEG27
100 SEG26
99 SEG25
98 SEG24
97 SEG23
96 SEG22
95 SEG21
94 SEG20
93 SEG19
92 SEG18
91 SEG17
SEG45 1 SEG46 2 SEG47 3 SEG48 4 SEG49 5 SEG50 6 SEG51 7 SEG52 8
SEG53 9 SEG54 10 SEG55 11 SEG56 12 SEG57 13 SEG58 14 SEG59 15 SEG60 16
COM9 17 COM10 18 COM11 19 COM12 20 COM13 21 COM14 22 COM15 23 COM16 24 COM25 25 COM26 26 COM27 27 COM28 28 COM29 29 COM30 30 COM31 31 COM32 32
Y
(0, 0)
Chip size: 3920 × 5080 Pad size: 100 × 100 Unit: µm
S6A0071
X
90 SEG16 89 SEG15 88 SEG14 87 SEG13 86 SEG12 85 SEG11 84 SEG10 83 SEG9 82 SEG8 81 SEG7 80 SEG6 79 SEG5 78 SEG4 77 SEG3 76 SEG2 75 SEG1 74 COM1 73 COM2 72 COM3 71 COM4 70 COM5 69 COM6 68 COM7 67 COM8 66 COM17 65 COM18 64 COM19 63 COM20 62 COM21 61 COM22 60 COM23 59 COM24
NOTE:
VSS 33
OSC1 34
OSC2 35
C2 43
V5OUT 41
VCI 44
VDD 45
RS 46
R/W 47
V1 36
V2 37
V3 38
V4 39
V5 40
C1 42
"S6A0071" marking is to make the PAD No. 95 easy to find.
3
E 48
DB0 49
DB1 50
DB2 51
DB3 52
DB4 53
DB5 54
DB6 55
DB7 56
T2 57
T1 58
Page 4
S6A0071 32COM/60SEG DRIVER & CONTROLLER FOR DOT MATRIX LCD
PAD CENTER COORDINATES
PAD PAD COORDINATE PAD PAD COORDINATE PAD
NUM. NAME
1 SEG45 -1794 2170 2 SEG46 -1794 2030 3 SEG47 -1794 1890 4 SEG48 -1794 1750 5 SEG49 -1794 1610 6 SEG50 -1794 1470 7 SEG51 -1794 1330 8 SEG52 -1794 1190
9 SEG53 -1794 1050 10 SEG54 -1794 11 SEG55 -1794 12 SEG56 -1794 13 SEG57 -1794 14 SEG58 -1794 15 SEG59 -1794 16 SEG60 -1794 17 COM9 -1794 18 COM10 -1794 -210 58 T1 1562 -2374 19 COM11 -1794 -350 59 COM24 1794 -2170 20 COM12 -1794 -490 60 COM23 1794 -2030 100 SEG26 21 COM13 -1794 -630 61 COM22 1794 -1890 101 SEG27 22 COM14 -1794 -770 62 COM21 1794 -1750 102 SEG28 23 COM15 -1794 -910 63 COM20 1794 -1610 103 SEG29 24 COM16 -1794 -1050 25 COM25 -1794 -1190 26 COM26 -1794 -1330 27 COM27 -1794 -1470 28 COM28 -1794 -1610 29 COM29 -1794 -1750 30 COM30 -1794 -1890 31 COM31 -1794 -2030 32 COM32 -1794 -2170
X Y NUM. NAME
41 V5OUT -562 -2374 42 C1 -438 -2374 43 C2 -312 -2374 44 VCI -188 -2374 45 VDD -62 -2374 46 RS 62 -2374 47 R/W 118 -2374 48 E 312 -2374
49 DB0 438 -2374 910 50 DB1 562 -2374 770 51 DB2 688 -2374 630 52 DB3 812 -2374 490 53 DB4 938 -2374 350 54 DB5 1062 -2374 210 55 DB6 1188 -2374
70 56 DB7 1312 -2374
-70 57 T2 1438 -2374
64 COM19 1794 -1470 104 SEG30
65 COM18 1794 -1330 105 SEG31
66 COM17 1794 -1190 106 SEG32 -189 2374
67 COM8 1794 -1050 107 SEG33 -314 2374
68 COM7 1794 -910 108 SEG34 -439 2374
69 COM6 1794 -770 109 SEG35 -564 2374
70 COM5 1794 -630 110 SEG36 -689 2374
71 COM4 1794 -490 111 SEG37 -814 2374
72 COM3 1794 -350 112 SEG38 -939 2374
X Y NUM. NAME X Y
81 SEG7 1794 910 82 SEG8 1794 1050 83 SEG9 1794 1190 84 SEG10 1794 1330 85 SEG11 1794 1470 86 SEG12 1794 1610 87 SEG13 1794 1750 88 SEG14 1794 1890 89 SEG15 1794 2030 90 SEG16 1794 2170 91 SEG17 1686 2374 92 SEG18 1561 2374 93 SEG19 1436 2374 94 SEG20 1311 2374 95 SEG21 1186 2374 96 SEG22 1061 2374 97 SEG23 98 SEG24 99 SEG25
PAD COORDINATE
936 2374 811 2374 686 2374 561 2374 436 2374 311 2374 186 2374
61 2374
-64 2374
4
Page 5
32COM/60SEG DRIVER & CONTROLLER FOR DOT MATRIX LCD S6A0071
PAD CENTER COORDINATES
PAD PAD COORDINATE PAD PAD COORDINATE PAD PAD COORDINATE
NUM. NAME
33 VSS -1562 -2374 34 OSC1 -1438 -2374 35 OSC2 -1312 -2374 36 V1 -1188 -2374 37 V2 -1062 -2374 38 V3 -938 -2374 39 V4 -812 -2374 40 V5 -688 -2374
X Y NUM. NAME
(Continued)
X Y NUM. NAME X Y
73 COM2 1794 -210 113 SEG39 -1064 2374 74 COM1 1794 -70 114 SEG40 -1189 2374 75 SEG1 1794 70 115 SEG41 -1314 2374 76 SEG2 1794 210 116 SEG42 -1439 2374 77 SEG3 1794 350 117 SEG43 -1564 2374 78 SEG4 1794 490 118 SEG44 -1689 2374 79 SEG5 1794 630 80 SEG6 1794 770
5
Page 6
S6A0071 32COM/60SEG DRIVER & CONTROLLER FOR DOT MATRIX LCD
PAD DESCRIPTION
PAD
Pad No. I/O NAME Description Interface
( No.)
VDD VSS
V1-V5 36-40
S1-S60 75-118,
45 For logical circuit (+3V, 5V) 33 Supply voltage Ground (0V) Power supply
Bias voltage level for LCD driving
O Segment output Segment signal output for LCD drive LCD
1-16
C1-C8
C9-C16 C17-C24 C25-C32
74-67, 17-24, 66-59, 25-32,
O Common output Common signal output for LCD drive LCD
OSC1 34 I Oscillator When using internal oscillator, connect
external Rf resistor.
OSC2 35 O Oscillator If external clock is used, connect it to
OSC1
RS 46 I Register select Used as register selection input.
When RS = 1, Data register is selected. When RS = 0, Instruction register is selected.
R/W 47 I Read/write Used as read/write selection input.
When RW = 1, read operation. When RW = 0, write operation.
E 48 I Read/write
Used as read/write enable signal. MPU
Enable
DB0 - DB3 49 - 52 I/O Data bus 0-7 In 8-bit bus mode, used as low order
bidirectional data bus. In 4-bit bus mode, open these pins.
DB4 - DB7
53 - 56 I/O Data bus 0-7 In 8-bit bus mode, used as high order
bidirectional data bus. In 4-bit bus mode, used as both high and
Vci 44 I Voltage doubler
output
low order. DB7 used for busy flag output. Input terminal for voltage doubler.
(normally Vci = VDD)
External resistor OSC/OSC2
External clock (OSC1)
MPU
MPU
MPU
MPU
Power supply
C1,C2 42, 43 I Capacitor Capacitor for voltage doubler connecting
Capacitor terminal (+). Capacitor for voltage doubler connecting terminal(-).
V5OUT 41 O Voltage doubler
output
Voltage doubler output terminal connected to LCD supply voltage
V5
T1, T2 58, 57 I Test pin Maker testing terminal (normally open)
6
Page 7
32COM/60SEG DRIVER & CONTROLLER FOR DOT MATRIX LCD S6A0071
FUNCTION DESCRIPTION
System Interface
This chip has both kinds of interface type with MPU: 4-bit bus and 8-bits bus. 4-bit bus and 8-bit bus are selected by the DL bit in the instruction register.
During read or write operation, two 8-bit registers are used. One is the data register (DR), and the other is the instruction register (IR).
The data register (DR) is used as a temporary data storage place for being written into or read from DDRAW/CGRAM . Target RAM is selected by RAM address setting instruction. Each internal operation, reading from or writing into RAM, is done automatically. Thus, after MPU reads DR data, the data in the next DDRAM/CGRAM address is transferred into DR automatically. Also, after MPU writes data to DR, the data in DR is transferred into DDRAM/CGRAM automatically. The instruction register (IR) is used only to store instruction codes transferred from MPU. MPU cannot use it to read instruction data. To select a register, you can use the RS input pin in 4-bit/8-bit bus mode.
Table 1. Various Kinds of Operations to RS and R/W Bits
RS R/W Operation
0 0 Instruction Write operation (MPU writes instruction code into IR) 0 1 Read Busy flag (DB7) and address counter (DB0 - DB7) 1 0 Data Write operation (MPU writes data into DR) 1 1 Data Read operation (MPU reads data into DR)
Busy Flag (BF)
When BF = 1, it indicates that the internal operation is being processed. So during this time the next instruction cannot be accepted. BF can be read through DB7 port, when RS = 0, and R/W = 1. (Read Instruction Operation). Before executing the next instruction, be sure that BF is not 1.
Address Counter (AC)
The Address Counter (AC) stores DDRAM/CGRAM addresses, transferred from IR. After writing into (reading from) DDRAM/CGRAM. AC is automatically increased (decreased) by 1. When RS = 0 and R/W = 1, AC can be read through ports DB0 - DB6.
7
Page 8
S6A0071 32COM/60SEG DRIVER & CONTROLLER FOR DOT MATRIX LCD
Display Data RAM (DDRAM)
The DDRAM stores display data of maximum 80 × 8 bits (80 characteristics). The DDRAM address is set in the address counter (AC) as a hexadecimal number. (Refer to fig-1).
MSB LSB
AC6
AC5 AC4 AC3 AC2 AC1 AC0
Figure 1. DDRAM Address
1) 1-line Display In case of a 1-line display, the address range of DDRAM is 00H - 04H.
1
COM1 COM8
COM1 COM8
COM1 COM8
2 3 4 5 6 7 8
00
01 02 03 04 05 06 07
SEG1 S6A0071 SEG60
1
2 3 4 5 6 7 8109
01 02 03 04 05 06 07
1
2 3 4 5 6 7 8089
00
4F
01 02 03 04 05 06 07
08
Figure 2. 1-line × 24 char. Display
10 11 12 13 14 15 161017
08909 0A 0B 0C 0D 0E 0F
SEG1 S6A0071 SEG60
10 11 12 13 14 15 161817
09 0A 0B 0C 0D 0E 0F
(After Shift Left)
10 11 12 13 14 15 161017
09 0A 0B 0C 0D 0E 0F
(After Shift Right)
Display position 18 19 20 21 22 23 24 11 12 13 14 15 16 17
DDRAM Address
18 19 20 21 22 23 24
11 12 13 14 15 16 17
18 19 20 21 22 23 24
11 12 13 14 15 16
COM9 COM16
COM9 COM16
COM9 COM16
8
Page 9
32COM/60SEG DRIVER & CONTROLLER FOR DOT MATRIX LCD S6A0071
2) 2-line Display In case of a 2-line display, the address range of DDRAM is 00H - 27H and 40H - 67H.
Display position
1
COM1 COM8
COM17 COM24
COM1 COM8
COM17 COM24
2 3 4 5 6 7 8089
00
01 02 03 04 05 06 07
40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57
SEG1 S6A0071 SEG60 S6A0071SEG1 SEG60
1
2 3 4 5 6 7 8089
01 02 03 04 05 06 07
41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57
10 11 12 13 14 15 161017 09 0A 0B 0C 0D 0E 0F
10 11 12 13 14 15 161017
09 0A 0B 0C 0D 0E 0F
18 19 20 21 22 23 24 11 12 13 14 15 16 17
DDRAM Address
18 19 20 21 22 23 24
11 12 13 14 15 16 17
18
58
COM9 COM16
COM25 COM32
COM9 COM16
COM25 COM32
COM1 COM8
COM17 COM24
(After Shift Left)
1
2 3 4 5 6 7 8089
00
27
67
01 02 03 04 05 06 07
40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56
10 11 12 13 14 15 161017
09 0A 0B 0C 0D 0E 0F
(After Shift Right)
18 19 20 21 22 23 24
11 12 13 14 15 16
Figure 3. 2-line × 24 char. Display with 60 SEG. Extension Driver
COM9 COM16
COM25 COM32
9
Page 10
S6A0071 32COM/60SEG DRIVER & CONTROLLER FOR DOT MATRIX LCD
CGROM (Characteristic Generator ROM)
CGROM has a 5 x 7 dots 240 character pattern.
CGRAM (Character Generator RAM)
CDRAM has up to 5 x 8 dots 8 characters. By writing font data to CGRAM, user defined characters can be used (Refer to table 3).
Timing Generation Circuit
The timing generation circuit generates clock signals for the internal operations.
LCD Driver Circuit
LCD Driver circuit has 32 common and 60 segment signals for LCD driving. Data from CGRAM/CGROM is transferred to an 60-bit segment latch serially, and then stored to an 60-bit shift latch. When each com is selected by a 32-bit common register, segment data is also outputs through the segment driver from and 60-bit segment latch. In case of a 1-line display mode, COM1 to COM8 have 1/6 duty, and in 2-line display mode, COM1 to COM32 have 1/32 duty ratio.
Cursor/Blink Control Circuit
It controls cursor/blink ON/OFF at cursor position.
10
Page 11
32COM/60SEG DRIVER & CONTROLLER FOR DOT MATRIX LCD S6A0071
Table 3. Relationship Between Character Code (DDRAM) and Character Pattern (CGROM)
Character Code (DDRAM data) CGRAM Address CGRAM Data
D7 D6 D5 D4 D3 D2 D1 D0 A5 A4 A3 A2 A1 A0 P7 P6 P5 P4 P3 P2 P1 P0
0 0 x0 0 0 0 0 0 0 0 0 0
0 0 0 0
. . . . .
. . . .
0 0 0 x0 1 1 1 1 1 1 0 0 0
.
. . . . .
. . . . .
. . . . .
. . . . .
1
0
1 1 0 0
1
0
1 1 1 1 1 1 1
0 0 0 0
1
0
1 1 0 0
1
0
1 1 1 1 1 1 1
x x x 0 0
1
. . . .
0
1
0
.
x x x
. . . . .
1 1 10
1
0 0 0
1
0 0 0
1
1 1 1 1
1
0 0 0
1
0 0 0
1
0 0 0
0
0 0 0 0
. . . . .
01 10 0
1
0 0 0
1
0 0 0
1
1 1 1 1
1
0 0 0
1
0 0 0
1
0 0 0
0
0 0 0 0
"X": Don't care.
Pattern
number
Pattern 1 1 1
1 1 1
. . . . .
Pattern 8 1 1
1 1 1
11
Page 12
S6A0071 32COM/60SEG DRIVER & CONTROLLER FOR DOT MATRIX LCD
INSTRUCTION DESCRIPTION
OUTLINE
To overcome the speed difference between internal clock of S6A0071 and MPU clock, S6A0071 performs internal operation by storing control information to IR or DR. The internal operation is determined according to the signal from MPU, composed of read/write and data bus. (refer to Table 5 ) Instruction can be divided largely four kinds,
(1) S6A0071 function set instructions ( set display methods, set data length, etc.) (2) Address set instructions to internal RAM (3) Data transfer instructions with internal RAM (4) Others. The address of internal RAM is automatically increased or decreased by 1.
NOTE:
When you make an MPU program with checking the Busy Flag (DB7) is made, it must be necessary 1/2 fosc for executing the next instruction by falling E signal after the Busy Flag (DB7) goes to "0".
During internal operation, Busy Flag (DB7) is read "1". Busy Flag check must be precede by the next instruction.
Contents
1) Clear Display
RS R/W DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0
0 0 0 0 0 0 0 0 0 1
Clear all the display data by writing "20H" (space code) to all DDRAM address, and set DDRAM address to "00H" into AC (address counter). Return cursor to the original status, namely, bring the cursor to the left edge on first line of the display. Make entry mode increment (I/D = "1").
2) Return Home
RS R/W DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0
0 0 0 0 0 0 0 0 1 x
* "x": don't care
Return Home is cursor return home instruction. Set DDRAM address to "00H" into the address counter. Return cursor to its original site and return display to its original status, if shifted. Contents of DDRAM does not change.
12
Page 13
32COM/60SEG DRIVER & CONTROLLER FOR DOT MATRIX LCD S6A0071
3) Entry Mode Set
RS R/W DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0
0 0 0 0 0 0 0 1 I/D SH
Set the moving direction of cursor and display.
I/D: Increment / Decrement of DDRAM Address (Cursor or Blink)
When I/D = "1", cursor/blink moves to right and DDRAM address is increased by 1. When I/D = "0", cursor/blink moves to left and DDRAM address is decreased by 1. * CGRAM operates the same as DDRAM, when reading from or writing to CGRAM.
SH: Shift of Entire Display
When DDRAM is in the read (CGRAM read/write) operation or SH = "0", shift of entire display is not performed. If SH = "1" and DDRAM is in the write operation, shift of entire display is performed according to I/D value (I/D = "1" : shift left, I/D = "0" : shift right).
4) Display ON/OFF Control
RS R/W DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0
0 0 0 0 0 0 1 D C B
Control display/cursor/blink ON/OFF 1 bit register.
D: Display ON/OFF Control Bit
When D = "1", entire display is turned on. When D = "0", display is turned off, but display data remained in DDRAM.
C: Cursor ON/OFF Control Bit
When C = "1", cursor is turned on. When C = "0", cursor is disappeared in current display, but I/D register preserves its data.
B: Cursor Blink ON/OFF Control Bit
When B = "1", cursor blink is on, which performs alternate between all the "1" data and display character at the cursor position. When B = "0", blink is off.
13
Page 14
S6A0071 32COM/60SEG DRIVER & CONTROLLER FOR DOT MATRIX LCD
5) Cursor or Display Shift
RS R/W DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0
0 0 0 0 0 1 S/C R/L x x
Without waiting or reading the display data, shift right/left cursor position or display. This instruction is used to correct or search display data (Refer to table 6). During 2-line mode display, cursor moves to the 2nd line after the 40th digit of the 1st line. Note that display shift is performed simultaneously for the whole line. When displayed data is shifted repeatedly, each line is shifts individually. When display shift is performed, the contents of the address counter are not changed.
Table 6. Shift Patterns According to S/C and R/L Bits
S/C R/L Operation
0 0 Shift cursor to the left, AC is decreased by 1 0 1 Shift cursor to the right, AC is increased by 1 1 0 Shift all the display to the left, cursor moves according to the display 1 1 Shift all the display to the right, cursor moves according to the display
6) Function Set
RS R/W DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0
0 0 0 0 1 DL N x x x
DL: Interface data length control bit
When DL = "1", it means 8-bit bus mode with MPU. When DL = "0", it means 4-bit bus mode with MPU. Hence, DL is a signal to select 8-bit or 4-bit bus mode. When 4-bit bus mode, it needs to transfer 4-bit data by two times.
N: Display line number control bit
When N = "0", it means 1-line display mode. When N = "1", 2-line display mode is set.
7) Set CGRAM Address
RS R/W DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0
0 0 0 1 AC5 AC4 AC3 AC2 AC1 AC0
Set CGRAM address to AC. This instruction makes CGRAM data available from MPU.
14
Page 15
32COM/60SEG DRIVER & CONTROLLER FOR DOT MATRIX LCD S6A0071
8) Set DDRAM Address
RS R/W DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0
0 0 1 AC6 AC5 AC4 AC3 AC2 AC1 AC0
Set DDRAM address to AC. This instruction makes DDRAM data available from MPU. When 1-line display mode (N = 0), DDRAM address is from "00H" to "4FH". In 2-line display mode (N = 1), DDRAM address in the 1st line is from "00H" to "27H", and DDRAM address in the 2nd line is from "40H" to "67H".
9) Read Busy Flag & Address
RS R/W DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0
0 1 BF AC6 AC5 AC4 AC3 AC2 AC1 AC0
This instruction shows whether S6A0071 is in internal operation or not. If the resultant BF is "1", it means the internal operation is in progress and you have to wait until BF to be Low, and then the next instruction can be performed. In this instruction you can read also the value of address counter.
10) Write data to RAM
RS R/W DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0
1 0 D7 D6 D5 D4 D3 D2 D1 D0
Write binary 8-bit data to DDRAM/CGRAM. The selection of RAM from DDRAM, and CGRAM, is set by the previous address set instruction: (DDRAM address set, CGRAM address set). RAM set instruction can also determine the AC direction to RAM. After write operation, the address is automatically increased/decreased by 1, according to the entry mode.
11) Read data from RAM
RS R/W DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0
1 1 D7 D6 D5 D4 D3 D2 D1 D0
Read binary 8-bit data from DDRAM/CGRAM. The selection of RAM is set by the previous address set instruction. If the address set instruction of RAM is not performed before this instruction, the data that is read first is invalid, because the direction of AC is not determined. If you read RAM data several times without RAM address set instruction before read operation, you can get correct RAM data from the second, but the first data would be incorrect, because there is no time margin to transfer RAM data. In case of DDRAM read operation, cursor shift instruction plays the same role as DDRAM address set instruction; it also transfer RAM data to output data register. After read operation address counter is automatically increased/decreased by 1 according to the entry mode. After CGRAM read operation, display shift may not be executed correctly.
NOTE:
AC indicates the next address position, but you can read only the previous data by read instruction.
In case of RAM write operation, AC is increased/decreased by 1 like read operation. In this time,
15
Page 16
S6A0071 32COM/60SEG DRIVER & CONTROLLER FOR DOT MATRIX LCD
Table 6. Instruction Table
Instruction
Clear Display 0 0 0 0 0 0 0 0 0 1 Write "20H" to DDRAM. and set
Return Home 0 0 0 0 0 0 0 0 1 X Set DDRAM address to "00H" from
Entry Mode
Set
Display
ON/OFF
Control
Cursor or
Display Shift
Function Set 0 0 0 0 1 DL N X X X Set interface data length (DL : 4-
Set CGRAM
Address
Set DDRAM
Address
Read Busy
Flag and
Address
Write Data to
RAM
Read Data
from RAM
RS R/
W
0 0 0 0 0 0 0 1 I/D SH Assign cursor moving direction and
0 0 0 0 0 0 1 D C B Set display(D), cursor(C), and
0 0 0 0 0 1 S/C R/L X X Set cursor moving and display shift
0 0 0 1 AC5 AC4 AC3 AC2 AC1 AC0 Set CGRAM address in address
0 0 1 AC6 AC5 AC4 AC3 AC2 AC1 AC0 Set DDRAM address in address
0 1 BF AC6 AC5 AC4 AC3 AC2 AC1 AC0 Whether during internal operation or
1 0 D7 D6 D5 D4 D3 D2 D1 D0 Write data into internal RAM
1 1 D7 D6 D5 D4 D3 D2 D1 D0 Read data from internal RAM
Instruction Code
DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB
0
Description
Instruction Code
DDRAM address to "00H" from AC.
the AC and return cursor to its original position if shifted. The contents of DDRAM are not change.
make shift of entire display possible.
blinking of cursor(B) on/off control bit.
control bit, and the direction, without changing of the AC.
bit/8-bit), numbers of display line (N : 1-line/2-line).
counter.
counter.
not can be known by reading BF. The contents of address counter can also be read.
(DDRAM/CGRAM).
(DDRAM/CGRAM).
Execution
time(fsoc=270
)
1.53ms
1.53ms
39µs
39µs
39µs
39µs
39µs
39µs
0µs
43µs
43µs
NOTE:
When you make an MPU program, checking the Busy Flag (DB7), a time margin of 1/2 f
*"x": don't care
is necessary
OSC
for executing the next instruction by the falling edge of the 'E' signal after the Busy Flag (DB7) goes to "0".
16
Page 17
32COM/60SEG DRIVER & CONTROLLER FOR DOT MATRIX LCD S6A0071
INTERFACE WITH MPU
1) Interface with 8-bit MPU
When the interfacing data length are 8-bit, transfer is performed all at once through 8 ports, from DB0 to DB7. An example of the timing sequence is shown below.
RS
R/W
E
Internal
signal
DB7
DATA
Internal Operation
Busy Busy
No
Busy
DATA
InstructionBusy Flag CheckInstruction Busy Flag CheckBusy Flag Check
Figure 4. Example of 8-bit Bus Mode Timing Diagram
2) Interface with 4-bit MPU
When interfacing data length is 4-bit, only 4 ports, from DB4 to DB7, are used as data bus. At first higher 4-bit (in the case of 8-bit bus mode, the contents of DB4 - DB7), and then lower 4-bit (in case of 8­bit bus mode, the contents of DB0 - DB3) are transferred. So transfer is performed twice Busy Flag outputs "high" after the second transfer are ended. An example of timing sequence is shown below.
RS
R/W
Internal
signal
DB7
E
Internal Operation
No
D7
D3 AC3 D7 D3
Busy
AC3
Busy
InstructionBusy Flag CheckInstruction Busy Flag Check
Figure 5. Example of 4-bit Bus Mode Timing Diagram
17
Page 18
S6A0071 32COM/60SEG DRIVER & CONTROLLER FOR DOT MATRIX LCD
APPLICATION INFORMATION ACCORDING TO LCD PANEL
1) LCD Panel: 24 character × 1-line character format: 5 × 7 dots + 1 cursor line (1/5 bias, 1/16 duty)
COM1 COM2 COM3 COM4 COM5 COM6 COM7
COM8
SEG1 SEG2 SEG3 SEG4 SEG5
S6A0071
SEG6 SEG7 SEG8 SEG9
SEG10
..
SEG58 SEG59 SEG60
COM16 COM15 COM14 COM13 COM12 COM11 COM10
COM9
18
Page 19
32COM/60SEG DRIVER & CONTROLLER FOR DOT MATRIX LCD S6A0071
2) LCD Panel: 24 character × 2-line character format: 5 × 7 dots + 1 cursor line (1/6.7 bias, 1/32 duty)
COM1 COM2 COM3 COM4 COM5 COM6 COM7 COM8
COM17 COM18 COM19 COM20 COM21 COM22 COM23 COM24
SEG1 SEG2
S6A0071
SEG3 SEG4 SEG5
SEG58 SEG59 SEG60
..
COM32 COM31 COM30 COM29 COM28 COM27 COM26 COM25
COM16 COM15 COM14 COM13 COM12 COM11 COM10
COM9
19
Page 20
S6A0071 32COM/60SEG DRIVER & CONTROLLER FOR DOT MATRIX LCD
POWER SUPPLY FOR DRIVING LCD PANEL
1) When an external power supply is used
V5OUT VSS
open
open
C1 C2
2) When an internal booster is used (Boosting twice)
VDD
4.7µF
VR
+
­+
4.7µF
Vci
C1
-
C2 V5OUT
VSS
VDD
V1 V2 V3 V4 V5
R R
R0 R R
VDD
V1 V2 V3 V4 V5
VEE
4.7µF
VDD
+
-
R R
R0 R R
VDD
+
-
4.7µF
Vci
C1 C2
V5OUT VSS
VDD
V1 V2 V3 V4 V5
R R
R0 R R
VR
-
4.7µF
+
VR: Contrast Control Resistor
-
4.7µF
+
NOTES:
1. Boosted output voltage should not exceed the maximum value (11V) of the LCD driving voltage.
2. A voltage of over 5.5V should not be input into the reference voltage (Vci) when boosting twice.
3. The value of resistance, according to the number of lines, duty ratio and the bias, is shown below. (Refer to table 8)
20
Page 21
32COM/60SEG DRIVER & CONTROLLER FOR DOT MATRIX LCD S6A0071
Table 8. Duty Ratio and Power Supply for LCD Driving
Item Data
Number 1 2
Duty Ratio 1/16 1/32
Bias 1/5 1/6.7
Divided R R R
Resistance R0 R 2.7R
INITIALIZING
When the power is turned on, S6A0071 is initialized automatically by power on reset circuit. During the initialization, the following instructions are executed, and BF(Busy Flag) is kept "High"(busy state) to the end of initialization.
(1) Display Clear instruction: Write "20H" to all DDRAM (2) Set Functions instruction
DL = 1 : 8-bit bus mode N = 1 : 2-line display mode
(3) Control Display ON/OFF instruction
D = 0 : Display OFF C = 0 : Cursor OFF B = 0 : Blink OFF
(4) Set Entry Mode instruction
I/D = 1 : Increment by 1 SH = 0 : No entire display shift
21
Page 22
S6A0071 32COM/60SEG DRIVER & CONTROLLER FOR DOT MATRIX LCD
FRAME FREQUENCY B-Type Waveform (Frame Inversion)
1) 1/16 Duty Cycle
1-line selection period
COM1
1-line selection period 120 clocks
2) 1/32 duty cycle
VDD
V1 V4
V5
..
... ... 161532116154321
1 FRAME
1 FRAME
Item Clock/Frequency
Frame frequency 140.7Hz
* f
= 270kHz (1 clock = 3.7µs)
OSC
1-line selection period
VDD
... ... 323132132314321
V1 V4
V5
..
1 FRAME
1 FRAME
COM1
Item Clock/Frequency
Line Selection Period 120 clocks
Frame Frequency 70.4Hz
* f
= 270kHz (1 clock = 3.7µs)
OSC
22
Page 23
32COM/60SEG DRIVER & CONTROLLER FOR DOT MATRIX LCD S6A0071
INITIALIZING BY INSTRUCTION
1) 8-bit Interface mode
Power On
Wait for more than 20ms after VDD rises to 4.5V
Wait for more than 30ms after VDD rises to 2.7V
Function Set
RS R/W DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0
0 0 0 0 1 DL(1) N X X X
Wait for more than 39µs
Display ON/OFF Control
RS R/W DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0
0 0 0 0 0 0 1 D C B
Wait for more than 39µs
Display Clear
RS R/W DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0
Condition: fosc = 270kHz
0 1
0 1
0 1
0 1
0 1
4-bit interface 8-bit interface
1-line mode 2-line mode
Display off Display on
Cursor off Cursor on
Blink off Blink on
DL
N
D
C
B
0 0 0 0 0 0 0 0 0 1
Wait for more than 1.53ms
Entry Mode Set
RS R/W DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0
0 0 0 0 0 0 0 1 I/D SH
Initialization End
23
01Decrement mode
I/D
Increment mode
01Entire shift off
SH
Entire shift on
Page 24
S6A0071 32COM/60SEG DRIVER & CONTROLLER FOR DOT MATRIX LCD
2) 4-bit Interface mode
Power On
Wait for more than 20ms after VDD rises to 4.5V Wait for more than 30ms after VDD rises to 2.7V
Condition: fosc = 270kHz
Function Set
RS R/W DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0
0 0 0 0 1 DL(0) X X X X
Wait for more than 39µs
Function Set
RS R/W DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0
0 0 0 0 1 0 X X X X 0 0 N X X X X X X X
Wait for more than 39µs
Display ON/OFF Control
RS R/W DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0
0 0 0 0 0 0 X X X X 0 0 1 D C B X X X X
Wait for more than 39µs
DL
0
4-bit interface
1
8-bit interface
1-line mode
0
F
D
C
B
1
0 1
0 1
0 1
2-line mode
Display off Display on
Cursor off Cursor on
Blink off Blink on
Clear Display
RS R/W DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0
0 0 0 0 0 0 X X X X 0 0 0 0 0 1 X X X X
Wait for more than 1.53ms
Entry Mode Set
RS R/W DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0
0 0 0 0 0 0 X X X X 0 0 0 1 I/D SH X X X X
Initialization End
01Decrement mode
I/D
SH
Increment mode
01Entire shift off
Entire shift on
24
Page 25
32COM/60SEG DRIVER & CONTROLLER FOR DOT MATRIX LCD S6A0071
MAXIMUM ABSOLUTE LIMIT RATING
Maximum Absolute Power Ratings
Description Symbol Unit Value
Power Supply Voltage (1) LCD Drive Voltage Input Voltage
VDD
V
LCD
VIN
V - 0.3 to +7.0 V V
VDD-13.5 to VDD+3.0
-0.3 to VDD+0.3
NOTE:
Voltage greater than above may damage the circuit. (VDD ≥ V1 ≥ 2 ≥ V3 ≥ V4 ≥ V5)
Temperature Characteristics
Description Symbol Unit Value
Operating Temperature Storage Temperature
T
T
OPR STG
°C °C
- 3.0 to +85
- 55 to +125
25
Page 26
S6A0071 32COM/60SEG DRIVER & CONTROLLER FOR DOT MATRIX LCD
ELECTRICAL CHARACTERISTICS
DC Characteristics
( VDD = +5V ± 10%, Ta = -30 to +85°C)
Characteristic Symbol
Operating voltage Supply current
Input voltage (1) (except OSC1) Input voltage (2) (OSC1) Output voltage (1) (DB0 to DB7) Output voltage (2) (OSC2) Voltage drop
Input Leakage Current (1) E
Input leakage current(2) (R/W, RS, DB0 to DB7)
Low Input Current (R/W, RS, DB0 to DB7)
Internal Clock (external Rf)
Condition Min Typ Max Unit
VDD
IDD
Internal oscillation or
- 4.5 5.0 5.5 V
external clock operation. (V
= 5V, f
DD
V
IH1
V
IL1
V
IH2
V
IL2
V
IOH = -0.205mA
OH1
V
IOL = 1.6mA
OL1
V
IO = -40µA IO = 40µA IO = ± 0.1mA
SEG
VIN = 0V to VDD
VIN = VDD
Vd
Vd
V
OH2
OL2
COM
I
IL1
I
IL2
= 270 kHz)
OSC
- 2.3 -
- - - 0.8
-
- - - 1.0
IIN VIN = 0V, VDD = 5V (pull
up)
fIC
Rf = 91kΩ ± 2% (VDD = 5V)
- 0.6 1.0 mA
VDD
VDD-1.0
-
VDD
2.4 - -
- - 0.4
0.9VDD
- -
- -
0.1V
DD
- - 1
- - 1
-1 - 1
-5 - 5
-50 -125 -250
190 270 350
V
V
V
V
V
µA
kHz
fEC
160 250 350
External Clock duty - 45 50 55 %
V5out Voltage Doubler
tR, tF
VEF
- - 0.2 Iout = 1mA, Ta = 25°C
RL = ∞
-4.5 -4.7 - V 95 99.9 - %
µs
Vci Input voltage 2.5 - 5.5 V
V
LCD Driving Voltage
VDD-V5 (1/5, 1/6.7 bias)
LCD
3.0 - 13.5 V
26
Page 27
32COM/60SEG DRIVER & CONTROLLER FOR DOT MATRIX LCD S6A0071
DC Characteristics
(VDD = +3V ± 20%, Ta = -30 to +85°C)
Characteristic Symbol
Operating voltage Supply current
VDD
IDD
V
V
Vd
Vd
V V V V
OH1
V
OH2
V
I
Input voltage (1) (except OSC1) Input voltage (2) (OSC1) Output voltage (1) (DB0 to DB7) Output voltage (2) (OSC2) Voltage drop
Input Leakage Current (1) E
Input leakage current(2)
I
(R/W, RS, DB0 to DB7) Low Input Current
IIN VIN = 0V, VDD = 3V (pull
(R/W, RS, DB0 to DB7) Internal Clock
fIC
(external Rf)
Condition Min Typ Max Unit
Internal oscillation or external clock. (V
= 3V, f
DD
IH1
IL1
IH2
IL2
IOH = -0.205mA
IOL = 1.6mA
OL1
IO = -40µA
OL2
COM
IL1
IL2
IO = 40µA IO = ± 0.1mA
SEG
VIN = 0V to VDD
VIN = VDD
up) Rf = 91kΩ ± 2%
(VDD = 3V)
- 2.4 3.0 3.6 V
- 0.2 0.3 mA
= 270kHz)
OSC
-
0.8VDD
-
- - -
-
VDD-1.0
-
VDD
0.2V VDD
DD
- - - 1.0
2.0 - -
- - 0.5
0.9VDD
- -
- -
0.1V
DD
- - 1
- - 1
-1 - 1
-5 - 5
-10 -25 -50
160 240 320 kHz
V
V
V
V
V
µA
V5out Voltage Doubler
VEF
Iout = 1mA, Ta = 25°C RL = ∞
-2.5 -2.75 - V 95 99.9 - %
Vci Input voltage 1.8 -
V
LCD Driving Voltage
27
VDD-V5 (1/5, 1/6.7 bias)
LCD
3.0 - 12.0 V
VDD
V
Page 28
S6A0071 32COM/60SEG DRIVER & CONTROLLER FOR DOT MATRIX LCD
AC Characteristics
Mode Characteristic Symbol Min Typ Max Unit
Write Mode (Refer to figure 6)
Read Mode (Refer to figure 7)
(VDD = 4.5 to 5.5V, Ta = -30 to +85°C)
E Cycle Time E Rise Time / Fall Time E Pulse Width ( High, Low ) R/W and RS Setup Time R/W and RS Hold Time Data Setup Time Data Hold Time E Cycle Time E Rise Time / Fall Time E Pulse Width ( High, Low ) R/W and RS Setup Time R/W and RS Hold Time Data Output Delay Time Data Hold Time
tR, tF
tR, tF
tC
tW
t
SU1
th1
t
SU2
th2
tC
tW
tSU
tH tD
tDH
500 - -
- 20
220 - -
40 - ­10 - ­60 - ­10 - -
500 - -
- 20
220 - -
40 - ­10 - -
- - 120
10 - -
ns
ns
AC Characteristics
(VDD = 2.4 to 3.6V, Ta = -30 to +85°C)
Mode Characteristic Symbol Min Typ Max Unit
Write Mode (Refer to figure 6)
Read Mode (Refer to figure 7)
E Cycle Time E Rise Time / Fall Time E Pulse Width ( High, Low ) R/W and RS Setup Time R/W and RS Hold Time Data Setup Time Data Hold Time E Cycle Time E Rise Time / Fall Time E Pulse Width ( High, Low ) R/W and RS Setup Time R/W and RS Hold Time Data Output Delay Time Data Hold Time
tC
tr, tf
tW
t
SU1
th1
t
SU2
th2
tC
tR, tF
tW
tSU
tH tD
tDH
1400 - -
- 20
500 - -
70 - - ns 10 - -
195 - -
10 - -
1400 - -
- - 20
500 - - ns
70 - - 10 - -
- - 600
20 - -
28
Page 29
32COM/60SEG DRIVER & CONTROLLER FOR DOT MATRIX LCD S6A0071
RS
R/W
DB0 - DB7
RS
R/W
DB0 - DB7
VIH1 VIL1
tsu1
VIL1
tw
th1
VIL1
th1
tf
E
VIH1
VIL1
tr
VIH1
VIL1
VIH1
VIL1
tsu2
Valid Data
th2
VIL1
VIH1 VIL1
tc
Figure 6. Write Mode Timing Diagram
V
IH1
V
IL1
t
su
V
IH1
t
w
V
E
t
r
IH1
V
IL1
t
D
V
OH1
V
OL1
V
IH1
V
IL1
Valid Data
t
h
V
IH1
t
h1
t
f
V
t
DH
V
OH1
V
t
c
OL1
IL1
Figure 7. Read Mode Timing Diagram
29
Loading...