ST AN2658 Application Note(1)

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.


ST AN2658 Application Note(1) - cover page
Brand
STMicroelectronics
Category
microcontrollers
Document type
Application Note
Language
English
Pages
23
File format
PDF
File size
190 KB
Published
07 August, 2012
Updated
30 September, 2023
Model
AN2658
MD5 checksum
9F3452947F0A7B8712AE1C65C11BD18B

About this manual

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.

What's inside

  • ADC hardware description
  • ADC operation
  • Summary of features
  • Configuring ADC registers
  • Analog watchdog function
  • ADC interrupt management
  • Practical application
  • Hardware connection examples
  • Methods for precision improvement
  • Displaying ADC conversion result

Specifications

Resolution10-bit
Clock speed1 to 4 or 6 MHz
Number of input channelsUp to 16 channels
Conversion time14 clocks
Reference voltage range2.75V up to Vppa

Frequently asked questions

What are the two types of ADCs in the STM8 family?

The STM8 family includes a basic ADC type named ADC2 and an extended ADC type named ADC1.

Can the ADC be triggered by an external pin?

Yes, the start of A/D conversion can be triggered by an external pin in addition to software or internal timer events.

What is the resolution of the STM8 ADC?

The STM8 ADC converter has a resolution of 10 bits.

Download PDF (190 KB)

More STMicroelectronics Manuals


View all STMicroelectronics manuals →