Skip to main content
Bhavin1
Associate II
January 21, 2022
Solved

Need to measure voltage on ADC1_EXTI11/ADC2_EXTI11(PB11) GPIO on STM32F107VCT6 MCU.

Hi,

I am using STM32F107VCT6 MCU and i need to measure voltage at GPIO PB11.

But there is no any ADC channel connected to this GPIO but i see that this GPIO cab be used as ADC1_EXTI11/ADC2_EXTI11.

So with this Alternate function of GPIO can we measure voltage at this GPIO?

If any one know then please share the sample code for this.

Any help in this will be appreciated more.

Thanks,

Bhavin Maru

This topic has been closed for replies.
Peter BENSCH
Peter BENSCHBest answer
ST Technical Moderator
January 21, 2022

Welcome,@Bhavin​, to the community!

ADCx_EXTI11 is a digital input for the mode Regular Trigger of a conversion.

PB11 cannot be used as an analog input for measuring the voltage at this pin.

Regards

/Peter

In order 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.

2 replies

Peter BENSCH
Peter BENSCHBest answer
ST Technical Moderator
January 21, 2022

Welcome,@Bhavin​, to the community!

ADCx_EXTI11 is a digital input for the mode Regular Trigger of a conversion.

PB11 cannot be used as an analog input for measuring the voltage at this pin.

Regards

/Peter

In order 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.
Bhavin1
Bhavin1Author
Associate II
January 27, 2022

@Peter BENSCH​  Thanks for the reply.

Regards,

Bhavin