전자부품 데이터시트 검색엔진
  Korean  ▼
ALLDATASHEET.CO.KR

X  

STM8S 데이터시트(PDF) 330 Page - STMicroelectronics

부품명 STM8S
상세설명  STM8S Series and STM8AF Series 8-bit microcontrollers
PDF  467 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
제조업체  STMICROELECTRONICS [STMicroelectronics]
홈페이지  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

STM8S 데이터시트(HTML) 330 Page - STMicroelectronics

Back Button STM8S Datasheet HTML 326Page - STMicroelectronics STM8S Datasheet HTML 327Page - STMicroelectronics STM8S Datasheet HTML 328Page - STMicroelectronics STM8S Datasheet HTML 329Page - STMicroelectronics STM8S Datasheet HTML 330Page - STMicroelectronics STM8S Datasheet HTML 331Page - STMicroelectronics STM8S Datasheet HTML 332Page - STMicroelectronics STM8S Datasheet HTML 333Page - STMicroelectronics STM8S Datasheet HTML 334Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 330 / 467 page
background image
Universal asynchronous receiver transmitter (UART)
RM0016
330/467
DocID14587 Rev 14
Single byte communication
Clearing the TXE bit is always performed by a write to the data register.
The TXE bit is set by hardware and it indicates:
The data has been moved from TDR to the shift register and the data transmission has
started.
The TDR register is empty.
The next data can be written in the UART_DR register without overwriting the previous
data.
This flag generates an interrupt if the TIEN bit is set.
When a transmission is taking place, a write instruction to the UART_DR register stores the
data in the TDR register. The data is copied in the shift register at the end of the current
transmission.
When no transmission is taking place, a write instruction to the UART_DR register places
the data directly in the shift register, the data transmission starts, and the TXE bit is
immediately set.
If a frame transmission is complete (after the stop bit) and the TXE bit is set, the TC bit is
set. An interrupt is generated if the TCIEN is set in the UART_CR2 register. After writing the
last data in the UART_DR register, it is mandatory to wait until TC is set to ‘1’ before
entering Halt mode or disabling the UART (see Figure 116: TC/TXE behavior when
transmitting).
The following software sequence is required to clear the TC bit:
1.
Read from the UART_SR register
2.
Write to the UART_DR register
Figure 116. TC/TXE behavior when transmitting
1. This example assumes that several other transmissions occur after TE has been set.
Note:
The TC bit can also be cleared by writing a ‘0’ to it. This clear sequence is recommended
only for multibuffer communication.
TX line
USART_DR
F2
TC flag
F3
because TXE=0
software waits until TC=1
TC is set because
TXE=1
set
Idle preamble
by hardware
F1
software
enables the
USART
TC is not set
because TXE=0
TXE flag
software waits until TXE=1
and writes F1 into DR
software waits until TXE=1
and writes F3 into DR
software waits until TXE=1
and writes F2 into DR
Frame 1
Frame 2
Frame 3
set by hardware
set by hardware
cleared by software
set by hardware
cleared by software
TC is not set
ai17121d



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


데이터시트 다운로드

Go To PDF Page


링크 URL



ALLDATASHEET 가 귀하에 도움이 되셨나요?  [ DONATE ] 

Alldatasheet는?   |   광고문의   |   운영자에게 연락하기   |   개인정보취급방침   |   링크 투 데이터시트    |   링크교환   |   제조사별 검색
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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