Skip to main content
OIoni.1
Associate II
June 22, 2021
Question

Hi! I m using uC STM32G491 and I have 2 ADC triggered by TIM1 CCR3. First ADC1 converts 1 channel and ADC2 converts 2 channels in scan mode. How can I know in which JDRy registers it will be stored each conversion result?

  • June 22, 2021
  • 1 reply
  • 566 views

Conversion of ADC1 and first channel of ADC2 will finish theoretically at the same time.

This topic has been closed for replies.

1 reply

Igor Cesko
ST Employee
July 9, 2021

Hi OIoni.1 ,

Each ADC has set of ADC_JDRy registers - where "y" is the conversion result in the injected sequence.

Example:

ADC1 converts only channel 4.

ADC2 converts in sequence channel 7 and the channel 3.

The result from ADC1 channel 4 is stored in ADC1_JDR1 (first converted in sequence).

The result from ADC2 channel 7 is stored in ADC2_JDR1 (first converted channel in sequence).

The result from ADC2 channel 3 is stored in ADC2_JDR2 (second converted channel in sequence).

Regards

Igor