Specifications
RX62N Group, RX621 Group RIIC Multi-Master Communication
R01AN0630EJ0100 Rev.1.00 Page 11 of 23
Sep 27, 2011
3.7 Flowcharts
3.7.1 Main Processing
Figure 2 shows the flowchart for the main function.
main
Set ICLK, PCLK, and BCLK
Initialized RIIC
RiicIni()
Start communication
(master mode transmission)
RiicMstStart()
Communication
completed?
No
Yes
Start communication
(master mode reception)
RiicMstStart()
Communication
completed?
No
Yes
Terminate communication
Clock settings
RIIC initialization
(enables communication)
Starts master mode transmission
Waits for the bus free state
Starts master mode reception
Waits for the bus free state
Terminates communication
(Calls the same function as used for initialization)
Start slave mode operation
RiicSlvStart()
Starts slave operation
Figure 2 Main Processing