This application note explains how to use the analog-to-digital converter implemented in the STM8A microcontroller family. The document provides useful information on how to configure the ADC registers and microcontroller resources and use the analog-to-digital converter in different modes.
The document provides detailed information on configuring ADC registers, managing interrupts, and utilizing various conversion modes such as single and continuous. It describes the hardware architecture of the 10-bit successive approximation ADC found in STM8A devices.
Practical guidance is offered for setting up channels, selecting triggers (software or external), and storing converted values. The note also covers design recommendations, precision improvement methods, and includes a summary of features available across different device sizes.
| Resolution | 10 bits |
|---|---|
| Conversion time | 14 clock cycles |
| Clock speed range | 1 to 4 MHz |
The analog-to-digital converter has a resolution of 10 bits.
A standard conversion takes 14 clock cycles.