2024-04-11 07:13 AM
The cubemx example for ADC scan of internal channels for 743-eval shows the converted values being multiplied by 4. So is it really 16 bit or 14? I have verified the necessity of multiplying by 4 to get correct readings for VBat.
Solved! Go to Solution.
2024-04-12 10:26 AM
Hello @GreenGuy
There is an internal resistor divider by 4 between VBAT pin and ADC3_INP17 input channel.
Check the DS12110 Rev 10 in Table 192. VBAT monitoring characteristics the Q ratio on internal VBAT measurement.
It's also explained in RM0433 in section Table 192. VBAT monitoring characteristics.
This is why the ADC_InternalChannelConversion example compute the VBAT voltage and multiply the ADC3_INP17 by Q=4. ADC3 on STM32H74x/75x are 16bits resolution.
Hope it answers to your question.
Best regards,
Romain,
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.
2024-04-11 08:05 AM
And how is resolution (i.e. ADC_CFGR.RES) set?
JW
2024-04-11 08:08 AM
+
AN5354 "Getting started with the STM32H7 Series MCU 16-bit ADC"
2024-04-11 03:18 PM
I have read an5354 previous to posting. It says nothing regarding choices made in the example for the stm32h743-eval example.
2024-04-11 03:19 PM
In cubemx it is set to 16bit. But your question is a good one and I will have to view the register in the debugger to see what is actually being set.
2024-04-12 10:26 AM
Hello @GreenGuy
There is an internal resistor divider by 4 between VBAT pin and ADC3_INP17 input channel.
Check the DS12110 Rev 10 in Table 192. VBAT monitoring characteristics the Q ratio on internal VBAT measurement.
It's also explained in RM0433 in section Table 192. VBAT monitoring characteristics.
This is why the ADC_InternalChannelConversion example compute the VBAT voltage and multiply the ADC3_INP17 by Q=4. ADC3 on STM32H74x/75x are 16bits resolution.
Hope it answers to your question.
Best regards,
Romain,
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.