Structure is in the hot plug circuit for detecting of interface card and central processing unit altogether
Technical field
The utility model relates to a kind of structure altogether in the hot plug circuit for detecting of interface card and central processing unit.
Background technology
The interface card (Interface card) that generally has hot plug (Hot-Swapping) function is to mean at system host not close under the situation of power supply, disk drive or the peripheral device relative with the interface card can be connected, or remove peripheral device from system, to allow slip-stick artist or test operator keep under the open state in PC, use specific common program, can make relevant PCI card to be measured and change card testing authentication action, use to remove from and change card test and need close PC power source and operating system or heavily cover the time that the action of switching on and shutting down is wasted, shorten the test duration to reach, increase effect as production capacity and quick test.
Whether the mode that detects the hot pluggable condition of interface card now is conducting state by the grounding leg of central processing unit (CPU) by its bus-bar (Card Bus) all, judge that it " inserts " or the state of " pulling out ", wherein as with this interface be stuck in the start " heat is inserted " fashionable, still can restart the state that (Reboot) reads this interface card by central processing unit, yet if " hot drawing " is when going out in start, then can produce various error condition (Error State) because of determining whether to pull out, as: as plugging not exclusively because of the interface card failure or because of it, and cause system to produce the situation of working as machine, therefore often need to judge different error conditions respectively at said circumstances by numerous and diverse software program, so except that make maintenance step too loaded down with trivial details, and if will revise software the time, then also can increase its complexity relatively, and waste suitable human cost, and real non-one kindhearted design.
Therefore, how above-mentioned technical difficulties is solved, be this creator's research and development motivation place.
In view of this, this case creator is professional attainment and the technical concept that is possessed with itself, and the breakthrough improvement through repeatedly makes the utility model be born eventually.
Summary of the invention
Technical problem to be solved in the utility model is, above-mentioned deficiency at prior art, and provide a kind of structure altogether in the hot plug circuit for detecting of interface card and central processing unit, it is to make the interface card no matter during in the state planting or pull away, all can produce and restart signal (Reboot), simplify misjudgment (Erorr) status command to reach, be beneficial to software design; And plant state and the trigger signals that pulls away state can be isolated, avoid central processing unit to produce malfunction to reach.
Above-mentioned technical matters of the present utility model is realized by following technical scheme.
A kind of structure altogether is characterized in that comprising in the circuit for detecting of interface card and central processing unit:
The first state detecting unit, its input end are when the short-circuit condition signal of the plant state pin of acquisition interface card, promptly produce a trigger signals in output terminal, and whether use detecting interface card has the action of plant;
The second state detecting unit, its input end are when the open-circuit condition signal of the plant state pin of acquisition interface card, promptly produce a trigger signals in output terminal, and whether use detecting interface card has the action that pulls away; And
One signal processing unit, it is the interruption signal pin that the output termination is placed central processing unit, after input end then captures the trigger signals that detects the aforementioned first state detecting unit and the second state detecting unit respectively, promptly make central processing unit that this interface card is produced and restart by signal processing unit.
Except that above-mentioned essential features, in specific implementation process, also can replenish following technology contents:
This signal processing unit is to comprise a transistor, its emitter-base bandgap grading end is connected positive supply, collector terminal then is attached to the interruption signal pin of central processing unit through one first reverse buffer, and by electric capacity linking positive supply, and be attached to earth terminal via a resistance, and base terminal is when capturing positive voltage more than the preset value by the first state detecting unit or the second state detecting unit, even conducting between its emitter-base bandgap grading end and collector terminal is restarted signal to impel central processing unit that the interface card is sent one.
This first state detecting unit is connected in series by resistance and an electric capacity to form, the termination in addition of electric capacity is placed the plant state pin of interface card, the end in addition of resistance then is connected positive supply, and the end points that engages of resistance and electric capacity is attached to transistorized base terminal in the signal processing unit, and form a detecting loop.
This second state detecting unit is the loop acquisition positive supply by resistance and electric capacity, and by behind the reverse linking of second reverse buffer one diode, is attached to the transistorized base terminal of signal processing unit again by a current-limiting resistance, and forms a detecting loop.
When the plant state pin of interface card presents short-circuit condition,, behind the one-pulse time of waiting, promptly signal processing unit is produced a trigger signals even the input endpoint of the first state detecting unit forms electronegative potential because of capacitance short-circuit ground connection.
When the plant state pin of interface card presents open-circuit condition, after promptly forming noble potential by the input endpoint of the second state detecting unit, convert noble potential to electronegative potential via second reverse buffer again, and positive supply formed a noble potential via the output terminal that two nucleomes forward import second reverse buffer, signal processing unit is produced a trigger signals.
Structure altogether provided by the utility model when comparing mutually with aforesaid known techniques, has more following advantage in the hot plug circuit for detecting of interface card and central processing unit:
1, makes the interface card no matter during, all can produce and restart signal (Reboot), simplify misjudgment (Erorr) state, be beneficial to the purpose of software design to reach in the state planting or pull away.
2, it can be isolated plant state and the trigger signals that pulls away state, avoids central processing unit to produce malfunction to reach.
3, the complexity in the time of can reducing modification software is to reach the effect of effective saving human cost.
Be convenient understand of the present utility model in the visitor, and the effect that can reach, conjunction with figs. is enumerated a specific embodiment now, introduction is described as follows in detail:
Description of drawings
Fig. 1 is a system of the present utility model square arrangement plan.
Fig. 2 is that the utility model is attempted a preferable enforcement circuit diagram.
Fig. 3 is that the utility model is attempted the action synoptic diagram of a preferable enforcement circuit diagram when detecting plant state.
Fig. 4 is that the utility model is attempted the action synoptic diagram of a preferable enforcement circuit diagram when detecting pulls away state.
Embodiment
The utility model provides a kind of structure altogether in the hot plug circuit for detecting (as shown in Figure 1) of interface card and central processing unit, it mainly is by a signal processing unit 1, one first state detecting unit 2 and one second state detecting unit 3 are formed, wherein the signal input end of this first state detecting unit 1 and the second state detecting unit 2 is to connect the inserting state pin 41 that places interface card 4 after isolating, the output termination of this signal processing unit places interruption (interrupt) the signal pin 51 of central processing unit 5, after the state trigger signals of planting or pulling away being arranged respectively at this interface card 4 of detection, promptly make central processing unit that this interface card is produced and restart (Reboot), wherein (please cooperate consult shown in Figure 2) by signal processing unit 1;
This signal processing unit, it mainly is to comprise a reverse buffer U1 and a transistor Q1, wherein this transistor Q1 is connected positive supply Vcc with the emitter-base bandgap grading end, collector terminal then is attached to the interruption signal pin of central processing unit through one first reverse buffer U1, and by a capacitor C 3 linking positive supply Vcc, and be attached to earth terminal via a resistance, make when the base terminal of this transistor Q1 captures positive voltage more than the preset value, even conducting between its emitter-base bandgap grading end and collector terminal, restart (Reboot) to impel central processing unit that the interface card is sent one, and, use that by revers voltage circuit is exerted an influence in collector terminal and earth terminal reverse parallel connection one diode again;
This first state detecting unit, it is connected in series by a resistance R 1 and a capacitor C 1 to form, and the termination in addition of capacitor C 1 is placed the plant state pin of interface card, the end in addition of resistance R 1 then is connected positive supply Vcc, and with engage the base terminal that end points be attached to transistor Q1 in signal processing unit of resistance R 1 with capacitor C 1, and form a detecting loop, whether use detecting interface card has the action of plant;
This second state detecting unit, it is the loop acquisition positive supply Vcc by resistance R 3, R4 and capacitor C 2, and by behind the reverse linking of the second reverse buffer U2 one diode D2, be attached to the base terminal of the transistor Q1 of signal processing unit again by a current-limiting resistance R2, and form a detecting loop, whether use detecting interface card has the action that pulls away;
Wherein plant moment (please cooperate consult shown in Figure 3) in the interface card, then make the plant state pin of interface card present short-circuit condition, so that electric current is by the capacitor C 1 short circuit ground connection in the first state detecting loop, wait (by the inverse of R1 and C1 product formation time constant) behind the one-pulse time, promptly oppositely the base stage of transistor Q1 is produced the noble potential of a positive voltage by capacitor C 1, transfer noble potential to electronegative potential through the first reverse buffer U1 again, so that the interruption signal pin of central processing unit produces negative edge and triggers, restart (Reboot) signal and the interface card is produced one, and make central processing unit read the related driver programs of interface card again; At this moment, then be failure to actuate in resistance R 1 and 1 short circuit of capacitor C because of electric current in this second state detecting loop;
In addition, if when interface is stuck in when pulling away moment (please cooperate consult shown in Figure 4), then make the plant state pin of interface card present open-circuit condition, make positive supply Vcc by resistance R 3, the charging of R4 and capacitor C 2 and form noble potential, convert noble potential to electronegative potential via the second reverse buffer U2 again, and in addition by positive supply Vcc in resistance R 1, R2 forward imports the output terminal of the second reverse buffer U2 via diode D2, and form a noble potential, base terminal conducting with the transistor Q1 that makes signal processing unit, make the interruption signal pin of central processing unit produce negative edge triggering again, restart (Reboot) signal and the interface card is produced one, and make central processing unit read the related driver programs of this interface card again; This moment, this first state detecting unit then ended because of the plant state pin of interface card presents open-circuit condition, and make the interface card no matter son plant or during the state that pulls away, all can produce and restart signal (Reboot), so can effectively avoid the interface card failure or plug incomplete because of it, and cause system to produce the situation of working as machine, and need not to judge different error conditions respectively by numerous and diverse software program, to reach the execution command of simplifying misjudgment (Erorr) state, be beneficial to the purpose of software design, and have convenient and practical property.
In sum, the utility model is being broken through under the prior art configurations, really reached the effect that institute's desire is promoted, and also non-be familiar with this skill person institute easily full of beard and, moreover, not open before the utility model application, the progressive of its tool, practicality, show the application important document that has met novel patent, the whence proposes novel application in accordance with the law.
But the above only is of the present utility model one preferable possible embodiments, non-so promptly arrest limit claim of the present utility model, so equivalent structure that uses the utility model instructions and diagramatic content to do such as, directly or indirectly apply to other correlative technology field person, all in like manner all ought to be contained in the scope of spiritual category of the present utility model, and close and give Chen Ming.