CN220985648U - Input/output interface variable circuit and embedded device including the same - Google Patents
Input/output interface variable circuit and embedded device including the same Download PDFInfo
- Publication number
- CN220985648U CN220985648U CN202323058365.3U CN202323058365U CN220985648U CN 220985648 U CN220985648 U CN 220985648U CN 202323058365 U CN202323058365 U CN 202323058365U CN 220985648 U CN220985648 U CN 220985648U
- Authority
- CN
- China
- Prior art keywords
- input
- output
- circuit
- resistor
- triode
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000001514 detection method Methods 0.000 claims abstract description 16
- 239000003990 capacitor Substances 0.000 claims description 8
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 229920006395 saturated elastomer Polymers 0.000 description 2
- 238000013459 approach Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000002035 prolonged effect Effects 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Landscapes
- Electronic Switches (AREA)
Abstract
The utility model provides an input/output interface variable circuit and embedded equipment comprising the same, wherein the input/output interface variable circuit comprises an input/output common end, a switching value input detection end, a switching value output control end, an input circuit and an output circuit, the input end and the output circuit of the input circuit are respectively connected with the input/output common end, the output end of the input circuit is connected with the switching value input detection end, and the input end of the output circuit is connected with the switching value output control end; the embedded equipment comprises the input/output interface variable circuit and an embedded processor; the switching value input detection end and the switching value output control end of the input/output interface variable circuit are respectively connected with the I/O port of the embedded processor. The input-output common end of the input-output interface variable circuit can be used as input and output, so that the input-output interface variable circuit can be used as an input circuit and an output circuit, and the engineering site use is flexible and convenient.
Description
Technical Field
The utility model relates to the technical field of switching value input and output, in particular to an input and output interface variable circuit and embedded equipment comprising the same.
Background
It should be noted that, the switching signal input into the singlechip needs to be a high level or a low level meeting the standard, but actually the switching signal levels generated by different circuits or chips do not necessarily meet the requirement, because: the power supply voltage is different or the circuit chips are connected with each other due to the reasons of the devices, or level adjustment or switching signals are needed before the circuit chips are input into the singlechip.
With the development of technology, the same device needs to be equipped with a large number of switching value input circuits and switching value output circuits, and usually, the switching value input circuits and the switching value output circuits respectively correspond to different interfaces so as to meet the use requirements of input/output ports. It should be noted that, although the circuit design meets the use requirement, the whole equipment becomes large, which is not beneficial to miniaturization development; however, the number of input/output ports of the existing compact design is very limited, so that the input/output ports are required to be more flexible so as to meet the use requirement of engineering sites.
In addition, when such circuits are applied to embedded products, the number of input/output ports of the switching value is generally fixed, however, due to the upgrading improvement of the functions, the number of input ports and output ports required for the embedded products may be varied; for this case, it is often necessary to return the embedded product to the factory and make hardware modifications to the circuitry by engineers, which is time consuming, laborious and inefficient. Moreover, these input/output ports are not usually used in the same time period, and part of the input/output ports are in idle state, which causes waste of interfaces.
The chinese patent with publication No. CN 207424728U discloses a switching value input-output multiplexing interface circuit, in which the collection and output of a single switching value signal share the same terminal, but because the second shunt circuit of the output circuit is connected to the 24V power supply terminal through the high potential clamping circuit of the input circuit, when the circuit is used as the output circuit, the output circuit will affect the state of the input circuit.
Therefore, it is necessary to design a new circuit with a changeable input/output interface.
In order to solve the above problems, an ideal technical solution is always sought.
Disclosure of Invention
The utility model aims at overcoming the defects of the prior art, and provides an input/output interface variable circuit and embedded equipment comprising the circuit, wherein the input/output interface variable circuit can be used as an input circuit and an output circuit, and the engineering site is flexible and convenient to use.
In order to achieve the above object, a first aspect of the present utility model provides an input/output interface variable circuit, which includes an input/output common terminal, a switching value input detection terminal, a switching value output control terminal, and further includes an input circuit and an output circuit, wherein the input terminal of the input circuit and the output terminal of the output circuit are respectively connected to the input/output common terminal, the output terminal of the input circuit is connected to the switching value input detection terminal, and the input terminal of the output circuit is connected to the switching value output control terminal;
The input circuit comprises a diode D1, a diode D2, a resistor R3, a resistor R4 and a capacitor C1, wherein the cathode of the diode D1 is used as the input end of the input circuit, the anode of the diode D1 is respectively connected with the output circuit and the cathode of the diode D2, the anode of the diode D2 is respectively connected with one end of the resistor R2 and one end of the resistor R3, the other end of the resistor R2 is connected with a 5V power end, and the other end of the resistor R3 is used as the output end of the input circuit; the resistor R4 and the capacitor C1 are connected in parallel between the output end of the input circuit and the battery cathode B < - >; the output circuit comprises a triode Q1, a triode Q2, a resistor R5, a resistor R6, a resistor R7 and a resistor R8, wherein one end of the resistor R8 is used as an input end of the output circuit, the other end of the resistor R8 is connected with a base electrode of the triode Q1, and an emitter electrode of the triode Q1 is connected with a battery cathode B-; the collector of the triode Q1 is connected with the base electrode of the triode Q2 through the resistor R6, the collector of the triode Q2 is respectively connected with the anode of the diode D1 and the cathode of the diode D2 in the input circuit, and the emitter of the triode Q2 is connected with the anode B+ of the battery; the resistor R7 is connected between the base electrode and the emitter electrode of the triode Q1, and the resistor R5 is connected between the base electrode and the emitter electrode of the triode Q2.
In order to achieve the above object, a second aspect of the present utility model provides an embedded device, which includes the above input-output interface variable circuit, and further includes an embedded processor; the switching value input detection end and the switching value output control end of the input/output interface variable circuit are respectively connected with the I/O port of the embedded processor.
The beneficial effects of the utility model are as follows:
1) The utility model provides an input-output interface variable circuit, which comprises an input circuit, an output circuit and the like, wherein an emitter electrode of a triode Q2 in the output circuit is connected with a battery anode B+ and a collector electrode of the triode Q2 is respectively connected with an anode of a diode D1 and a cathode of the diode D2 in the input circuit, so that when the input-output interface variable circuit is used as the output circuit, the output circuit does not influence the state of the input circuit;
2) The input-output shared end of the input-output interface variable circuit can be used as input and output, so that the circuit can be used as an input circuit and an output circuit, the engineering site use is flexible and convenient, and the miniaturized development of equipment is facilitated;
3) The utility model also provides an embedded device which comprises the input/output interface variable circuit, so that the number of the input/output ports on the embedded device is more flexible, and the embedded device can be applied to the occasions that the switch output ports of the products are excessive and the switch input ports are insufficient, and can also be applied to the occasions that the switch output ports of the products are insufficient.
Drawings
FIG. 1 is a schematic circuit diagram of an input-output interface variable circuit of the present utility model;
fig. 2 is a schematic block diagram of the structure of the embedded device including the input-output interface variable circuit of the present utility model.
Detailed Description
The technical scheme of the utility model is further described in detail through the following specific embodiments.
Example 1
The embodiment provides a specific implementation manner of an input/output interface variable circuit, wherein the input/output interface variable circuit comprises an input/output common end AUX_DIO1, a switching value input detection end AUX_DI_In1, a switching value output control end AUX_DO_O1, an input circuit and an output circuit, the input end of the input circuit and the output end of the output circuit are respectively connected with the input/output common end AUX_DIO1, the output end of the input circuit is connected with the switching value input detection end AUX_DI_In1, and the input end of the output circuit is connected with the switching value output control end AUX_DO_O1;
as shown in fig. 1, the input circuit includes a diode D1, a diode D2, a resistor R3, a resistor R4, and a capacitor C1, where a cathode of the diode D1 is used as an input end of the input circuit, an anode of the diode D1 is respectively connected to the output circuit and the cathode of the diode D2, an anode of the diode D2 is respectively connected to one end of the resistor R2 and one end of the resistor R3, another end of the resistor R2 is connected to a 5V power supply end, and another end of the resistor R3 is used as an output end of the input circuit; the resistor R4 and the capacitor C1 are connected in parallel between the output end of the input circuit and the battery cathode B < - >;
As shown in fig. 1, the output circuit includes a triode Q1, a triode Q2, a resistor R5, a resistor R6, a resistor R7 and a resistor R8, wherein one end of the resistor R8 is used as an input end of the output circuit, the other end of the resistor R8 is connected with a base electrode of the triode Q1, and an emitter electrode of the triode Q1 is connected with a battery cathode B-; the collector of the triode Q1 is connected with the base electrode of the triode Q2 through the resistor R6, the collector of the triode Q2 is respectively connected with the anode of the diode D1 and the cathode of the diode D2 in the input circuit, and the emitter of the triode Q2 is connected with the anode B+ of the battery; the resistor R7 is connected between the base electrode and the emitter electrode of the triode Q1, and the resistor R5 is connected between the base electrode and the emitter electrode of the triode Q2.
The emitter of the triode Q2 in the output circuit is connected with the battery anode b+, and the collector of the triode Q2 is respectively connected with the anode of the diode D1 and the cathode of the diode D2 in the input circuit, so that the output circuit does not influence the state of the input circuit when the input/output interface variable circuit is used as the output circuit due to the unidirectional conductivity of the diode.
It should be noted that, the collector of the triode Q2 in the output circuit of the embodiment is connected to the input/output common terminal through the diode D1, so that when the output circuit is used as the output circuit, no resistor exists in the output circuit, which not only improves the load capacity of the output circuit, but also eliminates unnecessary temperature rise.
It should be noted that, in this embodiment, the pull-up power supply of the input circuit is changed from DC24V to DC5V, so that the risk of the over-voltage damage of the input/output port of the single-chip microcomputer is eliminated.
It should be further noted that, in this embodiment, the filter capacitor on the port is moved to the circuit, so that the service life of the filter capacitor can be effectively prolonged, and meanwhile, the filter function is also considered, so that the circuit structure is effectively simplified, and the reliability of stable operation of the circuit is improved.
In some embodiments, the transistor Q1 is an NPN transistor and the transistor Q2 is a PNP transistor. Specifically, the model of the triode Q1 is 8050, and the model of the triode Q2 is MJD127.
The input/output common terminal aux_dio1 is an input/output variable port, and the input/output variable port is used as a switching value input port or a switching value output port according to the states of the input/output common terminal aux_dio1, the switching value input detection terminal aux_di_in1 and the switching value output control terminal aux_do_o1;
(1) The input/output variable port is used as a switching value input port:
When the port AUX_DIO1 is suspended or connected with the battery anode B+, the voltage detected by the switching value input detection end AUX_DI_In1 is 3.3 volts, namely a high level;
When the port AUX_DIO1 is connected with the battery cathode B-, the voltage detected by the switch value input detection end AUX_DI_In1 is 0.6V, namely a low level;
(2) The input/output variable port is used as a switching value output port:
When the switching value output control end AUX_DO_O1 outputs high level (namely 3.3V direct current voltage), the triode Q1 is saturated and conducted, and the output of the triode Q1 is approximately 0.3V, so that the triode Q2 is also in a saturated and conducted state, and the port AUX_DIO1 outputs voltage of the positive electrode B+ of the battery;
when the switching value output control terminal aux_do_o1 outputs a low level (i.e., 0V dc voltage), the transistor Q1 is in an off state, and the output of the transistor Q1 approaches the voltage of the battery positive electrode b+, so that the transistor Q2 is also in an off state, and the output of the port aux_dio1 is zero (when the port is connected to a load).
Example 2
On the basis of the embodiment 1, a specific implementation manner of the embedded device is given in this embodiment.
Specifically, the embedded device includes the input/output interface variable circuit in embodiment 1, and further includes an embedded processor; the switching value input detection end and the switching value output control end of the input/output interface variable circuit are respectively connected with the I/O port of the embedded processor.
In some embodiments, the embedded processor is a single-chip microcomputer, as shown in fig. 2.
It should be noted that miniaturization of product design is a trend, and miniaturized products can save more cost and more space for customers to freely exert; in the embodiment, the number of the input/output ports of the embedded equipment adopting the input/output interface variable circuit is more flexible, and a foundation is laid for a customer to design products more conforming to the market.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present utility model and not for limiting the same; while the utility model has been described in detail with reference to the preferred embodiments, those skilled in the art will appreciate that: modifications may be made to the specific embodiments of the present utility model or equivalents may be substituted for part of the technical features thereof; without departing from the spirit of the utility model, it is intended to cover the scope of the utility model as claimed.
Claims (5)
1. An input-output interface variable circuit, characterized in that: the switching value detection device comprises an input-output sharing end, a switching value input detection end, a switching value output control end, an input circuit and an output circuit, wherein the input end of the input circuit and the output end of the output circuit are respectively connected with the input-output sharing end, the output end of the input circuit is connected with the switching value input detection end, and the input end of the output circuit is connected with the switching value output control end;
The input circuit comprises a diode D1, a diode D2, a resistor R3, a resistor R4 and a capacitor C1, wherein the cathode of the diode D1 is used as the input end of the input circuit, the anode of the diode D1 is respectively connected with the output circuit and the cathode of the diode D2, the anode of the diode D2 is respectively connected with one end of the resistor R2 and one end of the resistor R3, the other end of the resistor R2 is connected with a 5V power end, and the other end of the resistor R3 is used as the output end of the input circuit; the resistor R4 and the capacitor C1 are connected in parallel between the output end of the input circuit and the battery cathode B < - >;
The output circuit comprises a triode Q1, a triode Q2, a resistor R5, a resistor R6, a resistor R7 and a resistor R8, wherein one end of the resistor R8 is used as an input end of the output circuit, the other end of the resistor R8 is connected with a base electrode of the triode Q1, and an emitter electrode of the triode Q1 is connected with a battery cathode B-; the collector of the triode Q1 is connected with the base electrode of the triode Q2 through the resistor R6, the collector of the triode Q2 is respectively connected with the anode of the diode D1 and the cathode of the diode D2 in the input circuit, and the emitter of the triode Q2 is connected with the anode B+ of the battery; the resistor R7 is connected between the base electrode and the emitter electrode of the triode Q1, and the resistor R5 is connected between the base electrode and the emitter electrode of the triode Q2.
2. The input-output interface variable circuit of claim 1, wherein: the triode Q1 is an NPN type transistor.
3. The input-output interface variable circuit of claim 1, wherein: the triode Q2 is a PNP type transistor.
4. An embedded device, characterized by: an input-output interface variable circuit comprising any one of claims 1 to 3, further comprising an embedded processor; the switching value input detection end and the switching value output control end of the input/output interface variable circuit are respectively connected with the I/O port of the embedded processor.
5. The embedded device of claim 4, wherein: the embedded processor is a singlechip.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202323058365.3U CN220985648U (en) | 2023-11-13 | 2023-11-13 | Input/output interface variable circuit and embedded device including the same |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202323058365.3U CN220985648U (en) | 2023-11-13 | 2023-11-13 | Input/output interface variable circuit and embedded device including the same |
Publications (1)
Publication Number | Publication Date |
---|---|
CN220985648U true CN220985648U (en) | 2024-05-17 |
Family
ID=91054526
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202323058365.3U Active CN220985648U (en) | 2023-11-13 | 2023-11-13 | Input/output interface variable circuit and embedded device including the same |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN220985648U (en) |
-
2023
- 2023-11-13 CN CN202323058365.3U patent/CN220985648U/en active Active
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112088472B (en) | Double-interface switching circuit and Type-C concentrator | |
CN208353213U (en) | A kind of Switching Power Supply start-up circuit | |
CN101707347B (en) | Undervoltage protection circuit and LED drive circuit | |
CN220985648U (en) | Input/output interface variable circuit and embedded device including the same | |
CN210780130U (en) | Power-off control circuit | |
CN111756091A (en) | Power supply switching circuit and intelligent door lock | |
CN207490898U (en) | The logic level transition device and amplifying circuit of dual power supply amplifier | |
CN217282706U (en) | Dual-output sequential control circuit of switching power supply | |
CN210899112U (en) | Electronic switch circuit with low power consumption | |
CN215734057U (en) | ATX power supply control circuit and ATX power supply device | |
CN213585190U (en) | Power control circuit with standby low power consumption | |
CN213585734U (en) | Circuit for realizing synchronous switch of equipment following host | |
CN110875607A (en) | Charging system | |
CN212462838U (en) | Power supply switching circuit and intelligent door lock system | |
CN204790414U (en) | Singlechip starting circuit | |
CN208046209U (en) | A kind of output overvoltage protection circuit | |
CN216929991U (en) | Power switch self-locking circuit | |
CN218995923U (en) | One-key multifunctional control circuit | |
CN215772650U (en) | Multifunctional power supply switching circuit | |
CN220857661U (en) | Charging control circuit and device | |
CN213906651U (en) | Power switch circuit and device adopting double-P-channel field effect transistor | |
CN219643894U (en) | Load switch circuit, device, chip and intelligent charger | |
CN214479829U (en) | Dual-power supply circuit | |
CN215870903U (en) | Power supply switching circuit and 5G terminal adopting same | |
CN220381556U (en) | Equipment awakening circuit and equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
GR01 | Patent grant | ||
GR01 | Patent grant |