| поискавой системы для электроныых деталей |
|
RM0312 датащи(PDF) 231 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
RM0312 датащи(HTML) 231 Page - STMicroelectronics |
|
231 / 275 page ![]() DocID022352 Rev 3 231/275 RM0312 Universal synchronous/asynchronous receiver transmitter (USART) 249 Figure 84. TC/TXE behavior when transmitting 1. This example assumes that several other transmissions occurred after TE has been set. Otherwise an IDLE preamble would be transmitted first when writing to USART_DR for the first time. Break character Setting the SBK bit transmits a break character. The break frame length depends on the M bit (see Figure 82). If the SBK bit is set to ‘1’ a break character is sent on the USART_TX line after completing the current character transmission. This bit is reset by hardware when the break character is completed (during the STOP bit of the break character).The USART inserts a logic 1 bit at the end of the last break frame to guarantee the recognition of the start bit of the next frame. Note: The break character is sent without taking into account the number of STOP bits. If the USART is programmed with 2 STOP bits, the Tx line is pulled low until the end of the first STOP bit only. Then 2 logic 1 bits are inserted before the next character. Note: If the software resets the SBK bit before the start of break transmission, the break character is not transmitted. For two consecutive breaks, the SBK bit should be set after the STOP bit of the previous break. Idle character Setting the TEN bit drives the USART to send an idle frame before the first data frame. 21.3.3 Receiver The USART can receive data words of either 8 or 9 bits. When the M bit is set, word length is 9 bits and the MSB is stored in the R8 bit in the USART_CR1 register. Start bit detection In the USART, the start bit is detected when a specific sequence of samples is recognized. This sequence is: 1 1 1 0 X 0 X 0X 0X 0 X 0X 0. The start bit detection sequence shown in Figure 85. TX line USART_DR Frame 1 TXE flag F2 TC flag F3 Frame 2 Software waits until TXE = 1 and writes F2 into DR Software waits until TXE = 1 and writes F3 into DR TC is not set because TXE = 0 Software waits until TC = 1 Frame 3 TC is set because TXE = 1 Set by hardware and cleared by software Set by hardware and cleared by software Set by hardware Set Idle preamble by hardware F1 Software enables the USART TC is not set because TXE = 0 Software waits until TXE = 1 and writes F1 into DR ai17121c TC is cleared by software sequence |
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю 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 |