1.实验目的:
新建基于STM32F4 固件库V1.3.0的工程模板
2.实验现象:
下载进开发板之后,红绿灯闪烁
3.注意事项:
1)新建工程的时候,请确保Option for target->C/C++选项卡的全部宏定义Define输入框字符串为:STM32F40_41xxx,USE_STDPERIPH_DRIVER
4.手册中讲解到步骤15的时候的main.c源码如下:
#include "stm32f4xx.h"
//ALIENTEK 探索者STM32F407开发板 实验0
//STM32F4工程模板-库函数版本
//技术支持:www.openedv.com
//淘宝店铺:http://eboard.taobao.com
//广州市星翼电子科技有限公司
//作者:正点原子 @ALIENTEK
void Delay(__IO uint32_t nCount);
void Delay(__IO uint32_t nCount)
{
while(nCount--){}
}
int main(void)
{
GPIO_InitTypeDef GPIO_InitStructure;
RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOF, ENABLE);
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_9 | GPIO_Pin_10;
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_OUT;
GPIO_InitStructure.GPIO_OType = GPIO_OType_PP;
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_100MHz;
GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_UP;
GPIO_Init(GPIOF, &GPIO_InitStructure);
while(1){
GPIO_SetBits(GPIOF,GPIO_Pin_9|GPIO_Pin_10);
Delay(0x7FFFFF);
GPIO_ResetBits(GPIOF,GPIO_Pin_9|GPIO_Pin_10);
Delay(0x7FFFFF);
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
STM32F4x 多路ADC +外部定时器TIM3触发控制采样时间+DMA
共234个文件
h:43个
o:43个
c:43个
3星 · 超过75%的资源 需积分: 38 246 下载量 167 浏览量
2020-10-15
11:07:46
上传
评论 26
收藏 7.95MB RAR 举报
温馨提示
STM32F4x 多路ADC +外部定时器TIM触发控制采样时间+DMA TIM3定时器触发采样,然后加入DMA直接数据输出到buff 串口依次打印每个通道数据。
资源推荐
资源详情
资源评论
收起资源包目录
STM32F4x 多路ADC +外部定时器TIM3触发控制采样时间+DMA (234个子文件)
407-多路ADC-DMA-TIM.uvguix.Administrator 71KB
Template.axf 664KB
keilkilll.bat 399B
stm32f4xx_tim.c 122KB
stm32f4xx_rtc.c 100KB
stm32f4xx_rcc.c 97KB
stm32f4xx_adc.c 67KB
stm32f4xx_flash.c 62KB
stm32f4xx_can.c 59KB
stm32f4xx_cryp_aes.c 57KB
stm32f4xx_usart.c 57KB
stm32f4xx_fmc.c 55KB
stm32f4xx_i2c.c 53KB
stm32f4xx_dma.c 52KB
stm32f4xx_spi.c 51KB
system_stm32f4xx.c 47KB
stm32f4xx_sai.c 45KB
stm32f4xx_fsmc.c 41KB
stm32f4xx_ltdc.c 39KB
stm32f4xx_sdio.c 38KB
stm32f4xx_pwr.c 37KB
stm32f4xx_cryp.c 35KB
stm32f4xx_dma2d.c 27KB
stm32f4xx_dac.c 26KB
stm32f4xx_hash.c 26KB
stm32f4xx_gpio.c 25KB
stm32f4xx_dcmi.c 18KB
stm32f4xx_rng.c 14KB
misc.c 11KB
stm32f4xx_cryp_tdes.c 10KB
stm32f4xx_wwdg.c 10KB
stm32f4xx_exti.c 10KB
stm32f4xx_cryp_des.c 10KB
stm32f4xx_hash_sha1.c 10KB
stm32f4xx_hash_md5.c 9KB
stm32f4xx_syscfg.c 9KB
stm32f4xx_iwdg.c 9KB
delay.c 8KB
stm32f4xx_dbgmcu.c 7KB
ADC_DMA_TIM.c 6KB
stm32f4xx_flash_ramfunc.c 5KB
usart.c 5KB
stm32f4xx_it.c 4KB
stm32f4xx_crc.c 4KB
sys.c 1KB
main.c 631B
stm32f4xx_tim.crf 443KB
stm32f4xx_rtc.crf 441KB
stm32f4xx_ltdc.crf 438KB
stm32f4xx_cryp_aes.crf 436KB
stm32f4xx_sai.crf 435KB
stm32f4xx_rcc.crf 434KB
stm32f4xx_dma2d.crf 433KB
stm32f4xx_can.crf 432KB
stm32f4xx_adc.crf 430KB
stm32f4xx_flash.crf 430KB
stm32f4xx_dma.crf 430KB
usart.crf 429KB
main.crf 429KB
stm32f4xx_i2c.crf 429KB
stm32f4xx_fsmc.crf 429KB
stm32f4xx_cryp.crf 428KB
stm32f4xx_usart.crf 428KB
stm32f4xx_spi.crf 428KB
stm32f4xx_sdio.crf 427KB
stm32f4xx_pwr.crf 426KB
adc_dma_tim.crf 426KB
stm32f4xx_dac.crf 426KB
stm32f4xx_hash.crf 425KB
stm32f4xx_gpio.crf 425KB
stm32f4xx_dcmi.crf 425KB
delay.crf 425KB
stm32f4xx_cryp_tdes.crf 425KB
stm32f4xx_hash_sha1.crf 425KB
stm32f4xx_hash_md5.crf 425KB
stm32f4xx_cryp_des.crf 425KB
system_stm32f4xx.crf 425KB
stm32f4xx_exti.crf 424KB
sys.crf 424KB
stm32f4xx_syscfg.crf 424KB
stm32f4xx_wwdg.crf 424KB
misc.crf 423KB
stm32f4xx_rng.crf 423KB
stm32f4xx_iwdg.crf 423KB
stm32f4xx_flash_ramfunc.crf 423KB
stm32f4xx_dbgmcu.crf 423KB
stm32f4xx_crc.crf 423KB
stm32f4xx_it.crf 423KB
stm32f4xx_flash_ramfunc.d 2KB
stm32f4xx_cryp_tdes.d 2KB
stm32f4xx_hash_sha1.d 2KB
stm32f4xx_cryp_des.d 2KB
stm32f4xx_hash_md5.d 2KB
stm32f4xx_cryp_aes.d 2KB
stm32f4xx_dbgmcu.d 2KB
stm32f4xx_syscfg.d 2KB
stm32f4xx_dma2d.d 2KB
stm32f4xx_flash.d 2KB
stm32f4xx_usart.d 2KB
stm32f4xx_exti.d 2KB
共 234 条
- 1
- 2
- 3
资源评论
- colour642023-05-02拿来即用,好评!博主牛逼!
- 起点2021-09-16对比自己的程序可以做一个参考。
- andrew_lya2020-11-03垃圾,没有参考价值,技术痴人2020-11-05那你想要什么样的?!
技术痴人
- 粉丝: 3
- 资源: 8
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功