2000
Member level 5
Encoder problems
Hello friends,
Once more I need your help. I´m working on a rotary encoder that generates 50 pulses/turn. One of the direction signals is conected directly to the interruption of the 8051 and the other is connected to the P0^3 port, in such a way that when an interruption is generated by a falling edge the P0^3 is checked to see if its 1 or 0 to determine the direction of rotation.
The problem is, when spinning fast the 8051 interprets well the signals and works fine, but when spinning slow it doesn´t know the direction and get lost. What could be wrong? I´ve already looked the signals in a LA and there is no bouncing or glitches. Should I use any logic?
regards,
2000
Hello friends,
Once more I need your help. I´m working on a rotary encoder that generates 50 pulses/turn. One of the direction signals is conected directly to the interruption of the 8051 and the other is connected to the P0^3 port, in such a way that when an interruption is generated by a falling edge the P0^3 is checked to see if its 1 or 0 to determine the direction of rotation.
The problem is, when spinning fast the 8051 interprets well the signals and works fine, but when spinning slow it doesn´t know the direction and get lost. What could be wrong? I´ve already looked the signals in a LA and there is no bouncing or glitches. Should I use any logic?
regards,
2000