![Geehy SEMICONDUCTOR APM32F405 Series Скачать руководство пользователя страница 355](http://html1.mh-extra.com/html/geehy-semiconductor/apm32f405-series/apm32f405-series_user-manual_573630355.webp)
www.geehy.com Page 354
Field
Name
R/W
Description
This bit can be cleared by writing 0 by software; or be cleared by
hardware when I2CEN=0.
15
SMBALTFLG RC_W0
SMBus Alert Occur Flag
0: SMBus master mode, without alarm;
SMBus slave mode, without alarm, SMBAlert pin level unchanged
1: SMBus master mode, with an alarm generated on the pin;
SMBus slave mode, receiving an alarm, causing SMBAlert pin
level to become low
This bit can be set to 1 by hardware; this bit can be cleared after
the software writes 0; when I2CEN=0, it can be cleared by
hardware.
State register 2 (I2C_STS2)
Offset address: 0x18
Reset value: 0x0000
Field
Name
R/W
Description
0
MSFLG
R
Master Slave Mode Flag
0: Slave mode
1: Master mode
This bit can be set to 1 by hardware when I2C is configured as
master mode;
This bit can be cleared by hardware when one of the following
conditions is met:
(1) Stop bit is generated
(2) Bus arbitration is lost
(3) I2CEN=0
1
BUSBSYFLG
R
Bus Busy Flag
0: The bus is idle (no communication)
1: The bus is busy (in the progress of communication)
This bit can be set to 1 by hardware when SDA or SCL is at low
level; cleared by hardware after the stop bit is generated.
2
TRFLG
R
Transmitter / Receiver Mode Flag
0: The device is in receiver mode (read)
1: The device is in transmitter mode (write)
Decide the bit value according to R/W bit;
This bit can be cleared by hardware when one of the following
conditions is met:
(1) Stop bit is generated
(2) Repeated start bit is generated
(3) Bus arbitration loss
(3) I2CEN=0
3
Reserved
4
GENCALLFLG
R
Slave Mode Received General Call Address Flag
0: Failed to receive the broadcast address
1: Received broadcast address
This bit can be set to 1 by hardware; and be cleared by
hardware when one of the following conditions is met: