STM8S Microcontroller ADC Application Note AN2658

This application note describes how to use the STM8S microcontroller's analog-to-digital converter, including how to configure the ADC registers and microcontroller resources, and how to use the different operating modes of the ADC.


STM8S Microcontroller ADC Application Note AN2658 - 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
BB2D952E60FE26B790E94E64576E7691

About this manual

This document provides a comprehensive guide on utilizing the Analog to Digital Converter (ADC) implemented within the STM8S family of microcontrollers. It details the configuration of ADC registers and resources required for various operational modes.

The note covers both basic (ADC2) and extended (ADC1) ADC types, explaining features such as resolution, clock selection, conversion triggers, data storage options including buffers, and special functions like analog watchdogs and scan modes. It also includes practical application examples involving hardware connections and firmware implementation.

What's inside

  • ADC hardware description
  • General properties
  • ADC operation
  • Summary of features
  • Configuring ADC registers
  • Analog watchdog function
  • Practical application
  • Hardware connection examples
  • Displaying conversion result using LEDs
  • Revision history

Specifications

Resolution10-bit
Clock speed range1 to 4 or 6 MHz
Number of input channelsUp to 16
Data format alignmentOptional left or right

Frequently asked questions

What are the operating modes of the STM8 ADC?

The ADC can operate in single mode, where it stops after one conversion, or continuous mode, where it continues converting.

What is the reference voltage range for the ADC?

The reference voltage must be between 2.75V and Vppa, though some packages use internal references.

Download PDF (190 KB)

More STMicroelectronics Manuals


View all STMicroelectronics manuals →