Академический Документы
Профессиональный Документы
Культура Документы
Institute of Radio Physics and Electronics, University of Calcutta, December 18-20, 2006.
Keywords : Biphase , Control system , Encoder reader Fig. (1) Typical encoder waveform showing channel
circuit , Error correction , Forward pulse train , FPGA . B being 900 offset from channel A
I. INTRODUCTION
An incremental biphase encoder is the most
Whenever mechanical rotary motions have to commonly used device in computer-controlled
be monitored, an encoder is the most important feedback system. The microcomputer actuates
interface between the mechanical and the control several final control elements based on the
unit. Encoders transform rotary movement into a information obtained from the encoder. In addition
sequence of electrical pulses. As only increments of to providing positional and directional information,
rotation are detected by a single channel, a second the encoder interface circuit must also perform some
signal, phase shifted by 90 degrees is also generated. special functions to maintain proper operations, such
This second signal, along with the first signal, as missing pulse correction, error correction, reseting
enables the direction of rotation to be determined. the position counter based on control signal from the
The two signals from channel A and B are shown in microcomputer, etc. It requires 5-10 discrete ICs to
Fig. (1) . implement all the above functions. Also certain
types of combinational logic are error prone due to
gate delays or threshold offsets and multivibrator
imprecisions. This paper tries to do away with these
errors as well as reducing drastically the amount of
hardware needed. The scheme is explained in
section II and the implementation details are given in
section III.
134
3rd International Conference on Computers and Devices for Communication (CODEC-06) CIS
Institute of Radio Physics and Electronics, University of Calcutta, December 18-20, 2006.
00
00
10 S4 S2 01
01
11
10 01 11
10
S3
11 11
Fig. (2b) State diagram of the encoder reader circuit
III. IMPLEMENTATION
The program was simulated using ModelSim
XE III 6.a. We give below two snapshots of our
simulations in Fig.s (3a) and (3b). For the first
waveform Fig. (3a), error free signals phase-shifted
by 90 degrees applied to the inputs of the encoder
reader circuit, and the count value is taken after 8
cycles. The counter rightly indicates the value as 32.
For the second waveform Fig. (3b) a test bench was
135
3rd International Conference on Computers and Devices for Communication (CODEC-06) CIS
Institute of Radio Physics and Electronics, University of Calcutta, December 18-20, 2006.
designed to simulate the effect of noise. The signals 32 after 8 cycles, thus indicating that the algorithm
distorted by noise are applied to the inputs of the works even if the inputs are corrupted by noise.
encoder reader circuit, and again the count value is
taken after 8 cycles. Once again, the counter reads
136
3rd International Conference on Computers and Devices for Communication (CODEC-06) CIS
Institute of Radio Physics and Electronics, University of Calcutta, December 18-20, 2006.
137