
ML51/ML54/ML56
Sep. 01, 2020
Page
550
of 719
Rev 2.00
ML
51
/ML
54
/ML
5
6 S
E
RI
E
S
TECHNI
CA
L
RE
F
E
R
E
NC
E
M
A
NU
A
L
ML51/M
L54
/M
L56
Series
Tec
hnical Reference
Manual
6.12.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 EI2C 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.
6.12.6 Register Description
There are five Register Description to interface the I
2
C bus including I2CnCON, I2CnSTAT, I2CnDAT,
I2CnADDRx, and I2CnCLK. These registers provide protocol control, status, data transmitting and
receiving functions, and clock rate configuration. For application flexibility. The following registers
relate to I
2
C function.