cancel
Showing results for 
Search instead for 
Did you mean: 

STM32G050C8T6 ADC_IN11: inconsistency in the datasheet?

AHame
Associate II

Hello,

According to the datasheet PB7 can be used as  ADC_IN11.

Is this an error in datasheet? ADC_IN11 is already used by PB10 and cubeMX doesn't seem to allow me to use PB7 or to remap this pin. How can I use ADC_IN11 on pin PB7 as mentioned in datasheet?

Thanks

AHame_0-1712593418190.png

 

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @AHame,

the DS is unclear as it indicates two possible bondings of the ADC inputs without making the distinction between packages. A decision was made to make the ADC inputs available on smaller packages even if the primary pin dedicated for the function is not available.

So LQFP48 has for example ADC_IN11 bonded to PB10, but as PB10 is not on small packages, the ADC_IN11 is rerouted to PB7 on those. But on LQFP48, ADC_In11 is only on PB10.

I explained the situation to the datasheet responsible and it should be fixed soon.

BR,

J

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

12 REPLIES 12

Interesting catch..

Also I don't see ADC_IN14 go anywhere, and ADC_IN15 routes to PA11/PB11/PA9 and ADC_IN16 PA12/PB12/PA10, but some of those may be bond-out related

https://www.st.com/resource/en/datasheet/stm32g050c8.pdf

@SofLit 

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
SofLit
ST Employee

Hello all,

Need to check internally and get back to you as soon as I have a feedback.

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.

Also I don't see ADC_IN14 go anywhere


Just for your information: ADC_IN12, ADC_IN13 and ADC_IN14 are tied internally to internal sources:

RM0454 rev 5 / Figure 32.:

SofLit_0-1712670607757.png

I also have a doubt regarding ADC_IN16: mapped on PB12 and PA12!

Need to check..

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.
Bubbles
ST Employee

Generally speaking the DS is usually more accurate than tools like CubeMX

BR,

J

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.

Yes, didn't get to the RM when I posted. Don't see any reference in the DS.

Perhaps some "note" related to VBAT pin would be appropriate? The DS is frequently used by HW designers to get the lay-of-the-land without getting dragged into the specifics at a SW / register level.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

Would definitely agree there, but it's always good to check for internal consistency with CubeMX, .SVD files, include files and docs.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
AHame
Associate II

Sure, I agree that the source of truth should be the datasheet not cube, but I usually use both the datasheet and Cube just to sanity check during the hardware design.

That being said my question was regarding ADC_IN11 and it is still not clear to me how I'm supposed to use PB7 configured as an ADC input ( ADC_IN11).

Should I assume that PB10 and PB7  are internally connected on the die? That would mean that if I configure the ADC channel 11 using the ADC registers  I could then use both PB7 or PB10 for the input pin? Seems strange to me but that could technically be possible. 

 

Thanks

AHame
Associate II

@SofLit Any updates on that case ? I'll do some testing on my end but I'd like an official answer.

If the datasheet is indeed wrong I would need to spin a new board so please let me know as soon as possible.

Thanks

@AHame 

I didn't get a feedback yet. I will keep you informed as soon as I have one. So please be patient 🙂.

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.