Skip to main content
Nemo
Associate
May 31, 2019
Question

�?STM32H743】ADC gets WRONG values for zero voltage in ADC_DifferentialMode

  • May 31, 2019
  • 3 replies
  • 2012 views

Hi,

I want to use the STM32H743 ADC in differential mode.

At first, I tried the the example STM32Cube\Repository\STM32Cube_FW_H7_V1.3.2\Projects\STM32H743ZI-Nucleo\Examples\ADC\ADC_DifferentialMode and there is something wrong in testing zero voltage.

In this example PB0 and PB1 are used as ADC differential input pins. I connect these two pins together then the differential voltage should be zero. However, the converted input voltage is about -300 mV.

0690X000008aFpmQAE.png

What's wrong with the example?

Looking forward to your reply.

Best regards,

Di

This topic has been closed for replies.

3 replies

waclawek.jan
Super User
May 31, 2019

Did you perform the differential-mode calibration, as outlined in Calibration (ADCAL, ADCALDIF, ADCALLIN, ADC_CALFACT) subchapter of the ADC chapter in Reference Manual?

JW

Nemo
NemoAuthor
Associate
May 31, 2019

Hi, JW:

HAL_ADCEx_Calibration_Start(&AdcHandle, ADC_CALIB_OFFSET, ADC_DIFFERENTIAL_ENDED) is performed in this example.

You can take a look at the whole project STM32Cube\Repository\STM32Cube_FW_H7_V1.3.2\Projects\STM32H743ZI-Nucleo\Examples\ADC\ADC_DifferentialMode . It is a STM32CubeMX example.

Thanks for your reply.

Nemo
NemoAuthor
Associate
June 3, 2019

Hi, I need your help...

Thanks.