The content of the invention
In view of in place of above-mentioned the deficiencies in the prior art, it is an object of the invention to provide digital input circuit, can limit height
Pressure input, prevent from damaging late-class circuit.
In order to achieve the above object, this invention takes following technical scheme:
A kind of digital input circuit, for protecting late-class circuit not damaged by high pressure, it includes:
For providing the biasing module of bias current;
For isolating the isolation module of digital input circuit described in high input voltage;
Current limliting module for current limliting;
For the switch control module closed when input voltage is higher than predeterminated voltage;
Ensure that digital input circuit exports low level drop-down module when being closed for switch control module;
The first filtration module and the second filtration module for filtering interference signals;
One end of the isolation module connected for the input of digital input circuit, by biasing module COM+ feeder ears,
It is grounded also by the second filtration module, the other end of isolation module passes through the first of the current limliting module connecting valve control module
End and one end of the first filtration module, the other end of first filtration module connect VCC with the second end of switch control module
Feeder ear, the 3rd end of switch control module are the output end of digital input circuit, the connection late-class circuit, also pass through drop-down
Module ground.
In described digital input circuit, the switch control module includes triode and first resistor, first electricity
One end of resistance is first end, the base stage of connecting triode of switch control module, and the other end connection VCC of first resistor powers
End;The transmitting of the triode integrates the second end as switch control module, the connection VCC feeder ears, the collection of the triode
Electrode is the 3rd end of switch control module.
In described digital input circuit, the isolation module includes diode, and the current limliting module includes second resistance,
The base stage of one end connecting triode of the second resistance and one end of the first filtration module, the other end connection two of second resistance
The positive pole of pole pipe, the negative pole of the diode are the input of digital input circuit.
In described digital input circuit, first filtration module includes the first electric capacity, one end of first electric capacity
The base stage of connecting triode and one end of second resistance, the other end connection VCC feeder ears of first electric capacity.
In described digital input circuit, second filtration module includes the second electric capacity, one end of second electric capacity
Connect the negative pole of diode, one end ground connection of the second electric capacity.
In described digital input circuit, the biasing module includes 3rd resistor, one end connection of the 3rd resistor
COM+ feeder ears, the negative pole of the other end connection diode of the 3rd resistor.
In described digital input circuit, the drop-down module includes the 4th resistance, one end connection of the 4th resistance
The colelctor electrode of triode, the other end ground connection of the 4th resistance.
Described digital input circuit, include the indicating module of the working condition for designation number input circuit, institute
The 3rd end for stating switch control module is also grounded by indicating module.
In described digital input circuit, the indicating module includes LED and the 5th resistance, the positive pole connection of the LED
The colelctor electrode of the triode, the negative pole of the LED pass through the 5th resistance eutral grounding.
Compared to prior art, digital input circuit provided by the invention includes:Biasing module, isolation module, current limliting mould
Block, switch control module, drop-down module, the first filtration module and the second filtration module, when input voltage is higher than predeterminated voltage,
The output of digital input circuit is closed by switch control module, and is isolated external high pressure by isolation module, prevents from damaging rear class
Circuit, so as to improve the performance of electronic product, reduce maintenance cost.
Embodiment
The present invention provides digital input circuit, to make the purpose of the present invention, technical scheme and effect clearer, clear and definite,
The present invention is described in more detail for the embodiment that develops simultaneously referring to the drawings.It should be appreciated that specific embodiment described herein
Only to explain the present invention, it is not intended to limit the present invention.
Referring to Fig. 1, digital input circuit provided by the invention includes:Biasing module 10, isolation module 20, current limliting module
30th, switch control module 40, drop-down module 50, the first filtration module 60 and the second filtration module 70, the isolation module 20
One end connects COM+ feeder ears, also by the second filtration module 70 for the input of digital input circuit, by biasing module 10
Ground connection, the other end of isolation module 20 are filtered by the first end of the connecting valve control module 40 of current limliting module 30 and first
One end of module 60, the other end of the first filtration module 60 connect VCC feeder ears with the second end of switch control module 40, switch
3rd end of control module 40 is the output end of digital input circuit, the connection late-class circuit, also connect by pulling down module 50
Ground.
Wherein, the first filtration module 60 and the second filtration module 70 are used for filtering interference signals, specifically for filtering out high frequency
Signal interference.The switch control module 40 is used to close the defeated of digital input circuit when input voltage is higher than predeterminated voltage
Go out, so as to protect late-class circuit(Such as single-chip microcomputer), the isolation module 20 is for isolating digital input circuit described in high input voltage.
The biasing module 10 is used to provide bias current, strengthens the antijamming capability of digital input circuit, and current limliting module 30 is used to open
The input current for closing control module 40 carries out current limliting, prevents switch control module 40 from damaging.Module 50 is pulled down to be used to switch control
Module 40 ensures that digital input circuit exports low level when closing.In the present embodiment, the high pressure is the electricity more than predeterminated voltage
Pressure.
Please continue to refer to Fig. 1, the switch control module 40 includes triode Q1 and first resistor R1, the first resistor
R1 one end is first end, the connecting triode Q1 base stage of switch control module 40, and the first resistor R1 other end connects VCC
Feeder ear;The transmitting of the triode Q1 integrates the second end as switch control module 40, connects the VCC feeder ears, and described three
3rd end of pole pipe Q1 current collection extremely switch control module 40.The triode Q1 is PNP triode, the first resistor R1
For triode Q1 base pull-up resistor.
Wherein, the model S8550 of the triode, the resistance of first resistor is 1-100 kilohms.Certainly, other
In embodiment, the NPN triode of other models, or other types of switching tube or component can be also used to replace the PNP tri-
Pole pipe, the invention is not limited in this regard.
Triode Q1 can improve antijamming capability, and by taking 5V TTL circuits as an example, electric characteristic is:Input voltage is in 0.8V
For low level, more than 2.4V is high level, is ended when triode Q1 base stage is low level when conducting, high level.It is assumed that VCC
The voltage of feeder ear is 5V, when input signal is 0V, if generating 2V interference on transmission line, if without using triode,
Then erroneous judgement occurs in logical device, has now used triode Q1, can effectively judge, as long as external input voltage is less than 4V(Allusion quotation
Type)Low level will be judged as.
The isolation module 20 includes diode D1, and the current limliting module 30 includes second resistance R2, the diode
Model IN4148 or other models, the resistance of second resistance is 1-100 kilohms.One end connection of the second resistance R2
One end of triode Q1 base stage and the first filtration module 60, second resistance R2 other end connection diode D1 positive pole, institute
The negative pole for stating diode D1 is the input of digital input circuit.The diode D1 is one way conducting device, works as input voltage
During higher than predeterminated voltage, diode D1 cut-offs.The second resistance R2 is triode Q1 input resistances, for limiting triode Q1
Base current.
Please continue to refer to Fig. 1, one end that first filtration module 60 includes the first electric capacity C1, the first electric capacity C1 connects
Connect VCC feeder ears, the other end connecting triode Q1 base stage of the first electric capacity C1 and second resistance R2 one end.
Accordingly, second filtration module 70 includes the second electric capacity C2, the second electric capacity C2 one end two poles of connection
Pipe D1 negative pole, the second electric capacity C2 one end ground connection.
Wherein, the capacitance of the first electric capacity C1 is 0.01-10uF, and the second electric capacity C2 capacitance is 100-2000pF.It is defeated
Enter signal and first filter out high frequency letter after the second electric capacity C2 progress input filters remove high-frequency signal, then by the first electric capacity C1
Number.
Please continue to refer to Fig. 1, one end that the biasing module 10 includes 3rd resistor R3, the 3rd resistor R3 connects
COM+ feeder ears, the other end connection diode D1 of 3rd resistor E3 negative pole.The drop-down module 50 includes the 4th electricity
Hinder R4, one end connecting triode Q1 of the 4th resistance R4 colelctor electrode, the 4th resistance R4 other end ground connection.
Wherein, COM+ feeder ears are external voltage power supply, such as 24V, 48V.The resistance of the 3rd resistor R3 is 0.3-1
Kilohm, for providing bias current, the antijamming capability of accentuator.The resistance of the 4th resistance R4 is 1-100 kilo-ohms
Nurse, for ensure triode Q1 cut-off when, triode Q1 output low level.
Further, digital input circuit also includes the indicating module of the working condition for designation number input circuit
80, the 3rd end of the switch control module 40 is also grounded by indicating module 80.Wherein, the indicating module 80 includes LED
D2 and the 5th resistance R5, the LED D2 positive pole connect the colelctor electrode of the triode Q1, and the negative pole of the LED D2 passes through
5th resistance R5 is grounded.When digital input circuit is less than predeterminated voltage, the indicating module 80 starts, i.e. triode Q1 conductings
When, the LED D2 are lighted, and when triode Q1 ends, LED D2 extinguish.
In order to be better understood from the present invention, digital input circuit provided by the invention is carried out specifically below in conjunction with Fig. 1
It is bright:
When the voltage of input signal is less than predeterminated voltage, triode Q1 conductings, input signal inputs at the IN in Fig. 1
Described digital input circuit, most of high-frequency interferencing signal is removed through the second electric capacity C2 filtering, then through diode D1 and second
After resistance R2 current limlitings, being filtered through the first electric capacity C1 and remove high-frequency signal, stable signal is exported by triode Q1 colelctor electrode,
Now LED D2 just extremely high level and light.
When the voltage of input signal is higher than predeterminated voltage, triode Q1 cut-offs, now diode D1 is also switched off, diode
D1 reliably prevents external input signal from inputting digital input circuit, when the first resistor R1 ensures diode D1 cut-offs, three poles
Pipe Q1 is reliably closed, and also the first electric capacity C1 is discharged, the rapid voltage for reducing the first electric capacity C1 both ends.
Above-mentioned analysis understands that the voltage of input signal allows maximum to forward direction to allow maximum to be negative, export as 0 ~
VCC, realization makes external high voltage signal not enter logic region, so as to be embodied as the protection of circuit.
Therefore, when input signal is higher than VCC, this circuit output signal is 0V, when input signal is less than VCC-Vb, exports and is
VCC.Wherein, Vb is the voltage drop of diode and triode, about 0.3V ~ 1V.The present invention realizes input letter by triode Q1
Number there is the discrimination level of determination, make the reliable low and high level of digital input circuit.The digital input circuit of the present invention can be applied extremely
0 ~ 24V is inputted, in the digital circuit for exporting 0 ~ 5V, and can be by suitably selecting diode D1,3rd resistor R3 and the second electricity
Hold C2 specification, input voltage can be allow to reach -100V ~+100V.
It is understood that for those of ordinary skills, can be with technique according to the invention scheme and its hair
Bright design is subject to equivalent substitution or change, and all these changes or replacement should all belong to the guarantor of appended claims of the invention
Protect scope.