BAT32G1x9 user manual | Chapter 20 Serial interface IICA
747 / 1149
Rev.1.02
20.3.5
IICA control register n1 (IICCTLn1).
This is a register used to set the
I2C
operating mode and to detect the status of the SCLAn pin and SDAAn pins.
The IICCTLn1 register is set by the 8-bit memory operation instruction. However, only CLDn bits and DADn bits
can be read.
In addition to the WUPn bit, bit7 must be disabled to run in
I2C
(IICA control register n0 (IICCTLn0). (IICEn)=0)
when setting the IICCTLn1 register.
After generating a reset signal, the value of this register changes to "00H".
Figure 20-8 Format of IICA control register n1 (IICCTLn1) (1/2).
After reset: 00H R/W
Note
1
symbol
IICCTLn1
WUPn
Address matching control of wake-up
0
In deep sleep
mode, stop the operation of the address-matching wake feature.
1
In deep sleep
mode, the address matching wake function is allowed to run.
To transfer to deep sleep mode by placing the WUPn position "1", at least 3 f must pass after the WUPn
position "1" MCK clock, followed by deep sleep instructions (refer to "Figure 14-28 will wupn position" 1
"When the process"). After the address matches or the extension code is received, the WUPn bit must be
cleared to "0". Can participate in subsequent communication by clearing the WUPn bit "0" (you need to
cancel the wait and write the send data after the WUPn bit is cleared "0").
In the state where the WUPn bit is "1", the interrupt timing when the address matches or the extension
code is received is the same as the interrupt timing when the WUPn bit is "0"
(The delay difference that produces the sampling error based on the clock). In addition, when the WUPn
bit is "1", even if the SPIEn position "1" is placed, it does not produce a stop condition interrupt.
Clear condition (WUPn=0,1).
Position condition (WUPn=1).
• Cleared by directive (after the address matches or
the extension code is received).
• Set by instruction (MSTSn=0,1, EXCn=0,1,
COIn=0,1 and STDn=0,1 (do not participate in
communications)) Note 2.
Note: 1.bit4
and
bit5
are read-only bits.
2. During the period shown below, it is necessary to confirm
the status of
the IICA
status register
n
(IICSn) and set
it in place.
SCLAn
SDAAn
during this period, confirm operation state via IICSn and set WUP bit.
max duration from reading IICSn till set
WUPn bit
Note: n=0,1
7
6
5
4
3
2
1
0
WUPn
0
CLDn
DADn
SMCn
DFCn
0
PRSn