SN32F280 Series
32-Bit Cortex-M0 Micro-Controller
SONiX TECHNOLOGY CO., LTD
Page 168
Version 1.1
A data byte has been received while the I2C is in the addressed
slave receiver mode.
1
NACK
Assert NACK flag. HW will clear after issuing NACK automatically.
0: No function
1: An NACK will be returned during the acknowledge clock pulse on SCLn
when
A data byte has been received while the I2C is in the master
receiver mode.
R/W
0
0
Reserved
R
0
14.7.2 I2C n Status register (I2Cn_STAT) (n=0,1)
Address Offset: 0x04
Check this register when I2C interrupt occurs, and all status will be cleared automatically by writing I2Cn_CTRL or
I2Cn_TXDATA register.
While I2CIF =1, the low period of the serial clock on the SCL line is stretched, and the serial transfer is suspended.
When SCL is HIGH, it is unaffected by the state of I2CIF.
Following events will trigger I2C interrupt if I2C interrupt is enabled in NVIC interrupt controller.
START/Repeat START condition
STOP condition
Timeout
Data byte transmitted or received
ACK Transmit or received
NACK Transmit or received
Bit
Name
Description
Attribute
Reset
31:16
Reserved
R
0
15
I2CIF
I2C Interrupt flag.
0: I2C status doesn’t change.
1: Read
I2C status changes.
Write
Clear this flag.
R/W
0
14:10
Reserved
R
0
9
TIMEOUT
Time-out status
0: No Timeout
1: Timeout
R
0
8
LOST_ARB
Lost arbitration
0: Not lost arbitration
1: Lost arbitration
R
0
7
SLV_TX_HIT
0: No matched slave address.
1: Slave address hit, and is called for TX in slave mode.
R
0
6
SLV_RX_HIT
0: No matched slave address.
1: Slave address hit, and is called for RX in slave mode.
R
0
5
MST
Master/Slave status
0: I2C is in Slave state.
1: I2C is in Master state.
R
0
4
START_DN
Start done status
0: No START bit.
1: MASTER mode
a START bit was issued.
SLAVE mode
a START bit was received.
R
0
3
STOP_DN
Stop done status
0: No STOP bit.
1: MASTER mode
a STOP condition was issued.
SLAVE mode
a STOP condition was received.
R
0
2
NACK_STAT
NACK done status
0 : Not received a NACK
1 : Received a NACK
R
0
1
ACK_STAT
ACK done status
0 : Not received an ACK
1 : Received an ACK
R
0
0
RX_DN
RX done status
0: No RX with ACK/NACK transfer.
R
0
Содержание SN32F280 Series
Страница 222: ...SN32F280 Series 32 Bit Cortex M0 Micro Controller SONiX TECHNOLOGY CO LTD Page 222 Version 1 1 A1D16...
Страница 263: ...SN32F280 Series 32 Bit Cortex M0 Micro Controller SONiX TECHNOLOGY CO LTD Page 263 Version 1 1 26 2 LQFP 64 PIN...
Страница 264: ...SN32F280 Series 32 Bit Cortex M0 Micro Controller SONiX TECHNOLOGY CO LTD Page 264 Version 1 1 26 3 LQFP 48 PIN...