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.

Speed PR module and Speed Scaler on BLDC_sensored

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

  • Hi ,

    I would like to understand what happens if I'm stopping the rotor of my BLDC

    if the rotor is stopped (before the motor was in running), I get the value speed1.SpeedRpm = 0 after about two seconds.

    In my code , I have written these line in MainIsr :

    if (hall1.CmtnTrigHall==0x7FFF)
    {
    speed1.TimeStamp = VirtualTimer;
    SPEED_PR_MACRO(speed1);
    }