2015-06-07 10:47 AM
hi everyone i m going to interface encoder with motor the encoder is working perfectly and counting up to 0xFFFF in clock wise direction but when i rotate in counter clockwise direction it,s counting from 0 but from counter the value is start from 4294966870
i know that in hex 0-1=FFFF how to change it to -1 Encoder_Reading = TIM_GetCounter(TIM5);Thanks in advance