Description: This code for code switch code, coding switch is the digital audio
360 degrees of rotation digital volume and displays use on the open list key shuttle (
Closed) and similar mouse wheel manual count input device.
I use a code switch for five of the pins, with two pins for press
The runner switch (also is equivalent to the middle mouse button). Three other pins are used to
The rotation direction detection and rotation of the number of detection. Pins are respectively for a, b, c
B, c received a ground respectively P2.0 and P2.1 mouth and take two 10 K respectively on pull
Resistance, and a, c need to pick up a respectively in 104, otherwise the capacitance
Because of the code switch contacts jitter can cause minor wrong action. This procedure does not
Use timer, do not take up interrupt, do not use delay, and each code
Segment for judgment, avoid steps all misoperation, super stable performance.
I use of APLS is encoder EC11B can refer to the attachment sequence chart
Encode
To Search:
File list (Check if you may need any files):
编码开关\EC11编码开关.pdf
........\STARTUP.A51
........\STARTUP.LST
........\STARTUP.OBJ
........\开关
........\开关.hex
........\开关.lnp
........\开关.M51
........\开关.Opt
........\开关.plg
........\开关.Uv2
........\开关_Opt.Bak
........\开关_Uv2.Bak
........\编码器代码.c
........\编码器代码.LST
........\编码器代码.OBJ
编码开关