công cụ tìm kiếm bảng dữ liệu linh kiện điện tử
  Vietnamese  ▼
ALLDATASHEET.VN

X  

AN3117 bảng dữ liệu(PDF) 21 Page - STMicroelectronics

tên linh kiện AN3117
Giải thích chi tiết về linh kiện  This application note describes how to use the direct memory access
PDF  28 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
nhà sản xuất  STMICROELECTRONICS [STMicroelectronics]
Trang chủ  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN3117 bảng dữ liệu(HTML) 21 Page - STMicroelectronics

Back Button 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 AN3117 Datasheet HTML 24Page - STMicroelectronics AN3117 Datasheet HTML 25Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 21 / 28 page
background image
AN3117
DMA programming examples
Doc ID 16846 Rev 4
21/28
4.4
DMA transfer examples in low power mode
4.4.1
DMA transfer example in Wait for event (WFE) mode
This example uses the DMA peripheral in circular mode to transfer data from the USARTx
peripheral to the RAM memory. When the user sends a character using USARTx, it is
transferred to a specific RAM buffer using the DMA.
Figure 6.
DMA transfer example in WFE mode
The DMA event is provided by the USARTx_RX.
After configuring USART DMA Channel RX to transfer 4 bytes of data from the USARTx
data register to a RAM buffer, the MCU enters WFE mode.
As long as no “DMA transfer complete” event has occurred, the MCU is in WFE mode. As
soon as the “DMA transfer complete” event occurs, the MCU returns to Run mode and
executes a specific action (activate/deactivate LEDs) depending on the data in the RAM
buffer. The MCU is then returned to WFE mode by software. Since USART DMA Channel
RX is configured in circular mode, the same procedure is repeated indefinitely.
The code for this example is provided in the STM8L05x/STM8L15x/STM8L16x/STM8AL31x/
STM8AL3Lx standard peripheral library package.
Note:
USART DMA Channel RX can be DMA channel 2 or DMA channel 3 respectively for
USART1 and USART2.
GPIO
STM8 core
USARTx
Channel RX
DMA
source
System
bus
DMA1 bus
ai17421c
char 01
char 02
char 03
char 04
DMA
destination
USART DMA1
USARTx_DR
RAM bus
LEDs
Peripheral bus



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


bảng dữ liệu tải về

Go To PDF Page


Link URL



Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không?  [ DONATE ] 

Alldatasheet là   |   Quảng cáo   |   Liên lạc với chúng tôi   |   Chính sách bảo mật   |   Liên kết đến bảng dữ liệu    |   Trao đổi link   |   Tìm kiếm theo nhà sản xuất
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