Skip to main content
Associate III
August 19, 2024
Solved

ADC1, ADC2 dual mode with differential input

  • August 19, 2024
  • 2 replies
  • 1449 views

ADC1 and ADC2 run in interleaved dual mode using DMA. Resolution for both ADCs is set to 8-bit. ADC1 is sampling CH1 and CH2 in differential mode. The results that I get from DMA are a bit strange: 

graph_adc.png

If my positive input is ~1.65V, if my negative input is also ~1.65V, I get 127 counts? What am I missing here? I would expect that if there is a small pos or neg difference, value will be close to 0 instead of close to 128.

table.png

This topic has been closed for replies.
Best answer by waclawek.jan

waclawekjan_0-1724052696069.png

 

(Adjusted for the 8-bit setting, of course.)

JW

 

 

2 replies

waclawek.jan
waclawek.janBest answer
Super User
August 19, 2024

waclawekjan_0-1724052696069.png

 

(Adjusted for the 8-bit setting, of course.)

JW

 

 

CyberNerdAuthor
Associate III
August 19, 2024

Assuming 12-bit resolution, to get the voltage you need to do this:
CyberNerd_0-1724055500451.png