Other Parts Discussed in Thread: DRV8301
Hello
I have the current reconstruction implemented by coping the required code from lab10 to my project.
But now the motor current is unstable and the motor makes more noise.
It seems the main ISR runs no longer on a stable 10 KHz rate but interrupts are missing or triggers twice after each other. Even if all the three currents are available.
So, it seems there is something going wrong with the calculation of the next trigger.
Yellow/Green: PWM outputs Blue: high during execution of the main ISR
3000 rpm, all current are available
Yellow/Green: PWM outputs Blue: high during execution of the main ISR
5000 rpm, not all current are always available.
Execution time of main ISR ~50us Interrupt rate should be 10 kHz (100us)
Any idea how to solve this ?