Summary of the invention
The invention provides a kind of electric detection system of interface card, can effectively reduce cost.
The electric detection system of a kind of interface card disclosed according to the present invention, provide electric energy by external power source, electrical with the power circuit that is used for interface card includes electric capacity, first resistance, power switch, microprocessor, second resistance and detection chip.
Electric capacity one end is connected in power circuit, and the electrical ground connection of the other end is in order to as filter capacitor.First resistance, one end is connected in power circuit, and the electrical ground connection of the other end is in order to as loaded impedance.Power switch is serially connected with power circuit, in order to the transmission of electric energy on the control power circuit.Microprocessor connects power switch, in order to the keying state of control power switch.Wherein, include in open circuit short-circuit detecting program, load detecting program and the capacitance detecting program at least one of them in the microprocessor.Second resistance string is connected to power circuit, in order to conduct sampling impedance.The detection chip cross-over connection is in second resistance, in order to power circuit is carried out electrical, and the result of electrical returned to microprocessor.
Wherein, open circuit short-circuit detecting routine package contains: the initialization detection chip; The power-on switch is in order to provide electric energy in power circuit; Detect current value on the power circuit by detection chip according to default value; When current value during, return first look-at-me by detection chip and give microprocessor, again by microprocessor powered-down switch and alarm signal is provided greater than default value; When current value is not more than default value, detect current value according to preset range by detection chip; When current value is in preset range, return second look-at-me by detection chip and give microprocessor, confirm that by microprocessor power circuit is in normal condition; And when current value is outside preset range, returns the 3rd look-at-me by detection chip and give microprocessor, confirm that by microprocessor power circuit is in abnomal condition.
Wherein, the load detecting routine package contains: the initialization detection chip; The power-on switch is in order to provide electric energy in power circuit; Detect current value on the power circuit by detection chip according to default value; When current value during, return first look-at-me by detection chip and give microprocessor, again by microprocessor powered-down switch and alarm signal is provided greater than default value; When current value is not more than default value, first resistance, one end is connected in the output terminal of power circuit, the electrical ground connection of the other end is in order to as loaded impedance; Detect current value by detection chip according to preset range; When current value is in preset range, return second look-at-me by detection chip and give microprocessor, confirm that by microprocessor power circuit is in normal condition; When current value is outside preset range, return the 3rd look-at-me by detection chip and give microprocessor, confirm that by microprocessor power circuit is in abnomal condition; The powered-down switch also removes first resistance.
Wherein, the capacitance detecting routine package contains: the initialization detection chip; The powered-down switch is in order to allow capacitor discharge; When capacitor discharge finishes, the power-on switch is with to the electric capacity charging, and timing simultaneously; Detect current value on the power circuit by detection chip according to default value; When current value during, give microprocessor by detection chip passback look-at-me, again by microprocessor powered-down switch and alarm signal is provided greater than the electric current default value; When current value is not more than the electric current default value, detect a magnitude of voltage of electric capacity by detection chip; When magnitude of voltage reaches the voltage default value, stop timing and powered-down switch; By a voltage difference and the duration of charging before and after the electric capacity energising, calculate a capacitance of electric capacity.
The electric detection system of a kind of interface card disclosed according to the present invention, by carrying out open circuit short-circuit detecting program, load detecting program and the capacitance detecting program that is comprised in the microprocessor, control the keying of power switch on the one hand, by the external power source supply of electrical energy, allow detection chip that power circuit is made electrical on the other hand, needing to avoid large-scale detection board to come power circuit is made electrical in the past, reach cost-effective effect.
About feature of the present invention and embodiment, conjunction with figs. is described in detail as follows as most preferred embodiment.
Embodiment
Please refer to Fig. 1.Fig. 1 is the electric detection system synoptic diagram according to a kind of interface card of the present invention.According to the electric detection system of a kind of interface card of the present invention, provide electric energy by external power source 100, with the electrical of the power circuit 300 that is used for interface card 200.The electric detection system of interface card includes electric capacity 10, first resistance 20, power switch 30, microprocessor 40, second resistance 50 and detection chip 60.
Power circuit 300 includes the P.e.c. 301 in the interface card 200.
Electric capacity 10 1 ends are connected in power circuit 300 (that is P.e.c. 301), and the electrical ground connection of the other end is in order to as filter capacitor.
First resistance, 20 1 ends are connected in the output terminal of power circuit 300, and the electrical ground connection of the other end is in order to as loaded impedance.The high-power resistance of first resistance 20 and input voltage respective resistance values.
Power switch 30 is serially connected with power circuit 300, in order to the transmission of electric energy on the control power circuit 300.
Microprocessor 40 connects power switch 30, in order to the keying state of control power switch 30.Wherein, include in open circuit short-circuit detecting program, load detecting program and the capacitance detecting program at least one of them in the microprocessor 40.
Second resistance 50 is serially connected with power circuit 300, in order to conduct sampling impedance.
Detection chip 60 cross-over connections are in second resistance 50, in order to power circuit 300 is carried out electrical, and the result of electrical are returned to microprocessor 40.
External power source 100 can a direct current voltage source, as power supply unit, battery etc.
Interface card 200 can be a printed circuit board (PCB), certainly, can also adopt the substrate of other kind with P.e.c. 301, for example: enterprise-level string type transmission interface technology backboard (Serial AttachedSCSI backplane, SAS backplane), front panel (front panel) etc.Interface card 200 can be hardboard or bendable soft board, and wherein the material of hardboard is other materials such as glass fibre or bakelite; The material of bendable soft board is that polyimide (PI) or polyethylene terephthalate (PET) wait other material.
Electric capacity 10 can be electrolyte capacitance, electrolyte chip capacity, plastic sheeting electric capacity, ceramic electrical ceramic chip electric capacity etc. perhaps.The capacitance scope of electric capacity 10 can certainly be other scope down to 6000 μ F.
The kind of first resistance 20 and second resistance 50 can be photoresistance, general resistance, cement resistor or fuse resistance etc.
Power switch 30 can be all parallel operations (switch), or other circuit or circuit changing switch.
Detection chip 60 can for the power monitoring chip of situations such as a kind of load capacity, open circuit, short circuit of coming the power lead on the testing printed circuit board by monitoring power supply output voltage, current value (for example: INA209 etc.).
Please refer to Fig. 2.Fig. 2 is open circuit short-circuit detecting program flow diagram.Open circuit short-circuit detecting routine package in the microprocessor 40 contains: initialization detection chip (step 71); The power-on switch is in order to provide electric energy in power circuit (step 72); Whether detect current value on the power circuit greater than a default value (step 73) by detection chip; When current value during greater than default value, return first look-at-me by detection chip and give microprocessor, again by microprocessor powered-down switch and alarm signal is provided, confirm that by microprocessor power circuit is in abnomal condition (step 74); When current value is not more than default value, detect current value whether in preset range (step 75) by detection chip; When current value is in preset range, return second look-at-me by detection chip and give microprocessor, confirm that by microprocessor power circuit is in normal condition (step 76); And when current value is outside preset range, returns the 3rd look-at-me by detection chip and give microprocessor, confirm that by microprocessor power circuit is in abnomal condition (step 77).
Open circuit short-circuit detecting program in the microprocessor 40 is done initialized action to detection chip 60 in advance, in order to reply the every setting in the detection chip 60.By microprocessor 40 power-on switches 30, come the electric detection system power supply of docking port card by external power source 100 then.Detect current value power circuit 300 on by detection chip 60 this moment.Wherein, be set with a default value in the detection chip 60, set default value and work in the danger of high electric current in order to avoid power circuit 300.Therefore when the current value that is measured during greater than default value, by detection chip 60 passbacks first look-at-me (for example: the instruction that emergency power off is online etc.) give microprocessor 40, confirm that again by microprocessor 40 powered-down switches 30 and alarm signal is provided, and by microprocessor 40 power circuits 300 are in abnomal condition.When the current value that is measured is not more than default value, detect current value on the power circuit 300 by detection chip 60, to confirm whether in the electric current preset range of power circuit 300 operate as normal.When the current value that is measured if in preset range the time, (for example: the instruction of normal operating conditions etc.) give microprocessor 40, confirm that by microprocessor 40 power circuits 300 are in normal condition by detection chip 60 passbacks second look-at-me.When the current value that is measured if preset range outside the time, by detection chip 60 passbacks the 3rd look-at-me (for example: the instruction of abnormal operating state etc.) give microprocessor 40, by microprocessor 40 affirmation power circuits 300 in abnomal condition.By microprocessor 40 normal the or abnomal condition of power circuit 300 is presented in screen or display lamp number etc. at last, allows the operator learn the state of power circuit 300.
Please refer to Fig. 3.Fig. 3 is the load detecting program flow diagram.The load detecting routine package contains: initialization detection chip (step 81); The power-on switch is in order to provide electric energy in power circuit (step 82); Whether detect current value on the power circuit greater than a default value (step 83) by detection chip; When current value during, return first look-at-me by detection chip and give microprocessor, again by microprocessor powered-down switch and alarm signal (step 84) is provided greater than default value; When current value is not more than default value, first resistance, one end is connected in the output terminal of power circuit, the electrical ground connection of the other end is in order to as loaded impedance (step 85); Detect current value whether in preset range (step 86) by detection chip; When current value is in preset range, return second look-at-me by detection chip and give microprocessor, confirm that by microprocessor power circuit is in normal condition (step 87); When current value is outside preset range, return the 3rd look-at-me by detection chip and give microprocessor, confirm that by microprocessor power circuit is in abnomal condition (step 88); The powered-down switch also removes first resistance (step 89).
Open circuit short-circuit detecting program in the microprocessor 40 is done initialized action to detection chip 60 in advance, in order to reply the every setting in the detection chip 60.By microprocessor 40 power-on switches 30, come the electric detection system power supply of docking port card by external power source 100 then.In advance detect current value on the power circuit 300 by detection chip 60 this moment.Wherein, be set with a default value in the detection chip 60, this default value avoids power circuit 300 to work in the danger of high electric current.Therefore when the current value that is measured during, (for example: return first look-at-me instruction that emergency power off is online etc.) to microprocessor 40, again by microprocessor 40 powered-down switches 30 and alarm signal is provided by detection chip 60 greater than default value.When the current value that is measured is not more than default value, an end of first resistance 20 is connected in the output terminal of power circuit 300, the electrical ground connection of the other end is in order to as loaded impedance.Detect current value on the power circuit 300 by detection chip 60, to confirm whether in the electric current preset range of power circuit 300 operate as normal.When the current value that is measured if in preset range the time, (for example: the instruction of normal operating conditions etc.) give microprocessor 40, confirm that by microprocessor 40 power circuits 300 are in normal condition by detection chip 60 passbacks second look-at-me.When the current value that is measured if preset range outside the time, by detection chip 60 passbacks the 3rd look-at-me (for example: the instruction of abnormal operating state etc.) give microprocessor 40, by microprocessor 40 affirmation power circuits 300 in abnomal condition.Then by microprocessor 40 powered-down switches 30, and remove first resistance 20.Can the normal or abnomal condition of power circuit 300 be presented in screen or display lamp number etc. by microprocessor 40 at last, allow the operator learn the state of power circuit 300.
Please refer to Fig. 4.Fig. 4 is the capacitance detecting program flow diagram.The capacitance detecting routine package contains: initialization detection chip (step 91); The powered-down switch is in order to allow capacitor discharge (step 92); When capacitor discharge finishes, the power-on switch is with to the electric capacity charging, and timing (step 93) simultaneously; Whether detect current value on the power circuit greater than an electric current default value (step 94) by detection chip; When current value during, give microprocessor by detection chip passback look-at-me, again by microprocessor powered-down switch and alarm signal (step 95) is provided greater than the electric current default value; When current value is not more than the electric current default value, detect a magnitude of voltage (step 96) of electric capacity by detection chip; When magnitude of voltage reaches the voltage default value, stop timing and powered-down switch (step 97); By a voltage difference and the duration of charging before and after the electric capacity energising, calculate a capacitance (step 98) of electric capacity.
Open circuit short-circuit detecting program in the microprocessor 40 is done initialized action to detection chip 60 in advance, in order to reply the every setting in the detection chip 60.By microprocessor 40 powered-down switches 30, electric weight remaining in the electric capacity 10 is discharged again.Detect simultaneously the voltage of electric capacity 10,, turn on the power switch 30,, pick up counting simultaneously by 10 chargings of 100 pairs of electric capacity of external power source when discharge finishes (that is electric capacity 10 voltages near 0 time) by microprocessor 40.Detect current value on the power circuit 300 by detection chip 60 according to the electric current default value this moment.Wherein, be set with an electric current default value in the detection chip 60, this electric current default value avoids power circuit 300 to work in the danger of high electric current.Therefore when the current value that is measured during, (for example: return a look-at-me instruction that emergency power off is online etc.) to microprocessor 40, again by microprocessor 40 powered-down switches 30 and alarm signal is provided by detection chip 60 greater than the electric current default value.When the current value that is measured is not more than default value, detect the magnitude of voltage of electric capacity 10 by detection chip 60.When the voltage after electric capacity 10 chargings is elevated to the voltage default value, stop timing and powered-down switch 30.Microprocessor 40 calculates capacitance by voltage difference and duration of charging before and after electric capacity 10 chargings.By microprocessor 40 capacitance is presented in screen or other display device etc. at last, allows the operator learn whether the capacitance of electric capacity 10 meets setting.
The charging curve of electric capacity please refer to Fig. 5.Fig. 5 is the time and the voltage curve of electric capacity charging.Among the figure, t1 is the time point that begins electric capacity 10 chargings.T2 is the time point that stops electric capacity 10 chargings.V1 when beginning to electric capacity 10 charging, the magnitude of voltage of electric capacity 10.V2 when stopping to electric capacity 10 charging, the magnitude of voltage of electric capacity 10.Relation equation by electric capacity and voltage and electric weight:
Q=CV
ΔQ=CΔV
Δ Q be t1 in the time of t2, the charge volume of electric capacity 10.Δ V is the voltage difference of v1 and v2.Can be by above-mentioned relation equation in the hope of capacitance C.
The electric detection system of a kind of interface card disclosed according to the present invention, by carrying out open circuit short-circuit detecting program, load detecting program and the capacitance detecting program that is comprised in the microprocessor 40, control the keying of power switch 30 on the one hand, by external power source 100 supply of electrical energy, allow 60 pairs of power circuits 300 of detection chip make electrical on the other hand, needing to avoid large-scale detection board to come power circuit 300 is made electrical in the past, reach cost-effective effect.