Display ON/OFF
D: When D = 1, the display is turned on.
When D = 0, the display is turned off with the
display data retained in the display data RAM.
C: When C = 1, the cursor is displayed in the
position specified by the address counter. When
C = 0, the cursor is not displayed. The cursor is
made up of five dots displayed across the 8th
display row, below the 5
×
7 dot-matrix character
block. For 5
×
10 dot-matrix character blocks, 5
dots are displayed across the 11th row.
B: When B = 1, the character at the cursor position
blinks on and off. When this function is acti-
vated, at fcp or fosc = 250 kHz, alternating
between all dots black, and the display charac-
ter, the character is alternately displayed for
409.6 ms and blanked for 409.6 ms. The cursor
may be used simultaneously with the character
blink function. (Blink frequency varies in propor-
tion to the reciprocal of f
CP
or f
OSC
.
409.6
×
250/270 = 379.2 ms; f
CP
= 270 kHz.)
Display/Cursor Shift
The display and/or cursor are shifted to the right
or left. For two-line displays, the cursor moves from
the 40th position of the top line to the first position of
the second line. From the 40th position of the
second line, the cursor does not move back to the
home position, but rather to the first position of the
second line.
NOTE:
When the display is shifted, the address counter is
not affected.
Function Set
DL: Selects the interface data length. When DL = 1,
8-bit data transfers are used. When DL = 0, 4-bit
data transfers are used.
NOTE
When using a 4-bit data length, two transfer operations
are needed to transfer a complete data word to or from
the external micoprocessor.
N: Selects display format (single or dual line). See
Table 12 for the correct input value for each
model.
CAUTION
The function set instruction must be executed at the
beginning of the microprocessor program, before all other
instructions except the busy flag/address counter read
instruction. The function set instruction cannot be exe-
cuted again except to change the interface data length.
Once set, the display format cannot be changed.
DB
0
DB
7
RS R/W
0
CODE
0
0
0
0
0
1
D
C
B
LCD27-16
Cursor
(A) Cursor Function
(B) Character Blink Function
Character Font
5 x 7 dot
Character Font
5 x 10 dot
DB
0
DB
7
RS R/W
0
CODE
NOTE:
*
= Don't Care
0
0
0
0
1 S/C R/L
*
*
6&
5/
6KLIW WKH FXUVRU WR WKH OHIW $&
←
$&
6KLIW WKH FXUVRU WR WKH ULJKW $&
←
$&
6KLIW WKH HQWLUH GLVSOD\ ZLWK WKH FXUVRU WR WKH OHIW
6KLIW WKH HQWLUH GLVSOD\ ZLWK WKH FXUVRU WR WKH ULJKW
DB
0
DB
7
RS R/W
0
CODE
NOTE:
*
= Don't Care
0
0
0
1
DL N
0
*
*
Dot-Matrix LCD Units
16
Display Unit User’s Manual