Skip to main content
GreenGuy
Senior III
April 11, 2024
Solved

Stm32H743 ADC 16bit Really ?

  • April 11, 2024
  • 3 replies
  • 1586 views

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.  

Best answer by RomainR.

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,

 

3 replies

waclawek.jan
Super User
April 11, 2024

And how is resolution (i.e. ADC_CFGR.RES) set?

JW

GreenGuy
GreenGuyAuthor
Senior III
April 11, 2024

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.

mƎALLEm
ST Technical Moderator
April 11, 2024

+

AN5354 "Getting started with the STM32H7 Series MCU 16-bit ADC"

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.
GreenGuy
GreenGuyAuthor
Senior III
April 11, 2024

I have read an5354 previous to posting.  It says nothing regarding choices made in the example for the stm32h743-eval example.

RomainR.
RomainR.Best answer
ST Employee
April 12, 2024

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.