an2548

所属分类:Windows编程
开发工具:C/C++
文件大小:235KB
下载次数:18
上传日期:2009-05-08 09:22:49
上 传 者weijr
说明:  stm103-contexm3 内核编程:基于ST官方网站的DMA例程
(stm103-contexm3 core Programming: Based on the official website of ST' s DMA routines)

文件列表:
STM32F10x_DMA_AN\DMA_AN (0, 2007-10-08)
STM32F10x_DMA_AN\DMA_AN\Example1 (0, 2007-10-08)
STM32F10x_DMA_AN\DMA_AN\Example1\EWARM (0, 2007-10-08)
STM32F10x_DMA_AN\DMA_AN\Example1\EWARM\cortexm3_macro.s (9356, 2007-10-08)
STM32F10x_DMA_AN\DMA_AN\Example1\EWARM\DMA_AN_Example1.ewd (15576, 2007-10-08)
STM32F10x_DMA_AN\DMA_AN\Example1\EWARM\DMA_AN_Example1.ewp (23596, 2007-10-08)
STM32F10x_DMA_AN\DMA_AN\Example1\EWARM\DMA_AN_Example1.eww (169, 2007-10-08)
STM32F10x_DMA_AN\DMA_AN\Example1\EWARM\lnkarm_flash.xcl (7677, 2007-10-08)
STM32F10x_DMA_AN\DMA_AN\Example1\EWARM\stm32f10x_vector.c (3415, 2007-10-08)
STM32F10x_DMA_AN\DMA_AN\Example1\main.c (11121, 2007-10-08)
STM32F10x_DMA_AN\DMA_AN\Example1\RIDE (0, 2007-10-08)
STM32F10x_DMA_AN\DMA_AN\Example1\RIDE\cortexm3_macro.s (9720, 2007-10-08)
STM32F10x_DMA_AN\DMA_AN\Example1\RIDE\DMA_AN_Example1.rapp (5871, 2007-10-08)
STM32F10x_DMA_AN\DMA_AN\Example1\RIDE\DMA_AN_Example1.rprj (332, 2007-10-08)
STM32F10x_DMA_AN\DMA_AN\Example1\RIDE\stm32f10x_vector.c (7084, 2007-10-08)
STM32F10x_DMA_AN\DMA_AN\Example1\RVMDK (0, 2007-10-08)
STM32F10x_DMA_AN\DMA_AN\Example1\RVMDK\cortexm3_macro.s (9403, 2007-10-08)
STM32F10x_DMA_AN\DMA_AN\Example1\RVMDK\DMA_AN_Example1.Opt (2927, 2007-10-08)
STM32F10x_DMA_AN\DMA_AN\Example1\RVMDK\DMA_AN_Example1.Uv2 (3387, 2007-10-08)
STM32F10x_DMA_AN\DMA_AN\Example1\RVMDK\FLASH.ini (963, 2007-10-08)
STM32F10x_DMA_AN\DMA_AN\Example1\RVMDK\stm32f10x_vector.s (8571, 2007-10-08)
STM32F10x_DMA_AN\DMA_AN\Example1\stm32f10x_conf.h (5564, 2007-10-08)
STM32F10x_DMA_AN\DMA_AN\Example1\stm32f10x_it.c (24389, 2007-10-08)
STM32F10x_DMA_AN\DMA_AN\Example1\stm32f10x_it.h (3272, 2007-10-08)
STM32F10x_DMA_AN\DMA_AN\Example2 (0, 2007-10-08)
STM32F10x_DMA_AN\DMA_AN\Example2\EWARM (0, 2007-10-08)
STM32F10x_DMA_AN\DMA_AN\Example2\EWARM\cortexm3_macro.s (9356, 2007-10-08)
STM32F10x_DMA_AN\DMA_AN\Example2\EWARM\DMA_AN_Example2.ewd (15576, 2007-10-08)
STM32F10x_DMA_AN\DMA_AN\Example2\EWARM\DMA_AN_Example2.ewp (23596, 2007-10-08)
STM32F10x_DMA_AN\DMA_AN\Example2\EWARM\DMA_AN_Example2.eww (169, 2007-10-08)
STM32F10x_DMA_AN\DMA_AN\Example2\EWARM\lnkarm_flash.xcl (7677, 2007-10-08)
STM32F10x_DMA_AN\DMA_AN\Example2\EWARM\stm32f10x_vector.c (3415, 2007-10-08)
STM32F10x_DMA_AN\DMA_AN\Example2\main.c (9447, 2007-10-08)
STM32F10x_DMA_AN\DMA_AN\Example2\RIDE (0, 2007-10-08)
STM32F10x_DMA_AN\DMA_AN\Example2\RIDE\cortexm3_macro.s (9720, 2007-10-08)
STM32F10x_DMA_AN\DMA_AN\Example2\RIDE\DMA_AN_Example2.rapp (5775, 2007-10-08)
STM32F10x_DMA_AN\DMA_AN\Example2\RIDE\DMA_AN_Example2.rprj (332, 2007-10-08)
STM32F10x_DMA_AN\DMA_AN\Example2\RIDE\stm32f10x_vector.c (7084, 2007-10-08)
... ...

/******************** (C) COPYRIGHT 2007 STMicroelectronics ******************** * File Name : readme.txt * Author : MCD Application Team * Version : V1.0 * Date : 10/08/2007 * Description : Description of the AN2548 Application note's Example1. ******************************************************************************** * THE PRESENT SOFTWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. * AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, * INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE * CONTENT OF SUCH SOFTWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING * INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. *******************************************************************************/ Example description =================== This example describes how to use the ADC and DMA to transfer continuously converted data from ADC to a data buffer. The data is used for internal computation (peak value is computed and data is normalized - a simple Automatic Gain Control algorithm) and then transfered through a high speed SPI, using another DMA channel. The ADC is configured to converts continuously ADC1 channel14. Each time an end of conversion occurs the DMA transfers, in circular mode, the converted data from ADC1 DR register to the ADC_ConvertedValue data array. The ADC1 clock is set to 14 MHz. When half of the data buffer is available, we parses the array and normalises the values in the array (the peak value is set to 0xFFFF). Once the normalisation is completed, the SPI is used to send the results externally. Directory contents ================== stm32f10x_conf.h Library Configuration file stm32f10x_it.c Interrupt handlers stm32f10x_it.h Interrupt handlers header file main.c Main program Hardware environment ==================== - Connect a variable power supply 0-3.3V to ADC1 Channel14 mapped on pin PC.04 (potentiometer RV1 on STM3210B-EVAL board) How to use it ============= + RVMDK - Open the DMA_AN_Example1.uv2 project - Rebuild all files: Project->Rebuild all target files - Load project image: Debug->Start/Stop Debug Session - Run program: Debug->Run (F5) + RIDE - Open the DMA_AN_Example1.rprj project - Rebuild all files: Project->Build Project - Load project image: Debug->start - Run program: Debug->Run(ctrl+F9) + EWARM - Open the DMA_AN_Example1.eww workspace. - Rebuild all files: Project->Rebuild all - Load project image: Project->Debug - Run program: Debug->Go(F5) ******************* (C) COPYRIGHT 2007 STMicroelectronics *****END OF FILE******

近期下载者

相关文件


收藏者