Bus decoding circuit, method and two-bus communication system

By employing dual threshold voltage comparison logic in the bus decoding circuit to dynamically adjust the threshold voltage, the problem of signal susceptibility to power fluctuations in traditional two-bus communication systems is solved, achieving higher decoding accuracy and anti-interference capability while reducing costs.

CN122268530APending Publication Date: 2026-06-23CRM ICBG (WUXI) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
CRM ICBG (WUXI) CO LTD
Filing Date
2024-12-20
Publication Date
2026-06-23

AI Technical Summary

Technical Problem

In traditional two-bus communication systems, signals are easily affected by power fluctuations, have weak anti-interference capabilities, and are prone to misjudgment.

Method used

The dual threshold voltage comparison logic in the bus decoding circuit is adopted. The threshold voltage is dynamically adjusted through comparators and selectors. The appropriate threshold voltage is selected according to the voltage range of the bus voltage signal to eliminate glitches and interference signals.

Benefits of technology

It improves the accuracy and anti-interference capability of bus decoding, reduces the impact of glitch interference signals, simplifies peripheral design, and reduces usage costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122268530A_ABST
    Figure CN122268530A_ABST
Patent Text Reader

Abstract

The application provides a bus decoding circuit, a method and a two-bus communication system. The bus decoding circuit comprises a bus decoding module and a threshold output module. The bus decoding module comprises a comparator, a first input end of the comparator is connected to a bus voltage signal transmitted on a bus, a second input end of the comparator is connected to a threshold voltage, the comparator is used for comparing the bus voltage signal with the threshold voltage to obtain a comparison result, and the bus decoding module is used for decoding the bus voltage signal according to the comparison result; and the threshold output module is used for dynamically adjusting the threshold voltage output to the second input end of the comparator according to the comparison result. The application can effectively solve the problem of interference of a burr signal and improve the accuracy of bus decoding.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technology, and in particular to a bus decoding circuit, method, and two-bus communication system. Background Technology

[0002] In a two-bus communication system, power and signal share two lines, meaning these two lines provide both power and transmit signals. This type of communication system has advantages such as simple power supply, wide power supply voltage range, fewer connecting wires, and ease of design and construction. However, because traditional two-bus communication systems share two lines for power and signal, the signal may be affected by power fluctuations, resulting in relatively weak anti-interference capabilities and a higher likelihood of misinterpretation. Summary of the Invention

[0003] The purpose of this application is to provide a bus decoding circuit, method, and two-bus communication system that can solve at least one of the technical problems mentioned in the prior art.

[0004] One aspect of this application provides a bus decoding circuit. The bus decoding circuit includes a bus decoding module and a threshold output module. The bus decoding module includes a comparator, a first input terminal of which is connected to a bus voltage signal transmitted on the bus, and a second input terminal of which is connected to a threshold voltage. The comparator is used to compare the bus voltage signal with the threshold voltage to obtain a comparison result. The bus decoding module is used to decode the bus voltage signal based on the comparison result. The threshold output module is used to dynamically adjust the threshold voltage output to the second input terminal of the comparator based on the comparison result.

[0005] Further, the threshold voltage includes a first threshold voltage and a second threshold voltage, and the threshold output module includes a selector, wherein the two selection input terminals of the selector are respectively connected to the first threshold voltage and the second threshold voltage, the control terminal of the selector is connected to the output terminal of the comparator, and the output terminal of the selector is connected to the second input terminal of the comparator. The selector is used to control the selector to select the first threshold voltage or the second threshold voltage output according to the signal output by the output terminal of the comparator.

[0006] Furthermore, the first input terminal of the comparator is the non-inverting input terminal of the comparator, and the second input terminal of the comparator is the inverting input terminal of the comparator.

[0007] Furthermore, the second threshold voltage is greater than the first threshold voltage, wherein when the output of the comparator is high, the selector selects the first threshold voltage to be output to the inverting input of the comparator; when the output of the comparator is low, the selector selects the second threshold voltage to be output to the inverting input of the comparator.

[0008] Furthermore, the bus decoding circuit also includes a comparator threshold setting module, wherein the comparator threshold setting module is used to set the first threshold voltage and the second threshold voltage of the comparator flipping.

[0009] Furthermore, the comparator threshold setting module includes a resistor voltage divider circuit, which includes multiple voltage divider resistors connected in series, forming multiple voltage divider taps with different voltage division values ​​from the multiple voltage divider resistors. The comparator threshold setting module is used to select the voltages output by two corresponding voltage divider taps as the first threshold voltage and the second threshold voltage, respectively, according to the voltage range of the bus voltage signal.

[0010] Another aspect of this application provides a two-bus communication system. The two-bus communication system includes a master unit, a slave unit, and two buses. The master unit communicates with the slave unit via the two buses. The slave unit includes a bus decoding circuit as described above, which is used to decode the bus voltage signals transmitted on the buses.

[0011] Another aspect of this application provides a bus decoding method. The bus decoding method includes: acquiring a bus voltage signal transmitted on the bus; comparing the bus voltage signal with a threshold voltage to obtain a comparison result; decoding the bus voltage signal based on the comparison result; and dynamically adjusting the threshold voltage based on the comparison result.

[0012] Further, the threshold voltage includes a first threshold voltage and a second threshold voltage, wherein the second threshold voltage is greater than the first threshold voltage, and the step of dynamically adjusting the threshold voltage according to the comparison result includes: when the comparison result is high, adjusting the threshold voltage to the first threshold voltage; when the comparison result is low, adjusting the threshold voltage to the second threshold voltage.

[0013] Furthermore, the bus decoding method further includes: dynamically adjusting the magnitudes of the first threshold voltage and the second threshold voltage according to the voltage range of the bus voltage signal.

[0014] The bus decoding circuit, method, and two-bus communication system of one or more embodiments of this application can dynamically adjust the threshold voltage based on the comparison result of the bus voltage signal and the threshold voltage, thereby reducing glitches and improving the accuracy of bus decoding.

[0015] The bus decoding circuit, method, and two-bus communication system of one or more embodiments of this application implement bus decoding by using bus dual threshold voltage comparison logic, which can effectively eliminate the influence of glitches and interference signals generated by power fluctuations on decoding and improve anti-interference capability.

[0016] Furthermore, the bus decoding circuit, method, and two-bus communication system of one or more embodiments of this application, through the existence of dual thresholds, allow for more flexible setting of threshold voltages. The first threshold voltage and the second threshold voltage can be dynamically adjusted according to the voltage range of the bus voltage signal, which can accommodate more bus voltage waveforms, making the bus peripheral design simpler and reducing the cost of use. Attached Figure Description

[0017] Figure 1 This is a schematic diagram illustrating the working principle of a two-bus communication system in related technologies.

[0018] Figure 2 for Figure 1 The diagram shows the decoding process of a two-bus communication system when interference signals are present.

[0019] Figure 3 This is a schematic diagram of the structure of a bus decoding circuit according to an embodiment of this application.

[0020] Figure 4 This is a schematic diagram of a bus decoding principle for dual threshold voltages according to an embodiment of this application.

[0021] Figure 5 This is a simplified schematic diagram of a two-bus communication system according to an embodiment of this application.

[0022] Figure 6 This is a flowchart of a bus decoding method according to an embodiment of this application. Detailed Implementation

[0023] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses consistent with some aspects of this application as detailed in the appended claims.

[0024] Figure 1The working principle diagram of a two-bus communication system in related technologies is revealed. For example... Figure 1 As shown, during communication, a series of high and low bus voltages are generated on the bus. The bus voltage is processed and compared with a pre-set comparator threshold voltage. When the bus voltage is higher than the comparator threshold voltage, the comparator outputs 1; when the bus voltage is lower than the comparator threshold voltage, the comparator outputs 0, thus realizing the conversion of the bus voltage into a 0 or 1 signal to achieve data transmission.

[0025] However, the power supply is not an ideal high or low voltage, and there will be a lot of interference signals. Figure 2 Revealed Figure 1 The diagram shows the decoding process of a two-bus communication system when interference signals are present. Figure 2 As shown, the bus low voltage is not very low, and the difference between it and the comparator's toggle threshold voltage is not significant. During decoding, if the bus power supply fluctuates, such as during code return current extraction, glitches will appear within the dashed box. Although the interference signal is not very high, according to... Figure 1 The working principle of a two-bus communication system is that if the threshold voltage for comparator switching is exceeded, the comparator output will be affected. A normally transmitted 101 signal will be incorrectly decoded as a 10101 signal, which will inevitably lead to communication failure.

[0026] Related technologies eliminate this type of decoding error in the following ways: For example, by pulling the low bus voltage even lower, but this requires the power supply to provide greater drive capability, which inevitably increases the cost. Alternatively, filters can be added to remove glitches, but the diversity of glitches makes the filters ineffective and adds more logic, making the entire decoding circuit very complex. Another approach is to adjust the threshold voltage of the comparator to prevent glitches from exceeding it; however, this reduces the general applicability of the solution.

[0027] In view of this, this application provides an improved bus decoding circuit that can solve at least one of the technical problems mentioned in the above-mentioned related technologies.

[0028] The bus decoding circuit, method, and two-bus communication system of this application will now be described in detail with reference to the accompanying drawings. Unless otherwise specified, the features of the following embodiments and implementations can be combined with each other.

[0029] Figure 3 A schematic diagram of the structure of a bus decoding circuit 200 according to an embodiment of this application is shown. Figure 3 As shown, a bus decoding circuit 200 of one embodiment of this application may include a bus decoding module and a threshold output module.

[0030] The bus decoding module includes a comparator 230. The first input of the comparator 230 is connected to the bus voltage signal transmitted on the bus, and the second input is connected to a threshold voltage. The comparator 230 compares the bus voltage signal with the threshold voltage to obtain a comparison result. The bus decoding module can decode the bus voltage signal based on the comparison result of the comparator 230.

[0031] The threshold output module can dynamically adjust the threshold voltage output to the second input terminal of comparator 230 based on the comparison result of comparator 230.

[0032] The bus decoding circuit 200 of this application can reduce glitches and improve the accuracy of bus decoding by setting a threshold output module. The threshold output module can dynamically adjust the threshold voltage of the comparator 230 according to the comparison result of the comparator 230.

[0033] In some embodiments, the threshold voltage may include a first threshold voltage and a second threshold voltage.

[0034] The threshold output module of this application includes a selector 220.

[0035] The two selection inputs of selector 220 are respectively connected to a first threshold voltage and a second threshold voltage; the output of comparator 230 is connected to the control terminal of selector 220 for controlling the output of selector 220; the output of selector 220 is connected to the second input of comparator 230. Selector 220 can control itself to select either the first threshold voltage or the second threshold voltage output based on the signal output from the output of comparator 230, which serves as the threshold voltage for comparator 230 toggles.

[0036] In the embodiments of this application, the first input terminal of comparator 230 is the non-inverting input terminal of comparator 230, and the second input terminal of comparator 230 is the inverting input terminal of comparator 230. That is, the non-inverting input terminal of comparator 230 is connected to the bus voltage signal, and the inverting input terminal of comparator 230 is connected to the output terminal of selector 220.

[0037] The second threshold voltage is greater than the first threshold voltage. For example, selector 220 has a low-level ("0") select input and a high-level ("1") select input. The high-level ("1") select input of selector 220 receives the first threshold voltage, and the low-level ("0") select input of selector 220 receives the second threshold voltage.

[0038] When the output of comparator 230 is a low level "0", selector 220 selects the signal input to the low level ("0") selection input terminal. That is, the output of selector 220 selects the second threshold voltage output and outputs the second threshold voltage to the inverting input terminal of comparator 230 as the threshold voltage for comparator 230 toggles.

[0039] When the output of comparator 230 outputs a high level "1", selector 220 selects the signal input to the high level ("1") selection input terminal. That is, the output of selector 220 selects the first threshold voltage output and outputs the first threshold voltage to the inverting input terminal of comparator 230 as the threshold voltage for comparator 230 to flip.

[0040] In some embodiments, the bus decoding circuit 200 of this application may further include a comparator threshold setting module 210.

[0041] The comparator threshold setting module 210 can be used to set the first threshold voltage and the second threshold voltage for the comparator 230 to flip.

[0042] Optionally, the comparator threshold setting module 210 can dynamically adjust the magnitude of the first threshold voltage and the second threshold voltage according to the voltage range of the bus voltage signal transmitted on the bus. The bus voltage signal is transmitted in the form of high and low voltages, and the first threshold voltage and the second threshold voltage can be reasonably selected between the high voltage and low voltage of the bus voltage signal.

[0043] The comparator threshold setting module 210 of this application can flexibly set the first threshold voltage and the second threshold voltage toggled by the comparator 230. In some embodiments, the comparator threshold setting module 210 may include a resistor voltage divider circuit. The resistor voltage divider circuit includes a plurality of voltage divider resistors connected in series. A plurality of voltage divider taps with different voltage division values ​​are formed from the plurality of voltage divider resistors. The comparator threshold setting module 210 can select the voltages output by the two corresponding voltage divider taps as the first threshold voltage and the second threshold voltage, respectively, according to the voltage range of the bus voltage signal. Thus, the first threshold voltage and the second threshold voltage can be flexibly set.

[0044] Optionally, the comparator threshold setting module 210 may further include a memory, which can be used to store the voltage of the bus voltage signal. For example, the memory stores bus voltage signals corresponding to multiple decoding processes, and a second threshold voltage can be set based on the highest bus voltage signal in the multiple decoding processes, while a first threshold voltage is set based on the lowest bus voltage signal in the multiple decoding processes. Alternatively, the memory stores the bus voltage signal corresponding to the previous decoding process, and a second threshold voltage can be set based on the highest bus voltage signal in the previous decoding process, while a first threshold voltage is set based on the lowest bus voltage signal in the previous decoding process.

[0045] Figure 4 A schematic diagram of a bus decoding principle for dual threshold voltages according to an embodiment of this application is disclosed. Figure 4 As shown, when the bus voltage is high (when the comparator 230 outputs 1), the comparator 230 selects the first threshold voltage for its toggle threshold; when the bus voltage is low (when the comparator 230 outputs 0), the comparator 230 selects the second threshold voltage for its toggle threshold. Thus, even if glitches or interference signals appear within the dashed box during communication, because the comparator 230's toggle threshold voltage has already been adjusted to the second threshold voltage when its output is 0, and the second threshold voltage can be set relatively high, the glitches or interference signals will not trigger the comparator 230 toggle. This effectively eliminates the impact of the glitches or interference on decoding. Therefore, by setting appropriate first and second threshold voltages, interference signals on the bus can be effectively filtered out.

[0046] The bus decoding circuit 200 of this application sets a dual threshold switching voltage for the comparator 230, namely a first threshold voltage and a second threshold voltage. The first threshold voltage or the second threshold voltage can be triggered according to the signal output by the comparator 230 as the threshold voltage for the comparator 230 to switch. Thus, the problem of glitch signal interference can be effectively solved with almost no increase in cost, thereby improving the accuracy of bus decoding.

[0047] This application also provides a two-bus communication system 100. Figure 5 A simplified schematic diagram of a two-bus communication system 100 according to an embodiment of this application is shown. Figure 5 As shown, a two-bus communication system 100 according to an embodiment of this application includes a host 110, a slave 120, and two buses 130. The host 110 communicates with the slave 120 through the two buses 130. The slave 120 includes the bus decoding circuit 200 as described above, which can be used to decode the bus voltage signal transmitted on the bus 130.

[0048] This application also provides a bus decoding method. This bus decoding method can be implemented by the bus decoding circuit described in the above embodiments or applied to the two-bus communication system described in the above embodiments. Figure 6 A flowchart illustrating a bus decoding method according to an embodiment of this application is provided. Figure 6 As shown, a bus decoding method according to one embodiment of this application may include steps S1 to S4.

[0049] In step S1, the bus voltage signal transmitted on the bus is acquired.

[0050] In step S2, the bus voltage signal is compared with the threshold voltage to obtain the comparison result.

[0051] In some embodiments, the threshold voltage includes a first threshold voltage and a second threshold voltage, wherein the second threshold voltage is greater than the first threshold voltage. In this case, the step S2 of comparing the bus voltage signal with the threshold voltage to obtain the comparison result may further include steps S21 and S22.

[0052] In step S21, when the comparison result is high, the threshold voltage is adjusted to the first threshold voltage.

[0053] In step S22, when the comparison result is low, the threshold voltage is adjusted to the second threshold voltage.

[0054] In step S3, the bus voltage signal is decoded based on the comparison result, and the threshold voltage is dynamically adjusted based on the comparison result.

[0055] It should be noted that in the two-bus communication system 100, both power and signals are transmitted on the bus. Since power is transmitted on the bus, the bus voltage signal transmitted on the bus must initially be a high voltage. At this point, regardless of whether the initial threshold voltage is the first threshold voltage or the second threshold voltage, the initial comparison result will always be high. After obtaining the initial comparison result, the threshold voltage can be adjusted to the first threshold voltage based on the high comparison result. Subsequently, the threshold voltage can be dynamically adjusted to the first threshold voltage or the second threshold voltage based on whether the comparison result is high or low.

[0056] In some embodiments, the bus decoding method of this application may further include step S4.

[0057] In step S4, the magnitudes of the first threshold voltage and the second threshold voltage can be dynamically adjusted according to the voltage range of the bus voltage signal.

[0058] For example, the voltage output of the two corresponding voltage divider taps of the resistor voltage divider circuit can be selected as the first threshold voltage and the second threshold voltage according to the voltage range of the bus voltage signal. The resistor voltage divider circuit includes multiple voltage divider resistors connected in series, and multiple voltage divider taps with different voltage divider values ​​can be formed from the multiple voltage divider resistors.

[0059] The bus decoding circuit 200, method, and two-bus communication system 100 of one or more embodiments of this application can dynamically adjust the threshold voltage based on the comparison result of the bus voltage signal and the threshold voltage, thereby reducing glitches and improving the accuracy of bus decoding.

[0060] The bus decoding circuit 200, method, and two-bus communication system 100 of one or more embodiments of this application implement bus decoding by using bus dual threshold voltage comparison logic, which can effectively eliminate the influence of glitches and interference signals generated by power fluctuations on decoding and improve anti-interference capability.

[0061] In addition, the bus decoding circuit 200, method and two-bus communication system 100 of one or more embodiments of this application have more flexible threshold voltage settings due to the existence of dual thresholds. The first threshold voltage and the second threshold voltage can be dynamically adjusted according to the voltage range of the bus voltage signal, which can adapt to more bus voltage waveforms, making the bus peripheral design simpler and reducing the cost of use.

[0062] The bus decoding circuit, method, and two-bus communication system provided in the embodiments of this application have been described in detail above. Specific examples have been used to illustrate the bus decoding circuit, method, and two-bus communication system of the embodiments of this application. The descriptions of the embodiments above are only for helping to understand the core ideas of this application and are not intended to limit this application. It should be noted that for those skilled in the art, several improvements and modifications can be made to this application without departing from the spirit and principles of this application, and all such improvements and modifications should fall within the protection scope of the appended claims.

Claims

1. A bus decoding circuit, characterized in that, It includes a bus decoding module and a threshold output module, wherein, The bus decoding module includes a comparator. The first input terminal of the comparator is connected to the bus voltage signal transmitted on the bus, and the second input terminal of the comparator is connected to a threshold voltage. The comparator is used to compare the bus voltage signal with the threshold voltage to obtain a comparison result. The bus decoding module is used to decode the bus voltage signal according to the comparison result. The threshold output module is used to dynamically adjust the threshold voltage output to the second input terminal of the comparator based on the comparison result.

2. The bus decoding circuit as described in claim 1, characterized in that, The threshold voltage includes a first threshold voltage and a second threshold voltage, and the threshold output module includes a selector, wherein... The two selection input terminals of the selector are respectively connected to the first threshold voltage and the second threshold voltage. The control terminal of the selector is connected to the output terminal of the comparator, and the output terminal of the selector is connected to the second input terminal of the comparator. The selector is used to control the selector to select the first threshold voltage or the second threshold voltage output according to the signal output by the output terminal of the comparator.

3. The bus decoding circuit as described in claim 2, characterized in that, The first input terminal of the comparator is the non-inverting input terminal of the comparator, and the second input terminal of the comparator is the inverting input terminal of the comparator.

4. The bus decoding circuit as described in claim 3, characterized in that, The second threshold voltage is greater than the first threshold voltage, wherein, When the comparator outputs a high level, the selector selects the first threshold voltage and outputs it to the inverting input of the comparator. When the output of the comparator is low, the selector selects the second threshold voltage and outputs it to the inverting input of the comparator.

5. The bus decoding circuit as described in claim 2, characterized in that, It also includes a comparator threshold setting module, wherein, The comparator threshold setting module is used to set the first threshold voltage and the second threshold voltage for the comparator to flip.

6. The bus decoding circuit as described in claim 5, characterized in that, The comparator threshold setting module includes a resistor voltage divider circuit, which includes multiple voltage divider resistors connected in series. Multiple voltage divider taps with different voltage divider values ​​are formed from the multiple voltage divider resistors. The comparator threshold setting module is used to select the voltage output of two corresponding voltage divider taps as the first threshold voltage and the second threshold voltage, respectively, according to the voltage range of the bus voltage signal.

7. A two-bus communication system, characterized in that, It includes a master unit, a slave unit, and two buses. The master unit communicates with the slave unit through the two buses. The slave unit includes a bus decoding circuit as described in any one of claims 1 to 6. The bus decoding circuit is used to decode the bus voltage signal transmitted on the bus.

8. A bus decoding method, characterized in that, include: Acquire the bus voltage signal transmitted on the bus; The bus voltage signal is compared with the threshold voltage to obtain the comparison result; The bus voltage signal is decoded based on the comparison result, and the threshold voltage is dynamically adjusted based on the comparison result.

9. The bus decoding method as described in claim 8, characterized in that, The threshold voltage includes a first threshold voltage and a second threshold voltage, wherein the second threshold voltage is greater than the first threshold voltage, and the step of dynamically adjusting the threshold voltage based on the comparison result includes: When the comparison result is high, the threshold voltage is adjusted to the first threshold voltage; When the comparison result is low, the threshold voltage is adjusted to the second threshold voltage.

10. The bus decoding method as described in claim 9, characterized in that, Also includes: The magnitudes of the first threshold voltage and the second threshold voltage are dynamically adjusted based on the voltage range of the bus voltage signal.