Question
Why the maximum value of Tim4Encoder is 127 rather than 32767?
int16_t GetTim4Encoder(){
Tim4Encoder = __HAL_TIM_GET_COUNTER(&htim4);
//__HAL_TIM_SET_COUNTER(&htim4,0);
return Tim4Encoder;
}
int16_t GetTim4Encoder(){
Tim4Encoder = __HAL_TIM_GET_COUNTER(&htim4);
//__HAL_TIM_SET_COUNTER(&htim4,0);
return Tim4Encoder;
}
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.