Part Number: TMS320F28388D
Dear team:
ADC_setupSOC(ADCA_BASE, ADC_SOC_NUMBER0, ADC_TRIGGER_EPWM1_SOCA,ADC_CH_ADCIN0, 63); ADC_setupSOC(ADCA_BASE, ADC_SOC_NUMBER1, ADC_TRIGGER_EPWM1_SOCA,ADC_CH_ADCIN1, 63); ADC_setupSOC(ADCA_BASE, ADC_SOC_NUMBER2, ADC_TRIGGER_EPWM1_SOCA,ADC_CH_ADCIN2, 63); ADC_setupSOC(ADCA_BASE, ADC_SOC_NUMBER3, ADC_TRIGGER_EPWM1_SOCA,ADC_CH_ADCIN3, 63); ADC_setupSOC(ADCA_BASE, ADC_SOC_NUMBER4, ADC_TRIGGER_EPWM1_SOCA,ADC_CH_ADCIN4, 63); ADC_setupSOC(ADCA_BASE, ADC_SOC_NUMBER5, ADC_TRIGGER_EPWM1_SOCA,ADC_CH_ADCIN5, 63); ADC_setupSOC(ADCA_BASE, ADC_SOC_NUMBER6, ADC_TRIGGER_EPWM1_SOCA,ADC_CH_ADCIN14, 63); ADC_setupSOC(ADCA_BASE, ADC_SOC_NUMBER7, ADC_TRIGGER_EPWM1_SOCA,ADC_CH_ADCIN15, 63);
PWM up-count mode, Trigger ADC sampling when TBCTR = PRD: "ADC_setInterruptPulseMode(ADCA_BASE, ADC_PULSE_END_OF_CONV);"
An interrupt is triggered after sampling is completed:
ADC_setInterruptSource(ADCA_BASE, ADC_INT_NUMBER1, ADC_SOC_NUMBER7); It is measured that it takes 7US from PWM trigger ADC sampling to entry interrupt.
ADC_setInterruptSource(ADCA_BASE, ADC_INT_NUMBER1, ADC_SOC_NUMBER0); It is measured that it takes 1US from PWM trigger ADC sampling to entry interrupt.
Is this time difference because SOC0-15 is refreshed sequentially, so if ADC_SOC_NUMBER7 is used to trigger the interrupt sampling data, then 0-7 are all collected. If it is ADC_SOC_NUMBER1 to trigger, ADC_SOC_NUMBER7 may not be completed yet, and the data read is the last time?
If this is the case, pwm triggers the ADC interrupt for more than 7us. So when the switching frequency is above 120K, will the interrupt frequency be limited by 7us?
Best regards