ADC 规则组数据寄存器 ADC_DR 只有一个,是一个 32 位的寄存器,低 16 位在单 ADC时使用(在单模式下,ADC1/2/3 都不使用高 16 位),高 16 位是在 ADC1 中双模式下保存 ADC2 转换的规则数据。 双模式就是 ADC1 和ADC2 同时使用。 因为ADC 的精度是 12 位,无论 ADC_DR 的高 16 或者低 16 位都...
adc_ext_trg[20:0] 输入 共有多达21个外部触发输入用于常规转换(可连接至片上定时器),这些输入由主ADC和从ADC共享。 adc_jext_trg[20:0] 输入 共有多达21个外部触发输入用于注入转换(可连接至片上定时器),这些输入由主ADC和从ADC共享。 adc_awd1adc_awd2adc_awd3 输出 内部模拟看门狗输出信号,连接至片...
44.2.2 ADC时钟源选择 ADC有两种时钟源可供选择,可以使用来自AHB总线的系统时钟(属于同步时钟,对应下面框图的adc_hclk),也可以使用PLL2,PLL3,HSE,HSI或者CSI时钟(属于异步时钟,对应下面框图的adc_ker_ck)。 结合上面的框图,ADC的时钟源要注意以下几个问题: ADC1,ADC2和ADC3共用选择的时钟。 ADC的时钟源使用AHB...
通过配置Injected Queue,可以使ADC转换通道以队列的形式进行,即在一个转换序列中,每个通道按照设定顺序...
ADC_Injected Conversions(ADC注入模式):暂时不需要。 Analog Watchdog1~3():看门狗功能,暂时不需要。 2.3 输出设置 使用LL库,剩下的按照常规配置就行。 2.4 MD5 设置 勾选Reset and Run,否则下载程序后单片机不会自动运行,复位后才会运行。 3 程序解读 3.1 ADC初始化 void MX_ADC1_Init(void) { /* USER...
②是ADC的双时钟域架构 双时钟域架构意味着ADC时钟独立于AHB总线时钟, ADC有两种时钟源可以选择,分别是adc_hclk和adc_ker_ck。 图29.1.2.1.1和ADC2时钟 (1)adc_hclk(属于同步时钟) adc_hclk来自AHB总线的系统时钟,ADC1和ADC2处在209MHZ的 AHB2总线时钟。可以通过ADC_CCR寄存器的CKMODE[1:...
ADCEx_MultiModeStop_DMA 110 5.2.11 HAL_ADCEx_InjectedGetValue 111 5.2.12 HAL_ADCEx_MultiModeGetValue 111 5.2.13 HAL_ADCEx_InjectedConvCpltCallback 111 5.2.14 HAL_ADCEx_InjectedConfigChannel 111 5.2.15 HAL_ADCEx_MultiModeConfigChannel 112 5.3 ADCEx Firmware driver defines 112 5.3.1 ADC...
“Regular” or “injected” conversions: –– 3.27 “regular” conversions can be requested at any time or even in continuous mode without having any impact on the timing of “injected” conversions “injected” conversions for precise timing and with high conversion priority Digital camera ...
It's not handling all scenarios and has some bugs, but there they initialize the adc's only once, and only set up the channel and do the polling the next times. That could help you with the speed topic. And with this mechanism, I could also get injected adc and analogread to work ...
See note in Section 5.3.17: 12-bit ADC characteristics. 4. When several inputs are submitted to a current injection, the maximum IINJ(PIN) is the absolute sum of the positive and negative injected currents (instantaneous values). These results are based on characterization with IINJ(...