Other Parts Discussed in Thread: TMS320F28027, CONTROLSUITE
//The clock setting are DSP28_DIVSEL=2 and DSP28_PLLCR=12 ====> 60MHz clock.
//The ADC ISR is obtained from EPWM1- SOC at 1st instant, interrupt at zero, The EPWM1 frequency is 100kHz.
//The device is TMS320F28027.
_iq18 v1, v2, v3, v4, v5, v6, v7;
interrupt void adc_isr(void)
{
v1 = _IQ(AdcResult.ADCRESULT0);
v2 = _IQ(AdcResult.ADCRESULT1);
v3 = _IQ(AdcResult.ADCRESULT2);
v4 = _IQ(AdcResult.ADCRESULT3);
v5 = _IQ(AdcResult.ADCRESULT4);
v6 = _IQ(AdcResult.ADCRESULT5);
v7 = _IQ(AdcResult.ADCRESULT6);
}
1) The ADC ISR is taking 50 micro-seconds to read the 7 ADC channels. To reduce the calculations, I want the ADC values in IQ format. How can I reduce the time required to obtain ADC values in IQ format.
2) I am trying to obtain PI (proportional-integral) controller calculations using these ADC values within 20 microseconds. Please suggest me how can it be done.
Please help me on this.