2023-09-22 02:57 AM
Hello Community, I am currently working with a stm32f302rc microcontroller, I need to configure my ADC2 to measure the reference voltage of operating amplifier 2 (Vrefopamp2) (it is internally connected to channel 17 of the ADC).
I need this to check if the ADC is working correctly, so the measured value needs to be compared with the expected value.
And the problem is that I can't find the operating voltage range in which to expect the reference voltage.
The datasheet only contains information about Vrefint, are they the same thing?
Solved! Go to Solution.
2023-09-22 09:38 AM - edited 2023-09-22 09:40 AM
Hello @Saddrone
According to datasheet, we can see they are defined as different channels.
However, you need to check the package being used. if there are two PIN for VDDA and VREF. If not, Vref and VDDA are connected. According AN4206 Getting started with STM32F3 series hardware development, fig 2, VDDA and VREF are connected.
Also according to datasheet :
The VREF+ functionality is available only on the 100 pin package. On the 64-pin and 48-pin packages, the VREF+ is internally connected to VDDA.
According to the voltage range, you need to check VDDA for OPAMP in the datasheet
I suggest you read this AN5306 for further information Operational Amplifier (OPAMP) usage in STM32G4 Series - Application note
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.
2023-09-22 04:28 AM
The VREFOPAMP voltage is selectable by using the CALSEL field in the op-amp CSR register. See details in the reference manual:
2023-09-22 09:38 AM - edited 2023-09-22 09:40 AM
Hello @Saddrone
According to datasheet, we can see they are defined as different channels.
However, you need to check the package being used. if there are two PIN for VDDA and VREF. If not, Vref and VDDA are connected. According AN4206 Getting started with STM32F3 series hardware development, fig 2, VDDA and VREF are connected.
Also according to datasheet :
The VREF+ functionality is available only on the 100 pin package. On the 64-pin and 48-pin packages, the VREF+ is internally connected to VDDA.
According to the voltage range, you need to check VDDA for OPAMP in the datasheet
I suggest you read this AN5306 for further information Operational Amplifier (OPAMP) usage in STM32G4 Series - Application note
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.