Signal conversion circuit and input / output system
By designing the first and second signal conversion modules in the signal conversion circuit, the problem that the controller's input and output functions cannot meet the requirements of high-level signals is solved. This achieves bidirectional signal conversion and adaptation, is suitable for signal level requirements in specific fields, and has a self-test function.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-23
- Publication Date
- 2026-03-10
AI Technical Summary
The input/output functions of existing controllers cannot meet the needs of certain fields for higher-level signals.
A signal conversion circuit is designed, including a first signal conversion module and a second signal conversion module, which are respectively connected to the input and output pins of the controller, for converting the signal output by the controller into a signal usable by the electronic device, and converting the signal output by the electronic device into a signal usable by the controller.
It enables bidirectional signal conversion and adaptation between the controller and electronic equipment, meets the needs of specific fields for higher level signals, and ensures the normal operation of the signal conversion circuit through self-test function.
Smart Images

Figure CN121634935A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The application belongs to the technical field of electronic circuits, and particularly relates to a signal conversion circuit and an input and output system. BACKGROUND
[0002] In the field of integrated circuits, a controller usually outputs a signal to an external electronic device to realize control of the electronic device, or the controller receives a signal sent by the electronic device to realize feedback of the signal. In order to realize the above functions, the controller needs to have an input and output function. At present, most of the pins of a controller, such as an MCU (Microcontroller Unit) or an ARM (Advanced RISC Machine, which is a series of central processing units based on the Reduced Instruction Set Computer architecture), can be configured as pins having an input and output function, but the signal level output by the controller or the signal level received by the controller usually only supports 3.3V, and in some specific fields, the actual demand cannot be met. SUMMARY
[0003] The embodiments of the application provide a signal conversion circuit and an input and output system, and can solve the problem that the input and output function of a current controller cannot meet actual demand.
[0004] In a first aspect, the embodiments of the application provide a signal conversion circuit, which comprises a first signal conversion module and a second signal conversion module, the first signal conversion module is connected with the second signal conversion module and an electronic device respectively, the first signal conversion module is configured to be connected with a first input and output pin of a controller, and the second signal conversion module is configured to be connected with a second input and output pin of the controller.
[0005] The first signal conversion module is configured to convert a first signal output by the controller into a second signal, and transmit the second signal to the electronic device; and the second signal conversion module is configured to convert a third signal output by the electronic device into a fourth signal, and transmit the fourth signal to the controller.
[0006] In a possible implementation manner of the first aspect, the second signal conversion module is further configured to receive the second signal, convert the second signal to obtain a fifth signal, and transmit the fifth signal to the controller, the fifth signal being used to indicate whether the signal conversion circuit is normal.
[0007] In a possible implementation manner of the first aspect, the first signal conversion module comprises a switch unit, a first resistance unit and a first power supply unit, the switch unit is connected with the first resistance unit, a first input-output pin of the controller, the electronic device and the second signal conversion module respectively, the first resistance unit is connected with the first power supply unit, and the switch unit is grounded; the second signal comprises a first sub-signal and a second sub-signal;
[0008] The switch unit is configured to receive the first signal, when the switch unit is turned on according to the first signal, the first resistance unit is connected with the ground, and the first sub-signal is output to the electronic device; when the switch unit is turned off according to the first signal, the first resistance unit is disconnected with the ground, and the second sub-signal is output to the electronic device.
[0009] In a possible implementation manner of the first aspect, the switch unit comprises a first resistance, a second resistance and a switch tube, a first end of the first resistance is configured to be connected with the first input-output pin of the controller, a second end of the first resistance is connected with a first end of the second resistance and a control end of the switch tube respectively, a first conduction end of the switch tube is connected with the first resistance unit, the second signal conversion module and the electronic device respectively, and a second end of the second resistance and a second conduction end of the switch tube are grounded.
[0010] In a possible implementation manner of the first aspect, the first resistance unit comprises a third resistance, a first end of the third resistance is connected with the switch unit, the electronic device and the second signal conversion module respectively, and a second end of the third resistance is connected with the first power supply unit.
[0011] In a possible implementation manner of the first aspect, the second signal conversion module comprises a unidirectional conduction unit, a second resistance unit and a second power supply unit, the second resistance unit is connected with the second power supply unit, the unidirectional conduction unit and a second input-output pin of the controller respectively, and the unidirectional conduction unit is connected with the first signal conversion module and the electronic device respectively; the fourth signal comprises a third sub-signal and a fourth sub-signal.
[0012] The unidirectional conduction unit is configured to receive the third signal, when the unidirectional conduction unit is reversely cut off according to the third signal, the second power supply unit outputs the third sub-signal to the second input-output pin of the controller through the second resistance unit; when the unidirectional conduction unit is unidirectionally conducted according to the third signal, the fourth sub-signal is output to the second input-output pin of the controller.
[0013] In a possible implementation manner of the first aspect, the unidirectional conduction unit includes a diode, an anode of the diode is connected with the second resistance unit and a second input-output pin of the controller respectively, and a cathode of the diode is connected with the electronic device and the first signal conversion module respectively.
[0014] In a possible implementation manner of the first aspect, the second resistance unit includes a fourth resistance, a first end of the fourth resistance is connected with the second power supply unit, and a second end of the fourth resistance is connected with the unidirectional conduction unit and the second input-output pin of the controller respectively.
[0015] In a possible implementation manner of the first aspect, the second signal conversion module further includes a filtering unit, the filtering unit is connected with the unidirectional conduction unit, the electronic device and the first signal conversion module respectively.
[0016] The filtering unit is configured to receive the third signal and filter the third signal.
[0017] In the second aspect, the embodiments of the present application provide an input-output system, including a controller and the signal conversion circuit in any one of the first aspect, a first input-output pin of the controller is connected with the first signal conversion module in the signal conversion circuit, a second input-output pin of the controller is connected with the second signal conversion module in the signal conversion circuit, and a common end of the first signal conversion module and the second signal conversion module serves as an input-output pin of the input-output system.
[0018] Compared with the prior art, the embodiments of the present application have the following beneficial effects:
[0019] The embodiments of the present application provide a signal conversion circuit, including a first signal conversion module and a second signal conversion module, the first signal conversion module is connected with the second signal conversion module and an electronic device respectively, the first signal conversion module is configured to be connected with a first input-output pin of a controller, and the second signal conversion module is configured to be connected with a second input-output pin of the controller.
[0020] The first signal conversion module is configured to convert a first signal output by the controller into a second signal, and transmit the second signal to the electronic device, so that the electronic device can perform a related operation according to the second signal. The second signal conversion module is configured to convert a third signal output by the electronic device into a fourth signal, and transmit the fourth signal to the controller, so that the controller can perform a related operation according to the fourth signal.
[0021] The embodiments of the present application realize bidirectional conversion and adaptation of signals between the controller and the electronic device through the first signal conversion module and the second signal conversion module, so as to meet actual needs in some specific fields.
[0022] In conclusion, the signal conversion circuit provided by the embodiments of the present application solves the problem that the input and output functions of the current controller cannot meet the actual requirements.
[0023] It can be understood that the beneficial effects of the second aspect described above can be referred to the related description in the first aspect described above, which will not be repeated here. BRIEF DESCRIPTION OF DRAWINGS
[0024] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or prior art description will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can also be obtained by those skilled in the art without creative labor.
[0025] Figure 1 is a principle block diagram of the signal conversion circuit provided by an embodiment of the present application;
[0026] Figure 2 is a principle block diagram of the signal conversion circuit provided by another embodiment of the present application;
[0027] Figure 3 is a principle block diagram of the signal conversion circuit provided by another embodiment of the present application;
[0028] Figure 4 is a circuit connection schematic diagram of the signal conversion circuit provided by an embodiment of the present application;
[0029] Figure 5 is a circuit connection schematic diagram of the signal conversion circuit provided by another embodiment of the present application;
[0030] Figure 6 is a circuit connection schematic diagram of the signal conversion circuit provided by another embodiment of the present application;
[0031] Figure 7 is a principle block diagram of the input and output system provided by an embodiment of the present application.
[0032] In the figure: 1, input and output system; 10, signal conversion circuit; 11, first signal conversion module; 111, switch unit; 112, first resistance unit; 113, first power supply unit; 12, second signal conversion module; 121, unidirectional conduction unit; 122, second resistance unit; 123, second power supply unit; 124, filter unit; 20, controller; 30, electronic device. DETAILED DESCRIPTION
[0033] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application may also be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods have been omitted so as not to obscure the description of this application with unnecessary detail.
[0034] It should be understood that, when used in this application specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or a collection thereof.
[0035] It should also be understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.
[0036] As used in this application specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrase "if determined" or "if [the described condition or event] is detected" may be interpreted, depending on the context, as "once determined," "in response to determination," "once [the described condition or event] is detected," or "in response to detection of [the described condition or event]."
[0037] Furthermore, in the description of this application and the appended claims, the terms "first," "second," "third," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.
[0038] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.
[0039] Current controllers, such as MCUs or ARM processors, have most pins that are bidirectional. Their circuit structure mainly consists of various components such as latches, flip-flops, gate circuits, MOSFETs, and resistors. The circuit is packaged inside the chip and structurally divided into input and output paths. Besides implementing bidirectional I / O, it can also perform other complex functions. Because it needs to implement many functions, the circuit and implementation logic are relatively complex, and the input and output signal levels it supports are relatively low, making it unsuitable for applications requiring higher signal levels.
[0040] To address the above problems, embodiments of this application provide a signal conversion circuit, such as... Figure 1 As shown, the signal conversion circuit 10 includes a first signal conversion module 11 and a second signal conversion module 12. The first signal conversion module 11 is connected to the second signal conversion module 12 and the electronic device 30, respectively. The first signal conversion module 11 is used to connect to the first input / output pin IO1 of the controller 20, and the second signal conversion module 12 is used to connect to the second input / output pin IO2 of the controller 20.
[0041] Specifically, the first signal conversion module 11 converts the first signal output by the controller 20 into a second signal and transmits the second signal to the electronic device 30, enabling the electronic device 30 to perform related operations based on the second signal. The first signal conversion module 11 can convert the level signal output by the controller 20 into a higher level signal to meet the usage requirements of the electronic device 30. The second signal conversion module 12 converts the third signal output by the electronic device 30 into a fourth signal and transmits the fourth signal to the controller 20, enabling the controller 20 to perform related operations based on the fourth signal. The second signal conversion module 12 can convert the higher level signal output by the electronic device 30 into a level signal supported by the second input / output pin IO2 of the controller 20 to meet the usage requirements of the controller 20.
[0042] This application realizes bidirectional signal conversion and adaptation between the controller 20 and the electronic device 30 through the first signal conversion module 11 and the second signal conversion module 12, so as to meet the actual needs in certain specific fields, such as applications requiring higher level signals.
[0043] It should be noted that the first input / output pin IO1 of the controller 20 is configured as an output pin, and the second input / output pin IO2 of the controller 20 is configured as an input pin. After passing through their respective signal conversion modules, the first input / output pin IO1 and the second input / output pin IO2 of the controller 20 are shorted together, presenting a bidirectional pin to the electronic device 30 that can be used for both input and output. When this bidirectional pin is used as an input pin, the second signal conversion module 12 converts the input signal (i.e., the signal output by the electronic device 30) and transmits the converted signal to the controller 20 through the second input / output pin IO2. When this bidirectional pin is used as an output pin, the first signal conversion module 11 converts the signal output from the first input / output pin IO1 of the controller 20 and transmits the converted signal to the electronic device 30 through the bidirectional pin, realizing signal input and output at any level.
[0044] In some embodiments, the signal conversion circuit 10 provided in this application also has a self-test function. The self-test principle is as follows: the second signal conversion module 12 is also used to receive the second signal output by the first signal conversion module 11, convert the second signal to obtain the fifth signal, and transmit the fifth signal to the controller 20. The fifth signal is used to indicate whether the signal conversion circuit 10 is normal.
[0045] For example, when the second signal output by the first signal conversion module 11 is a low-level signal, the fifth signal output by the second signal conversion module 12 is also a low-level signal. If the fifth signal is a low-level signal, then the signal conversion circuit 10 is determined to be normal. If the fifth signal is not a low-level signal, then the signal conversion circuit 10 is determined to be abnormal.
[0046] When the second signal output by the first signal conversion module 11 is a high-level signal, the fifth signal output by the second signal conversion module 12 is also a high-level signal. If the fifth signal is a high-level signal, the signal conversion circuit 10 is determined to be normal. If the fifth signal is not a high-level signal, the signal conversion circuit 10 is determined to be malfunctioning.
[0047] In some embodiments, such as Figure 2 As shown, the first signal conversion module 11 includes a switch unit 111, a first resistor unit 112, and a first power supply unit 113. The switch unit 111 is connected to the first resistor unit 112, the first input / output pin IO1 of the controller 20, the electronic device 30, and the second signal conversion module 12, respectively. The first resistor unit 112 is connected to the first power supply unit 113, and the switch unit 111 is also grounded. The second signal includes a first sub-signal and a second sub-signal.
[0048] Specifically, the switching unit 111 receives a first signal output by the controller 20. When the switching unit 111 is turned on according to the first signal, the first resistor unit 112 is connected to ground and outputs a first sub-signal to the electronic device 30, wherein the first sub-signal is a low-level signal. When the switching unit 111 is turned off according to the first signal, the first resistor unit 112 is disconnected from ground and outputs a second sub-signal to the electronic device 30, wherein the second sub-signal is a high-level signal. It should be noted that the level of the second sub-signal is related to the power supply voltage provided by the first power supply unit 113. The higher the power supply voltage of the first power supply unit 113, the higher the level of the second sub-signal. Therefore, in practical applications, an appropriate power supply voltage can be selected according to the actual situation to output an appropriate level signal.
[0049] In some embodiments, such as Figure 4 As shown, the switching unit 111 includes a first resistor R1, a second resistor R2, and a switching transistor Q. The first end of the first resistor R1 is connected to the first input / output pin IO1 of the controller 20. The second end of the first resistor R1 is connected to the first end of the second resistor R2 and the control terminal of the switching transistor Q. The first conducting terminal of the switching transistor Q is connected to the first resistor unit 112, the second signal conversion module 12, and the electronic device 30. The second end of the second resistor R2 and the second conducting terminal of the switching transistor Q are both grounded. The first resistor R1 serves as a current limiter and protection unit, while the second resistor R2 serves a protection function. For example, the supply voltage VCC1 provided by the first power supply unit 113 is 24V.
[0050] Specifically, when the first signal output by the controller 20 is a high-level signal, the switch Q is turned on, making the first resistor unit 112 connected to ground, and outputting the first sub-signal to the electronic device 30.
[0051] When the first signal output by the controller 20 is a low-level signal, the switch Q is turned off, disconnecting the first resistor unit 112 from ground and outputting a second sub-signal to the electronic device 30. Since the power supply voltage provided by the first power supply unit 113 is 24V, the level of the second sub-signal is also 24V. Therefore, the first signal conversion module 11 converts the output signal of the controller 20 through the switch Q, and can output a 24V high-level signal.
[0052] For example, the switching transistor Q can be an NPN transistor or an NMOS transistor. It is important to note that the selection of the switching transistor Q should meet the circuit's voltage withstand parameters.
[0053] In some embodiments, such as Figure 5As shown, the switching unit 111 also includes a Zener diode ZD. The anode of the Zener diode ZD is grounded, and the cathode of the Zener diode ZD is connected to the first conducting terminal of the switching transistor Q. The Zener diode ZD is used for overvoltage protection.
[0054] In some embodiments, such as Figure 4 As shown, the first resistor unit 112 includes a third resistor R3. The first end of the third resistor R3 is connected to the switch unit 111, the electronic device 30, and the second signal conversion module 12, respectively. The second end of the third resistor R3 is connected to the first power supply unit 113.
[0055] Specifically, when the first signal output by the controller 20 is a high-level signal, the switch Q is turned on, making the third resistor R3 connected to ground, and outputting the first sub-signal to the electronic device 30.
[0056] When the first signal output by the controller 20 is a low-level signal, the switch Q is turned off, disconnecting the third resistor R3 from ground and outputting a second sub-signal to the electronic device 30. Since the power supply voltage provided by the first power supply unit 113 is 24V, the level of the second sub-signal is also 24V.
[0057] As can be seen from the above, the first signal conversion module 11 in this application realizes the conversion of the output signal of the controller 20 through the switching transistor Q, and can output a 24V high-level signal to be suitable for occasions that require higher level signals.
[0058] In some embodiments, such as Figure 2 As shown, the second signal conversion module 12 includes a unidirectional conduction unit 121, a second resistor unit 122, and a second power supply unit 123. The second resistor unit 122 is connected to the second power supply unit 123, the unidirectional conduction unit 121, and the second input / output pin IO2 of the controller 20, respectively. The unidirectional conduction unit 121 is connected to the first signal conversion module 11 and the electronic device 30, respectively. Figure 2 It can be seen that the unidirectional conduction unit 121 is connected to the switch unit 111, the first resistor unit 112, and the electronic device 30, respectively. The fourth signal includes a third sub-signal and a fourth sub-signal.
[0059] Specifically, the unidirectional conduction unit 121 receives the third signal output by the electronic device 30. When the unidirectional conduction unit 121 is reverse-biased according to the third signal (which is a high-level signal), the second power supply unit 123 outputs a third sub-signal to the second input / output pin IO2 of the controller 20 through the second resistor unit 122. The third sub-signal is a high-level signal. The magnitude of the third sub-signal is related to the power supply voltage of the second power supply unit 123. Since the second input / output pin IO2 of the controller 20 supports a voltage level of 3.3V, the power supply voltage provided by the second power supply unit 123 is 3.3V, meaning the magnitude of the third sub-signal is 3.3V. When the unidirectional conduction unit 121 is unidirectionally conduction according to the third signal (which is a low-level signal), it outputs a fourth sub-signal to the second input / output pin IO2 of the controller 20. The fourth sub-signal is a low-level signal.
[0060] In some embodiments, such as Figure 4 As shown, the unidirectional conduction unit 121 includes a diode D. The anode of the diode D is connected to the second resistor unit 122 and the second input / output pin IO2 of the controller 20, respectively. The cathode of the diode D is connected to the electronic device 30 and the first signal conversion module 11, respectively. Figure 4 It can be seen that the cathode D of the diode is connected to the first conducting terminal of the electronic device 30, the first conducting terminal of the switching transistor Q, and the first terminal of the third resistor R3, respectively.
[0061] Specifically, when diode D is reverse-biased according to the third signal (which is a high-level signal), the second power supply unit 123 outputs a third sub-signal to the second input / output pin IO2 of the controller 20 through the second resistor unit 122. This third sub-signal is a 3.3V level signal. When diode D is unidirectionally turned on according to the third signal (which is a low-level signal), a fourth sub-signal is output to the second input / output pin IO2 of the controller 20. This fourth sub-signal is a low-level signal.
[0062] It is important to note that diode D needs to be a Schottky diode that meets the reverse withstand voltage parameter.
[0063] In some embodiments, such as Figure 4 As shown, the second resistor unit 122 includes a fourth resistor R4. The first end of the fourth resistor R4 is connected to the second power supply unit 123, and the second end of the fourth resistor R4 is connected to the unidirectional conduction unit 121 and the second input / output pin IO2 of the controller 20, respectively. Figure 4 It can be seen that the second end of the fourth resistor R4 is connected to the anode of the diode D and the second input / output pin IO2 of the controller 20, respectively.
[0064] Specifically, when diode D is reverse-biased according to the third signal (which is a high-level signal), the second power supply unit 123 outputs a third sub-signal to the second input / output pin IO2 of the controller 20 through the fourth resistor R4. This third sub-signal is also a 3.3V level signal. When diode D is unidirectionally turned on according to the third signal (which is a low-level signal), it outputs a fourth sub-signal to the second input / output pin IO2 of the controller 20. This fourth sub-signal is a low-level signal.
[0065] In some embodiments, such as Figure 3 As shown, the second signal conversion module 12 further includes a filtering unit 124, which is connected to the unidirectional conduction unit 121, the electronic device 30, and the first signal conversion module 11. According to... Figure 3 It can be seen that the filter unit 124 is connected to the unidirectional conduction unit 121, the electronic device 30, the switch unit 111 and the first resistor unit 112 respectively.
[0066] Specifically, the filtering unit 124 is used to receive the third signal output by the electronic device 30 and filter the third signal.
[0067] In some embodiments, such as Figure 6 As shown, the filter unit 124 includes a first capacitor C1 and a ferrite bead. The first terminal of the first capacitor C1 is connected to the cathode of the diode D and the first terminal of the ferrite bead, respectively. The second terminal of the first capacitor C1 is grounded. The second terminal of the ferrite bead is connected to the first conducting terminal of the switching transistor Q, the first terminal of the third resistor R3, and the electronic device 30, respectively. The first capacitor C1 and the ferrite bead are used to filter the signal output by the electronic device 30.
[0068] As can be seen from the above, the second signal conversion module 12 of this application utilizes the unidirectional conduction principle of diode D to convert the high-level signal (e.g., a 24V level signal) output by electronic device 30 into a level signal (i.e., a 3.3V level signal) supported by the second input / output pin IO2 of controller 20.
[0069] In summary, the signal conversion circuit 10 provided in this application embodiment is mainly composed of resistors, capacitors, diodes, transistors, and other devices. Its structure and logic are relatively simple, effectively reducing material and design costs. Furthermore, the signal conversion circuit 10 provided in this application embodiment also has a self-testing function, which can determine whether the signal conversion circuit 10 is functioning correctly in any application scenario.
[0070] This application also provides an input / output system, such as... Figure 7As shown, the input / output system 1 includes a controller 20 and the aforementioned signal conversion circuit 10. The first input / output pin IO1 of the controller 20 is connected to the first signal conversion module 11 in the signal conversion circuit 10, and the second input / output pin IO2 of the controller 20 is connected to the second signal conversion module 12 in the signal conversion circuit 10. The common terminal of the first signal conversion module 11 and the second signal conversion module 12 serves as the input / output pin IO of the input / output system 1. Specifically, the first input / output pin IO1 of the controller 20 is configured as an output pin, and the second input / output pin IO2 of the controller 20 is configured as an input pin.
[0071] Specifically, the first input / output pin IO1 and the second input / output pin IO2 of the controller 20 are shorted together after passing through the first signal conversion module 11 and the second signal conversion module 12 in the signal conversion circuit 10, respectively, presenting a bidirectional pin IO to the electronic device 30 that can be used for both input and output. When the bidirectional pin IO is used as an input pin, the second signal conversion module 12 in the signal conversion circuit 10 converts the input signal (i.e., the signal output by the electronic device 30) and transmits the converted signal to the controller 20 through the second input / output pin IO2. When the bidirectional pin IO is used as an output pin, the first signal conversion module 11 in the signal conversion circuit 10 converts the signal output from the first input / output pin IO1 of the controller 20 and transmits the converted signal to the electronic device 30 through the bidirectional pin IO, realizing signal input and output at any level.
[0072] For example, controller 20 includes an MCU or an ARM.
[0073] In summary, the input / output system 1 provided in this application embodiment occupies two input / output pins of the controller 20. After passing through the signal conversion circuit 10, it only presents one bidirectional pin IO to the outside, realizing the input and output of signals of arbitrary level.
[0074] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0075] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.
Claims
1. A signal conversion circuit, characterized by comprising: The signal conversion circuit comprises a first signal conversion module and a second signal conversion module, the first signal conversion module is connected with the second signal conversion module and an electronic device respectively, the first signal conversion module is used for being connected with a first input-output pin of a controller, and the second signal conversion module is used for being connected with a second input-output pin of the controller. The first signal conversion module is used for converting a first signal output by the controller into a second signal and transmitting the second signal to the electronic device, and the second signal conversion module is used for converting a third signal output by the electronic device into a fourth signal and transmitting the fourth signal to the controller.
2. The signal conversion circuit according to claim 1, characterized in that, The second signal conversion module is further used for receiving the second signal, converting the second signal to obtain a fifth signal, and transmitting the fifth signal to the controller, wherein the fifth signal is used for indicating whether the signal conversion circuit is normal.
3. The signal conversion circuit according to claim 1 or 2, characterized in that, The first signal conversion module comprises a switch unit, a first resistance unit and a first power supply unit, the switch unit is connected with the first resistance unit, the first input-output pin of the controller, the electronic device and the second signal conversion module respectively, the first resistance unit is connected with the first power supply unit, and the switch unit is grounded; the second signal comprises a first sub-signal and a second sub-signal. The switch unit is used for receiving the first signal, when the switch unit is turned on according to the first signal, the first resistance unit is connected with the ground, and the first sub-signal is output to the electronic device. When the switch unit is turned off according to the first signal, the first resistance unit is disconnected with the ground, and the second sub-signal is output to the electronic device.
4. The signal conversion circuit of claim 3, wherein, The switch unit comprises a first resistance, a second resistance and a switch tube, a first end of the first resistance is used for being connected with the first input-output pin of the controller, a second end of the first resistance is connected with a first end of the second resistance and a control end of the switch tube respectively, a first conduction end of the switch tube is connected with the first resistance unit, the second signal conversion module and the electronic device respectively, and a second end of the second resistance and a second conduction end of the switch tube are grounded.
5. The signal conversion circuit of claim 3, wherein, The first resistance unit comprises a third resistance, a first end of the third resistance is connected with the switch unit, the electronic device and the second signal conversion module respectively, and a second end of the third resistance is connected with the first power supply unit.
6. The signal conversion circuit according to claim 1 or 2, characterized by The second signal conversion module comprises a one-way conduction unit, a second resistance unit and a second power supply unit, the second resistance unit is connected with the second power supply unit, the one-way conduction unit and the second input-output pin of the controller respectively, and the one-way conduction unit is connected with the first signal conversion module and the electronic device respectively; the fourth signal comprises a third sub-signal and a fourth sub-signal. The unidirectional conducting unit is configured to receive the third signal, and the second power supply unit outputs the third sub-signal to the second input / output pin of the controller through the second resistance unit when the unidirectional conducting unit is reverse blocked according to the third signal; and the unidirectional conducting unit outputs the fourth sub-signal to the second input / output pin of the controller when the unidirectional conducting unit is unidirectionally conducted according to the third signal.
7. The signal conversion circuit of claim 6, wherein, The unidirectional conducting unit comprises a diode, an anode of the diode is connected with the second resistance unit and the second input / output pin of the controller respectively, and a cathode of the diode is connected with the electronic device and the first signal conversion module respectively.
8. The signal conversion circuit of claim 6, wherein, The second resistance unit comprises a fourth resistance, a first end of the fourth resistance is connected with the second power supply unit, and a second end of the fourth resistance is connected with the unidirectional conducting unit and the second input / output pin of the controller respectively.
9. The signal conversion circuit of claim 6, wherein, The second signal conversion module further comprises a filtering unit, the filtering unit is connected with the unidirectional conducting unit, the electronic device and the first signal conversion module respectively. The filtering unit is configured to receive the third signal and filter the third signal.
10. An input / output system, characterized by The signal conversion circuit comprises a controller and the signal conversion circuit according to any one of claims 1-9, a first input / output pin of the controller is connected with the first signal conversion module in the signal conversion circuit, a second input / output pin of the controller is connected with the second signal conversion module in the signal conversion circuit, and a common terminal of the first signal conversion module and the second signal conversion module serves as an input / output pin of the input / output system.