BLDC之六种霍尔检测换相排序表
/* 1 BLDC 的六种霍尔换相排列表 2 包含正反转 */ //#define BLDC_HALL_CAB //-- //#define BLDC_HALL_CBA //#define BLDC_HALL_ACB //#define BLDC_HALL_BAC //#define BLDC_HALL_ABC #define BLDC_HALL_BCA //----------------CAB------------------------------ #ifdef BLDC_HALL_CAB uint8 Tab_StaHolZen[]={0,5,4,6,2,3,1};//正转 uint8 Tab_StaHolFan[]={0,2,3,1,5,4,6};//反转 #endif //BLDC_HALL_CAB //----------------CBA------------------------------ #ifdef BLDC_HALL_CBA uint8 Tab_StaHolZen[]={0,6,4,5,1,3,2};//正转 uint8 Tab_StaHolFan[]={0,1,3,2,6,4,5};//反转 #endif //BLDC_HALL_CBA //----------------ACB------------------------------ #ifdef BLDC_HALL_ACB uint8 Tab_StaHolZen[]={0,3,2,6,4,5,1};//正转 uint8 Tab_StaHolFan[]={0,4,5,1,3,2,6};//反转 #endif //BLDC_HALL_ACB //----------------ABC------------------------------ #ifdef BLDC_HALL_ABC uint8 Tab_StaHolZen[]={0,3,1,5,4,6,2};//正转 uint8 Tab_StaHolFan[]={0,4,6,2,3,1,5};//反转 #endif //BLDC_HALL_ABC //----------------BAC------------------------------ #ifdef BLDC_HALL_BAC uint8 Tab_StaHolZen[]={0,5,1,3,2,6,4};//正转 uint8 Tab_StaHolFan[]={0,2,6,4,5,1,3};//反转 #endif //BLDC_HALL_BAC //----------------BCA------------------------------ #ifdef BLDC_HALL_BCA uint8 Tab_StaHolZen[]={0,6,2,3,1,5,4};//正转 uint8 Tab_StaHolFan[]={0,1,5,4,6,2,3};//反转 #endif //BLDC_HALL_BCA