USART_SR, clearing sequence of: IDLE, ORE, NF, FE, PE. A silicon level analysis.
Applies to: STM32L100xx, STM32L151xx, STM32L152xx, STM32L162xx.
Hi,
in order to write robust drivers, I'm kindly asking a few questions to developers who are into the silicon design. This is the 1st:
ref. RM0038 Reference manual Rev 18, paragraph 27.6.1 Status register (USART_SR) vaguely says that error flag(s):
"It is cleared by a software sequence (a read to the USART_SR register followed by a read to the USART_DR register)."
which of the following describes the real case:
0) "It is cleared by a read to USARTx_DR which happens AFTER a read to USARTx_SR, without any other access in between to the USARTx memory space*."
1) "It is cleared by a read to USARTx_DR which happens AFTER a read to USARTx_SR, without any other access in between to the APBx* linked to the USARTx."
2) ???
(*) see 2.3 Memory map - Table 5. Register boundary addresses
Thank you very much in advance.
