ETC SC40

SC162B
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--------------------------------------------------------------------------7
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. www.akiba-tech.com
Page 2 of 17
SC162B
VER2.1
1. General description
SC162B, a dot-matrix character LCD module, design for displaying 2 line 16 row characters. Character font
is 5X7 dots with cursor. The SC162B provides two types of interfaces to MPU: 4-bit and 8-bit interfaces.
SC162B 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
Remark
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
Operating Temperature
TA 1
T a2
-10°C to+60°C
-20°C to+60°C
Normal temperature LCM
Wide temperature LCM
Storage Temperature
T STO
-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
Number of characters
Standard value
16×2
Unit
Module size
Viewing area
122.0×44.0×14.0
99.0×24.0
mm
mm
Active area
Character size
94.8×20.0
9.66×4.84
mm
mm
Character pith
Approx. weight
10.34×6.0
mm
g
Drive method
b) External dimensions
1/5bias 1/16 duty
Remark
122.00
115.00
106.00
99.00
94.80
1.60
14.00
3.50
8.00
12.00
13.50
4.84
0.92
24.00
20.00
R0.5
5.00
35.50
44.00
37.00
1.16
1
7.48
R1.75 4PL
PITCH2.54x15=38.10
R0.50 16PL
AKIHABARA INC. www.akiba-tech.com
2.50
0.68
0.50
9.66
1.10
0.06
0.98
9.00
14.00
Page 3 of 17
SC162B
VER2.1
4. Electrical characteristics
a) DC characteristics
a.1) DC CHARACTERISTICS (TA =25 °C, VDD = 2.7 to 4.5V)
Characteristics
Symbol
Limit
Unit
Min.
Typ.
Max.
Input High Voltage
VIm
0.7VDD VDD
V
Input Low Voltage
VlL
-0.3
0.55
V
Input High Current
IIh
-1.0
1.0
uA
Input Low Current
IlL
-5.0
-15
-30
uA
V
oh
Output High Voltage
0.75VDD V
VOL
Output Low Voltage
0.2VDD v
Vlcd
LCD Voltage
V
Operating Current
Idd
mA
Note: VDD = 3V
a.2) DC CHARACTERISTICS (TA = 25°C, VDD = 4.5 to 5.5V)
Limit
Characteristics
Symbol
Unit
Min.
Typ.
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
Voh
Output High Voltage
2.4
VDD
V
VOL
Output Low Voltage
0.4
V
Vlcd
LCD Voltage
5
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)
Limit
Characteristics
Symbol
Min.
Typ.
Max.
E Cycle Time
tc
1000
E Pulse Width
tpw
450
E Rise/Fall Time
tR,tF
25
Address Setup Time
tsp-i
60
Address Hold Time
tHD1
20
Data Setup Time
tsP2
195
Data Hold Time
tHD2
10
Read Mode (Reading data from LCD module to MPU)
Limit
Characteristics
Symbol
Min.
Typ.
E Cycle Time
tc
1000
E Pulse Width
tw
450
E Rise/Fall Time
tR,tF
Address Setup Time
tsp-i
60
Address Hold Time
tHD1
20
Data Output Delay Time
tD
Data hold time
tHD2
5.0
-
DigiTron Electronic Technology Co., Ltd
Max.
25
360
-
Test Condition
VDD = 3.0V
IOH =
- 0.1mA Pins: DB7-0
|OL= 0.1mA Pins: DB7-0
Test Condition
VDD = 5.0V
IOH = - 0.1mA Pins: DB7-0
IOL= 0.1mA Pins: DB7-0
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
Pins: DB7-0
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
Page 4 of 17
SC162B
VER2.1
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
Data Hold Time
tHD2
10
Read Mode (Reading Data from LCD module to MPU)
Limit
Characteristics
Symbol
Typ.
Max.
Min.
E Cycle Time
tc
400
E Pulse Width
tw
150
E Rise/Fall Time
tR,tF
25
tsp-i
30
Address Setup Time
Address Hold Time
tHD1
10
Data Output Delay Time
tD
100
Data hold time
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
Pins: DB7-0
Unit
Test Condition
ns
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
Pin DB7-0
c) EL backlight
EL ,Cold Cathode Fluorescent Lamp and LED etc, are available as backlight for LCD Module
upon your choice ,your request.
1.EL
(1) Features
Max 1.3mm thickness (Max 1.5mm for lead portion).
Wide driving condition of 60-1000Hz and 150V AC Max .with inverter , step-up voltage from 1.5V
battery is available.
Emitted colors are blue-green and white .
Operating characteristics
(2) Electrical Characteristics
Voltage vs. Brightness
Voltage vs. Current Density
Life Characteristics
Current Density
Power consumption
10
150
400HZ
Brightness
100
50
50HZ
0
Current Density (mA/cm2 )
1KHZ
06
04
400HZ
02
50HZ
0
50
100
150
Voltage (Vrms)
50
100
150
Voltage (Vrms)
Ambient Condition: 50°
C 90 % RH
Initial Brightness ration (%)
08
Power consumption (mW/cm 2 )
1KHZ
200
Constant Voltage /Frequency Drive
Inverter Drive
100
100V/50HZ
50
100V/400HZ
0
100
200
100V/700HZ
300
400
500 Time (h)
d) LED backlight
(1)Features
Low voltage driving (DC) is available without inverter.
AKIHABARA INC. www.akiba-tech.com
Page 5 of 17
SC162B
VER2.1
Long life time 100000 hours (average).
No noise occurrence.
Various color of yellow-green and amber etc.
Operating characteristics
(2)Electrical Characteristics (Reference Data)
Forward Current Derating Curve
Wave Length vs. relative Light intensity
L
100
L:
A
YELLOW-GREEN
A: AMBER
100%
forward
current (If) 20%
Relative Light
Intensity(%)
(
50
-20
25
0
70℃
520 540 560 580 600 620 640 660 680 700
Wave Length (mm)
Note : The above spec . are only for reference
TIMING CHARACTERISICS
R S
th1
tsu1
R/W
th1
tw
tf
E
tr
tsu2
th2
Valid Data
D B 0 ~ D B 7
tc
Write Timing
R S
tsu
th
R/W
tw
th
tf
E
tr
tdh
td
D B 0 ~ D B 7
Valid Data
tc
Read Timing
AKIHABARA INC. www.akiba-tech.com
Page 6 of 17
SC162B
VER2.1
5. Operating Principles
a) Pin description
Pin NO.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Symbol
VSS
VDD
V0
RS
R/W
E
DB0
DB1
DB2
DB3
DB4
DB5
DB6
DB7
BLA(+)
BLK(-)
Level
0V
2.7V~5.5V
H/L
H/L
H→L
H/L
H/L
H/L
H/L
H/L
H/L
H/L
H/L
4.2V
0V
Function
Ground
Supply voltage for logic
Variable voltage for LCD
H: Instruction code L: Data
H: Read signal L: Write signal
enable signal
Data bits
In case of
4 bits instruction, data is
transferred by twice using only 4 buses of D4
– D7 ,and D0 – D3 are not used , first
operation is higher order 4 bits and second
is lower 4 bits of 8 bits , but in case
of
8
bits
instruction
, data
is
transferred by data by data bus of D0 –
D7
Supply voltage for LED-Backlight
Supply voltage for LED-Backlight
b) Block Diagram
AC
RS
R/W
E
D0-D3
D4-D7
IR
I/O
B
U
F
F
E
R
D
E
C
O
D
E
R
DD RAM
Cursor
and
blink
CKT.
VSS
COM
Driving
Circuit
LCD
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.
AKIHABARA INC. www.akiba-tech.com
Page 7 of 17
SC162B
VER2.1
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.
RAM's address and the LCD's position shown bellows.
Display Character address code:
Display position
1
2
3
4
5
6
DDRAM Address
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. www.akiba-tech.com
Page 8 of 17
SC162B
VER2.1
CGROM Character Code Table:
Upper
4bit
Lower
4bit
LLLL LLLH LLHL L L H H LHLL LHLH LHHL LHHH HLLL HLLH HLHL HLHH HHLL HHLH H H H L 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. www.akiba-tech.com
Page 9 of 17
SC162B
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 R/W D7 D6 D5 D4 D3 D2
0
0
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
0
0
0
0
0
1
S/C R/L X
D1
X
D0
S/C
R/L
0
0
0
1
1
0
1
1
c.6) Function
Description
Address Counter
Shift cursor to the left
AC = AC - 1
Shift cursor to the right
AC = AC + 1
Shift display to the left. Cursor follows the display shift
AC=AC
Shift display to the right. Cursor follows the display shift
AC=AC
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. www.akiba-tech.com
Page 10 of 17
SC162B
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. www.akiba-tech.com
Page 11 of 17
SC162B
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 -
-
Function
Set
0
0
0
0
1
DL
N
-
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
F
-
AKIHABARA INC. www.akiba-tech.com
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)
38us
38us
38us
38us
Page 12 of 17
SC162B
VER2.1
6. Operating Methods
a) Interface with MPU
RS
A0
7
A1-A7
MUX
Z80
Interface to Z80 CPU
/WR
/RD
C
Q
D
R
E
LCM
/IRQ
RW
8
D0-D7
D0-D7
E
Interface to MC6800 CPU
E
A0
RS
LCM
MC6800
RW
/RD
8
D0-D7
A14
D0-D7
RS
A15
Interface to MCS51 CPU
E
/RD
/WR
LCM
MCS51
D0-D7
AKIHABARA INC. www.akiba-tech.com
RW
8
D0-D7
Page 13 of 17
SC162B
VER2.1
b) Power supply
Dual Supply Voltage Types
Single Supply Voltage Types
5V
+3V
VDD
VDD
VDD
VDD-V0
VDD-VO
LCM
VDD
VO
LCM
10k~20k
VSS
Function set
RS R/W D7 D6 D5 D4 D3 D2 D1 D0
0 0 0 0 1 1 0
Display on / off control
0
0
0
0
0
0
1
0
X
0
0
0
0
0
0
0
Display on. Cursor appears.
1
1
0
1
0
0
1
0
1
0
_
1
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.
Write “W". The cursor is
incremented by one and shifted
to the right.
1
Write “E ". The cursor is
incremented by one and shifted
to the right.
_
1
1
0
Write data to CG RAM / DD RAM
5
1
1
W_
Write data to CG RAM / DD RAM
6
WE_
1
0
0
1
0
7
1
0
••••
Write data to CG RAM / DD RAM
1
10
0
•••
8
9
0
0
1
0
0
0
0
0
1
0
1
0
Entry mode set
0 0 0 0 0 1
1
1
Write data to CG RAM / DD RAM
1
0
0
0
1
0
Operation
Power on reset. No display.
Set to 8-bit operation and select
1-line display line and character
font.
X
Entry mode set
4
VEE
VDD-VO:LCD driving voltage
c) Operating example
8-Bit operation and 8-digit 1-line display (using internal reset)
No Instruction
Display
Power
on
.
(
SPLC780A1
starts
initializing
)
1
3
10k~20k
VSS
GND
VDD-VO:LCD driving voltage
2
VO
0
0
0
0
AKIHABARA INC. www.akiba-tech.com
WELCOME_
WELCOME_
ELCOME_
Write “E ". The cursor is
incremented by one and shifted
to the right.
Set mode for display shift when
writing
Write" "(space). The cursor is
incremented by one and shifted
to the right.
Page 14 of 17
SC162B
Write data to CG RAM / DD RAM
11
1
0
0
1
0
12
16
17
18
19
0
0
1
0
1
LCOME C
1
1
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
1
0
0
X
0
0
1
0
0
1
1
X
0
0
0
0
1
1
1
1
0
0
0
0
1
0
1
X
0
0
1
0
0
0
0
X
0
COMPAMY
Only shift the cursor's position to
the left (M).
OMPANY
Write “N ". The display moves to
the left.
COMPANY
Shift the display and the cursor's
position to the right.
COMPANY
Shift the display and the cursor's
position to the right.
OMPANY
Write " " (space). The cursor is
incremented by one and shifted
to the right.
X
X
Write data to CG RAM / DD RAM
1
Only shift the cursor's position to
the left (Y).
0
cursor or display shift
0
COMPAMY
X
cursor or display shift
0
Write " Y " . The cursor is
incremented by one and shifted
to the right.
X
Write data to CG RAM / DD RAM
1
COMPAMY
1
cursor or display shift
0
0
•••••
••
return home
0
0
0
0
0
0
0
0
1
WELCOME
0
4-Bit operation and 8-digit 1-line display (using internal reset)
No Instruction
Display
. Power on . ( SPLC780A1 starts initializing )
1
Function set
RS R/W D7
D6
D5
D4
2
0
0
0
0
1
0
Function set
3
0
0
4
0
0
0
1
0
0
0
X
Display on / off control
0
0
0
0
0
0
0
0
1
1
1
0
0
0
0
0
0
0
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.
_
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.
0
0
0
1
1
0
0
Write data to CG RAM / DD RAM
6
Both the display and the cursor
return to the original position
(address 0).
X
Entry mode set
5
Write “C ". The cursor is
incremented by one and shifted to
the right.
••
Cursor Or Display Shift
20
21
0
Write data to CG RAM / DD RAM
1
15
0
•••••
13
14
0
VER2.1
1
0
0
1
0
1
1
0
0
1
1
1
AKIHABARA INC. www.akiba-tech.com
Page 15 of 17
SC162B
VER2.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:
Power on
8bits interface
Waite time > 15ms after VDD>4.5V
RS R/W D7 D6 D5 D4 D3 D2 D1 D0
0 0 0 0 1 1 X X X X
BF cannot be checked before this instruction
Function set (interface is 8 bits length).
Wait time > 4.1ms
RS R/W D7 D6 D5 D4 D3 D2 D1 D0
0 0 0 0 1 1 X X X X
BF cannot be checked before this instruction
Function set (interface is 8 bits length).
Wait time > 100us
RS R/W D7 D6 D5 D4 D3 D2 D1 D0
0 0 0 0 1 1 X X X X
RS R/W D7 D6 D5 D4 D3 D2 D1 D0
0
0
0 0 1 1 N F X X
0
0
0 0 0 0 1 0 0 0
0
0
0 0 0 0 0 0 0 1
0 0 0 0 0 0 0 1 I/D S
Initialization end
AKIHABARA INC. www.akiba-tech.com
BF cannot be checked before this instruction
Function set (interface is 8 bits length).
BF cannot be checked after the following
Instructions
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
Page 16 of 17
SC162B
Power on
VER2.1
4bits interface
Waite time > 15ms after VDD>4.5V
RS
0
R/W D7
0
0
D6
0
D5
1
D4
1
BF cannot be checked before this instruction
Function set (interface is 8 bits length).
D6
0
D5
1
D4
1
BF cannot be checked before this instruction
Function set (interface is 8 bits length).
Wait time > 4.1ms
RS
0
R/W D7
0
0
Wait time > 100us
RS
0
R/W D7
0
0
D6
0
D5
1
D4
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 D7
0
0
0
0
0
N
0
0
0
1
0
0
0
0
0
0
0
0
D6
0
0
F
0
0
0
0
0
1
D5 D4
1
0
1
0
X
X
0
0
0
0
0
0
0
1
0
0
I/D
S
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
Initialization end
AKIHABARA INC. www.akiba-tech.com
Page 17 of 17