Summary of the invention
In view of above content, be necessary to provide a kind of circuit for controlling speed of fan, can adjust by the value of feedback of fanThe fan rotation speed control apparatus of rotation speed of the fan.
A kind of fan rotation speed control apparatus, for controlling the rotating speed of a fan, this fan is used to an electronic installationHeat radiation; This fan rotation speed control apparatus comprises a Temperature sampler and a control chip, and this Temperature sampler is for gatheringThe Current Temperatures of this electronic installation also produces a temperature signal, the temperature of this control chip for producing according to this Temperature samplerDegree signal produces the pulse signal with corresponding dutycycle and exports this fan to by the output of this control chip and drive thisFan is the electronic installation heat radiation in this temperature, and this fan rotation speed control apparatus also comprises: a detecting phase circuit, this phase placeCircuit for detecting comprises one first sense terminal, one second sense terminal, one first feedback end and one second feedback end, this detecting phase electricityRoad is connected with the output of this control chip by this first sense terminal, connects by the output of this second sense terminal and this fanConnect, thereby the pulse signal of the pulse signal to the output of control chip output and the output of this fan carries out detecting phase, producesGive birth to one first phase signal and one second phase signal, and export this first phase signal and pass through this by this first feedback endThe second feedback end is exported this second phase signal; One first counter, first of this first counter and this detecting phase circuitFeedback end connects, and for the high potential of this first phase signal is counted, produces the first count value; One second countingDevice, this second counter is connected with the second feedback end of this detecting phase circuit, for the high potential to this second phase signalCount, produce the second count value; And a feedback comparator, this feedback comparator and this first counter and this secondThe output of number devices connects, and for relatively this first count value and this second count value, and produces a comparative result to this controlChip; Wherein, this control chip, according to the dutycycle of the pulse signal of this comparative result adjustment output, is adjusted turning of this fanSpeed.
The present invention is the pulse signal to a control chip output output and fan output by a detecting phase circuitPulse signal carry out detecting phase, produce and export one first phase signal and one second phase signal; By one firstCounter and one second counter, count the high potential of this first phase signal and this second phase signal respectively, comesProduce the first count value and the second count value; And by this feedback comparator, relatively this first count value and this second count value,And produce comparative result to this control chip, make this control chip accounting for according to the pulse signal of this comparative result adjustment outputEmpty ratio, adjusts the rotating speed of this fan, thereby can adjust rotation speed of the fan by the value of feedback of fan.
Detailed description of the invention
Refer to Fig. 1-Fig. 3, a fan rotation speed control apparatus 1 is for controlling the rotating speed of a fan 2, and this fan 2 is for givingOne electronic installation 3 dispels the heat. This fan rotation speed control apparatus 1 comprises a Temperature sampler 10, a control chip 20, a detecting phaseCircuit 30, one first counter 40, one second counter 50 and a feedback comparator 60.
This Temperature sampler 10 is for gathering the Current Temperatures of this electronic installation 3 and producing a temperature signal. This control coreSheet 20 is connected with this Temperature sampler 10, has corresponding duty for the temperature signal output producing according to this Temperature sampler 10The pulse signal of ratio to fan 2 drives this fan 2 to dispel the heat for the electronic installation 3 in this temperature. Wherein, this electronic installation 3Temperature difference, the dutycycle of the pulse signal that this control chip 20 is exported is also different, thus the rotating speed that fan 2 rotates is not yetWith. This detecting phase circuit 30 comprises one first sense terminal 301, one second sense terminal 302, one first feedback end 303 and oneTwo feedback ends 304, this detecting phase circuit 30 is connected with the output of this control chip 20 by this first sense terminal 301, logicalCross this second sense terminal 302 and be connected with the output of this fan 2, thus the pulse signal f that this control chip 20 is exporteddutyWithThe pulse signal f that this fan 2 is exportedtachCarry out detecting phase, produce one first phase signal QDWith one second phase signalQT, and respectively by this first feedback end 303 this first phase signal of output QDWith by 304 outputs of this second feedback end thisTwo phase signal QT. This first counter 40 is connected with the first feedback end 303 of this detecting phase circuit 30, for to this firstPhase signal QDHigh potential count, produce one first count value TD. This second counter 50 and this detecting phase circuitThe second feedback end 304 of 30 connects, for to this second phase signal QTHigh potential count, produce one second countingValue TT. This feedback comparator 60 is connected with the output of this first counter 40 and this second counter 50, for relatively thisOne count value TDWith this second count value TT, and produce a comparative result Y0Y1 to this control chip 20. Wherein, this control chip20 also adjust the dutycycle of the pulse signal of output according to this comparative result Y0Y1, adjust the rotating speed of this fan 2. Wherein, whenControl chip 20 receives relatively this first count value T of feedback comparator 60DBe less than this second count value TTThe comparative result producingWhen Y0Y1, this control chip 20 reduces the dutycycle of this pulse signal that exports fan 2 to, thereby turns down the rotating speed of this fan 2,When control chip 20 receives relatively this first count value T of feedback comparator 60DBe greater than this second count value TTThe relatively knot producingFruit when Y0Y1, increases this and exports the dutycycle of the pulse signal of fan 2 to, thereby heightens the rotating speed of this fan 2.
Please continue to refer to Fig. 2, this detecting phase circuit 30 comprise one with door 31, one first XOR gate 32 and one second XORDoor 33. Should be with two inputs of door 31 (in figure not label) defeated with the output of this control chip 20 and this fan 2 respectivelyGoing out end connects. The input that wherein, should be connected with the output of this control chip 20 with door 31 forms this detecting phase circuit 30The first sense terminal 301, input that should be connected with the output of this fan 2 with door 31 forms the of this detecting phase circuit 30Two sense terminals 302. This first XOR gate 32 simultaneously with this and 31 input that are connected with the output of this control chip 20, andShould be connected with the output of door 31, for exporting this first phase signal QD. This second XOR gate 33 is simultaneously same with door 31 with thisThe input that the output of this fan 2 connects, and should be connected with the output of door 31, for exporting this second phase signal QT.
Please continue to refer to Fig. 3, Yi Zhi, the pulse signal f exporting when this control chip 20dutyThe arteries and veins of exporting with this fan 2Rush signal ftachWhile being all high level or low level, the first phase signal Q that this detecting phase circuit 30 is exportedDAnd this secondPhase signal QTBe all low level. The pulse signal f exporting when this control chip 20dutyFor high level, and this fan 2 is exportedPulse signal ftachDuring for low level, the first phase signal Q that this detecting phase circuit 30 is exportedDFor high level, this second phase placeSignal QTFor low level. The pulse signal f exporting when this control chip 20dutyFor low level, and the pulse that this fan 2 is exported letterNumber ftachDuring for high level, the first phase signal Q that this detecting phase circuit 30 is exportedDFor low level, this second phase signal QTFor high level.
Please refer to Fig. 4, this first counter 40 comprises one first clock end 41, one first Enable Pin 42, one first zero clearingEnd 43 and one first output 44. This first clock end 41 is connected with a system clock, for receiving this system clock outputClock signal of system clk. This first Enable Pin 42 is connected with the output of the first XOR gate 32 of this detecting phase circuit 30. ShouldThe first clear terminal 43 is connected with control chip 20, a control signal fpc who produces for receiving control chip 20, wherein, this controlCoremaking sheet is at the pulse signal f of this control chip outputdutyWhile variation, produce the control of a high level from low level to high levelSignal, in other cases, this control chip is exported a low level control signal. This first output 44 and this feedback ratio areDevice 60 connects, for exporting current counted this first count value TD。
Please continue to refer to Fig. 3, in the time that this control signal fpc becomes high level from low level, that is, and in control signal experience oneRise along time, this first counter 40 is by this first count value TDZero clearing. When this control signal fpc does not change or becomes from high levelFor low level, when this clock signal of system clk experiences a rising edge, and this first phase signal QDDuring for high level, this is first years oldCounter 40 will be counted increases by one. In other cases, the counting of this first counter 40 is constant.
Please refer to Fig. 5, this second counter 50 comprises a second clock end 51, one second Enable Pin 52, one second zero clearingEnd 53 and one second output 54. This second clock end 51 is connected with this system clock, for receiving this system clock outputClock signal of system clk, this second Enable Pin 52 is connected with the output of this second XOR gate 33, and this second clear terminal 53 is sameBe connected this control signal fpc exporting for receiving this control chip 20, this second output 54 and this with this control chip 20Feedback comparator 60 connects, for exporting current counted this second count value TT。
Please continue to refer to Fig. 3, in the time that this control signal fpc becomes high level from low level, that is, and in control signal experience oneRise along time, this second counter 50 is by this second count value TTZero clearing. When this control signal fpc does not change or becomes from high levelFor low level, when this clock signal of system clk experiences a rising edge, and this second phase signal QTDuring for high level, this is second years oldCounter 50 will be counted increases by one. In other cases, the counting of this second counter 50 is constant.
Please refer to Fig. 6, in the first embodiment of the present invention, this feedback comparator 60 comprises a comparator 61, this ratioComprise a first input end 611, one second input 612, one the 3rd output 613 and one the 4th output 614 compared with device 61. ShouldThe first input end 611 of comparator 61 is connected with the first output 44 of this first counter 40, this comparator 61 second defeatedEntering end 612 is connected with the second output 54 of this second counter 50. The 3rd output 613 of this comparator 61 is for exporting oneThe first fiducial value Y0, the 4th output 614 of this comparator 61 is for exporting one second fiducial value Y1. This first fiducial value Y0 andThis second fiducial value Y1 forms this comparative result Y0Y1.
As this first count value TDBe greater than this second count value TTTime, the 3rd output 613 of this comparator 61 exportOne fiducial value Y0 is high level, and the second fiducial value Y1 that the 4th output 614 of this comparator 61 is exported is low level. When thisOne count value TDEqual this second count value TTTime, the first fiducial value Y0 that the 3rd output 613 of this comparator 61 is exported is lowLevel, the second fiducial value Y1 that the 4th output 614 of this comparator 61 is exported is low level. As this first count value TDBe less thanThis second count value TTTime, the first fiducial value Y0 that the 3rd output 613 of this comparator 61 is exported is low level, this comparatorThe second fiducial value Y1 that 61 the 4th output 614 is exported is high level.
Please continue to refer to Fig. 6, in the second embodiment of the present invention, this feedback comparator 60 comprise a comparator 61 andOne d type flip flop 62. This comparator 61 comprises a first input end 611, one second input 612, one the 3rd output 613 andThe 4th output 614. The first input end 611 of this comparator 61 is connected with the first output 44 of this first counter 40, shouldThe second input 612 of comparator 61 is connected with the second output 54 of this second counter 50. This comparator 61 the 3rd defeatedGo out end 613 for exporting one first fiducial value, the 4th output 614 of this comparator 61 is for exporting one second fiducial value. This DTrigger 62 comprises one the 3rd input 621, a four-input terminal 622, an Enable Pin 623, a clock end 624, one the 5th defeatedGo out end 625 and one the 6th output 626. The 3rd input 621 of this d type flip flop 62 and the 3rd output of this comparator 61613 connect, and the four-input terminal 622 of this d type flip flop 62 is connected with the 4th output 614 of this comparator 61, this Enable Pin 623Be connected with this control chip 20 equally, the control signal fpc exporting for receiving control chip 20, this clock end 624 with this isSystem clock connects, for receiving the clock signal of system clk of this system clock output, the 5th output 625 of this d type flip flop 62Be used for exporting one the 3rd fiducial value Q0, the 6th output 626 of this d type flip flop 62 is for exporting one the 4th fiducial value Q1, and this is years oldThree fiducial value Q0 and the 4th fiducial value Q1 form this comparative result Y0Y1. By increasing this d type flip flop, make this feedback ratioDevice 60 is this first count value T relatively in the time that this control signal fpc becomes high level from low level onlyDAnd this second count value TT,This feedback comparator 60 last first count value T that only relatively this first counter 40 is exported before zero clearingDAnd this secondLast second count value T that counter 50 is exported before zero clearingT。
Please continue to refer to Fig. 3, same, as this first count value TDBe greater than this second count value TTTime, this comparator 61The first fiducial value that the 3rd output 613 is exported is high level, the second comparison that the 4th output 614 of this comparator 61 is exportedValue is low level. As this first count value TDEqual this second count value TTTime, the 3rd output 613 of this comparator 61 is exportedThe first fiducial value be low level, the second fiducial value that the 4th output 614 of this comparator 61 is exported is low level. When thisOne count value TDBe less than this second count value TTTime, the first fiducial value that the 3rd output 613 of this comparator 61 is exported is low electricityFlat, the second fiducial value that the 4th output 614 of this comparator 61 is exported is high level. When Enable Pin 623 is high level, this isWhen system clock signal is high level, the 3rd fiducial value Q0 and this comparator 61 that the 5th output 625 of this d type flip flop 62 is exportedThe first fiducial value of exporting of the 3rd output 613 be consistent, the 6th output 626 of this d type flip flop 62 export the 4thThe second fiducial value that the 4th output 614 of fiducial value Q1 and this comparator 61 is exported is consistent. When Enable Pin 623 is lowWhen level or this system clock are low level, the 3rd fiducial value and last that the 5th output 625 of this d type flip flop 62 is exportedThe 3rd fiducial value Q0 of time output remains unchanged, the 4th fiducial value Q1 that the 6th output 626 of this d type flip flop 62 is exported withThe 4th fiducial value of last time output remains unchanged.
In this control chip 20, store a dutycycle compensation meter 21(as shown in Figure 7). Wherein, this dutycycle compensation meter 21Can be acquiescence, or can be read laggard edlin, and be again burned onto this control chip 20. In this dutycycle compensation meter 21Record the corresponding relation of comparative result and dutycycle offset. This control chip 20 is determined according to this dutycycle compensation meter 21 shouldThe corresponding dutycycle offset of comparative result, and the dutycycle of the pulse signal that this control chip 20 is exported increases this dutyTo obtain a total dutycycle, and recently drive this fan 2 according to this total duty than offset. For example: as this comparative result Y1Y0Be 10 o'clock, i.e. this first count value TDBe greater than this second count value TTTime, this control chip 20 is true according to this dutycycle compensation meter 21Determine the corresponding dutycycle offset of comparative result Y1Y0 for reducing 10, the duty of the pulse signal that this control chip 20 is exportedThan reducing 10 to obtain a total dutycycle, and recently drive this fan 2 according to this total duty.
In the present embodiment, this fan rotation speed control apparatus 1 also comprises an analog-digital converter 70, for by this temperatureThe temperature signal that collector 10 gathers changes into data signal.