1. Field of the Invention
The present invention relates to a pulse width modulator for pulse-width modulating (PWM), for example, an audio signal and outputting the modulated signal, and a switching amplifier using the pulse width modulator.
2. Description of the Related Art
Conventionally, Japanese Patent Application Laid-Open No. 2010-273326 proposes, for example, a current-integrated pulse width modulator (hereinafter, simply referred to as “an integrated pulse width modulator”). The integrated pulse width modulator converts an amplitude of an audio signal (voltage signal) into an electric current, charges a capacitor with the electric current for a constant time, and discharges charged electric charges of the capacitor with the constant electric current so as to convert the audio signal into a pulse width modulation signal (hereinafter, referred to as “PWM signal”) whose pulse width is a discharging time of the capacitor.
FIG. 7 is a block diagram illustrating a basic circuit configuration of the integrated pulse width modulator disclosed in Japanese Patent Application Laid-Open No. 2010-273326. FIG. 8 is a diagram illustrating one example of concrete circuits of two pulse signal generation circuits and a pulse signal synthesizing circuit in the pulse width modulator.
An integrated pulse width modulator 100 includes a control signal generation circuit 101, a voltage to current converting circuit 102, four switching circuits SW1 to SW4, two integrators 103 and 104, one discharging circuit 105, two pulse signal generation circuits 106 and 107, and one pulse signal synthesizing circuit 108.
The integrated pulse width modulator 100 generates a PWM signal SPWM according to the following principal such that:
The control signal generation circuit 101 generates a control signal φ1 that is identical to the reference clock MCLK and a control signal φ2 obtained by inverting the level of the reference clock MCLK based on the reference clock MCLK having a predetermined period T. Further, the control signal generation circuit 101 outputs a set signal set1 obtained by detecting fall of the level of the control signal φ1 and a set signal set2 obtained by detecting fall of the level of the control signal φ2. The voltage to current converting circuit 102 is composed of, for example, a circuit for generating a difference voltage of an audio signal es with respect to a ground level through a differential amplifier circuit and converting the difference voltage into an electric current. The switching circuits SW1 to SW4 are composed of semiconductor switches such as bipolar transistors. The integrators 103 and 104 are composed of capacitors having the same capacity (see capacitors C1 and C2 in
The control signals φ1 and φ2 shown in
A waveform of V1 represents a change in a both-end voltage V1 of the capacitor C1 caused by charging the capacitor C1 with an electric current is outputted from the voltage to current converting circuit 102 for a period in which the control signal φ1 is at the high level, and discharging the capacitor C1 with a constant electric current Id through the discharging circuit 105 for a low-level period. A waveform of V2 represents a change in a both-end voltage V2 of the capacitor C2 caused by charging the capacitor C2 with the electric current is outputted from the voltage-current converting circuit 102 for a period in which the control signal φ2 is at the high level, and discharging the capacitor C2 with the constant electric current Id through the discharging circuit 105 for a low-level period.
In pulse width modulation of the audio signal e a reference level (0 V) of an amplitude fluctuation in the audio signal es is allocated to a modulation degree 0 [%] of PWM signal SPWM. When the amplitude is larger than 0 V, a modulation degree m changes in proportion to the amplitude in a positive direction within a range of 0 to 100 [%], and when the amplitude is smaller than 0 V, the modulation degree m changes in proportion to the amplitude in a negative direction within the range of 0 to 100 [%].
The electric current is outputted from the voltage to current converting circuit 102 is expressed by is=Io±k·|es|. When the amplitude of the audio signal es is 0 (no signal), an electric current I0 is outputted from the voltage to current converting circuit 102. The waveforms of V1 and V2 in
The pulse signal S1 is a signal outputted from a /Q output of the pulse signal generation circuit (the /RS flip-flop circuit) 106 shown in
Since the control signal φ3 is such that the level of the pulse signal S1 is inverted, it becomes a pulse signal that is at the high level for the discharge time td of the capacitor C1. Since the pulse signal generation circuit (the /RS flip-flop circuit) 107 also operates similarly to the pulse signal generation circuit (the /RS flip-flop circuit) 106, the pulse signal S2 has a rectangular wave such that it is at the low level for a discharge time td′ of the capacitor C2, and the control signal φ4 becomes a pulse signal that is at the high level for the discharge time td′ of the capacitor C2.
A PWM signal SPWM is a signal that is outputted from the pulse signal synthesizing circuit 108. Since the pulse signal synthesizing circuit 108 outputs a calculated result of NAND of the pulse signal S1 and the pulse signal S2, the pulse signal synthesizing circuit 108 outputs the PWM signal SPWM that is synthesized so that pulses of the pulse signal S1 and pulses of the pulse signal S2 are connected alternately. When the high-level period is denoted by T1 and the low-level period is denoted by T2, the modulation degree m of PWM signal SPWM is expressed by:
m=|T1−T2|×100/(T1+T2) [%].
The integrated pulse width modulator 100 is configured so that when a common-mode noise or a distortion in a time axial direction occurs in a process that the PWM signal is generated from the audio signal es, an error component {ts caused by the noise or the distortion is directly generated.
The conventional integrated pulse width modulator 100 is configured so that both the two integrators 103 and 104 are charged with the same electric current is. For this reason, when a common-mode noise occurs and an error component Δis is mixed in the electric current is, both the pulse widths of the pulse signals S1 and S2 generated by the pulse signal generation circuits 106 and 107, respectively include an error Δts on basis of the error component Δis. Since the PWM signal SPWM is a NAND signal of the pulse signal S1 and the pulse signal S2, the error component Δts of the pulse signals S1 and S2 is superimposed on the modulation degree m of the PWM signal SPWM, and the PWM signal becomes a signal on which a common-mode noise or harmonics is superimposed.
It is an object of the present invention to provide a pulse width modulator for accurately performing PWM conversion without an influence on common-mode noise or a distortion, and a switching amplifier using the pulse width modulator.
A pulse width modulator of the present invention comprising: a first voltage to current converting section for converting an AC voltage signal to be inputted into a first electric current expressed by a linear function having an inclination proportional to an amplitude of the AC voltage signal; a second voltage to current converting section for converting the AC voltage signal into a second electric current having an inclination opposite to the first electric current; a first charging/discharging control section for repeating a charging/discharging operation for charging a first electric charge storage section with the first electric current for a predetermined time and discharging the electric charges stored in the first electric charge storage section with a predetermined constant current in a period twice as long as the predetermined time; a second charging/discharging control section for repeating a charging/discharging operation for charging a second electric charge storage section with the second electric current for the predetermined time and discharging the electric charges stored in the second electric charge storage section with the predetermined constant current in the period with shifting the predetermined time for the charging/discharging operation of the first electric charge storage section through the first charging/discharging control section; a first discharge timing detecting section for detecting the discharge end timing every time when the discharge of the stored electric charges in the second electric charge storage section is ended; a second discharge timing detecting section for detecting the discharge end timing every time when the discharge of the stored electric charges in the first electric charge storage section is ended; and a pulse width modulation signal generation section for generating a pulse whose pulse width is a time interval between a first discharge end timing detected by the first discharge timing detecting section and a subsequent second discharge end timing detected by the second discharge timing detecting section, and outputting a signal of a pulse string as a pulse width modulation signal.
Preferably, the first voltage to current converting section includes a differential amplifier circuit which the AC voltage signal is inputted into its one input, and which a feedback signal that is fed back in order to correct the AC voltage signal is inputted into the other input or whose the other input is set to the reference level of the AC voltage signal, and a first electric current generation circuit for generating an electric current proportional to one of the output voltages from the differential amplifier circuit, the second voltage to current converting section includes the differential amplifier circuit, and a second electric current generation circuit for generating an electric current proportional to the other output voltage from the differential amplifier circuit.
Preferably, the first charging/discharging control section includes a first control signal generation section for outputting a first control signal composed of a clock signal having the period and a first detection signal for detecting a timing at which a level of the first control signal is inverted to a predetermined direction, a second control signal generation section for generating a second control signal composed of a pulse signal whose pulse width is a discharge time of the first electric charge storage section based on the first detection signal and a level of a discharging voltage of the first electric charge storage section, a first switching section that is provided between the first voltage to current converting section and the first electric charge storage section, and controls connection between the first voltage to current converting section and the first electric charge storage section according to the first control signal, a first discharging section that is provided between the first electric charge storage section and a ground line or a power supply line, and discharges the stored electric charges of the first electric charge storage section with the predetermined constant current to the ground line or the power supply line when the first discharging section is connected to the first electric charge storage section, and a second switching section that is provided between the first electric charge storage section and the first discharging section, and controls connection between the first electric charge storage section and the first discharging section according to the second control signal, the second charging/discharging control section includes a third control signal generation section for outputting a third control signal obtained by inverting a level of the first control signal, and a second detection signal for detecting a timing at which a level of the third control signal is inverted to the predetermined direction, a fourth control signal generation section for generating a fourth control signal composed of a pulse signal whose pulse width is a discharge time of the second electric charge storage section based on the second detection signal and a level of a discharging voltage of the second electric charge storage section, a third switching section that is provided between the second voltage to current converting section and the second electric charge storage section, and controls connection between the second voltage to current converting section and the second electric charge storage section according to the second control signal, a second discharging section that is provided between the second electric charge storage section and a ground line or a power supply line, and discharges the stored electric charges of the second electric charge storage section into the ground line or the power supply line with the predetermined constant current when the second discharging section is connected to the second electric charge storage section, a fourth switching section that is provided between the second electric charge storage section and the second discharging section, and controls connection between the second electric charge storage section and the second discharging section according to the fourth control signal.
Preferably, the first control signal generation section and the second control signal generation section are composed of a control signal generation circuit including a reference clock generation circuit for generating a reference clock having the period, and outputting the reference clock as the second control signal, a level inverting circuit for inverting a level of the reference clock so as to output the reference clock as the first control signal, a first differentiator for, when the level of the reference clock is inverted into the predetermined direction, outputting a signal having a differentiated waveform of the level change as the second detection signal, and a second differentiator for, when a level of a signal outputted from the level inverting circuit is inverted into a predetermined direction, outputting a signal having a differentiated waveform of a level change as the first detection signal.
A switching amplifier of the present invention comprising: the above pulse width modulator; a voltage supply for outputting a predetermined power supply voltage; and a switching circuit for switching a predetermined power supply voltage supplied from the voltage supply based on a pulse width modulation signal output from the pulse width modulator.
According to the present invention, when a first electric current i1 is such that i1=Io+A·|es| (Io denotes a current value at the time of no signal, A denotes a conversion conductance, and es denotes an AC voltage signal to be inputted), a second electric current i2 is expressed by i2=Io−A·|es|. A discharge time t1 for which a first electric charge storage section is charged with the first electric current i1 for a predetermined time t and then is discharged with a predetermined constant current is proportional to a level of the first electric current i1. For this reason, when a component proportional to Io is denoted by t/2, and a component proportional to A·|es| is denoted by Δt, the discharge time t1 is expressed by t1=t/2+Δt. Similarly, a discharge time t2 for which a second electric charge storage section is charged with the second electric current i2 for the predetermined time t and then is discharged with the predetermined constant current is expressed by t2=t/2−Δt.
The charge/discharge operation of the first electric charge storage section and the charge/discharge operation of the second electric charge storage section are performed with them being shifted by ½ of a period T=2·t (t denotes a predetermined charging time) from each other. For this reason, the discharge of the second electric charge storage section and the discharge of the first electric charge storage section are started alternately at time intervals t. Therefore, a time t3 between discharge end timing of the second electric charge storage section and subsequent discharge end timing of the first electric charge storage section is expressed by t3=(t−t2)+t1=t+2·Δt. Further, a time t4 between the discharge end timing of the first electric charge storage section and the discharge end timing of the second electric charge storage section is expressed by t4=2·t−t3.
Therefore, when a pulse whose pulse width is the time t3 is outputted as a pulse width modulation signal, according to t3−t4=t+2·Δt−2·t+(t+2·Δt)=4·Δt, and t3+t4=2·t, the modulation degree m of the pulse width modulation signal becomes:
When an error time caused by a common-mode noise or a distortion is denoted by tn, a discharge times t1′ of the first electric charge storage section is expressed by t1′=t1+tn, and a discharge time t2′ of the second electric charge storage section is expressed by t2′=t2+tn. When the error time t, caused by a common-mode noise or a distortion is generated, a time t3′ between the discharge end timing of the second electric charge storage section and the subsequent discharge end timing of the first electric charge storage section is expressed by t3′=(t−t2′)+t1′=t−t2−tn+t1+tn=t−t2+t1=t+2·t. A time t4′ between the discharge end timing of the first electric charge storage section and the discharge end timing of the second electric charge storage section is expressed by t4′=2·t−t3′.
Because of t3′−t4′=(t+2·Δt)−2·t+(t+2·Δt)=4·Δt and t3′+t4′=(t+2·Δt)+2·t−(t+2·Δt)=2·t, even when the error time t, caused by a common-mode noise or a distortion is generated, a modulation degree m′ of a pulse width modulation signal is expressed by:
and a pulse width modulation signal from which the error time tn is removed is obtained.
Preferred embodiments of the present invention will be concretely described with reference to the accompanying drawings.
The integrated pulse width modulator 1 includes two voltage to current converting circuits 2A and 2B, four switching circuits SW1 to SW4, two integrators 3 and 4, one discharging circuit 5, two pulse signal generation circuits 6 and 7, a PWM signal generation circuit 8, and a control signal generation circuit 9.
The voltage to current converting circuit 2A, the switching circuits SW1 to SW4, the integrators 3 and 4, the discharging circuit 5, the pulse signal generation circuits 6 and 7, and the control signal generation circuit 9 correspond to the voltage to current converting circuit 102, the switching circuits SW1 to SW4, the integrators 103 and 104, the discharging circuit 105, the pulse signal generation circuits 106 and 107 and the control signal generation circuit 101 of the conventional integrated pulse width modulator 100 shown in
Therefore, the integrated pulse width modulator 1 shown in
The voltage to current converting circuit 2A converts an input audio signal es into an electric current is1 expressed by is1=I0±k·|es|, whereas the voltage to current converting circuit 2B converts k·|es| into an electric current is2 added to IO with a symbol being opposite to the voltage to current converting circuit 2A. That is to say, when 0<es, the voltage to current converting circuit 2A outputs the electric current is1 of Io+k·|es|, but the voltage to current converting circuit 2B outputs the electric current is2 of Io−k·|es|. When es<0, the voltage to current converting circuit 2A outputs the electric current is1 of Io−k·|es|, but the voltage to current converting circuit 2B outputs the electric current is2 of Io+k·‘es|.
The electric current is1 for charging the integrator 3 and the electric current is2 for charging the integrator 4 establish a relationship such that when one of them is Io+k·|es|, the other one is I0−k·|es|. As a result, when a component of pulse widths t1 and t2 of pulse signals S1 and S2 generated by the pulse signal generation circuits 6 and 7 through an electric current Io is denoted by t0 and a component of pulse widths t1 and t2 through an electric current k·|es| is denoted by t one of the pulse widths t1 and t2 can be to +is and the other one can be t0−ts.
When the pulse widths t1 and t2 include a common-mode noise or a distortion in a time axial direction in a process for generating the time t from the audio signal es, they include an error component tn due to the distortion. The PWM signal generation circuit 8 synthesizes the pulse signal S1 outputted from the pulse signal generation circuit 6 and the pulse signal S2 outputted from the pulse signal generation circuit 7 so that the error component tn is canceled, and generates a PWM signal SPWM that does not include harmonics causing a common-mode noise or a common-mode distortion.
A rise portion on the waveform of V1 indicates a change in V1 at a time when electric charges are stored in the integrator 3 by the electric current is1 outputted from the voltage to current converting circuit 2A, and a fall portion indicates a change in V1 at a time when the stored electric charges in the integrator 3 are discharged by a constant electric current Id. Similarly, a rise portion on the waveform of V2 indicates a change in V2 at a time when electric charges are stored in the integrator 4 by the electric current is2 outputted from the voltage to current converting circuit 2B, and a fall portion indicates a change in V2 at a time when the stored electric charges in the integrator 4 are discharged by the constant electric current Id. Waveforms indicated by dotted lines of the waveforms of V1 and V2 represent the changes in V1 and V2 at the time when es=0 (no signal).
Since the discharge times t1 and t2 of the electric charges in the integrators 3 and 4 are proportional to the electric currents is1 and is2, they can be expressed by t1=K·is1=K·(I0+k·|es|) (K is proportionality coefficient), and t2=K·is2=K·(I0−k·|es|). When es=0, t1=t2=K·Io=t0=t/2. For this reason, when an error component in is not present, the discharge times t1 and t2 at a time when es≠0 are expressed by t1=t0+ts=(t+2·ts)/2, and t2=t0−ts=(t−2·ts)/2 (ts is a fluctuation component based on an amplitude of the audio signal es). In
When pulse widths of the pulse signals S1 and S2 in a case where the error component in is generated are denoted by t1′ and t2′, the pulse widths t1′ and t2′ are expressed by t1′=t1+tn, and t2′=t2+tn. “tn” denotes variations of the discharge times t1 and t2 of the integrators 3 and 4 on a basis of an error component.
The waveforms of V1 and V2 shown in
The integrated pulse width modulator 1 outputs a pulse P1 of a pulse width t1′ and a pulse P2 of a pulse width t2′ alternately in a period t as indicated by the waveforms of the pulse signals S1 and S2 in
In the waveform chart in
Because of tPWM=t+t1−t2=t+2·ts according to t1′=t1+tn, t2′=t2+tn, the period T′ of the PWM signal SPWM is 2·t, and the modulation degree mPWM of PWM signal SPWM is such that, m=[|t+2·ts−2·t+t+2·ts)|/(2·t)]×100=[2·ts/t]×100, and the above condition is satisfied. Therefore, the PWM signal SPWM obtained by synthesizing the pulse signal S1 and the pulse signal S2 according to the above method is PWM signal where the error component in is canceled.
A discharge timing detection circuit 81 in the PWM signal generation circuit 8 is a circuit for detecting the fall timing of the pulse P1 (discharge end timing of the integrator 3) and the fall timing of the pulse P2 (discharge end timing of the integrator 4). Further, a pulse generation circuit 82 in the PWM signal generation circuit 8 is a circuit for generating a pulse whose pulse width is the time between the fall timing of the pulse P2 and the fall timing of the pulse P1 using a signal obtained by detecting the fall timing of the pulses P1 and P2 through the discharge timing detection circuit 81, and outputting the pulse as the PWM signal SPWM.
In the PWM signal SPWM that is generated by synthesizing the pulse signal S1 and the pulse signal S2 according to the above method, since the modulation degree mPWM=[2·ts/t]×100 becomes “0” at the time of no signal (es=0), generation of an offset voltage can be also prevented.
The control signal generation circuit 9 includes a clock 9a for generating a reference clock MCLK, an inverter 9b for inverting a level of the reference clock MCLK, a differentiator 9c for detecting a fall timing of the reference clock MCLK, and a differentiator 9d for detecting a fall timing of a signal obtained by inverting the level of the reference clock MCLK.
The clock 9a, as shown in
The differentiator 9c and the differentiator 9d are CR circuits having the same configuration composed of an L-shaped circuit including a capacitor and a resistor. The differentiator 9c is provided between the clock 9a and an output terminal SET1. Every time when the control signal φ2 (the reference clock MCLK) falls, the differentiator 9c outputs a signal, which is obtained by detecting a change in the level (a signal that changes instantly into a low level from a high level and returns to the high level in a differentiation waveform of the level change) as a set signal set1 from the output terminal SET1 (see the waveform of set1 in
The two voltage to current converting circuits 2A and 2B are composed of a differential amplifier circuit 201, and two current generation circuits 202a and 202b. The differential amplifier circuit 201 is a known differential amplifier circuit such that collectors of two transistors Q1 and Q2 having the same characteristics are connected to a positive power supply +Vcc by resistors R1 and R2 having the same characteristics, whereas emitters of the transistors Q1 and Q2 are connected to a constant current circuit 201a by resistors R3 and R4 having the same characteristics. The constant current circuit 201a is a known constant current circuit using a pnp type transistor Q3. An emitter of the transistor Q3 is connected to a negative power supply −Vcc via a resistor R5. In the constant current circuit 201a shown in
The audio signal es is inputted into a base of the transistor Q1 of the differential amplifier circuit 201, and a base of the transistor Q2 is set to a reference level of the audio signal es (in this embodiment, the ground level). Two output voltages vout1, vout2 of the differential amplifier circuit 201 are outputted from the transistors Q1 and Q2, respectively. A difference voltage (vout1−vout2) between the voltage vout1 and the voltage vout2 is obtained by amplifying a difference voltage es between two input voltages es, 0 [v] (ground level).
When electric currents flowing in collectors of the transistors Q1 and Q2 of the differential amplifier circuit 201 are denoted by i1 and i2, respectively, and an electric current supplied from the power supply +V is denoted by Icc, a relationship such that i1+i2=Icc is established. Further, when resistances of the resistors R1 and R2 are denoted by r, the two output voltages (collector voltages of the transistors Q1 and Q2) vout1 and vout2 of the differential amplifier circuit 201 are expressed by vout1=Vcc−r·i1 and vout2=Vcc−r·i2, respectively.
Because of vout1−vout2=G·es (G: gain), according to r·(Icc−2·i1)=G·es, the electric currents i1 and i2 are expressed by:
i
1
=I
cc/2−|G·es|/(2·r)=Ic−Δi
i
2
=I
cc
−i
1
=I
cc/2+|G·es|/(2·r)=Ic+Δi.
Here, Ic=Icc/2, |G·es|/(2·r)=Δi. When the audio signal es is a reference level (0 [v]) (no signal), according to vout1−vout2=r·(Icc−2·i1)=0, Ic is the electric currents flowing in the resistors R1 and R2 at the time of no signal.
When the electric currents i1 and i2 are assigned to the above formulas of the output voltages vout1 and vout2, the output voltages vout1 and vout2 are expressed by:
Here, Vc=(Vcc−r·Ic), and Δvs=r·Δi=G·|es|/2, and Vc denotes a voltage to be outputted at the time of no signal.
The current generation circuits 202a and 202b are composed of collector ground circuits having the same configurations using pnp type transistors Q4 and Q5, respectively. Emitters of the transistors Q4 and Q5 are connected to the positive power supply +Vcc via the switching circuits SW1 and SW3 using npn type transistors Q6 and Q7, respectively, and collectors of the transistors Q4 and Q5 are connected to the integrators 3 and 4 using capacitors C1 and C2, respectively. The voltage vout1 and the voltage vout2 outputted from the differential amplifier circuit 201 are inputted into bases of the transistor Q4 and the transistor Q5, respectively. Further, the control signal φ1 is inputted into a base of the transistor Q6, and the control signal φ2 is inputted into a base of the transistor Q7.
The current generation circuit 202a converts the input voltage vout1 into the electric current is1 that changes in proportion to a change in the voltage. The current generation circuit 202b converts the input voltage vout2 into the electric current is2 that changes in proportion to a change in the voltage. When conversion conductance of the current generation circuits 202a and 202b is denoted by Gm, the electric currents is1 and is2 to be outputted from the current generation circuits 202a and 202b, respectively, are expressed by:
i
s1
=Gm·v
out1
=Gm·(Vc+Δvs)=Io+Δis
i
s2
=Gm·v
out2
=Gm·(Vc−Δvs)=Io−Δis.
Here, Io=Gm·Vo, Δis=Gm·Δvs=Gm·G·|es|/2=k·|es|(k=Gm·G/2), and Io denotes an electric current output at the time of no signal.
Since the transistor Q6 of the switching circuit SW1 and the transistor Q7 of the switching circuit SW2 are active at the low level, the switching circuit SW1 is ON in the term where the control signal φ1 is at the low-level, and is OFF in the term of the high level. Further, the transistor Q7 of the switching circuit SW3 is ON in the term in which the control signal φ2 is at the low level, and is OFF in the term of the high level. Therefore, the current generation circuit 202a is connected to the positive power supply +Vcc only in the term in which the control signal φ1 is at the low level, and outputs the electric current is1 to the integrator 3 (the capacitor C1 is charged). The current generation circuit 202b is connected to the positive power supply +Vcc only in the term in which the control signal φ2 is at the low level, and outputs the electric current is2 to the integrator 4 (the capacitor C2 is charged).
As a result, the voltages V1 and V2 of the capacitors C1 and C2 rise from a reference level Vth (=0 [V]) to predetermined levels Vj1 and Vj2 (hereinafter, referred to as “charging voltages” of this level). Since a charging voltage Vj at a time when a capacitor of capacitance C is charged with an electric current I for a time T is such that Vj=I×T, the voltage V1 of the capacitor C1 rises to Vj1=is1·t=(Io+Δis)·t, and the voltage V2 of the capacitor C2 rises to Vj2=is2·t=(Io−Δis)·t (see rise portions of the waveforms of V1 and V2 in
A connecting point A between the integrator 3 and the current generation circuit 202a is connected to the negative power supply −Vcc via a series circuit configured by the discharging circuit 5A and the switching circuit SW2. A connecting point B between the integrator 4 and the current generation circuit 202b is connected to the negative power supply −Vcc via a series circuit configured by the discharging circuit 5B and the switching circuit SW4.
The discharging circuits 5A and 5B have the same circuit configuration as that of the constant current circuit 201a of the differential amplifier circuit 201. Since the power supply E for the reference voltage of the constant current circuit 201a is commonly used for the reference voltages of the discharging circuits 5A and 5B, the power supply E is connected also to transistors Q8 and Q9 of the discharging circuits 5A and 5B. The switching circuits SW2 and SW4 are semiconductor switches using pnp type transistors Q10 and Q11, respectively. Since drive voltage of the switching circuits SW1 and SW3 is positive power supply voltage +Vcc, npn type transistors are used. Since drive voltage of the switching circuits SW2 and SW4 is negative power supply voltage −Vcc, pnp type transistors are used. The switching circuits SW1 to SW4 have the same characteristics.
A control signal φ3 outputted from the pulse signal generation circuit 6 is inputted into a base of the transistor Q10, and a control signal φ4 outputted from the pulse signal generation circuit 7 is inputted into a base of the transistor Q11. As shown in
Since the transistor Q10 and the transistor Q11 are active at the high level, the switching circuit SW2 is ON in the term in which the control signal φ3 is at the high level, and is OFF at in low-level term. Further, the switching circuit SW4 is ON in the term in which the control signal φ4 is at the high level, and is OFF in the low-level term. Therefore, the discharging circuit 5A is connected to the negative power supply −Vcc in the term in which the control signal φ3 is at the high level, and the stored electric charges of the integrator 3 are discharged with the constant electric current Id. The discharging circuit 5B is connected to the negative power supply −Vcc in the term in which the control signal φ4 is at the high level, and the stored electric charges of the integrator 4 are discharged with the constant electric current Id (see fall portions on the waveforms of V1 and V2 in
The pulse signal generation circuits 6 and 7 are composed of known /RS flip-flop circuits using two NAND circuits. The voltage V1 of the capacitor C1 and the set signal set1 outputted from the control signal generation circuit 9 are inputted into a /R input and an /S input of the pulse signal generation circuit 6, respectively. The voltage V2 of the capacitor C2 and the set signal set2 outputted from the control signal generation circuit 9 are inputted into a /R input and an /S input of the pulse signal generation circuit 7, respectively. The control signal φ3 is outputted from a Q output of the pulse signal generation circuit 6, and the control signal φ4 is outputted from a Q output of the pulse signal generation circuit 7.
In the /RS flip-flop circuit using a NAND circuit, when an input of (/S, /R) is maintained in a state of (high, high), an output of (Q, /Q) is maintained in a state of (high, low). In this state, a signal for a low level is inputted into the /R input, and the /RS flip-flop circuit converts the output state of (Q, /Q) into (low, high). A signal for a low level is then inputted into the /S input, and the /RS flip-flop circuit converts the output state of (Q, /Q) into (high, low).
Therefore, in the pulse signal generation circuit 6, when fall of the control signal φ2 is detected and the set signal set1 that is instantly at the low level is inputted into the /S input, the output state of (Q, /Q) is made to be (high, low). When the voltage V1 of the capacitor C1 inputted as a reset signal into the /R input is lowered to the reference level Vth (a threshold level of the /RS flip-flop circuit) due to discharge, the output state of (Q, /Q) is made to be (low, high). Further, in the pulse signal generation circuit 7, when the fall of the control signal φ1 is detected and the set signal set2 that is instantly at the low level is inputted into the /S input, the output state of (Q, /Q) is made to be (high, low). When the voltage V2 of the capacitor C2 inputted as a reset signal into the /R input is lowered to the reference level Vth due to discharge, the output state of (Q, /Q) is made to be (low, high).
The set signal set1 and the voltage V1 that is lowered to the reference level Vth are inputted alternately to the pulse signal generation circuit 6, but the input timing of the set signal set1 is the discharge start timing of the capacitor C1. For this reason, a pulse signal that is at the high level for the discharge time t1 of the capacitor C1 is outputted as the control signal φ3 from the Q output of the pulse signal generation circuit 6 (see the waveform of φ3 in
The PWM signal generation circuit 8 is composed of two differentiators 8a and 8b and a /RS flip-flop circuit 8c using a NAND circuit. The two differentiators 8a and 8b correspond to the discharge timing detection circuit 81, and the /RS flip-flop circuit 8c corresponds to the pulse generation circuit 82. The differentiators 8a and 8b have the same circuit configuration as that of the differentiator 9c and 9d of the control signal generation circuit 9.
The differentiator 8a detects fall timing of a signal outputted from the Q output of the pulse signal generation circuit 6. The differentiator 8b detects a fall timing of a signal outputted from the Q output of the pulse signal generation circuit 7. The signal outputted from the Q output of pulse signal generation circuit 6 corresponds to the pulse signal S1. The signal outputted from the Q output of pulse signal generation circuit 7 corresponds to the pulse signal S2. Therefore, the differentiator 8a outputs the signal obtained by detecting the level change every time when the pulse signal S1 falls (the signal that instantly changes from the high level into the low level) (see a waveform of edge1 in
The /RS flip-flop circuit 8c has the same circuit configuration as that of the /RS flip-flop circuits of the pulse signal generation circuits 6 and 7. The signal edge1 outputted from the differentiator 8a is inputted into a /R input of the /RS flip-flop circuit 8c. The signal edge2 outputted from the differentiator 8b is inputted into a /S input of the /RS flip-flop circuit 8c. The PWM signal SPWM is outputted from the Q output of the /RS flip-flop circuit 8c.
In the /RS flip-flop circuit 8c, the signal edge1 is inputted into the /R input, and the output state of (Q, /Q) is changed into (low, high). The signal edge2 is inputted into the /S input, and the output state of (Q, /Q) is changed into (high, low). The signal edge1 and the signal edge2 are inputted into the PWM signal generation circuit 8 alternately, but the input timing of the signal edge2 is discharge end timing of the capacitor C2, and the input timing of the signal edge1 is the discharge end timing of the capacitor C1. For this reason, a pulse signal, whose pulse width is the time between the discharge end timing of the capacitor C2 (corresponding to timing a in
The pulse width tPWM of the PWM signal SPWM outputted from the PWM signal generation circuit 8 is, as shown in
In the conventional integrated pulse width modulator 100, when a frequency is higher, a distortion factor tends to be gradually deteriorated. In the integrated pulse width modulator 1 of the present invention, however, a total harmonic distortion+noise is greatly improved with respect to the conventional integrated pulse width modulator 100, distortion characteristics are approximately flat, and thus the total harmonic distortion+noise is not deteriorated in proportion to an increase in the frequency. Therefore, according to the integrated pulse width modulator 1 of the present invention, quality of a reproduction sound of the PWM signal SPWM can be greatly improved.
A switching amplifier 10 is configured so that a switching circuit 11 and a low-pass filter 12 are connected at a rear stage of the integrated pulse width modulator 1, and a reproduction sound of the PWM signal S PWM outputted from the low-pass filter 12 is supplied to a speaker as a load RL.
The switching circuit 11 is configured so that a series circuit of a switch element SW-A and a switch element SW-B is connected between a first power supply 13 for supplying a positive power supply voltage +EB and a second power supply 14 for supplying a negative power supply voltage −EB. The switching circuit 11 performs an ON-OFF operation on the switch element SW-A and the switch element SW-B alternately, and amplifies an amplitude of a control signal for controlling the ON- OFF operation of the switch element SW-A into an amplitude of a difference voltage 2·EB between the voltage +EB and the voltage −EB so as to output the amplified signal.
The ON- OFF operation of the switch element SW-A is controlled by the PWM signal SPWM outputted from the integrated pulse width modulator 1, and the ON-OFF operation of the switch element SW-B is controlled by a PWM signal/SPWM obtained by inverting the level of the PWM signal SPWM through an inverter. Therefore, a signal obtained by amplifying the amplitude of the PWM signal SPWM into an amplitude of the difference voltage 2·EB between the power supply +EB and the power supply −EB is outputted from the switching circuit 11, and this signal is reproduced into a waveform of the audio signal es to be inputted into the integrated pulse width modulation circuit 1 by the low-pass filter 12 so that an audio is outputted from the speaker (load RL).
The period of the PWM signal SPWM generated by the conventional integrated pulse width modulator 100 is ½ of the period T of the reference clock MCLK, whereas the period of the PWM signal SPWM generated by the integrated pulse width modulator 1 of the present invention is the same as the period of the reference clock MCLK. Therefore, when the PWM signal SPWM with the same period as that of the conventional integrated pulse width modulator 100 is desired to be generated, the period of the reference clock MCLK may be set to be ½.
The above embodiment describes the circuit configuration for changing the charging voltages Vj of the capacitors C1 and C2 from the reference level Vth to the + direction, but the present invention can be applied also to the circuit configuration for changing the charging voltages Vj of the capacitors C1 and C2 from the reference level Vth to a minus direction. Therefore, the waveforms of respective signals shown in
The integrated pulse width modulator 1 of the present invention is characterized by:
Therefore, the configuration that can realize above (A) to (C) enables adoption of any circuit elements and circuit configurations. For example, the integrator is not limited to capacity elements but can use various electronic parts for enabling storage of electric charges with the electric currents is1 and is2. Further, in
Number | Date | Country | Kind |
---|---|---|---|
2012-286699 | Dec 2012 | JP | national |