EasyManua.ls Logo

STC micro STC8A8K64D4 Series - ADC Related Calculation Formula; ADC Speed Calculation Formula; ADC Conversion Result Calculation Formula; Reverse Calculation Formula for ADC Input Voltage

Default Icon
901 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
STC8A8K64D4 Series Manual
- 486 -
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
Symbol
Description
Minimum
Typical
Max
Unit
RES
Resolution
-
12
-
Bits

Table of Contents

Related product manuals