Other Parts Discussed in Thread: CONTROLSUITE
Can somebody tell me, how in 2xPM_Sensorless controlsuite project, I can make sure that the ADCRESULTS are current everytime the innermost control loop (every switching cycle, 10KHz rate as set in the project). The question I asked because for running a closed loop current control the sampled phase currents inside the MCU need to be upgated and that should be the way it is implemented because the control cycle starts with ADC SOC signal triggered by EPWM1A at the same time it jumps to the MainISR.
My question is: I do not see in "f2803xileg_vdc_2XPM.h" or somewhere else that the ADCRESULTS are used inside the MainISR after the analog signals are completed the conversion that is EOC of ADC, otherwise how do we make sure the samples currents are most recent one ?? Let me know how the program is waiting from the moment PWM1A created an interrup to the MainISR to the EOC od ADC.