ST STM32F100 Series Reference Manual page 593

Advanced arm-based 32-bit mcus
Hide thumbs Also See for STM32F100 Series:
Table of Contents

Advertisement

RM0041
Bit 7 TxE: Data register empty (transmitters)
– Set when DR is empty in transmission. TxE is not set during address phase.
– Cleared by software writing to the DR register or by hardware after a start or a stop condition
Note: TxE is not cleared by writing the first data being transmitted, or by writing data when
Bit 6 RxNE: Data register not empty (receivers)
– Set when data register is not empty in receiver mode. RxNE is not set during address phase.
– Cleared by software reading or writing the DR register or by hardware when PE=0.
Note: RxNE is not cleared by reading data when BTF is set, as the data register is still full.
Bit 5 Reserved, must be kept at reset value
Bit 4 STOPF: Stop detection (slave mode)
– Set by hardware when a Stop condition is detected on the bus by the slave after an
– Cleared by software reading the SR1 register followed by a write in the CR1 register, or by
Note: The STOPF bit is not set after a NACK reception.
Bit 3 ADD10: 10-bit header sent (Master mode)
– Set by hardware when the master has sent the first byte in 10-bit address mode.
– Cleared by software reading the SR1 register followed by a write in the DR register of the
Note: ADD10 bit is not set after a NACK reception
Bit 2 BTF: Byte transfer finished
– Set by hardware when NOSTRETCH=0 and:
– In reception when a new byte is received (including ACK pulse) and DR has not been read
– In transmission when a new byte should be sent and DR has not been written yet (TxE=1).
– Cleared by software reading SR1 followed by either a read or write in the DR register or by
Note: The BTF bit is not set after a NACK reception
0: Data register not empty
1: Data register empty
or when PE=0.
TxE is not set if either a NACK is received, or if next byte to be transmitted is PEC (PEC=1)
BTF is set, as in both cases the data register is still empty.
0: Data register empty
1: Data register not empty
RxNE is not set in case of ARLO event.
0: No Stop condition detected
1: Stop condition detected
acknowledge (if ACK=1).
hardware when PE=0
It is recommended to perform the complete clearing sequence (READ SR1 then
WRITE CR1) after the STOPF is set. Refer to
0: No ADD10 event occurred.
1: Master has sent first address byte (header).
second address byte, or by hardware when PE=0.
0: Data byte transfer not done
1: Data byte transfer succeeded
yet (RxNE=1).
hardware after a start or a stop condition in transmission or when PE=0.
The BTF bit is not set if next byte to be transmitted is the PEC (TRA=1 in I2C_SR2
register and PEC=1 in I2C_CR1 register)
Inter-integrated circuit (I2C) interface
RM0041 Rev 6
Figure
236.
593/709
598

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32F100 Series and is the answer not in the manual?

Questions and answers

Table of Contents