We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
hi, I use a 8051 core micro controller in one of my applications where i am suppose to control the motion of a motor. I have used encoder feedback as a measure of motion. The encoder pulses are given to interrupt 0 through a quadrature clock converter IC. The problem is that initially for sometime, the control works OK after which an error is seen in the actual motion of the motor and the displayed value. Hence i think that the interrupt is unable to count the encoder pulses or misses some pulses. Also the crystal connected to the micro controller (20 Mhz) is of the largest value according to the micro controller datasheet. I am unable to locate the problem. Could anyone help??
Could anyone help?? I doubt it with a descrription as vague as the above. 1) what quadrature clock converter IC 2) what derivative of the '51 3) what is the max freq of the encoder pulses 4) show the code for the ISR 5) do you have other interrupts enabled 6) does your code ever disable interrupts (even for a short time)?
Erik