stm32-fft

所属分类:处理器开发
开发工具:Visual C++
文件大小:3366KB
下载次数:931
上传日期:2011-07-20 09:55:16
上 传 者bootleggers
说明:  使用STM32的DSP库函数,对AD来的信号进行FFT变换,并显示到LCD屏上。做的是512点fft,显示240个数,且有一定的精度保证。具有很高的实时性。
(Use the STM32 DSP library functions, the signal of the AD to the FFT transform, and display to the LCD screen. Do is 512 points fft, show the number 240, and there is a certain guarantee of accuracy. With real-time high.)

文件列表:
ADC11 (0, 2011-07-09)
ADC11\ADC.Opt (4936, 2011-07-09)
ADC11\ADC.Uv2 (3746, 2011-06-20)
ADC11\ADC_Opt.Bak (4936, 2011-07-04)
ADC11\ADC_STM32-FD-ADC.dep (15705, 2011-07-09)
ADC11\ADC_Uv2.Bak (3689, 2011-05-19)
ADC11\cr4_fft_256_stm32.s (14141, 2011-05-09)
ADC11\FWlib (0, 2011-06-20)
ADC11\FWlib\inc (0, 2011-06-20)
ADC11\FWlib\inc\misc.h (4951, 2009-04-06)
ADC11\FWlib\inc\stm32f10x_adc.h (19585, 2009-08-31)
ADC11\FWlib\inc\stm32f10x_bkp.h (7373, 2009-04-06)
ADC11\FWlib\inc\stm32f10x_can.h (14289, 2009-04-06)
ADC11\FWlib\inc\stm32f10x_conf.h (3213, 2009-04-06)
ADC11\FWlib\inc\stm32f10x_crc.h (1980, 2009-04-06)
ADC11\FWlib\inc\stm32f10x_dac.h (10271, 2011-07-01)
ADC11\FWlib\inc\stm32f10x_dbgmcu.h (2980, 2009-04-06)
ADC11\FWlib\inc\stm32f10x_dma.h (18790, 2009-04-06)
ADC11\FWlib\inc\stm32f10x_exti.h (5833, 2011-01-01)
ADC11\FWlib\inc\stm32f10x_flash.h (14446, 2009-04-06)
ADC11\FWlib\inc\stm32f10x_fsmc.h (17276, 2009-09-01)
ADC11\FWlib\inc\stm32f10x_gpio.h (15221, 2009-09-04)
ADC11\FWlib\inc\stm32f10x_i2c.h (16923, 2009-04-06)
ADC11\FWlib\inc\stm32f10x_iwdg.h (3677, 2009-04-06)
ADC11\FWlib\inc\stm32f10x_nvic.h (19194, 2011-05-10)
ADC11\FWlib\inc\stm32f10x_pwr.h (4201, 2009-04-06)
ADC11\FWlib\inc\stm32f10x_rcc.h (16258, 2009-04-06)
ADC11\FWlib\inc\stm32f10x_rtc.h (3659, 2009-04-06)
ADC11\FWlib\inc\stm32f10x_sdio.h (18598, 2009-04-06)
ADC11\FWlib\inc\stm32f10x_spi.h (14896, 2009-04-06)
ADC11\FWlib\inc\stm32f10x_tim.h (48768, 2009-04-06)
ADC11\FWlib\inc\stm32f10x_type.h (3189, 2011-05-09)
ADC11\FWlib\inc\stm32f10x_usart.h (14483, 2009-04-06)
ADC11\FWlib\inc\stm32f10x_wwdg.h (2785, 2009-04-06)
ADC11\FWlib\SRC (0, 2011-06-20)
ADC11\FWlib\SRC\misc.c (6874, 2009-04-06)
ADC11\FWlib\SRC\stm32f10x_adc.c (46634, 2009-04-06)
ADC11\FWlib\SRC\stm32f10x_bkp.c (8248, 2009-04-06)
ADC11\FWlib\SRC\stm32f10x_can.c (30960, 2009-04-06)
ADC11\FWlib\SRC\stm32f10x_crc.c (3340, 2009-04-06)
... ...

1设计要求 利用ADC的第11通道对开发板输入的电压值作AD转换,采用连续转换模式,转换结果通过DMA通 道1读取。ADC转换的结果,每间隔1秒钟向串口发送一次。 2 硬件电路设计 在开发板上通用I/O口PC.01与XS10相连,将PC.01映射到ADC第11通道,即可实现利用ADC_IN11 对输入电压作AD转换。 3软件程序设计 根据设计任务要求,软件程序主要包括: (1) 配置GPIO口,将PC.01配置为ADC的第11采样通道;将配置GPIO中PA.09和PA.10根引脚为串口输入输出。 (2) 设置ADC,将ADC_IN11设置为连续转换模式; (3) 配置DMA通道1用于ADC_IN14传输转换的结果; (4) 配置串口及相关发送功能; (5) 每隔1S向串口输出AD转换结果。 4 运行过程 (1) 使用Keil uVision3 通过JLINK仿真器连接开发板,使用串口线,连接实验板 上的UART1(XS5)和PC机的串口,打开实验例程目录下的STM32-FD-ADC.Uv2例程,编译链接工程; (2) 在PC机上运行windows自带的超级终端串口通信程序(波特率115200、1位停止位、无校验位、无硬件流 控制);或者使用其它串口通信程序; (3) 点击MDK 的Debug菜单,点击Start/Stop Debug Session; (4) 旋转电位器RV1,可以看到串口输出数值不断变化,正常显示结果如下所示。 usart1 print AD_value -------------------------- The current AD value = 0x0425 The current AD value = 0x0423 The current AD value = 0x0421 The current AD value = 0x0422 The current AD value = 0x0420 The current AD value = 0x0416 The current AD value = 0x03B6 The current AD value = 0x0841 The current AD value = 0x08C3 The current AD value = 0x08C0 The current AD value = 0x08BE The current AD value = 0x09E9 The current AD value = 0x0A12 The current AD value = 0x0ACA The current AD value = 0x0B0D The current AD value = 0x0B10 The current AD value = 0x0B0E .... ....

近期下载者

相关文件


收藏者