Skip to main content
Stanislav Sidorov
Visitor II
July 23, 2017
Question

FOC, how to remap driver pins

  • July 23, 2017
  • 0 replies
  • 490 views
Posted on July 23, 2017 at 10:33

Hi there,

The idea is to use the same driver pins for PMSM(FOC based) and BLDC(own library) motors. 

FOC SDK 4.30 allows to initialize the same pins for only one type of motor (PMSM in my case). Is the any way to stop/delete the motor object to use these pins for BLDC?

The way I see it if PMSM is active:

1. Call

PWMC_SwitchOffPWM(oCurrSensor[bMotor]);

 

FOC_Clear(bMotor);

 

MPM_Clear(oMPM[bMotor]);

2. Save settings for specified Timer(PWM) used for PMSM.

3. Initialize PWM for BLDC.

4. Use BLDC.

4. Restore saved setting.

5. Use PMSM.

I would really appreciate any help with this.

Thanks,

Stan

#foc-sdk-4.3.0 #stm32f3 #pmsm
This topic has been closed for replies.