Hi
It doesn’t matter how you connect phases. It will work in any case. However, it determines the direction in which the motor rotates, so if you switch two phases, you change the direction.
You can change the direction by software.
In the MCS12ZVML128_BLDC_Sensorless.c there are following constants:
const char MaskVal[6] = {0x34,0x1c, 0x13,0x31, 0x0d,0x07};
const char OutCtl[6] = {0x0c,0x30, 0x30,0x03, 0x03,0x0c};
const char BemfPhase[6] = {0x03,0x02, 0x01,0x03, 0x02,0x01};
then replace 0-5 1-4 2-3.
const char MaskVal[6] = {0x07,0x0d, 0x31,0x13, 0x1c,0x34};
const char OutCtl[6] = {0x0c,0x03, 0x03,0x30, 0x30,0x0c};
const char BemfPhase[6] = {0x01,0x02, 0x03,0x01, 0x02,0x03};
Note: Do not change the direction while the motor is running.
Unfortunately, we don’t have any application for a resolver.
Regards
Daniel