1
4
P
P
L
P
Table 8
8-bit operation, 2-line display example; using internal reset
STEP
INSTRUCTION
DISPLAY
OPERATION
1
Power supply on (PCF2104x is initialized by the internal
reset function).
Initialized. No display appears.
2
Function set:
RS = 0; R/W = 0; DB7 = 0; DB6 = 0; DB5 = 1; DB4 = 1;
DB3 = 1; DB2 = 0; DB1 = 0; DB0 = 0
Display 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
Sets to 8-bit operation, selects 2
×
24 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 write to the CG/DDRAM.
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.
5
P_
6
|
|
|
7
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
Set DDRAM address:
RS = 0; R/W = 0; DB7 = 1; DB6 = 1; DB5 = 0; 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’.
8
PHILIPS
_
Sets DDRAM address to position the cursor at the head of
the 2nd line.
9
PHILIPS
M_
Writes ‘M’.
10
|
|
|
11
Write data to CGRAM/ DDRAM:
RS = 1; R/W = 0; DB7 = 0; DB6 = 1; DB5 = 0; DB4 = 0;
DB3 = 1; DB2 = 1; DB1 = 1; DB0 = 1
Write data to CGRAM/ DDRAM:
RS = 0; R/W = 0; DB7 = 0; DB6 = 0; DB5 = 0; DB4 = 0;
DB3 = 0; DB2 = 1; DB1 = 1; DB0 = 1
PHILIPS
MICROCO_
Writes ‘O’.
12
PHILIPS
MICROCO_
Sets mode for display shift at the time of write.