Bidirectional communication circuit and electronic equipment

By designing the sending module and receiving module of the two-way communication circuit, combined with the coordinated work of the transmission end, the two-way data transmission between devices is realized, solving the limitations of unidirectional transmission in the existing single-line communication solution, and meeting the needs of real-time two-way data exchange.

CN120256354APending Publication Date: 2025-07-04SHENZHEN TECNO TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202510389560.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-28
Publication Date
2025-07-04

AI Technical Summary

Technical Problem

The existing single-line communication solution mainly implements one-way data transmission, and the receiver cannot transmit data to the sending end, which limits the system's application in scenarios requiring real-time two-way data exchange.

Method used

By designing a two-way communication circuit, including a sending module, a receiving module and a transmission terminal, the sending module applies voltage to the transmission terminal according to the control signal. When the sending module does not apply the voltage, the receiving module realizes two-way transmission of data by monitoring the voltage changes at the transmission terminal and combining the reference voltage output of the data transmitted from other devices.

Benefits of technology

It realizes flexible two-way data transmission between devices, solves the limitations of one-way communication mode, and meets the needs of the system in scenarios where real-time two-way data exchange is required.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120256354A_ABST
    Figure CN120256354A_ABST
Patent Text Reader

Abstract

The invention provides a two-way communication circuit and electronic equipment. The two-way communication circuit comprises a sending module, a receiving module and a transmission end, the sending module is connected with the transmission end and is used for applying voltage to the transmission end according to the received sending control signal; the receiving module is connected with the transmission end and is used for determining or generating receiving data according to the voltage of the transmission end and the reference voltage; the transmission end is used for outputting the voltage applied by the sending module; and receiving voltage output by other equipment. According to the technical scheme of the invention, bidirectional data transmission between devices can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technologies, and particularly to a two-way communication circuit and an electronic device. Background Art

[0002] Existing single-wire communication solutions usually transmit data by detecting parameters such as the duty cycle, number of pulses, and current magnitude of waveforms. These solutions rely on a single-chip microcomputer or other control chips to decode and process data by timing, counting, or AD (Analog-to-Digital) detection of waveforms. For example, by detecting the duty cycle of a waveform, different logical states can be distinguished; by counting the number of pulses, more data information can be transmitted; by AD detecting the current magnitude, carrier information can be obtained.

[0003] In the process of conceiving and implementing this application, the inventors found that at least the following problems exist: In the actual application process, the above solutions mainly achieve one-way data transmission, that is, data is transmitted from the sending end to the receiving end, and the receiving end cannot transmit data information to the sending end. This one-way communication mode may be limited in some application scenarios and cannot meet the system requirements.

[0004] The foregoing description is provided to give general background information and does not necessarily constitute prior art. Summary of the Invention

[0005] This application provides a two-way communication circuit and an electronic device for realizing two-way data transmission between devices.

[0006] This application provides a two-way communication circuit, including: a sending module, a receiving module, and a transmission end;

[0007] The sending module is connected to the transmission end and is used to apply a voltage to the transmission end according to the received sending control signal;

[0008] The receiving module is connected to the transmission end and is used to determine or generate received data according to the voltage of the transmission end and a reference voltage;

[0009] The transmission end is used to output the voltage applied by the sending module; and, receive the voltage output by other devices.

[0010] Optionally, the sending module includes a control unit.

[0011] Optionally, one end of the control unit receives a first voltage, and the other end of the control unit receives a second voltage.

[0012] Optionally, the control end of the control unit receives the sending control signal and is used to apply the first voltage or the second voltage to the transmission end according to the sending control signal.

[0013] Optionally, the transmission control signal includes a first transmission control signal and a second transmission control signal.

[0014] Optionally, the control unit includes a first switch and a second switch.

[0015] Optionally, one end of the first switch receives a first voltage, the other end of the first switch is connected to one end of the second switch, and the control end of the first switch receives the first transmission control signal.

[0016] Optionally, the other end of the second switch receives a second voltage, and the control end of the second switch receives the second transmission control signal.

[0017] Optionally, the transmission module further includes a first resistor or a second resistor.

[0018] Optionally, one end of the first resistor receives a first voltage, and the other end of the first resistor is connected to the transmission end.

[0019] Optionally, one end of the second resistor is connected to the transmission end, and the other end of the second resistor receives a second voltage.

[0020] Optionally, the receiving module includes a comparison unit.

[0021] Optionally, the first input end of the comparison unit is connected to the transmission end.

[0022] Optionally, the second input end of the comparison unit receives a reference voltage.

[0023] Optionally, the output end of the comparison unit is used to output received data when the transmission module does not apply a voltage to the transmission end.

[0024] Optionally, the circuit further includes a voltage dividing circuit.

[0025] Optionally, one end of the voltage dividing circuit receives a first voltage, and the other end receives a second voltage.

[0026] Optionally, the output end of the voltage dividing circuit is connected to the second input end of the comparison unit for outputting a reference voltage.

[0027] Optionally, the voltage dividing circuit includes a third resistor having the same resistance value as the first resistor and a fourth resistor having the same resistance value as the second resistor.

[0028] Optionally, one end of the third resistor receives a first voltage, and one end of the fourth resistor receives a second voltage.

[0029] Optionally, the other end of the third resistor is connected to the other end of the fourth resistor, and a reference voltage is output at the connection point of the third resistor and the fourth resistor.

[0030] Optionally, the comparison unit includes a first comparator and a second comparator.

[0031] Optionally, the positive input terminal of the first comparator is connected to the transmission terminal, and the negative input terminal of the first comparator is connected to the positive input terminal of the second comparator and receives a reference voltage.

[0032] Optionally, the negative input terminal of the second comparator is connected to the transmission terminal.

[0033] Optionally, the output terminals of the first comparator and the second comparator are used to output differential signals of received data.

[0034] This application also provides an electronic device, including the bidirectional communication circuit of at least one of the above.

[0035] Optionally, the sending module in the bidirectional communication circuit includes a first resistor.

[0036] Optionally, one end of the first resistor receives a first voltage, and the other end of the first resistor is connected to the transmission terminal of the electronic device; alternatively, the sending module includes a second resistor, one end of the second resistor is connected to the transmission terminal of the electronic device, and the other end of the second resistor receives a second voltage.

[0037] In the bidirectional communication circuit and the electronic device provided by this application, the bidirectional communication circuit includes a sending module, a receiving module, and a transmission terminal; the sending module is connected to the transmission terminal and is used to apply a voltage to the transmission terminal according to the received sending control signal; the receiving module is connected to the transmission terminal and is used to determine or generate received data according to the voltage of the transmission terminal and the reference voltage; the transmission terminal is used to output the voltage applied by the sending module; and, receive the voltage output by other devices. In the solution of this application, through the collaborative work of the sending module, the receiving module, and the transmission terminal, the sending module applies a voltage to the transmission terminal according to the received sending control signal, thereby transmitting data to other devices; when the sending module does not apply a voltage, the receiving module monitors the voltage change of the transmission terminal and combines the reference voltage to output the data transmitted from other devices, enabling the system to flexibly switch between the sending and receiving modes, thereby realizing bidirectional data transmission. Description of the Drawings

[0038] The drawings here are incorporated into the specification and constitute a part of this specification, showing embodiments consistent with this application, and are used together with the specification to explain the principles of this application. To more clearly illustrate the technical solutions of the embodiments of this application, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, for those of ordinary skill in the art, other drawings can also be obtained based on these drawings without creative efforts.

[0039] Figure 1 It is a schematic structural diagram of a bidirectional communication circuit provided by the first embodiment of this application;

[0040] Figure 2 Schematic diagram of a two-way communication circuit provided for an example of this application;

[0041] Figure 3 Schematic diagram of a two-way communication circuit provided for an example of this application;

[0042] Figure 4 Schematic diagram of a two-way communication circuit provided for an example of this application;

[0043] Figure 5 Schematic diagram of a voltage dividing circuit provided for an example of this application;

[0044] Figure 6 Schematic diagram of a two-way communication circuit provided for an example of this application;

[0045] Figure 7 Schematic diagram of a host provided for an example;

[0046] Figure 8 Schematic diagram of a slave provided for an example;

[0047] Figure 9 Schematic diagram of a signal transmission system provided for an embodiment of this application;

[0048] Figure 10 Schematic diagram of a level signal provided for this embodiment;

[0049] Figure 11 Schematic diagram of the hardware structure of a mobile terminal for implementing various embodiments of this application.

[0050] The realization of the purpose of this application, functional features and advantages will be further described in conjunction with the embodiments with reference to the accompanying drawings. Through the above accompanying drawings, the clear embodiments of this application have been shown, and there will be more detailed descriptions hereinafter. These drawings and text descriptions are not intended to limit the scope of the concept of this application in any way, but to illustrate the concept of this application to those skilled in the art by referring to specific embodiments. Detailed implementation manners

[0051] Here, the exemplary embodiments will be described in detail, and the examples are shown in the accompanying drawings. When the following description refers to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementation manners described in the following exemplary embodiments do not represent all implementation manners consistent with this application. On the contrary, they are only examples of the devices and methods consistent with some aspects of this application as detailed in the appended claims.

[0052] It should be noted that, in this document, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, such that a process, method, article or device comprising a series of elements not only includes those elements but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "comprising one..." does not exclude the presence of additional identical elements in the process, method, article or device comprising such element. Optionally, components, features, elements with the same name in different embodiments of the present application may have the same meaning or may have different meanings, and their specific meanings need to be determined based on their interpretation in that specific embodiment or further in combination with the context in that specific embodiment.

[0053] It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from each other. For example, without departing from the scope of this document, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "when" or "upon" or "in response to determining". Furthermore, as used herein, the singular forms "a", "an" and "the" are also intended to include the plural forms unless the context indicates otherwise. It should be further understood that the terms "comprise", "include" indicate the presence of features, steps, operations, elements, components, items, kinds, and / or groups, but do not exclude the presence, occurrence or addition of one or at least two other features, steps, operations, elements, components, items, kinds, and / or groups. The terms "or", "and / or", "include at least one of the following" and the like used in this application may be interpreted inclusively, or mean any one or any combination. For example, "include at least one of the following: A, B, C" means "any one of the following: A; B; C; A and B; A and C; B and C; A and B and C", and again, "A, B or C" or "A, B and / or C" means "any one of the following: A; B; C; A and B; A and C; B and C; A and B and C". An exception to this definition only occurs when the combination of elements, functions, steps or operations are mutually exclusive in some way.

[0054] Depending on the context, the words "if", "when" as used herein may be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting". Similarly, depending on the context, the phrase "if determined" or "if detecting (stated condition or event)" may be interpreted as "when determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)".

[0055] It should be understood that the embodiments described herein are only used to explain this application and are not used to limit this application.

[0056] In the following description, suffixes such as "module", "component", or "unit" used to represent elements are only for the convenience of explaining this application and have no specific meaning in themselves. Therefore, "module", "component", or "unit" can be used interchangeably.

[0057] The single-wire communication scheme is a communication method for data transmission through a single wire, usually used in simple and low-cost application scenarios. This scheme mainly transmits information by detecting the duty cycle, pulse count, and current magnitude of the waveform. Using a microcontroller or other control chips, the waveform can be timed, counted, or AD detected, so as to realize the detection and decoding of the waveform and carrier information. The microcontroller initializes the timer, counter, and analog-to-digital converter, and configures the input pins to receive the single-wire communication signal. By starting the timer to measure the duration of the high and low levels to calculate the duty cycle, or by counting the number of pulses within a certain time window through the counter, or by sampling and converting the voltage or current through the analog-to-digital converter, different waveform characteristics can be detected. According to the detected duty cycle, pulse count, or current magnitude, the transmitted data is decoded, and corresponding operations are performed according to the application requirements.

[0058] Optionally, in a single-wire communication system for transmitting temperature data, the sending end is a temperature sensor module, which includes a microcontroller for reading temperature data and encoding it into a specific waveform, such as transmitting temperature data through the duty cycle; the receiving end is a display module, which includes a microcontroller for receiving and decoding the waveform signal, decoding the temperature data by detecting the duty cycle, and displaying the corresponding temperature value on the display screen. The sending end reads the data of the temperature sensor, encodes it into a specific waveform and sends it through a single wire; the receiving end receives the waveform signal through a single wire, detects and samples the signal, decodes the temperature data according to the duty cycle, and displays the decoded temperature value on the display screen. However, there is a significant limitation in this single-wire communication system, that is, two-way data transmission cannot be achieved. Since some schemes only support unidirectional data flow, the receiving end cannot send feedback information to the sending end. For example, when the display module needs to request retransmission of data or adjust the sampling frequency of the sensor, it cannot be achieved through the existing single-wire communication system. This limitation brings many inconveniences in practical applications, especially in scenarios that require real-time two-way data exchange.

[0059] The technical content provided by this application aims to solve the above technical problems in the related art. In the embodiments of this application, the bidirectional communication circuit includes a sending module, a receiving module, and a transmission end; the sending module is connected to the transmission end and is used to apply a voltage to the transmission end according to the received sending control signal; the receiving module is connected to the transmission end and is used to determine or generate received data according to the voltage of the transmission end and a reference voltage; the transmission end is used to output the voltage applied by the sending module; and, receive the voltage output by other devices. In the solution of this application, through the collaborative work of the sending module, the receiving module, and the transmission end, the sending module applies a voltage to the transmission end according to the received sending control signal, thereby transmitting data to other devices; when the sending module does not apply a voltage, the receiving module outputs the data transmitted from other devices by monitoring the voltage change of the transmission end and combining the reference voltage, enabling the system to flexibly switch between the sending and receiving modes, thereby realizing bidirectional data transmission.

[0060] The technical solution of this application and the technical solution of this application will be described in detail below with specific embodiments. These several specific embodiments below can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. In the description of this application, unless otherwise clearly specified and limited, each term should be understood in a broad sense in the art. The embodiments of this application will be described below with reference to the accompanying drawings.

[0061] The First Embodiment

[0062] Figure 1 is a schematic structural diagram of a bidirectional communication circuit provided by the first embodiment of this application, as Figure 1 shown, the bidirectional communication circuit includes: a sending module 10, a receiving module 11, and a transmission end 12;

[0063] The sending module 10 is connected to the transmission end 12 and is used to apply a voltage to the transmission end 12 according to the received sending control signal;

[0064] The receiving module 11 is connected to the transmission end 12 and is used to determine or generate received data according to the voltage of the transmission end 12 and a reference voltage;

[0065] The transmission end 12 is used to output the voltage applied by the sending module 10; and, receive the voltage output by other devices.

[0066] Optionally, the two-way communication circuit includes three parts, namely a transmitting module 10, a receiving module 11, and a transmission terminal 12. The transmitting module 10 receives a transmission control signal, controls the conduction and cutoff of corresponding paths in the internal circuit according to the received transmission control signal, and applies a corresponding voltage to the transmission terminal 12. Optionally, the transmission control signal is generated by a microcontroller or a microprocessor, and the transmission control signal is generated according to system requirements and external inputs by running pre-written firmware or software.

[0067] Optionally, when the transmitting module 10 receives the transmission control signal, it applies a corresponding voltage to the transmission terminal 12 through the internal circuit. The voltage applied to the transmission terminal 12 is then transmitted to other devices through a transmission medium (such as wires, cables, etc.), thereby realizing the data transmission function.

[0068] Optionally, the receiving module 11 is the same as the transmitting module 10, and is connected to the transmission terminal 12 to receive and process the voltage on the transmission terminal 12. In the case where the transmitting module 10 does not apply a voltage, the receiving module 11 obtains the received data by acquiring the voltage on the transmission terminal 12 and combining it with a reference voltage.

[0069] Optionally, the transmission terminal 12 is a key node in the two-way communication circuit. It is not only responsible for outputting the voltage applied by the transmitting module 10 to other devices, but also needs to receive the voltage transmitted from other devices. The design of the transmission terminal 12 needs to consider the bi-directional transmission characteristics of the signal to ensure that there is no signal interference during the transmission and reception processes. Optionally, the electrical characteristics of the transmission terminal 12, such as impedance matching, signal attenuation, and reflection, need to be precisely designed and optimized. Impedance matching is an important aspect in the design of the transmission terminal 12. By matching the impedance of the transmission line and the load, signal reflection and loss can be minimized, and the efficiency and quality of signal transmission can be improved. Through reasonable circuit design and optimization, the transmission terminal 12 can effectively achieve bi-directional data transmission and ensure the stability and reliability of communication. Optionally, in data transmission applications, the transmission terminal 12 may need to adopt differential signal transmission technology to further improve the anti-interference ability and signal transmission quality. In short, the transmission terminal 12 plays a crucial role in the two-way communication circuit, and its performance directly affects the efficiency and reliability of the entire communication system.

[0070] Optionally, through the coordinated work of the transmitting module, the receiving module, and the transmission terminal, the transmitting module applies a voltage to the transmission terminal according to the received transmission control signal, thereby transmitting data to other devices; when the transmitting module does not apply a voltage, the receiving module outputs the data transmitted from other devices by monitoring the voltage change of the transmission terminal and combining it with a reference voltage, enabling the system to flexibly switch between the transmission and reception modes, thereby realizing bi-directional data transmission.

[0071] Figure 2 The structural schematic diagram of a two-way communication circuit provided for an example of this application is as follows Figure 2 shown. The sending module 10 includes a control unit 101. One end of the control unit 101 receives a first voltage, the other end of the control unit 101 receives a second voltage, and the control end of the control unit 101 receives a sending control signal, which is used to apply the first voltage or the second voltage to the transmission end 12 according to the sending control signal. Specifically, the control unit 101 selectively applies the first voltage or the second voltage to the transmission end 12 according to the sending control signal. The structure of the control unit 101 generally includes at least one input end and one output end, one end of which is used to receive the first voltage and the other end is used to receive the second voltage. In one example, the first voltage is the power supply voltage and the second voltage is the ground voltage. In the above example, a single power supply is adopted, which provides convenience for chip integration.

[0072] Optionally, the control end of the control unit 101 is used to receive the sending control signal. The sending control signal can be generated by a microcontroller, a microprocessor or other controllers, and indicates which voltage the control unit 101 selects to apply. The internal circuit of the control unit 101 may include components such as a switching circuit or a logic circuit, and these components work together to enable the control unit 101 to accurately select and output the first voltage or the second voltage according to the state of the sending control signal. For example, when the sending control signal is at a high level, the control unit 101 selects to apply the first voltage; when the sending control signal is at a low level, the control unit 101 selects to apply the second voltage. Optionally, it is necessary to decide whether to apply the first voltage or the second voltage to the transmission end 12 according to the actual working conditions. Through the solution of this example, the control unit can flexibly control the voltage state of the transmission end, so as to realize the sending and receiving of data.

[0073] In one example, the sending control signal includes a first sending control signal and a second sending control signal; different combinations of the level states of the first sending control signal and the second sending control signal correspond to different voltages applied by the sending module 10.

[0074] Optionally, the sending control signal includes two signals, namely the first sending control signal and the second sending control signal, and different combinations of the level states (high level or low level) of these two control signals determine the specific voltage that the sending module 10 will apply to the transmission end 12. Optionally, the first sending control signal and the second sending control signal can be transmitted to the sending module 10 through an I / O port or a dedicated communication interface. The sending module 10 internally includes a switching circuit or a logic circuit, and these components selectively apply the first voltage or the second voltage to the transmission end 12 according to the level states of the received first sending control signal and second sending control signal.

[0075] In one example, the first transmission control signal and the second transmission control signal may be differential signals of the transmission control signal, corresponding to different levels respectively. Optionally, the first transmission control signal is at a high level and the second transmission control signal is at a low level, or the first transmission control signal is at a low level and the second transmission control signal is at a high level. Optionally, when the first transmission control signal is at a high level and the second transmission control signal is at a low level, the transmission module 10 may choose to apply a first voltage to the transmission end 12; when the first transmission control signal is at a low level and the second transmission control signal is at a high level, the transmission module 10 may choose to apply a second voltage to the transmission end 12.

[0076] In another example, the first transmission control signal and the second transmission control signal may be signals of the same level. Optionally, the first transmission control signal is at a high level and the second transmission control signal is also at a high level. Optionally, the first transmission control signal is at a low level and the second transmission control signal is also at a low level. Optionally, when the first transmission control signal and the second transmission control signal are both at a high level, the transmission module 10 may choose to apply a first voltage to the transmission end 12; when the first transmission control signal and the second transmission control signal are both at a low level, the transmission module 10 may choose to apply a second voltage to the transmission end 12.

[0077] In the above examples, the transmission control signal combines differential signal technology and uses edge triggering, which not only improves the flexibility and reliability of the circuit, but also improves the data transmission efficiency and ensures the efficient operation of the system.

[0078] Based on the foregoing examples, Figure 3 FIG. is a schematic structural diagram of a two-way communication circuit provided in an example of the present application. As Figure 3 shown, the control unit 101 includes a first switch K1 and a second switch K2;

[0079] One end of the first switch K1 receives a first voltage, the other end of the first switch K1 is connected to one end of the second switch K2, and the control end of the first switch K1 receives the first transmission control signal;

[0080] The other end of the second switch K2 receives a second voltage, and the control end of the second switch K2 receives the second transmission control signal.

[0081] Optionally, the control unit 101 includes a first switch K1 and a second switch K2. The first switch K1 and the second switch K2 can be MOS transistors or other devices, which are not limited herein. Optionally, the conduction types of the first switch K1 and the second switch K2 are the same or different. Taking the case where both the first switch K1 and the second switch K2 are MOS transistors as an example, the first switch K1 is an NMOS transistor and the second switch K2 is also an NMOS transistor; or, the first switch K1 is a PMOS transistor and the second switch K2 is also a PMOS transistor; or, the first switch K1 is an NMOS transistor and the second switch K2 is a PMOS transistor; or, the first switch K1 is a PMOS transistor and the second switch K2 is an NMOS transistor.

[0082] Optionally, according to the level states of the first transmission control signal and the second transmission control signal and the conduction types of the first switch K1 and the second switch K2, the following situations can be divided:

[0083] (1) The first switch K1 is an NMOS transistor and the second switch K2 is also an NMOS transistor. The first transmission control signal is at a high level and the second transmission control signal is at a low level. At this time, the first switch K1 responds to the first transmission control signal, i.e., the high-level signal, and conducts the transmission path between the first voltage and the transmission terminal 12. The second switch K2 responds to the second transmission control signal, i.e., the low-level signal, and disconnects the transmission path between the second voltage and the transmission terminal 12, applying the first voltage to the transmission terminal 12.

[0084] (2) The first switch K1 is a PMOS transistor and the second switch K2 is also a PMOS transistor. The first transmission control signal is at a low level and the second transmission control signal is at a high level. At this time, the first switch K1 responds to the first transmission control signal, i.e., the low-level signal, and conducts the transmission path between the first voltage and the transmission terminal 12. The second switch K2 responds to the second transmission control signal, i.e., the high-level signal, and disconnects the transmission path between the second voltage and the transmission terminal 12, applying the first voltage to the transmission terminal 12.

[0085] (3) The first switch K1 is a PMOS transistor and the second switch K2 is also a PMOS transistor. The first transmission control signal is at a high level and the second transmission control signal is at a low level. At this time, the first switch K1 responds to the first transmission control signal, i.e., the high-level signal, and disconnects the transmission path between the first voltage and the transmission terminal 12. The second switch K2 responds to the second transmission control signal, i.e., the low-level signal, and conducts the transmission path between the second voltage and the transmission terminal 12, applying the second voltage to the transmission terminal 12.

[0086] (4) The first switch K1 is an NMOS transistor, and the second switch K2 is also an NMOS transistor. The first transmission control signal is at a low level, and the second transmission control signal is at a high level. At this time, the first switch K1 responds to the first transmission control signal, i.e., the low-level signal, and disconnects the transmission path between the first voltage and the transmission terminal 12. The second switch K2 responds to the second transmission control signal, i.e., the high-level signal, and conducts the transmission path between the second voltage and the transmission terminal 12, applying the second voltage to the transmission terminal 12;

[0087] (5) The first switch K1 is an NMOS transistor, and the second switch K2 is a PMOS transistor. The first transmission control signal is at a high level, and the second transmission control signal is at a high level. At this time, the first switch K1 responds to the first transmission control signal, i.e., the high-level signal, and conducts the transmission path between the first voltage and the transmission terminal 12. The second switch K2 responds to the second transmission control signal, i.e., the high-level signal, and disconnects the transmission path between the second voltage and the transmission terminal 12, applying the first voltage to the transmission terminal 12;

[0088] (6) The first switch K1 is a PMOS transistor, and the second switch K2 is an NMOS transistor. The first transmission control signal is at a low level, and the second transmission control signal is at a low level. At this time, the first switch K1 responds to the first transmission control signal, i.e., the low-level signal, and conducts the transmission path between the first voltage and the transmission terminal 12. The second switch K2 responds to the second transmission control signal, i.e., the low-level signal, and disconnects the transmission path between the second voltage and the transmission terminal 12, applying the first voltage to the transmission terminal 12;

[0089] (7) The first switch K1 is an NMOS transistor, and the second switch K2 is a PMOS transistor. The first transmission control signal is at a low level, and the second transmission control signal is at a low level. At this time, the first switch K1 responds to the first transmission control signal, i.e., the low-level signal, and disconnects the transmission path between the first voltage and the transmission terminal 12. The second switch K2 responds to the second transmission control signal, i.e., the low-level signal, and conducts the transmission path between the second voltage and the transmission terminal 12, applying the second voltage to the transmission terminal 12;

[0090] (8) The first switch K1 is a PMOS transistor, and the second switch K2 is an NMOS transistor. The first transmission control signal is at a high level, and the second transmission control signal is at a high level. At this time, the first switch K1 responds to the first transmission control signal, i.e., the high-level signal, and disconnects the transmission path between the first voltage and the transmission terminal 12. The second switch K2 responds to the second transmission control signal, i.e., the high-level signal, and conducts the transmission path between the second voltage and the transmission terminal 12, applying the second voltage to the transmission terminal 12.

[0091] In the above examples, the control unit realizes efficient and stable data transmission in the two-way communication circuit through the combination of the first switch and the second switch.

[0092] Optionally, the sending module 10 further includes a first resistor or a second resistor; one end of the first resistor receives a first voltage, and the other end of the first resistor is connected to the transmission end 12; one end of the second resistor is connected to the transmission end 12, and the other end of the second resistor receives a second voltage.

[0093] In this example, the sending module 10 not only includes the control unit 101, but also integrates the first resistor and the second resistor to further optimize voltage transmission and signal stability. Specifically, one end of the first resistor receives a first voltage, and the other end is connected to the transmission end 12; one end of the second resistor is connected to the transmission end 12, and the other end receives a second voltage. The presence of the resistors not only limits the instantaneous change of the current, but also can play a filtering role to reduce the interference of high-frequency noise on the signal. The resistance values of the first resistor and the second resistor can be adjusted according to specific application requirements to optimize the circuit performance. For example, the first resistor and the second resistor have equal resistance values or are set to different resistance values according to the design requirements.

[0094] In the above example, by inserting a resistor between the first voltage or the second voltage and the transmission end, the current flow can be effectively controlled, preventing the impact on the circuit caused by voltage mutation, thereby improving the stability and reliability of the system. At the same time, the circuit structure is simplified and the system cost is reduced.

[0095] Figure 4 The structural schematic diagram of a two-way communication circuit provided for an example of this application is as Figure 4 shown. The receiving module 11 includes a comparison unit 110; the first input end of the comparison unit 110 is connected to the transmission end 12, the second input end of the comparison unit 110 receives a reference voltage, and the output end of the comparison unit 110 is used to output received data when the sending module 10 does not apply a voltage to the transmission end 12.

[0096] Optionally, when no voltage is applied to the transmission end 12, the comparison unit 110 determines the state of the received signal by comparing the voltage of the transmission end 12 with the reference voltage. The reference voltage is usually set to an intermediate value to effectively distinguish high-level and low-level signals. Optionally, the reference voltage is set to an intermediate value. When the voltage of the transmission end 12 is higher than the reference voltage, the comparison unit 110 outputs a high-level signal; when the voltage of the transmission end 12 is lower than the reference voltage, the comparison unit 110 outputs a reference voltage signal. Through the solution of this example, the circuit structure is simplified, the need for additional control signals is reduced, and the flexibility and response speed of the system are improved.

[0097] Figure 5 The structural schematic diagram of a voltage dividing circuit provided for an example of this application is as Figure 5As shown, the circuit further includes: a voltage dividing circuit; one end of the voltage dividing circuit receives a first voltage, the other end receives a second voltage, and the output end of the voltage dividing circuit is connected to the second input end of the comparison unit 110 for outputting a reference voltage.

[0098] Optionally, in order to ensure that the comparison unit 110 can accurately compare the voltage at the transmission end 12 with the reference voltage, a voltage dividing circuit is usually introduced to generate a stable reference voltage. One end of the voltage dividing circuit receives a first voltage, the other end receives a second voltage, and the output end is connected to the second input end of the comparison unit 110 for outputting a reference voltage. The voltage dividing circuit is usually composed of two resistors connected in series. Optionally, still as Figure 5 shown, the voltage dividing circuit includes a third resistor R3 with the same resistance value as the first resistor and a fourth resistor R4 with the same resistance value as the second resistor; one end of the third resistor R3 receives the first voltage, and one end of the fourth resistor R4 receives the second voltage; the other end of the third resistor R3 is connected to the other end of the fourth resistor R4, and the reference voltage is output at the connection point of the third resistor and the fourth resistor. The input voltage is distributed through the proportional relationship of the resistors to generate an intermediate voltage as the reference voltage. Optionally, if the first voltage is a high level and the second voltage is a low level, by selecting appropriate resistor values, the output voltage of the voltage dividing circuit can be set to an intermediate value between these two voltages. This intermediate value is input as the reference voltage to the second input end of the comparison unit 110, enabling the comparison unit 110 to effectively determine the high and low states of the output voltage. In the above example, the design of the voltage dividing circuit is not only simple but also can provide a stable reference voltage, ensuring the accuracy and reliability of the output voltage of the comparison unit.

[0099] Based on the foregoing example, Figure 6 The following is a schematic structural diagram of a two-way communication circuit provided by an example of the present application. As Figure 6 shown, the comparison unit 110 includes a first comparator U1 and a second comparator U2; the positive input terminal of the first comparator U1 is connected to the transmission end 12, the negative input terminal of the first comparator U1 is connected to the positive input terminal of the second comparator U2 and receives the reference voltage; the negative input terminal of the second comparator U2 is connected to the transmission end 12; the output terminals of the first comparator U1 and the second comparator U2 are used to output a differential signal of the received data.

[0100] In this example, the comparison unit 110 includes a first comparator U1 and a second comparator U2. With this configuration, the comparison unit 110 can simultaneously compare the voltage of the transmission end 12 with the reference voltage, thereby generating a differential signal. Optionally, when the voltage of the transmission end 12 is higher than the reference voltage, the output of the first comparator U1 is at a high level, i.e., a differential signal of the first level, and the output of the second comparator U2 is also at a high level, i.e., a differential signal of the first level; when the voltage of the transmission end 12 is lower than the reference voltage, the output of the first comparator is a differential signal of the reference voltage, and the output of the second comparator is also a differential signal of the reference voltage. In the above example, through the design of the first comparator and the second comparator, the comparison unit not only realizes the accurate detection and processing of the signal at the transmission end, but also improves the stability and reliability of the system.

[0101] In the bidirectional communication circuit provided in this embodiment, the bidirectional communication circuit includes a sending module, a receiving module, and a transmission end; the sending module is connected to the transmission end and is used to apply a voltage to the transmission end according to the received sending control signal; the receiving module is connected to the transmission end and is used to determine or generate received data according to the voltage of the transmission end and the reference voltage; the transmission end is used to output the voltage applied by the sending module; and, receive the voltage output by other devices. In the solution of this application, through the collaborative work of the sending module, the receiving module, and the transmission end, the sending module applies a voltage to the transmission end according to the received sending control signal, thereby transmitting data to other devices; when the sending module does not apply a voltage, the receiving module outputs the data transmitted from other devices by monitoring the voltage change of the transmission end and combining the reference voltage, enabling the system to flexibly switch between the sending and receiving modes, thereby realizing the bidirectional transmission of data.

[0102] Second Embodiment

[0103] The bidirectional communication circuit in the foregoing embodiment has a wide range of applications in electronic devices. The embodiment of this application also provides an electronic device, including at least one bidirectional communication circuit in any of the foregoing examples.

[0104] In practical applications, the electronic device can be a host or a slave. Optionally, the host can send data to the slave, and the slave can also transmit feedback data back to the host.

[0105] Figure 7 A schematic structural diagram of a host provided for an example. As Figure 7As shown, the sending module 10 includes a first MOS transistor Q1, a second MOS transistor Q2, and a first resistor Rup. One end of the first MOS transistor Q1 receives a first voltage, i.e., the power supply voltage VCC. The other end of the first MOS transistor Q1 is connected to one end of the second MOS transistor Q2. The control end of the first MOS transistor Q1 receives a first sending control signal TX1H. The other end of the second MOS transistor Q2 receives a second voltage, i.e., the ground voltage GND. The control end of the second MOS transistor Q2 receives a second sending control signal TX1L. One end of the first resistor Rup receives the first voltage, i.e., the power supply voltage VCC. The other end of the first resistor Rup is connected to the transmission end HOST of the host.

[0106] Optionally, the receiving module 11 includes a first comparator U1 and a second comparator U2. The positive input terminal of the first comparator U1 is connected to the transmission end HOST of the host. The negative input terminal of the first comparator U1 receives a reference voltage Vref. The output terminal of the first comparator U1 outputs a differential signal RX2H of the received data. The positive input terminal of the second comparator U2 receives the reference voltage Vref. The negative input terminal of the second comparator U2 is connected to the transmission end HOST of the host. The output terminal of the second comparator U2 outputs a differential signal RX2L of the received data.

[0107] Optionally, Figure 8 A structural schematic diagram of a slave device provided for an example. As Figure 8 shown, the sending module 10 includes a third MOS transistor Q3, a fourth MOS transistor Q4, and a second resistor Rdown. One end of the third MOS transistor Q3 receives a first voltage, i.e., the power supply voltage VCC. The other end of the third MOS transistor Q3 is connected to one end of the fourth MOS transistor Q4. The control end of the third MOS transistor Q3 receives a third sending control signal TX2H. The other end of the fourth MOS transistor Q4 receives a second voltage, i.e., the ground voltage GND. The control end of the fourth MOS transistor Q4 receives a fourth sending control signal TX2L. One end of the second resistor Rdown is connected to the transmission end SLAVE of the slave device. The other end of the second resistor Rdown receives a second voltage, i.e., the ground voltage GND.

[0108] Optionally, the receiving module 11 includes a third comparator U3 and a fourth comparator U4. The positive input terminal of the third comparator U3 is connected to the transmission end SLAVE of the slave device. The negative input terminal of the fourth comparator U4 receives the reference voltage Vref. The output terminal of the third comparator U3 outputs a differential signal RX1H of the received data. The positive input terminal of the fourth comparator U4 receives the reference voltage Vref. The negative input terminal of the fourth comparator U4 is connected to the transmission end SLAVE of the slave device. The output terminal of the fourth comparator U4 outputs a differential signal RX1L of the received data.

[0109] The third embodiment

[0110] An embodiment of the present application further provides a signal transmission system, including a host and at least one slave, and the host is connected to each slave through a single wire.

[0111] Taking the signal transmission system including one host and one slave as an example, Figure 9 is a schematic structural diagram of a signal transmission system provided by an embodiment of the present application. As Figure 9 shown, the left side of the dotted line is the host end, and the right side of the dotted line is the slave end. The transmission end HOST of the host is connected to the transmission end SLAVE of the slave through a single wire.

[0112] (1) When the host sends data to the slave:

[0113] The first MOS transistor Q1 receives the first transmission control signal, and the second MOS transistor Q2 receives the second transmission control signal. By controlling the switching states of the first MOS transistor Q1 and the second MOS transistor Q2, a corresponding voltage is applied to the transmission end HOST of the host and transmitted to the slave through the transmission end SLAVE of the slave. The third MOS transistor Q3 and the fourth MOS transistor Q4 are not applied with voltage at this time. The third comparator U3 and the fourth comparator U4 detect the voltage of the transmission end SLAVE of the slave and combine it with the reference voltage, and output the RX1H and RX1L voltage signals to be transmitted to the corresponding processor or other control chips respectively.

[0114] (2) When the slave sends data to the host:

[0115] The third MOS transistor Q3 receives the third transmission control signal, and the fourth MOS transistor Q4 receives the fourth transmission control signal. By controlling the switching states of the third MOS transistor Q3 and the fourth MOS transistor Q4, a corresponding voltage is applied to the transmission end SLAVE of the slave and transmitted to the host through the transmission end HOST of the host. The first MOS transistor Q1 and the second MOS transistor Q2 are not applied with voltage at this time. The first comparator U1 and the second comparator U2 detect the voltage of the transmission end HOST of the host and combine it with the reference voltage, and output the RX2H and RX2L voltage signals to be transmitted to the corresponding processor or other control chips respectively.

[0116] Optionally, the level signal is as Figure 10 shown. Figure 10 is a schematic diagram of a level signal provided by this embodiment. VCC: 10; Vref: 00; GND: 11. Optionally, the signal transmission system can refer to the content of the foregoing embodiment. In summary, the signal transmission system provided by this example enables the system to flexibly switch between the sending and receiving modes, thereby realizing the bidirectional transmission of data.

[0117] Optionally, the master device and the slave device in the above embodiments may be a type of intelligent terminal, where the intelligent terminal may be implemented in various forms. For example, the intelligent terminal described in this application may include mobile terminals such as mobile phones, tablet computers, laptop computers, palmtop computers, personal digital assistants (PDAs), portable media players (PMPs), navigation devices, wearable devices, smart bracelets, pedometers, etc.

[0118] In the following description, a mobile terminal will be used as an example for illustration. Those skilled in the art will understand that, except for elements specifically for mobile purposes, the structure according to the embodiments of this application can also be applied to fixed-type terminals.

[0119] Please refer to Figure 11 , which is a schematic hardware structure diagram of a mobile terminal for implementing various embodiments of this application. The mobile terminal 1100 may include: an RF (Radio Frequency) unit 1101, a WiFi module 1102, an audio output unit 1103, an A / V (audio / video) input unit 1104, a sensor 1105, a display unit 1106, a user input unit 1107, an interface unit 1108, a memory 1109, a processor 1110, and a power supply 1111, etc. Those skilled in the art can understand that Figure 11 the mobile terminal structure shown in does not constitute a limitation on the mobile terminal. The mobile terminal may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements.

[0120] Next, in combination with Figure 11 each component of the mobile terminal will be specifically introduced:

[0121] The radio frequency unit 1101 can be used for receiving and transmitting information or signals during communication. Specifically, after receiving the downlink information of the base station, it is sent to the processor 1110 for processing. Additionally, the uplink data is sent to the base station. Generally, the radio frequency unit 1101 includes, but is not limited to, antennas, at least one amplifier, a transceiver, a coupler, a low-noise amplifier, a duplexer, etc. Moreover, the radio frequency unit 1101 can also communicate with the network and other devices through wireless communication. The above wireless communication can use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA2000 (Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division Duplexing-Long Term Evolution), TDD-LTE (Time Division Duplexing-Long Term Evolution), 5G, and 6G, etc.

[0122] WiFi belongs to short-range wireless transmission technology. The mobile terminal can help users send and receive emails, browse the web, and access streaming media through the WiFi module 1102, which provides users with wireless broadband Internet access. Although Figure 11 the WiFi module 1102 is shown, it can be understood that it is not an essential component of the mobile terminal and can be omitted entirely within the scope of not changing the essence of this application as needed.

[0123] The audio output unit 1103 can convert audio data received by the radio frequency unit 1101 or the WiFi module 1102 or stored in the memory 1109 into an audio signal and output it as sound when the mobile terminal 1100 is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or other modes. Moreover, the audio output unit 1103 can also provide an audio output related to a specific function executed by the mobile terminal 1100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 1103 may include a speaker, a receiver, a buzzer, etc.

[0124] The A / V input unit 1104 is used to receive an audio or video signal. The A / V input unit 1104 may include a Graphics Processing Unit (GPU) 11041 and a microphone 11042. The graphics processor 11041 processes the image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capture mode or an image capture mode. The processed image frame can be displayed on the display unit 1106. The image frame processed by the graphics processor 11041 can be stored in the memory 1109 (or other storage media) or transmitted via the radio frequency unit 1101 or the WiFi module 1102. The microphone 11042 can receive sound (audio data) via the microphone 11042 in operating modes such as a phone call mode, a recording mode, a voice recognition mode, etc., and can process such sound into audio data. The processed audio (voice) data can be output in a format that can be transmitted to a mobile communication base station via the radio frequency unit 1101 in the case of a phone call mode. The microphone 11042 can implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated during the reception and transmission of audio signals.

[0125] The mobile terminal 1100 further includes at least one sensor 1105, such as a light sensor, a motion sensor, and other sensors. Optionally, the light sensor includes an ambient light sensor and a proximity sensor. Optionally, the ambient light sensor can adjust the brightness of the display panel 11061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 11061 and / or the backlight when the mobile terminal 1100 is moved to the ear. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when stationary, and can be used for applications that identify the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors that the mobile phone can also be configured with, such as fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., they will not be elaborated here.

[0126] The display unit 1106 is used to display information input by the user or information provided to the user. The display unit 1106 may include a display panel 11061, and the display panel 11061 can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.

[0127] The user input unit 1107 can be used to receive input numerical or character information, and generate key signal inputs related to the user settings and function control of the mobile terminal. Optionally, the user input unit 1107 may include a touch panel 11071 and other input devices 11072. The touch panel 11071, also known as a touch screen, can collect touch operations of the user thereon or nearby (such as operations of the user using any suitable object or accessory such as a finger, a stylus, etc. on or near the touch panel 11071), and drive corresponding connection devices according to a preset program. The touch panel 11071 can include two parts: a touch detection device and a touch controller. Optionally, the touch detection device detects the touch orientation of the user, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the processor 1110, and can receive and execute commands sent by the processor 1110. In addition, at least two types such as resistive, capacitive, infrared, and surface acoustic wave can be used to implement the touch panel 11071. In addition to the touch panel 11071, the user input unit 1107 may further include other input devices 11072. Optionally, the other input devices 11072 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, etc., and specific details are not limited here.

[0128] Optionally, the touch panel 11071 may cover the display panel 11061. After the touch panel 11071 detects a touch operation thereon or nearby, it transmits the operation to the processor 1110 to determine the type of the touch event. Subsequently, the processor 1110 provides corresponding visual output on the display panel 11061 according to the type of the touch event. Although in Figure 11 the touch panel 11071 and the display panel 11061 are implemented as two independent components to realize the input and output functions of the mobile terminal, in some embodiments, the touch panel 11071 and the display panel 11061 can be integrated to realize the input and output functions of the mobile terminal, and specific details are not limited here.

[0129] The interface unit 1108 serves as an interface through which at least one external device can be connected to the mobile terminal 1100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, an audio input / output (I / O) port, a video I / O port, a headset port, and so on. The interface unit 1108 can be used to receive inputs from the external device (such as data information, power, etc.) and transfer the received inputs to one or more components within the mobile terminal 1100 or can be used to transfer data between the mobile terminal 1100 and the external device.

[0130] The memory 1109 can be used to store software programs and various data. The memory 1109 mainly includes a program storage area and a data storage area. Optionally, the program storage area can store an operating system, applications required for at least one function (such as a sound playback function, an image playback function, etc.); the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.). In addition, the memory 1109 can include a high-speed random access memory and can also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state storage devices.

[0131] The processor 1110 is the control center of the mobile terminal, connecting various parts of the entire mobile terminal using various interfaces and lines. By running or executing software programs and / or modules stored in the memory 1109 and by calling data stored in the memory 1109, it performs various functions of the mobile terminal and processes data, thereby monitoring the mobile terminal as a whole. The processor 1110 can include one or more processing units; preferably, the processor 1110 can integrate an application processor and a modem processor. Optionally, the application processor mainly processes the operating system, user interface, and applications, etc., and the modem processor mainly processes wireless communications. It can be understood that the above-mentioned modem processor may not be integrated into the processor 1110.

[0132] The mobile terminal 1100 may also include a power supply 1111 (such as a battery) for powering each component. Preferably, the power supply 1111 can be logically connected to the processor 1110 through a power management system, thereby implementing functions such as management of charging, discharging, and power consumption management through the power management system.

[0133] Although Figure 11Not shown, the mobile terminal 1100 may further include a Bluetooth module, etc., which will not be elaborated here. It can be understood that the above scenarios are only examples and do not constitute a limitation on the application scenarios of the technical solutions provided by the embodiments of the present application. The technical solutions of the present application can also be applied to other scenarios. For example, as is known to those of ordinary skill in the art, with the evolution of the system architecture and the emergence of new business scenarios, the technical solutions provided by the embodiments of the present application are equally applicable to similar technical problems. It can be understood that the above scenarios are only examples and do not constitute a limitation on the application scenarios of the technical solutions provided by the embodiments of the present application. The technical solutions of the present application can also be applied to other scenarios. For example, as is known to those of ordinary skill in the art, with the evolution of the system architecture and the emergence of new business scenarios, the technical solutions provided by the embodiments of the present application are equally applicable to similar technical problems.

[0134] The serial numbers of the above embodiments of the present application are only for description and do not represent the superiority or inferiority of the embodiments.

[0135] The steps in the method of the embodiments of the present application can be adjusted, combined, and deleted according to actual needs.

[0136] The units in the devices of the embodiments of the present application can be combined, divided, and deleted according to actual needs.

[0137] In the present application, for the description of the same or similar term concepts, technical solutions, and / or application scenarios, generally only the first occurrence is described in detail. When it appears repeatedly later, for the sake of brevity, it is generally not elaborated again. When understanding the technical solutions and other contents of the present application, for the same or similar term concepts, technical solutions, and / or application scenarios that are not described in detail later, reference can be made to the relevant detailed descriptions before.

[0138] In the present application, the descriptions of the various embodiments have their own emphases. For the parts not elaborated or recorded in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0139] The technical features of the technical solutions of the present application can be combined arbitrarily. For the sake of concise description, not all possible combinations of the various technical features in the above embodiments are described. However, as long as the combinations of these technical features do not conflict, they should all be considered as the scope recorded in the present application.

[0140] The above are only the preferred embodiments of the present application, and do not limit the patent scope of the present application accordingly. Any equivalent structural or equivalent process transformation made by using the content of the specification and drawings of the present application, or directly or indirectly applied in other related technical fields, is equally included in the patent protection scope of the present application.

Claims

1. A two-way communication circuit, characterized in that, Comprising: A sending module, a receiving module, and a transmission end; The sending module, connected to the transmission end, is configured to apply a voltage to the transmission end according to a received sending control signal; The receiving module, connected to the transmission end, is configured to determine or generate received data according to the voltage of the transmission end and a reference voltage; The transmission end is configured to output the voltage applied by the sending module; And receive the voltage output by other devices.

2. The circuit according to claim 1, wherein The sending module includes a control unit; One end of the control unit receives a first voltage, the other end of the control unit receives a second voltage, and the control end of the control unit receives the sending control signal, and is configured to apply the first voltage or the second voltage to the transmission end according to the sending control signal.

3. The circuit according to claim 2, characterized in that, The sending control signal includes a first sending control signal and a second sending control signal; the control unit includes a first switch and a second switch; One end of the first switch receives the first voltage, the other end of the first switch is connected to one end of the second switch, and the control end of the first switch receives the first sending control signal; The other end of the second switch receives the second voltage, and the control end of the second switch receives the second sending control signal.

4. The circuit according to claim 2, wherein The sending module further includes a first resistor or a second resistor; One end of the first resistor receives the first voltage, and the other end of the first resistor is connected to the transmission end; One end of the second resistor is connected to the transmission end, and the other end of the second resistor receives the second voltage.

5. The circuit according to any one of claims 2 to 4, characterized in that, The receiving module includes a comparison unit; The first input end of the comparison unit is connected to the transmission end, the second input end of the comparison unit receives the reference voltage, and the output end of the comparison unit is configured to output the received data when the sending module does not apply a voltage to the transmission end.

6. The circuit according to claim 5, characterized in that, The circuit further includes a voltage dividing circuit; One end of the voltage dividing circuit receives the first voltage, the other end receives the second voltage, and the output end of the voltage dividing circuit is connected to the second input end of the comparison unit, and is configured to output the reference voltage.

7. The circuit according to claim 6, characterized in that, The voltage dividing circuit includes a third resistor having the same resistance value as the first resistor and a fourth resistor having the same resistance value as the second resistor; One end of the third resistor receives the first voltage, and one end of the fourth resistor receives the second voltage; The other end of the third resistor is connected to the other end of the fourth resistor, and the connection point of the third resistor and the fourth resistor outputs the reference voltage.

8. The circuit according to claim 5, wherein The comparison unit includes a first comparator and a second comparator; The positive input end of the first comparator is connected to the transmission end, the negative input end of the first comparator is connected to the positive input end of the second comparator and receives the reference voltage; the negative input end of the second comparator is connected to the transmission end; The output ends of the first comparator and the second comparator are configured to output a differential signal of the received data.

9. An electronic device, characterized in that, Comprising the two-way communication circuit according to any one of claims 1 to 8.

10. The electronic device according to claim 9, wherein, The transmitting module in the two-way communication circuit includes a first resistor, one end of the first resistor receives a first voltage, and the other end of the first resistor is connected to the transmission end of the electronic device; Or, The transmitting module includes a second resistor, one end of the second resistor is connected to the transmission end of the electronic device, and the other end of the second resistor receives a second voltage.

Citation Information

Cited By

  • Signal and power transmission circuit with programmable simulation verification function

    CN121050961A