Other Parts Discussed in Thread: CONTROLSUITE
Hi,
i have a question about the pwm interrupt management in the following project:
controlSUITE\development_kits\DRV830x-HC-C2-KIT_v104\PM_Sensorless
For me, it looks like that the MainISR function and the SOCs for measuring the currents and the voltages are all triggered by CNT_zero event of pwm counter.
In MainISR the measured values are needed to calculate pwm duty cycle. How can you be sure that the adc result registers has been updated with the new measured values before you begin to use them for calculation? Did you calculated the number of cycles that are needed to measure and the number of cycles that are needed to come to the part of code where they are needed?
Thanks for your support!
Best regards,
Felix