ETC SC802B

SC802B
VER2.1
SPECIFICATION OF SC802B
AKIHABARA INC.
Page 1 of 1
SC802B
VER2.1
CONTENT
1. General description --------------------------------------------------------------------------3
2. Maximum absolute limit---------------------------------------------------------------------3
3. Mechanical characteristics------------------------------------------------------------------3
a) Physical data
b) External dimensions
4. Electrical characteristics---------------------------------------------------------------------4
a) DC characteristics
b) AC characteristics
c) EL backlight
d) LED backlight
5. Operating Principles--------------------------------------------------------------------------6
a) Pin description
b) Block diagram
c) Instruction description
6. Operating Methods---------------------------------------------------------------------------13
a) Interface with MPU
b) Power supply
c) Operating example
AKIHABARA INC.
Page 2 of 2
SC802B
VER2.1
1. General description
SC802B, a dot-matrix character LCD module, design for displaying 2 line 8 row characters. Character font
is 5X7 dots with cursor. The SC802B provides two types of interfaces to MPU: 4-bit
SC802B can includes EL or LED backlight for custom design. The custom can design for color of EL or LED
backlight, viewing angle and LCD type.
2. Maximum absolute limit
Characteristics
Symbol
Ratings
Operating Voltage
VDD
-0.3V to +7.0V
Driver Supply Voltage
VLCD
VDD - 12V to VDD + 0.3V
Input Voltage Range
VIN
-0.3V to VDD + 0.3V
TA1
-10°C to+60°C
Normal temperature LCM
Ta2
-20°C to+60°C
Wide temperature LCM
Operating Temperature
Remark
Storage Temperature
TSTO
-25°C to+70°C
Note: Stresses beyond those given in the Absolute Maximum Rating table may cause operational errors or
damage to the device.
3. Mechanical characteristics
a) Physical data
ITEM
Standard value
Number of characters
8×2
Module size
58.0×32.0×13.6
mm
Viewing area
38.00×16.00
mm
Active area
26.93×6.41
mm
Character size
5.62×2.99
mm
Character pith
6.05×3.43
mm
Unit
Remark
g
Approx. weight
Drive method
b) External dimensions
1/5bias 1/16 duty
58.00±0.5
53.00±0.3
44.20±0.3
38.00±0.3
13.60
1.50
10.00
26.93
0.06
0.55
1.70
12
5.00
12.00
16.00±0.3
0.65
0.06
PITCH 2.54*5=12.70
0.43
1
27.00±0.3
32.00±0.5
0.43
12-R0.50
2
4-R1.25
1.60
2.54
UNIT: mm
AKIHABARA INC.
Page 3 of 3
SC802B
VER2.1
4. Electrical characteristics
a) DC characteristics
a.1) DC CHARACTERISTICS (TA =25 °C, VDD = 2.7 to 4.5V)
Limit
Characteristics
Symbol
Unit
Min.
Typ.
Max.
-
VDD
V
Input High Voltage
VIm
0.7VDD
Input Low Voltage
VlL
-0.3
0.55
V
Input High Current
IIh
-1.0
1.0
uA
Input Low Current
IlL
-5.0
-30
uA
Output High Voltage
Voh
0.75VDD -
-
V
Output Low Voltage
VOL
-
-
0.2VDD v
LCD Voltage
Vlcd
3
4.5v
13
Operating Current
Idd
-15
VDD = 3.0V
IOH =
- 0.1mA Pins: DB7-0
|OL= 0.1mA Pins: DB7-0
V
1.0
mA
Note: VDD = 3V
a.2) DC CHARACTERISTICS (TA = 25°C, VDD = 4.5 to 5.5V)
Characteristics
Symbol Limit
Min.
Test Condition
Typ.
Unit
Test Condition
Max.
Input High Voltage
VIm
2.2
VDD
V
Input Low Voltage
VlL
-0.3
0.6
V
Input High Current
IIh
-2.0
2.0
uA
Input Low Current
IlL
-20
-50
-100
uA
Output High Voltage
Voh
2.4
-
VDD
V
IOH = - 0.1mA Pins: DB7-0
Output Low Voltage
VOL
-
-
0.4
V
IOL= 0.1mA Pins: DB7-0
LCD Voltage
Vlcd
3
4.5
13
V
Operating Current
Idd
1.0
mA
Note: VDD = 5V
b) AC characteristics
b.1) AC CHARACTERISTICS (TA = 25°C, VDD = 2.7 to 4.5V)
Write Mode (Writing data from MPU to LCD module)
Characteristics
Symbol
Limit
Min.
VDD = 5.0V
Typ.
Unit
Test Condition
ns
PinE
Max.
E Cycle Time
tc
1000
E Pulse Width
tpw
450
-
-
ns
PinE
E Rise/Fall Time
tR,tF
-
-
25
ns
PinE
Address Setup Time
tsp-i
60
ns
Pins: RS, R/W, E
Address Hold Time
tHD1
20
ns
Pins: RS, R/W, E
Data Setup Time
tsP2
195
ns
Pins: DB7-0
Data Hold Time
tHD2
10
ns
Pins: DB7-0
AKIHABARA INC.
-
-
Page 4 of 4
SC802B
VER2.1
Read Mode (Reading data from LCD module to MPU)
Limit
Characteristics
Symbol
Max.
Min.
Typ.
E Cycle Time
tc
1000
E Pulse Width
tw
450
E Rise/Fall Time
tR,tF
25
Address Setup Time
tsp-i
60
Address Hold Time
tHD1
20
Data Output Delay Time
tD
360
Data hold time
tHD2
5.0
b.2) AC CHARACTERISTICS (ta = 25°C, VDD = 4.5 to 5.5V)
Write Mode (Writing Data from MPU to LCD module)
Limit
Characteristics
Symbol
Min.
Typ.
Max.
E Cycle Time
tc
400
150
E Pulse Width
tpw
25
E Rise/Fall Time
tR,tF
30
Address Setup Time
tsp-i
tHD1
10
Address Hold Time
tsP2
40
Data Setup Time
10
Data Hold Time
tHD2
Read Mode (Reading Data from LCD module to MPU)
Limit
Characteristics
Symbol
Typ.
Min.
E Cycle Time
tc
400
E Pulse Width
tw
150
E Rise/Fall Time
tR,tF
tsp-i
30
Address Setup Time
Address Hold Time
tHD1
10
Data Output Delay Time
tD
Data hold time
AKIHABARA INC.
tHD2
20
-
Unit
Test Condition
ns
ns
ns
ns
ns
ns
ns
PinE
PinE
PinE
Pins: RS, R/W,E
Pins: RS, R/W,E
Pins: DB7-0
Pin DB7- 0
Unit
Test Condition
ns
ns
ns
ns
ns
ns
PinE
PinE
PinE
Pins: RS, R/W, E
Pins: RS, R/W, E
Pins: DB7-0
ns
Pins: DB7-0
Unit
Test Condition
100
ns
ns
ns
ns
ns
ns
Pin E
Pin E
Pin E
Pins: RS, R/W,E
Pins: RS, R/W,E
Pins: DB7-0
-
ns
Pin DB7-0
-
Max.
25
Page 5 of 5
SC802B
VER2.1
TIMING CHARACTERISICS
R S
th 1
ts u 1
R /W
th 1
tw
tf
E
tr
ts u 2
th 2
V a lid D a ta
D B 0 ~ D B 7
tc
Write Timing
R S
th
ts u
R /W
th
tw
tf
E
tr
td h
td
V a lid D a ta
D B 0~D B 7
tc
Read Timing
5. Operating Principles
a) Pin description
Pin NO.
Symbol
1
DB6
2
DB7
3
DB4
4
DB5
5
R/W
6
E
V0
7
RS
8
VSS
9
VDD
10
A
11
K
12
AKIHABARA INC.
Level
H/L
H/L
H/L
H/L
H/L
H→L
H/L
H/L
0V
2.7V~5.5V
4.2V
0V
Function
Data bits
H: Read signal L: Write signal
enable signal
Variable voltage for LCD
H: Instruction code L: Data
Ground
Supply voltage for logic
Supply voltage for LED-Backlight
Supply voltage for LED-Backlight
Page 6 of 6
SC802B
VER2.1
b) Block Diagram
AC
IR
RS
R/W
E
D0-D3
D4-D7
I/O
B
U
F
F
E
R
D
E
C
O
D
E
R
DD RAM
Cursor
and
blink
CKT.
VSS
LCD
COM
Driving
Circuit
DR
CG
RAM
CG RAM
VDD
VO
Timing Control Circuit
Driving Circuit
BUSY
FLAG
P TO S registor
a. Data Register (DR): Dris a register used for temporary Storage of the data read/write form/into DD
RAM and CG RAM.
b. Instruction Register (IR): is a register available for storing the instruction codes and address
information of display data (DD) RAM and character generator (CG) RAM.
c. BUSY FLAG (BF): When the Busy Flag is “1”,it shows that LCM is in internal operation and it can
not accept the next instruction.
d. Character Generator (CG) ROM: This ROM Generates character pattern from 8-bit character code
and provides 192 character patterns.
e. Character Generator (CG)RAM: This RAM allows the user to rewrite the character patterns freely
according to the program.
f. Address Counter (AC): This address counter is used to give the address information of DD RAM
and CG RAM.
g. Display Data (DD) RAM: This display data RAM is used to store the display data expressed by 8-bit
character code . The capacity is 80x 8bits and data for 80 characters can be storage.
h. Cursor and Blink Control Circuit: This circuit generates the cursor and blink.
AKIHABARA INC.
Page 7 of 7
SC802B
RAM's address and the LCD's position shown bellows.
Display Character address code:
Display position
1
2
3
4
5
6
DDRAM Address
VER2.1
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
Relationship between Character Code (DDRAM) and character Pattern (CGRAM)
Character code DD RAM Data
B7
0
0
B6
0
0
B5
0
0
B4
0
0
B3
x
x
B2
0
0
B1
0
0
CG RAM Address
B0
0
1
B5
0
0
B4
0
0
B3
Character Pattern CG RAM Data
B2
B1
B0
0
0
0
B4
B3
B2
B1
B0
0
1
1
1
1
1
0
1
0
0
1
0
0
0
1
0
0
0
1
0
0
0
1
1
0
0
1
0
0
0
B7
x
B6
x
B5
x
1
0
0
0
0
1
0
0
1
0
1
0
0
1
0
0
1
1
0
0
0
1
0
0
1
1
1
0
0
0
0
0
0
0
0
0
1
1
1
0
0
0
1
0
0
1
0
0
0
1
0
0
0
1
0
0
0
1
1
0
0
1
0
0
1
x
x
x
1
0
0
0
0
1
0
0
1
0
1
0
0
1
0
0
1
1
0
0
1
1
1
0
1
1
1
0
0
0
0
0
1. ▆ It means that the bit0~2 of the character code correspond to the bit3~5 of the CG RAM address.
2. ▆ these areas are not used for display, but can be used for the general data RAM.
3. When all of the bit4-7 of the character code is 0, CG RAM character patterns are selected.
4. " 1 ": Selected," 0 ": No selected," X": Do not care (0 or 1).
5. for example (1), to set character code (b2 = b1 = b0 = 0, b3 = 0 or 1, b7-b4 = 0) is to display" T". That
means character code (00)16, and (08)16 can display" T” character.
6. The bits 0-2 of the character code RAM is character pattern line position. The 8th line is the cursor
position and display is formed by logical OR with the cursor
AKIHABARA INC.
Page 8 of 8
SC802B
VER2.1
CGROM Character Code Table:
Upper
4bit
Lower
4bit
LLLL LLLH LLHL LLHH LHLL LHLH LHHL LHHH HLLL HLLH HLHL HLHH HHLL HHLH HHHL HHHH
LLLL
CG
RAM
(1)
LLLH
(2)
LLHL
(3)
LLHH
(4)
LHLL
(5)
LHLH
(6)
LHHL
(7)
LHHH
(8)
HLLL
(1)
HLLH
(2)
HLHL
(3)
HLHH
(4)
HHLL
(5)
HHLH
(6)
HHHL
(7)
HHHH
(8)
AKIHABARA INC.
Page 9 of 9
SC802B
VER2.1
c) Instruction description
Control and display instructions will show in details as following:
c.1) Clear Display
RS R/W D7 D6 D5 D4 D3 D2 D1 D0
0
0
0
0
0
0
0
0
0
1
It clears the whole display and sets display data RAM's address 0 in address counter.
c.2) Return Home
RS R/W D7 D6 D5 D4 D3 D2 D1 D0
0
0
0
0
0
0
0
0
1
X
X: Do not care (0 or 1)
It sets display data RAM's address 0 in address counter and display returns to its original position. The cursor or
blink goes to the left edge of the display (to the 1st line if 2 lines are displayed). The contents of the Display Data
RAM do not change.
c.3) Entry Mode Set
During writing and reading data, it sets cursor move direction and shifts the display.
RS R/W D7 D6 D5 D4 D3 D2 D1 D0
0
0
0
0
0
0
0
1
I/D
S
I/ D = 1: Increment, I / D = 0: Decrement.
S = 1: The display shift, S = 0: The
display does not shift
S= 1
I/D= 1
It shifts the display to the left
S= 1
I/D=0
It shifts the display to the right
c.4) Display On/Off Control
RS
0
R/W
0
D7 D6 D5
D4 D3 D2
0
0
0
0
1
D
D1 D0
C
B
D = 1: Display on, D = 0: Display off
C = 1: Cursor on , C = 0: Cursor off
B = 1: Blinks on, B= 0: Blinks off
c.5) Cursor or Display Shift
Without changing DD RAM's daters, it can move cursor and shift display
RS
R/W D7 D6 D5 D4 D3 D2 D1 D0
0
0
0
0
0
1
S/C R/L X
X
S/C
R/L
Description
Address Counter
0
0
Shift cursor to the left
AC = AC - 1
0
1
Shift cursor to the right
AC = AC + 1
1
0
Shift display to the left. Cursor follows the display shift
AC=AC
1
1
Shift display to the right. Cursor follows the display shift
AC=AC
c.6) Function Set
RS
R/W D7 D6 D5 D4 D3 D2 D1 D0
0
0
0
0
1
DL N
F
X
X
X: Do not care (0 or 1)
DL: It sets interface data length.
DL = 1: Datas are transferred with 8-bit lengths (DB7 - 0).DL = 0: Datas are transferred with 4-bit lengths (DB7 - 4).
(It needs two times to transfer datas) N: It sets the number of the display line. N = 0: One-line display. N = 1: Two-line
display. F: It sets the character font. F = 0: 5 x 7 dots character font.
F = 1: 5 x 10 dots character font.
N
F
No. of Display Lines
Character Font
Duty Factor
0
0
1
5X7 dots
1 /8
0
1
1
5x 10 dots
1 /11
1
X
2
5x7 dots
1 /16
AKIHABARA INC.
Page 10 of 10
SC802B
VER2.1
c.7) Set Character Generator RAM Address
RS
R/W D7 D6 D5 D4 D3 D2 D1 D0
0
0
0
1
a
a
a
a
a
a
It sets character generator RAM address (aaaaaa)2 to the address counter. Character generator RAM data can read or
write after this setting.
c.8) Set Display Data RAM Address
RS
R/W D7 D6 D5 D4 D3 D2 D1 D0
0
0
1
a
a
a
a
a
a
a
It sets display data RAM address (aaaaaaa)2 to the address counter.
Display data RAM can read or write after this setting.
In one-line display (N = 0), (aaaaaaa)2; (OO)16 - (4F)16
In two-line display (N = 1), (aaaaaaa)2: (00)16 - (27)16,gfor the first line,
(aaaaaaa)2: (40)16 - (67)16,gfor the second line.
c.9) Read Busy Flag and Address
RS
R/W D7 D6 D5 D4 D3 D2 D1 D0
0
1
BF
a
a
a
a
a
a
a
When (BF = 1) indicates that the system is busy now, it will not accept any instruction until no busy (BF = 0). At the
same time, the address counter content’s (aaaaaaa)2; is read out.
c.10) Write Data to Character Generator RAM or Display Data RAM
RS
R/W D7 D6 D5 D4 D3 D2 D1 D0
1
0
d
d
d
d
d
d
d
d
It writes data (dddddddd)2 to character generator RAM or display data RAM.
c.11) Read Data from Character Generator RAM or Display Data RAM
RS
R/W D7 D6 D5 D4 D3 D2 D1 D0
1
1
d
d
d
d
d
d
d
d
It reads data (dddddddd)2 from character generator RAM or display data RAM. To get the correct data readout is shown
below:
(ⅰ)Set the address of the character generator RAM or display data RAM or shift the cursor instruction.
(ii) Send the “Read “instruction.
AKIHABARA INC.
Page 11 of 11
SC802B
Instruction table
Instruction Code
Instruction RS RW D7 D6 D5
VER2.1
Execution time
(fosc=270KHz)
D4
D3
D2
D1
D0
Description
Write "20H" to DDRAM and 1.52ms
set DDRAM address to
"OOH" from AC
Set DDRAM address to
1.52ms
"OOH" from AC and return
cursor to its original
position if shifted. The
contents of DDRAM are
not changed.
Clear
Display
0
0
0
0
0
0
0
0
0
1
Return
Home
0
0
0
0
0
0
0
0
1
-
Entry
0
Mode
Set
Display
0
ON/
OFF
Cursor or 0
Display
Shift
0
0
0
0
0
0
1
I/D
S
0
0
0
0
0
1
D
C
B
0
0
0
0
1
S/C R/L -
-
DL
N
-
-
38us
38us
38us
38us
Function
Set
0
0
0
0
1
Set
CGRAM
Address
Set
DDRAM
Address
Read
Busy
Flag and
Address
Counter
0
0
0
1
AC5 AC4 AC3 AC2 AC1 ACO Set CGRAM address in
address counter.
38us
0
0
1
AC6 AC5 AC4 AC3 AC2 AC1 ACO Set DDRAM address in
counter
38us
0
1
BF AC6 AC5 AC4 AC3 AC2 AC1 ACO Whether during internal
operation or not can be
known by reading BF.
The contents of address
counter can also be read.
38us
Write Data 1
to
RAM
Read Data 1
from RAM
0
D7 D6
D5
D4
D3
D2
D1
DO
Write data into internal
RAM (DDRAM/CGRAM).
38us
1
D7 D6
D5
D4
D3
D2
D1
DO
Read data from internal
RAM (DDRAM/CGRAM).
38us
AKIHABARA INC.
F
Assign cursor moving
direction and enable the
shift of entire display
Set display(D), cursor(C),
and blinking of cursor(B)
on/off control bit.
Set cursor moving and
display shift control bit,
and the direction, without
changing of DDRAM data.
Set interface data length
(DL: 8-bit/4-bit), numbers
of display line (N: 2-line/1line) and, display font type
(F:5x10dots/5x8dots)
Page 12 of 12
SC802B
VER2.1
6. Operating Methods
a) Interface with MPU
RS
A0
7
A 1 -A 7
MUX
Z80
In te rfa c e to Z 8 0 C P U
/W R
/R D
C
Q
D
R
E
LCM
/IR Q
RW
8
D 0 -D 7
D 0 -D 7
E
E
I n te r f a c e to M C 6 8 0 0 C P U
RS
A0
LCM
M C 6800
RW
/R D
8
D 0 -D 7
A 14
D 0 -D 7
RS
A 15
I n te r f a c e to M C S 5 1 C P U
E
/R D
/W R
LCM
M C S51
D 0 -D 7
AKIHABARA INC.
RW
8
Page 13 of 13
D 0 -D 7
SC802B
VER2.1
b) Power supply
Single Supply Voltage Types
Dual Supply Voltage Types
5V
+3V
VDD
VDD
VDD
VDD-VO
LCM
VDD-V0
VDD
LCM
10k~20k
VO
VSS
1 Power on . ( SPLC780A1 starts initializing )
Function set
RS R/W D7 D6 D5
D4
2
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
X
X
Display on / off control
0
0
0
0
0
0
0
1
1
1
0
0
Entry mode set
0
0
0
0
0
0
0
0
1
1
0
0
Write data to CG RAM / DD RAM
6
1
0
0
1
0
1
Operation
Power on reset. No display.
Set to 4-bit operation
Set to 4-bit operation and select
1-line display line and character font.
Function set
5
VEE
VDD-VO:LCD driving voltage
c) Operating example
4-Bit operation and 8-digit 1-line display (using internal reset)
No Instruction
Display
4
_
Display on. Cursor appears.
_
Increase address by one. It will shift
the cursor to the right when writing to
the DD RAM / CG RAM. Now the
display has no shift.
W_
Write “W “. The cursor is
incremented by one and shifted to
the right.
1
0
0
1
1
1
Reset function
At power on, it starts the internal auto-reset circuit and executes the initial instructions .
There are the initial procedures shown as bellows:
AKIHABARA INC.
10k~20k
VSS
GND
VDD-VO:LCD driving voltage
3
VO
Page 14 of 14
SC802B
VER2.1
4bits interface
Power on
Waite time > 15ms after VDD>4.5V
RS
0
R/W D7 D6 D5 D4
0
0
0
1 1
BF cannot be checked before this instruction
Function set (interface is 8 bits length).
Wait time > 4.1ms
RS
0
R/W D7 D6 D5 D4
0
0
0
1 1
BF cannot be checked before this instruction
Function set (interface is 8 bits length).
Wait time > 100us
RS
0
R/W D7 D6 D5 D4
0
0
0
1 1
BF cannot be checked before this instruction
Function set (interface is 8 bits length).
RS
0
0
0
0
0
0
0
0
0
R/W
0
0
0
0
0
0
0
0
0
BF cannot be checked after the following
Instructions
Function set (set interface to be 4 bits length)
Interface 8 bits length
Function set (interface is 8 bits length. specify
The number of display lines and character
Font.) The number of display lines and
character cannot be changed afterwards.
Display off
Display clear
Entry mode set
D7
0
0
N
0
1
0
0
0
0
D6
0
0
F
0
0
0
0
0
1
D5
1
1
X
0
0
0
0
0
I/D
D4
0
0
X
0
0
0
1
0
S
Initialization end
AKIHABARA INC.
Page 15 of 15