RM0008
10
Analog-to-digital converter (ADC)
Low-density devices are STM32F101xx, STM32F102xx and STM32F103xx
microcontrollers where the Flash memory density ranges between 16 and 32 Kbytes.
Medium-density devices are STM32F101xx, STM32F102xx and STM32F103xx
microcontrollers where the Flash memory density ranges between 64 and 128 Kbytes.
High-density devices are STM32F101xx and STM32F103xx microcontrollers where the
Flash memory density ranges between 256 and 512 Kbytes.
This Section applies to the whole STM32F10xxx family, unless otherwise specified.
10.1
Introduction
The 12-bit ADC is a successive approximation analog-to-digital converter. It has up to 18
multiplexed channels allowing it measure signals from 16 external and two internal sources.
A/D conversion of the various channels can be performed in single, continuous, scan or
discontinuous mode. The result of the ADC is stored in a left-aligned or right-aligned 16-bit
data register.
The analog watchdog feature allows the application to detect if the input voltage goes
outside the user-defined high or low thresholds.
10.2
ADC main features
●
12-bit resolution
●
Interrupt generation at End of Conversion, End of Injected conversion and Analog
Watchdog event
●
Single and continuous conversion modes
●
Scan mode for automatic conversion of channel 0 to channel 'n'
●
Self-calibration
●
Data alignment with in-built data coherency
●
Channel by channel programmable sampling time
●
External trigger option for both regular and injected conversion
●
Discontinuous mode
●
Dual mode (on devices with 2 ADCs or more)
●
ADC conversion time:
–
–
–
●
ADC supply requirement: 2.4 V to 3.6 V
●
ADC input range: V
●
DMA request generation during regular channel conversion
The block diagram of the ADC is shown in
Note:
V
,if available (depending on package), must be tied to V
REF-
STM32F103xx performance line devices: 1 µs at 56 MHz (1.17 µs at 72 MHz)
STM32F101xx access line devices: 1 µs at 28 MHz (1.55 µs at 36 MHz)
STM32F102xx USB access line devices: 1.2 µs at 48 MHz
≤ V
REF-
≤ V
IN
REF+
Figure
21.
Analog-to-digital converter (ADC)
.
SSA
149/690
Need help?
Do you have a question about the STM32F102 Series and is the answer not in the manual?
Questions and answers