A signal conditioning system and method for non-polarity dual bus
By using the rectifier and reference voltage circuit in a non-polar dual bus system to calculate the average reference voltage signal, the comparator reduces misjudgments, solves the malfunction problem in traditional signal conditioning methods, and improves the accuracy of signal conditioning.
Patent Information
- Application Number
- CN202011246981.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-10
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2040-11-10
AI Technical Summary
Traditional signal conditioning methods in non-polar dual-bus systems can easily lead to errors in signal conditioning results and malfunctions, mainly because the reference voltage signal is not in the middle of the signal range and can easily trigger the comparator by mistake.
A rectifier circuit is used to rectify the first signal and the second signal to obtain a third signal. The reference voltage circuit obtains the high-level signal through sampling and calculates the average of the high-level signal and the low-level signal as the reference voltage signal. The comparator converts the third signal Compare with the reference voltage signal to reduce misjudgments.
By using the average value of the reference voltage signal and the high and low level signals, the probability of errors in the signal conditioning results is reduced and the accuracy of the signal conditioning is improved.
Smart Images

Figure CN112367066B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of signal conditioning, and more particularly to a signal conditioning system and method applied to a non-polarity dual bus. Background Art
[0002] Dual bus is a technology that combines the power supply line and the signal line into one, so that the signal and power supply share the same bus. Non-polarity means there is no distinction between positive and negative. Non-polarity dual bus means that two buses can ensure normal communication regardless of whether they are connected in the positive or reverse direction.
[0003] like Figure 1 and Figure 2 As shown in the figure, the non-polarity dual bus system adopts the dual-level power supply method of Vbus_H and Vbus_L. Ideally, the voltage difference between the two power supply buses Bus1 and Bus2 is a square wave. Figure 1 As shown, the non-polarity dual bus system allows the level of Bus1 to be higher than the level of Bus2, and Bus2 is the reference ground potential, such as Figure 2 As shown, the level of Bus2 is allowed to be higher than the level of Bus1, and Bus1 is the reference ground potential.
[0004] like Figure 3 As shown in the figure, according to the absolute value of the difference between Bus1 and Bus2, │Bus1-Bus2│, a digital signal with a fixed amplitude and a change trend opposite to │Bus1-Bus2│ can be obtained. This process is called signal conditioning. However, traditional signal conditioning methods are prone to errors in signal conditioning results, and then output wrong signals to cause malfunctions. Summary of the invention
[0005] In view of this, the present invention provides a signal conditioning system and method applied to a polarity-free dual bus to reduce errors in signal conditioning results.
[0006] To achieve the above object, the present invention provides the following technical solutions:
[0007] A signal conditioning system for a non-polarity dual bus, the non-polarity dual bus comprising a first bus and a second bus, the first bus being used to transmit a first signal, the second bus being used to transmit a second signal, the signal conditioning system comprising:
[0008] a rectifier circuit, used for rectifying the first signal and the second signal to obtain a third signal, wherein the level of the third signal is equal to the absolute value of the level difference between the first signal and the second signal;
[0009] A reference voltage circuit, used for sampling the third signal to obtain a high level signal of the third signal, and obtaining a reference voltage signal according to the high level signal, wherein the reference voltage signal is equal to an average value of the high level signal and a low level signal of the third signal;
[0010] a comparator, configured to compare the third signal with the reference voltage signal to obtain a fourth signal, wherein the fourth signal is a digital signal and changes with the third signal. Optionally, the reference voltage circuit includes a sampling unit, a first processing unit, and a second processing unit;
[0011] The sampling unit is used to sample the high level signal in the third signal;
[0012] The first processing unit is used to obtain a low-level signal of the third signal according to the high-level signal, obtain a first reference current and a second reference current according to the low-level signal, and transmit the first reference current and the second reference current to the second processing unit;
[0013] The second processing unit is used to obtain a reference voltage signal according to the high level signal, the first reference current and the second reference current.
[0014] Optionally, the second processing unit includes a second error amplifier, fourth to twelfth transistors, a second resistor and a third resistor; the first processing unit includes a third error amplifier, thirteenth to seventeenth transistors and a fourth resistor;
[0015] A first input terminal of the second error amplifier inputs a high level signal in the third signal, an output terminal of the second error amplifier is connected to gates of the fourth transistor, the fifth transistor and the sixth transistor, and a second input terminal of the second error amplifier is connected to a second terminal of the fourth transistor;
[0016] The first ends of the fourth transistor, the fifth transistor, the sixth transistor, the eleventh transistor and the twelfth transistor are connected to the reference voltage end, the second end of the fourth transistor is connected to the first end of the second resistor; the second end of the second resistor, the second end of the third resistor, the seventh transistor, the eighth transistor, the ninth transistor and the tenth transistor are grounded;
[0017] The second end of the fifth transistor is connected to the first end of the seventh transistor, and the second end of the sixth transistor is connected to the first end of the ninth transistor; the gate of the seventh transistor is connected to the gate of the eighth transistor, and the first end of the seventh transistor is connected to the gate of the seventh transistor; the gate of the eleventh transistor is connected to the second end of the eleventh transistor, and the second end of the eleventh transistor is connected to the first end of the tenth transistor and the first end of the eighth transistor
[0018] The gate of the twelfth transistor is connected to the gate of the eleventh transistor; the second end of the twelfth transistor is connected to the first end of the third resistor; the gate of the ninth transistor is connected to the first end of the ninth transistor, and the gate of the ninth transistor is connected to the gate of the tenth transistor;
[0019] The first input terminal of the third error amplifier inputs the low level signal in the third signal, the output terminal of the third error amplifier is connected to the gates of the thirteenth transistor, the fourteenth transistor and the fifteenth transistor, and the second input terminal of the third error amplifier is connected to the second terminal of the thirteenth transistor;
[0020] The first ends of the thirteenth transistor, the fourteenth transistor and the fifteenth transistor are connected to the reference voltage terminal, the second end of the thirteenth transistor is connected to the first end of the fourth resistor, and the second ends of the fourth resistor, the sixteenth transistor and the seventeenth transistor are grounded;
[0021] The second end of the fourteenth transistor is connected to the first end of the sixteenth transistor, the gate of the sixteenth transistor is connected to the first end of the sixteenth transistor and the gate of the seventeenth transistor, the second end of the fifteenth transistor is connected to the first end of the seventh transistor, and the first end of the seventeenth transistor is connected to the first end of the ninth transistor.
[0022] Optionally, it further includes a voltage divider circuit, wherein the voltage divider circuit is located between the rectifier circuit and the reference voltage circuit;
[0023] The voltage divider circuit is used to reduce the level of the third signal output by the rectifier circuit to k times, 0<k<1.
[0024] Optionally, a level conversion circuit is also included;
[0025] The level conversion circuit is used for performing level conversion on the fourth signal to obtain a fifth signal. The amplitude of the fifth signal is different from the amplitude of the fourth signal, but the fifth signal changes in phase with the fourth signal.
[0026] Optionally, a sampling filter circuit is further included, wherein the sampling filter circuit is located between the rectifier circuit and the reference voltage circuit;
[0027] The sampling filter circuit is used to filter the third signal before sampling.
[0028] Optionally, a debouncing circuit is also included;
[0029] The de-jitter circuit is used to obtain multiple positive pulse signals according to the rising edge and falling edge of the fourth signal. After obtaining the first positive pulse signal, the sixth signal is made equal to the fourth signal, and the sixth signal is kept unchanged within a preset time thereafter to eliminate the influence of the jitter in the fourth signal on the sixth signal.
[0030] A signal conditioning method for a non-polarity dual bus, comprising:
[0031] Rectifying the first signal and the second signal by a rectifying circuit to obtain a third signal, wherein the level of the third signal is equal to the absolute value of the level difference between the first signal and the second signal;
[0032] Sampling the third signal through a reference voltage circuit to obtain a high level signal of the third signal, and obtaining a reference voltage signal according to the high level signal, wherein the reference voltage signal is equal to an average value of the high level signal and a low level signal of the third signal;
[0033] The third signal is compared with the reference voltage signal by a comparator to obtain a fourth signal, wherein the fourth signal is a digital signal and changes with the third signal. Optionally, the third signal is sampled by a reference voltage circuit to obtain a high level signal of the third signal, and obtaining the reference voltage signal according to the high level signal includes:
[0034] Sampling the high level signal in the third signal by a sampling unit;
[0035] Obtaining, by a first processing unit, a low-level signal of the third signal according to the high-level signal, and obtaining a first reference current and a second reference current according to the low-level signal;
[0036] A reference voltage signal is obtained by a second processing unit according to the high level signal, the first reference current and the second reference current.
[0037] Optionally, before sampling the third signal through the reference voltage circuit to obtain a high level signal of the third signal, the method further includes:
[0038] The level of the third signal output by the rectifier circuit is reduced to k times by a voltage divider circuit, where 0<k<1.
[0039] Optionally, after obtaining the fourth signal, the method further includes:
[0040] The fourth signal is level-converted by a level conversion circuit to obtain a fifth signal. The amplitude of the fifth signal is different from the amplitude of the fourth signal, but the fifth signal changes in phase with the fourth signal.
[0041] Optionally, before sampling the third signal, the method further includes:
[0042] The third signal is filtered.
[0043] Optionally, after obtaining the fourth signal, the method further includes:
[0044] Obtaining a plurality of positive pulse signals according to the rising edge and the falling edge of the fourth signal;
[0045] After the first positive pulse signal is obtained, the sixth signal is set equal to the fourth signal, and the sixth signal is kept unchanged during a preset time thereafter, so as to eliminate the influence of the jitter in the fourth signal on the sixth signal.
[0046] Compared with the prior art, the technical solution provided by the present invention has the following advantages:
[0047] The signal conditioning system and method for a non-polarity dual bus provided by the present invention comprises: a rectifier circuit rectifies a first signal in a first bus and a second signal in a second bus to obtain a third signal; a level of the third signal is equal to the absolute value of a level difference between the first signal and the second signal; a reference voltage circuit samples the third signal to obtain a high-level signal of the third signal; a reference voltage signal is obtained according to the high-level signal; and since the reference voltage signal is equal to an average value of the high-level signal and a low-level signal in the third signal, the reference voltage signal is far away from both the high-level signal and the low-level signal. When the comparator compares the third signal with the reference voltage signal, misjudgment is reduced, thereby reducing the probability of errors in the signal conditioning result. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0049] Figure 1 It is a timing diagram of Bus1 and Bus2 signals in a non-polarity dual bus;
[0050] Figure 2It is another timing diagram of Bus1 and Bus2 signals in the non-polarity dual bus;
[0051] Figure 3 It is a timing diagram of the |Bus1-Bus2| signal and the output signal of the conditioning circuit obtained according to the Bus1 and Bus2 signals in the non-polarity dual bus;
[0052] Figure 4 It is a schematic diagram of curve comparison results of the reference voltage signal VREF obtained in the existing signal conditioning method and the high level signal Vbus_H and the low level signal Vbus_L;
[0053] Figure 5 A schematic diagram of the structure of a signal conditioning system provided by an embodiment of the present invention;
[0054] Figure 6 A timing diagram of a third signal VB provided in accordance with an embodiment of the present invention;
[0055] Figure 7 A schematic diagram of the structure of a reference voltage circuit provided by an embodiment of the present invention;
[0056] Figure 8 A circuit diagram of a sampling unit in a reference voltage circuit provided by an embodiment of the present invention;
[0057] Fig. 9 A circuit diagram of a first processing unit in a reference voltage circuit provided by an embodiment of the present invention;
[0058] Fig.10 A circuit diagram of a second processing unit in a reference voltage circuit provided by an embodiment of the present invention;
[0059] Fig.11 A schematic diagram of curve comparison results of a reference voltage signal VREF obtained in a signal conditioning system provided in one embodiment of the present invention and a high level signal Vbus_H and a low level signal Vbus_L;
[0060] Fig.12 A schematic diagram of the structure of a signal conditioning system provided by another embodiment of the present invention;
[0061] Fig.13 A schematic diagram of the structure of a signal conditioning system provided by another embodiment of the present invention;
[0062] Fig.14 A schematic diagram of the structure of a signal conditioning system provided by another embodiment of the present invention;
[0063] Fig.15 A schematic diagram of the structure of a signal conditioning system provided by another embodiment of the present invention;
[0064] Fig.16 A schematic diagram of the structure of a signal conditioning system provided by another embodiment of the present invention;
[0065] Fig.17 A timing diagram of signals in a debouncing circuit provided by one embodiment of the present invention;
[0066] Fig.18 A schematic diagram of a circuit structure for generating a SHOT signal in a debouncing circuit provided in one embodiment of the present invention;
[0067] Fig.19 for Fig.18 The signal timing diagram of each node in the circuit shown;
[0068] Fig. 20 A schematic diagram of a partial circuit structure for generating an OUT1 signal in a debouncing circuit provided in an embodiment of the present invention;
[0069] Fig.21 for Fig. 20 The signal timing diagram of each node in the circuit shown;
[0070] Fig. 22 A flowchart of a signal conditioning method provided by one embodiment of the present invention. DETAILED DESCRIPTION
[0071] As mentioned in the background technology, the traditional signal conditioning method easily leads to errors in the signal conditioning results. The traditional signal conditioning method rectifies Bus1 and Bus2 through a rectifier bridge to obtain a signal VB, samples the high-level signal Vbus_H of the signal VB through a reference voltage circuit, and subtracts a fixed value from Vbus_H to obtain a reference voltage signal VREF, and compares VB with VREF through a comparator to obtain a high-voltage logic signal, such as when Vbus_H>VREF, outputs a logic 0, and when Vbus_L<VREF, outputs a logic 1, and then converts the high-voltage logic signal into a logic signal of the required voltage amplitude through a level conversion circuit.
[0072] However, the inventors have found that the main reason for the error in the signal conditioning result is that the reference voltage signal VREF is not between Vbus_H and Vbus_L. Figure 4 As shown, a fixed value is subtracted from Vbus_H to obtain the curve V REF1, minus another fixed value to obtain curves VREF2, .... However, the reference voltage signal VREF generated by this method is not exactly between Vbus_H and Vbus_L in the full signal range. At this time, whichever of Vbus_H and Vbus_L is closer to VREF is more likely to mis-trigger the comparator. If Vbus_H and VREF are closer, it is easy to cause the comparator to output an erroneous result. In short, by setting a fixed difference with Vbus_H or Vbus_L to obtain VREF1, VREF2, ..., the risk of mis-triggering the comparator is greater, and it is also more likely to produce erroneous signal conditioning results.
[0073] Based on this, the present invention provides a signal conditioning system and method for a non-polarity dual bus to overcome the above-mentioned problems in the prior art. The non-polarity dual bus includes a first bus and a second bus, the first bus is used to transmit a first signal, and the second bus is used to transmit a second signal. The signal conditioning system includes:
[0074] A rectifier circuit, used for rectifying the first signal and the second signal to obtain a third signal, wherein the level of the third signal is equal to the absolute value of the level difference between the first signal and the second signal;
[0075] A reference voltage circuit, used for sampling the third signal to obtain a high level signal of the third signal, and obtaining a reference voltage signal according to the high level signal, wherein the reference voltage signal is equal to an average value of the high level signal and a low level signal in the third signal;
[0076] A comparator is used to compare the third signal with the reference voltage signal to obtain a fourth signal, the fourth signal is a digital signal, and the fourth signal changes with the third signal. In the signal conditioning system and method for a non-polarity dual bus provided by the present invention, a rectifier circuit rectifies a first signal in a first bus and a second signal in a second bus to obtain a third signal, the level of the third signal is equal to the absolute value of the level difference between the first signal and the second signal, a reference voltage circuit samples the third signal to obtain a high-level signal of the third signal, and a reference voltage signal is obtained according to the high-level signal. Since the reference voltage signal is equal to the average value of the high-level signal and the low-level signal in the third signal, the reference voltage signal is far away from both the high-level signal and the low-level signal. When the comparator compares the third signal with the reference voltage signal, it will reduce the occurrence of misjudgment, thereby reducing the probability of errors in the signal conditioning result.
[0077] The above is the core idea of the present invention. In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the technical solutions in the embodiments of the present invention will be clearly and completely described below in combination with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0078] An embodiment of the present invention provides a signal conditioning system for a non-polarity dual bus, wherein the non-polarity dual bus includes a first bus and a second bus, wherein the first bus is used to transmit a first signal Bus1, and the second bus is used to transmit a second signal Bus2. Figure 5 As shown, the signal conditioning system includes:
[0079] The rectifier circuit 10 is used to rectify the first signal Bus1 and the second signal Bus2 to obtain a third signal VB, wherein the level of the third signal VB is equal to the absolute value of the difference between the levels of the first signal Bus1 and the second signal Bus2;
[0080] A reference voltage circuit 11 is used for sampling the third signal VB to obtain a high level signal Vbus_H of the third signal VB, and obtaining a reference voltage signal VREF according to the high level signal Vbus_H, wherein the reference voltage signal VREF is equal to an average value of the high level signal Vbus_H and a low level signal Vbus_L in the third signal VB;
[0081] The comparator 12 is used for comparing the third signal VB with the reference voltage signal VREF to obtain a fourth signal OUT0 . The fourth signal OUT0 is a digital signal and varies with the third signal VB.
[0082] That is, the rectifier circuit 10 is connected to the first bus and the second bus of the non-polarity dual bus, and the rectifier circuit 10 rectifies the first signal Bus1 and the second signal Bus2 to obtain the third signal VB, and the level of the third signal VB is equal to the absolute value of the level difference between the first signal Bus1 and the second signal Bus2. Figure 1 Taking Bus1 and Bus2 as an example, the third signal VB is obtained as follows: Figure 6 shown.
[0083] Afterwards, the reference voltage circuit 11 samples the third signal VB to obtain the high-level signal Vbus_H of the third signal VB, and obtains the reference voltage signal VREF according to the high-level signal Vbus_H, and the reference voltage signal VREF is equal to the average value of the high-level signal Vbus_H and the low-level signal Vbus_L in the third signal VB; the comparator 12 compares the third signal VB with the reference voltage signal VREF to obtain the fourth signal OUT0, and the fourth signal OUT0 is a digital signal, and the fourth signal OUT0 changes with the third signal VB. For example, when VB>VREF, OUT0=0, and when VB<VREF, OUT0=1, that is, the fourth signal OUT0 is a digital signal composed of 0 and 1.
[0084] It should be noted that the rectifier circuit 10 in the embodiment of the present invention may be a rectifier bridge composed of four diodes, and the comparator 12 may be a conventional comparator, which will not be described in detail here.
[0085] In some embodiments of the present invention, Figure 7 As shown, the reference voltage circuit 11 includes a sampling unit 111 , a first processing unit 112 and a second processing unit 113 .
[0086] Among them, the sampling unit 111 is used to sample the high-level signal Vbus_H in the third signal VB; the first processing unit 112 is used to obtain the low-level signal Vbus_L according to the high-level signal Vbus_H, obtain the first reference current iREF1 and the second reference current iREF2 according to the low-level signal Vbus_L, and transmit the first reference current iREF1 and the second reference current iREF2 to the second processing unit 114; the second processing unit 114 is used to obtain the reference voltage signal VREF according to the high-level signal Vbus_H, the first reference current iREF1 and the second reference current iREF2.
[0087] In some embodiments of the present invention, Figure 8 As shown, the sampling unit 111 may include an operational amplifier, and the input terminal of the operational amplifier inputs the third signal VB. Since the output stage of the operational amplifier has a strong charging capability and a weak discharging capability, during the high level period of the third signal VB, the output of the operational amplifier can track the high level Vbus_H of the third signal VB at any time, that is, the output terminal of the operational amplifier will output the high level Vbus_H of the third signal VB. During other levels of the third signal VB, since the discharging capability of the operational amplifier is weak, the output terminal of the operational amplifier will still output the high level Vbus_H of the third signal VB. Of course, the present invention is not limited to this. In other embodiments, the sampling unit 111 may use other devices for sampling.
[0088] In some embodiments of the present invention, Fig. 9As shown, the first processing unit 113 includes a voltage conversion unit, a third error amplifier AP3, a thirteenth transistor M13 to a seventeenth transistor M17 and a fourth resistor R4. Since the difference between the high level Vbus_H and the low level Vbus_L is known, the low level Vbus_L can be converted from the high level Vbus_H by the voltage conversion unit and input into the third error amplifier AP3, so that the first processing unit 113 outputs a first reference current iREF1 and a second reference current iREF2, wherein iREF1=k1*Vbus_L / R, iREF2=k2*Vbus_L / R, wherein k1 and k2 are current ratios, and optionally, k1=0.5, k2=1.
[0089] like Fig.10 As shown, the second processing unit 114 includes a second error amplifier AP2, fourth to twelfth transistors M4 to M12, a second resistor R2 and a third resistor R3, wherein the resistance values of the second resistor R2, the third resistor R3 and the fourth resistor R4 are all R.
[0090] The first input terminal of the second error amplifier AP2 inputs the high level signal Vbus_H in the third signal VB, the output terminal of the second error amplifier AP2 is connected to the gates of the fourth transistor M4, the fifth transistor M5 and the sixth transistor M6, and the second input terminal of the second error amplifier AP2 is connected to the second terminal of the fourth transistor M4;
[0091] The first ends of the fourth transistor M4, the fifth transistor M5, the sixth transistor M6, the eleventh transistor M11 and the twelfth transistor M12 are connected to the reference voltage terminal VDD, the second end of the fourth transistor M4 is connected to the first end of the second resistor R2; the second end of the second resistor R2, the second end of the third resistor R3, the seventh transistor M7, the eighth transistor M8, the ninth transistor M9 and the tenth transistor M10 are grounded;
[0092] The second end of the fifth transistor M5 is connected to the first end of the seventh transistor M7, the second end of the sixth transistor M6 is connected to the first end of the ninth transistor M9; the gate of the seventh transistor M7 is connected to the gate of the eighth transistor M8, the first end of the seventh transistor M7 is connected to the gate of the seventh transistor M7; the gate of the eleventh transistor M11 is connected to the second end of the eleventh transistor M11, the second end of the eleventh transistor M11 is connected to the first end of the tenth transistor M10 and the first end of the eighth transistor M8
[0093] The gate of the twelfth transistor M12 is connected to the gate of the eleventh transistor M11; the second end of the twelfth transistor M12 is connected to the first end of the third resistor R3; the gate of the ninth transistor M9 is connected to the first end of the ninth transistor M9, and the gate of the ninth transistor M9 is connected to the gate of the tenth transistor M10;
[0094] A first input terminal of the third error amplifier AP3 inputs a low level signal Vbus_L in the third signal VB, an output terminal of the third error amplifier AP3 is connected to gates of the thirteenth transistor M13, the fourteenth transistor M14 and the fifteenth transistor M15, and a second input terminal of the third error amplifier AP3 is connected to a second terminal of the thirteenth transistor M13;
[0095] The first ends of the thirteenth transistor M13, the fourteenth transistor M14 and the fifteenth transistor M15 are connected to the reference voltage terminal VDD, the second end of the thirteenth transistor M13 is connected to the first end of the fourth resistor R4, and the second ends of the fourth resistor R4, the sixteenth transistor M16 and the seventeenth transistor M17 are grounded;
[0096] The second end of the fourteenth transistor M14 is connected to the first end of the sixteenth transistor M16, the gate of the sixteenth transistor M16 is connected to the first end of the sixteenth transistor M16 and the gate of the seventeenth transistor M17, the second end of the fifteenth transistor M15 is connected to the first end of the seventh transistor M7, and the first end of the seventeenth transistor M17 is connected to the first end of the ninth transistor M9.
[0097] like Fig.10 As shown, after the high-level signal Vbus_H is input to the second error amplifier AP2, the fifth transistor M5 outputs a current i1, and the sixth transistor M6 outputs a current i2, wherein, Wherein, k3 and k4 are current ratios, and the values of k3 and k4 are determined by the width-to-length ratios of the fifth transistor M5 and the sixth transistor M6. Optionally, k3=k4=0.5.
[0098] In some embodiments, Vbus_H∈[18,24], the expression of Vbus_L is:
[0099]
[0100] When Vbus_H<18V, Vbus_L=9, let i2-i REF2 =0, then i B =0. At this time, the expression of the reference voltage signal VREF is:
[0101]
[0102] When Vbus_H≥18V, Vbus_L=Vbus_H-9, let i2-i REF2 >0, then i B > 0. At this time, the expression of the reference voltage signal VREF is:
[0103]
[0104] It can be seen that VREF is always equal to And it will change according to the changes of Vbus_H and Vbus_L, that is, Fig.11 As shown, VREF is always located between Vbus_H and Vbus_L. Therefore, when the comparator 12 compares the third signal VB with the reference voltage signal VREF, misjudgment is reduced, thereby reducing the risk of mis-triggering the comparator 12, and further reducing the probability of errors in the signal conditioning result.
[0105] Based on any of the above embodiments, in some embodiments of the present invention, Fig.12 As shown, the signal conditioning system further includes a voltage divider circuit 13 .
[0106] The voltage divider circuit 13 is located between the rectifier circuit 10 and the reference voltage circuit 11; the voltage divider circuit 13 is used to reduce the level of the third signal VB output by the rectifier circuit 10 to k times, 0<k<1. That is, the level of the third signal VB is reduced to a range that low-voltage devices can withstand, and then most of the functional circuits can be built using low-voltage devices, reducing the area of the chip where the signal conditioning system is located and reducing costs.
[0107] Based on this, the reference voltage circuit 11 samples the third signal k×VB to obtain a high-level signal k×Vbus_H and a low-level signal k×Vbus_L of the third signal k×VB, and obtains a reference voltage signal VREF according to the high-level signal k×Vbus_H and the low-level signal k×Vbus_L. The reference voltage signal VREF is equal to the average value of the high-level signal k×Vbus_H and the low-level signal k×Vbus_L. The comparator 12 is used to compare the third signal k×VB with the reference voltage signal VREF to obtain a fourth signal OUT0. The fourth signal OUT0 is a digital signal, and the fourth signal OUT0 changes with the third signal VB.
[0108] In some embodiments of the present invention, the third signal VB may be voltage-divided and regulated before obtaining the fourth signal OUT0 so that the amplitude of the fourth signal OUT0 finally outputted meets the requirement. However, the present invention is not limited to this. In other embodiments of the present invention, the fourth signal OUT0 may be level-converted after obtaining the fourth signal OUT0 so that the amplitude of the fifth signal OUT finally outputted meets the requirement.
[0109] like Fig.13 As shown, in some other embodiments of the present invention, the signal conditioning system also includes a level conversion circuit 14, wherein the level conversion circuit 14 is used to perform level conversion on the fourth signal OUT0 to obtain a fifth signal OUT, the amplitude of the fifth signal OUT is different from the amplitude of the fourth signal OUT0, but the fifth signal OUT changes in phase with the fourth signal OUT0.
[0110] Based on any of the above embodiments, the signal conditioning system in the embodiment of the present invention further includes a sampling filter circuit, which is located between the rectifier circuit 10 and the reference voltage current 11, and is used to filter the third signal VB before sampling.
[0111] In some embodiments of the present invention, Fig.14 As shown, the sampling and filtering circuit includes a first sampling and filtering circuit 15, which is located between the voltage divider circuit 13 and the reference voltage circuit 11; the first sampling and filtering circuit 15 is used to filter the third signal VB output by the voltage divider circuit 13 and transmit it to the comparator 12 and the reference voltage circuit 11.
[0112] Since the non-polar dual bus is a signal line, the signal is easily interfered during long-distance transmission, and the non-polar dual bus is also a power line. The power line itself will cause some glitches or fluctuations in the transmitted signal due to the influence of the load. Therefore, the third signal VB or k×VB is noisy. Based on this, in the embodiment of the present invention, the third signal VB or k×VB is filtered by a sampling filter circuit to remove the interference signal in the third signal VB or k×VB to obtain the signal VB_OK or k×VB_OK.
[0113] It should be noted that, in some embodiments of the present invention, the sampling and filtering circuit may replace the sampling unit 111 to sample the third signal VB or k×VB to obtain the high-level signal Vbus_H or k×Vbus_H.
[0114] In some other embodiments of the present invention, Fig.15 As shown, the sampling and filtering circuit may further include a second sampling and filtering circuit 18, which is located between the rectifier circuit 10 and the reference voltage circuit 11; the second sampling and filtering circuit 18 is used to filter the third signal VB output by the rectifier circuit 10 and transmit it to the comparator 12 and the reference voltage circuit 11.
[0115] Since the non-polarity dual bus is both a signal line and a power line, it is easily interfered during long-distance transmission, or some glitches or fluctuations are generated due to the influence of the load, and the sampling filter circuit may not be able to completely filter out these interference factors. Therefore, in order to further reduce the influence of these interference factors on the signal conditioning result, on the basis of any of the above embodiments, as Fig.16 As shown, the signal conditioning system further includes a de-jitter circuit 21 , so as to eliminate the adverse effect of the jitter in the fourth signal OUT0 on the signal conditioning result through the de-jitter circuit 21 .
[0116] Among them, Fig.17 As shown, the de-jitter circuit 21 is used to obtain multiple positive pulse signals SHOT according to the rising edge and falling edge of the fourth signal OUT0, and after obtaining the first positive pulse signal, make the sixth signal OUT1 equal to the fourth signal OUT0, and within the subsequent preset time Td, make the sixth signal OUT1 remain unchanged to avoid the jitter in the fourth signal OUT0 from being transmitted to the sixth signal OUT1.
[0117] Because jitter appears immediately after the correct edge in time, the positive pulse corresponding to the correct edge appears first, and the positive pulse corresponding to the jitter factor appears immediately afterwards. Based on this, after the first positive pulse signal appears, the de-jitter circuit 21 sets OUT1=OUT0, and then shields the state of OUT1 within a reasonable preset time Td so that it cannot change, that is, within the preset time Td, OUT1 is always unchanged, so that the positive pulses caused by other jitter factors within the preset time Td are shielded, thereby ensuring the correctness of the output result.
[0118] It should be noted that the specific value of Td can be set according to the specific application scenario, and the present invention is not limited to this. It should also be noted that after Td time, OUT1 is still equal to OUT0, such as OUT1 is equal to the high level of OUT0, until the next positive pulse signal, OUT1 = OUT0, such as OUT1 is equal to the low level of OUT0.
[0119] It should also be noted that in some embodiments of the present invention, Fig.18 The circuit shown in FIG. 1 obtains a plurality of positive pulse signals SHOT according to the rising edge and falling edge of the fourth signal OUT0. Fig.18 The signal timing diagrams of the nodes A, B, SHOT-A, SHOT-B and SHOT in the circuit shown are as follows: Fig.19 In some embodiments of the present invention, Fig. 20 After the circuit shown in the figure obtains the first positive pulse signal, the sixth signal OUT1 is set equal to the fourth signal OUT0, and the sixth signal OUT1 is kept unchanged within the preset time Td thereafter. Fig. 20The signal timing diagram of each node RAMP, TSN, TSP and OUT1 in the circuit shown is as follows Fig.21 shown.
[0120] Of course, the present invention is not limited to this. In other embodiments, debouncing circuits with other structures may be used to implement the debouncing function.
[0121] The embodiment of the present invention further provides a signal conditioning method for a non-polarity dual bus, which is applied to a signal conditioning system as described in any of the above embodiments. Fig. 22 As shown, the signal conditioning methods include:
[0122] S101: rectifying the first signal and the second signal by a rectifying circuit to obtain a third signal, wherein the level of the third signal is equal to the absolute value of the level difference between the first signal and the second signal;
[0123] The rectifier circuit 10 is connected to the first bus and the second bus of the non-polarity dual bus. The rectifier circuit 10 rectifies the first signal Bus1 and the second signal Bus2 to obtain a third signal VB. The level of the third signal VB is equal to the absolute value of the level difference between the first signal Bus1 and the second signal Bus2. Figure 1 Taking Bus1 and Bus2 as an example, the third signal VB is obtained as follows: Figure 6 It should be noted that the rectifier circuit 10 in the embodiment of the present invention may be a rectifier bridge composed of four diodes.
[0124] S102: sampling the third signal through a reference voltage circuit to obtain a high level signal of the third signal, and obtaining a reference voltage signal according to the high level signal, wherein the reference voltage signal is equal to an average value of the high level signal and a low level signal of the third signal;
[0125] After obtaining the third signal VB, the reference voltage circuit 11 samples the third signal VB to obtain a high level signal Vbus_H of the third signal VB, and obtains a reference voltage signal VREF according to the high level signal Vbus_H. The reference voltage signal VREF is equal to the average value of the high level signal Vbus_H and the low level signal Vbus_L in the third signal VB.
[0126] In some embodiments of the present invention, sampling the third signal VB by the reference voltage circuit 11 to obtain a high level signal Vbus_H of the third signal VB, and obtaining the reference voltage signal VREF according to the high level signal Vbus_H includes:
[0127] Sampling a high level signal Vbus_H in the third signal VB by a sampling unit;
[0128] Obtaining a low-level signal Vbus_L of the third signal VB according to the high-level signal Vbus_H through the first processing unit, obtaining a first reference current and a second reference current according to the low-level signal Vbus_L, and transmitting the first reference current and the second reference current to the second processing unit;
[0129] The reference voltage signal VREF is obtained by the second processing unit according to the high level signal Vbus_H, the first reference current and the second reference current.
[0130] The specific process of obtaining the reference voltage signal VREF is the same as that in the above embodiment and will not be described again.
[0131] S103: Compare the third signal with the reference voltage signal through a comparator to obtain a fourth signal, where the fourth signal is a digital signal and changes with the third signal.
[0132] After obtaining the reference voltage signal VREF, the comparator 12 compares the third signal VB with the reference voltage signal VREF to obtain a fourth signal OUT0, which is a digital signal. The fourth signal OUT0 changes with the third signal VB. For example, when VB>VREF, OUT0=0, and when VB<VREF, OUT0=1, that is, the fourth signal OUT0 is a digital signal composed of 0 and 1.
[0133] Based on any of the above embodiments, in some embodiments of the present invention, before sampling the third signal VB through the reference voltage circuit to obtain the high level signal Vbus_H of the third signal VB, the method further includes:
[0134] The level of the third signal VB output by the rectifier circuit is reduced to k times through the voltage divider circuit, where 0<k<1.
[0135] Of course, the present invention is not limited to this. In other embodiments of the present invention, after obtaining the fourth signal OUT0, the following steps are further included:
[0136] The fourth signal OUT0 is level-converted by the level conversion circuit to obtain a fifth signal OUT. The amplitude of the fifth signal OUT is different from that of the fourth signal OUT0, but the fifth signal OUT changes in phase with the fourth signal OUT0.
[0137] On the basis of any of the above embodiments, in some embodiments of the present invention, before sampling the third signal VB, the method further includes: filtering the third signal VB.
[0138] In the embodiment of the present invention, the third signal VB may be filtered by the first filtering circuit, or by the first filtering circuit and the second filtering circuit. Please refer to the above embodiments for details, which will not be described in detail here.
[0139] Based on any of the above embodiments, in some embodiments of the present invention, after obtaining the fourth signal OUT0, the method further includes:
[0140] A plurality of positive pulse signals SHOT are obtained according to the rising edge and the falling edge of the fourth signal OUT0;
[0141] After the first positive pulse signal is obtained, the sixth signal OUT1 is set equal to the fourth signal OUT0 , and the sixth signal OUT1 is kept unchanged for a preset time thereafter, so as to eliminate the influence of jitter in the fourth signal OUT0 .
[0142] like Fig.17 As shown, the de-jitter circuit 21 obtains multiple positive pulse signals SHOT according to the rising edge and falling edge of the fourth signal OUT0, and after obtaining the first positive pulse signal, makes the sixth signal OUT1 equal to the fourth signal OUT0, and within the subsequent preset time Td, makes the sixth signal OUT1 remain unchanged to eliminate the influence of jitter in the fourth signal OUT0.
[0143] Because jitter appears immediately after the correct edge in time, the positive pulse corresponding to the correct edge appears first, and the positive pulse corresponding to the jitter factor appears immediately afterwards. Based on this, after the first positive pulse signal appears, the de-jitter circuit 21 sets OUT1=OUT0, and then shields the state of OUT1 within a reasonable preset time Td so that it cannot change, that is, within the preset time Td, OUT1 is always unchanged, so that the positive pulses caused by other jitter factors within the preset time Td are shielded, thereby ensuring the correctness of the output result.
[0144] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0145] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A signal conditioning system for a non-polarity dual bus, characterized in that: The non-polarity dual bus includes a first bus and a second bus, the first bus is used to transmit a first signal, and the second bus is used to transmit a second signal. The signal conditioning system includes: a rectifier circuit, used for rectifying the first signal and the second signal to obtain a third signal, wherein the level of the third signal is equal to the absolute value of the level difference between the first signal and the second signal; A reference voltage circuit, used for sampling the third signal to obtain a high level signal of the third signal, and obtaining a reference voltage signal according to the high level signal, wherein the reference voltage signal is equal to an average value of the high level signal and a low level signal of the third signal; A comparator, used for comparing the third signal with the reference voltage signal to obtain a fourth signal, wherein the fourth signal is a digital signal and changes with the third signal; Among them, the dual bus is a technology that combines the power supply line and the signal line into one, so that the signal and power supply share one bus. The non-polarity means that there is no positive or negative distinction. The non-polarity dual bus is two buses that can ensure normal communication regardless of whether they are connected positively or reversely.
2. The system according to claim 1, characterized in that The reference voltage circuit includes a sampling unit, a first processing unit and a second processing unit; The sampling unit is used to sample the high level signal in the third signal; The first processing unit is used to obtain a low-level signal of the third signal according to the high-level signal, obtain a first reference current and a second reference current according to the low-level signal, and transmit the first reference current and the second reference current to the second processing unit; The second processing unit is used to obtain a reference voltage signal according to the high level signal, the first reference current and the second reference current.
3. The system according to claim 2, characterized in that The second processing unit includes a second error amplifier, fourth to twelfth transistors, a second resistor and a third resistor; the first processing unit includes a third error amplifier, thirteenth to seventeenth transistors and a fourth resistor; A first input terminal of the second error amplifier inputs a high level signal in the third signal, an output terminal of the second error amplifier is connected to gates of the fourth transistor, the fifth transistor and the sixth transistor, and a second input terminal of the second error amplifier is connected to a second terminal of the fourth transistor; The first ends of the fourth transistor, the fifth transistor, the sixth transistor, the eleventh transistor and the twelfth transistor are connected to the reference voltage end, the second end of the fourth transistor is connected to the first end of the second resistor; the second end of the second resistor, the second end of the third resistor, the seventh transistor, the eighth transistor, the ninth transistor and the tenth transistor are grounded; The second end of the fifth transistor is connected to the first end of the seventh transistor, and the second end of the sixth transistor is connected to the first end of the ninth transistor; the gate of the seventh transistor is connected to the gate of the eighth transistor, and the first end of the seventh transistor is connected to the gate of the seventh transistor; the gate of the eleventh transistor is connected to the second end of the eleventh transistor, and the second end of the eleventh transistor is connected to the first end of the tenth transistor and the first end of the eighth transistor The gate of the twelfth transistor is connected to the gate of the eleventh transistor; the second end of the twelfth transistor is connected to the first end of the third resistor; the gate of the ninth transistor is connected to the first end of the ninth transistor, and the gate of the ninth transistor is connected to the gate of the tenth transistor; The first input terminal of the third error amplifier inputs the low level signal in the third signal, the output terminal of the third error amplifier is connected to the gates of the thirteenth transistor, the fourteenth transistor and the fifteenth transistor, and the second input terminal of the third error amplifier is connected to the second terminal of the thirteenth transistor; The first ends of the thirteenth transistor, the fourteenth transistor and the fifteenth transistor are connected to the reference voltage terminal, the second end of the thirteenth transistor is connected to the first end of the fourth resistor, and the second ends of the fourth resistor, the sixteenth transistor and the seventeenth transistor are grounded; The second end of the fourteenth transistor is connected to the first end of the sixteenth transistor, the gate of the sixteenth transistor is connected to the first end of the sixteenth transistor and the gate of the seventeenth transistor, the second end of the fifteenth transistor is connected to the first end of the seventh transistor, and the first end of the seventeenth transistor is connected to the first end of the ninth transistor.
4. The system according to claim 1, characterized in that Also includes a voltage divider circuit, the voltage divider circuit is located between the rectifier circuit and the reference voltage circuit; The voltage divider circuit is used to reduce the level of the third signal output by the rectifier circuit to k times, 0<k<1.
5. The system according to claim 1, characterized in that Also included is a level conversion circuit; The level conversion circuit is used for performing level conversion on the fourth signal to obtain a fifth signal. The amplitude of the fifth signal is different from the amplitude of the fourth signal, but the fifth signal changes in phase with the fourth signal.
6. The system according to any one of claims 1 to 5, characterized in that: It also includes a sampling filter circuit, wherein the sampling filter circuit is located between the rectifier circuit and the reference voltage circuit; The sampling filter circuit is used to filter the third signal before sampling.
7. The system according to claim 6, characterized in that It also includes a debounce circuit; The de-jitter circuit is used to obtain multiple positive pulse signals according to the rising edge and falling edge of the fourth signal. After obtaining the first positive pulse signal, the sixth signal is made equal to the fourth signal, and the sixth signal is kept unchanged within a preset time thereafter to eliminate the influence of the jitter in the fourth signal on the sixth signal.
8. A signal conditioning method for a non-polarity dual bus, characterized in that: Applied to the signal conditioning system according to any one of claims 1 to 7, the signal conditioning method comprises: Rectifying the first signal and the second signal by a rectifying circuit to obtain a third signal, wherein the level of the third signal is equal to the absolute value of the level difference between the first signal and the second signal; Sampling the third signal through a reference voltage circuit to obtain a high level signal of the third signal, and obtaining a reference voltage signal according to the high level signal, wherein the reference voltage signal is equal to an average value of the high level signal and a low level signal of the third signal; Comparing the third signal with the reference voltage signal by a comparator to obtain a fourth signal, wherein the fourth signal is a digital signal and changes with the third signal; Among them, the dual bus is a technology that combines the power supply line and the signal line into one, so that the signal and power supply share one bus. The non-polarity means that there is no distinction between positive and negative. The non-polarity dual bus is two buses that can ensure normal communication regardless of whether they are connected positively or reversely.
9. The method according to claim 8, characterized in that Sampling the third signal through a reference voltage circuit to obtain a high level signal of the third signal, and obtaining a reference voltage signal according to the high level signal includes: Sampling the high level signal in the third signal by a sampling unit; Obtaining, by a first processing unit, a low-level signal of the third signal according to the high-level signal, and obtaining a first reference current and a second reference current according to the low-level signal; A reference voltage signal is obtained by a second processing unit according to the high level signal, the first reference current and the second reference current.
10. The method according to claim 8, characterized in that Before sampling the third signal through the reference voltage circuit to obtain a high level signal of the third signal, the method further includes: The level of the third signal output by the rectifier circuit is reduced to k times by a voltage divider circuit, where 0<k<1.
11. The method according to claim 8, characterized in that After the fourth signal is obtained, the method further includes: The fourth signal is level-converted by a level conversion circuit to obtain a fifth signal. The amplitude of the fifth signal is different from the amplitude of the fourth signal, but the fifth signal changes in phase with the fourth signal.
12. The method according to any one of claims 8 to 11, characterized in that: Before sampling the third signal, the method further includes: The third signal is filtered.
13. The method according to claim 12, characterized in that After the fourth signal is obtained, the method further includes: Obtaining a plurality of positive pulse signals according to the rising edge and the falling edge of the fourth signal; After the first positive pulse signal is obtained, the sixth signal is set equal to the fourth signal, and the sixth signal is kept unchanged during a preset time thereafter, so as to eliminate the influence of the jitter in the fourth signal on the sixth signal.
