31

The STM32F1's reference manual describes "regular" and "injected" ADC channels but is not clear on the difference. What is the difference between the two types and when might you use one or the other?

joeforker
  • 5,596
  • 10
  • 38
  • 59

2 Answers2

25

You can configure the ADC to read in a sequence of channels in a loop. Those channels are being converted regularly. In injected mode conversion is triggered by an external event or by software. An injected conversion has higher priority in comparison to a "regular" conversion and thus interrupts the regular conversions.

The different ADC-Modes are explained in application note AN3116.

13

The injected mode is a mode where the ADC conversion can be "injected" during the conversion of regular channels due to some trigger (timer or something else). This is useful, for example in motor control application , to delay conversion until after some event is complete (such as transistor switching) so that the conversion noise is reduced.

Gustavo Litovsky
  • 7,619
  • 3
  • 25
  • 44
  • 2
    Is this a direct quotation from the reference manual? – joeforker Oct 01 '13 at 13:45
  • you can achieve the same effect with regular conversion modes though, correct? regular conversion mode can be triggered by other events such as timer trigger out – Ocanath Feb 17 '21 at 19:16