CN1776373A - Phase demodulating circuit for incremeutal rotary encoder - Google Patents

Phase demodulating circuit for incremeutal rotary encoder Download PDF

Info

Publication number
CN1776373A
CN1776373A CN 200510110659 CN200510110659A CN1776373A CN 1776373 A CN1776373 A CN 1776373A CN 200510110659 CN200510110659 CN 200510110659 CN 200510110659 A CN200510110659 A CN 200510110659A CN 1776373 A CN1776373 A CN 1776373A
Authority
CN
China
Prior art keywords
pin
circuit
rotary encoder
incremental rotary
resistance
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN 200510110659
Other languages
Chinese (zh)
Other versions
CN100373131C (en
Inventor
李芳�
华学明
吴毅雄
赵楠
宋政
刘伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Jiaotong University
Original Assignee
Shanghai Jiaotong University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Jiaotong University filed Critical Shanghai Jiaotong University
Priority to CNB2005101106593A priority Critical patent/CN100373131C/en
Publication of CN1776373A publication Critical patent/CN1776373A/en
Application granted granted Critical
Publication of CN100373131C publication Critical patent/CN100373131C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Transmission And Conversion Of Sensor Element Output (AREA)

Abstract

The phase discrimination circuit includes shaping circuit, exclusive or circuit, RCD protective circuit for eliminating dithering, and J-K master-slave flip-flop circuit. The shaping circuit carries out shaping for two routes of impulse waveform generated by increment type rotary encoder. Carrying out exclusive or operation for shaped two routes of impulse, the exclusive or circuit removes overlap section of two routes of impulse so that single impulse is output. The RCD protective circuit carries out filtering and time delay process for the said single impulse. Recognizing the processed impulse, the J-K master-slave flip-flop circuit determines rotation direction of increment type rotary encoder i.e. clockwise or anticlockwise. The invention can separate impulses with 90 degrees phase difference output from rotation type encoder in two channels, determining direction of impulse and counting impulse. Advantages are: simplifying programs of processor, high reliability and portability.

Description

The phase discriminator of incremental rotary encoder
Technical field
The present invention relates to a kind of circuit of electronic technology field, specifically is a kind of phase discriminator of incremental rotary encoder.
Background technology
At present, along with the continuous appearance of electronic product and emerging digital product, its good looking appearance, and traditional adjusting knob---potentiometer is an analog element, and range of adjustment is narrow, and consistance is poor, can't satisfy the demands.Modern digital product, man-machine interface design adopt single knob to cooperate button to realize mostly, promptly select the parameter that will revise by the switching of button, regulate incremental rotary encoder and carry out the modification of parameter.For different parameters, different scopes is arranged, so use single knob to regulate just to require this knob be " non-memory type ", so incremental rotary encoder has obtained using widely.What incremental rotary encoder was exported is pulse signal, and promptly digital signal can be easily by computer Recognition, and error is little, and the precision height can adapt to different range of adjustment.But, now mostly adopt " software " to realize the purpose of " phase demodulation " for the identification of incremental rotary encoder signal, can increase the burden of single-chip microcomputer or other main control microprocessors like this, the software phase demodulation need be through constantly groping to determine the condition of logic determines simultaneously, otherwise can cause miscount, thereby cause error.
Retrieval through the prior art document is found, in " computer automatic analysis and control " 2000, Vol8, No.3, " a kind of realization of high precision rotary encoder single-chip microcomputer counting circuit " literary composition of the last publication of P51-52, this article has been introduced a kind of incremental rotary encoder single-chip microcomputer counting circuit, and this circuit comprises direction identification circuit, two-way counting circuit.But this counting circuit more complicated is used a large amount of chips, adopts the mode of parallel bus to insert single-chip microcomputer, has taken a large amount of mouth lines, the resource of having wasted single-chip microcomputer.
Summary of the invention
The objective of the invention is at the deficiencies in the prior art and defective, a kind of phase discriminator of incremental rotary encoder is provided, it can be connected with single-chip microcomputer or other microprocessor chips such as DSP etc. easily, the effective recognition sense of rotation, finish counting, and hardware circuit is simplified greatly.
The present invention is achieved by the following technical solutions, the present invention includes: shaping circuit, XOR circuit, RCD disappear and tremble holding circuit and J-K master-slave flip-flop circuit.Wherein shaping circuit two-way pulse waveform that incremental rotary encoder is produced is carried out shaping and is made irregular waveform rule, is convenient to the identification of subsequent conditioning circuit; XOR is carried out in the two-way pulse of XOR circuit after to shaping, removes two-way pulse overlap part, makes the two-way pulse become single pulse.Thereby RCD disappears and trembles single pulse that holding circuit produces XOR circuit and carry out filtering delay-time and handle and make pulse be more suitable for the requirement of subsequent conditioning circuit.Thereby the pulse after J-K master-slave flip-flop circuit is handled by foregoing circuit discern judge incremental rotary encoder sense of rotation promptly clockwise or rotation counterclockwise, and make other digit chips identifications of being more convenient for of the waveform of incremental rotary encoder output.
Described shaping circuit is made up of 42 inputs or door 74LS32 and resistance R 4, R5.The A phase signals of incremental rotary encoder output is received 9,10 pin of 74LS32, and connect with signal 12,13 pin of 74LS32 of B cushion, and shaping is by 8, the 11 pin output of 74LS32.Resistance R 4, R5 are current-limiting resistances.Resistance R 4 one ends are connected the A place, other end ground connection.Resistance R 5 one ends are connected the B place, other end ground connection.
Described RCD disappears and trembles holding circuit, is made up of resistance R 1, R2, R3, capacitor C 1, C2, C3, diode D1, D2, D3.Resistance R 1, R2, R3 one end link to each other with the anode of diode D1, D2, D3 respectively, and the other end links to each other with the anode of capacitor C 1, C2, C3.The negativing ending grounding of capacitor C 1, C2, C3.Electric capacity charges by resistance, and when pulse high level disappeared, electric capacity was by resistance and diode discharge, thereby reached the effect that disappears and tremble.
In order accurately to judge the direction that incremental rotary encoder is stirred; the phase place of avoiding the two-way pulse of the incremental rotary encoder output that the inconsistency of components and parts causes be not strict in advance or the phenomenon that lags behind; thereby designed to disappear and trembled holding circuit, the feature of this circuit is that three's filter constant must be greater than the recurrence interval of incremental rotary encoder.
Described XOR circuit is made up of 42 inputs or door 74LS32,42 input nand gate 74LS132.74LS32 realizes or logic that 74LS132 realizes NAND Logic, and 1 pin of 74LS32,2 pin link to each other with 1 pin, 2 pin of 74LS132 respectively.3 pin of 74LS32 link to each other with 5 pin of 74LS132; 3 pin of 74LS132 link to each other with 4 pin of 74LS132, through the 6 pin output of 74LS132, thereby realize logical xor function.
Output two-way pulse A, B when incremental rotary encoder is stirred, if 1/4 cycle of the phase-lead B of A when stirring clockwise, on the contrary 1/4 cycle of the phase lag B of A.Utilize these characteristics of this incremental rotary encoder to judge, but the real-time of handling like this detecting require very high by the precedence relationship that detects the two-way impulse phase.The pulse that lags behind if can keep the pulse that phase place shifts to an earlier date is removed, and so only detects the direction of stirring that single pulse just also can be judged incremental rotary encoder, has saved the time of system.Require the present invention to design XOR circuit based on this.
Described J-K master-slave flip-flop circuit adopts the 74LS78 chip to realize.In order to detect stirring direction and can counting of incremental rotary encoder, designed J-K master-slave flip-flop 74LS78 circuit to the pulse that incremental rotary encoder produces.
The invention has the advantages that hardware circuit is simplified greatly, only need two signal wires just can be connected, realize the judgement of the sense of rotation of rotary incremental rotary encoder with other digital circuit.Thereby can simplify the program of single-chip microcomputer or other main control microprocessors greatly, improve the reliability of counting, speed is fast.Simultaneously, the present invention has good portability, needs only the Q1 with the present invention's output, 13 pin of Q2[74LS78,8 pin] being connected with other digital circuits gets final product.
Description of drawings
Fig. 1 is circuit theory diagrams of the present invention.
Embodiment
As shown in Figure 1, the present invention includes: shaping circuit 1, XOR circuit 2, RCD disappear and tremble holding circuit 3 and J-K master-slave flip-flop circuit 4.Wherein the two-way pulse waveform that produces of the 1 pair of incremental rotary encoder of shaping circuit is carried out shaping and is made irregular waveform rule, is convenient to the identification of subsequent conditioning circuit; XOR is carried out in two-way pulse after 2 pairs of shapings of XOR circuit, removes two-way pulse overlap part, makes the two-way pulse become single pulse.Thereby RCD disappears and trembles single pulse that 3 pairs of XOR circuit of holding circuit 2 produce and carry out filtering delay-time and handle and make pulse be more suitable for the requirement of subsequent conditioning circuit.Thereby the pulse after J-K master-slave flip-flop circuit 4 is handled by foregoing circuit discern judge incremental rotary encoder sense of rotation promptly clockwise or rotation counterclockwise, and make other digit chips identifications of being more convenient for of the waveform of incremental rotary encoder output.
Described shaping circuit is made up of 42 inputs or door 74LS32 and resistance R 4, R5.The A phase signals of incremental rotary encoder output is received 9,10 pin of 74LS32, and connect with signal 12,13 pin of 74LS32 of B cushion, and shaping is by 8, the 11 pin output of 74LS32.Resistance R 4, R5 are current-limiting resistances.Resistance R 4 one ends are connected the A place, other end ground connection.Resistance R 5 one ends are connected the B place, other end ground connection.
Described RCD disappears and trembles holding circuit, is made up of resistance R 1, R2, R3, capacitor C 1, C2, C3, diode D1, D2, D3.Resistance R 1, R2, R3 one end link to each other with the anode of diode D1, D2, D3 respectively, and the other end links to each other with the anode of capacitor C 1, C2, C3.The negativing ending grounding of capacitor C 1, C2, C3.Capacitor C 1, C2, C3 are by resistance R 1, R2, R3 charging, and when pulse high level disappeared, capacitor C 1, C2, C3 discharged, thereby reach the effect that disappears and tremble by resistance R 1, R2, R3 and diode D1, D2, D3.
Described XOR circuit is made up of 42 inputs or door 74LS32,42 input nand gate 74LS132.74LS32 realizes or logic that 74LS132 realizes NAND Logic, and 1 pin of 74LS32,2 pin link to each other with 1 pin, 2 pin of 74LS132 respectively.3 pin of 74LS32 link to each other with 5 pin of 74LS132; 3 pin of 74LS132 link to each other with 4 pin of 74LS132, through the 6 pin output of 74LS132, thereby realize logical xor function.
Described J-K master-slave flip-flop circuit adopts the 74LS78 chip to realize.In order to detect stirring direction and can counting of incremental rotary encoder, designed J-K master-slave flip-flop 74LS78 circuit to the pulse that incremental rotary encoder produces.74LS78 is two principal and subordinate's J-K flip flops.2 pin, 6 pin are prefabricated end SD; 5 pin are public removing end CD; 1 pin is common clock CLK; 3 pin, 7 pin are input J1, J2; 14 pin, 7 pin are input K1, K2 end.74LS78 adopts the power supply of 5V power supply.
42 inputs or door 74LS32,42 input nand gate 74LS132, the integrated control chip of two principal and subordinate's J-K flip flop 74LS78, each integrated control chip is produced by ST company.

Claims (6)

1, a kind of phase discriminator of incremental rotary encoder, comprise: shaping circuit (1), XOR circuit (2), RCD disappear and tremble holding circuit (3) and J-K master-slave flip-flop circuit (4), it is characterized in that, the two-way pulse waveform that shaping circuit (1) produces incremental rotary encoder is carried out shaping makes irregular waveform rule, is convenient to the identification of subsequent conditioning circuit; XOR circuit (2) is carried out XOR to the two-way pulse after the shaping, removes two-way pulse overlap part, makes the two-way pulse become single pulse; RCD disappear tremble holding circuit (3) to XOR circuit (2) thus the single pulse that produces carry out filtering delay-time and handle and make pulse be more suitable for the requirement of subsequent conditioning circuit; J-K master-slave flip-flop circuit (4) thus the pulse after handling by foregoing circuit discern judge incremental rotary encoder sense of rotation promptly clockwise or rotation counterclockwise, and make the digit chip identification of being more convenient for of the waveform of incremental rotary encoder output.
2, the phase discriminator of incremental rotary encoder according to claim 1, it is characterized in that, described shaping circuit (1), form by 42 inputs or door 74LS32 and resistance R 4, R5, the A phase signals of incremental rotary encoder output is received 9,10 pin of 74LS32, B connects with signal, and 12,13 pin of 74LS32 cushion, shaping, 8,11 pin output by 74LS32, resistance R 4, R5 are current-limiting resistances, resistance R 4 one ends are connected the A place, other end ground connection, resistance R 5 one ends are connected the B place, other end ground connection.
3, the phase discriminator of incremental rotary encoder according to claim 1, described XOR circuit (2), form by 42 inputs or door 74LS32,42 input nand gate 74LS132,74LS32 realizes or logic, 74LS132 realizes NAND Logic, 1 pin of 74LS32,2 pin link to each other with 1 pin, 2 pin of 74LS132 respectively, and 3 pin of 74LS32 link to each other with 5 pin of 74LS132; 3 pin of 74LS132 link to each other with 4 pin of 74LS132, through the 6 pin output of 74LS132.
4; the phase discriminator of incremental rotary encoder according to claim 1; it is characterized in that; described RCD disappears and trembles holding circuit (3); by resistance R 1; R2; R3; capacitor C 1; C2; C3; diode D1; D2; D3 forms; resistance R 1; R2; R3 one end respectively with diode D1; D2; the anode of D3 links to each other; the other end and capacitor C 1; C2; the anode of C3 links to each other; capacitor C 1; C2; the negativing ending grounding of C3; capacitor C 1; C2; C3 is by resistance R 1; R2; the R3 charging; when pulse high level disappears, capacitor C 1; C2; C3 is by resistance R 1; R2; R3 and diode D1; D2; the D3 discharge.
5, the phase discriminator of incremental rotary encoder according to claim 1, it is characterized in that, described J-K master-slave flip-flop circuit (4), adopt the 74LS78 chip to realize, 74LS78 is two principal and subordinate's J-K flip flops, and 2 pin, 6 pin are prefabricated end SD, 5 pin are public removing end CD, 1 pin is common clock CLK, and 3 pin, 7 pin are input J1, J2, and 14 pin, 7 pin are input K1, K2 end.
6, the phase discriminator of incremental rotary encoder according to claim 5 is characterized in that, 74LS78 adopts the power supply of 5V power supply.
CNB2005101106593A 2005-11-24 2005-11-24 Phase demodulating circuit for incremeutal rotary encoder Expired - Fee Related CN100373131C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005101106593A CN100373131C (en) 2005-11-24 2005-11-24 Phase demodulating circuit for incremeutal rotary encoder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005101106593A CN100373131C (en) 2005-11-24 2005-11-24 Phase demodulating circuit for incremeutal rotary encoder

Publications (2)

Publication Number Publication Date
CN1776373A true CN1776373A (en) 2006-05-24
CN100373131C CN100373131C (en) 2008-03-05

Family

ID=36766010

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005101106593A Expired - Fee Related CN100373131C (en) 2005-11-24 2005-11-24 Phase demodulating circuit for incremeutal rotary encoder

Country Status (1)

Country Link
CN (1) CN100373131C (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101660925B (en) * 2009-09-23 2011-01-12 宁波大学 Processing method of interference signals in decoding process of digital coder
CN103152016A (en) * 2012-12-21 2013-06-12 贵州航天凯山石油仪器有限公司 Shaping method and circuit for photoelectricity code circuit output signal
CN103994781A (en) * 2014-05-06 2014-08-20 盛铂科技(上海)有限公司 Two-phase signal processing circuit of rotary encoder and signal processing method thereof
CN104965100A (en) * 2015-05-15 2015-10-07 中国农业大学 Agricultural speed and distance measuring apparatus
CN105263189A (en) * 2015-09-14 2016-01-20 海能达通信股份有限公司 Method and terminal for realizing channel type processing
CN105486329A (en) * 2014-10-01 2016-04-13 Ad技术有限公司 Decoding circuit for rotary encoder
CN107449376A (en) * 2017-09-15 2017-12-08 深圳大学 A kind of steering wheel angle acquisition system in real time
CN108163662A (en) * 2017-11-23 2018-06-15 中景恒基云端物联网科技成都有限公司 A kind of staircase speed based on rotary encoder and retrograde detection method and device
CN111142428A (en) * 2019-12-13 2020-05-12 芜湖宏景电子股份有限公司 Detection circuit of encoder adopting AD port line
CN114545819A (en) * 2022-02-11 2022-05-27 芜湖宏景电子股份有限公司 Detection circuit using AD port line as encoder
TWI777686B (en) * 2021-07-23 2022-09-11 禾一電子科技有限公司 Electronic rotary encoder

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4831871A (en) * 1987-07-30 1989-05-23 Frederic Malinet Process and apparatus for calculation of the instantaneous speed of a tool
CN2499794Y (en) * 2001-09-28 2002-07-10 沈阳工业学院 Angle measurer
CN1300946C (en) * 2003-11-27 2007-02-14 中国科学院半导体研究所 Phase-locked loop frequency synthesizer

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101660925B (en) * 2009-09-23 2011-01-12 宁波大学 Processing method of interference signals in decoding process of digital coder
CN103152016A (en) * 2012-12-21 2013-06-12 贵州航天凯山石油仪器有限公司 Shaping method and circuit for photoelectricity code circuit output signal
CN103994781B (en) * 2014-05-06 2016-11-16 盛铂科技(上海)有限公司 A kind of rotary encoder biphase signaling processes circuit and signal processing method thereof
CN103994781A (en) * 2014-05-06 2014-08-20 盛铂科技(上海)有限公司 Two-phase signal processing circuit of rotary encoder and signal processing method thereof
CN105928547B (en) * 2014-05-06 2018-06-22 盛铂科技(上海)有限公司 A kind of rotary encoder biphase signaling processing circuit and its signal processing method
CN105910629B (en) * 2014-05-06 2018-01-12 盛铂科技(上海)有限公司 A kind of rotary encoder biphase signaling process circuit and its signal processing method
CN105910629A (en) * 2014-05-06 2016-08-31 盛铂科技(上海)有限公司 Rotary encoder two-phase signal processing circuit and signal processing method thereof
CN105928547A (en) * 2014-05-06 2016-09-07 盛铂科技(上海)有限公司 Two-phase signal processing circuit and method of rotary encoder
CN105486329A (en) * 2014-10-01 2016-04-13 Ad技术有限公司 Decoding circuit for rotary encoder
CN105486329B (en) * 2014-10-01 2018-01-23 Ad技术有限公司 The decoding circuit of rotary encoder
CN104965100A (en) * 2015-05-15 2015-10-07 中国农业大学 Agricultural speed and distance measuring apparatus
CN104965100B (en) * 2015-05-15 2018-09-04 中国农业大学 It is agricultural to test the speed and range unit
CN105263189A (en) * 2015-09-14 2016-01-20 海能达通信股份有限公司 Method and terminal for realizing channel type processing
CN105263189B (en) * 2015-09-14 2019-01-15 海能达通信股份有限公司 Realize the method and terminal of channel type processing
CN107449376A (en) * 2017-09-15 2017-12-08 深圳大学 A kind of steering wheel angle acquisition system in real time
CN107449376B (en) * 2017-09-15 2024-05-17 深圳大学 Real-time steering wheel corner acquisition system
CN108163662A (en) * 2017-11-23 2018-06-15 中景恒基云端物联网科技成都有限公司 A kind of staircase speed based on rotary encoder and retrograde detection method and device
CN111142428A (en) * 2019-12-13 2020-05-12 芜湖宏景电子股份有限公司 Detection circuit of encoder adopting AD port line
TWI777686B (en) * 2021-07-23 2022-09-11 禾一電子科技有限公司 Electronic rotary encoder
CN114545819A (en) * 2022-02-11 2022-05-27 芜湖宏景电子股份有限公司 Detection circuit using AD port line as encoder

Also Published As

Publication number Publication date
CN100373131C (en) 2008-03-05

Similar Documents

Publication Publication Date Title
CN100373131C (en) Phase demodulating circuit for incremeutal rotary encoder
CN102707083B (en) Motor speed calculating method
CN105302226B (en) A kind of multifunctional mode timer circuit based on APB buses
CN104317253A (en) System method for servo motor position control
CN102353891A (en) Digital integrated circuit fundamental tester
CN101534109B (en) Orthogonal signal frequency-multiplication phase-demodulation logic circuit with filter function
CN206075260U (en) A kind of computer data acquiring control system based on FPGA
CN201897522U (en) Low-frequency square-wave cycle detecting system
CN105245203A (en) System and method for duty ratio detection employing high precision and low speed clock
CN104571263B (en) Timer on a kind of piece
CN101833690B (en) Simple and reliable counting method for incremental encoder
CN108205605A (en) Digitize the design method of multichannel pulse scope-analyzer configuration curring time
CN102573156A (en) System On Chip (SOC) chip special for electromagnetic induction heating controller
CN204392210U (en) A kind of code signal change-over circuit
CN101539437B (en) Algorithm for incremental-rotating coder with accurate counting and implementing device thereof
CN107452309A (en) A kind of decoding circuit of self-adapting data frequency
CN204597934U (en) A kind of arbitrary integer frequency dividing circuit of orthogonal optical photoelectric coder
CN200972494Y (en) High precision frequency-measurement phase-measurement circuit
CN103869155A (en) Method and device for electric generator frequency measurement based on PLC high-speed input
CN204313787U (en) A kind of testing circuit of angular encoder
CN103312307B (en) Clock frequency deviation detection method and device
CN109039320A (en) A kind of highly reliable capacitance type touch key can satisfy complex working condition
CN102353408B (en) Output signal detection circuit and detection method of dish-washing machine flowmeter
CN102750451B (en) Motor speed calculation device
CN114545819A (en) Detection circuit using AD port line as encoder

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
EE01 Entry into force of recordation of patent licensing contract

Assignee: Shanghai Jiezhong Automotive Pressing Co., Ltd.

Assignor: Shanghai Jiao Tong University

Contract record no.: 2010310000118

Denomination of invention: Phase demodulating circuit for incremeutal rotary encoder

Granted publication date: 20080305

License type: Exclusive License

Open date: 20060524

Record date: 20100722

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20080305

Termination date: 20171124