2016-11-03 01:28 AM
I have a problem (I think) with PA6 in an STM32F303VCTx using it as an analog input. This pin is shared (along with other things) with opamp2_vout and even though I have not enabled any opamps, I think what I'm reading on ADC2 channel 3 is a steady level from the opamp and not my signal. It appears to operate in digital GPIO modes correctly.
The manual is very ambiguous about the opamp outputs - from the manual''Important note: the amplifier output pin is directly connected to the output pad to minimizethe output impedance. It cannot be used as a general purpose I/O, even if the amplifier isconfigured as a PGA and only connected to the ADC channel.''Is this connection present even if the opamp is not enabled (I assume the default power-up state is not enabled) or is there some specific action I have to take to use this pin other than set it as an analog input in the GPIO setup and allocate the relevant ADC channel?Thanks #adc #stm32f3 #opamp2016-11-15 06:15 AM
Hi frackers,
This note is applicable in following conditions:This is not the case for you as OPAMP clock is disabled.
Is it possible for you to check the same using another pin as ADC channel?
-Mayla-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.
2016-11-30 12:46 AM
I have the same problem as frackers. I can’t connect the OPAMP output to ADC input.
I’m using a STM32f303CB with ADC3 and OPAMP3 in follower mode.
ADC and OPAMP work separately correct, but not if channel 17(OPAMP) is connected to the ADC.
I’ve been trying to solve the problem for a few weeks.
Is there any example code for this case? Or are there known bugs?
Thanks2017-01-13 02:51 PM
tuberide:
Just resolved this problem myself. Channel 17 is for the OPAMP Reference Voltage, NOT the Opamp output (as described in the
document (page 20)). Instead, once your OPAMP is configured you need to configure the ADC to use a specific channel (for OPAMP3 and ADC3 it should be ADC3_IN1).