поискавой системы для электроныых деталей
  Russian  ▼
ALLDATASHEETRU.COM

X  

RM0312 датащи(PDF) 230 Page - STMicroelectronics

номер детали RM0312
подробное описание детали  STM8TL5xxx microcontroller family
PDF  275 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
производитель  STMICROELECTRONICS [STMicroelectronics]
домашняя страница  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

RM0312 датащи(HTML) 230 Page - STMicroelectronics

Back Button RM0312 Datasheet HTML 226Page - STMicroelectronics RM0312 Datasheet HTML 227Page - STMicroelectronics RM0312 Datasheet HTML 228Page - STMicroelectronics RM0312 Datasheet HTML 229Page - STMicroelectronics RM0312 Datasheet HTML 230Page - STMicroelectronics RM0312 Datasheet HTML 231Page - STMicroelectronics RM0312 Datasheet HTML 232Page - STMicroelectronics RM0312 Datasheet HTML 233Page - STMicroelectronics RM0312 Datasheet HTML 234Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 230 / 275 page
background image
Universal synchronous/asynchronous receiver transmitter (USART)
RM0312
230/275
DocID022352 Rev 3
Procedure
1.
Program the M bit in USART_CR1 to define the word length.
2.
Program the number of STOP bits in USART_CR3.
3.
Select the desired baud rate by programming the baud rate registers in the following
order:
a)
USART_BRR2
b)
USART_BRR1
4.
Set the TEN bit in USART_CR2 to enable transmitter mode.
5.
Write the data to send in the USART_DR register (this clears the TXE bit). Repeat this
for each data to be transmitted in case of single buffer.
6.
Once the last data is written to the USART_DR register, wait until TC is set to ‘1’, which
indicates that the last data transmission is complete. This last step is required, for
instance, to avoid last data transmission corruption when disabling the USART or
entering Halt mode.
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 USART_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 USART_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 USART_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 USART_CR2 register. After writing
the last data into the USART_DR register, it is mandatory to wait until TC is set to ‘1’ before
entering Halt mode or disabling the USART (see Figure 84: TC/TXE behavior when
transmitting).
Clearing the TC bit is performed by the following software sequence:
1.
A read to the USART_SR register
2.
A write to the USART_DR register
Note:
The TC bit can also be cleared by writing a ‘0’ to it. This clearing sequence is recommended
only for multibuffer communication.



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



Вашему бизинису помогли Аллдатащит?  [ DONATE ] 

Что такое Аллдатащит   |   реклама   |   контакт   |   Конфиденциальность   |   Ссылка на техническое описание    |   обмен ссыками   |   поиск по производителю
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