BAT32G1x9 user manual | Chapter 20 Serial interface IICA
779 / 1149
Rev.1.02
Figure 20-28: Slave run step (1).
START
configure PER0 register
Configure Port
IICWLn
,
IICWHn
XXH
SVAn
XXH
IICFn
0XH
Configure IICRSVn
Configure IICCTLn1
IICCTLn0
0XX011XXB
ACKEn=WTIMn=1
,
SPIEn=0
IICCTLn0
1XX011XXB
IICEn=1
Configure Port
communcation mode
flag = 1?
communication
direction flag = 1?
Yes
No
release serial interface IICA from reset state,
start providing clock.
configure pins and multiplexed ports to be used.
First port configured to be input mode and output latch
set to
"0“
select transmission clock
configure local address
configure start condition
allows I2C bus outupt after configure Port from input mode
to output mode.
in
it
ia
l
c
o
n
fi
g
u
ra
ti
o
n
in
te
rr
u
p
t
h
a
n
d
lin
g
Yes
Write IICAn
communcation mode
flag = 1?
Yes
communication
direction flag = 1?
Yes
ready flag = 1?
clear ready flag
Yes
ACKDn=1?
No
clear communication mode
flag WRELn=1
No
No
SPIEn=1
start
transmission
WRELn=1
communcation mode
flag = 1?
Yes
communication
direction flag = 1?
Yes
ready flag = 1?
No
No
No
No
Yes
No
Yes
Read IICAn
clear ready flag
start
receiving
Remarks: 1
The format of transmission and reception must conform to the specifications of the product in the communication.
2. n=0.1