Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarification needed on internal grounded ADC channel #11

Open
CrouchingPanda opened this issue Jul 17, 2024 · 2 comments
Open

Clarification needed on internal grounded ADC channel #11

CrouchingPanda opened this issue Jul 17, 2024 · 2 comments

Comments

@CrouchingPanda
Copy link

I am trying to see if below statement applies to my STM32F072RB,

On the stm32f103c, you can omit the sacrificial pin, and an internal grounded ADC channel can be used. If your STM32F1 MCU has such a channel -- likely, the same one, namely 15 -- you can edit the library to support it (and email me).

Could you advise where in the documentation (datasheet or maybe other documents) should I look for this data?

@arpruss
Copy link
Owner

arpruss commented Jul 18, 2024

It's too long ago, so I don't know.

Looking at the datasheet, the stm32f103c only has 10 usable ADC channels. I am guessing that the remaining channels are still available but are grounded, and that's what I'm using.

On your chip, it may be that all 16 channels are usable, in which case you might not have an always-grounded channel, and you'll have to sacrifice one of the 16 to ground.

@CrouchingPanda
Copy link
Author

Thank you.

Based on what is described in README, this sacrificial pin shouldn't be connected to anything. On my PCB unused pins are grounded through a resistor. So then should I ground the sacrifical pin like that as well (externally), or should I leave it fully unconnected?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants