Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

AN3117 Datasheet(PDF) 19 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) 19 Page - STMicroelectronics

Back Button AN3117 Datasheet HTML 15Page - STMicroelectronics AN3117 Datasheet HTML 16Page - STMicroelectronics AN3117 Datasheet HTML 17Page - STMicroelectronics AN3117 Datasheet HTML 18Page - STMicroelectronics AN3117 Datasheet HTML 19Page - STMicroelectronics AN3117 Datasheet HTML 20Page - STMicroelectronics AN3117 Datasheet HTML 21Page - STMicroelectronics AN3117 Datasheet HTML 22Page - STMicroelectronics AN3117 Datasheet HTML 23Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 19 / 28 page
background image
AN3117
DMA programming examples
Doc ID 16846 Rev 4
19/28
4.2
Peripheral to memory transfer example 1: transferring data
from the ADC to the RAM via multi channel acquisitions
This example uses the ADC peripheral to convert two ADC input voltage channels in scan
mode using DMA.
Figure 4.
Transferring data from the ADC to the RAM via multi channel acquisition
The DMA event is provided by the ADC_EOC event. Each time the ADC completes the
conversion of the first input channel, it sends the end of conversion request to the DMA. As
soon as the DMA receives the request, it transfers the ADC data register value to the RAM
buffer (position 01). During this time, the ADC completes the conversion of the second input
channel and sends another end of conversion request to DMA. This request enables the
transfer of the ADC data register values to the RAM buffer (position 02).
Since the ADC is configured in continuous mode and the DMA is configured in circular
mode, ADC acquisition and transfer to the RAM are repeated indefinitely.
The code for this example is provided in the STM8L05x/STM8L15x/STM8L16x/STM8AL31x/
STM8AL3Lx standard peripheral library package.
ADC
DMA1
Data 01 L
Data 02 H
ADC_DRH
Data 02 L
DMA
destination
ADC AIN_3
System
bus
RAM bus
DMA
source
ADC_DRL
Data 01 H
DMA1 bus
ADC AIN_24
ai17419b
Channel 0



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