If the output of the CLK and DATA pins is given as: [code] 10101010 11111111 [/code] Which direction is the rotary encoder moving?

If the output of the CLK and DATA pins is given as:
Code:
10101010
11111111
Which direction is the rotary encoder moving?
A. Swinging both clockwise and anticlockwise
B. Anticlockwise
C. Clockwise
D. Still
 
Answer: D
Explanation: If the DATA pin is in sync with the CLK pin, then we can say that it is moving in the clockwise direction. However, here in this case, the DATA pin is not changing at all with respect to the CLK pin and is stalled at 1. This will happen if there is no rotation on the shaft of the rotary encoder. Hence we can say that the encoder is sitting idle or still.
 

Tìm kiếm

Back
Top