The purpose of this application note is to explain how to use the Analog to Digital Converter implemented in many of the STM8S microcontroller family devices. It provides useful information on how to configure the ADC registers and microcontroller resources and use the ADC in different modes.
This document provides a comprehensive guide on using the Analog to Digital Converter (ADC) implemented in the STM8S microcontroller family. It details the hardware architecture, distinguishing between the basic ADC2 and extended ADC1 types, and explains their respective capabilities such as resolution, clock selection, and operating modes.
The guide covers configuration of ADC registers for various conversion modes, including single, continuous, and scan modes. It also describes practical applications, hardware connection examples, methods for improving precision, and a specific example of displaying conversion results using LEDs.
| Resolution | 10-bit |
|---|---|
| Clock speed | 1 to 4 or 6 MHz |
| Number of input channels | Up to 16 channels |
| Conversion time | 14 clocks |
| Reference voltage range | 2.75V up to Vppa |
The STM8 family includes a basic ADC type named ADC2 and an extended ADC type named ADC1.
Yes, the start of A/D conversion can be triggered by an external pin in addition to software or internal timer events.
The STM8 ADC converter has a resolution of 10 bits.