![](http://datasheet.mmic.net.cn/30000/M30260M3A-XXXGP-U5_datasheet_2358673/M30260M3A-XXXGP-U5_171.png)
13. Serial I/O
page 157
8
2
3
f
o
5
0
2
,
5
1
.
r
a
M
0
.
1
.
v
e
R
0
1
0
-
2
0
2
0
B
9
0
J
E
R
)
T
6
2
/
C
6
1
M
,
A
6
2
/
C
6
1
M
(
p
u
o
r
G
A
6
2
/
C
6
1
M
Function
I2C bus mode (SMD2 to SMD0 = 0102 , IICM = 1)
Clock synchronous serial I/O
mode (SMD2 to SMD0 = 0012,
IICM = 0)
Factor of interrupt number
15 (Note 1) (Refer to Fig.
13.1.3.2.)
No acknowledgment
detection (NACK)
Rising edge of SCL2 9th bit
Factor of interrupt number
16 (Note 1) (Refer to Fig.
13.1.3.2.)
Start condition detection or stop condition detection
(Refer to Figure 13.1.3.2.1. STSPSEL Bit Function)
UART2 transmission
output delay
Functions of P70 pin
Noise filter width
Read RxD2 and SCL2 pin
levels
Factor of interrupt number
10 (Note 1) (Refer to Fig.
13.1.3.2.)
Acknowledgment detection
(ACK)
Rising edge of SCL2 9th bit
Initial value of TxD2 and
SDA2 outputs
UART2 transmission
Transmission started or
completed (selected by U2IRS)
UART2 reception
When 8th bit received
CKPOL = 0 (rising edge)
CKPOL = 1 (falling edge)
Not delayed
TxD2 output
RxD2 input
CLK2 input or output selected
15ns
Possible when the
corresponding port direction bit
= 0
CKPOL = 0 (H)
CKPOL = 1 (L)
Delayed
SDA2 input/output
SCL2 input/output
(Cannot be used in I2C mode)
Initial and end values of
SCL2
H
200ns
Always possible no matter how the corresponding port direction bit is set
The value set in the port register before setting I2C bus mode (Note 2)
Timing for transferring data
from the UART reception
shift register to the U2RB
register
IICM2 = 0
(NACK/ACK interrupt)
IICM2 = 1
(UART transmit/ receive interrupt)
CKPH = 1
(Clock delay)
CKPH = 1
(Clock delay)
UART2 transmission
Rising edge of
SCL2 9th bit
UART2 transmission
Falling edge of SCL2
next to the 9th bit
UART2 transmission
Falling edge of SCL2 9th bit
CKPOL = 0 (rising edge)
CKPOL = 1 (falling edge)
Rising edge of SCL2 9th bit
Falling edge of
SCL2 9th bit
Falling and rising
edges of SCL2 9th
bit
.
DMA1 factor (Refer to Fig.
14.1.3.2.)
UART2 reception
Acknowledgment detection
(ACK)
UART2 reception
Falling edge of SCL2 9th bit
Store received data
1st to 8th bits are stored in
U2RB register bit 0 to bit 7
1st to 8th bits are stored in
U2RB register bit 7 to bit 0
1st to 7th bits are stored in U2RB register
bit 6 to bit 0, with 8th bit stored in U2RB
register bit 8
L
Read U2RB register
Bit 6 to bit 0 as bit 7
to bit 1, and bit 8 as
bit 0 (Note 4)
Read received data
U2RB register status is read
directly as is
CKPH = 0
(No clock delay)
CKPH = 0
(No clock delay)
H
L
1st to 8th bits are
stored in U2RB
register bit 7 to bit 0
(Note 3)
Functions of P71 pin
Functions of P72 pin
Note 1: If the source or cause of any interrupt is changed, the IR bit in the interrupt control register for the changed
interrupt may inadvertently be set to 1 (interrupt requested). (Refer to “Notes on interrupts” in Precautions.)
If one of the bits shown below is changed, the interrupt source, the interrupt timing, etc. change. Therefore,
always be sure to clear the IR bit to 0 (interrupt not requested) after changing those bits.
SMD2 to SMD0 bits in the U2MR register, IICM bit in the U2SMR register,
IICM2 bit in the U2SMR2 register, CKPH bit in the U2SMR3 register
Note 2: Set the initial value of SDA2 output while the SMD2 to SMD0 bits in the U2MR register is set to ‘0002’ (serial I/O
disabled).
Note 3: Second data transfer to U2RB register (Rising edge of SCL2 9th bit)
Note 4. First data transfer to U2RB register (Falling edge of SCL2 9th bit)
Table 13.1.3.4. I2C bus Mode Functions