![](http://datasheet.mmic.net.cn/260000/PCF2113F2_datasheet_15932395/PCF2113F2_42.png)
1997 Apr 04
42
Philips Semiconductors
Product specification
LCD controller/driver
PCF2113x
18.1
8-bit operation, 1-line display using internal
reset
Table 13 shows an example of a 1-line display in 8-bit
operation. The PCF2113x functions must be set by the
‘function set’ instruction prior to display. Since the DDRAM
can store data for 80 characters, the RAM can be used for
advertising displays when combined with display shift
operation. Since the display shift operation changes
display position only and DDRAM contents remain
unchanged, display data entered first can be displayed
when the ‘return home’ operation is performed.
18.2
4-bit operation, 1-line display using internal
reset
The program must set functions prior to 4-bit operation.
Table 12 shows an example. When power is turned on,
8-bit operation is automatically selected and the
PCF2113x attempts to perform the first write as an 8-bit
operation. Since nothing is connected to DB0 to DB3, a
rewrite is then required.
However, since one operation is completed in two
accesses of 4-bit operation, a rewrite is required to set the
functions (see Table 12 step 3).
Thus, DB4 to DB7 of the ‘function set’ are written twice.
18.3
8-bit operation, 2-line display
For a 2-line display, the cursor automatically moves from
the first to the second line after the 40
th
digit of the first line
has been written. Thus, if there are only 8 characters in the
first line, the DDRAM address must be set after the eighth
character is completed (see Table 5). Note that both lines
of the display are always shifted together; data does not
shift from one line to the other.
18.4
I
2
C operation, 1-line display
A control byte is required with most instructions
(see Table 16).
Table 12
4-bit operation, 1-line display example; using internal reset
STEP
INSTRUCTION
DISPLAY
OPERATION
1
power supply on (PCF2113x is initialized by
the internal reset circuit)
function set
RS
R/W
DB7
0
0
0
initialized; no display appears
2
DB6
0
DB5
1
DB4
0
sets to 4-bit operation; in this instance operation
is handled as 8-bits by initialization and only this
instruction completes with one write
3
function set
0
0
0
0
0
0
0
0
1
0
0
0
sets to 4-bit operation, selects 1-line display and
V
LCD
= V
0
; 4-bit operation starts from this point
and resetting is needed
4
display on/off control
0
0
0
0
entry mode set
0
0
0
0
0
1
0
1
0
1
0
0
_
turns on display and cursor; entire display is
blank after initialization
5
0
0
0
1
0
1
0
0
_
sets mode to increment the address by 1 and to
shift the cursor to the right at the time of write to
the DD/CGRAM; display is not shifted
6
‘write data’ to CGRAM/DDRAM
1
0
0
1
0
0
1
0
0
0
1
0
P_
writes ‘P’; the DDRAM has already been
selected by initialization at power-on; the cursor
is incremented by 1 and shifted to the right