Skip to main content
Lzhiy.1
Associate II
October 18, 2021
Solved

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

  • October 18, 2021
  • 1 reply
  • 791 views

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

This topic has been closed for replies.
Best answer by cedric H

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

1 reply

cedric H
cedric HAnswer
Technical Moderator
November 12, 2021

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