【STM32】标准库-多重ADC-外部触发-DMA传输-多通道-规则同步-自动注入

上传者: 45607873 | 上传时间: 2023-02-21 22:25:07 | 文件大小: 605KB | 文件类型: ZIP
采用STM32F429IGT6单片机,KeilMDK5.32版本 使用SysTick系统滴答定时器进行延时 LED_R、LED_G、LED_B分别为PH10,PH11,PH12 Key1为PA0,Key2为PC13 KEIL5下载配置有FLASH与SRAM ADC1和ADC2规则同步模式,使用通道4和通道6,PA4和PA6(配置为模拟模式),开启扫描模式,使用DMA传输,采用外部触发ADC转换,触发源为TIM3的TRGO事件,TIM3的TRGO事件来源于其更新事件,TIM3每200ms更新一次,也就是ADC每200ms采样一次, 使用ADC1的规则通道和注入通道,采样的规则通道数为2,注入通道数为1,序列为 通道4(PA4),通道6(PA6),通道4 使用ADC2的规则通道和注入通道,采样的规则通道数为2,注入通道数为1,序列为 通道6(PA6),通道4(PA4),通道6 开启ADC2的注入通道转换完成中断,在中断服务函数中讲ADC的数据输出 注意点:如果需要ADC转换完成中断,最好使用DMA的传输完成中断代替

文件下载

资源详情

[{"title":"( 120 个子文件 605KB ) 【STM32】标准库-多重ADC-外部触发-DMA传输-多通道-规则同步-自动注入","children":[{"title":"main.c <span style='color:#111;'> 3.19KB </span>","children":null,"spread":false},{"title":"stm32f4xx_conf.h <span style='color:#111;'> 5.24KB </span>","children":null,"spread":false},{"title":"stm32f4xx_it.h <span style='color:#111;'> 1.70KB </span>","children":null,"spread":false},{"title":"system_stm32f4xx.c <span style='color:#111;'> 59.12KB </span>","children":null,"spread":false},{"title":"main.h <span style='color:#111;'> 2.40KB </span>","children":null,"spread":false},{"title":"stm32f4xx_it.c <span style='color:#111;'> 7.79KB </span>","children":null,"spread":false},{"title":"stm32f4xx.h <span style='color:#111;'> 918.35KB </span>","children":null,"spread":false},{"title":"core_cm4.h <span style='color:#111;'> 111.72KB </span>","children":null,"spread":false},{"title":"startup_stm32f429_439xx.s <span style='color:#111;'> 30.04KB </span>","children":null,"spread":false},{"title":"system_stm32f4xx.h <span style='color:#111;'> 1.71KB </span>","children":null,"spread":false},{"title":"core_cmSimd.h <span style='color:#111;'> 22.41KB </span>","children":null,"spread":false},{"title":"core_cmFunc.h <span style='color:#111;'> 17.89KB </span>","children":null,"spread":false},{"title":"core_cmInstr.h <span style='color:#111;'> 27.25KB </span>","children":null,"spread":false},{"title":"ADC.h <span style='color:#111;'> 452B </span>","children":null,"spread":false},{"title":"TIM.h <span style='color:#111;'> 282B </span>","children":null,"spread":false},{"title":"Bitband.h <span style='color:#111;'> 1.95KB </span>","children":null,"spread":false},{"title":"CRC.h <span style='color:#111;'> 186B </span>","children":null,"spread":false},{"title":"LED.h <span style='color:#111;'> 267B </span>","children":null,"spread":false},{"title":"USART.h <span style='color:#111;'> 833B </span>","children":null,"spread":false},{"title":"KEY&EXTI.h <span style='color:#111;'> 244B </span>","children":null,"spread":false},{"title":"LED.c <span style='color:#111;'> 610B </span>","children":null,"spread":false},{"title":"KEY&EXTI.c <span style='color:#111;'> 1.80KB </span>","children":null,"spread":false},{"title":"TIM.c <span style='color:#111;'> 8.88KB </span>","children":null,"spread":false},{"title":"ADC.c <span style='color:#111;'> 8.61KB </span>","children":null,"spread":false},{"title":"USART.c <span style='color:#111;'> 6.52KB </span>","children":null,"spread":false},{"title":"CRC.c <span style='color:#111;'> 123B </span>","children":null,"spread":false},{"title":"stm32f4xx_fmpi2c.h <span style='color:#111;'> 18.31KB </span>","children":null,"spread":false},{"title":"stm32f4xx_rcc.h <span style='color:#111;'> 49.42KB </span>","children":null,"spread":false},{"title":"stm32f4xx_ltdc.h <span style='color:#111;'> 20.22KB </span>","children":null,"spread":false},{"title":"stm32f4xx_syscfg.h <span style='color:#111;'> 13.56KB </span>","children":null,"spread":false},{"title":"stm32f4xx_dfsdm.h <span style='color:#111;'> 44.74KB </span>","children":null,"spread":false},{"title":"stm32f4xx_cryp.h <span style='color:#111;'> 13.67KB </span>","children":null,"spread":false},{"title":"stm32f4xx_hash.h <span style='color:#111;'> 9.38KB </span>","children":null,"spread":false},{"title":"stm32f4xx_fmc.h <span style='color:#111;'> 43.40KB </span>","children":null,"spread":false},{"title":"stm32f4xx_flash_ramfunc.h <span style='color:#111;'> 2.73KB </span>","children":null,"spread":false},{"title":"stm32f4xx_dma2d.h <span style='color:#111;'> 18.77KB </span>","children":null,"spread":false},{"title":"stm32f4xx_rtc.h <span style='color:#111;'> 39.50KB </span>","children":null,"spread":false},{"title":"stm32f4xx_spi.h <span style='color:#111;'> 20.21KB </span>","children":null,"spread":false},{"title":"stm32f4xx_dbgmcu.h <span style='color:#111;'> 3.73KB </span>","children":null,"spread":false},{"title":"misc.h <span style='color:#111;'> 6.29KB </span>","children":null,"spread":false},{"title":"stm32f4xx_qspi.h <span style='color:#111;'> 19.28KB </span>","children":null,"spread":false},{"title":"stm32f4xx_can.h <span style='color:#111;'> 26.73KB </span>","children":null,"spread":false},{"title":"stm32f4xx_iwdg.h <span style='color:#111;'> 3.75KB </span>","children":null,"spread":false},{"title":"stm32f4xx_flash.h <span style='color:#111;'> 24.03KB </span>","children":null,"spread":false},{"title":"stm32f4xx_sdio.h <span style='color:#111;'> 21.78KB </span>","children":null,"spread":false},{"title":"stm32f4xx_crc.h <span style='color:#111;'> 1.89KB </span>","children":null,"spread":false},{"title":"stm32f4xx_gpio.h <span style='color:#111;'> 28.11KB </span>","children":null,"spread":false},{"title":"stm32f4xx_lptim.h <span style='color:#111;'> 16.89KB </span>","children":null,"spread":false},{"title":"stm32f4xx_rng.h <span style='color:#111;'> 3.71KB </span>","children":null,"spread":false},{"title":"stm32f4xx_sai.h <span style='color:#111;'> 27.11KB </span>","children":null,"spread":false},{"title":"stm32f4xx_pwr.h <span style='color:#111;'> 8.92KB </span>","children":null,"spread":false},{"title":"stm32f4xx_fsmc.h <span style='color:#111;'> 26.08KB </span>","children":null,"spread":false},{"title":"stm32f4xx_spdifrx.h <span style='color:#111;'> 10.55KB </span>","children":null,"spread":false},{"title":"stm32f4xx_wwdg.h <span style='color:#111;'> 2.99KB </span>","children":null,"spread":false},{"title":"stm32f4xx_i2c.h <span style='color:#111;'> 30.72KB </span>","children":null,"spread":false},{"title":"stm32f4xx_dcmi.h <span style='color:#111;'> 12.21KB </span>","children":null,"spread":false},{"title":"stm32f4xx_dac.h <span style='color:#111;'> 14.13KB </span>","children":null,"spread":false},{"title":"stm32f4xx_dsi.h <span style='color:#111;'> 40.01KB </span>","children":null,"spread":false},{"title":"stm32f4xx_adc.h <span style='color:#111;'> 31.76KB </span>","children":null,"spread":false},{"title":"stm32f4xx_tim.h <span style='color:#111;'> 50.01KB </span>","children":null,"spread":false},{"title":"stm32f4xx_exti.h <span style='color:#111;'> 7.46KB </span>","children":null,"spread":false},{"title":"stm32f4xx_usart.h <span style='color:#111;'> 17.17KB </span>","children":null,"spread":false},{"title":"stm32f4xx_cec.h <span style='color:#111;'> 11.68KB </span>","children":null,"spread":false},{"title":"stm32f4xx_dma.h <span style='color:#111;'> 27.73KB </span>","children":null,"spread":false},{"title":"stm32f4xx_rtc.c <span style='color:#111;'> 100.32KB </span>","children":null,"spread":false},{"title":"stm32f4xx_adc.c <span style='color:#111;'> 66.98KB </span>","children":null,"spread":false},{"title":"stm32f4xx_dsi.c <span style='color:#111;'> 60.04KB </span>","children":null,"spread":false},{"title":"stm32f4xx_rng.c <span style='color:#111;'> 14.00KB </span>","children":null,"spread":false},{"title":"stm32f4xx_dfsdm.c <span style='color:#111;'> 84.34KB </span>","children":null,"spread":false},{"title":"stm32f4xx_pwr.c <span style='color:#111;'> 41.96KB </span>","children":null,"spread":false},{"title":"misc.c <span style='color:#111;'> 10.71KB </span>","children":null,"spread":false},{"title":"stm32f4xx_flash.c <span style='color:#111;'> 61.77KB </span>","children":null,"spread":false},{"title":"stm32f4xx_sai.c <span style='color:#111;'> 47.91KB </span>","children":null,"spread":false},{"title":"stm32f4xx_cec.c <span style='color:#111;'> 23.72KB </span>","children":null,"spread":false},{"title":"stm32f4xx_dma2d.c <span style='color:#111;'> 26.06KB </span>","children":null,"spread":false},{"title":"stm32f4xx_gpio.c <span style='color:#111;'> 24.17KB </span>","children":null,"spread":false},{"title":"stm32f4xx_hash_sha1.c <span style='color:#111;'> 9.10KB </span>","children":null,"spread":false},{"title":"stm32f4xx_spdifrx.c <span style='color:#111;'> 17.01KB </span>","children":null,"spread":false},{"title":"stm32f4xx_sdio.c <span style='color:#111;'> 37.58KB </span>","children":null,"spread":false},{"title":"stm32f4xx_lptim.c <span style='color:#111;'> 33.21KB </span>","children":null,"spread":false},{"title":"stm32f4xx_wwdg.c <span style='color:#111;'> 9.78KB </span>","children":null,"spread":false},{"title":"stm32f4xx_iwdg.c <span style='color:#111;'> 8.66KB </span>","children":null,"spread":false},{"title":"stm32f4xx_cryp_aes.c <span style='color:#111;'> 56.18KB </span>","children":null,"spread":false},{"title":"stm32f4xx_ltdc.c <span style='color:#111;'> 38.38KB </span>","children":null,"spread":false},{"title":"stm32f4xx_tim.c <span style='color:#111;'> 121.34KB </span>","children":null,"spread":false},{"title":"stm32f4xx_rcc.c <span style='color:#111;'> 133.49KB </span>","children":null,"spread":false},{"title":"stm32f4xx_cryp.c <span style='color:#111;'> 34.19KB </span>","children":null,"spread":false},{"title":"stm32f4xx_fmpi2c.c <span style='color:#111;'> 56.18KB </span>","children":null,"spread":false},{"title":"stm32f4xx_crc.c <span style='color:#111;'> 3.04KB </span>","children":null,"spread":false},{"title":"stm32f4xx_dbgmcu.c <span style='color:#111;'> 6.18KB </span>","children":null,"spread":false},{"title":"stm32f4xx_spi.c <span style='color:#111;'> 51.25KB </span>","children":null,"spread":false},{"title":"stm32f4xx_can.c <span style='color:#111;'> 64.72KB </span>","children":null,"spread":false},{"title":"stm32f4xx_syscfg.c <span style='color:#111;'> 16.42KB </span>","children":null,"spread":false},{"title":"stm32f4xx_flash_ramfunc.c <span style='color:#111;'> 4.85KB </span>","children":null,"spread":false},{"title":"stm32f4xx_cryp_tdes.c <span style='color:#111;'> 10.05KB </span>","children":null,"spread":false},{"title":"stm32f4xx_hash_md5.c <span style='color:#111;'> 8.90KB </span>","children":null,"spread":false},{"title":"stm32f4xx_cryp_des.c <span style='color:#111;'> 9.31KB </span>","children":null,"spread":false},{"title":"stm32f4xx_fsmc.c <span style='color:#111;'> 44.61KB </span>","children":null,"spread":false},{"title":"stm32f4xx_dcmi.c <span style='color:#111;'> 17.87KB </span>","children":null,"spread":false},{"title":"stm32f4xx_dac.c <span style='color:#111;'> 25.71KB </span>","children":null,"spread":false},{"title":"......","children":null,"spread":false},{"title":"<span style='color:steelblue;'>文件过多,未全部展示</span>","children":null,"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明