Referring to the drawings, and initially to
When the supply voltage Vcc is maintained at a certain level, the voltages at the high voltage contact or terminal 16 are greater than that at the low voltage contact or terminal 17 by a certain amount, as indicated and marked as 16 and 17 in
A first comparator 30 includes a high voltage input terminal 31 and a low voltage input terminal 32 coupled to the high voltage contact or terminal 16 and the low voltage contact or terminal 17 of the voltage divider 10 respectively for receiving the different voltage inputs from the voltage divider 10, and includes a ramp input terminal 33 for coupling to a ramp (signal) generating unit or device 40, and includes an output terminal 34 for coupling to a current source 41 of the ramp generating device 40. The ramp generating device 40 includes a capacitor 42 coupled to the current source 41, and the current source 41 includes a charging device 43 and a discharging device 44 for alternatively or changeably coupling to the capacitor 42 and for selectively charging or discharging the capacitor 42.
As shown in
When the current source 41 is switched to the discharging device 44 or when the discharging device 44 is coupled to the capacitor 42, the capacitor 42 may be discharged to generate a voltage decreasing ramp or signal 46 (
A second comparator 50 includes a negative input terminal 51, a positive input terminal 52, and an output terminal 53, in which the negative input terminal 51 is coupled to the capacitor 42 of the ramp generating device 40 for receiving the ramps signals 45, 46 from the ramp generating device 40, and the positive input terminal 52 will be coupled or arranged to receive an input signal 54, for allowing the second comparator 50 to generate a PWM output 55 (
A coupling capacitor 60 is coupled to the output terminal 53 of the second comparator 50. The other end of the coupling capacitor 60 is coupled to a load 70. The load 70 is thus coupled to the coupling capacitor 60. The other end of the load 70 is coupled to ground 12.
In operation, when the input signal at the positive input terminal 52 of the second comparator 50 is higher than the ramp signals at the negative input terminal 51 of the second comparator 50, the output terminal 53 of the second comparator 50 gives a high voltage. On the other hand when the input signal at the positive input terminal 52 of the second comparator 50 is lower than the ramp signals at the negative input terminal 51 of the second comparator 50, the output terminal 53 of the second comparator 50 gives a low voltage.
When the input signal 54 is half of the supply voltage, the pulse width of the PWM signal is 50% of the cycle, such that the average output power delivered to the load 70 through coupling capacitor 60 is zero. In other words the average output power is taken from the output of the second comparator 50 through the coupling capacitor 60 such that the DC component of the output signal is blocked by the coupling capacitor 60 and the average value of the PWM signal of 50% duty cycle is zero.
When the input signal 54 is higher than one half of the supply voltage, the pulse width will be increased and the duty cycle of the PWM signal will be greater than 50%, and the average power is indicated to be delivered toward the load 70 through the coupling capacitor 60 in the positive direction. On the contrary when the input signal 54 is lower than one half of the supply voltage, the pulse width will be decreased and the duty cycle of the PWM signal will be smaller than 50%, and the average power is indicated to be delivered toward the load 70 through the coupling capacitor 60 in the opposite direction.
When the supply voltage Vcc is lowered and when the difference between the voltage levels of the high voltage contact or terminal 16 and the low voltage contact or terminal 17 is decreased and marked as 16A and 17A in
The output power of the amplifier for driving the speaker is calculated by the following equations:
P_out=(Vcc×Vcc/R)×[(pulse width/period)−0.5]
if the duty cycle of the PWM signal is greater than 50%,
and
P_=(Vcc/R)×[0.5 −(pulse width/period)]
if the duty cycle of the PWM signal is less than 50%,
where P13 out is the output power of the amplifier,
According to the above equations the output power of the amplifier or the PWM signal will be lower if the supply voltage Vcc is smaller. In order to compensate for the power loss due to smaller Vcc the duty cycle should be increased.
It is to be noted that the cycle time of the ramp signals 45, 46 are shown to be the same before and after Vcc is changed but it is not essential because the output power of the amplifier is irrelevant to the cycle time but to the duty cycle. Preferably when the magnitude of the ramp signal 45, 46 is decreased the slope of the ramp signals 45, 46 should be decreased to maintain the same cycle time or keep the same frequency. To decrease the slope, the charging and discharging current should be made smaller. Since the decrease of the magnitude of ramp 45 and 46 is proportional to the supply voltage Vcc, the charging and discharging current should also be made proportional to the supply voltage Vcc such that the cycle time or PWM frequency can be kept constant.
Briefly, the output power is proportional to the supply voltage and to the pulse width ratio or the duty cycle. When the supply voltage is decreased, the difference between the voltage levels of the high voltage contact or terminal 16 and the low voltage contact or terminal 17 will also be decreased, the second comparator 50 may generate a PWM signal 56 having a greater pulse width ratio for compensating the loss of the output power or for sustaining or maintaining a constant power gain. On the contrary, the difference between the voltage levels of the high voltage contact or terminal 16 and the low voltage contact or terminal 17 will be increased when the supply voltage is increased, the second comparator 50 may generate a PWM signal 55 having a smaller pulse width ratio for compensating the gain of the output power or for sustaining or maintaining a constant power gain. Accordingly, even when the output power of the power supply is decreased, the power gain may be compensated or sustained or maintained at a constant power gain such that the power supply may still be effectively used and is not required to be discarded or wasted.
Accordingly, the compensated gain control device in accordance with the present invention may be used for providing and sustaining or maintaining a constant power gain by adjusting the duty cycle.
Although this invention has been described with a certain degree of particularity, it is to be understood that the present disclosure has been made by way of example only and that numerous changes in the detailed construction and the combination and arrangement of parts may be resorted to without departing from the spirit and scope of the invention as hereinafter claimed.