Skip to main content
Graduate
April 11, 2024
Solved

Stm32H743 ADC 16bit Really ?

  • April 11, 2024
  • 3 replies
  • 1583 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.  

    This topic has been closed for replies.
    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

    Super User
    April 11, 2024

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

    JW

    GreenGuyAuthor
    Graduate
    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.

    Technical Moderator
    April 11, 2024

    +

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

    GreenGuyAuthor
    Graduate
    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.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,