This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
I am trying to use Internal ADC in differential mode, but i am not able to find any example code for that.
I have configured the ADC to use in diffrential mode.
The issue is that, do i need to read data on both the pins or single pin.
This link should take you to the portion of the DS where this is explained in more detail: https://www.ti.com/document-viewer/TMS320F28388D/datasheet/GUID-9D6489E8-91DB-4832-9455-28CC8438C50C#TITLE-SPRSP14T4738267-67
Essentially for differential mode you will supply both pins with a differential voltage that is centered about the common mode of the ADC. In this case the common mode would be VREFHI/2.
For instance a voltage on the ADCINxP = VREFHI and ADCINxN =VSSA would give an ADC result of 65535. Likewise ADCINxP = VSSA and ADCINxN = VREFHI would give an ADC result of 0. If ADCINxP = ADCINxN = VREFHI/2 then the ADC result would be mid code of 32767.
Let me know if this helps.
Best,
Matthew