
CH32V003
Reference Manual
V1.3
154
received byte will be lost; when in send mode, no
new data is written to the data register, and the
same byte will be sent twice.
0: No overrun or underrun events.
10
AF
RW0
Acknowledge failure bit.
Cleared by software
writing 0, or by hardware when PE=0.
1
:
Acknowledge failure.
0
:
No acknowledge failure.
0
9
ARLO
RW0
Arbitration lost bit.
Cleared by software writing
0, or by hardware when PE=0.
1
:
Arbitration Lost detected.
0
:
No Arbitration Lost detected.
0
8
BERR
RW0
Bus error bit. Cleared by software writing 0, or by
hardware when PE=0.
1
:
No misplaced Start or Stop condition.
0
:
No misplaced Start or Stop condition.
0
7
TxE
RO
Data register empty bit.
Cleared by software
writing to the DR register or by hardware after a
start or a stop condition or when PE=0.
1
:
Data register empty.
0
:
Data register not empty.
0
6
RxNE
RO
Data register not empty bit.
Cleared by software
reading or writing the DR register or by hardware
when PE=0.
1
:
Data register not empty.
0
:
Data register empty.
0
5
Reserved
RO Reserved
0
4
STOPF
RO
Stop detection bit.
Cleared by software reading
the SR1 register followed by a write in the CR1
register, or by hardware when PE=0
1
:
Set by hardware when a Stop condition is
detected on the bus by the slave after an
acknowledge (if ACK=1).
0
:
No Stop condition detected.
0
3
ADD10
RO
10-bit header sent bit.
Cleared by software
reading the SR1 register followed by a write in the
DR register of the second address byte, or by
hardware when PE=0.
1
:
Master has sent first address byte.
0
:
No ADD10 event occurred.
0
2
BTF
RO
Byte transfer finished bit.
Cleared by software
reading SR1 followed by either a read or write in
the DR register or by hardware after a start or a
stop condition in transmission or when PE=0.
1
:
Data byte transfer succeeded.
When
NOSTRETCH=0: when sending, when a new data
is sent and the data register has not yet been
written with new data; when receiving, when a
new byte is received but the data register has not
yet been read.
0
:
Data byte transfer not done.
0
1
ADDR
RW0
Address sent /matched bit.
This bit is cleared by
software reading SR1 register followed reading
SR2, or by hardware when PE=0.
In Master mode:
1
:
End of address transmission.
For 10-bit
addressing, the bit is set after the ACK of the 2nd
0