MS51
Nov. 28, 2019
Page
422
of 491
Rev 1.00
MS51
32K
SE
RIES
TE
CHNICAL RE
F
EREN
CE MA
N
UAL
1
0
F
SYS
1/4
14-bit I
2
C Time-out Counter
I2TOF
Clear Counter
I2TOCEN
DIV
I2CEN
SI
Figure 6.11-14 I
2
C Time-Out Counter
6.11.5 I
2
C Interrupt
There are two I
2
C flags, SI and I2TOF. Both of them can generate an I
2
C event interrupt requests. If
I
2
C interrupt mask is enabled via setting EI
2
C and EA as 1, CPU will execute the I
2
C interrupt service
routine once any of these two flags is set. User needs to check flags to determine what event caused
the interrupt. Both of I
2
C flags are cleared by software.