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.

TMS320F28379D: A0 and A1 ADC channels seem to be reading summed up/relative values

Part Number: TMS320F28379D


I am trying to make the example code adc_ppb_delay_cpu01 to work. I am using the control card for TMS320F28379D placed on a custom docking station board. 

I am providing voltage inputs to both channels simultaneously which I learnt from this thread. https://e2e.ti.com/support/microcontrollers/c2000/f/171/t/662383

But even then I am seeing different readings from the channels and it seems like that A1 is displaying result by adding up the value of A0 and some offset. 

Here are some observations:

Input = 1V to both channels ====> A0 = 380 ,  A1 =  1390

Input = 2V to both channels ====>  A0 = 797, A1 = 2750

Input = 3V to both channels. ====> A0 = 1248, A1 = 4095 (Seems to have maxed out).

Input = 4V to both channels ====> A0 = 1684, A1 = 4095 (maxed again).

Input = 0V to A0 and 1V to A1, ====> A0 = 32, A1 = 1390 

Input = 1V to A0 and 0V to A1, ====> A0 = 320, A1 = 0

(All these voltage levels are measured at the controller input pin broken out on the control card just to make sure they are right).

Testing A0 only using a different code, provides the correct values in the A0 register. 4V gives a count of 1290, 2.25V gives a count of 720 and so on.  Which can be read easily and made sense of.

Could you please help me in resolving this issue? 

I plan to eventually use 4 channels from ADCA itself. So I want independent ADC readings on all 4 channels. 

 

  • Hi Shamanth,

    When you applied 4V was there anything to limit the current?  If you apply 4V with a low impedance source, the ADC inputs will almost certainly be damaged (see DS excerpt below):

    In your second case, I'm not sure I follow how the voltages are correctly corresponding to the input voltage.  If the VREFHI is nominally 3.0V, then 4V should max out the output (4095) and 2.25V should give roughly (2.25/3.0)*(4096) = 3413 (see TRM excerpt below):