Part Number: TMS320F28075
Tool/software: Code Composer Studio
Hi,
I am using TMS320f28075 controller. I am using ADCIN14 and ADCIN15 as adc chanel for voltage measurement,I have initalize the adc as foloows.
AdcaRegs.ADCSOC7CTL.bit.TRIGSEL = 5; // Trigger on ePWM1 SOCA/C
AdcaRegs.ADCSOC7CTL.bit.CHSEL = 14; // SOC7 will convert 14
AdcaRegs.ADCSOC7CTL.bit.ACQPS = TRACKPS; // Set sample window to ACQPS+1 SYSCLK periods
AdcaRegs.ADCINTSOCSEL1.bit.SOC0 = 0; // Interrupts will not trigger start of conversion
AdcaRegs.ADCSOC8CTL.bit.TRIGSEL = 5; // Trigger on ePWM1 SOCA/C
AdcaRegs.ADCSOC8CTL.bit.CHSEL = 15; // SOC8 will convert 15
AdcaRegs.ADCSOC8CTL.bit.ACQPS = TRACKPS; // Set sample window to ACQPS+1 SYSCLK periods
AdcaRegs.ADCINTSOCSEL1.bit.SOC0 = 0; // Interrupts will not trigger start of conversion
Is this correct?
I have applied 1.5V at adc input. But I did not get adc count for the same.
Thanks,
Sagar