EC - ADC
ADC An analog-to-digital converter converts an input linear voltage (from 0V to the highest input voltage) into a corresponding digital value (0-2). T (T = number of bits), allowing the program to perform corresponding work based on the digital voltage value. The input conversion voltage of an EC ADC is typically from 0V to VREF (AVCC), unlike a MCU where the input conversion voltage range can be adjusted, for example, from 0V to 1/2 AVCC. EC ADCs are used to detect battery voltage and temperature, as well as system voltage and current, to calculate the system's power consumption. The block diagram of the ADC is as follows: ADC has three operating modes: Software-Triggered, Timer-Triggered, and Scan. Software-triggered means that the ADC is triggered by software to perform linear voltage-to-digital conversion; Timer - Triggered means that the ADC is triggered by a timer to perform a linear voltage-to-digital conversion; Scan - The ADC performs a linear voltage-to-digital conversi...