www
.mcu.com.cn
56
/
239
Rev.
1.00
CMS80F731x Reference Manual
6.4.3.4
SPI Interrupt Flag Bit Register SPSR
0xED
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
SPSR
SPISIF
WCOL
--
--
--
--
--
SSCEN
R/W
R
R
--
--
--
--
R/W
R/W
Reset value
0
0
0
0
0
0
0
0
Bit7
SPISIF:
SPI transmission completion interrupt flag bit, read-only;
1=
SPI transmission is completed (read SPSR first, then read/write SPDR and then clear zero);
0=
The SPI was not transmitted.
Bit6
WCOL:
SPI write violation interrupt flag bit, read-only;
1=
When the SPI transfer is not completed, a collision of the write SPDR operation occurs (read
the SPSR first, then clear the SPDR after reading/writing the SPDR);
0=
No write conflicts.
Bit5~Bit1
--
Reserved, must be 0.
Bit0
SSCEN:
SPI master mode NSS output control bit.
1=
When the SPI is idle, the NSS output is high;
0=
NSS output registers the contents of the SSCR.
6.4.3.5
I2C Master Mode Interrupt Flag Registers I2CMCR/I2CMSR
0xF5
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
I2CMCR
RSTS
--
--
--
ACK
STOP
START
RUN
I2CMSR
I2CMIF
BUS_BUSY
IDLE
ARB_LOST
DATA_ACK
ADDR_ACK
ERROR
BUSY
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Reset value
0
0
0
0
0
0
0
0
Bit7
RSTS:
I2C
master module reset control bit;
1=
Reset the master module (I2C
registers for the entire master module
, including I2CMSR);
0=
The interrupt flag bit in I2C master mode is clear to 0.
I2CMIF:
I2C Master mode interrupt flag bit;
1=
In master mode, send/receive completes, or a transmission error occurs. (Software zero, write 0
to clear);
0=
No interrupt was generated.
Bit6~Bit0
Controland flag bits in I2C master mode, see I2CM description for details.