This application claims priority to Japanese Patent Application No. 2011-231072 filed Oct. 20, 2011 which is hereby expressly incorporated by reference herein in its entirety.
The present invention relates to a ramp signal generation circuit and a ramp signal adjustment circuit that can be applied to a power supply device and a light emitting element drive device. Specifically, the present invention relates to a ramp signal generation circuit and a ramp signal adjustment circuit that generate a ramp signal in accordance with a clock signal.
Japanese Patent Publication No. 2004-96815 discloses a power supply device, such as a DC/DC converter, that performs pulse width modulation (PWM) control for a switching element in accordance with a PWM signal generated according to an operation clock of a digital circuit.
A frequency of the PWM signal may be changed according to an operation state of the power supply device. For example, when a load is light, a frequency of the PWM signal decreases to lower an operation loss of the switching element.
When a PWM signal is generated based on a ramp signal, a frequency of the PWM signal is determined by a frequency of the ramp signal. Further, when the PWM signal is generated by using the ramp signal that is synchronized with an operation clock signal as a clock signal from a digital circuit, the PWM signal that is synchronized with the operation clock signal is generated. In general, a serration-shaped or sawtooth wave ramp signal is generated by charging and discharging a capacitor included in a ramp signal generation circuit. A peak voltage value (a peak value of a charged voltage) of the ramp signal is determined by a charging time and a slope of the charge voltage increase that depends on values of a charge current for the capacitor. Accordingly, when the slope of the charged voltage increase is constant, the charging time lengthens, and the peak voltage value (a peak value of the charged voltage) heightens.
In the ramp signal generation circuit 100 shown in
An object of the present invention is to provide a ramp signal generation circuit and a ramp signal adjustment circuit in which a peak voltage value of a ramp signal is not changed even though a cycle (frequency) of the ramp signal is changed.
One aspect of a ramp signal generation circuit according to the present invention includes: a first input terminal that receives a clock signal; a plurality of second input terminals that receive high-level or low-level signals, respectively, in accordance with a cycle of the clock signal; a capacitor; and a discharge and charge circuit that discharges and charges the capacitor and that outputs a ramp signal corresponding to a voltage generated by the capacitor. The discharge and charge circuit includes a discharge circuit that discharges the capacitor in synchronization with the clock signal, and a charge circuit that is configured with a plurality of paired resistors and rectifying elements connected between the capacitor and the plurality of second input terminals. The charge circuit charges the capacitor through the resistor and the rectifying element. The discharge and charge circuit selects at least one of the plurality of second input terminals so as to change a value of a charge current for charging the capacitor by inputting the high-level signal to the selected one of the plurality of second input terminals.
In the above ramp signal generation circuit according to the present invention, at least one of the plurality of second input terminals is selected in accordance with a cycle of the clock signal that is input to the first input terminal. Then, the high-level signal is input to the selected at least one of the plurality of second input terminals. Because the discharge circuit discharges the capacitor in synchronization with the clock signal, a frequency of the ramp signal corresponds to a frequency of the clock signal. In the charge circuit, a value of a charge current for charging the capacitor is changed so as to make a peak voltage value of the ramp signal constant regardless of the cycle of the clock signal by switching the pair of resistors and rectifying elements in which the charge current flows. As a result, it is possible to provide the ramp signal generation circuit in which the peak voltage value of the ramp signal is not changed even though the cycle of the ramp signal is changed.
Another aspect of a ramp signal generation circuit according to the present invention includes: a first input terminal that receives a clock signal; a plurality of second input terminals that receive high-level or low-level signals, respectively, in accordance with a cycle of the clock signal; a capacitor; and a discharge and charge circuit that discharges and charges the capacitor and that outputs a ramp signal corresponding to a voltage generated by the capacitor. The discharge and charge circuit includes a discharge circuit that discharges the capacitor in synchronization with the clock signal, and a charge circuit that is configured with a plurality of paired resistors and switching elements connected between the capacitor and a power source voltage line. The charge circuit charges the capacitor through one of the resistors and one of the switching elements. The discharge and charge circuit selects at least one of the plurality of second input terminals so as to change a value of a charge current for charging the capacitor through an ON and OFF operation of the switching elements by inputting the high-level signal to the selected one of the plurality of second input terminals.
In the above ramp signal generation circuit according to the present invention, at least one of the plurality of second input terminals is selected in accordance with a cycle of the clock signal that is input to the first input terminal. Then, the high-level signal is input to the selected at least one of the plurality of second input terminals. Because the discharge circuit discharges the capacitor in synchronization with the clock signal, a frequency of the ramp signal corresponds to a frequency of the clock signal. In the charge circuit, a value of a charge current for charging the capacitor is changed so as to make a peak voltage value of the ramp signal constant regardless of the cycle of the clock signal by switching the pair of resistors and switching elements in which the charge current flows. As a result, it is possible to provide the ramp signal generation circuit in which the peak voltage value of the ramp signal is not changed even though the cycle of the ramp signal is changed.
One aspect of a ramp signal adjustment circuit according to the present invention includes: a clock signal generation circuit that generates a clock signal by dividing a base clock signal; a signal output circuit that has a plurality of terminals and that outputs high-level or low-level signals from each of the plurality of terminals; a capacitor; and a discharge and charge circuit that discharges and charges the capacitor and that outputs a ramp signal corresponding to a voltage generated by the capacitor. The discharge and charge circuit includes a discharge circuit that discharges the capacitor in synchronization with the clock signal, and a charge circuit that is configured with a plurality of paired resistors and rectifying elements connected between the capacitor and the plurality of terminals. The charge circuit charges the capacitor through one of the resistors and one of the rectifying elements. The discharge and charge circuit selects at least one of the plurality of terminals so as to change a value of a charge current for charging the capacitor by inputting the high-level signal to the selected one of the plurality of terminals.
In the above ramp signal adjustment circuit according to the present invention, at least one of the plurality of terminals is selected in accordance with a cycle of the clock signal that is generated in the clock signal generation circuit. Then, the high-level signal is input to the selected at least one of the plurality of terminals. Because the discharge circuit discharges the capacitor in synchronization with the clock signal, a frequency of the ramp signal corresponds to a frequency of the clock signal. In the charge circuit, a value of a charge current for charging the capacitor is changed so as to make a peak voltage value of the ramp signal constant regardless of the cycle of the clock signal by switching the pair of resistors and rectifying elements in which the charge current flows. As a result, it is possible to provide the ramp signal adjustment circuit in which the peak voltage value of the ramp signal is not changed even though the cycle of the ramp signal is changed.
Another aspect of a ramp signal adjustment circuit according to the present invention includes: a clock signal generation circuit that generates a clock signal by dividing a base clock signal; a signal output circuit that has a plurality of terminals and that outputs high-level or low-level signals from each of the plurality of terminals; a capacitor; and a discharge and charge circuit that discharges and charges the capacitor and that outputs a ramp signal corresponding to a voltage generated by the capacitor. The discharge and charge circuit includes a discharge circuit that discharges the capacitor in synchronization with the clock signal, and a charge circuit that is configured with a plurality of paired resistors and switching elements connected between the capacitor and a power source voltage line. The charge circuit charges the capacitor through one of the resistors and one of the switching elements. The discharge and charge circuit selects at least one of the plurality of terminals so as to change a value of a charge current for charging the capacitor through an ON and OFF operation of the switching elements by inputting the high-level signal to the selected one of the plurality of terminals.
In the above ramp signal adjustment circuit according to the present invention, at least one of the plurality of terminals is selected in accordance with a cycle of the clock signal that is generated in the clock signal generation circuit. Then, the high-level signal is input to the selected at least one of the plurality of terminals. Because the discharge circuit discharges the capacitor in synchronization with the clock signal, a frequency of the ramp signal corresponds to a frequency of the clock signal. In the charge circuit, a value of a charge current for charging the capacitor is changed so as to make a peak voltage value of the ramp signal constant regardless of the cycle of the clock signal by switching the pair of resistors and switching elements in which the charge current flows. As a result, it is possible to provide the ramp signal adjustment circuit in which the peak voltage value of the ramp signal is not changed even though the cycle of the ramp signal is changed.
A ramp signal generation circuit and a ramp signal adjustment circuit according to embodiments of the present invention will be explained below with reference to the drawings.
The converter 2 converts a direct current input voltage Vin, which is applied between input terminals +Vi and −Vi, to a direct current output voltage Vout and supplies the direct current output voltage Vout to output terminals +Vo and −Vo. A load (not shown) is connected between the output terminals +Vo and −Vo. The converter 2 is configured with a step-up chopper circuit in order to convert the input voltage Vin into the output voltage Vout that is higher than the input voltage Vin. The step-up chopper circuit includes a choke coil L, a switching element Q1, a diode D1, and a capacitor C1. Specifically, a series circuit of the choke coil L1 and the switching element Q1 are connected between the input terminals +Vi and −Vi. A series circuit of the diode D1 and the capacitor C1 is connected between both terminals of the switching element Q1. The output terminals +Vo and −Vo are respectively connected to both terminals of the capacitor C1. The switching element Q1 is an N channel MOSFET (Metal Oxide Semiconductor Field Effect Transistor). However, the switching element Q1 is not limited to this and may be a semiconductor element with a control terminal, such as a bipolar transistor.
The voltage detection circuit 3 detects the output voltage Vout from the converter 2. The voltage detection circuit 3 is configured by connecting a series circuit of resistors R1 and R2 for dividing a voltage between the output terminals +Vo and −Vo. An analog detection voltage having a voltage value that is divided from the output voltage Vout is generated at a node between the resistors R1 and R2.
The microprocessor 4 corresponding to a digital circuit calculates a control command value, which is for stabilizing the output voltage Vout, by digital arithmetic. The microprocessor 4 includes an analog-to-digital converter (ADC) 11, a reference power supply 12, a central processing unit (CPU) 14, an I/O port 15, an operation clock 16, and a clock generation circuit 17.
The ADC 11 corresponds to an analog-to-digital conversion circuit in which a voltage value (analog detection voltage) from the voltage detection circuit 3 is converted into a digital value. Further, the reference power supply 12 generates a reference voltage as a reference signal that is used when the ADC 11 converts an analog value into a digital value.
The CPU 14 corresponds to an arithmetic circuit in which a digital control command value is calculated based on a digital signal obtained by the ADC 11, and then in which a difference value between an immediately preceding control command value and a present control command value calculated at the present time is calculated. Further, the I/O (Input and output) port 15 corresponds to a signal output circuit in which a high (H)-level signal or a low (L)-level signal is respectively output toward at least two or more charge terminals PH0, PH1, discharge terminals PL0, PL1 and toward terminals that generate at least two or more control signals S6, S7, S8 and S9 outside the microprocessor 4.
The operation clock 16 outputs a base clock signal for operating the CPU 14 at a predetermined cycle as an operation clock signal.
The clock generation circuit 17 is provided as a frequency divider in which a clock signal (synchronous clock signal) S1, which is obtained by dividing the operation clock signal from the operation clock 16, is output to outside the microprocessor 4. In the present embodiment, the operation clock signal of, for example, 8 MHz from the operation clock 16 is divided into a 1/16 frequency by the clock generation circuit 17. Then, the clock signal S1 of 500 kHz is sent to the ramp signal generation circuit 5. As a result, the clock signal S1 is for determining a frequency of a driving signal S5 as discussed later.
The clock generation circuit 17 according to the present embodiment divides the operation clock signal output from the operation clock 16 according to an instruction of the CPU 14. That is, the CPU 14 instructs the clock generation circuit 17 as to how many times to divide the operation clock signal. For example, the CPU 14 monitors an electric current that flows into a load (load current). Then, the CPU 14 gives the following instructions to the clock generation circuit 17. When the load current becomes smaller, make a frequency of the clock signal S1 lower. When the load current becomes larger, make a frequency of the clock signal S1 higher. As a result, the frequency of the clock signal S1 can be changed in accordance with the change of the load current. Further, the CPU 14 changes each current level of the control signals S6, S7, S8 and s9 from the I/O port 15 in accordance with changing frequency division.
The microprocessor 4 includes another clock generation circuit (not shown) that outputs a clock signal having a lower frequency than the clock signal S1 to the I/O port 15 by dividing the operation clock signal from the operation clock 16. In this embodiment, an operation clock signal of 8 MHz from the operation clock 16 is divided into a 1/256 frequency by another clock generation circuit. Then, the clock signal of 31.25 kHz is sent to the I/O port 15. Therefore, the I/O port 15 can send distinct and separate signals of 31.25 kHz to the pulse control circuit 6 toward each of discharge terminals PL0, PL1 and charge terminals PH0, PH1. Accordingly, the CPU 14 selects a new control command value every 256 clock cycles of an operation clock signal.
The ramp signal generation circuit 5 generates a serration-shaped or sawtooth wave signal S2 (ramp signal S2) based on the control signals S6, S7, S8 and S9 from the I/O port 15 and the clock signal S1 from the clock generation circuit 17. The ramp signal S2 that has the same frequency as the clock signal S1 is output to the pulse control circuit 6 from the ramp signal generation circuit 5.
The charge circuit 18 is configured with first, second, third and fourth series circuits as discussed below. In the first series circuit, an anode of a diode D3 is connected to an input terminal 36 for a control signal S6, and a resistor R13 is connected between a cathode of the diode D3 and one end of the capacitor C3. In the second series circuit, an anode of the diode D4 is connected to an input terminal 37 for a control signal S7, and a resistor R14 is connected between a cathode of the diode D4 and the one end of the capacitor C3. In the third series circuit, an anode of a diode D5 is connected to an input terminal 38 for a control signal S8, and a resistor R15 is connected between a cathode of a diode D5 and the one end of the capacitor C3. In the fourth series circuit, an anode of a diode D6 is connected to an input terminal 39 for a control signal S9, and a resistor R16 is connected between a cathode of the diode D6 and the one end of the capacitor C3.
For example, when a cycle of the clock signal S1 is T1, the charge of the capacitor C3 is performed through the resistor R13 from the diode D3. Further, when a cycle of the clock signal S1 is T2, the charge of the capacitor C3 is performed through the resistor R14 from the diode D4. Yet further, when a cycle of the clock signal S1 is T3, the charge of the capacitor C3 is performed through the resistor R15 from the diode D5. Lastly, when a cycle of the clock signal S1 is T4, the charge of the capacitor C3 is performed through the resistor R16 from the diode D6. That is, as shown in table 1 below, when the cycle of the clock signal S1 is T1, only the control signal S6 becomes an H-level. When the cycle of the clock signal S1 is T2, only the control signal S7 becomes the H-level. When the cycle of the clock signal S1 is T3, only the control signal S8 becomes the H-level. When the cycle of the clock signal S1 is T4, only the control signal S9 becomes the H-level.
Here, a capacitance value of the capacitor C3 is C. A resistance value of the resistor R13 is R1. A resistance value of the resistor R14 is R2. A resistance value of the resistor R15 is R3. A resistance value of R16 is R4. Further, a time constant is CR1 when the cycle of the clock signal S1 is T1. A time constant is CR2 when the cycle of the clock signal S1 is T2. A time constant is CR3 when the cycle of the clock signal S1 is T3. A time constant is CR4 when the cycle of the clock signal S1 is T4. The ramp signal generation circuit 5 ensures that the time constants CR1-CR4 respectively match with the peak voltage values of the ramp signal S2 at each cycle T1-T4. Table 1 above shows not only a relationship between the cycle of the clock signal S1 and an output theoretical value of the I/O port 15, but also a relationship between the cycle of the clock signal S1 and the time constants that determine a slope of a voltage increase of the ramp signal S2 (a charge voltage for the capacitor C3).
That is, each of the resistance values R1, R2, R3 and R4 for each of the resistors R13, R14, R15 and R16, respectively, is configured under the condition in which the following formula, T1/CR1=T2/CR2=T3/CR3=T4/CR4, is satisfied.
Referring back to
Next, functions of the above configuration are explained with reference to a timing diagram of each part shown in
When the pulsed driving signal S5 is given to a gate of the switching element Q1 from the pulse control circuit 6, the switching element Q1 repeats an ON and OFF operation. When the switching element Q1 is turned ON, the diode D1 is in an OFF state because an input voltage Vin is applied to a choke coil L1. Then, a discharge voltage, as an output voltage Vout, of the smoothing capacitor C1 is supplied to a load from output terminals +Vo, −Vo. When the switching element Q1 is turned OFF, the diode D1 is in an ON state because a reverse voltage of the choke coil L1 is overlapped with the input voltage Vin. Then, the output voltage Vout that is higher than the input voltage Vin is supplied to a load from the output terminals +Vo, −Vo and at the same time the capacitor C1 is charged through the diode D1.
The output voltage Vout from the converter 2 is monitored by the voltage detection circuit 3. The voltage detection circuit 3 provides an analog detection voltage that is obtained by dividing the output voltage Vout by the resistors R1, R2 to the ADC 11 of the microprocessor 4. The ADC 11 converts the analog detection voltage into a digital value by using a reference voltage from the reference power supply 12 and provides the digital value to the CPU 14.
The CPU 14 calculates a control command value based on a value of the detection voltage obtained by the voltage detection circuit 3 and the ADC 11. In this case, when the output voltage Vout becomes higher, the control command value becomes lower. In contrast, when the output voltage Vout becomes lower, the control command value becomes higher. The calculated control command value is temporarily stored in a memory (not shown) to calculate the difference output value. After the CPU 14 reads a previous control command value, which is calculated at the previous time, from the memory, the CPU 14 calculates a difference between a present control command value, which is calculated at the present time, and the previous control command value. The difference output value is calculated with a predetermined controlled delay with respect to the control command values, which are calculated at a predetermined cycle and is sent to the I/O port 15 from the CPU 14.
The I/O port 15 determines a period of outputting an H-level signal from the charge terminal PH0 and a period of outputting an L-level signal from the discharge terminal PL0. In this case, when the difference output value is positive, the H-level signal is output from the charge terminal PH0. In contrast, when the difference output value is negative, the L-level signal is output from the discharge terminal PL0. When the absolute value of the difference output value becomes larger, the period of outputting the H-level signal from the charged terminal PH0 or outputting the L-level signal from the discharge terminal PL0 becomes longer. In contrast, when the absolute value of the difference output value becomes smaller, the period of outputting the H-level signal from the charged terminal PH0 or outputting the L-level signal from the discharge terminal PL0 becomes shorter.
A clock signal of about 30 kHz, which is by dividing the operation clock signal from the operation clock 16 into a 1/256 frequency, is given to the I/O port 15. Thus, the I/O port 15 generates distinct and separate logic signals having the same frequencies as the clock signal for the charge terminals, such as PH0, and the discharge terminals, such as PL0. In order to achieve the above situation, the CPU 14 determines a new control command value and a difference output value at every frequency cycle. That frequency is the same as a frequency of the signal. In
The microprocessor 4 provides the clock signal S1 from the clock signal generation circuit 17 and the control signals S6, S7, S8 and S9 from the I/O port 15 to the ramp signal generation circuit 5 in addition to the signals that are output toward the charge terminal PH0 and the discharge terminal PL0. The CPU 14 instructs the clock generation circuit 17 as to how many times to divide a frequency of the operation clock signal according to the change of a load current so as to decide a frequency of the clock signal S1. For instance, when the load current is small, the clock generation circuit 17 outputs the clock signal S1 of 250 kHz. This occurs by an instruction from the CPU 14 in which the operation clock signal of 8 MHz is divided into a 1/32 frequency so as to decrease the frequency of the clock signal S1. Further, when the load current is larger than the above situation, the clock generation circuit 17 outputs the clock signal S1 of 500 kHz. This occurs by an instruction from the CPU 14 in which the operation clock signal of 8 MHz is divided into a 1/16 frequency.
In addition, as shown in Table 1, the CPU 14 selectively makes one of the control signals S6, S7, S8 and S9 an H-level in accordance with a frequency (cycles T1, T2, T3 and T4) of the clock signal S1. Then, the CPU 14 outputs the selected control signal from the I/O port 15. As a result, a slope of the charge voltage increase for the capacitor C3 through the charge circuit 18 is determined. The CPU 14 selects the frequency of the clock signal S1 every 256 clock cycles (about 30 kHz cycle).
Next, an operation of the ramp signal generation circuit 5 is explained in detail with reference to the timing chart shown in
For instance, when the frequency of the clock signal S1 is 500 kHz, the CPU 14 instructs the clock generation circuit 17 to divide the operation clock signal into a 1/16 frequency. Then, the CPU 14 makes the control signal S6 an H-level and makes the other control signals S7, S8 and S9 L-levels through the I/O port 15. In the above case, the clock generation circuit 17 generates the clock signal S1 by the frequency of 500 kHz. In the discharge circuit 19, a trigger differential signal S10 for discharging the capacitor C3 in synchronization with a rising edge of the clock signal S1 is generated because the generated clock signal S1 above passes through the capacitor C2 of the discharge circuit 19. Further, because the charge circuit 18 charges the capacitor C3 from the diode D3 through the resistor R13, the charge voltage increases along a slope corresponding to the time constant C·R1. Note that as explained above, the time constant that is obtained as the product of the resistor value (R1) of the resistor R13 and a capacitance value (C) of the capacitor C3. Therefore, the ramp signal S2 of 500 kHz with a predetermined slope is generated at the output terminal 22 of the ramp signal generation circuit 5. Please refer to each waveform in the lower part of
On the other hand, when a load current decreases, a frequency of the clock signal S1 is changed to, for example, 250 kHz. In this case, the CPU 14 instructs the clock generation circuit 17 to divide the operation clock signal into a 1/32 frequency. Then, the CPU 14 makes the control signal S7 an H-level and makes other control signals S6, S8 and S9 L-levels through the I/O port 15. In the above case, the clock generation circuit 17 generates the clock signal S1 by the frequency of 250 kHz. In the discharge circuit 19, a trigger differential signal S10 for discharging the capacitor C3 in synchronization with a rising edge of the clock signal S1 is generated because the generated clock signal S1 above passes through the capacitor C2 of the discharge circuit 19. Further, because the charge circuit 18 charges the capacitor C3 from the diode D4 through the resistor R14, the charge voltage increases along a slope corresponding to the time constant C·R2. Similarly, as explained above, the time constant that is obtained as the product of the resistor value (R2) of the resistor R14 and a capacitance value (C) of the capacitor C3. Therefore, the ramp signal S2 of 250 kHz is generated from the output terminal 22 of the ramp signal generation circuit 5. A slope of increase of the ramp signal S2 is gentler than the above ramp signal S2 of 500 kHz. In these cases, peak voltage values immediately before the capacitor C3 starts being discharged are constant regardless of the frequencies of the ramp signals S2. Please refer to each waveform in the upper part of
When the clock signal S1 is generated by other frequencies that are different from the above frequencies, each of the resistance values R1, R2, R3 and R4 of the resistors R13, R14, R15 and R16 is configured to satisfy the following formula, T1/CR1=T2/CR2=T3/CR3=T4/CR4. Therefore, when a cycle of the clock signal S1 becomes longer, a time constant between the capacitor C3 and one of the resistors R13, R14, R15 and R16 becomes larger. In contrast, when the cycle of the clock signal S1 becomes shorter, the time constant becomes smaller. As a result, when a cycle of the clock signal S1 is changed, a peak voltage value of the ramp signal S2 maintains as a constant value. Because energy is required to perform discharging and charging operations for the capacitor C3 of the discharge circuit 19, a pull-up circuit connected to each of the input terminals 21, 36, 37, 38 and 39 is embedded in the I/O port 15 or the clock generation circuit 17.
Referring back to
As explained above, the end-to-end voltage S4, which is the output voltage of the discharge and charge circuit 28, of the capacitor C4 is adjusted based on the duration of the H-level signal toward the charge terminal PH0 and the duration of the L-level signal toward the discharge terminal PL0. Specifically, as shown in
The ramp signal S2 from the ramp signal generation circuit 5 is input to the inverting input terminal of the comparator CMP of the pulse control circuit 6. The end-to-end voltage S4, which is the output voltage of the discharge and charge circuit 28, of the capacitor C4 is input to the non-inverting input terminal of the comparator CMP. The comparator CMP sends the pulse driving signal S5 with a duty ratio that is based on the comparison result between the voltage value of the ramp signal S2 and the end-to-end voltage S4 of the capacitor C4 to the gate of the switching element Q1. Therefore, the switching element Q1 performs an ON and OFF operation so as to make the output voltage Vout from the converter 2 a constant value. In the above discussed series of operations, the following configurations may be used in order to make the output voltage Vout from the converter 2 a constant value. The ADC 11 is configured to increase a digital value when a voltage value from the voltage detection circuit 3 decreases. The CPU 14 is configured to increase a control command value when the digital value from the ADC 11 increases. Alternatively, the following configurations may be used in order to make the output voltage Vout from the converter 2 a constant value. The ADC 11 is configured to decrease the digital value when the voltage value from the voltage detection circuit 3 decreases. The CPU 14 is configured to increase the control command value when the digital value from the ADC 11 decreases.
A frequency of the driving signal S5 is the same as a frequency of the ramp signal S2. A pulse width of the driving signal S5 is adjusted by the end-to-end voltage S4 of the capacitor C4. In the pulse control circuit 6 shown in
In the present embodiment, because the microprocessor 4 controls with 8 bits, the output periods for an H-level signal toward the charge terminal PH0 and an L-level signal toward the discharge terminal PL0 are varied in a range of “(0 to 255) X cycle of operation clock signal (125 nanosecond(ns)).” These output periods for signals are determined based on the operation clock signal (8 MHz) form the operation clock 16 and are varied in periodic stages in increments of 125 ns. The end-to-end voltage S4 of the capacitor C4 increases or decreases based on the output periods of the signals. Then, this end-to-end voltage S4 and the ramp signal S2 are respectively input to the comparator CMP. Therefore, a pulse width of the driving signal S5 that is output from the comparator CMP can be changed every one pulse while the end-to-end voltage S4 of the capacitor C4 increases or decreases.
A frequency (for example, 500 kHz) of the driving signal S5 is determined in consideration of a size of the choke coil L1 and a loss of switching of the switching element Q1. This is because when a frequency decreases, the size of the choke coil L1 becomes large, and when the frequency increases, the loss of switching of the switching element Q1 increases. The clock generation circuit 17 does not divide the operation clock signal in a 1/16 frequency to secure a processing time for calculating a control command value by the CPU 14. Thus, a frequency of the clock signal S1 can be determined based on a specification of the converter 2.
In the present embodiment, a frequency of the operation clock signal is, for example, 500 kHz. However, the present embodiment is not limited to the above configuration to generate the operation clock signal of 500 kHz. For example, when the operation clock 16 also has functions of the clock generation circuit 17, a circuit configuration in which the driving signal S5 of 500 kHz remains the same can be realized. In this case, a frequency of a signal from the charge terminal PH0 and the discharge terminal PL0 is 1.95 kHz (500/256=1.95 kHz). It is preferred that the CPU 14 can calculate a new control command value every 256 clock cycles with respect to the operation clock signal so that it does not depend on a frequency of the operation clock signal.
As discussed above, the ramp signal generation circuit 5 according to the present embodiment includes: the input terminal 21 as a first input terminal that receives the clock signal S1; the input terminals 36, 37, 38 and 39 as a plurality of second input terminals that receive H-level or L-level signals, respectively, in accordance with a cycle of the clock signal S1; the capacitor C3; and a discharge and charge circuit that discharges and charges the capacitor C3 and that outputs the ramp signal S2 corresponding to a voltage generated between both terminals of the capacitor C3. The discharge and charge circuit includes the discharge circuit 19 that discharges the capacitor C3 in synchronization with the clock signal S1, and the charge circuit 18 that is configured with a plurality of pairs of resistors R13, R14, R15 and R16 as resistor elements and diodes D3, D4, D5 and D6 as rectifying elements connected between the capacitor C3 and the plurality of input terminals 36, 37, 38 and 39. The charge circuit 18 charges the capacitor C3 through the resistors R13, R14, R15 and R16 and the diodes D3, D4, D5 and D6. The charge circuit 18 selects at least one of the plurality of input terminals 36, 37, 38 and 39 so as to change a value of a charge current for charging the capacitor C3 by inputting the H-level signal to the selected one of the plurality of input terminals.
Further, the ramp signal adjustment circuit of the present embodiment includes the clock signal generation circuit 17 that generates a clock signal S1 obtained by dividing an operation clock signal as a base clock signal and a plurality of terminals that connect to the input terminals 36, 37, 38 and 39, respectively, in addition to the ramp signal generation circuit 5 explained above. The ramp signal adjustment circuit further includes the I/O port 15 as a signal output circuit that outputs an H-level signal or an L-level signal toward each of the plurality of terminals in accordance with a cycle of the clock signal S1.
In this configuration, the plurality of input terminals 36, 37, 38 and 39 of the ramp signal generation circuit 5 are connected to a plurality of terminals of the clock signal generation circuit 17. At least one of the plurality of input terminals 36, 37, 38 and 39 is selected in accordance with a cycle of the clock signal S1 that is input to the input terminal 21. An H-level signal is input to the selected input terminal. Because the discharge circuit 19 discharges the capacitor C3 in synchronization with the clock signal S1, a frequency of the ramp signal S2 corresponds to a frequency of the clock signal S1. On the other hand, the charge circuit 18 changes a current value for charging the capacitor c3 so as to make a peak voltage value of the ramp signal S2 a predetermined value (constant) regardless of a cycle of the clock signal S1 by selectively switching respective pairs of the resistors R13, R14, R15 and R16 and the diodes D3, D4, D5 and D6 in which a charge current for the capacitor C3 flows. As a result, it is possible to provide the ramp signal generation circuit 5 and the ramp signal adjustment circuit that includes the ramp signal generation circuit 5 in which the peak voltage value of the ramp signal S2 is not changed even though a cycle of the ramp signal S2 is changed.
In the present embodiment, a construction of a power supply device shown in
The CPU 14 calculate the control command value based on a value of a detection voltage that is obtained by a voltage detection circuit 3 and an ADC 11 in the power supply device shown in
A clock signal of about 30 kHz, which is obtained by dividing the operation clock signal from the operation clock 16 into a 1/256 frequency, is input to the I/O port 15. Thus, the I/O port 15 generates the pulse signal S3 that has the same frequency as the clock signal. Thus, the CPU 14 determines a new control command value at every frequency cycle. That frequency is the same as the pulse signal S3. In
The pulse signal S3 is input to the integration circuit 29 of the pulse control circuit 6. The end-to-end voltage S4 of the capacitor C4, which is an output voltage of the integration circuit 29, increases and decreases in accordance with the duty ratio of the pulse signal S3. In this case, as shown in
The ramp signal S2 from the ramp signal generation circuit 5 is input to the inverting input terminal of the comparator CMP of the pulse control circuit 6. The end-to-end voltage S4, which is the output voltage of the integration circuit 29, of the capacitor C4 is input to the non-inverting input terminal of the comparator CMP. The comparator CMP sends the pulse driving signal S5 with a duty ratio that is based on the comparison result between the voltage value of the ramp signal S2 and the end-to-end voltage S4 of the capacitor C4 to the gate of the switching element Q1. Therefore, the switching element Q1 performs an ON and OFF operation so as to make the output voltage Vout from the converter 2 a constant value.
The configuration of the I/O port 15 having output terminals that output the control signals S6, S7, S8 and S9 and the configuration of the ramp signal generation circuit 5 that receives the control signals S6, S7, S8 and s9 are the same as described above. Therefore, even though the cycle of the ramp signal S2 is changed, it is possible to provide the ramp signal generation circuit 5 and the ramp signal adjustment circuit including the ramp signal generation circuit 5 in which a peak voltage value of the ramp signal S2 is not changed.
Further, the configuration of the ramp signal generation circuit 5 can be different than
The switching elements Q3, Q4, Q5 and Q6 are all P-channel MOSFETs. A switching element, in which an L-level signal is given to a gate, among the switching elements Q3, Q4, Q5 and Q6 is turned ON. For example, when a cycle of the clock signal S1 is T1, only the control signal S6 becomes an L-level. When the cycle of the clock signal S1 is T2, only the control signal S7 becomes the L-level. When the cycle of the clock signal S1 is T3, only the control signal S8 becomes the L-level. When the cycle of the clock signal S1 is T4, only the control signal S9 becomes the L-level. That is, logic-levels between Table 1 and the above embodiment are completely opposite. However, each resistance value R1, R2, R3 and R4 of the resistors R13, R14, R15 and R16 is configured so that the following formula, T1/CR1=T2/CR2=T3/CR3=T4/CR4, is satisfied. Therefore, even in this embodiment, a peak voltage value of the ramp signal S2 is constant regardless of a frequency of the ramp signal S2.
Note that when the switching elements Q3, Q4, Q5 and Q6 are MOSFETs, diodes 63, 64, 65 and 66 that allow a current flow from drains to sources are respectively formed in each of the MOSFETs.
As discussed above, the ramp signal generation circuit 5 according to the present embodiment includes: the input terminal 21 as a first input terminal that receives the S1 clock signal; the input terminals 36, 37, 38 and 39 as a plurality of second input terminals that receive H-level or L-level signals, respectively, in accordance with a cycle of the clock signal S1; the capacitor C3; and a discharge and charge circuit that discharges and charges the capacitor C3 and that outputs the ramp signal S2 corresponding to a voltage generated between both terminals of the capacitor C3. The discharge and charge circuit includes the discharge circuit 19 that discharges the capacitor C3 in synchronization with the clock signal S1. The discharge and charge circuit also includes the charge circuit 18 that is configured with a plurality of paired resistors R13, R14, R15 and R16 and the switching elements Q3, Q4, Q5 and Q6 connected between the capacitor C3 and the power source voltage line Vcc. The charge circuit 18 charges the capacitor C3 through one of the resistors R13, R14, R15 and R16 and one of the switching elements Q3, Q4, Q5 and Q6. The charge circuit 18 selects at least one of the plurality of input terminals 36, 37, 38 and 39 so as to change a value of a charge current for charging the capacitor C3 through an ON and OFF operation of the switching elements Q3, Q4, Q5 and Q6 by inputting the high-level signal to the selected one of the plurality of input terminals.
Further, the ramp signal adjustment circuit of the present embodiment includes the clock signal generation circuit 17 that generates a clock signal S1 obtained by dividing an operation clock signal as a base clock signal and a plurality of terminals that connect to the input terminals 36, 37, 38 and 39, respectively, in addition to the ramp signal generation circuit 5 explained above. The ramp signal adjustment circuit further includes the I/O port 15 as a signal output circuit that outputs an H-level signal or an L-level signal toward each of the plurality of terminals in accordance with a cycle of the clock signal S1.
In this configuration, the plurality of input terminals 36, 37, 38 and 39 of the ramp signal generation circuit 5 are connected to a plurality of terminals of the clock signal generation circuit 17. At least one of the plurality of input terminals 36, 37, 38 and 39 is selected in accordance with a cycle of the clock signal S1 that is input to the input terminal 21. An H-level signal is input to the selected input terminal. Because the discharge circuit 19 discharges the capacitor C3 in synchronization with the clock signal S1, a frequency of the ramp signal S2 corresponds to a frequency of the clock signal S1. On the other hand, the charge circuit 18 changes a current value for charging the capacitor c3 so as to make a peak voltage value of the ramp signal S2 a predetermined value (constant) regardless of a cycle of the clock signal S1 by selectively switching respective pairs of the resistors R13, R14, R15 and R16 and the switching elements Q3, Q4, Q5 and Q6 in which a charge current for the capacitor C3 flows. As a result, it is possible to provide the ramp signal generation circuit 5 and the ramp signal adjustment circuit that includes the ramp signal generation circuit 5 in which the peak voltage value of the ramp signal S2 is not changed even though a cycle of the ramp signal S2 is changed.
Embodiments according to the present invention have been explained. However, the present invention should not be limited to the embodiments because those embodiments are simply examples for explaining the present invention. Undoubtedly, several modifications may be made without departing from the spirit and scope of the invention. For example, the ramp signal generation circuit 5 and the ramp signal adjustment circuit that are explained in the present embodiments are not limited to a step-up chopper circuit as shown in the drawings. They can be applied to a power supply device that has any converter 2 of any circuit configuration. If a load is one or more light emitting elements, a current detection circuit can be included instead of the voltage detection circuit 3 in order to make an output current flowing in the light emitting element constant. Thus, the present invention can be applied to a light emitting element drive device in which a current feedback loop is formed for the converter 2. Further, the present invention can be applied to various types of circuit devices other than power supply devices and light emitting element drive devices. Signal levels, frequencies (cycles), logic configurations of each part discussed in the above embodiments may be changed.
In the above embodiments, at least one of the plurality of input terminals 36, 37, 38 and 39 is selected in accordance with a cycle of the clock signal S1. However, the present invention is not limited to this. Further to the above applications, at least two of the plurality of input terminals 36, 37, 38 and 39 may be selected in accordance with a cycle of the clock signal S1. Then, a charge current is supplied to the capacitor C3 from the charge circuit 18 by inputting H-level signals to the selected at least two input terminals. In this case, the capacitor C3 can be charged so as to make a peak voltage value of the ramp signal S2 a predetermined value (constant) regardless of a cycle of the clock signal S1.
The ramp signal generation circuit and the ramp signal adjustment circuit being thus described, it will be apparent that the same may be varied in many ways. Such variations are not to be regarded as a departure from the spirit and scope of the invention, and all such modifications as would be apparent to one of ordinary skill in the art are intended to be included within the scope of the following claims.
Number | Date | Country | Kind |
---|---|---|---|
2011-231072 | Oct 2011 | JP | national |