BAT32G1x9 user manual | Chapter 20 Serial interface IICA
738 / 1149
Rev.1.02
Figure 20-5
Format of IICA control register n0 (IICCTLn0) (1/4).
After reset: 00HR/W
symbol
7
6
5
4
3
2
1
0
IICCTLn0
IICEn
LRELn
WRELn
SPIEn
WTIMn
ACKEn
STTn
SPTn
IICEn
I2C
runs allowed
0
Stop running. Reset
note 1
to IICA status register n (IICSn) and stop internal operation.
1
Allowed to run.
This position "1" must be placed in the state where the SCLAn and SDAAn lines are high.
Clear condition (IICEn=0,1).
Set condition (IICEn=1).
• Clear by command.
• When resetting
• Set by command.
LRELn
Notes
2
and
3
Exit of communication
0
Usually runs
1
Exits the current communication and enters standby. Automatically clear "0" after
execution.
Use in cases such as receiving extension codes that are not related to the local
station.
The SCLAn line and the SDAAn line become high impedance.
The following flags in IICA control register n0 (IICCTLn0) and IICA status register n
(IICSn) are cleared "0" :
•STTn•SPTn•MSTSn•EXCn•COIn•TRCn•ACKDn•STDn
Becomes a standby state to exit the communication until the following communication participation
conditions are met.
•Boot as master device after detecting a stop condition.
•Addresses match or extended codes are received after the start condition is detected.
Clear condition (LRELn=0,1).
Set condition (LRELn=1).
•Automatically clears after execution.
• When resetting
• Set by command.
WRELn
notes
2,
3
Pending release
0
Do not dismiss the wait.
1
Lift the wait. Clears automatically after the wait is lifted.
If the WRELn bit (untapped) is set during the 9th clock wait in the transmit state (TRCn=1), the SDAAn line
becomes High impedance state (TRCn=0,1).
Clear condition (WRELn=0,1).
Set condition (WRELn=1).
•Automatically clears after execution.
• When resetting
• Set by command.
Note: 1.
To
IICA
shift register
n
(IICAn),
IICA
flag register
n
(IICFn).
STCFn
bits and
IICBSYn
bits and
CLDn
of
IICA
control register
n1
(IICCTLn1
).
Bits and
DADn
bits are reset.
2. In the
state where the
IICEn
bit is
"0", the signal for this bit is invalid.
3. The read values for LRELn bits and
WRELn
bits are always
"0".
Note: If the SCLAn
line is high,
the SDAAn
line is low, and the digital filter is
ON
(DFCn=1 for the IICCTLn1
register
), then
enable
I2C
operation
(IICEn=1) immediately detects the start condition. At this point,
the
LRELn
position
"1"
must be
placed continuously through the bit memory operation instruction after
allowing
I2C
to run (
IICEn=
1
).
Note: n=0,1