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: Difference between the single-ended and differential signal

Part Number: TMS320F28379D

Hi every one 

I have a small doubt about ADC 

what is the major difference between the single-ended and differential signal how to write a program for a differential signal using TMS320F28379D?

Can anyone share a sample program? 

  • Hi,

    Majorly, single-ended signal requires single input pin while differential signal requires a pair of input pins therby decreasing the no of availble inputs in differential mode. Please refer to device datasheet and TRM for how pins are assigned in case of single ended and differential signals.

    For sampling differential signals through ADC, the ADC mode should be configured to differential mode and corresponding acquition time should be programmed. PFB the code snippet:

    // Mode configuration
    #if(EX_ADC_RESOLUTION == 12)
        ADC_setMode(ADCA_BASE, ADC_RESOLUTION_12BIT, ADC_MODE_SINGLE_ENDED);
    #elif(EX_ADC_RESOLUTION == 16)
        ADC_setMode(ADCA_BASE, ADC_RESOLUTION_16BIT, ADC_MODE_DIFFERENTIAL);
    #endif
    
    // Acquition time configuration
    #if(EX_ADC_RESOLUTION == 12)
           ADC_setupSOC(ADCA_BASE, ADC_SOC_NUMBER0, ADC_TRIGGER_EPWM1_SOCA,
                        ADC_CH_ADCIN0, 15);
    #elif(EX_ADC_RESOLUTION == 16)
           ADC_setupSOC(ADCA_BASE, ADC_SOC_NUMBER0, ADC_TRIGGER_EPWM1_SOCA,
                        ADC_CH_ADCIN0, 64);
    #endif