Hello and welcome to this presentation of the STM32L4 Analog-to-Digital Converter block. It will cover the main features of this block, which is used

Similar documents
Hello, and welcome to this presentation of the STM32 system window watchdog. It will cover the main features of this peripheral used to detect

Tutorial Introduction

Analog to Digital Conversion

Data Conversion and Lab (17.368) Fall Lecture Outline

ADC Peripheral in Microcontrollers. Petr Cesak, Jan Fischer, Jaroslav Roztocil

Training Note TR-06RD. Schedules. Schedule types

Hello and welcome to this training module for the STM32L4 Liquid Crystal Display (LCD) controller. This controller can be used in a wide range of

Area-Efficient Decimation Filter with 50/60 Hz Power-Line Noise Suppression for ΔΣ A/D Converters

Section bit Analog-to-Digital Converter (ADC)

AN919: Using the EFM8LB1 ADC

Analog-to-Digital Converter

o The 9S12 has a 16-bit free-running counter to determine the time and event happens, and to make an event happen at a particular time

o The 9S12 has a 16-bit free-running counter to determine the time and event happens, and to make an event happen at a particular time

Point System (for instructor and TA use only)

TV Synchronism Generation with PIC Microcontroller

ST10F273M Errata sheet

Counter/timer 2 of the 83C552 microcontroller

Major Differences Between the DT9847 Series Modules

AD9884A Evaluation Kit Documentation

PulseCounter Neutron & Gamma Spectrometry Software Manual

TXZ Family. Reference Manual 12-bit Analog to Digital Converter (ADC-A) 32-bit RISC Microcontroller. Revision

8500 Composite/SD Legalizer and Video Processing Frame Sync

Chapter 29 Analog Digital Converter (ADC)

Design and Implementation of Timer, GPIO, and 7-segment Peripherals

Artisan Technology Group is your source for quality new and certified-used/pre-owned equipment

AN3023 Application note

ECE 4220 Real Time Embedded Systems Final Project Spectrum Analyzer

Interfacing Analog to Digital Data Converters. A/D D/A Converter 1

Understanding and Calculating Probability of Intercept

STA2051E VESPUCCI 32-BIT SINGLE CHIP BASEBAND CONTROLLER FOR GPS AND TELEMATIC APPLICATIONS 1 FEATURES. Figure 1. Packages

Fig. 1 Analog pins of Arduino Mega

Design and Implementation of an AHB VGA Peripheral

PHYS 3322 Modern Laboratory Methods I Digital Devices

COMPOSITE VIDEO LUMINANCE METER MODEL VLM-40 LUMINANCE MODEL VLM-40 NTSC TECHNICAL INSTRUCTION MANUAL

RF4432F27 wireless transceiver module

Asynchronous inputs. 9 - Metastability and Clock Recovery. A simple synchronizer. Only one synchronizer per input

IQDEC01. Composite Decoder, Synchronizer, Audio Embedder with Noise Reduction - 12 bit. Does this module suit your application?

Troubleshooting EMI in Embedded Designs White Paper

8-BIT MCU WITH SINGLE VOLTAGE FLASH MEMORY, DATA EEPROM, ADC, TIMERS, SPI

XC-77 (EIA), XC-77CE (CCIR)

Section Bit ADC with 4 Simultaneous Conversions

nc... Freescale Semiconductor, I

Design and Implementation of Nios II-based LCD Touch Panel Application System

Converters: Analogue to Digital

BCCU Brightness and Color Control Unit. XMC microcontrollers September 2016

RF4432 wireless transceiver module

Analog inputs. AnalogInput *ai; ai = new AnalogInput(0); AnalogInput ai; ai = new AnalogInput(0);

International Journal of Engineering Research-Online A Peer Reviewed International Journal

DT9857E. Key Features: Dynamic Signal Analyzer for Sound and Vibration Analysis Expandable to 64 Channels

Analog-to-Digital Conversion (Part 2) Microcomputer Architecture and Interfacing Colorado School of Mines Professor William Hoff

New GRABLINK Frame Grabbers

Model 7130 HD Downconverter and Distribution Amplifier Data Pack

Department of Electrical & Electronic Engineering Imperial College of Science, Technology and Medicine. Project: Real-Time Speech Enhancement

Lab 3: Timer and Clock

DPD80 Visible Datasheet

AI-1204Z-PCI. Features. 10MSPS, 12-bit Analog Input Board for PCI AI-1204Z-PCI 1. Ver.1.04

OWNERS MANUAL LUNATEC V3 MICROPHONE PREAMPLIFIER AND A/D CONVERTER

NI-DAQmx Device Considerations

UNIIQA+ NBASE-T Monochrome CMOS LINE SCAN CAMERA

DDA-UG-E Rev E ISSUED: December 1999 ²

Datasheet SHF A

A/D and D/A convertor 0(4) 24 ma DC, 16 bits

Introduction. NAND Gate Latch. Digital Logic Design 1 FLIP-FLOP. Digital Logic Design 1

BASCOM-TV. TV Code Features: ICs supported: BASCOM versions:

Vorne Industries. 87/719 Analog Input Module User's Manual Industrial Drive Itasca, IL (630) Telefax (630)

Dual channel high-end HD-SDI to SD-SDI/composite down converter with de-embedding function COPYRIGHT 2008 AXON DIGITAL DESIGN BV ALL RIGHTS RESERVED

DPD80 Infrared Datasheet

THE ASTRO LINE SERIES GEMINI 5200 INSTRUCTION MANUAL

TIME RESOLVED XAS DATA COLLECTION WITH AN XIA DXP-4T SPECTROMETER

C8000. switch over & ducking

Smart Night Light. Figure 1: The state diagram for the FSM of the ALS.

Microcontrollers. Outline. Class 4: Timer/Counters. March 28, Timer/Counter Introduction. Timers as a Timebase.

Models 5360 and 5365 Four Channel Analog to Digital Video Converters and Embedders Data Pack

ORM0022 EHPC210 Universal Controller Operation Manual Revision 1. EHPC210 Universal Controller. Operation Manual

ASNT_PRBS20B_1 18Gbps PRBS7/15 Generator Featuring Jitter Insertion, Selectable Sync, and Output Amplitude Control

How advances in digitizer technologies improve measurement accuracy

OVERVIEW LED BACKLIGHT CONTROLLER FAMILY

Oscilloscopes, logic analyzers ScopeLogicDAQ

GREAT 32 channel peak sensing ADC module: User Manual

Meeting Embedded Design Challenges with Mixed Signal Oscilloscopes

KNX Dimmer RGBW - User Manual

Dual Slope ADC Design from Power, Speed and Area Perspectives

AN-ENG-001. Using the AVR32 SoC for real-time video applications. Written by Matteo Vit, Approved by Andrea Marson, VERSION: 1.0.0

Low Power VLSI Circuits and Systems Prof. Ajit Pal Department of Computer Science and Engineering Indian Institute of Technology, Kharagpur

Internet of Things at Bohunt School (Wokingham) Plant moisture sensing system

Workshop 4 (A): Telemetry and Data Acquisition

CEDAR Series. To learn more about Ogden CEDAR series signal processing platform and modular products, please visit

DT3162. Ideal Applications Machine Vision Medical Imaging/Diagnostics Scientific Imaging

On-site reprogrammable beacon keyer

Brief Description of Circuit Functions

DT9837 Series. High Performance, USB Powered Modules for Sound & Vibration Analysis. Key Features:

NanoGiant Oscilloscope/Function-Generator Program. Getting Started

RF2TTC and QPLL behavior during interruption or switch of the RF-BC source

Tutorial Introduction

DT9834 Series High-Performance Multifunction USB Data Acquisition Modules

Introduction to Embedded Microcomputer Systems Lecture Discrete digital signal. Continuous analog signal

Hello, and welcome to this presentation of the STM32 Serial Audio Interface. I will present the features of this interface, which is used to connect

ex 800 Series ematrix System

Digital Audio Design Validation and Debugging Using PGY-I2C

INDIAN INSTITUTE OF TECHNOLOGY KHARAGPUR NPTEL ONLINE CERTIFICATION COURSE. On Industrial Automation and Control

Transcription:

Hello and welcome to this presentation of the STM32L4 Analog-to-Digital Converter block. It will cover the main features of this block, which is used to convert the external analog voltage-like sensor outputs to digital values for further processing in the digital domain. 1

The analog-to-digital converters inside STM32 products allow the microcontroller to accept an analog value like a sensor output and convert the signal into the digital domain. There are up to three ADCs and 16 to 24 analog inputs depending on the device. The ADC module itself is a 12-bit successive approximation converter with additional oversampling hardware. Under certain conditions, the oversampled output can have a 16-bit result. The sampling speed is more than five mega samples per second. Each ADC module integrates three analog watchdogs. The data can be made available either through DMA movement or interrupts. This ADC is designed for low power and high performance. There are a number of triggering mechanisms and the data management can be configured to minimize the CPU workload. 2

Up to 3 analog-to-digital converters are integrated inside STM32L4x6 products. The input channel is connected to up to 24 GPIO channels capable of converting signals in either Single-end or Differential mode. The ADCs can convert signals in excess of 5 mega samples per second. There are several functional modes which will be explained later. There are also several different triggering methods. In order to offload the CPU, the ADC has 3 analog watchdogs for monitoring thresholds. The ADC also offers oversampling to extend the number of bits presented in the final conversion value. For powersensitive applications, the ADC offers a number of lowpower features. 3

This slide shows the general block diagram for each analog-to-digital converters embedded in the STM32L4. 4

The STM32L4 s ADCs support a Deep power-down mode. When the ADC is not used, it can be disconnected by a power switch to further reduce the leakage current. Auto-delayed mode makes the ADC wait until the last conversion data is read before starting the next conversion. This avoids unnecessary conversions and thus reduces power consumption. The power consumption is in function of the sampling frequency. For low sampling rates, the current consumption is reduced almost proportionally. 5

The ADC supports up to 5.33 mega samples per second of conversion. By using dual interleaved mode, it can be extended to ten mega samples par second. The ADC includes the oversampling hardware which accumulates data and then divides without CPU help. The oversampler can accommodate from 2 to 256 times samples and right shift from one to eight binary digits. The sequencer allows the user to convert up to 16 channels in any desired order. Also each channel can have different sampling period. The ADC offers an auto calibration mechanism. It is recommended to run the calibration on the application if the reference voltage changes more than 10% so this would include emerging from RESET or from a low power state where the analog voltage supply has been removed and reinstated. 6

The ADC needs a minimum of 2.5 clock cycles for the sampling and 12.5 clock cycles for conversion. With an 80 MHz ADC clock, it can achieve 5.33 mega samples per second. For higher speed sampling, it is possible to reduce the resolution down to 6 bits then the sampling speed can go up to 8.88 mega samples per second. 7

The sampling time can be programmed individually for each input channel of the analog-to-digital converters. The sampling times listed in this slide in ADC clock cycles are available. Longer sample times ensure that signals having a higher impedance are correctly converted. 8

The ADCs have a selectable clock source. When the system needs to run synchronously, the AHB clock source is the best selection. If a slow CPU speed is required, but the ADC needs a higher sampling rate, the dedicated ADC clock can be selected. 9

AD converter supports several conversion modes: Single mode, which converts only one channel, in single-shot or continuous mode. Scan mode, which converts a complete set of predefined programmed input channels, in single-shot or continuous mode. Discontinuous mode, converts only a single channel at each trigger signal from the list of pre-defined programmed input channels. 10

The ADCs support hardware oversampling. They can sample by 2, 4, 8, 16, 32, 64, 128 and 256 times without CPU support. The converted data is accumulated in a register and the output can be processed by the data shifter and the truncater. 12-bit data can be extended to be presented as 16-bit data. This functionality can be used as an averaging function or for data rate reduction and signal-to-noise ratio improvement as well as for basic filtering. 11

Each ADC has three integrated analog watchdogs with high and low threshold settings. The ADC conversion value is compared to this window threshold, if the result exceeds the threshold, an interrupt or external signal can be generated or a timer can be immediately stopped without CPU intervention. 12

The ADC conversion result is stored in a 16-bit data register. The system can use CPU polling, interrupts or DMA to make use of the conversion data. An overrun flag can be generated if data is not read before the next conversion data is ready. For injected channel conversions, 4 dedicated data registers are available. 13

An injected conversion is used to interrupt the regular conversion, then insert up to 4 channel conversions. Once an injected conversion is finished, the regular conversion sequence can be resumed. The injected conversion result is stored in dedicated data registers. Flags and interrupts are available for the end of conversion or end of sequence. The choices for an injected channel can be reprogrammed on the fly. Even if a regular or injected conversion is in progress, you can add a different channel to the queue so that next injected channel can be different from the previous one. 14

Each ADC can generate 9 different interrupts: ADC Ready, end of conversion, end of sequence, end of injected conversion, end of injected sequence, analog watch dog, end of sampling, data overrun and the overflow of the injected sequence context queue. DMA requests can be generated at each end of conversion when the ADC output data is ready.

The ADCs are active in Run, Sleep, Low-power run and Low-power sleep modes. In Stop0, Stop 1 or Stop 2 mode, the ADCs are not available but the contents of their registers are kept. In Standby or Shutdown mode, the ADCs are powered-down and must be reinitialized when returning to a higher power state. There is a Deep power-down mode in each ADC itself which reduces leakage by turning off an on-chip power switch. This is the recommended mode whenever an ADC is not used.

The following table shows performance parameters for the ADC. 17

These peripherals may need to be specifically configured for correct use with the ADCs. Please refer to the corresponding peripheral training modules for more information. 18

The STM32L4 embeds up to three ADCs. ADC 1 and ADC 2 can be configured to work together in Dual mode, so that each analog-to-digital conversion can be synchronized between the two modules. ADC 3 works as a standalone converter.

Several application notes dedicated to analog-to-digital converters are available. To learn more about ADCs, you can visit a wide range of web pages discussing successive approximation analog-to-digital converters. 20