cancel
Showing results for 
Search instead for 
Did you mean: 

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

Bhavin1
Associate II

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

1 ACCEPTED SOLUTION

Accepted Solutions
Peter BENSCH
ST Employee

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.

View solution in original post

2 REPLIES 2
Peter BENSCH
ST Employee

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
Associate II

@Peter BENSCH​  Thanks for the reply.

Regards,

Bhavin