This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TIEVM-VIENNARECT: three-phase Vienna:void VIENNA_calibrateOffset()

Part Number: TIEVM-VIENNARECT

HI

When I look at the offset calculation, I don't quite understand the following

1.Why should “VIENNA_offsetCalCounter” be less than 25000?

2.Why do we start calculation when “VIENNA_offsetCalCounter” is greater than 1000?

3.  What does “VIENNA_HAL_getPWMInterruptFlag(VIENNA_C28x_ISR1_INTERRUPT_TRIG_PWM_BASE) == 1” and "VIENNA_HAL_clearPWMInterruptFlag(VIENNA_C28x_ISR1_INTERRUPT_TRIG_PWM_BASE) " represent?

Would  you like to explain it to me in detail? thanks very much!