| Electronic Components Datasheet Search |
|
AN3117 Datasheet(PDF) 10 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN3117 Datasheet(HTML) 10 Page - STMicroelectronics |
|
10 / 28 page ![]() 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. |
|
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 |
| 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 |