RM0367 Rev 7 13/1043
RM0367 Contents
40
14.5.1 Data register and data alignment (ADC_DR, ALIGN) . . . . . . . . . . . . . 321
14.5.2 ADC overrun (OVR, OVRMOD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 321
14.5.3 Managing a sequence of data converted without using the DMA . . . . 322
14.5.4 Managing converted data without using the DMA without overrun . . . 322
14.5.5 Managing converted data using the DMA . . . . . . . . . . . . . . . . . . . . . . 322
DMA one shot mode (DMACFG = 0) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .323
DMA circular mode (DMACFG = 1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .323
14.6 Low-power features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 324
14.6.1 Wait mode conversion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 324
14.6.2 Auto-off mode (AUTOFF) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 325
14.7 Analog window watchdog (AWDEN, AWDSGL, AWDCH,
ADC_TR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 326
14.7.1 Description of the analog watchdog . . . . . . . . . . . . . . . . . . . . . . . . . . . 326
14.7.2 ADC_AWD1_OUT output signal generation . . . . . . . . . . . . . . . . . . . . 327
14.7.3 Analog watchdog threshold control . . . . . . . . . . . . . . . . . . . . . . . . . . . 329
14.8 Oversampler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 330
14.8.1 ADC operating modes supported when oversampling . . . . . . . . . . . . 332
14.8.2 Analog watchdog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 332
14.8.3 Triggered mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 332
14.9 Temperature sensor and internal reference voltage . . . . . . . . . . . . . . . . 333
Main features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .334
Reading the temperature . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .334
Calculating the actual V
DDA
voltage using the internal reference voltage . . . . .335
Converting a supply-relative ADC measurement to an absolute voltage value .335
14.10 VLCD voltage monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 336
14.11 ADC interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 336
14.12 ADC registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 337
14.12.1 ADC interrupt and status register (ADC_ISR) . . . . . . . . . . . . . . . . . . . 337
14.12.2 ADC interrupt enable register (ADC_IER) . . . . . . . . . . . . . . . . . . . . . . 338
14.12.3 ADC control register (ADC_CR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 340
14.12.4 ADC configuration register 1 (ADC_CFGR1) . . . . . . . . . . . . . . . . . . . 342
14.12.5 ADC configuration register 2 (ADC_CFGR2) . . . . . . . . . . . . . . . . . . . 346
14.12.6 ADC sampling time register (ADC_SMPR) . . . . . . . . . . . . . . . . . . . . . 347
14.12.7 ADC watchdog threshold register (ADC_TR) . . . . . . . . . . . . . . . . . . . 348
14.12.8 ADC channel selection register (ADC_CHSELR) . . . . . . . . . . . . . . . . 348
14.12.9 ADC data register (ADC_DR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 349
14.12.10 ADC Calibration factor (ADC_CALFACT) . . . . . . . . . . . . . . . . . . . . . . 349