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

X  

AN3117 데이터시트(PDF) 22 Page - STMicroelectronics

부품명 AN3117
상세설명  This application note describes how to use the direct memory access
PDF  28 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
제조업체  STMICROELECTRONICS [STMicroelectronics]
홈페이지  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN3117 데이터시트(HTML) 22 Page - STMicroelectronics

Back Button 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 AN3117 Datasheet HTML 24Page - STMicroelectronics AN3117 Datasheet HTML 25Page - STMicroelectronics AN3117 Datasheet HTML 26Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 22 / 28 page
background image
DMA programming examples
AN3117
22/28
Doc ID 16846 Rev 4
4.4.2
DMA transfer example in Wait for interrupt (WFI) mode
This example uses the DMA peripheral to transfer data in exactly the same way as the WFE
example. The difference is that the treatment (LED activation/deactivation depending on the
data in the RAM buffer) is performed by the DMA transfer complete interrupt routine, without
returning to the main program.
The code for this example is provided in the STM8L05x/STM8L15x/STM8L16x/STM8AL31x/
STM8AL3Lx standard peripheral library package.
4.5
DMA transfer example with TIM1 in Burst mode
Figure 7.
DMA transfer example with TIM1 in Burst mode
This example uses the DMA peripheral in Burst mode to transfer data from the RAM
memory to TIM1. TIM1 is configured in pulse width modulation (PWM) output mode and
DMA channel 2 is configured to transfer data from the RAM memory to the TIM1 registers
(TIM1_PSCRH, TIM1_PSCRL, TIM1_ARRH, TIM1_ARRL, TIM1_RCR, TIM1_CCR1H,
TIM1_CCR1L). The goal of this data transfer is to update simultaneously TIM1 channel 1
frequency and duty cycle when an EXTI event triggered by the key button occurs.
The code for this example is provided in the STM8L05x/STM8L15x/STM8L16x/STM8AL31x/
STM8AL3Lx standard peripheral library package.
TIM1
DMA1
Channel 2
TIM1_DMAR
DMA
source
System
bus
Program bus
DMA
destination
ai17422
Data CR1
DMA1 bus
Data CR2
Data SMCR
Data ETR
Data OISR
TIM1_CR1
TIM1_CR2
TIM1_SMCR
TIM1_ETR
...
TIM1_OISR



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


데이터시트 다운로드

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