Darren_pty

导航

2020年12月6日 #

16-STM32 ADC外部触发

摘要: STM32 ADC外部触发 1 #include "adc.h" 2 3 //用来保存ADC各通道转换完成后的数据 4 vu16 ADC_ConvertedValue[4]; 5 6 7 8 //利用定时器TIM4的通道4的输出比较功能,给ADC1提供采样触发信号,这里触发周期为:100ms 9 / 阅读全文

posted @ 2020-12-06 21:11 Darren_pty 阅读(3057) 评论(0) 推荐(0) 编辑

15-STM32 ADC同步规则模式(3ADC)

摘要: STM32 ADC同步规则模式(3ADC) 1 #define ADC_CHANNEL_SAMPLE_TIME 2 u32 Temp; 3 4 //右墙RX: PA0 23 ADC1->0 ADC采集 5 //左跳崖RX: PA1 24 ADC1->CH1 ADC采集 6 //右跳崖RX: PA2 阅读全文

posted @ 2020-12-06 21:09 Darren_pty 阅读(1092) 评论(0) 推荐(0) 编辑

14-STM ADC多通道连续采集(DMA)

摘要: STM ADC多通道连续采集 1 uint16_t ADC_ConvertedValue[5]={0}; 2 3 void ADC_init(void) 4 { 5 GPIO_InitTypeDef GPIO_InitStructure; 6 ADC_InitTypeDef ADC_InitStru 阅读全文

posted @ 2020-12-06 20:42 Darren_pty 阅读(550) 评论(0) 推荐(0) 编辑

13-STM32 ADC单通道单次采集

摘要: ADC结构体 1 typedef struct 2 { 3 uint32_t ADC_Mode; // ADC 工作模式选择 4 FunctionalState ADC_ScanConvMode; /* ADC 扫描(多通道)或者单次(单通道)模式选择 */ 6 FunctionalState AD 阅读全文

posted @ 2020-12-06 20:14 Darren_pty 阅读(903) 评论(0) 推荐(0) 编辑