công cụ tìm kiếm bảng dữ liệu linh kiện điện tử
  Vietnamese  ▼
ALLDATASHEET.VN

X  

AN4457 bảng dữ liệu(PDF) 16 Page - STMicroelectronics

tên linh kiện AN4457
Giải thích chi tiết về linh kiện  Implementing an emulated universal asynchronous receiver transmitter on STM32F4 microcontroller series
PDF  24 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
nhà sản xuất  STMICROELECTRONICS [STMicroelectronics]
Trang chủ  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN4457 bảng dữ liệu(HTML) 16 Page - STMicroelectronics

Back Button AN4457 Datasheet HTML 12Page - STMicroelectronics AN4457 Datasheet HTML 13Page - STMicroelectronics AN4457 Datasheet HTML 14Page - STMicroelectronics AN4457 Datasheet HTML 15Page - STMicroelectronics AN4457 Datasheet HTML 16Page - STMicroelectronics AN4457 Datasheet HTML 17Page - STMicroelectronics AN4457 Datasheet HTML 18Page - STMicroelectronics AN4457 Datasheet HTML 19Page - STMicroelectronics AN4457 Datasheet HTML 20Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 16 / 24 page
background image
Software description
AN4457
16/24
DocID026046 Rev 1
2.4
UART emulator peripherals and main functions
2.4.1
Peripheral settings
This section describes the configuration of the peripherals used inside the emulator.
•
GPIO
–
BSRR and IDR are used as destination and source registers for DMA transfers.
–
Two pins must be configured as input and output by the user application.
–
The input pin mode is configured as an EXTI line with falling edge detection.
•
DMA2
–
Channel 6 and stream 1 are used for transmission.
–
Channel 6 and stream 2 are used for reception.
–
The transfer is performed by words.
–
DMA transfer complete interrupt is used at the end of frame transfers.
•
Timer 1
–
Timer channel 1 is configured as capture compare for DMA transmit requests.
–
Timer channel 2 is configured as capture compare for DMA receive requests.
–
No clock division: CKD[1:0] =00.
–
No prescaler: PSC[15:0]=0.
•
SRAM
Four SRAM buffers are used to format data:
–
uint16_t pFirstBuffer_Tx[12] and uint16_t pSecondBuffer_Tx[12] are the buffers
for formatting data in transmission mode.
–
uint16_t pFirstBuffer_Rx[12], uint16_t pSecondBuffer_Rx[112 are the buffers for
formatting data in reception mode.
2.4.2
Initialization and configuration function
The initialization of the UART is performed by HAL_UART_Emul_Init function which allows
to:
•
setup the following UART parameters:
–
Baudrate
–
Frame length
–
Stop bit
–Parity.
•
enable clocks for all the peripherals used: Timer, DMA, GPIOs
•
configure the DMA: channel, stream, mode, TC interrupt,...
•
configure the Timer: channel, period,...



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


bảng dữ liệu tải về

Go To PDF Page


Link URL



Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không?  [ DONATE ] 

Alldatasheet là   |   Quảng cáo   |   Liên lạc với chúng tôi   |   Chính sách bảo mật   |   Liên kết đến bảng dữ liệu    |   Trao đổi link   |   Tìm kiếm theo nhà sản xuất
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