Part Number: TMS320F280025
Other Parts Discussed in Thread: TMDXIDDK379D
Tool/software:
Hi,
I am using the MotorControl SDK 5.0.2 and there I had a look at the sensored_foc_f28002x project (tmdxiddk379d).
Now in the sensored_foc_hal.c in the function HAL_setupInterrupts, the ADC interrupt source is initialized as following:
// Enable AdcA-ADCINT1- to help verify EoC before result data read
ADC_setInterruptSource(M_IW_ADC_BASE, ADC_INT_NUMBER1,
M_IW_ADC_SOC_NUM);
Now the M_IW_ADC_SOC_NUM is ADC_SOC_NUMBER0, so the ADC interrupt will trigger after the first conversion (C4). Now, IU = C2, IV = A2 and IW = C4, so when the ISR triggers for the controller, only A2 and C4 are ready, the result for C2 might still be ongoing. Is this a bug and the ADC SOC should be ADC_SOC_NUMBER1 or do I oversee something?