Skip to main content
Visitor II
December 27, 2023
Solved

STM32G431 and RM0440 - references to "ADC12" in documents - what is definition?

  • December 27, 2023
  • 1 reply
  • 1530 views

In datasheet for STM32G431 series and RM0440 (applicable reference), there are references to ADC12 (I'm encountering this when working on ADC converter, pin and channel assignments for an application.)

 

There doesn't appear to be a specific definition of ADC12, however, in a couple of places it appears this is shorthand for "ADC1 OR ADC2". For example, if I encounter ADC12_5 (not a specific quote, but the general idea applies), should I interpret this as "I can use either ADC1 channel 5 or ADC2 channel 5 per my preference)?

 

Thanks for any guidance/clarification.

 

 

    This topic has been closed for replies.
    Best answer by STTwo-32

    Hello @wb0gaz 

    Refering to the RM0440, you can find that the ADC12_IN9 is mapped to both ADC1 and ADC2. So, you can use even ADC1_IN9 or ADC2_IN9.

    Screenshot_2023-12-27-19-16-31-12_e2d5b3f32b79de1d45acd1fad96fbb0f.jpg

    Screenshot_2023-12-27-19-15-27-06_e2d5b3f32b79de1d45acd1fad96fbb0f.jpg

    You can verify this also using CubeMX. After setting the ADC1_IN9, the ADC2_IN9 become impossible to set because their is a conflict with the ADC1_IN9.

    ADC_MAPPING.PNG

    Best Regards.

    STTwo-32 

    1 reply

    STTwo-32Answer
    Technical Moderator
    December 27, 2023

    Hello @wb0gaz 

    Refering to the RM0440, you can find that the ADC12_IN9 is mapped to both ADC1 and ADC2. So, you can use even ADC1_IN9 or ADC2_IN9.

    Screenshot_2023-12-27-19-16-31-12_e2d5b3f32b79de1d45acd1fad96fbb0f.jpg

    Screenshot_2023-12-27-19-15-27-06_e2d5b3f32b79de1d45acd1fad96fbb0f.jpg

    You can verify this also using CubeMX. After setting the ADC1_IN9, the ADC2_IN9 become impossible to set because their is a conflict with the ADC1_IN9.

    ADC_MAPPING.PNG

    Best Regards.

    STTwo-32 

    wb0gazAuthor
    Visitor II
    December 27, 2023

    Thank you!