cancel
Showing results for 
Search instead for 
Did you mean: 

Why does ADC run in injected mode instead of regular mode?

Lzhiy.1
Associate II

in regular mode,ADC with DMA would be faster than injected mode,isn't it right?

1 ACCEPTED SOLUTION

Accepted Solutions
cedric H
ST Employee

Hello @Lzhiy.1​,

I do not know which series you are talking about, but faster to do what ?

Injected mode allows us to store one value per conversion in a dedicated register, and if a regular conversion is ongoing, it will be interrupted to execute the injected conversion.

DMA is required with regular to copy the data from the ADC register to the SRAM, but with injected, we even do not have to copy it. We can directly access to the register.

So, definitely, to read the current, the safer is to use the injected conversion.

Regards

Cedric

View solution in original post

1 REPLY 1
cedric H
ST Employee

Hello @Lzhiy.1​,

I do not know which series you are talking about, but faster to do what ?

Injected mode allows us to store one value per conversion in a dedicated register, and if a regular conversion is ongoing, it will be interrupted to execute the injected conversion.

DMA is required with regular to copy the data from the ADC register to the SRAM, but with injected, we even do not have to copy it. We can directly access to the register.

So, definitely, to read the current, the safer is to use the injected conversion.

Regards

Cedric