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

X  

AN4031 데이터시트(PDF) 30 Page - STMicroelectronics

부품명 AN4031
상세설명  Using the STM32F2 and STM32F4 DMA controller
PDF  36 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
제조업체  STMICROELECTRONICS [STMicroelectronics]
홈페이지  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN4031 데이터시트(HTML) 30 Page - STMicroelectronics

Back Button AN4031 Datasheet HTML 26Page - STMicroelectronics AN4031 Datasheet HTML 27Page - STMicroelectronics AN4031 Datasheet HTML 28Page - STMicroelectronics AN4031 Datasheet HTML 29Page - STMicroelectronics AN4031 Datasheet HTML 30Page - STMicroelectronics AN4031 Datasheet HTML 31Page - STMicroelectronics AN4031 Datasheet HTML 32Page - STMicroelectronics AN4031 Datasheet HTML 33Page - STMicroelectronics AN4031 Datasheet HTML 34Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 30 / 36 page
background image
How to predict DMA latencies
AN4031
30/36
DocID022648 Rev 1
3.2.2
SPI full duplex DMA transfer
This example is applicable to products STM32F2xx, STM32F405, STM32F407,
STM32F415, STM32F417, STM32F42x and STM32F43x, and is based on the SPI1
peripheral.
Two DMA requests are configured:
•
DMA2_Stream2 for SPI1_RX: this stream is configured to be the highest priority in
order to serve in time the SPI1 received data, and transfer it from the SPI1_DR register
to the SRAM buffer.
•
DMA2_Stream3 for SPI1_TX: this stream transfers data from the SRAM buffer to the
SPI1_DR register.
The AHB frequency is equal to the APB2 frequency (84 MHz) and SPI1 is configured to
operate at the maximum speed (42 MHz). DMA2_Stream2 (SPI1_RX) is triggered before
DMA2_Stream3 (SPI1_TX), which is triggered two AHB cycles later.
With this configuration, the CPU is polling infinitely on the I2C1_DR register. Knowing that
the I2C1 peripheral is mapped on APB1 and that the SPI1 peripheral is mapped on APB2,
the system paths are the following:
•
Direct path for DMA2 to access APB2 (not through bus matrix),
•
CPU accesses APB1 through bus matrix.
The aim is to demonstrate that the DMA timings are not impacted by the CPU polling on
APB1. The following figure summarizes the DMA timing for Transmit and Receive modes,
as well as the time scheduling for each operation:
Figure 16. SPI full duplex DMA transfer time



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


데이터시트 다운로드

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