stm32_FFT2

所属分类:DSP编程
开发工具:Visual C++
文件大小:2543KB
下载次数:403
上传日期:2011-12-25 11:07:01
上 传 者voncaesar
说明:  使用STM32 的DSP库进行FFT变换,此为程序代码,很好,适合初学者
(Using the STM32 DSP library for FFT, this is the program code, good for beginners )

文件列表:
FFT2\Debug\listing\cr4_fft_1024_stm32.lst (92160, 2011-12-16)
FFT2\Debug\listing\cr4_fft_256_stm32.lst (47368, 2011-12-16)
FFT2\Debug\listing\cr4_fft_64_stm32.lst (35595, 2011-12-16)
FFT2\Debug\listing\FFT2.map (103758, 2011-12-25)
FFT2\Debug\listing\startup_stm32f10x_cl.lst (64109, 2011-12-16)
FFT2\Debug\output\bsp.crf (290976, 2011-12-16)
FFT2\Debug\output\bsp.d (1208, 2011-12-16)
FFT2\Debug\output\bsp.o (314796, 2011-12-16)
FFT2\Debug\output\bsp.__i (503, 2011-12-16)
FFT2\Debug\output\core_cm3.crf (3556, 2011-12-16)
FFT2\Debug\output\core_cm3.d (134, 2011-12-16)
FFT2\Debug\output\core_cm3.o (10640, 2011-12-16)
FFT2\Debug\output\core_cm3.__i (544, 2011-12-16)
FFT2\Debug\output\cr4_fft_1024_stm32.d (103, 2011-12-16)
FFT2\Debug\output\cr4_fft_1024_stm32.o (6488, 2011-12-16)
FFT2\Debug\output\cr4_fft_1024_stm32._ia (327, 2011-12-16)
FFT2\Debug\output\cr4_fft_256_stm32.d (101, 2011-12-16)
FFT2\Debug\output\cr4_fft_256_stm32.o (3408, 2011-12-16)
FFT2\Debug\output\cr4_fft_256_stm32._ia (323, 2011-12-16)
FFT2\Debug\output\cr4_fft_64_stm32.d (99, 2011-12-16)
FFT2\Debug\output\cr4_fft_64_stm32.o (2624, 2011-12-16)
FFT2\Debug\output\cr4_fft_64_stm32._ia (319, 2011-12-16)
FFT2\Debug\output\dsp_asm.crf (300003, 2011-12-16)
FFT2\Debug\output\dsp_asm.d (1446, 2011-12-16)
FFT2\Debug\output\dsp_asm.o (325580, 2011-12-16)
FFT2\Debug\output\dsp_asm.__i (524, 2011-12-16)
FFT2\Debug\output\dsp_g2.crf (298232, 2011-12-16)
FFT2\Debug\output\dsp_g2.d (1330, 2011-12-16)
FFT2\Debug\output\dsp_g2.o (319268, 2011-12-16)
FFT2\Debug\output\dsp_g2.__i (520, 2011-12-16)
FFT2\Debug\output\FFT2.axf (645568, 2011-12-25)
FFT2\Debug\output\fft2.crf (9218, 2011-12-16)
FFT2\Debug\output\fft2.d (155, 2011-12-16)
FFT2\Debug\output\FFT2.htm (91467, 2011-12-25)
FFT2\Debug\output\FFT2.lnp (1041, 2011-12-25)
FFT2\Debug\output\fft2.o (14456, 2011-12-16)
FFT2\Debug\output\FFT2.plg (1353, 2011-12-25)
FFT2\Debug\output\FFT2.sct (479, 2011-12-16)
FFT2\Debug\output\FFT2.tra (3128, 2011-12-25)
FFT2\Debug\output\fft2.__i (512, 2011-12-16)
... ...

/** @page ADC_3ADCs_DMA ADC_3ADCs_DMA @verbatim ******************** (C) COPYRIGHT 2010 STMicroelectronics ******************* * @file ADC/3ADCs_DMA/readme.txt * @author MCD Application Team * @version V3.3.0 * @date 04/16/2010 * @brief Description of the 3ADCs DMA example. ****************************************************************************** * THE PRESENT FIRMWARE 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 FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. ****************************************************************************** @endverbatim @par Example Description This example describes how to use the 3 ADCs in independent conversions. Two of them; ADC1 and ADC3 are transferring continuously converted data using DMA while ADC2 converted data are stored using End of conversion interrupt. ADC1 is configured to convert continuously ADC channel14. Each time an end of conversion occurs the DMA1 transfers, in circular mode, the converted data from ADC1 DR register to the ADC1_ConvertedValue variable. ADC2 is configured to convert continuously ADC channel13. Each time an end of conversion occurs an end of conversion interrupt is generated and inside the interrupt routine the converted data are read from ADC2 DR register and stored into the ADC2_ConvertedValue variable. ADC3 is configured to convert continuously ADC channel12. Each time an end of conversion occurs the DMA2 transfers, in circular mode, the converted data from ADC3 DR register to the ADC3_ConvertedValue variable. The ADCs clocks are set to 14 MHz. The result of ADC1, ADC2 and ADC3 conversion is monitored through the three variables: ADC1ConvertedValue, ADC2ConvertedValue and ADC3ConvertedValue. @par Directory contents - ADC/3ADCs_DMA/stm32f10x_conf.h Library Configuration file - ADC/3ADCs_DMA/stm32f10x_it.c Interrupt handlers - ADC/3ADCs_DMA/stm32f10x_it.h Interrupt handlers header file - ADC/3ADCs_DMA/system_stm32f10x.c STM32F10x system source file - ADC/3ADCs_DMA/main.c Main program @par Hardware and Software environment - This example runs only on STM32F10x High-Density and XL-Density Devices. - This example has been tested with STMicroelectronics STM3210E-EVAL (High-Density and XL-Density) evaluation board and can be easily tailored to any other supported device and development board. - STM3210E-EVAL Set-up - Connect a variable power supply 0-3.3V to ADC3 Channel12 mapped on pin PC.02 - Connect a variable power supply 0-3.3V to ADC2 Channel13 mapped on pin PC.03 - Connect a variable power supply 0-3.3V to ADC1 Channel14 mapped on pin PC.04 (potentiometer RV1 on STM3210E-EVAL board) @par How to use it ? In order to make the program work, you must do the following : - Create a project and setup all project configuration - Add the required Library files : - stm32f10x_adc.c - stm32f10x_dma.c - stm32f10x_gpio.c - stm32f10x_rcc.c - misc.c - Edit stm32f10x.h file to select the device you are working on. - Use STM32F10x system source file "system_stm32f10x.c" provided with this example. @b Tip: You can tailor the provided project template to run this example, for more details please refer to "stm32f10x_stdperiph_lib_um.chm" user manual; select "Peripheral Examples" then follow the instructions provided in "How to proceed" section. - Link all compiled files and load your image into target memory - Run the example @note - Low-density Value line devices are STM32F100xx microcontrollers where the Flash memory density ranges between 16 and 32 Kbytes. - Low-density devices are STM32F101xx, STM32F102xx and STM32F103xx microcontrollers where the Flash memory density ranges between 16 and 32 Kbytes. - Medium-density Value line devices are STM32F100xx microcontrollers where the Flash memory density ranges between *** and 128 Kbytes. - Medium-density devices are STM32F101xx, STM32F102xx and STM32F103xx microcontrollers where the Flash memory density ranges between *** and 128 Kbytes. - High-density devices are STM32F101xx and STM32F103xx microcontrollers where the Flash memory density ranges between 256 and 512 Kbytes. - XL-density devices are STM32F101xx and STM32F103xx microcontrollers where the Flash memory density ranges between 512 and 1024 Kbytes. - Connectivity line devices are STM32F105xx and STM32F107xx microcontrollers. *

© COPYRIGHT 2010 STMicroelectronics

*/

近期下载者

相关文件


收藏者