Title :
An anti-jamming counting approach for pulse signal of displacement sensor
Author :
Han, Hongbiao ; Li, Jishun
Author_Institution :
Sch. of Mechatron. Eng., Henan Univ. of Sci. & Technol., Luoyang, China
Abstract :
This paper analyzes the variation of A-phase and B-phase pulse signals that displacement sensor outputs. A new anti-jamming counting approach is designed according to Gray code. This counting approach does not cause error count and counting precision is improved by four times frequency count. The principle of hardware and software is introduced in two application examples. In the first example, the input ports of AT89C52 MCU are connected to the outputs of hand rotary encoder. The MCU constantly checks the state of inputs in the timer interrupt and counts with this counting approach, then the count value is transfered to host computer through the RS422 interface. In the other example, the outputs of optical encoder are connected to the I/O ports of CPLD/FPGA chip which can count with this counting approach. Then the count value is transfered to host MCU/DSP through data lines. The applications resulted that the approach is good and the hardware circuit is simple, stable and reliable. The method has a certain practical value and can be applied to the anti-jamming counting for the other sensors which have the same output waveform.
Keywords :
Gray codes; digital signal processing chips; encoding; field programmable gate arrays; jamming; peripheral interfaces; programmable logic devices; A-phase pulse signals; AT89C52 MCU; B-phase pulse signals; CPLD-FPGA chip; Gray code; RS422 interface; anti-jamming counting; displacement sensor; hand rotary encoder; optical encoder; anti-jamming; count; encoder; pulse;
Conference_Titel :
Computer Application and System Modeling (ICCASM), 2010 International Conference on
Conference_Location :
Taiyuan
Print_ISBN :
978-1-4244-7235-2
Electronic_ISBN :
978-1-4244-7237-6
DOI :
10.1109/ICCASM.2010.5622153