RM0444 Rev 5 13/1390
RM0444 Contents
38
15.3.13 Timings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 357
15.3.14 Stopping an ongoing conversion (ADSTP) . . . . . . . . . . . . . . . . . . . . . 358
15.4 Conversion on external trigger and trigger polarity (EXTSEL, EXTEN) . 358
15.4.1 Discontinuous mode (DISCEN) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 359
15.4.2 Programmable resolution (RES) - Fast conversion mode . . . . . . . . . . 359
15.4.3 End of conversion, end of sampling phase (EOC, EOSMP flags) . . . . 360
15.4.4 End of conversion sequence (EOS flag) . . . . . . . . . . . . . . . . . . . . . . . 360
15.4.5 Example timing diagrams (single/continuous modes
hardware/software triggers) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 361
15.4.6 Low frequency trigger mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 363
15.5 Data management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 363
15.5.1 Data register and data alignment (ADC_DR, ALIGN) . . . . . . . . . . . . . 363
15.5.2 ADC overrun (OVR, OVRMOD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 363
15.5.3 Managing a sequence of data converted without using the DMA . . . . 365
15.5.4 Managing converted data without using the DMA without overrun . . . 365
15.5.5 Managing converted data using the DMA . . . . . . . . . . . . . . . . . . . . . . 365
15.6 Low-power features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 366
15.6.1 Wait mode conversion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 366
15.6.2 Auto-off mode (AUTOFF) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 367
15.7 Analog window watchdog (AWD1EN, AWD1SGL, AWD1CH,
ADC_AWDxCR, ADC_AWDxTR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 369
15.7.1 Description of analog watchdog 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 369
15.7.2 Description of analog watchdog 2 and 3 . . . . . . . . . . . . . . . . . . . . . . . 370
15.7.3 ADC_AWDx_OUT output signal generation . . . . . . . . . . . . . . . . . . . . 370
15.7.4 Analog Watchdog threshold control . . . . . . . . . . . . . . . . . . . . . . . . . . . 372
15.8 Oversampler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 373
15.8.1 ADC operating modes supported when oversampling . . . . . . . . . . . . 375
15.8.2 Analog watchdog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 375
15.8.3 Triggered mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 375
15.9 Temperature sensor and internal reference voltage . . . . . . . . . . . . . . . . 376
15.10 Battery voltage monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 378
15.11 ADC interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 379
15.12 ADC registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 381
15.12.1 ADC interrupt and status register (ADC_ISR) . . . . . . . . . . . . . . . . . . . 381
15.12.2 ADC interrupt enable register (ADC_IER) . . . . . . . . . . . . . . . . . . . . . . 383
15.12.3 ADC control register (ADC_CR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 385