Initial Settings - Renesas RZ/A Series User Manual

Hide thumbs Also See for RZ/A Series:
Table of Contents

Advertisement

RZ/A1L Group, RZ/A1LU Group, RZ/A1LC Group
Sr: Restart condition. The master device drives the SDA line low from the high level after the setup time has
DATA: Transmitted or received data
P: Stop condition. The master device drives the SDA line high from low level while the SCL line is at a high
18.5.2

Initial Settings

Before starting data transmission and reception, initialize the RIIC according to the procedure in
Figure 18.5.
Figure 18.5
R01UH0437EJ0600 Rev.6.00
Jan 29, 2021
elapsed with the SCL line at the high level.
level.
Initial settings
Clear ICE in RIICnCR1 to 0
Set IICRST in RIICnCR1 to 1
Set ICE in RIICnCR1 to 1
Set RIICnSARy and
Set RIICnSER
Set CKS[2:0] in RIICnMR1 and
RIICnBRL/RIICnBRH
Set RIICnMR2 and RIICnMR3
Set RIICnFER
Set RIICnIER
Clear IICRST in
RIICnCR1 to 0
End
y = 0 to 2
Note 1. When the RIIC is used only in slave mode, set the RIICnBRL register to a
value equal to or longer than the data setup time.
Note 2. Set these registers as necessary.
Example of RIIC Initialization Flowchart
RIICnSCL, RIICnSDA pins not
driven
RIIC reset
Internal reset
Set slave address format and slave address
1
Set transfer bit rate*
2
*
Set interrupt enable
Release from the internal reset state
18. I²C Bus Interface
18-46

Advertisement

Table of Contents
loading

This manual is also suitable for:

Rz/a1 seriesRz/a1lu seriesRz/a1lc series

Table of Contents