English
Language : 

AN4195 Datasheet, PDF (2/24 Pages) STMicroelectronics – STM32F30x ADC modes and application
Contents
Contents
1
Comparison between ADC F1 family and F3 family . . . . . . . . . . . . . . . . 4
1.1 STM32 ADC F3 family main features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.1.1 Using the ADC in regular conversion . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.1.2 ADC channel input mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.1.3 Auto-Delay controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.2 Difference between STM32ADC F1 and F3 family . . . . . . . . . . . . . . . . . . 5
2
Independent modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2.1 Regular conversion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2.1.1 Single or multi-channel configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2.1.2 Single or continuous conversion mode . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2.1.3 How to use the ADC in regular conversion . . . . . . . . . . . . . . . . . . . . . . . 8
2.1.4 Application examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.2 Injected conversion mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.2.1 Triggered injection mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.2.2 Auto-injection mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.2.3 Queue of context for injected conversion . . . . . . . . . . . . . . . . . . . . . . . 11
2.2.4 Using the ADC in injected conversion . . . . . . . . . . . . . . . . . . . . . . . . . . 13
2.2.5 Application examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
3
Dual modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
3.1 Dual injected simultaneous mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
3.2 Dual regular simultaneous mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
3.2.1 Using the EOC/EOS flags and interrupts . . . . . . . . . . . . . . . . . . . . . . . . 16
3.2.2 Using the DMA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
3.2.3 Application example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
3.3 Dual interleaved mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
3.3.1 Using the EOC/EOS flags and interrupts . . . . . . . . . . . . . . . . . . . . . . . . 18
3.3.2 Using the DMA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
3.3.3 Application example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
3.4 Dual alternate trigger mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
3.4.1 Application example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
4
Conclusion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
2/24
DocID023897 Rev 1