![Geehy SEMICONDUCTOR APM32F030x4x6x8xC Скачать руководство пользователя страница 290](http://html1.mh-extra.com/html/geehy-semiconductor/apm32f030x4x6x8xc/apm32f030x4x6x8xc_user-manual_573629290.webp)
www.geehy.com Page 289
Field
Name
R/W
Description
I2CEN=0.
6
TXCFLG
R
Transmit Data Complete Flag
0: Transmit data is not completed
1: Transmit data is completed
This bit can be set to 1 by hardware when RELOADEN=0, ENDCFG=0
and NUMBYT data have been transmitted; be cleared when START=1
or STOP=1; or be cleared by hardware when I2CEN=0.
7
TXCRFLG
R
Transfer Complete Reload Flag
0: Transmission is completed
1: Transmission is completed to reload
This bit can be set to 1 by hardware when RELOADEN=1 and NUMBYT
data have been transmitted; it can be cleared by software by writing a
non-zero value to NUMBYT; or be cleared by hardware when I2CEN=0.
This bit works only in master mode, or in slave mode when SBCEN=1.
8
BERRFLG
R
Bus Error Flag
0: No bus error
1: Bus error occurred
This bit can be set to 1 by hardware when wrong start bit or stop bit is
detected; be cleared by software by setting BERRCLR bit; or be cleared
by hardware when I2CEN=0.
9
ALFLG
R
Arbitration Lost Flag
0: No arbitration loss
1: Arbitration loss occurred
This bit can be set to 1 by hardware when bus arbitration loss occurs; be
cleared by software by setting ALCLR bit; or be cleared by hardware
when I2CEN=0.
10
OVRURFLG
R
Overrun/Underrun Flag
0: No overrun/underrun
1: Overrun/Underrun occurs
This bit can be set to 1 by hardware if overrun/underrun error occurs in
slave mode when CLKSTRETCHD=1; be cleared by software by setting
OVRURCLR bit; and be cleared by hardware when I2CEN=0.
11
PECEFLG
R
PEC Error in Reception Flag
0: No PEC error
1: PEC error occurs
This bit can be set to 1 by hardware when the received PEC value does
not match the value of PEC register. A NACK will be transmitted
automatically when wrong PEC is received. This bit can be cleared by
software by setting PECECLR bit; and be cleared by hardware when
I2CEN=0. If SMBus mode is not supported, this bit will be reserved and
be forced to 0 by hardware.
12
TTEFLG
R
Timeout or Tlow Error Flag
0: No timeout error
1: Timeout error occurs
This bit can be set to 1 by hardware when timeout or external clock
timeout occurs; be cleared by software by setting TTECLR bit; and be
cleared by hardware when I2CEN=0. If SMBus mode is not supported,
this bit will be reserved and be forced to 0 by hardware.
13
SMBALTFLG
R
SMBus Alert Occur Flag
0: No SMBus alarm
1: SMBus alarm occurred
This bit can be set to 1 by hardware if HADDREN=1 (configured by
SMBus HOST) and ALTEN=1, and SMBALERT falling edge is detected
on SMBALERT pin; be cleared by software by setting SMBALTCLR bit;
and be cleared by hardware when I2CEN=0. If SMBus mode is not
supported, this bit will be reserved and be forced to 0 by hardware.
14
Reserved
15
BUSBSYFLG
R
Bus Busy Flag
0: The bus is idle (no communication)