Description: Code for encoding the switch code, coding switch is in the digital audio
The number of 360-degree rotating display with the volume, as well as the (one-touch open Shuttle
Clearance) and similar to manually count the mouse wheel input device.
I use the code switch for the 5-pin, 2 pin for which the press
Rotary switch (it is equivalent to middle mouse button). In addition to 3-pin
Detection of rotation direction and rotation end detection step. Pin, respectively, for a, b, c
b grounding a, c, respectively, from P2.0 and P2.1, respectively, then the mouth and pull the two 10K
Resistance, and a, c, respectively, of the need to take a capacitance 104, or
Because the coding of the contact switch will cause a slight jitter malfunction. This procedure does not
The use of timers, interrupt off, do not use delay code, and each
Determine the number of sub-step, to avoid all the wrong moves, super stable performance.
I use the encoder is the APLS can refer to the annex EC11B
To Search:
File list (Check if you may need any files):
编码开关
........\EC11编码开关.pdf
........\编码器代码.c