2018-12-19 12:54 AM
2018-12-19 02:03 AM
For the STM32H7 datasheet the R(AIN) formula given in the other STM32 ADC datasheet section is missing. You can apply it for the H7
2018-12-19 02:50 AM
2018-12-19 02:11 PM
The datasheet also doesn't have the sampling switch resistance value which is required by the formula.
2019-01-01 11:57 AM
I suppose only somebody from ST can answer this question. Is there any way to elevate this question to them?
2019-05-31 02:40 PM
Bumping this up because the current situation has some serious problems.
Issue #1: BOOST bit definition missing in ADC_CR
From reading stm32h743xx.h, bit 9 of ADC_CR should be BOOST1 and bit 8 should be BOOST0
Issue #2: Radc not specified in data sheet
Issue #3: Very convoluted to determine how to drive and configure ADC slow channels
Table 185 calls out the minimum sampling time for a few source impedances (RAIN). Since this is sampling time, this should correspond to tS. However, none of the RAIN values in Table 185 match the RAIN values in Table 184 on the top of page 279!
Looking at the fs data for the direct and fast channels in Table 184 on page 278, I am able to confirm that fs is defined calculated as: fs = fADC / tCONV
This says that for a 14 bit conversion, with an fADC of 36MHz, the sampling time has to be 1us - (0.5 + 14/2)/36MHz = 792ns. Since fADC is 36MHz, this is 28.5 clock cycles. From the reference manual, ADC_SMPR1, the closest sample time selection is 32.5 clock cycles. If I look up 792 ohms for RAIN in Table 185 of the datasheet, there is no entry for 14 bits.
If we used an fADC of 10MHz, the sampling time has to be 1us - (0.5 +14/2)/36MHz = 250ns. Since fADC is 10MHz, this is 2.5 clock cycles. From the reference manual, ADC_SMPR1, this matches one of the sample time selection values.