Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

AN3117 Datasheet(PDF) 10 Page - STMicroelectronics

Part # AN3117
Description  This application note describes how to use the direct memory access
PDF  28 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN3117 Datasheet(HTML) 10 Page - STMicroelectronics

Back Button AN3117 Datasheet HTML 6Page - STMicroelectronics AN3117 Datasheet HTML 7Page - STMicroelectronics AN3117 Datasheet HTML 8Page - STMicroelectronics AN3117 Datasheet HTML 9Page - STMicroelectronics AN3117 Datasheet HTML 10Page - STMicroelectronics AN3117 Datasheet HTML 11Page - STMicroelectronics AN3117 Datasheet HTML 12Page - STMicroelectronics AN3117 Datasheet HTML 13Page - STMicroelectronics AN3117 Datasheet HTML 14Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 10 / 28 page
background image
Performance considerations
AN3117
10/28
Doc ID 16846 Rev 4
2
Performance considerations
The DMA controller performs direct memory transfers by sharing the address and data bus
with the STM8™ core. DMA requests may stop CPU accesses to the bus during some bus
cycles, when the CPU and the DMA are both targeting memory and peripheral. The
arbitration is performed inside the STM8 core.
In addition, the DMA controller can signal to the STM8 core that the current access must
have priority over the CPU. There are two ways to do this:
●
The application specifies the timeout duration (number of wait cycles starting from the
latest request) by configuring TO[5:0] bits in the DMA_GCSR register. The DMA then
waits until this timeout has elapsed before requesting from the core a high priority
access to the bus.
●
The application configures a channel so that it always takes priority over the CPU.
Refer to Section 4.6: DMA channel priority transfer example for more details.
2.1
DMA latency
Three operations are required to perform a DMA data transfer from peripheral to RAM (for
example SPI reception):
1.
DMA request arbitration and address computation
2.
Reading data from the peripheral (DMA source)
3.
Writing loaded data in RAM (DMA destination)
When transferring data from RAM to peripheral (for example SPI transmission), the
operations are performed in the opposite order:
1.
DMA request arbitration and address computation
2.
Reading data from RAM memory (DMA source)
3.
Writing data to the peripheral
The service time per channel for 8-bit data transfer, tS, is given by the equation below:
t
S
t
A
t
ACC
t
RAM
++
=
where:
●
tA is the arbitration and address computation time
tA = 1 system clock cycle
●
tACC is the peripheral access time
tACC = 1 system clock cycle
●
tRAM is the RAM read or write access time
tRAM = 1 system clock cycle
As a result, the total latency for 8-bit data transfer is 3 system clock cycles.



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


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
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