hi,
i attached the function here:
int Get_SPD_Feedback()
{
unsigned int Temp;
Temp = DRV10987Q_Read(DRV10987Q_MotorPeriod_Reg) ;
if (Temp == 0) Temp = 40000;
Temp = 10922667/(long)Temp;//2^14*1000*1000/M_CloseMax_Spd
return Temp;
}
1. i didnt understand why temp gets 40000 if temp ==0 ?
2. i saw that you got to this number 10922667 while M_CloseMax_Spd=1500
why multiply 2^14*1000*1000 what is the meaning of each number?
what is the 2^14 represent?
thanks, liraz