cancel
Showing results for 
Search instead for 
Did you mean: 

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

wb0gaz
Senior

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.

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
STTwo-32
ST Employee

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 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

View solution in original post

2 REPLIES 2
STTwo-32
ST Employee

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 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Thank you!