Summary of the invention
The object of the present invention is to provide a kind of circuit and method that drives the photodiode in the portable battery device, at photodiode current hour, save battery power consumption.
For achieving the above object, the circuit that the present invention drives diode comprises photodiode, current regulator, feedback circuit and DC-DC converter.Current regulator is connected with described photodiode, and to control the electric current of described photodiode, wherein, described first current regulator is that N type metal oxide semiconductor field effect is answered transistor.Feedback circuit receives the feedback signal of the electric state of a described current regulator of expression.DC-DC converter is connected with described feedback circuit with an external power source, with the electric state that drives described photodiode and control described current regulator to predetermined value.Substrate bias controller, the current signal and the described N type metal oxide semiconductor field effect that receive current digital analog converter output are answered transistor drain voltage, and should provide voltage by transistorized grid for described N type metal oxide semiconductor field effect according to described current signal and described drain voltage.
The circuit of driving diode of the present invention, described first diode is a photodiode.
The circuit of driving diode of the present invention further comprises the error amplification module, is used for more described feedback signal and described predetermined value to determine to be transferred to the electric energy of described first diode.
The circuit of driving diode of the present invention, described error amplification module comprises: comparator compares back output error amplifying signal to determine to be transferred to the electric energy of described first diode with described feedback signal and described predetermined value; And switching network, during greater than a fixed value, described switching network is forbidden described comparator and is exported this fixed value at described error amplification signal.
The circuit of driving diode of the present invention further comprises: second diode; Second current regulator that is connected with described second diode is to control the electric current of described second diode; And select circuit, be connected with second current regulator with described first current regulator, and produce the feedback signal of the electric state of described first current regulator of expression and second current regulator.
The circuit of driving diode of the present invention, described feedback signal are the smaller values in the voltage of described first current regulator and second current regulator.
The circuit of driving diode of the present invention, described substrate bias controller comprises: a MOSFET, its grid should be connected by transistorized grid with described N type metal oxide semiconductor field effect, and a MOSFET and described N type metal oxide semiconductor field effect answer transistor to be operated in linear zone; And the 2nd MOSFET, its grid is connected to described feedback signal.
The present invention drives the method for diode, comprises that wherein said current regulator is that N type metal oxide semiconductor field effect is answered transistor by the electric current of a diode of a current regulator control; Answer transistor drain voltage to provide described N type metal oxide semiconductor field effect to a substrate bias controller; The current signal that a current digital analog converter output is provided is to described substrate bias controller; Described substrate bias controller should provide voltage by transistorized grid for described N type metal oxide semiconductor field effect according to described drain voltage and described current signal; Produce the feedback signal of the electric state of a described current regulator of expression; And, provide electric energy to described photodiode according to described feedback signal, be adjusted to predetermined value with electric state with described current regulator.
The method of driving diode of the present invention, described diode is a photodiode.
The method of driving diode of the present invention further comprises: more described feedback signal and described predetermined value are to determine to be transferred to the electric energy of described diode.
The method of driving diode of the present invention, the method for described several diodes of driving comprises: control the electric current of several diodes respectively by several current regulators, wherein said current regulator is that N type metal oxide semiconductor field effect is answered transistor; Described several N type metal oxide semiconductor field effects should be provided respectively to several substrate bias controllers by transistorized several drain voltages; The current signal of several current digital analog converter outputs is provided respectively to described substrate bias controller; Described substrate bias controller should provide voltage by transistorized grid for respectively described several N type metal oxide semiconductor field effects according to described drain voltage and described current signal; Produce the feedback signal of the electric state of described several current regulators of expression; And, provide electric energy to described several diodes according to described feedback signal, the electric state of described several current regulators is adjusted to predetermined value.
The method of driving diode of the present invention, described diode is a photodiode.
The method of driving diode of the present invention, the step of described generation feedback signal comprises: the voltage of selecting a minimum from the voltage of described several current regulators; And the described feedback signal of a described minimum voltage of expression of generation.
The method of driving diode of the present invention further comprises: more described feedback signal and described predetermined value are to determine to be transferred to the electric energy of described several diodes.
The present invention also provides a kind of circuit that drives several diodes, the circuit of described several diodes of driving comprises: several current regulators, be connected with several diodes respectively to control the electric current of each diode, wherein said current regulator is that N type metal oxide semiconductor field effect is answered transistor; The selection circuit that is connected with described several current regulators, the voltage of a minimum of selection from the pressure drop voltage of described several current regulators; Feedback circuit produces a feedback signal of representing described minimum voltage; And the DC-DC converter that is connected with described feedback circuit with external power source, with provide electric energy to described several diodes and the pressure drop voltage of controlling described each current regulator to predetermined value; Several substrate bias controllers, current signal and described several N type metal oxide semiconductor field effects of receiving several current digital analog converter outputs are respectively answered transistor drain voltage, and should provide voltage by transistorized grid for respectively described several N type metal oxide semiconductor field effects according to described current signal and described drain voltage.
The circuit of several diodes of driving of the present invention, described selection circuit comprises: several parallel transistors that connect, its base stage is connected with described several current regulators respectively, and collector voltage is identical and represent minimum voltage in the pressure drop voltage of described several current regulators.
The circuit of several diodes of driving of the present invention, further comprise: the error amplification module that is connected with described feedback circuit with described DC-DC converter, this error amplification module compares the described minimum voltage and the predetermined voltage of described feedback voltage, represent the output signal of the difference of described minimum voltage and described predetermined voltage with generation, thereby determine to offer the described electric energy of described several diodes.
Compared with prior art, because the present invention utilizes the feedback signal of the electric state of expression current regulator to control the driving of DC-DC converter to photodiode.Therefore, at diode current hour, the pressure drop of regulating current regulator by this feedback signal makes it reach minimum value.
Embodiment
Other characteristic of the present invention and advantage will be in following detailed descriptions and are more obvious in conjunction with illustrated explanation, and wherein same numbers is represented similar elements.
To be described according to drive circuit and the method for most preferred embodiment of the present invention below photodiode.Though the present invention will be described at most preferred embodiment, will be appreciated that these embodiment are not limitation of the present invention.On the contrary, the present invention is intended to contain various some modifications, change and the equivalents that are included in the defined spirit and scope of claim of the present invention.
In addition, in next to the detailed description of inventing, a plurality of specified conditions of elaboration just are convenient to complete understanding the present invention.Those of ordinary skill in the art will be appreciated that the present invention also can realize under these specified conditions of disengaging.For fear of covering point of the present invention, known method, program, element and circuit are not described in detail in the following description.
Be the photodiode drive circuit 100 of one embodiment of the invention as shown in Figure 1.This drive circuit 100 is used for driving three photodiodes 101,102,103.Described to those skilled in the art three photodiodes 101,102,103 can be respectively three kinds of photodiodes of red, green, blue, are used as white light source.Further, drive circuit 100 can be used for driving one or more photodiodes.Should be appreciated that drive circuit 100 also can be used for driving one or more diodes.
An input voltage source Vin is connected to the DC/DC transducer, as boosting type converter 110.This boosting type converter 110 is connected with described photodiode 101,102,103, is used for driving described photodiode 101,102,103 so that a voltage to be provided.
Three N type metal oxide semiconductor field effects answer transistor (MOSFET) as current regulator, just, and electric current groove 121,122,123.The drain electrode of N type MOSFET 121,122,123 is coupled with photodiode 101,102,103 respectively.The source-coupled of N type MOSFET 121,122,123 is to earth terminal.N type MOSFET121,122,123 grid respectively with 131,132,133 couplings of three substrate bias controllers.The drain voltage signal Vds1 of MOSFET 121,122,123, Vds2, Vds3 input to described three substrate bias controllers 131,132,133 respectively.(Inter-Integrated Circuit, 12C) controller 146 is connected with three current digital analog converters (DAC) 141,142,143 built-in integrated circuit.Described three current DACs 141,142,143 are connected with described three substrate bias controllers 131,132,133 respectively.
To those skilled in the art, drive circuit 100 changes to and uses three P type MOSFET to replace electric current groove the 121,122, the 123rd as current source, and is conspicuous.
Two current controling signals, clock signal Scl and data-signal Sdata input to I2C controller 146, thus I2C controller 146 provides the electric current configuration information, and for example, 3 digital bit information are given current DAC 141,142,143.Based on described electric current configuration information, current DAC 141,142,143 produces three current signal Iset1, Iset2, Iset3, sends described three substrate bias controllers 131,132,133 respectively to.
Substrate bias controller 131,132,133 is the drain current of Control current groove 121,122,123 respectively, just sinks electric current.Feedback signal is input to substrate bias controller 131,132,133 respectively as the drain voltage of electric current groove 121,122,123.According to the current signal of current DAC 141,142,143 outputs and the drain voltage of electric current groove 121,122,123, substrate bias controller 131,132,133 provides voltage for respectively the grid of MOSFET 121,122,123, with the drain current size of accurate adjusting MOSFET 121,122,123, thus the brightness of control photodiode 101,102,103.
The drain voltage of MOSFET 121,122,123 is sent to voltage and selects logical circuit 160.Voltage signalization Vset is the voltage that the low drop-out voltage for the electric current groove is provided with, and is sent to voltage and selects logical circuit 160.Voltage selects logical circuit 160 to be used for selecting the voltage of a minimum from the drain voltage of MOSFET 121,122,123.The voltage of described minimum and described voltage signalization are selected in the logical circuit 160 through behind the same handling procedure at voltage, voltage is selected minimum voltage signal S_out1 of voltage output of logical circuit 160 corresponding described minimums, and one of corresponding described voltage signalization output is provided with voltage signal S_out2.
Minimum voltage signal S_out1 and voltage signal S_out2 is set is sent to error amplification module 150.Error amplification module 150 amplifies minimum voltage signal S_out1 and error voltage between the voltage signal S_out2 is set.Error amplification module 150 has a pin EA_out, and the network 152 that it is connected to external capacitor and resistor composition compensates with the output EA to error amplification module 150, that is to say compensation amplification voltage.Because the variation of voltage charge-discharge velocity, the network 152 that capacitor and resistor are formed also have from opening function.Error amplification module 150 can further provide the restriction input.For example, in one embodiment, the restriction input can be a deboost, 1.88V as shown in fig. 1, thus the output voltage values of restriction error amplification module 150 is a deboost, 1.88V.The output of error amplification module 150 is sent to boost converter 110 as voltage feedback signal, is used for controlling the output voltage of boost converter 110.
The output voltage of boost converter 110 is used for driving photodiode 101,102,103.The voltage drop of the output voltage of photodiode 101,102,103 or electric current groove 121,122,123, the drain voltage of MOSFET 121,122,123 just, be transferred into voltage and select logical circuit 160, be sent to error amplification module 150 then and produce voltage feedback signal.The drain voltage of MOSFET 121,122,123 can be adjusted to the voltage of voltage signalization Vset, as 0.1V.
Be the circuit diagram of the substrate bias controller 200 of one embodiment of the invention as shown in Figure 2.This substrate bias controller 200 can use as substrate bias controller 131,132 or 133 in drive circuit 100.Input to substrate bias controller 200 from the current signal of current DAC and be used for setting current value.
For example, substrate bias controller 200 uses as substrate bias controller 131 in drive circuit 100.In the present embodiment, the drain voltage Vds1 of MOSFET 121 is sent to an input of operational amplifier 204 via resistance 226.The output of operational amplifier 204 is connected with the grid of MOSFET 212, and the drain electrode of MOSFET 210 is connected with another input of operational amplifier 204, thereby makes the drain voltage of MOSFET 210 be adjusted to the drain voltage of MOSFET 121.As previously described, the drain voltage of MOSFET 121 is near being provided with voltage, and as 0.1V, it is quite low, so MOSFET 121 and MOSFET 210 are operated in triode region or linear zone.
In addition, an input of the operational amplifier 202 of substrate bias controller 200 is connected with current signal Iset1, and its another input is connected with current signal Iset1 via two resistance 222,224.Resistance 238 and electric capacity 236 are connected the output of operational amplifier 202 and 204 with compensated operational amplifier 202 and 204.The output of operational amplifier 202 is connected to the grid of N type MOSFET 210.Operational amplifier 202 is adjusted to the drain current of MOSFET 210 electric current is set.
It should be noted that according to one embodiment of present invention the grid of MOSFET 210 is connected with the grid of electric current groove 121, thereby form current mirror.The drain-source current of the drain current of electric current groove 121 and MOSFET 210 is proportional.For example, if MOSFET 121 is 500 times of MOSFET 210, then the drain current of MOSFET 121 is the drain current of MOSFET 210, and 500 times of electric current just are set.
Be the circuit diagram of the current DAC 300 of one embodiment of the invention as shown in Figure 3.This current DAC 300 can use as current DAC 141,142 or 143 in drive circuit 100.The decoder 310 received current configuration informations of current DAC 300.In one embodiment, the electric current configuration information is made up of 3 digital bit information.Current DAC 300 also comprises 8 switches 314 and 8 current sources 312 that are connected with these 8 switches 314 respectively.Decoder 310 is separated conducting or disconnection and the generation current signal Iset1 of code current configuration information to control described 8 switches 314 independently.In one embodiment, current signal is the electric current sum of the current source 312 that is connected with the switch 314 that is in conducting state.
Be the circuit diagram of the voltage selection logical circuit 400 of one embodiment of the invention as shown in Figure 4.This voltage selects logical circuit 400 to select logical circuit 160 to use as voltage in drive circuit 100.Voltage selects logical circuit 400 to comprise that 421,422,423 and one in 412,414,416,3 transistors of 410,3 P types of current source MOSFET are provided with voltage transistor 428.The base stage that voltage transistor 428 is set receives voltage signalization Vset.The base stage of 3 transistors 421,422,423 is connected with the drain electrode of MOSFET 121,122,123 respectively.The basic radio that equals transistor 421,422,423 corresponding to the minimum voltage signal S_out1 of the minimum voltage in MOSFET 121,122,123 drain voltages output is pressed the minimum voltage that adds in MOSFET 121,122,123 drain voltages.The basic radio that voltage S_out2 equals transistor 428 is set presses the voltage that adds the voltage signalization.Should be appreciated that MOSFET 414,416 as currents match, the size of transistor 428 is 3 times of transistor 421,422,423.
Be the circuit diagram of the error amplification module 500 of one embodiment of the invention as shown in Figure 5.This error amplification module 500 can use as error amplification module 150 in drive circuit 100.Error amplification module 500 comprises error amplifier 512.Two inputs of error amplifier 512 receive minimum voltage signal S_out1 respectively and voltage signal S_out2 are set, and according to minimum voltage signal S_out1 with amplifying signal of error output between the voltage signal S_out2 is set.A pin 524 is connected to compensating circuit, and the network 152 as external capacitor and resistor composition also is connected to the output of the output of error amplifier 512 with compensating error amplification module 500.
The restriction input 540 of error amplification module 500 is sent to comparator 514 and switch 536.Error amplification module 500 comprises switch 538, switch 532 and switch 534.The output of error amplifier 512 is sent to the output EA of error amplification module 500 by switch 538.An input of error amplifier 512 by switch 532 with voltage signal S_out2 be set be connected, this input also is connected with earth terminal by switch 534.Switch 532 is by switch 538 controls, and switch 534 is by switch 536 controls.If the output voltage of error amplifier 512 is less than the voltage of restriction input 540,1.88V for example, comparator 514 is output as low level.In this case, switch 536 is in off-state, and switch 538 is in conducting state.In addition, switch 534 is in off-state, and switch 532 is in conducting state.If the output voltage of error amplifier 512 is greater than the voltage of restriction input 540,1.88V for example, comparator 514 is output as high level.In this case, switch 536 and 534 is in conducting state, and switch 538 and 532 is in off-state.The output EA of error amplification module 500 is the voltage of restriction input 540, for example 1.88V.
Be the flow chart of several photodiodes of driving of one embodiment of the invention as shown in Figure 6.In step 610, photodiode is prepared to be driven.In step 612,, for example, be connected to several photodiodes as the MOSFET or the transistor of electric current groove with several current regulators.The electric current groove is an exemplary current adjuster describing the embodiment of the invention.Those of ordinary skill in the art is to be understood that the electric current groove can be replaced by the current source that MOSFET or transistor are formed.An external power source is powered to photodiode under the adjusting of electric current groove.
In step 614, the electric state of sample rate current adjuster.In one embodiment of the invention, the electric state of current regulator is a voltage.In step 616, select an electric state to represent the whole electric state of electric current groove and as feedback signal.In step 618, feedback signal and predetermined value are relatively obtained difference between feedback signal and the predetermined value.In step 620, control offers the electric energy of photodiode, makes the electric state of electric current groove be adjusted to predetermined value.
Though the front is the description at most preferred embodiment of the present invention, should be appreciated that in not breaking away from the defined spirit and scope of claim of the present invention and can make various modifications, replacement and increase.Those of ordinary skill in the art will be appreciated that and can carry out various modifications to the form used in the invention process, structure, layout, ratio, material, element, composition and other, adapting to specific environment and operating condition, and can not break away from the principle of the invention.The embodiment that the present invention discloses should be as exemplary the consideration and should be as limitation of the present invention, and protection scope of the present invention is to be determined by the claim of enclosing, and should not be limited to the description of front.