【E1184】STM32H743 DFSDM+ADC代码

2021-09-14 07:49:40      索炜达电子      1320     

项目编号:E1184

文件大小:1.5M

源码说明:带中文注释

开发环境:C编译器

简要概述:

其实总体不难,难的是从0开始。。
其中ADC部分需要注意就以下配置,当然也可以不连续转换。。。。把数据传到DFSDM就行。同时需要注意是ADC1对应DFSDM通道0 .ADC2对应通道1

【E1184】STM32H743 DFSDM+ADC代码

然后配置好滤波器长度和类型就好。。

【E1184】STM32H743 DFSDM+ADC代码

这是测试结果,可以明显看出DFSDM通道过滤出来的AD数据确实很稳定。。。(左边是ADC正常采集数据,右边是通过DFSDM滤波出的数据)

【E1184】STM32H743 DFSDM+ADC代码

目录│文件列表:

 └ STM32H743_DFSDM_ADC

    └ STM32H743_DFSDM_ADC

       │ keilkilll.bat

       │ readme.txt

       ├ CORE

       │  │ cmsis_armcc.h

       │  │ cmsis_armclang.h

       │  │ cmsis_compiler.h

       │  │ core_cm7.h

       │  └ startup_stm32h743xx.s

       ├ HALLIB

       │  └ STM32H7xx_HAL_Driver

       │     ├ Inc

       │     │  │ stm32h7xx_hal.h

       │     │  │ stm32h7xx_hal_adc.h

       │     │  │ stm32h7xx_hal_adc_ex.h

       │     │  │ stm32h7xx_hal_cec.h

       │     │  │ stm32h7xx_hal_comp.h

       │     │  │ stm32h7xx_hal_conf_template.h

       │     │  │ stm32h7xx_hal_cortex.h

       │     │  │ stm32h7xx_hal_crc.h

       │     │  │ stm32h7xx_hal_crc_ex.h

       │     │  │ stm32h7xx_hal_cryp.h

       │     │  │ stm32h7xx_hal_cryp_ex.h

       │     │  │ stm32h7xx_hal_dac.h

       │     │  │ stm32h7xx_hal_dac_ex.h

       │     │  │ stm32h7xx_hal_dcmi.h

       │     │  │ stm32h7xx_hal_def.h

       │     │  │ stm32h7xx_hal_dfsdm.h

       │     │  │ stm32h7xx_hal_dma.h

       │     │  │ stm32h7xx_hal_dma2d.h

       │     │  │ stm32h7xx_hal_dma_ex.h

       │     │  │ stm32h7xx_hal_eth.h

       │     │  │ stm32h7xx_hal_eth_ex.h

       │     │  │ stm32h7xx_hal_fdcan.h

       │     │  │ stm32h7xx_hal_flash.h

       │     │  │ stm32h7xx_hal_flash_ex.h

       │     │  │ stm32h7xx_hal_gpio.h

       │     │  │ stm32h7xx_hal_gpio_ex.h

       │     │  │ stm32h7xx_hal_hash.h

       │     │  │ stm32h7xx_hal_hash_ex.h

       │     │  │ stm32h7xx_hal_hcd.h

       │     │  │ stm32h7xx_hal_hrtim.h

       │     │  │ stm32h7xx_hal_hsem.h

       │     │  │ stm32h7xx_hal_i2c.h

       │     │  │ stm32h7xx_hal_i2c_ex.h

       │     │  │ stm32h7xx_hal_i2s.h

       │     │  │ stm32h7xx_hal_i2s_ex.h

       │     │  │ stm32h7xx_hal_irda.h

       │     │  │ stm32h7xx_hal_irda_ex.h

       │     │  │ stm32h7xx_hal_iwdg.h

       │     │  │ stm32h7xx_hal_jpeg.h

       │     │  │ stm32h7xx_hal_lptim.h

       │     │  │ stm32h7xx_hal_ltdc.h

       │     │  │ stm32h7xx_hal_mdios.h

       │     │  │ stm32h7xx_hal_mdma.h

       │     │  │ stm32h7xx_hal_mmc.h

       │     │  │ stm32h7xx_hal_mmc_ex.h

       │     │  │ stm32h7xx_hal_nand.h

       │     │  │ stm32h7xx_hal_nor.h

       │     │  │ stm32h7xx_hal_opamp.h

       │     │  │ stm32h7xx_hal_opamp_ex.h

       │     │  │ stm32h7xx_hal_pcd.h

       │     │  │ stm32h7xx_hal_pcd_ex.h

       │     │  │ stm32h7xx_hal_pwr.h

       │     │  │ stm32h7xx_hal_pwr_ex.h

       │     │  │ stm32h7xx_hal_qspi.h

       │     │  │ stm32h7xx_hal_rcc.h

       │     │  │ stm32h7xx_hal_rcc_ex.h

       │     │  │ stm32h7xx_hal_rng.h

       │     │  │ stm32h7xx_hal_rtc.h

       │     │  │ stm32h7xx_hal_rtc_ex.h

       │     │  │ stm32h7xx_hal_sai.h

       │     │  │ stm32h7xx_hal_sai_ex.h

       │     │  │ stm32h7xx_hal_sd.h

       │     │  │ stm32h7xx_hal_sdram.h

       │     │  │ stm32h7xx_hal_sd_ex.h

       │     │  │ stm32h7xx_hal_smartcard.h

       │     │  │ stm32h7xx_hal_smartcard_ex.h

       │     │  │ stm32h7xx_hal_smbus.h

       │     │  │ stm32h7xx_hal_spdifrx.h

       │     │  │ stm32h7xx_hal_spi.h

       │     │  │ stm32h7xx_hal_spi_ex.h

       │     │  │ stm32h7xx_hal_sram.h

       │     │  │ stm32h7xx_hal_swpmi.h

       │     │  │ stm32h7xx_hal_tim.h

       │     │  │ stm32h7xx_hal_tim_ex.h

       │     │  │ stm32h7xx_hal_uart.h

       │     │  │ stm32h7xx_hal_uart_ex.h

       │     │  │ stm32h7xx_hal_usart.h

       │     │  │ stm32h7xx_hal_usart_ex.h

       │     │  │ stm32h7xx_hal_wwdg.h

       │     │  │ stm32h7xx_ll_delayblock.h

       │     │  │ stm32h7xx_ll_fmc.h

       │     │  │ stm32h7xx_ll_sdmmc.h

       │     │  │ stm32h7xx_ll_usb.h

       │     │  └ Legacy

       │     │     └ stm32_hal_legacy.h

       │     └ Src

       │        │ stm32h7xx_hal.c

       │        │ stm32h7xx_hal_adc.c

       │        │ stm32h7xx_hal_adc_ex.c

       │        │ stm32h7xx_hal_cec.c

       │        │ stm32h7xx_hal_comp.c

       │        │ stm32h7xx_hal_cortex.c

       │        │ stm32h7xx_hal_crc.c

       │        │ stm32h7xx_hal_crc_ex.c

       │        │ stm32h7xx_hal_cryp.c

       │        │ stm32h7xx_hal_cryp_ex.c

       │        │ stm32h7xx_hal_dac.c

       │        │ stm32h7xx_hal_dac_ex.c

       │        │ stm32h7xx_hal_dcmi.c

       │        │ stm32h7xx_hal_dfsdm.c

       │        │ stm32h7xx_hal_dma.c

       │        │ stm32h7xx_hal_dma2d.c

       │        │ stm32h7xx_hal_dma_ex.c

       │        │ stm32h7xx_hal_eth.c

       │        │ stm32h7xx_hal_eth_ex.c

       │        │ stm32h7xx_hal_fdcan.c

       │        │ stm32h7xx_hal_flash.c

       │        │ stm32h7xx_hal_flash_ex.c

       │        │ stm32h7xx_hal_gpio.c

       │        │ stm32h7xx_hal_hash.c

       │        │ stm32h7xx_hal_hash_ex.c

       │        │ stm32h7xx_hal_hcd.c

       │        │ stm32h7xx_hal_hrtim.c

       │        │ stm32h7xx_hal_hsem.c

       │        │ stm32h7xx_hal_i2c.c

       │        │ stm32h7xx_hal_i2c_ex.c

       │        │ stm32h7xx_hal_i2s.c

       │        │ stm32h7xx_hal_i2s_ex.c

       │        │ stm32h7xx_hal_irda.c

       │        │ stm32h7xx_hal_iwdg.c

       │        │ stm32h7xx_hal_jpeg.c

       │        │ stm32h7xx_hal_lptim.c

       │        │ stm32h7xx_hal_ltdc.c

       │        │ stm32h7xx_hal_mdios.c

       │        │ stm32h7xx_hal_mdma.c

       │        │ stm32h7xx_hal_mmc.c

       │        │ stm32h7xx_hal_mmc_ex.c

       │        │ stm32h7xx_hal_nand.c

       │        │ stm32h7xx_hal_nor.c

       │        │ stm32h7xx_hal_opamp.c

       │        │ stm32h7xx_hal_opamp_ex.c

       │        │ stm32h7xx_hal_pcd.c

       │        │ stm32h7xx_hal_pcd_ex.c

       │        │ stm32h7xx_hal_pwr.c

       │        │ stm32h7xx_hal_pwr_ex.c

       │        │ stm32h7xx_hal_qspi.c

       │        │ stm32h7xx_hal_rcc.c

       │        │ stm32h7xx_hal_rcc_ex.c

       │        │ stm32h7xx_hal_rng.c

       │        │ stm32h7xx_hal_rtc.c

       │        │ stm32h7xx_hal_rtc_ex.c

       │        │ stm32h7xx_hal_sai.c

       │        │ stm32h7xx_hal_sai_ex.c

       │        │ stm32h7xx_hal_sd.c

       │        │ stm32h7xx_hal_sdram.c

       │        │ stm32h7xx_hal_sd_ex.c

       │        │ stm32h7xx_hal_smartcard.c

       │        │ stm32h7xx_hal_smartcard_ex.c

       │        │ stm32h7xx_hal_smbus.c

       │        │ stm32h7xx_hal_spdifrx.c

       │        │ stm32h7xx_hal_spi.c

       │        │ stm32h7xx_hal_spi_ex.c

       │        │ stm32h7xx_hal_sram.c

       │        │ stm32h7xx_hal_swpmi.c

       │        │ stm32h7xx_hal_tim.c

       │        │ stm32h7xx_hal_tim_ex.c

       │        │ stm32h7xx_hal_uart.c

       │        │ stm32h7xx_hal_uart_ex.c

       │        │ stm32h7xx_hal_usart.c

       │        │ stm32h7xx_hal_wwdg.c

       │        │ stm32h7xx_ll_delayblock.c

       │        │ stm32h7xx_ll_fmc.c

       │        │ stm32h7xx_ll_sdmmc.c

       │        └ stm32h7xx_ll_usb.c

       ├ HARDWARE

       │  ├ ADC

       │  │  │ adc.c

       │  │  └ adc.h

       │  ├ DFSDM

       │  │  │ dfsdm.c

       │  │  └ dfsdm.h

       │  ├ KEY

       │  │  │ key.c

       │  │  └ key.h

       │  ├ LED

       │  │  │ led.c

       │  │  └ led.h

       │  ├ MPU

       │  │  │ mpu.c

       │  │  └ mpu.h

       │  ├ SDRAM

       │  │  │ sdram.c

       │  │  └ sdram.h

       │  └ TIMER

       │     │ timer.c

       │     └ timer.h

       ├ OBJ

       │  └ Template.hex

       ├ SYSTEM

       │  ├ delay

       │  │  │ delay.c

       │  │  └ delay.h

       │  ├ sys

       │  │  │ sys.c

       │  │  └ sys.h

       │  └ usart

       │     │ usart.c

       │     └ usart.h

       ├ USER

       │  │ ADC.uvguix.ZKHW

       │  │ ADC.uvoptx

       │  │ ADC.uvprojx

       │  │ EventRecorderStub.scvd

       │  │ JLinkSettings.ini

       │  │ main.c

       │  │ main.h

       │  │ stm32h743xx.h

       │  │ stm32h7xx.h

       │  │ stm32h7xx_hal_conf.h

       │  │ stm32h7xx_hal_msp.c

       │  │ stm32h7xx_it.c

       │  │ stm32h7xx_it.h

       │  │ system_stm32h7xx.c

       │  │ system_stm32h7xx.h

       │  └ DebugConfig

       │     └ ADC_STM32H743IITx_1.1.0.dbgconf

       └ USMART

          │ readme.txt

          │ usmart.c

          │ usmart.h

          │ usmart_config.c

          │ usmart_str.c

          └ usmart_str.h

TAGSTM32H743
  • 21 次
  • 1 分