17.2 ADC related calculation formula
17.2.1 ADC speed calculation formula
The ADC conversion speed is controlled by the SPEED and ADCTIM registers in the ADCCFG register. The
calculation formula of the conversion speed is as follows:
Note:
◼ THE SPEED OF 12-BIT ADC CANNOT BE HIGHER THAN 800KHZ
◼ The value of SMPDUTY cannot be less than 10, it is recommended to set to 15
◼ CSSETUP can use power-on default value 0
◼ CHOLD can use the power-on default value 1 (ADCTIM is recommended to be set to 3FH)
17.2.2 ADC conversion result calculation formula
17.2.3 Reverse calculation formula for ADC input voltage
17.2.4 Reverse working voltage calculation formula
When you need to use the ADC input voltage and ADC conversion results to reverse the working voltage, if the target
chip does not have an independent ADC_Vref+ pin, you can directly measure and use the following formula. If the
target chip has an independent ADC_Vref+ pin, you must connect the ADC_Vref+ pin. The pin is connected to the Vcc
pin.
17.4 12 BIT ADC Static Characteristics