stm32 Adc
stm32 Adc
stm32 Adc
Outline
1 Introduction
Introduction to Analog to Digital Converters
Analog to Digital Converter types
Analog to Digital Converter characteristics
3 ADC registers
Overview
Introduction STM32 Analog do Digital Converter ADC registers
N = 2n
Nyquist rate
The Nyquist rate is the minimum sampling rate required to avoid
aliasing, equal to twice the highest frequency contained within the signal.
def
fN = 2B
fS > fN
Introduction STM32 Analog do Digital Converter ADC registers
Resolution
Max sampling rate
Signal to Noise Ratio (SNR)
Input voltage offset
Gain stability
Linearity
Introduction STM32 Analog do Digital Converter ADC registers
Gain error
Introduction STM32 Analog do Digital Converter ADC registers
Non-linearity errors
Introduction STM32 Analog do Digital Converter ADC registers
Outline
1 Introduction
Introduction to Analog to Digital Converters
Analog to Digital Converter types
Analog to Digital Converter characteristics
3 ADC registers
Overview
Introduction STM32 Analog do Digital Converter ADC registers
Channel selection
16 multiplexed channels
It is possible to organize the conversions in groups
A group consists of a sequence of conversions which can be done on
any channel and in any order
Regular group:
up to 16 conversions
the conversion sequence must be selected in the ADC SQRx registers
Injected group:
up to 4 conversions
This mode is intended for use when conversion is triggered by an
external event or by software
The injected group has priority over the regular channel group
It interrupts the conversion of the current channel in the regular
channel group
Introduction STM32 Analog do Digital Converter ADC registers
Analog watchdog
The AWD analog watchdog status bit is set if the analog voltage
converted by the ADC is below a low threshold or above a high
threshold
These thresholds are programmed in the 12 least significant bits of
the ADC HTR and ADC LTR 16-bit registers
An interrupt can be enabled by using the AWDIE bit in the
ADC CR1 register
Introduction STM32 Analog do Digital Converter ADC registers
Outline
1 Introduction
Introduction to Analog to Digital Converters
Analog to Digital Converter types
Analog to Digital Converter characteristics
3 ADC registers
Overview
Introduction STM32 Analog do Digital Converter ADC registers