Signal processing circuit and incremental encoder
By designing a signal processing circuit in the incremental encoder and using a combination of amplification circuit and filter circuit, the problems of distortion and interference in signal transmission are solved, the square shape and high drive capability of the signal are achieved, and the accuracy of signal processing is improved. and stability.
Patent Information
- Application Number
- CN202311153361.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-07
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2043-09-07
AI Technical Summary
During the signal transmission process of the existing incremental encoder, the square waveform of the encoded signal is distorted, the edge jump is not steep and contains a large amount of interference noise, which makes signal processing difficult.
Design a signal processing circuit, including a first amplification circuit, a second amplification circuit, and a filter circuit. Through the combination of the reference voltage and the filter circuit, high-frequency interference is suppressed, and the time delay effects of the rising and falling stages of the signal step are eliminated to ensure The square shape and driving ability of the signal.
Effectively suppress high-frequency interference, eliminate time delay problems in signal transmission, ensure the ideal square wave shape of the encoded signal, improve the accuracy and stability of signal processing, and reduce errors and motor jitter.
Smart Images

Figure CN117200730B
Abstract
Description
Technical Field
[0001] The present application relates to the field of information processing, and in particular to a signal processing circuit and an incremental encoder. Background Art
[0002] As an important part of modern high-tech weapons, the servo control system is widely used in various types of equipment. It mainly includes servo controllers, servo drives and servo motors. The servo control system mainly issues control instructions through the servo controller, and the servo drive converts the instructions into AC and DC signals and transmits them to the servo motor, which drives the mechanical device to control the pitch and rotation. Among them, incremental encoders are often used in servo control systems for positioning and motor speed feedback. At present, the output signals of commonly used incremental encoders are usually two-phase orthogonal digital signals, which are transmitted to the receiving end of the signal processing circuit through a slender shielded cable. After long-distance transmission, the square wave waveform of the encoded signal is distorted, especially the edge jump part, which becomes less steep and is mixed with a large amount of interference noise, which makes it unable to meet actual needs.
[0003] Application Contents
[0004] Embodiments of the present application provide a signal processing circuit, device, equipment and storage medium to solve the problem of signal waveform distortion.
[0005] A signal processing circuit comprises: a first amplifying circuit, a second amplifying circuit, a first signal input terminal, a second signal input terminal, a third signal input terminal, a fourth signal input terminal, a first filtering circuit and a third filtering circuit;
[0006] The first signal input terminal is connected to the first terminal of the first amplifying circuit through the first filtering circuit;
[0007] The third signal input terminal is connected to the first terminal of the second amplifying circuit through the third filtering circuit;
[0008] The second signal input terminal is configured to receive a reference voltage and transmit it to the second terminal of the first amplifying circuit, and the fourth signal input terminal is configured to receive a reference voltage and transmit it to the second terminal of the second amplifying circuit.
[0009] Further, the first signal input terminal is configured to receive a first input signal, and the third signal input terminal is configured to receive a second input signal, wherein the difference between the reference voltage and half the amplitude of the first input signal is less than or equal to a first threshold, or the difference between the reference voltage and half the amplitude of the second input signal is less than or equal to the first threshold.
[0010] Further, the first filtering circuit includes a first resistor and a first capacitor, the first end of the first resistor is connected to the first signal input end, the second end of the first resistor is connected to the first end of the first amplifier circuit, the first end of the first capacitor is connected to the first end of the first amplifier circuit, and the second end of the first capacitor is grounded;
[0011] The third filtering circuit includes a third resistor and a third capacitor; the first end of the third resistor is connected to the third signal input end, the second end of the third resistor is connected to the first end of the second operational amplifier circuit, the first end of the third capacitor is connected to the first end of the second amplifier circuit, and the second end of the third capacitor is grounded.
[0012] Furthermore, the signal processing circuit also includes a second filtering circuit and a fourth filtering circuit; the second filtering circuit includes a second resistor and a second capacitor, the first end of the second resistor is connected to the third signal input terminal, the second end of the second resistor is connected to the second end of the first amplifier circuit, the first end of the second capacitor is connected to the second end of the first amplifier circuit, and the second end of the second capacitor is grounded; the fourth filtering circuit includes a fourth resistor and a fourth capacitor; the first end of the fourth resistor is connected to the fourth signal input terminal, the second end of the fourth resistor is connected to the second end of the second operational amplifier circuit, the first end of the fourth capacitor is connected to the second end of the second amplifier circuit, and the second end of the fourth capacitor is grounded.
[0013] Furthermore, the amplitude of the first input signal is equal to the amplitude of the second input signal.
[0014] Further, the resistance value of the first resistor is equal to the resistance value of the third resistor, and the capacitance value of the first capacitor is equal to the capacitance value of the third capacitor.
[0015] Furthermore, the resistance value of the first resistor, the resistance value of the second resistor, the resistance value of the third resistor and the resistance value of the fourth resistor are equal, and the capacitance value of the first capacitor, the capacitance value of the second capacitor, the capacitance value of the third capacitor and the capacitance value of the fourth capacitor are equal.
[0016] Further, a difference between the reference voltage and half the amplitude of the first input signal is equal to zero, and / or a difference between the reference voltage and half the amplitude of the second input signal is equal to zero.
[0017] Further, when the first input signal received by the first signal input terminal jumps from "0 steady state" to "1 steady state", it takes time to reach the reference voltage, and after the time, the first coded signal output by the output terminal of the first amplifier circuit changes from "0" to "1" following the first input signal;
[0018] When the second input signal received by the third signal input terminal jumps from "1 steady state" to "0 steady state", it reaches the reference voltage after a period of time. After the period of time, the second coded signal output by the output terminal of the first amplifier circuit follows the second input signal and changes from "1" to "0"; wherein T1=T2.
[0019] An incremental encoder comprises the signal processing circuit as described above.
[0020] The above-mentioned signal processing circuit includes a first amplifier circuit, a second amplifier circuit, a first signal input terminal, a second signal input terminal, a third signal input terminal, a fourth signal input terminal, a first filtering circuit and a second filtering circuit; the first signal input terminal is connected to the first terminal of the first amplifier circuit through the first filtering circuit; the third signal input terminal is connected to the first terminal of the second amplifier circuit through the third filtering circuit; the second signal input terminal is configured to receive a reference voltage and transmit it to the second terminal of the first amplifier circuit, and the fourth signal input terminal is configured to receive a reference voltage and transmit it to the second terminal of the second amplifier circuit; thereby, high-frequency interference occurring during the signal transmission process of the first input signal received from the first signal input terminal and the second input signal received from the third signal input terminal can be effectively suppressed or filtered out.
[0021] Furthermore, by making the first signal input terminal A1 configured to receive the first input signal EncoderA, and the third signal input terminal B1 configured to receive the second input signal EncoderB, wherein the difference between the reference voltage Vref and half the amplitude of the first input signal EncoderA is less than or equal to a first threshold, or the difference between the reference voltage Vref and half the amplitude of the second input signal Vref is less than or equal to a second threshold; thereby being able to effectively eliminate the adverse effects caused by the different time delays for reaching the reference voltage Vref in the signal step rising stage and the signal step falling stage. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0023] Figure 1 is an exemplary diagram of a signal processing circuit in one embodiment of the present application;
[0024] Figure 2is an exemplary diagram of a signal processing circuit in one embodiment of the present application;
[0025] Figure 3 is another example diagram of a signal processing circuit in one embodiment of the present application;
[0026] Figure 4 is another example diagram of a signal processing circuit in one embodiment of the present application;
[0027] Figure 5 is another example diagram of a signal processing circuit in one embodiment of the present application;
[0028] Figure 6 is another example diagram of a signal processing circuit in one embodiment of the present application;
[0029] Figure 7 is another example diagram of a data processing device in one embodiment of the present application. DETAILED DESCRIPTION
[0030] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0031] It should be understood that the present application can be implemented in different forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, providing these embodiments will make the disclosure thorough and complete and fully convey the scope of the present application to those skilled in the art. In the accompanying drawings, the sizes and relative sizes of layers and regions may be exaggerated for clarity. The same reference numerals throughout represent the same elements.
[0032] It should be understood that when an element or layer is referred to as being "on, adjacent to, connected to or coupled to other elements or layers, it may be directly on, adjacent to, connected to or coupled to other elements or layers, or there may be intervening elements or layers. In contrast, when an element is referred to as being "directly on, directly adjacent to, directly connected to or directly coupled to other elements or layers, there are no intervening elements or layers. It should be understood that, although the terms first, second, third, etc. may be used to describe various elements, components, regions, layers and / or parts, these elements, components, regions, layers and / or parts should not be limited by these terms. These terms are only used to distinguish one element, component, region, layer or part from another element, component, region, layer or part. Therefore, without departing from the teachings of the present application, the first element, component, region, layer or part discussed below may be represented as a second element, component, region, layer or part.
[0033] Spatially relative terms such as "under," "beneath," "below," "under," "above," "above," and the like may be used herein for ease of description to describe the relationship of an element or feature shown in the figures to other elements or features. It should be understood that the spatially relative terms are intended to include different orientations of the device in use and operation in addition to the orientations shown in the figures. For example, if the device in the accompanying drawings is flipped, then the elements or features described as "under other elements" or "under" or "under" will be oriented as "above" the other elements or features. Thus, the exemplary terms "under" and "under" may include both upper and lower orientations. The device may be otherwise oriented (rotated 90 degrees or other orientations) and the spatial descriptors used herein are interpreted accordingly.
[0034] The purpose of the terms used herein is only to describe specific embodiments and is not intended to be limiting of the present application. When used herein, the singular forms "one", "an" and "said / the" are also intended to include plural forms, unless the context clearly indicates otherwise. It should also be understood that the terms "consisting of" and / or "comprising", when used in this specification, determine the presence of the features, integers, steps, operations, elements and / or parts, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, parts and / or groups. When used herein, the term "and / or" includes any and all combinations of the relevant listed items.
[0035] In order to thoroughly understand the present application, detailed structures and steps will be presented in the following description to illustrate the technical solution proposed by the present application. The preferred embodiments of the present application are described in detail below, but in addition to these detailed descriptions, the present application may also have other implementation methods.
[0036] In one embodiment, Figure 1 As shown, a signal processing circuit is provided, and the signal processing circuit is used in an incremental encoder. The incremental encoder involved in the present application can convert the angular motion of a rotating bearing into a digital signal to identify the real-time position of a rotating shaft.
[0037] In a practical application, the signal output by the incremental encoder is usually a two-phase orthogonal digital signal, which is transmitted to the receiving end of the encoder's signal processing circuit through a slender shielded cable in the open collector output mode of the amplifier. Then, due to the long-distance transmission, the square wave waveform of the encoded signal will be distorted, especially the edge jump part, which becomes less steep and is also mixed with a large amount of interference noise. Therefore, when the signal processing circuit receives the square wave signal transmitted by the encoder, it must first "shape" the received square wave signal to make the waveform square and increase the driving ability of the signal itself for subsequent circuit processing. Integrated operational amplifiers are often used in encoder signal processing circuits due to their high input impedance and low output impedance.
[0038] In a specific embodiment, the signal processing circuit includes: a first amplifier circuit 10, a second amplifier circuit 20, a first signal input terminal A1, a second signal input terminal A2, a third signal input terminal B1, a fourth signal input terminal B2, a first filter circuit 11 and a third filter circuit 21; the first signal input terminal A1 is connected to the first end of the first amplifier circuit 10 through the first filter circuit 11; the third signal input terminal B1 is connected to the first end of the second amplifier circuit 20 through the third filter circuit 21; the second signal input terminal A2 is configured to receive a reference voltage Vref and transmit it to the second end of the first amplifier circuit 10, and the fourth signal input terminal B2 is configured to receive a reference voltage Vref and transmit it to the second end of the second amplifier circuit 10.
[0039] In at least one embodiment, since the first input signal received from the first signal input terminal A1 and the second input signal received from the third signal input terminal B1 are low-power signals, the first amplifier circuit 10 and the second amplifier circuit 20 are configured to respectively power amplify the first input signal received from the first signal input terminal A1 and the second input signal received from the third signal input terminal B1, so as to facilitate recognition by the subsequent sampling circuit. The first amplifier circuit 10 and the second amplifier circuit 20 may be operational amplifiers, or circuits capable of power amplification built with discrete devices.
[0040] In at least one embodiment, the incremental encoder has two outputs, see below Figure 2 As shown, the first encoding signal output by the first amplifier circuit 10 is "PGA", and the second encoding signal output by the second amplifier circuit 10 is "PGB". Among them, since the incremental encoder needs to distinguish the forward and reverse rotation of the bearing. Therefore, if the following Figure 2The figure shows the forward waveform of an ideal incremental encoder. The reverse waveform of the incremental encoder is the interchange of the first coding signal "PGA" output by the first amplifier circuit 10 and the second coding signal "PGB" output by the second amplifier circuit 10, under the premise that other parameters in the figure remain unchanged.
[0041] Wherein, the reference voltage Vref is a preset reference voltage. Wherein, the reference voltage received by the second signal input terminal and the reference voltage received by the fourth signal input terminal may be the same or different. Preferably, in this embodiment, based on cost and design complexity, the reference voltage received by the second signal input terminal and the reference voltage received by the fourth signal input terminal are the same.
[0042] In at least one embodiment, the first filter circuit 11 and the second filter circuit 12 are passive filter circuits, that is, the first filter circuit 11 and the second filter circuit 12 are circuits composed of multiple passive components. For example, the passive components may be capacitors, resistors or inductors. Preferably, the first filter circuit 11 and the second filter circuit 12 in this embodiment are composed of capacitors and resistors. The first filter circuit 11 and the second filter circuit 12 form two low-pass filters, thereby effectively suppressing or filtering out high-frequency interference in the first input signal received from the first signal input terminal and the second input signal received from the third signal input terminal during signal transmission.
[0043] In this embodiment, by connecting a first filter circuit between the first signal input terminal and the first terminal of the first amplifier circuit, and connecting a second filter circuit between the third signal input terminal and the first terminal of the second amplifier circuit, referring to the following Figure 2 As shown, without considering the circuit delay, the first coding signal "PGA" waveform output by the first amplifier circuit 10 and the second coding signal "PGB" waveform output by the second amplifier circuit 10 are both ideal square wave signals, and the widths of the four-fold frequency intervals "11", "10", "00", and "01" are equal.
[0044] In a specific embodiment, the first signal input terminal is configured to receive a first input signal, and the third signal input terminal is configured to receive a second input signal, wherein the difference between the reference voltage and half the amplitude of the first input signal is less than or equal to a first threshold, or the difference between the reference voltage and half the amplitude of the second input signal is less than or equal to the first threshold.
[0045] In at least one embodiment, although the first filter circuit 11 and the second filter circuit 12 have a good suppression effect on high-frequency signals, they also cause a phase lag problem of the signal.
[0046] See below Figure 1 As shown, the second signal input terminal A2 is configured to receive a reference voltage and transmit it to the second terminal of the first amplifier circuit 10, and the fourth signal input terminal B2 is configured to receive a reference voltage and transmit it to the second terminal of the second amplifier circuit 20. When the value of the first input signal EncoderA received from the first signal input terminal is greater than the reference voltage, the first encoding signal "PGA" output by the first amplifier circuit is high level, and when the value of the first input signal EncoderA received from the first signal input terminal is less than the reference voltage, the first encoding signal "PGA" output by the first amplifier circuit is low level. Similarly, when the value of the second input signal EncodeB received from the third signal input terminal is greater than the reference voltage, the second encoding signal "PGB" output by the second amplifier circuit is high level, and when the value of the second input signal EncoderB received from the second signal input terminal is less than the reference voltage, the second encoding signal "PGB" output by the second amplifier circuit is low level.
[0047] In at least one embodiment, since the first input signal is a square wave signal, its waveform has two steady-state levels, high and low, namely, "0 steady state" and "1 steady state". Therefore, when the first input signal EncoderA jumps from "0 steady state" to "1 steady state", after passing through the first filtering circuit and the first amplifying circuit, the waveform of the first coding signal "PGA" output by the first amplifying circuit belongs to "zero state response", specifically also referred to as "zero state response of the first-order RC circuit"; when the first input signal jumps from "1 steady state" to "0 steady state", after passing through the first filtering circuit and the first amplifying circuit, the waveform of the first coding signal "PGA" output by the first amplifying circuit belongs to "zero input response", specifically also referred to as "zero input response of the first-order RC circuit". Similarly, since the second input signal EncoderB is a square wave signal, its waveform has two steady-state levels, high and low, namely, "0 steady state" and "1 steady state". Therefore, when the second input signal EncoderB jumps from "0 steady state" to "1 steady state", after passing through the third filtering circuit and the second amplifying circuit, the waveform of the second coding signal "PGB" output by the second amplifying circuit belongs to the "zero state response", which is also specifically referred to as the "zero state response of the first-order RC circuit"; when the second input signal jumps from "1 steady state" to "0 steady state", after passing through the third filtering circuit and the second amplifying circuit, the waveform of the second coding signal "PGB" output by the second amplifying circuit belongs to the "zero input response", which is also specifically referred to as the "zero input response of the first-order RC circuit".
[0048] See below Figure 3As shown, when the first input signal EncoderA jumps from "0 steady state" to "1 steady state", it passes through the output of the first filtering circuit and reaches the reference voltage Vref after T1 time. After T1 time, the first encoding signal "PGA" output by the first amplifier circuit changes from "0" to "1" following the first input signal EncoderA; when the first encoding signal "PGA" output by the first amplifier circuit jumps from "1 steady state" to "0 steady state", it passes through the output of the first filtering circuit and reaches the reference voltage Vref after T2 time. After T2 time, the first encoding signal "PGA" output by the first amplifier circuit changes from "1" to "0" following the first input signal EncoderA. Refer to the following Figure 4 As shown in FIG. 1 , the waveform of the first input signal EncoderA and the waveform of the first encoding signal “PGA” are shown in FIG. 1 . Figure 4 It can be seen that there is a time difference between T1 and T2, and the specific difference and magnitude relationship between T1 and T2 are determined by the amplitude of the reference voltage Vref.
[0049] Similarly, when the second input signal EncoderB jumps from "0 steady state" to "1 steady state", it passes through the output of the third filtering circuit and reaches the reference voltage Vref after T1 time. After T1 time, the second encoding signal "PGB" output by the second amplifier circuit changes from "0" to "1" following the second input signal EncoderB; when the second encoding signal "PGB" output by the second amplifier circuit jumps from "1 steady state" to "0 steady state", it passes through the output of the third filtering circuit and reaches the reference voltage Vref after T2 time. After T2 time, the second encoding signal "PGB" output by the second amplifier circuit changes from "1" to "0" following the second input signal EncoderB. There is a time difference between T1 and T2, and the specific difference and size relationship between T1 and T2 are determined by the amplitude of the reference voltage Vref.
[0050] See below Figure 5 As shown, due to the influence of the first filter circuit 11 and the third filter circuit 21, the widths of the four frequency multiplication intervals "11", "10", "00", and "01" of the first coding signal "PGA" output by the first amplifier circuit and the second coding signal "PGB" output by the second amplifier circuit are no longer equal. In this case, if the "M" method is used to measure the motor speed, it will cause relatively large error fluctuations. If the "T" or "M / T" method is used to measure the speed, the size of the error depends on the value of T. The smaller T, the greater the error. Excessive errors can cause the motor to vibrate violently or even fail to operate normally. Although smaller errors do not affect the basic operation of the motor, they will cause the motor to produce torque pulsations and operating noise.
[0051] To this end, this embodiment configures the first signal input terminal A1 to receive the first input signal EncoderA, and the third signal input terminal B1 to receive the second input signal EncoderB, wherein the difference between the reference voltage Vref and half the amplitude of the first input signal EncoderA is less than or equal to a first threshold, or the difference between the reference voltage Vref and half the amplitude of the second input signal Vref is less than or equal to a second threshold.
[0052] The first threshold is a preset fixed value. The second threshold is a preset fixed value. When the amplitude of the first input signal EncoderA is the same as the amplitude of the second input signal EncoderB, the first threshold is the same as the second threshold. For example, the amplitude of the first input signal EncoderA and the amplitude of the second input signal EncoderB can be equivalent to a voltage of 220V or 110V.
[0053] Optionally, the first threshold value and the second threshold value may be 10 V, 5 V, 3 V, 1 V or 0 V. In a specific embodiment, the smaller the difference between the reference voltage Vref and half the amplitude of the first input signal EncoderA, and / or the smaller the difference between the reference voltage Vref and half the amplitude of the second input signal Vref, the better the adverse effects caused by the different time delays for reaching the reference voltage Vref in the signal step-up phase and the signal step-down phase can be eliminated.
[0054] As a preferred example, when the first threshold value and the second threshold value are 0, that is, when the reference voltage Vref is the same as half the amplitude of the first input signal EncoderA, and / or when the reference voltage Vref is the same as half the amplitude of the second input signal Vref; the adverse effects caused by the different time delays for reaching the reference voltage Vref in the signal step rising stage and the signal step falling stage can be completely eliminated.
[0055] From the bottom Figure 3 It can be seen that due to the first filtering circuit and the second filtering circuit, the first coding signal "PGA" output by the first amplifier circuit and the second coding signal "PGB" output by the second amplifier circuit will be delayed. The delay time of "zero state response" is T1, and the delay time of "zero input response" is T2. The magnitude relationship between T1 and T2 is related to the reference voltage Vref of the first amplifier circuit and the second amplifier circuit. If the magnitude of the reference voltage Vref is changed so that it passes through the intersection of the two response curves, then T1=T2=T0.
[0056] See below Figure 6 As shown, since T1 and T2 are equal, when the first coding signal "PGA" output by the first amplifier circuit and the second coding signal "PGB" output by the second amplifier circuit change from "0" to "1" and from "1" to "0", the asymmetric effect of the first filtering circuit on the first coding signal "PGA" will be eliminated, and the asymmetric effect of the second filtering circuit on the second coding signal "PGB" will be eliminated.
[0057] Please refer to the following for details Figure 7 As shown in FIG. , it is the improved waveform of this embodiment. Figure 7 It can be seen that as long as the value of the reference voltage Vref falls on the intersection of the "zero state response" and "zero input response" curves, the waveforms of the first coding signal "PGA" output by the first amplifier circuit and the second coding signal "PGB" output by the second amplifier circuit will be shifted back in time as a whole based on the first input signal EncoderA and the second input signal EncoderB, respectively. At this time, the four frequency multiplication intervals "11", "10", "00", and "01" will be in an equal state.
[0058] In another specific embodiment, it is assumed that the high level voltage amplitudes of the first input signal EncoderA and the second input signal EncoderB are equal, and the magnitudes are represented by , and the parameter values of the first filter circuit and the third filter circuit are equal, and the time constant is recorded as τ. The time domain function of the zero state response is recorded as , and the time domain function of the zero input response is recorded as , then there are the following two equations:
[0059]
[0060]
[0061] At time T0, U1(T0) = U2(T0), then
[0062]
[0063]
[0064] Substituting equation ③ into equation ① and equation ② respectively, we can get
[0065]
[0066] So far, the specific value of Vref has been found:
[0067]
[0068] If the amplitudes of the first input signal EncoderA and the second input signal EncoderB are equal, as long as the value of the reference Vref is equal to half of the amplitude of the first input signal EncoderA or half of the amplitude of the second input signal EncoderB, the first filtering circuit and the third filtering circuit can be used to implement the low-pass filtering function while eliminating the adverse effects caused by the different time delays in reaching the reference Vref during the signal step-up phase and the signal step-down phase.
[0069] In a specific embodiment, refer to the following Figure 1 As shown, the first filtering circuit 11 includes a first resistor R1 and a first capacitor C1, the first end of the first resistor R1 is connected to the first signal input end, the second end of the first resistor R1 is connected to the first end of the first amplifier circuit 10, the first end of the first capacitor C1 is connected to the first end of the first amplifier circuit 10, and the second end of the first capacitor C1 is grounded.
[0070] The third filtering circuit 21 includes a third resistor R3 and a third capacitor C3; the first end of the third resistor R3 is connected to the third signal input terminal B1, the second end of the third resistor R3 is connected to the first end of the second amplifier circuit 20, the first end of the third capacitor C3 is connected to the first end of the second amplifier circuit 20, and the second end of the third capacitor C3 is grounded.
[0071] In at least one embodiment, a filter circuit composed of a resistor and a capacitor is called a passive filter circuit, which can be divided into a low-pass filter circuit and a high-pass filter circuit according to different structures, and is used to filter out low-frequency signals and high-frequency signals respectively. The first filter circuit 11 and the third filter circuit 21 in this embodiment are low-pass filter circuits for filtering / blocking high-frequency signals. Based on the principle that capacitors block direct current and pass alternating current, and according to the capacitive reactance formula of capacitors Xc=1 / (wC), it can be known that the higher the frequency, the easier it is for the signal to pass through the capacitor.
[0072] The first filtering circuit 11 in the present embodiment is composed of a first resistor R1 and a first capacitor C1, wherein the first resistor R1 is in front and the first capacitor C1 is in the back, and based on the characteristic that capacitors pass high frequencies and block low frequencies, the first resistor R1 is set on the main circuit and the first capacitor C1 is set on the branch circuit. Therefore, the higher the frequency of the signal, the smaller the capacitive reactance, and the smaller the corresponding voltage division on the first capacitor C1. Therefore, the higher the frequency of the signal, the less likely it is to be transmitted to the back end, thereby effectively suppressing or filtering out the high-frequency signal that appears in the signal transmission process of the first input signal received from the first signal input terminal, thereby avoiding interference from high-frequency signals. Similarly, the third filtering circuit 21 is composed of a third resistor R3 and a third capacitor C3, the third resistor R3 is in front, and the third capacitor C3 is in the back, and based on the characteristic of capacitor passing high frequencies and blocking low frequencies, the third resistor R3 is set on the main circuit and the third capacitor C3 is set on the branch circuit. Therefore, the higher the frequency of the signal, the smaller the capacitive reactance, and the smaller the corresponding voltage divider on the third capacitor C3. Therefore, the higher the frequency of the signal, the more difficult it is to be transmitted to the back end, thereby effectively suppressing or filtering out the high-frequency signal that appears in the signal transmission process of the second input signal received from the third signal input terminal, thereby avoiding interference from high-frequency signals.
[0073] In a specific embodiment, the resistance value of the first resistor R1 is equal to the resistance value of the third resistor R3, and the capacitance value of the first capacitor C1 is equal to the capacitance value of the third capacitor C3.
[0074] In at least one embodiment, by making the resistance value of the first resistor R1 equal to the resistance value of the third resistor R3, and the capacitance value of the first capacitor C1 equal to the capacitance value of the third capacitor C3, the parameter values of the first filtering circuit and the third filtering circuit are equal, thereby achieving the equal amplitude of the first input signal EncoderA and the second input signal EncoderB, and the value of the reference Vref is equal to half of the amplitude of the first input signal EncoderA or half of the amplitude of the second input signal EncoderB. While using the first filtering circuit and the third filtering circuit to implement the low-pass filtering function, the adverse effects caused by the different time delays in reaching the reference Vref in the signal step rising stage and the signal step falling stage can be further eliminated.
[0075] It should be noted that, under the premise of not affecting the normal transmission of the first input signal EncoderA and the second input signal EncoderB, the larger the resistance of the first resistor R1, the resistance of the third resistor R3, the capacitance of the first capacitor C1 and the capacitance of the third capacitor C3, the stronger the anti-interference ability, but at the same time it will also cause a longer delay time.
[0076] In a specific embodiment, refer to the following Figure 1As shown, the signal processing circuit further includes a second filtering circuit 12 and a fourth filtering circuit 22 .
[0077] The second filtering circuit 12 includes a second resistor R2 and a second capacitor C2, the first end of the second resistor R2 is connected to the second signal input terminal A2, the second end of the second resistor R2 is connected to the second end of the first amplifier circuit 10, the first end of the second capacitor C2 is connected to the second end of the first amplifier circuit 10, and the second end of the second capacitor C2 is grounded.
[0078] The fourth filtering circuit 22 includes a fourth resistor R4 and a fourth capacitor C4; the first end of the fourth resistor R4 is connected to the fourth signal input terminal B2, the second end of the fourth resistor R4 is connected to the second end of the second operational amplifier circuit 20, the first end of the fourth capacitor R4 is connected to the second end of the second amplifier circuit 20, and the second end of the fourth capacitor R4 is grounded.
[0079] Among them, the second filter circuit 12 is configured to filter the common-mode interference that occurs during the signal transmission of the first input signal EncoderA. The fourth filter circuit 22 is configured to filter the common-mode interference that occurs during the signal transmission of the second input signal EncoderB. It should be noted that the second filter circuit 12 and the fourth filter circuit 22 in this embodiment have the same function as the first filter circuit 11 and the third filter circuit 21. On the basis of the first filter circuit 11 and the third filter circuit 21, the second filter circuit 12 and the fourth filter circuit 22 are connected, so that the common-mode interference that occurs during the signal transmission of the first input signal EncoderA and the second input signal EncoderB can be better filtered.
[0080] In at least one embodiment, the second filtering circuit 12 is composed of a second resistor R2 and a second capacitor C2, wherein the second resistor R2 is in front and the second capacitor C2 is in the back, and based on the characteristic of capacitor passing high frequencies and blocking low frequencies, the second resistor R2 is set on the main circuit and the second capacitor C2 is set on the branch circuit. Therefore, the higher the frequency of the signal, the smaller the capacitive reactance, and the smaller the corresponding voltage divider on the second capacitor C2. Therefore, the higher the frequency of the signal, the less likely it is to be transmitted to the back end, thereby effectively suppressing or filtering out the high-frequency signal that appears in the signal transmission process of the first input signal received from the first signal input terminal, thereby avoiding interference from high-frequency signals. Similarly, the fourth filtering circuit 22 is composed of a fourth resistor R4 and a fourth capacitor C4, with the fourth resistor R4 in front and the fourth capacitor C4 in the back, and based on the characteristic of capacitors passing high frequencies and blocking low frequencies, the fourth resistor R4 is set on the main circuit and the fourth capacitor C4 is set on the branch circuit. Therefore, the higher the frequency of the signal, the smaller the capacitive reactance, and the smaller the corresponding voltage divider on the fourth capacitor C4. Therefore, the higher the frequency of the signal, the less likely it is to be transmitted to the back end, thereby effectively suppressing or filtering out the high-frequency signal that appears in the signal transmission process of the second input signal received from the second signal input terminal, thereby avoiding interference from high-frequency signals.
[0081] Similarly, in a specific embodiment, the resistance value of the first resistor R1, the resistance value of the second resistor R2, the resistance value of the third resistor R3 and the resistance value of the fourth resistor R4 are equal, and the capacitance value of the first capacitor C1, the capacitance value of the second capacitor C2, the capacitance value of the third capacitor C3 and the capacitance value of the fourth capacitor C4 are equal. In at least one embodiment, by making the resistance of the first resistor R1, the resistance of the second resistor R2, the resistance of the third resistor R3 and the resistance of the fourth resistor R4 equal, and the capacitance of the first capacitor C1, the capacitance of the second capacitor C2, the capacitance of the third capacitor C3 and the capacitance of the fourth capacitor C4 equal, the parameter values of the first filter circuit, the second filter circuit, the third filter circuit and the fourth filter circuit are equal, thereby achieving the first input signal EncoderA and the second input signal EncoderB The amplitude is equal, and the value of the reference Vref is equal to half of the amplitude of the first input signal EncoderA or half of the amplitude of the second input signal EncoderB. While using the first filter circuit 11, the second filter circuit 12, the third filter circuit 21 and the fourth filter circuit 22 to achieve a low-pass filtering function, it is possible to further eliminate the adverse effects caused by the different time delays in reaching the reference Vref during the signal step-up phase and the signal step-down phase.
[0082] In a specific embodiment, the amplitude of the first input signal is equal to the amplitude of the second input signal.
[0083] In at least one embodiment, the amplitude of the first input signal EncoderA and the amplitude of the second input signal EncoderB may be equivalent to a voltage of 220 V or 110 V. Since the reference voltage Vref received by the second signal input terminal and the reference voltage Vref received by the fourth signal input terminal are equal in this embodiment, by making the amplitude of the first input signal equal to the amplitude of the second input signal, the complexity of the circuit design can be reduced while ensuring the overall performance of the signal processing circuit, and the balance of the signal processing circuit can be improved.
[0084] In a specific embodiment, the difference between the reference voltage and half the amplitude of the first input signal is equal to zero, and / or the difference between the reference voltage and half the amplitude of the second input signal is equal to zero.
[0085] In at least one embodiment, it is assumed that the delay time of "zero state response" is T2, and the delay time of "zero input response" is T1. Because the magnitude of the reference voltage Vref determines the magnitude relationship of T2 and T1 when other factors are determined. Therefore, when the difference between the reference voltage and half of the amplitude of the first input signal is equal to zero, and / or the difference between the reference voltage and half of the amplitude of the second input signal is equal to zero, that is, when the reference voltage is equal to half of the amplitude of the first input signal, and / or the reference voltage is equal to half of the amplitude of the second input signal, the delay time of "zero state response" and the delay time of "zero input response" are equal; at this time, when the first input signal EncoderA and the second input signal EncoderB change from "0" to "1" and from "1" to "0", the adverse effects caused by the different time delays of reaching the reference Vref in the signal step-up phase and the signal step-down phase can be completely eliminated, and the four frequency multiplication intervals "11", "10", "00", and "01" will be in an equal state.
[0086] In a specific embodiment, when the first input signal received by the first signal input terminal jumps from "0 steady state" to "1 steady state", it takes time to reach the reference voltage, and after the time, the first coded signal output by the output terminal of the first amplifier circuit follows the first input signal to change from "0" to "1"; when the second input signal received by the third signal input terminal jumps from "1 steady state" to "0 steady state", it takes time to reach the reference voltage, and after the time, the second coded signal output by the output terminal of the first amplifier circuit follows the second input signal to change from "1" to "0"; wherein, T1=T2.
[0087] In this embodiment, the reference voltage is equal to half the amplitude of the first coded signal, and / or the reference voltage is equal to half the amplitude of the second coded signal, so that the delay time of the "zero state response" and the delay time of the "zero input response" are equal, so as to completely eliminate the adverse effects caused by the different time delays in reaching the reference Vref in the signal step rising stage and the signal step falling stage, and the four frequency multiplication intervals "11", "10", "00", and "01" will be in an equal state.
[0088] The present application also provides an incremental encoder, including the signal processing circuit described in the above embodiment. The above embodiment is only used to illustrate the technical solution of the present application, but not to limit it; although the present application is described in detail with reference to the above embodiment, a person skilled in the art should understand that the technical solution described in the above embodiments can still be modified, or some of the technical features can be replaced by equivalents; and these modifications or replacements do not make the essence of the corresponding technical solution deviate from the spirit and scope of the technical solution of each embodiment of the present application, and should be included in the protection scope of the present application.
Claims
1. A signal processing circuit, characterized in that: The signal processing circuit is applied to an incremental encoder, and the signal processing circuit comprises: A first amplifying circuit, a second amplifying circuit, a first signal input terminal, a second signal input terminal, a third signal input terminal, a fourth signal input terminal, a first filtering circuit, and a third filtering circuit; The first signal input terminal is connected to the first terminal of the first amplifying circuit through the first filtering circuit; The third signal input terminal is connected to the first terminal of the second amplifying circuit through the third filtering circuit; The second signal input terminal is configured to receive a reference voltage and transmit it to the second terminal of the first amplifying circuit, and the fourth signal input terminal is configured to receive a reference voltage and transmit it to the second terminal of the second amplifying circuit; The first signal input terminal is configured to receive a first input signal, and the third signal input terminal is configured to receive a second input signal, wherein the difference between the reference voltage and half of the amplitude of the first input signal is less than or equal to a first threshold, or the difference between the reference voltage and half of the amplitude of the second input signal is less than or equal to a second threshold; the first threshold and the second threshold include 10V, 5V, 3V, 1V or 0V; The first filtering circuit comprises a first resistor and a first capacitor, wherein a first end of the first resistor is connected to the first signal input end, a second end of the first resistor is connected to a first end of the first amplifying circuit, a first end of the first capacitor is connected to the first end of the first amplifying circuit, and a second end of the first capacitor is grounded; The third filtering circuit comprises a third resistor and a third capacitor; the first end of the third resistor is connected to the third signal input end, the second end of the third resistor is connected to the first end of the second operational amplifier circuit, the first end of the third capacitor is connected to the first end of the second amplifier circuit, and the second end of the third capacitor is grounded; The signal processing circuit further includes a second filtering circuit and a fourth filtering circuit; The second filtering circuit comprises a second resistor and a second capacitor, a first end of the second resistor is connected to the third signal input terminal, a second end of the second resistor is connected to the second end of the first amplifying circuit, a first end of the second capacitor is connected to the second end of the first amplifying circuit, and a second end of the second capacitor is grounded; The fourth filtering circuit includes a fourth resistor and a fourth capacitor; the first end of the fourth resistor is connected to the fourth signal input terminal, the second end of the fourth resistor is connected to the second end of the second operational amplifier circuit, the first end of the fourth capacitor is connected to the second end of the second amplifier circuit, and the second end of the fourth capacitor is grounded.
2. The signal processing circuit according to claim 1, characterized in that: The amplitude of the first input signal is equal to the amplitude of the second input signal.
3. The signal processing circuit according to claim 1, characterized in that: The resistance value of the first resistor is equal to the resistance value of the third resistor, and the capacitance value of the first capacitor is equal to the capacitance value of the third capacitor.
4. The signal processing circuit according to claim 1, characterized in that: The resistance value of the first resistor, the resistance value of the second resistor, the resistance value of the third resistor and the resistance value of the fourth resistor are equal, and the capacitance value of the first capacitor, the capacitance value of the second capacitor, the capacitance value of the third capacitor and the capacitance value of the fourth capacitor are equal.
5. The signal processing circuit according to claim 1, characterized in that: When the first input signal received by the first signal input terminal changes from a "0 steady state" to a "1 steady state", it takes T1 time to reach the reference voltage. After T1 time, the first coded signal output by the output terminal of the first amplifier circuit changes from "0" to "1" following the first input signal; When the second input signal received by the third signal input terminal jumps from "1 steady state" to "0 steady state", it reaches the reference voltage after T2 time. After T2 time, the second coded signal output by the output terminal of the first amplifier circuit follows the second input signal and changes from "1" to "0"; wherein T1=T2.
6. An incremental encoder, characterized in that The method comprises the signal processing circuit as claimed in any one of claims 1 to 5.
