Understand the basic principles of STM32 ADC

Features of ADC

Insert picture description here

Chip with 3 ADC controllers

Insert picture description here

Correspondence of each pin of ADc channel

Insert picture description here

ADC working principle

Insert picture description here

ADC channel group

规则通道组:相当正常运行的程序。最多16个通道。

① The rule channel and its conversion sequence are selected in the ADC_SQRx register, and
the total number of rule group conversions should be written into L[3:0] of the ADC_SQR1 register

② Injection channel group: equivalent to interrupt. Up to 4 channels.
The injection group and its conversion sequence are selected in the ADC_JSQR register.
The total number of conversions in the injection group should be written into L[1:0] of the ADC_JSQR register
Insert picture description here

ADC conversion mode

The ADC channel of STM32 can perform single conversion, continuous conversion, and scan conversion

Single conversion

Insert picture description here

Continuous conversion

Insert picture description here

Scan conversion

Insert picture description here

ADC interrupt

Insert picture description here

ADC clock configuration

Insert picture description here

ADC sampling time

Insert picture description here

Guess you like

Origin blog.csdn.net/m0_46278925/article/details/107675993