Other Parts Discussed in Thread: DRV8312
Hi ,
I'm working with demo code "BLDC_sensored" for DRV8312 C2 KIT. I've read the documentation on SPEED PR module. I don't understand " how to set the
Speedscaler ?
SpeedScaler = (60 * Fclk ) / ( Kp * n * BaseRpm). Can anyone confirm this?
Fclk = 60000000 hz on f28035 and Kp = 128.
If I'm using hall sensor , n is 6 ?
What does it mean " speed1.SpeedScaler = (Uint32)(ISR_FREQUENCY/(1*BASE_FREQ*0.001)); " ?
How is it possible to calculate motor speed in Isr using our setting ?
Best Regards,
Dario