Signal conversion circuit and input / output system
By designing a signal conversion circuit, the problem that the controller cannot meet the high-level signal needs is solved, and the signal bidirectional conversion and adaptation is realized, which is suitable for the occasions of higher-level signals and reduces the cost.
Patent Information
- Application Number
- CN202422065773.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-23
- Publication Date
- 2025-07-11
- Estimated Expiration
- 2034-08-23
AI Technical Summary
Existing controllers, such as MCUs or ARMs, cannot meet the needs of certain fields for higher-level signals, especially the output signal levels or received signal levels usually only support 3.3V.
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 suitable for the electronic device, and converting the signal output by the electronic device into a signal that the controller can process.
It realizes the bidirectional conversion and adaptation of signals between the controller and electronic devices, meets the needs of higher-level signals in specific fields, and reduces material and design costs through a simple circuit structure, and also has self-test functions.
Smart Images

Figure CN223092320U_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the technical field of electronic circuits, and particularly relates to a signal conversion circuit and an input / output system. Background Art
[0002] In the field of integrated circuits, a controller usually outputs signals to external electronic devices to control the electronic devices, or the controller receives signals sent by the electronic devices to achieve signal feedback. To implement the above functions, the controller needs to have input / output capabilities. For current controllers, most pins of, for example, an MCU (Microcontroller Unit) or an ARM (Advanced RISC Machine, a series of central processing units based on the reduced instruction set computer architecture) can be configured as pins with input / output capabilities, but the signal levels they output or receive usually only support 3.3V, which cannot meet the actual requirements in some specific fields. Summary of the Utility Model
[0003] Embodiments of this application provide a signal conversion circuit and an input / output system, which can solve the problem that the input / output functions of current controllers cannot meet the actual requirements.
[0004] In a first aspect, embodiments of this application provide a signal conversion circuit, including a first signal conversion module and a second signal conversion module. The first signal conversion module is respectively connected to the second signal conversion module and an electronic device. The first signal conversion module is used to connect to a first input / output pin of a controller, and the second signal conversion module is used to connect to a second input / output pin of the controller;
[0005] The first signal conversion module is used to convert a first signal output by the controller into a second signal and transmit the second signal to the electronic device; the second signal conversion module is used 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 first signal conversion module includes a switch unit, a first resistor unit, and a first power supply unit. The switch unit is respectively connected to the first resistor unit, the first input / output pin of the controller, the electronic device, and the second signal conversion module. The first resistor unit is connected to the first power supply unit, and the switch unit is also grounded; the second signal includes a first sub-signal and a second sub-signal;
[0007] The switching unit is configured to receive the first signal. When the switching unit is turned on according to the first signal, the first resistor unit is conductively connected to the ground and outputs the first sub-signal to the electronic device; when the switching unit is turned off according to the first signal, the first resistor unit is disconnected from the ground and outputs the second sub-signal to the electronic device.
[0008] In a possible implementation manner of the first aspect, the switching unit includes a first resistor, a second resistor, and a switching transistor. The first end of the first resistor is configured to be connected to the first input / output pin of the controller. The second end of the first resistor is respectively connected to the first end of the second resistor and the control end of the switching transistor. The first conducting end of the switching transistor is respectively connected to the first resistor unit, the second signal conversion module, and the electronic device. The second end of the second resistor and the second conducting end of the switching transistor are both grounded.
[0009] In a possible implementation manner of the first aspect, the switching unit further includes a zener diode. The anode of the zener diode is grounded, and the cathode of the zener diode is connected to the first conducting end of the switching transistor.
[0010] In a possible implementation manner of the first aspect, the first resistor unit includes a third resistor. The first end of the third resistor is respectively connected to the switching unit, the electronic device, and the second signal conversion module. The second end of the third resistor is connected to the first power supply unit.
[0011] In a possible implementation manner of the first aspect, the second signal conversion module includes a unidirectional conduction unit, a second resistor unit, and a second power supply unit. The second resistor unit is respectively connected to the second power supply unit, the unidirectional conduction unit, and the second input / output pin of the controller. The unidirectional conduction unit is respectively connected to the first signal conversion module and the electronic device; the fourth signal includes 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 resistor unit; when the unidirectional conduction unit is unidirectionally conducted according to the third signal, it outputs the fourth sub-signal 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. The anode of the diode is respectively connected to the second resistor unit and the second input / output pin of the controller. The cathode of the diode is respectively connected to the electronic device and the first signal conversion module.
[0014] In a possible implementation of the first aspect, the second resistor unit includes a fourth resistor. The first end of the fourth resistor is connected to the second power supply unit, and the second end of the fourth resistor is respectively connected to the unidirectional conduction unit and the second input / output pin of the controller.
[0015] In a possible implementation of the first aspect, the second signal conversion module further includes a filtering unit. The filtering unit is respectively connected to the unidirectional conduction unit, the electronic device, and the first signal conversion module;
[0016] The filtering unit is configured to receive the third signal and filter the third signal.
[0017] In a second aspect, an embodiment of the present application provides an input / output system, including a controller and the signal conversion circuit according to any one of the first aspect. The first input / output pin of the controller is connected to the first signal conversion module in the signal conversion circuit, the second input / output pin of the controller is connected to the second signal conversion module in the signal conversion circuit, and the common end of the first signal conversion module and the second signal conversion module serves as the input / output pin of the input / output system.
[0018] The beneficial effects of the embodiments of the present application compared with the prior art are as follows:
[0019] An embodiment of the present application provides a signal conversion circuit, including a first signal conversion module and a second signal conversion module. The first signal conversion module is respectively connected to the second signal conversion module and the electronic device. The first signal conversion module is configured to be connected to the first input / output pin of the controller, and the second signal conversion module is configured to be connected to the second input / output pin of the controller.
[0020] The first signal conversion module is configured to convert the 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 related operations according to the second signal. The second signal conversion module is configured to convert the 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 related operations according to the fourth signal.
[0021] The present application realizes the 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 the actual requirements in certain specific fields.
[0022] In summary, the signal conversion circuit provided by the embodiments of the present application solves the problem that the input / output function of the current controller cannot meet the actual requirements.
[0023] It can be understood that the beneficial effects of the above second aspect can be referred to the relevant descriptions in the above first aspect, and will not be elaborated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings.
[0025] Figure 1 is a schematic block diagram of a signal conversion circuit provided by an embodiment of the present application;
[0026] Figure 2 is a schematic block diagram of a signal conversion circuit provided by another embodiment of the present application;
[0027] Figure 3 is a schematic block diagram of a signal conversion circuit provided by another embodiment of the present application;
[0028] Figure 4 is a schematic circuit connection diagram of a signal conversion circuit provided by an embodiment of the present application;
[0029] Figure 5 is a schematic circuit connection diagram of a signal conversion circuit provided by another embodiment of the present application;
[0030] Figure 6 is a schematic circuit connection diagram of a signal conversion circuit provided by another embodiment of the present application;
[0031] Figure 7 A schematic block diagram of an input-output system provided by an embodiment of the present application.
[0032] In the figure: 1, input-output system; 10, signal conversion circuit; 11, first signal conversion module; 111, switch unit; 112, first resistor unit; 113, first power supply unit; 12, second signal conversion module; 121, unidirectional conduction unit; 122, second resistor unit; 123, second power supply unit; 124, filtering unit; 20, controller; 30, electronic device. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0033] In the following description, specific details such as specific system architectures and technologies are presented for purposes of illustration and not limitation, so as to provide a thorough understanding of the embodiments of the present application. However, those skilled in the art should understand that the present application can also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary details.
[0034] It should be understood that when used in the specification of the present application and the appended claims, the term "comprising" indicates the presence of the described features, integers, steps, operations, elements, and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or their groups.
[0035] As used in the specification of the present application and the appended claims, the term "if" may be construed, depending on the context, as "when" or "once" or "in response to determining" or "in response to detecting". Similarly, the phrase "if determined" or "if detected [the described condition or event]" may be construed, depending on the context, as meaning "once determined" or "in response to determining" or "once detected [the described condition or event]" or "in response to detecting [the described condition or event]".
[0036] In addition, in the description of the specification of the present application and the appended claims, the terms "first", "second", "third", etc. are used only for distinguishing descriptions and should not be construed as indicating or implying relative importance.
[0037] The reference to "one embodiment" or "some embodiments" or the like described in the specification of the present application means that a specific feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, the statements "in one embodiment", "in some embodiments", "in other some embodiments", "in still other embodiments", etc. that appear in different places in this specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in another way. The terms "comprising", "including", "having", and their variants all mean "including but not limited to", unless otherwise specifically emphasized in another way.
[0038] Most pins of current controllers, such as MCUs or ARMs, are bidirectional. Their circuit structures are mainly composed of various devices such as latches, flip-flops, gate circuits, MOS transistors, and resistors. The circuit is encapsulated inside the chip and is divided into an input path and an output path from the structure. In addition to implementing bidirectional I / O, other complex functions can also be achieved. Because of the relatively many functions it needs to implement, the circuit and the implementation logic are relatively complex, and the signal levels supported by the input and output are also relatively small, which is not suitable for occasions requiring higher-level signals.
[0039] In view of the above problems, the embodiments of the present application provide a signal conversion circuit. As Figure 1 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 respectively connected to the second signal conversion module 12 and the electronic device 30. 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.
[0040] Specifically, the first signal conversion module 11 is used to convert the first signal output by the controller 20 into a second signal and transmit the second signal to the electronic device 30, so that the electronic device 30 can perform relevant operations according to 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 is used to convert the third signal output by the electronic device 30 into a fourth signal and transmit the fourth signal to the controller 20, so that the controller 20 can perform relevant operations according to 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.
[0041] The present application realizes the bidirectional conversion and adaptation of signals between the controller 20 and the electronic device 30 through the first signal conversion module 11 and the second signal conversion module 12 to meet the actual requirements in certain specific fields. For example, it is applicable to occasions requiring higher-level signals.
[0042] 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 the first input / output pin IO1 and the second input / output pin IO2 of the controller 20 pass through their respective signal conversion modules, they are shorted together, presenting a bidirectional pin to the electronic device 30 that can 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 of the controller 20. When this bidirectional pin is used as an output pin, the first signal conversion module 11 converts the signal output by 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.
[0043] In some embodiments, the signal conversion circuit 10 provided in the embodiments of the present application further has a self-checking function. The self-checking principle is as follows: The second signal conversion module 12 is further configured to receive the second signal output by the first signal conversion module 11, convert the second signal to obtain a 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.
[0044] Exemplarily, 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 a low-level signal. If the fifth signal is a low-level signal, it is determined that the signal conversion circuit 10 is normal. If the fifth signal is not a low-level signal, it is determined that the signal conversion circuit 10 is abnormal.
[0045] 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 a high-level signal. If the fifth signal is a high-level signal, it is determined that the signal conversion circuit 10 is normal. If the fifth signal is not a high-level signal, it is determined that the signal conversion circuit 10 is abnormal.
[0046] In some embodiments, as Figure 2 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 respectively 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. The first resistor unit 112 is connected to the first power supply unit 113, and the switch unit 111 is also grounded. Among them, the second signal includes a first sub-signal and a second sub-signal.
[0047] Specifically, the switch unit 111 is configured to receive the first signal output by the controller 20. When the switch unit 111 is turned on according to the first signal, the first resistor unit 112 is conductively connected to the ground and outputs a first sub-signal to the electronic device 30, where the first sub-signal is a low-level signal. When the switch unit 111 is turned off according to the first signal, the first resistor unit 112 is disconnected from the ground and outputs a second sub-signal to the electronic device 30, where 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 supply voltage provided by the first power supply unit 113. The greater the supply voltage of the first power supply unit 113, the higher the level of the second sub-signal. Therefore, in practical applications, an appropriate supply voltage can be selected according to the actual situation to output an appropriate level signal.
[0048] In some embodiments, as Figure 4 shown, the switch unit 111 includes a first resistor R1, a second resistor R2, and a switch transistor Q. The first end of the first resistor R1 is used to connect to the first input / output pin IO1 of the controller 20. The second end of the first resistor R1 is respectively connected to the first end of the second resistor R2 and the control end of the switch transistor Q. The first conducting end of the switch transistor Q is respectively 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 end of the switch transistor Q are both grounded. Among them, the first resistor R1 is used for current limiting and protection, and the second resistor R2 is used for protection. Exemplarily, the supply voltage VCC1 provided by the first power supply unit 113 is 24V.
[0049] Specifically, when the first signal output by the controller 20 is a high-level signal, the switch transistor Q is turned on, causing the first resistor unit 112 to be conductively connected to the ground and outputting a first sub-signal to the electronic device 30.
[0050] When the first signal output by the controller 20 is a low-level signal, the switch transistor Q is turned off, causing the first resistor unit 112 to be disconnected from the ground and outputting a second sub-signal to the electronic device 30. Since the supply voltage provided by the first power supply unit 113 is 24V, the level of the second sub-signal is also 24V. It can be seen that the first signal conversion module 11 realizes the conversion of the signal output by the controller 20 through the switch transistor Q and can output a high-level signal of 24V.
[0051] Exemplarily, the switch transistor Q can be an NPN triode or an NMOS transistor. It should be noted that the selection of the switch transistor Q should meet the circuit withstand voltage parameters.
[0052] In some embodiments, as Figure 5As shown, the switch unit 111 further 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 conduction end of the switching transistor Q. The zener diode ZD is used for overvoltage protection.
[0053] In some embodiments, as Figure 4 shown, the first resistor unit 112 includes a third resistor R3. The first end of the third resistor R3 is respectively connected to the switch unit 111, the electronic device 30, and the second signal conversion module 12, and the second end of the third resistor R3 is connected to the first power supply unit 113.
[0054] Specifically, when the first signal output by the controller 20 is a high-level signal, the switching transistor Q conducts, causing the third resistor R3 to conduct with the ground and output a first sub-signal to the electronic device 30.
[0055] When the first signal output by the controller 20 is a low-level signal, the switching transistor Q turns off, causing the third resistor R3 to be disconnected from the ground and output a second sub-signal to the electronic device 30. Since the supply voltage provided by the first power supply unit 113 is 24V, the level of the second sub-signal is also 24V.
[0056] As can be seen from the above, the first signal conversion module 11 in the present application realizes the conversion of the signal output by the controller 20 through the switching transistor Q, and can output a high-level signal of 24V to be applicable to occasions requiring a higher-level signal.
[0057] In some embodiments, as Figure 2 shown, the second signal conversion module 12 includes a one-way conduction unit 121, a second resistor unit 122, and a second power supply unit 123. The second resistor unit 122 is respectively connected to the second power supply unit 123, the one-way conduction unit 121, and the second input / output pin IO2 of the controller 20. The one-way conduction unit 121 is respectively connected to the first signal conversion module 11 and the electronic device 30. According to Figure 2 it can be known that the one-way conduction unit 121 is respectively connected to the switch unit 111, the first resistor unit 112, and the electronic device 30. Among them, the fourth signal includes a third sub-signal and a fourth sub-signal.
[0058] Specifically, the unidirectional conduction unit 121 is configured to receive the third signal output by the electronic device 30. When the unidirectional conduction unit 121 is reversely cut off according to the third signal (the third signal 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. Among them, the third sub-signal is a high-level signal. The level of the third sub-signal is related to the power supply voltage of the second power supply unit 123. Since the level supported by the second input / output pin IO2 of the controller 20 is 3.3V, the power supply voltage provided by the second power supply unit 123 is 3.3V, that is, the level of the third sub-signal is 3.3V. When the unidirectional conduction unit 121 conducts unidirectionally according to the third signal (the third signal is a low-level signal), a fourth sub-signal is output to the second input / output pin IO2 of the controller 20. Among them, the fourth sub-signal is a low-level signal.
[0059] In some embodiments, as Figure 4 shown, the unidirectional conduction unit 121 includes a diode D. The anode of the diode D is respectively connected to the second resistor unit 122 and the second input / output pin IO2 of the controller 20, and the cathode of the diode D is respectively connected to the electronic device 30 and the first signal conversion module 11. According to Figure 4 it can be known that the cathode of the diode D is respectively connected to the electronic device 30, the first conduction end of the switching transistor Q, and the first end of the third resistor R3.
[0060] Specifically, when the diode D is reversely cut off according to the third signal (the third signal 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. Among them, the third sub-signal is a 3.3V level signal. When the diode D conducts unidirectionally according to the third signal (the third signal is a low-level signal), a fourth sub-signal is output to the second input / output pin IO2 of the controller 20. Among them, the fourth sub-signal is a low-level signal.
[0061] It should be noted that the diode D needs to be a Schottky diode that meets the reverse breakdown voltage parameter.
[0062] In some embodiments, as Figure 4 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 respectively connected to the unidirectional conduction unit 121 and the second input / output pin IO2 of the controller 20. According to Figure 4 it can be known that the second end of the fourth resistor R4 is respectively connected to the anode of the diode D and the second input / output pin IO2 of the controller 20.
[0063] Specifically, when the diode D is reversely cut off according to the third signal (the third signal 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. Among them, the third sub-signal is also a level signal of 3.3V. When the diode D conducts unidirectionally according to the third signal (the third signal is a low-level signal), a fourth sub-signal is output to the second input / output pin IO2 of the controller 20. Among them, the fourth sub-signal is a low-level signal.
[0064] In some embodiments, as Figure 3 shown, the second signal conversion module 12 further includes a filtering unit 124, and the filtering unit 124 is respectively 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 known that the filtering unit 124 is respectively connected to the unidirectional conduction unit 121, the electronic device 30, the switch unit 111, and the first resistor unit 112.
[0065] Specifically, the filtering unit 124 is used to receive the third signal output by the electronic device 30 and filter the third signal.
[0066] In some embodiments, as Figure 6 shown, the filtering unit 124 includes a first capacitor C1 and a bead BEAD. The first end of the first capacitor C1 is respectively connected to the cathode of the diode D and the first end of the bead BEAD. The second end of the first capacitor C1 is grounded. The second end of the bead BEAD is respectively connected to the first conduction end of the switch transistor Q, the first end of the third resistor R3, and the electronic device 30. Among them, the first capacitor C1 and the bead BEAD are used to filter the signal output by the electronic device 30.
[0067] As can be seen from the above, the second signal conversion module 12 of the present application utilizes the principle of unidirectional conduction of the diode D to realize the conversion of the high-level signal (such as a level signal of 24V) output by the electronic device 30 into a level signal supported by the second input / output pin IO2 of the controller 20 (that is, a level signal of 3.3V).
[0068] In summary, the signal conversion circuit 10 provided by the embodiments of the present application is mainly composed of devices such as resistors, capacitors, diodes, and triodes. The structure and logic are relatively simple, effectively reducing the material cost and design cost. At the same time, the signal conversion circuit 10 provided by the embodiments of the present application also has a self-checking function and can determine whether the signal conversion circuit 10 is normal in any application scenario.
[0069] The embodiments of the present application also provide an input / output system, as Figure 7As shown, the input / output system 1 includes a controller 20 and the signal conversion circuit 10 described above. 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. Among them, 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.
[0070] Specifically, after the first input / output pin IO1 and the second input / output pin IO2 of the controller 20 pass through the first signal conversion module 11 and the second signal conversion module 12 in the signal conversion circuit 10 respectively, they are short-circuited together, presenting a bidirectional pin IO to the electronic device 30 that can both input and output. When this bidirectional pin IO serves as an input pin, the second signal conversion module 12 in the signal conversion circuit 10 will convert the input signal (i.e., the signal output by the electronic device 30), and transmit the converted signal to the controller 20 through the second input / output pin IO2 of the controller 20. When this bidirectional pin IO serves as an output pin, the first signal conversion module 11 in the signal conversion circuit 10 will convert the signal output by the first input / output pin IO1 of the controller 20, and transmit the converted signal to the electronic device 30 through the bidirectional pin IO, realizing signal input and output at any level.
[0071] Exemplarily, the controller 20 includes an MCU or an ARM.
[0072] In summary, the input / output system 1 provided by the embodiment of the present application occupies two input / output pins of the controller 20. After passing through the signal conversion circuit 10, only a bidirectional pin IO is presented externally, realizing signal input and output at any level.
[0073] The above-described embodiments are only used to illustrate the technical solutions of the present application, and are not intended to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements on some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A signal conversion circuit, characterized in that, It includes a first signal conversion module and a second signal conversion module. The first signal conversion module is respectively connected to the second signal conversion module and an electronic device. The first signal conversion module is used to connect to the first input / output pin of a controller, and the second signal conversion module is used to connect to the second input / output pin of the controller; The first signal conversion module is used to convert a first signal output by the controller into a second signal and transmit the second signal to the electronic device; the second signal conversion module is used to convert a third signal output by the electronic device into a fourth signal and transmit the fourth signal to the controller.
2. The signal conversion circuit according to claim 1, wherein The first signal conversion module includes a switch unit, a first resistor unit, and a first power supply unit. The switch unit is respectively connected to the first resistor unit, the first input / output pin of the controller, the electronic device, and the second signal conversion module. The first resistor unit is connected to the first power supply unit, and the switch unit is also grounded; the second signal includes a first sub-signal and a second sub-signal; The switch unit is used to receive the first signal. When the switch unit is turned on according to the first signal, the first resistor unit is connected to the ground and conducts, and outputs the first sub-signal to the electronic device; When the switch unit is turned off according to the first signal, the first resistor unit is disconnected from the ground and outputs the second sub-signal to the electronic device.
3. The signal conversion circuit according to claim 2, characterized in that The switch unit includes a first resistor, a second resistor, and a switching tube. The first end of the first resistor is used to connect to the first input / output pin of the controller. The second end of the first resistor is respectively connected to the first end of the second resistor and the control end of the switching tube. The first conducting end of the switching tube is respectively connected to the first resistor unit, the second signal conversion module, and the electronic device. The second end of the second resistor and the second conducting end of the switching tube are both grounded.
4. The signal conversion circuit according to claim 3, wherein The switch unit further includes a zener diode. The anode of the zener diode is grounded, and the cathode of the zener diode is connected to the first conducting end of the switching tube.
5. The signal conversion circuit according to claim 2, wherein The first resistor unit includes a third resistor. The first end of the third resistor is respectively connected to the switch unit, the electronic device, and the second signal conversion module. The second end of the third resistor is connected to the first power supply unit.
6. The signal conversion circuit according to claim 1, wherein The second signal conversion module includes a one-way conduction unit, a second resistor unit, and a second power supply unit. The second resistor unit is respectively connected to the second power supply unit, the one-way conduction unit, and the second input / output pin of the controller. The one-way conduction unit is respectively connected to the first signal conversion module and the electronic device; the fourth signal includes a third sub-signal and a fourth sub-signal; 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 resistor unit; when the unidirectional conduction unit is unidirectionally conductive according to the third signal, it outputs the fourth sub-signal to the second input / output pin of the controller.
7. The signal conversion circuit according to claim 6, wherein The unidirectional conduction unit includes a diode. The anode of the diode is respectively connected to the second resistor unit and the second input / output pin of the controller, and the cathode of the diode is respectively connected to the electronic device and the first signal conversion module.
8. The signal conversion circuit according to claim 6, wherein The second resistor unit includes a fourth resistor. The first end of the fourth resistor is connected to the second power supply unit, and the second end of the fourth resistor is respectively connected to the unidirectional conduction unit and the second input / output pin of the controller.
9. The signal conversion circuit according to any one of claims 6-8, characterized in that, The second signal conversion module further includes a filtering unit, and the filtering unit is respectively connected to the unidirectional conduction unit, the electronic device, and the first signal conversion module; The filtering unit is configured to receive the third signal and filter the third signal.
10. An input / output system, characterized in that, It includes a controller and the signal conversion circuit according to any one of claims 1-9. The first input / output pin of the controller is connected to the first signal conversion module in the signal conversion circuit, the second input / output pin of the controller is connected to the second signal conversion module in the signal conversion circuit, and the common end of the first signal conversion module and the second signal conversion module serves as the input / output pin of the input / output system.