AT32WB415
Series Reference Manual
2022.04.13
Page 132
Ver 2.00
0: The data is being transferred from the DT register to the
shift register (the data is still loaded with the data at this
point.)
1: The data has been moved from the DT register to the
shift register. The data register is empty now.
This flag is set when the DT register is empty, and cleared
when writing to the DT register.
Note: The TDBE bit is not cleared by writing the first data
to be transmitted, or by writing data when the TDC is set,
since the data register is still empty at this time.
Bit 6
RDBF
0x0
ro
Receive data buffer full flag
0: Data register is empty.
1: Data register is full (data received)
This flag is cleared when the DT register is read.
The RDBF bit is not set at ARLOST event.
Bit 5
Reserved
0x0
resd
Kept at its default value.
Bit 4
STOPF
0x0
ro
Stop condition generation complete flag
0: No Stop condition is detected.
1: Stop condition is detected.
This bit is set by hardware when a Stop condition is
detected on the bus by the slave if ACKEN=1.
It is cleared by reading STS1 register followed by writing
to the CTRL1 register.
Bit 3
ADDRHF
0x0
ro
Master 9~8 bit address head match flag
0: Master 9~8 bit address head mismatch
1: Master 9~8 bit address head match
Set by hardware when the first byte is sent by master in
10-bit address mode.
Cleared by a write to the CTRL1 register after the STS1
register is read by software, or by hardware when PEN=0.
Note: The ADDR10 bit is not set after a NACK reception.
Bit 2
TDC
0x0
ro
Data transfer complete flag
0: Data transfer is not completed yet (the shift register still
holds data)
1: Data transfer is completed (shift register is empty)
This bit is cleared automatically by read or write access to
the DT reginser, or when a Start or Stop condition is
received.
When STRETCH=0
In reception mode, when a new byte (including ACK pulse)
is received and the data register is not read yet (RDBF=1)
In transmission mode, when a new byte is sent and the
data register is not written yet (TDBE=1)
The TDC is set under both conditions.
Bit 1
ADDR7F
0x0
ro
0~7 bit address match flag
0: Address is not sent in host ode or received in slave
mode
1: Address is sent in host mode or address is received in
slave mode.
Cleared by read access to STS2 register after the software
reads STS1 register.
Note: the ADDR7F bit is not set after a NACK reception.
Bit 0
STARTF
0x0
ro
Start condition generation complete flag
0: No Start condition is generated.
1: Start condition is generated.
Cleared by write access to the DT register after the