1
3
P
P
L
P
Table 7
8-bit operation, 1-line display example; using internal reset (character set ‘A’)
STEP
INSTRUCTION
DISPLAY
OPERATION
1
Power supply on (PCF2104x is initialized by the internal
reset function).
Function set:
RS = 0; R/W = 0; DB7 = 0; DB6 = 0; DB5 = 1; DB4 = 1;
DB3 = 0; DB2 = 0; DB1 = 0; DB0 = 0
Display mode on/off control:
RS = 0; R/W = 0; DB7 = 0; DB6 = 0; DB5 = 0; DB4 = 0;
DB3 = 1; DB2 = 1; DB1 = 1; DB0 = 0
Entry mode set:
RS = 0; R/W = 0; DB7 = 0; DB6 = 0; DB5 = 0; DB4 = 0;
DB3 = 0; DB2 = 1; DB1 = 1; DB0 = 0
Write data to CGRAM/DDRAM:
RS = 1; R/W = 0; DB7 = 0; DB6 = 1; DB5 = 0; DB4 = 1;
DB3 = 0; DB2 = 0; DB1 = 0; DB0 = 0
Write data to CGRAM/DDRAM:
RS = 1; R/W = 0; DB7 = 0; DB6 = 1; DB5 = 1; DB4 = 1;
DB3 = 1; DB2 = 0; DB1 = 0; DB0 = 0
Initialized. No display appears.
2
Sets to 8-bit operation, selects 2
×
12 display.
3
_
Turns on display and cursor. Entire display is blank after
initialization.
4
_
Sets mode to increment the address by 1 and to shift the
cursor to the right at the time of the write to the
DD/CGRAM. Display is not shifted.
Writes ‘P’. The DDRAM has already been selected by
initialization at power-on. The cursor is incremented by 1
and shifted to the right.
Writes ‘H’.
5
P_
6
PH_
7
|
|
|
8
Write data to CGRAM/DDRAM:
RS = 1; R/W = 0; DB7 = 0; DB6 = 1; DB5 = 0; DB4 = 1;
DB3 = 0; DB2 = 0; DB1 = 1; DB0 = 1
Entry mode set:
RS = 0; R/W = 0; DB7 = 0; DB6 = 0; DB5 = 0; DB4 = 0;
DB3 = 0; DB2 = 1; DB1 = 1; DB0 = 1
Write data to CGRAM/DDRAM:
RS = 1; R/W = 0; DB7 = 0; DB6 = 0; DB5 = 1; DB4 = 0;
DB3 = 0; DB2 = 0; DB1 = 0; DB0 = 0
Write data to CGRAM/DDRAM:
RS = 1; R/W = 0; DB7 = 0; DB6 = 1; DB5 = 0; DB4 = 0;
DB3 = 1; DB2 = 1; DB1 = 0; DB0 = 1
PHILIPS_
Writes ‘S’.
9
PHILIPS_
Sets mode for display shift at the time of write.
10
HILIPS _
Writes space.
11
ILIPS
M_
Writes ‘M’.
12
|
|
|