| 전자부품 데이터시트 검색엔진 |
|
STM8S 데이터시트(PDF) 351 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
STM8S 데이터시트(HTML) 351 Page - STMicroelectronics |
|
351 / 467 page ![]() DocID14587 Rev 14 351/467 RM0016 Universal asynchronous receiver transmitter (UART) 377 Figure 131. Break detection in LIN mode vs framing error detection Response transmission (master is the publisher of the response) The response is composed of bytes with a standard UART format: 8-bit data, 1 stop bit, no parity. In order to send n data bytes, the application must repeat the following sequence n times: 1. Write data in UART_DR register 2. Wait for RXNE flag in UART_SR register 3. Check for readback value by reading the UART_DR register Response reception (master is the subscriber of the response) In order to receive n data bytes, the application must repeat following sequence n times: 1. Wait for the RXNE flag in the UART_SR register 2. Read the UART_DR register Discard response (slave to slave communication) In case of slave to slave communication and if the master does not need to check errors in the response, the application can ignore the RXNE flag till the next frame slot. The RXNE and OR flags should be cleared before starting the next Break transmission. Note: Receiving back a Break will also set the RXNE and FE flags before setting the LBDF flag. Therefore, if the RX interrupt is used, it's better to disable it (by clearing the RIEN bit in the UART_CR2 register) before sending the Break, to avoid an additional interrupt. In case of slave to slave communication, RIEN bit can be cleared once the header has been transmitted. |
|
링크 URL |
| ALLDATASHEET 가 귀하에 도움이 되셨나요? [ DONATE ] |
Alldatasheet는? | 광고문의 | 운영자에게 연락하기 | 개인정보취급방침 | 링크 투 데이터시트 | 링크교환 | 제조사별 검색 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |