Utility model content
In order to solve the above technical problems, carrying short circuit, mistake the purpose of this utility model is to provide a kind of simple and reliable
Stream, the analog output control circuit of excess temperature self diagnosis defencive function, to solve the problems mentioned in the above background technology.
To achieve the above object, the utility model provides the following technical solutions: including MCU processing unit, voltage/current is defeated
Circuit out, voltage current switching circuit protect circuit and anti-back flow circuit, and the MCU processing unit and voltage/current export
Circuit is connected with voltage current switching circuit, and the voltage/current output circuit is connected with voltage current switching circuit, described
Voltage/current output circuit is equipped with anti-back flow circuit, and the output end of the voltage current switching circuit is equipped with protection circuit.
Further, the voltage/current output circuit includes integrated circuit, first resistor, second resistance, third electricity
Resistance, the 4th resistance, the 5th resistance, the 6th resistance, first capacitor, the second capacitor, third capacitor, the 4th capacitor, the 5th capacitor, the
Six capacitors, the 7th capacitor, the 8th capacitor and the 9th capacitor, the first end of the first resistor and 22 feet of integrated circuit connect
Connect, the second end of the first resistor respectively with the second end of second resistance and voltage current switching circuit connection, described second
The first end of resistance is connect with the second end of 21 feet of integrated circuit and the 6th capacitor respectively, and the second of the second resistance
End respectively with the second end of first resistor and voltage current switching circuit connection, the first end of the 6th capacitor and integrated electricity
17 feet on road connect, the second end of the 6th capacitor respectively with 21 feet of integrated circuit and the first end of second resistance
19 feet of connection, the first end of the 3rd resistor and integrated circuit connect, the second end of the 3rd resistor respectively with electricity
The connection of the first end of pressure/current switch circuit and the 7th capacitor, the second end of the 7th capacitor respectively with the 8th capacitor the
Two ends, the second end of the 9th capacitor, the second end of the 5th resistance are connected and are grounded, the first end of the 8th capacitor and integrated
Ten octals of circuit connect, the second end of the 8th capacitor respectively with the second end of the 9th capacitor, the second end of the 7th capacitor,
The second end of 5th resistance is connected and is grounded, the first end of the 9th capacitor respectively with 14 feet of integrated circuit and 15
Foot connection, the second end of the 9th capacitor respectively with the second end of the 7th capacitor, the second end of the 8th capacitor, the 5th resistance
Second end is connected and is grounded, and the first end of the 5th resistance and 13 feet of integrated circuit connect, the 5th resistance
Second end connect and is grounded with the second end of the 7th capacitor, the second end of the 8th capacitor, the second end of the 9th capacitor respectively, institute
The first end for stating the 4th resistance is connect with seven feet of integrated circuit and MCU processing unit respectively, the second end of the 4th resistance
Ground connection, the first end of the 6th resistance are connect with three feet of integrated circuit and MCU processing unit respectively, the 6th resistance
The first end of second termination+3.3V power supply, the first capacitor and the second capacitor respectively with 24 feet of integrated circuit and anti-
The second end ground connection of back flow circuit connection, the first capacitor and the second capacitor, the first of the third capacitor and the second capacitor
End connect and is grounded with a foot of integrated circuit, two feet of the second end and integrated circuit of the third capacitor and the 4th capacitor
Connection, zero foot, four feet, five feet, six feet, 11 feet, 12 feet and 23 feet of the integrated circuit are grounded respectively, the collection
It is that SPI interface is connect with MCU processing unit respectively at the octal of circuit, nine feet and ten feet.
Further, voltage current switching circuit includes analog switch and the 5th capacitor, the first end of the 5th capacitor
It is connect respectively with five feet of analog switch and+3.3V power supply, the second end ground connection of the 5th capacitor, the one of the analog switch
The second end of the second end and second resistance of foot and first resistor connects, and the two feet ground connection of the analog switch, the simulation is opened
Three feet closed are connect with the first end of the second end of 3rd resistor and the 7th capacitor respectively, four feet of the analog switch U2 and guarantor
Protection circuit connection, six feet of the analog switch are connect with MCU processing unit.
Further, the protection circuit includes self-recovery fuse and Transient Voltage Suppressor, the self- recoverage insurance
The first end of silk is connect with four feet of the first end of Transient Voltage Suppressor and analog switch respectively, the self-recovery fuse
Second end is connect with MCU processing unit, the first end of the Transient Voltage Suppressor respectively with the second end of self-recovery fuse
And the four feet connection of analog switch, the second end ground connection of the Transient Voltage Suppressor.
Further, the anti-back flow circuit includes Ultrafast recovery power diode, the Ultrafast recovery power diode
First end connect respectively with the second end of first capacitor second end and the second capacitor, the of the Ultrafast recovery power diode
Two terminate into+24V power supply.
The utility model has the beneficial effects that
1, the switching of voltage or electric current is realized by analog switch U2 to realize voltage or the output of current-mode analog quantity.
2, it protects on circuit and is provided with self-recovery fuse F1 and Transient Voltage Suppressor D2, internal circuit can be realized
Overcurrent, short circuit, the self diagnosis protection of excess temperature.
3, the setting of anti-back flow circuit 5 can prevent external interface from being passed through first capacitor and the second capacitor when misconnection power supply
Flow backward into+24V power-supply system.
4, relative to pervious analogue quantity output circuit, this circuit range can software programming, can be arranged by software
Analog voltage or analog current output.
Specific embodiment
In order to make those skilled in the art more fully understand technical solution of the present invention, with reference to the accompanying drawing to the present invention into
Row detailed description, the description of this part be only it is exemplary and explanatory, should not have any limitation to protection scope of the present invention
Effect.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi
It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.
It should be noted that term " center ", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outside" etc.
The orientation or positional relationship of instruction be based on the orientation or positional relationship shown in the drawings or the invention product use when it is usual
The orientation or positional relationship put, is merely for convenience of description of the present invention and simplification of the description, rather than indication or suggestion meaning
Device or element must have a particular orientation, be constructed and operated in a specific orientation, therefore should not be understood as to of the invention
Limitation.In addition, term " first ", " second ", " third " etc. are only used for distinguishing description, it is not understood to indicate or imply opposite
Importance.
In addition, the terms such as term "horizontal", "vertical", " pendency " are not offered as requiring component abswolute level or pendency, and
It is that can be slightly tilted.It is not to indicate the structure if "horizontal" only refers to that its direction is more horizontal with respect to for "vertical"
It has to fully horizontally, but can be slightly tilted.
In the description of the present invention, it is also necessary to which explanation is unless specifically defined or limited otherwise, term " setting ",
" installation ", " connected ", " connection " shall be understood in a broad sense, for example, it may be fixedly connected, may be a detachable connection or one
Connect to body;It can be mechanical connection, be also possible to be electrically connected;It can be directly connected, it can also be indirect by intermediary
It is connected, can be the connection inside two elements.For the ordinary skill in the art, on being understood with concrete condition
State the concrete meaning of term in the present invention.
Fig. 1 to Fig. 2 is please referred to, the utility model provides a kind of technical solution: a kind of analog output control circuit, including
MCU processing unit 1, voltage/current output circuit 2, voltage current switching circuit 3 protect circuit 4 and anti-back flow circuit 5, institute
It states MCU processing unit 1 to be connected with voltage/current output circuit 2 and voltage current switching circuit 3, the voltage/current output
Circuit 2 is connected with voltage current switching circuit 3, and the voltage/current output circuit 2 is equipped with anti-back flow circuit 5, the electricity
The output end of pressure/current switch circuit 3 is equipped with protection circuit 4.
The MCU that any brand can be used in the MCU processing unit 1 is designed, it passes through spi bus, Alarm_Dect
It is communicated with AO_LATCH1 control signal with the integrated circuit U1 in voltage/current output circuit 2, is controlled by Ctr_out
Signal controls voltage current switching circuit 3.
The voltage/current output circuit 2 includes integrated circuit U1, first resistor R1, second resistance R2,3rd resistor
R3, the 4th resistance R4, the 5th resistance R5, the 6th resistance R6, first capacitor C1, the second capacitor C2, third capacitor C3, the 4th capacitor
C4, the 5th capacitor C5, the 6th capacitor C6, the 7th capacitor C7, the 8th capacitor C8 and the 9th capacitor C9, the first capacitor C1, the
Two capacitor C2, third capacitor C3, the 4th capacitor C4, the 5th capacitor C5, the 7th capacitor C7, the 8th capacitor C8 and the 9th capacitor
C9 is filter capacitor.The octal of integrated circuit U1, nine feet and ten feet are SPI interface, are connected with the spi bus of MCU processing unit 1
It connects, first resistor R1 and second resistance R2 form voltage signal feedback loop, and the 5th resistance R5 is guaranteed defeated using 15K precision resistance
The stability at different temperatures of electric current out.
Alarm_dect signal is high level under normal condition, when integrated circuit U1 detects that voltage or current signal are short
Road, when chip over-temperature, Alarm_dect signal is set low, to trigger the interrupt processing mechanism of MCU processing unit 1, is realized pair
The self diagnosis defencive function of analog output control circuit, AO_LATCH1 control signal are connect by the 4th resistance R4 of pull down resistor
Ground guarantees that AO_LATCH1 control signal is low level in 1 initialization procedure of MCU processing unit, when MCU processing unit 1 passes through
When voltage or current output value signal are transmitted to integrated circuit U1 by spi bus, AO_LATCH1 is controlled in the synchronization of MCU processing unit 1
Signal processed sets height, is latched into spi bus data in the register of integrated circuit U1 and output voltage or current-mode in rising edge
Quasi- signal.
The voltage current switching circuit 3 include analog switch U2 and the 5th capacitor C5, the first of the 5th capacitor C5
End is connect with five feet of analog switch U2 and+3.3V power supply respectively, and the second end ground connection of the 5th capacitor C5, the simulation is opened
The foot for closing U2 is connect with the second end of the second end of first resistor R1 and second resistance R2, and two feet of the analog switch U2 connect
Three feet on ground, the analog switch U2 are connect with the first end of the second end of 3rd resistor R3 and the 7th capacitor C7 respectively, described
Four feet of analog switch U2 are connect with protection circuit 4, and six feet of the analog switch U2 are connect with MCU processing unit 1.Work as Ctr_
When out controls six feet output low level of the signal by analog switch U2, a foot of analog switch U2 and the conducting of four feet, thus defeated
Analog voltage signal out, when Ctr_out control signal exports high level by six feet of analog switch U2, analog switch U2's
Three feet and the conducting of four feet realize the control exported to voltage or electric current to export analog current signal.
The protection circuit 4 includes self-recovery fuse F1 and Transient Voltage Suppressor D2, the self-recovery fuse F1
First end connect respectively with four feet of the first end of Transient Voltage Suppressor D2 and analog switch U2, the self-recovery fuse
The second end of F1 is connect with MCU processing unit 1, the first end of the Transient Voltage Suppressor D2 respectively with self-recovery fuse F1
Second end and analog switch U2 four feet connection, the Transient Voltage Suppressor D2 second end ground connection.Protection circuit 4 is adopted
With self-recovery fuse F1 and Transient Voltage Suppressor D2, for realizing to internal circuit transient voltage and overcurrent protection.
The anti-back flow circuit 5 includes Ultrafast recovery power diode D1, and the of the Ultrafast recovery power diode D1
One end is connect with the second end of first capacitor C1 second end and the second capacitor C2 respectively, the Ultrafast recovery power diode D1's
Second end access+24V power supply.Anti-back flow circuit uses Ultrafast recovery power diode D2, prevents external interface AO_OUT from being missed
Flowed backward by first capacitor into+24V power-supply system when connecing power supply.
The utility model circuit peripheral circuit is few, simple and reliable, carries short circuit, overcurrent, excess temperature self diagnosis defencive function can
Hazard rate is effectively reduced, analog voltage or analog current output can be set as by software, circuit redundancy is high, amount
Journey can software be set as 0-11V/0-24mA, range is larger.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or equipment for including a series of elements not only includes those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or equipment institute it is intrinsic
Element.
Used herein a specific example illustrates the principle and implementation of the invention, the explanation of above example
It is merely used to help understand method and its core concept of the invention.The above is only the preferred embodiment of the present invention, should refer to
Out, due to the finiteness of literal expression, and objectively there is unlimited specific structure, for the ordinary skill people of the art
For member, without departing from the principle of the present invention, can also make it is several improve, retouching or variation, can also will be above-mentioned
Technical characteristic is combined in the right way;These improve retouching, variation or combination, or the not improved design by invention and
Technical solution directly applies to other occasions, is regarded as protection scope of the present invention.