Electronic device and bidirectional level conversion communication method and circuit
By designing a bidirectional level conversion communication circuit in electronic equipment and using control components and pull-up units to achieve bidirectional level conversion of signals, the problems of high cost and complex design of level conversion integrated circuits are solved, and high precision and low cost are achieved. level shifting effect.
Patent Information
- Application Number
- CN201911066663.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-11-04
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2039-11-04
AI Technical Summary
In the existing technology, level conversion integrated circuits are costly and complex in design, making it difficult to achieve bidirectional level conversion communication of signals.
By designing a bidirectional level conversion communication circuit in an electronic device, the first and second control components and the pull-up unit are used to control the communication terminal to pull up according to the received data signal, thereby achieving bidirectional level conversion of the signal without the need for level Conversion integrated circuit.
It reduces the cost and design difficulty of bidirectional level conversion communication, and achieves high-precision level conversion with a simple structure.
Smart Images

Figure CN112769428B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to an electronic device and a bidirectional level conversion communication method and circuit. Background Art
[0002] In the related art, a level conversion integrated circuit is used to realize signal transmission at different working levels in electronic equipment. However, the problem existing in the related art is that the level conversion integrated circuit is relatively expensive and relatively complicated to implement. Summary of the invention
[0003] The present invention aims to solve one of the technical problems in the related art at least to a certain extent.
[0004] Therefore, an object of the present invention is to provide a bidirectional level conversion communication circuit, which can realize bidirectional level conversion communication of signals without level conversion integrated circuit, thereby reducing the cost and design difficulty of bidirectional level conversion communication.
[0005] A second objective of the present invention is to provide an electronic device.
[0006] The third objective of the present invention is to provide a bidirectional level conversion communication method.
[0007] To achieve the above-mentioned purpose, a first aspect of the present invention provides a bidirectional level conversion communication circuit, which includes: a first communication terminal, the first communication terminal is connected to a communication interface of a first chip; a second communication terminal, the second communication terminal is connected to a communication interface of a second chip; a first pull-up unit, one end of the first pull-up unit is connected to a second power supply; a first control component, the first end of the first control component is connected to the first power supply, the second end of the first control component is connected to the first communication terminal, the third end of the first control component is respectively connected to the other end of the first pull-up unit and the second communication terminal, the fourth end of the first control component is grounded, and the first control component controls the first pull-up unit to pull up the second communication terminal according to a data signal received by the first communication terminal; a second pull-up unit, one end of the second pull-up unit is connected to the first power supply; a second control component, the first end of the second control component is connected to the second power supply, the second end of the second control component is connected to the second communication terminal, the third end of the second control component is respectively connected to the other end of the second pull-up unit and the first communication terminal, the fourth end of the second control component is grounded, and the second control component controls the second pull-up unit to pull up the first communication terminal according to the data signal received by the second communication terminal.
[0008] According to the bidirectional level conversion communication circuit proposed in the embodiment of the present invention, when the first chip transmits data to the second chip, the first control component controls the first pull-up unit to pull up the second communication end according to the data signal received by the first communication end; when the second chip transmits data to the first chip, the second control component controls the second pull-up unit to pull up the first communication end according to the data signal received by the second communication end. Thus, bidirectional level conversion communication of the signal is realized through the first pull-up unit, the first control component, the second pull-up unit and the second control component. Therefore, there is no need for a level conversion integrated circuit, which reduces the cost and design difficulty of the bidirectional level conversion communication, and the structure is simple and the level conversion accuracy is high.
[0009] In addition, the bidirectional level conversion communication circuit proposed in the embodiment of the present invention may also have the following additional technical features:
[0010] According to one embodiment of the present invention, the first pull-up unit includes a first resistor, one end of the first resistor is connected to the second power supply, and the other end of the first resistor is respectively connected to the third end of the first control component and the second communication end.
[0011] According to one embodiment of the present invention, the first control component includes: a second resistor; a first photoelectric coupler, wherein the first end of the first photoelectric coupler is connected to the first power supply through the second resistor, the second end of the first photoelectric coupler is connected to the first communication end, the third end of the first photoelectric coupler is respectively connected to the other end of the first pull-up unit and the second communication end, and the fourth end of the first photoelectric coupler is grounded.
[0012] According to one embodiment of the present invention, the second pull-up unit includes a third resistor, one end of the third resistor is connected to the first power supply, and the other end of the third resistor is respectively connected to the third end of the second control component and the first communication end.
[0013] According to one embodiment of the present invention, the second control component includes: a fourth resistor; a second photoelectric coupler, wherein the first end of the second photoelectric coupler is connected to the second power supply through the fourth resistor, the second end of the second photoelectric coupler is connected to the second communication end, the third end of the second photoelectric coupler is respectively connected to the other end of the second pull-up unit and the first communication end, and the fourth end of the second photoelectric coupler is grounded.
[0014] According to an embodiment of the present invention, the first power supply is a power supply of the first chip, and the second power supply is a power supply of the second chip.
[0015] To achieve the above object, a second aspect of the present invention provides an electronic device, which includes the above-mentioned bidirectional level conversion communication circuit.
[0016] According to the electronic device of the embodiment of the present invention, through the above-mentioned bidirectional level conversion communication circuit, bidirectional level conversion communication of signals can be realized without the need for a level conversion integrated circuit, thereby reducing the cost and design difficulty of bidirectional level conversion communication, and having a simple structure and high level conversion accuracy.
[0017] To achieve the above-mentioned purpose, the third aspect of the present invention proposes a bidirectional level conversion communication method, in which a bidirectional level conversion communication circuit includes a first communication end, a second communication end, a first pull-up unit, a first control component, a second pull-up unit and a second control component, so that the first communication end is connected to the communication interface of the first chip, so that the second communication end is connected to the communication interface of the second chip, one end of the first pull-up unit is connected to the second power supply, the first end of the first control component is connected to the first power supply, the second end of the first control component is connected to the first communication end, the third end of the first control component is respectively connected to the other end of the first pull-up unit and the second communication end, the fourth end of the first control component is grounded, and one end of the second pull-up unit is connected to the second power supply. The method comprises the following steps: when the first chip transmits data to the second chip, the first control component controls the first pull-up unit to pull up the second communication terminal according to the data signal received by the first communication terminal; when the second chip transmits data to the first chip, the second control component controls the second pull-up unit to pull up the first communication terminal according to the data signal received by the second communication terminal.
[0018] According to the bidirectional level conversion communication method proposed in an embodiment of the present invention, when the first chip transmits data to the second chip, the first control component controls the first pull-up unit to pull up the second communication end according to the data signal received by the first communication end; when the second chip transmits data to the first chip, the second control component controls the second pull-up unit to pull up the first communication end according to the data signal received by the second communication end. Thus, bidirectional level conversion communication of the signal is realized through the first pull-up unit, the first control component, the second pull-up unit and the second control component. Therefore, there is no need for a level conversion integrated circuit, which reduces the cost and design difficulty of the bidirectional level conversion communication, and the structure is simple and the level conversion accuracy is high. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 is a block diagram of a bidirectional level conversion communication circuit according to an embodiment of the present invention;
[0020] Figure 2 A circuit schematic diagram of a bidirectional level conversion communication circuit according to an embodiment of the present invention;
[0021] Figure 3 is a block diagram of an electronic device according to an embodiment of the present invention; and
[0022] Figure 4 4 is a flow chart of a bidirectional level conversion communication method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0023] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.
[0024] The electronic device and the bidirectional level conversion communication method and circuit of the embodiment of the present invention are described in detail below with reference to the accompanying drawings. As an example, the bidirectional level conversion communication circuit can be used in the case where two chips with different working levels need to communicate, and is specifically applied to the case where bidirectional communication and level conversion are required, and half-duplex synchronous serial communication can be realized.
[0025] Figure 1 FIG. 1 is a schematic diagram showing the principle of a bidirectional level conversion communication circuit according to an embodiment of the present invention. Figure 1 As shown, the bidirectional level conversion communication circuit 101 includes a first communication terminal 102, a second communication terminal 103, a first control component 106, a second control component 107, a first pull-up unit 108, and a second pull-up unit 109. The first control component 106 has a first terminal 112, a second terminal 113, a third terminal 114, and a fourth terminal 115, and the second control component 107 has a first terminal 116, a second terminal 117, a third terminal 118, and a fourth terminal 119.
[0026] Among them, the first communication terminal 102 is connected to the communication interface of the first chip IC1; the second communication terminal 103 is connected to the communication interface of the second chip IC2; one end of the first pull-up unit 108 is connected to the second power supply VCC2; the first end 112 of the first control component 106 is connected to the first power supply VCC1, the second end 113 of the first control component 106 is connected to the first communication terminal 102, the third end 114 of the first control component 106 is respectively connected to the other end of the first pull-up unit 108 and the second communication terminal 103, the fourth end 115 of the first control component 106 is grounded, and the first control component 106 receives the data signal from the first communication terminal 102. The first pull-up unit 108 is controlled by a signal to pull up the second communication terminal 103; one end of the second pull-up unit 109 is connected to the first power supply VCC1; the first end 116 of the second control component 107 is connected to the second power supply VCC2, the second end 117 of the second control component 107 is connected to the second communication terminal 103, the third end 118 of the second control component 107 is respectively connected to the other end of the second pull-up unit 109 and the first communication terminal 102, the fourth end 119 of the second control component 107 is grounded, and the second control component 107 controls the second pull-up unit 109 to pull up the first communication terminal 102 according to the data signal received by the second communication terminal 103.
[0027] As an alternative example, Figure 2 As shown, the first power source VCC1 is the power source of the first chip IC1, and the second power source VCC2 is the power source of the second chip IC2.
[0028] It should be noted that the second end 113 of the first control component 106 may be a control end, and the third end 114 of the first control component 106 may be a controlled end, that is, the state of the output signal of the third end 114 of the first control component 106 changes according to the state of the input signal of the second end 113 of the first control component 106. The second end 117 of the second control component 107 may be a control end, and the third end 118 of the second control component 107 may be a controlled end, that is, the state of the output signal of the third end 118 of the second control component 107 changes according to the state of the input signal of the second end 117 of the second control component 107.
[0029] Specifically, when the data signal received by the first communication terminal 102 is in the first state, the input signal of the second terminal 113 of the first control component 106 is in the first state, the circuit within the first control component 106 is cut off, the third terminal 114 of the first control component 106 is also in the first state, and the first pull-up unit 108 pulls up the second communication terminal 103; when the data signal received by the first communication terminal 102 is in the second state, the input signal of the second terminal 113 of the first control component 106 is in the second state, the circuit within the first control component 106 is turned on, that is, the third terminal 114 of the first control component 106 is connected to the fourth terminal 115, and the third terminal 114 of the first control component 106 is also in the second state, which is output to the second communication terminal 103.
[0030] Similarly, when the data signal received by the second communication terminal 103 is in the first state, the input signal of the second terminal 117 of the second control component 107 is in the first state, the circuit in the second control component 107 is cut off, the third terminal 118 of the second control component 107 is also in the first state, and the second pull-up unit 109 pulls up the first communication terminal 102; when the data signal received by the second communication terminal 103 is in the second state, the input signal of the second terminal 117 of the second control component 107 is in the second state, the circuit in the second control component 107 is turned on, that is, the third terminal 118 of the second control component 107 is connected to the fourth terminal 119, and the third terminal 118 of the second control component 107 is also in the second state, which is output to the first communication terminal 102.
[0031] The first state may be a high level, and the second state may be a low level.
[0032] That is, in the case where the first chip IC1 outputs a data signal to the second chip IC2, that is, when the first communication terminal 102 receives the data signal from the first chip IC1, if the data signal is low level, then the second terminal 113 of the first control component 106 receives the low level, the first control component 106 is turned on, the third terminal 114 of the first control component 106 is grounded through the fourth terminal 115, and the second communication terminal 103 outputs a low level, that is, the second chip IC2 receives the low level. If the data signal is high level, then the second terminal 113 of the first control component 106 receives a high level, the first control component 106 is turned off, and the second communication terminal 103 is pulled up by the first pull-up unit 108 and outputs a high level, that is, the second chip IC2 receives the high level.
[0033] In the case where the second chip IC2 outputs a data signal to the first chip IC1, that is, when the second communication terminal 103 receives the data signal from the second chip IC2, if the data signal is low level, then the second terminal 117 of the second control component 107 receives the low level, the second control component 107 is turned on, the third terminal 118 of the second control component 107 is grounded through the fourth terminal 119, and the first communication terminal 102 outputs a low level, that is, the first chip IC1 receives the low level. If the data signal is high level, then the second terminal 117 of the second control component 107 receives a high level, the second control component 107 is turned off, and the first communication terminal 102 is pulled up by the second pull-up unit 109 and outputs a high level, that is, the first chip IC1 receives the high level.
[0034] Therefore, the bidirectional level conversion communication circuit of the embodiment of the present invention realizes bidirectional communication between the first chip and the second chip without the need for a level conversion integrated circuit, thereby reducing the cost and design difficulty of the bidirectional level conversion communication. The circuit has a simple structure and high level conversion accuracy.
[0035] According to one embodiment of the present invention, Figure 2 As shown, the first pull-up unit 106 includes a first resistor R1, one end of the first resistor R1 is connected to the second power supply VCC2, and the other end of the first resistor R1 is connected to the third end 114 of the first control component 106 and the second communication end 103 respectively.
[0036] It can be understood that when the third terminal 114 of the first control component 106 outputs a high level, the second power supply VCC2 pulls up the second communication terminal 103 through the first pull-up unit 108, that is, the second voltage of the second power supply VCC2 is provided to the second communication terminal 103 through the first resistor R1, so that the second communication terminal 103 is in a high level state; when the third terminal 114 of the first control component 106 outputs a low level, the second communication terminal 103 no longer responds to the pull-up of the first pull-up unit 108, but is in a low level state due to the influence of the third terminal 114 of the first control component 106.
[0037] According to one embodiment of the present invention, Figure 2 As shown, the second pull-up unit 109 includes a third resistor R3, one end of the third resistor R3 is connected to the first power supply VCC1, and the other end of the third resistor R3 is connected to the third end 118 of the second control component 107 and the first communication end 102 respectively.
[0038] It can be understood that when the third terminal 118 of the second control component 107 outputs a high level, the first power supply VCC1 pulls up the first communication terminal 102 through the second pull-up unit 109, that is, the second voltage of the first power supply VCC1 is provided to the first communication terminal 102 through the third resistor R3, so that the first communication terminal 102 is in a high level state; when the third terminal 118 of the second control component 107 outputs a low level, the first communication terminal 102 no longer responds to the pull-up of the second pull-up unit 109, but is in a low level state due to the influence of the third terminal 118 of the second control component 107.
[0039] According to one embodiment of the present invention, Figure 2 As shown, the first control component 106 includes a second resistor R2 and a first photocoupler IC3, wherein a first end 112 of the first photocoupler IC3 is connected to the first power supply VCC1 through the second resistor R2, a second end 113 of the first photocoupler IC3 is connected to the first communication end 102, a third end 114 of the first photocoupler IC3 is respectively connected to the other end of the first pull-up unit 108 and the second communication end 103, and a fourth end 115 of the first photocoupler IC3 is grounded.
[0040] According to one embodiment of the present invention, Figure 2 As shown, the second control component 107 includes a fourth resistor R4 and a second photocoupler IC4, wherein a first end 116 of the second photocoupler IC4 is connected to the second power supply VCC2 through the fourth resistor R4, a second end 117 of the second photocoupler IC4 is connected to the second communication end 103, a third end 118 of the second photocoupler IC4 is respectively connected to the other end of the second pull-up unit 109 and the first communication end 102, and a fourth end 119 of the second photocoupler IC4 is grounded.
[0041] It can be understood that the second resistor R2 and the fourth resistor R4 can be current limiting resistors, which play a protective role in the circuit.
[0042] Specifically, when the first communication terminal 102 receives the data signal from the first chip IC1, if the data signal output by the first chip IC1 is a low level, then the second terminal 113 of the first photocoupler IC3 receives the low level, the light-emitting portion of the first photocoupler IC3 emits light, the light-receiving portion of the first photocoupler IC3 is turned on, and the third terminal 114 of the first photocoupler IC3 outputs a low level. The second communication terminal 103 is a low level, that is, the second chip IC2 receives the low level. At the same time, the low level output by the third terminal 114 of the first photocoupler IC3 is also input to the second terminal 117 of the second photocoupler IC4, the light-emitting portion of the second photocoupler IC4 emits light, the light-receiving portion of the second photocoupler IC4 is turned on, and the third terminal 118 of the second photocoupler IC4 outputs a low level, which will not affect the data signal output by the first chip IC1.
[0043] If the data signal output by the first chip IC1 is at a high level, the second end 113 of the first photocoupler IC3 receives the high level, the light-emitting portion of the first photocoupler IC3 stops emitting light, the light-receiving portion of the first photocoupler IC3 is cut off, the second power supply VCC2 pulls up the third end 114 and the second communication end 103 of the first photocoupler IC3 to a high level through the first resistor R1, and the second chip IC2 receives the high level. At the same time, the high level at the third end 114 of the first photocoupler IC3 is also input to the second end 117 of the second photocoupler IC4, the light-emitting portion of the second photocoupler IC4 stops emitting light, the light-receiving portion of the second photocoupler IC4 is cut off, and the first power supply VCC1 pulls up the third end 118 of the second photocoupler IC4 to a high level through the third resistor R3, which will not affect the data signal output by the first chip IC1.
[0044] Similarly, when the second communication terminal 103 receives the data signal from the second chip IC2, if the data signal output by the second chip IC2 is a low level, then the second terminal 117 of the second photocoupler IC4 receives the low level, the light-emitting portion of the second photocoupler IC4 emits light, the light-receiving portion of the second photocoupler IC4 is turned on, and the third terminal 118 of the second photocoupler IC4 outputs a low level. The first communication terminal 102 is a low level, that is, the first chip IC1 receives the low level. At the same time, the low level output by the third terminal 118 of the second photocoupler IC4 is also input to the second terminal 113 of the first photocoupler IC3, the light-emitting portion of the first photocoupler IC3 emits light, the light-receiving portion of the first photocoupler IC3 is turned on, and the third terminal 114 of the first photocoupler IC3 outputs a low level, which will not affect the data signal output by the second chip IC2.
[0045] If the data signal output by the second chip IC2 is at a high level, the second end 117 of the second photocoupler IC4 receives the high level, the light-emitting portion of the second photocoupler IC4 stops emitting light, the light-receiving portion of the second photocoupler IC4 is cut off, the first power supply VCC1 pulls up the third end 118 of the second photocoupler IC4 and the first communication end 102 to a high level through the third resistor R3, and the first chip IC1 receives the high level. At the same time, the high level at the third end 118 of the second photocoupler IC4 is also input to the second end 113 of the first photocoupler IC3, the light-emitting portion of the first photocoupler IC3 stops emitting light, the light-receiving portion of the first photocoupler IC3 is cut off, and the second power supply VCC2 pulls up the third end 114 of the first photocoupler IC3 to a high level through the first resistor R1, which will not affect the data signal output by the second chip IC2.
[0046] In summary, according to the bidirectional level conversion communication circuit proposed in the embodiment of the present invention, when the first chip transmits data to the second chip, the first control component controls the first pull-up unit to pull up the second communication end according to the data signal received by the first communication end, and when the second chip transmits data to the first chip, the second control component controls the second pull-up unit to pull up the first communication end according to the data signal received by the second communication end. Thus, bidirectional level conversion communication of the signal is realized through the first pull-up unit, the first control component, the second pull-up unit and the second control component, thereby eliminating the need for a level conversion integrated circuit, reducing the cost and design difficulty of the bidirectional level conversion communication, and having a simple structure and high level conversion accuracy.
[0047] Based on the bidirectional level conversion communication circuit of the above embodiment, the present invention further provides an electronic device.
[0048] Figure 3 FIG. 1 is a block diagram of an electronic device according to an embodiment of the present invention. Figure 3 As shown, the electronic device 301 includes a bidirectional level conversion communication circuit 101 .
[0049] According to the electronic device of the embodiment of the present invention, through the above-mentioned bidirectional level conversion communication circuit, bidirectional level conversion communication of signals can be realized without the need for a level conversion integrated circuit, thereby reducing the cost and design difficulty of bidirectional level conversion communication, and having a simple structure and high level conversion accuracy.
[0050] Corresponding to the bidirectional level conversion communication circuit of the above embodiment, the present invention further proposes a bidirectional level conversion communication method.
[0051] Figure 4 FIG. 2 is a flow chart of a bidirectional level conversion communication method according to an embodiment of the present invention. Figure 4 As shown, the method comprises the following steps:
[0052] S101: When the first chip transmits data to the second chip, the first control component controls the first pull-up unit to pull up the second communication terminal according to the data signal received by the first communication terminal;
[0053] S102: When the second chip transmits data to the first chip, the second control component controls the second pull-up unit to pull up the first communication terminal according to the data signal received by the second communication terminal.
[0054] It should be noted that the above explanation of the circuit embodiment is also applicable to the embodiment of the method and will not be repeated here.
[0055] According to the bidirectional level conversion communication method proposed in an embodiment of the present invention, when the first chip transmits data to the second chip, the first control component controls the first pull-up unit to pull up the second communication end according to the data signal received by the first communication end, and when the second chip transmits data to the first chip, the second control component controls the second pull-up unit to pull up the first communication end according to the data signal received by the second communication end. Thus, bidirectional level conversion communication of the signal is realized through the first pull-up unit, the first control component, the second pull-up unit and the second control component, thereby eliminating the need for a level conversion integrated circuit, reducing the cost and design difficulty of bidirectional level conversion communication, and having a simple structure and high level conversion accuracy.
[0056] In the description of the present invention, it is to be understood that the terms “center”, “longitudinal”, “lateral”, “length”, “width”, “thickness”, “up”, “down”, “front”, “back”, “left”, “right”, “vertical”, “horizontal”, “top”, “bottom”, “inside”, “outside”, “clockwise”, “counterclockwise”, “axial”, “radial”, “circumferential”, etc., indicating orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as limiting the present invention.
[0057] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0058] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0059] In the present invention, unless otherwise clearly specified and limited, a first feature being "above" or "below" a second feature may mean that the first and second features are in direct contact, or the first and second features are in indirect contact through an intermediate medium. Moreover, a first feature being "above", "above" or "above" a second feature may mean that the first feature is directly above or obliquely above the second feature, or simply means that the first feature is higher in level than the second feature. A first feature being "below", "below" or "below" a second feature may mean that the first feature is directly below or obliquely below the second feature, or simply means that the first feature is lower in level than the second feature.
[0060] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0061] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.
Claims
1. A bidirectional level conversion communication circuit, It is characterized in that include: A first communication terminal connected to a communication interface of a first chip; A second communication terminal connected to a communication interface of a second chip; A first pull-up unit, one end of which is connected to a second power source; A first control component, wherein the first end of the first control component is connected to a first power source, the second end of the first control component is connected to the first communication end, the third end of the first control component is respectively connected to the other end of the first pull-up unit and the second communication end, the fourth end of the first control component is grounded, and the first control component controls the first pull-up unit to pull up the second communication end according to a data signal received by the first communication end, wherein: when the data signal received by the first communication end is in a first state, the input signal of the second end of the first control component is in a first state, the circuit in the first control component is cut off, the third end of the first control component is in a first state, the first pull-up unit pulls up the second communication end, and the first state is output to the second communication end; when the data signal received by the first communication end is in a second state, the input signal of the second end of the first control component is in a second state, the circuit in the first control component is turned on, the third end of the first control component is also in a second state, and the second state is output to the second communication end; a second pull-up unit, wherein one end of the second pull-up unit is connected to the first power source; A second control component, wherein the first end of the second control component is connected to the second power supply, the second end of the second control component is connected to the second communication end, the third end of the second control component is respectively connected to the other end of the second pull-up unit and the first communication end, the fourth end of the second control component is grounded, and the second control component controls the second pull-up unit to pull up the first communication end according to the data signal received by the second communication end, wherein: when the data signal received by the second communication end is in a first state, the input signal of the second end of the second control component is in a first state, the circuit in the second control component is cut off, the third end of the second control component is in a first state, the second pull-up unit pulls up the first communication end, and the first state is output to the first communication end; when the data signal received by the second communication end is in a second state, the input signal of the second end of the second control component is in a second state, the circuit in the second control component is turned on, the third end of the second control component is also in a second state, and the second state is output to the first communication end.
2. The bidirectional level conversion communication circuit according to claim 1, It is characterized in that The first pull-up unit includes a first resistor, one end of the first resistor is connected to the second power supply, and the other end of the first resistor is respectively connected to the third end of the first control component and the second communication end.
3. The bidirectional level conversion communication circuit according to claim 1, It is characterized in that The first control component comprises: A second resistor; A first photocoupler, wherein a first end of the first photocoupler is connected to the first power supply through the second resistor, a second end of the first photocoupler is connected to the first communication end, a third end of the first photocoupler is respectively connected to the other end of the first pull-up unit and the second communication end, and a fourth end of the first photocoupler is grounded.
4. The bidirectional level conversion communication circuit according to claim 1, It is characterized in that The second pull-up unit includes a third resistor, one end of the third resistor is connected to the first power supply, and the other end of the third resistor is respectively connected to the third end of the second control component and the first communication end.
5. The bidirectional level conversion communication circuit according to claim 1, It is characterized in that The second control component comprises: a fourth resistor; A second photoelectric coupler, wherein a first end of the second photoelectric coupler is connected to the second power supply through the fourth resistor, a second end of the second photoelectric coupler is connected to the second communication end, a third end of the second photoelectric coupler is respectively connected to the other end of the second pull-up unit and the first communication end, and a fourth end of the second photoelectric coupler is grounded.
6. The bidirectional level conversion communication circuit according to claim 1, It is characterized in that The first power supply is a power supply for the first chip, and the second power supply is a power supply for the second chip.
7. An electronic device, It is characterized in that It comprises a bidirectional level conversion communication circuit according to any one of claims 1-6.
8. A bidirectional level conversion communication method, wherein the bidirectional level conversion communication circuit comprises a first communication terminal, a second communication terminal, a first pull-up unit, a first control component, a second pull-up unit and a second control component, wherein the first communication terminal is connected to the communication interface of the first chip, the second communication terminal is connected to the communication interface of the second chip, one end of the first pull-up unit is connected to the second power supply, the first end of the first control component is connected to the first power supply, the second end of the first control component is connected to the first communication terminal, the third end of the first control component is respectively connected to the other end of the first pull-up unit and the second communication terminal, the fourth end of the first control component is grounded, one end of the second pull-up unit is connected to the first power supply, the first end of the second control component is connected to the second power supply, the second end of the second control component is connected to the second communication terminal, the third end of the second control component is respectively connected to the other end of the second pull-up unit and the first communication terminal, and the fourth end of the second control component is grounded. in, The method comprises the following steps: When the first chip transmits data to the second chip, the first control component controls the first pull-up unit to pull up the second communication terminal according to the data signal received by the first communication terminal, wherein: when the data signal received by the first communication terminal is in the first state, the input signal of the second terminal of the first control component is in the first state, the circuit in the first control component is cut off, the third terminal of the first control component is in the first state, the first pull-up unit pulls up the second communication terminal, and the first state is output to the second communication terminal; when the data signal received by the first communication terminal is in the second state, the input signal of the second terminal of the first control component is in the second state, the circuit in the first control component is turned on, the third terminal of the first control component is also in the second state, and the second state is output to the second communication terminal; When the second chip transmits data to the first chip, the second control component controls the second pull-up unit to pull up the first communication terminal according to the data signal received by the second communication terminal; wherein, it includes: when the data signal received by the second communication terminal is in the first state, the input signal of the second terminal of the second control component is in the first state, the circuit in the second control component is cut off, the third terminal of the second control component is in the first state, the second pull-up unit pulls up the first communication terminal, and the first state is output to the first communication terminal; when the data signal received by the second communication terminal is in the second state, the input signal of the second terminal of the second control component is in the second state, the circuit in the second control component is turned on, the third terminal of the second control component is also in the second state, and the second state is output to the first communication terminal.
Citation Information
Patent Citations
Bi-directional level switching circuit and electronic product
CN103199847A
Bidirectional level conversion circuit and bilateral level conversion chip
CN109687862A
An optical coupling circuit and a photoelectric coupler for medium-speed communication
CN109861682A
Circuit realizing two-way communication by using single line
CN203851126U
Half-duplex RS-485 isolation communication circuit
CN203933593U
