1
4
P
P
L
P
This text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader.This text is here in
_
white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader.This text is here inThis text is here in
white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader. white to force landscape pages to be ...
Table 15
Example of I
2
C-bus operation; 1-line display (using internal reset, assuming SA0 = V
SS
; note 1)
STEP
INSTRUCTION
DISPLAY
OPERATION
1
2
I
2
C-bus start
slave address for write
SA6 SA5 SA4 SA3 SA2 SA1 SA0 R/W
0
1
1
1
send a control byte for ‘function set’
Co
RS
0
0
0
0
0
0
function set
DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0
0
0
1
X
display on/off control
DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0
0
0
0
0
entry mode set
DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0
0
0
0
0
initialized; no display appears
Ack
1
during the acknowledge cycle SDA will be pulled-down by the
PCF2103
0
1
0
0
3
0
0
0
0
0
0
0
0
Ack
1
control byte sets RS for following data bytes
4
Ack
1
selects 1-line display; SCL pulse during acknowledge cycle
starts execution of instruction
0
0
0
0
5
_
Ack
1
turns on display and cursor; entire display shows character 20H
(blank in ASCII-like character sets)
1
1
1
0
6
_
Ack
1
sets mode to increment the address by 1 and to shift the cursor
to the right at the time of write to the DDRAM or CGRAM; display
is not shifted
0
1
1
0
7
I
2
C-bus start
_
for writing data to DDRAM, RS must be set to 1; therefore a
control byte is needed
8
slave address for write
SA6 SA5 SA4 SA3 SA2 SA1 SA0 R/W
0
1
1
1
send a control byte for ‘write data’
Co
RS
0
0
0
1
0
0
‘write data’ to DDRAM
DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0
0
1
0
1
_
Ack
1
0
1
0
0
9
_
0
0
0
0
0
0
0
0
Ack
1
10
Ack
1
writes ‘P’; the DDRAM has been selected at power-up; the
cursor is incremented by 1 and shifted to the right
0
0
0
0
P_