Apparatus for differential amplitude pulse width modulation digital-to-analog conversion and method for encoding output signal thereof

09621185 ยท 2017-04-11

Assignee

Inventors

Cpc classification

International classification

Abstract

A differential amplitude pulse width modulation (aPWM) digital to analog converter (DAC) is provided, including an aPWM module for generating differential pulse from an input digital audio data stream, a power driver module for providing energy to a terminal load and a filter for removing unwanted harmonic signal to reconstruct analog signal, wherein the aPWM module further includes a PWM pulse generator to convert the digital input numerical code to a series of time domain pulse width; an amplitude modulation unit, for increasing time domain resolution of the pulse width, and a differential pulse width generator to convert series of PWM pulse into voltage and time domain differential form; the power driver module further comprising a pulse amplitude selector, connected to a power source, and two power stages connected respectively to the pulse amplitude selector.

Claims

1. A differential amplitude pulse width modulation (aPWM) DAC apparatus comprising: an aPWM module for generating differential pulse according to input signals received from an input digital audio data stream; a power driver, connected to said aPWM module; and for providing energy to a terminal load; and a filter, connected between said power driver and said terminal load, for removing unwanted harmonic signal to reconstruct analog signals before outputting to said terminal load; wherein said aPWM module further comprising: a PWM generator to connect and convert said received input signals to a series of pulses having time domain width; an amplitude modulation unit, to receive said input signals to increase the time domain resolution of said pulse width and to generate selection signals SX and SY; and a differential pulse generator, connected to said PWM to receive the series of pulses having time domain width and a positive/negative sign from said PWM generator and convert to differential form defined on voltage domain and time domain to output pulses DN and DP; wherein said power driver further comprising: a pulse amplitude selector, connected to a power source and receiving said selection signals SX and SY from said amplitude modulation unit to determine the amplitude of output pulses from said power source; and two power stages, connected respectively to said pulse amplitude selector and receiving said output pulses DN and DP from said differential pulse generator and outputting a pulse voltage VDN and a pulse voltage VDP.

2. The apparatus as claimed in claim 1, wherein said aPWM module uses a PWM signal coding scheme to determine a number of bits K for an input signal S quantized into an N-bit representation having a 1-bit sign, a J-bit MSB portion and a K-bit LSB portion, wherein N = J + K , K = log 2 .Math. T P T R .Math. , T.sub.P is a minimum pulse width able to pass through said power drive without diminishing and T.sub.R is the minimum time resolution of said input signal S; said aPWM outputs a pulse voltage VDP and a pulse voltage VDN, and for S ranging from (2.sup.N1) to (2.sup.N1), said coding scheme defines output Vo=DPDN so that for any value S, Vo=S*T.sub.R*Vcc.

3. The apparatus as claimed in claim 2, wherein in said coding scheme, said input signal S and said selection signals SX and SY are in binary formats, and: when S<2.sup.K and S>0, SY=S, SX=111 . . . 1, wherein the number of bits of SX is K; when S<2.sup.K and S<=0, SX=S, SY=111 . . . 1, wherein the number of bits of SY is K; when S>=2.sup.K, SX=111 . . . 1, SX=111 . . . 1, wherein the numbers of bits of SX and SY are K.

4. The apparatus as claimed in claim 2, wherein the minimum time resolution T.sub.R has an output voltage at (T.sub.R/T.sub.P)*Vcc, wherein Vcc is the voltage of said power source.

5. A coding method for output signals of differential amplitude pulse width modulation (aPWM) digital-to-analog (DAC) conversion apparatus, comprising the steps of: selecting PWM sample rate M to determine number of bits N required; selecting a minimum pulse-width T.sub.P able to pass through a power driver stage without diminishing; determining a minimum time resolution T.sub.R; determining an number of interpolation resolution bits K for input signal S quantized into an N-bit representation having a 1-bit sign, a J-bit MSB portion and a K-bit LSB portion, wherein N = J + K , K = log 2 .Math. T P T R .Math. , and T.sub.R being the minimum time resolution of said input signal S; and outputting a pulse voltage VDN and a pulse voltage VDP of designated pulse width; wherein pulses DP and DN of designated width; wherein for S ranging from (2.sup.N1) to (2.sup.N1), said coding scheme defines output Vo=DPDN; said input signal S and outputted encoded signals SX and SY are in binary formats, and: when S<2.sup.K and S>0, SY=S, SX=111 . . . 1, wherein the number of bits of SX is K; when S<2.sup.K and S<=0, SX=S, SY=111 . . . 1, wherein the number of bits of SY is K; when S>=2.sup.K, SX=111 . . . 1, SX=111 . . . 1, wherein the numbers of bits of SX and SY are K.

6. The method as claimed in claim 5, wherein the minimum time resolution T.sub.R has an output voltage at (T.sub.R/T.sub.P)*Vcc, wherein Vcc is the voltage of said power source.

Description

BRIEF DESCRIPTION OF THE DRAWINGS

(1) The present invention can be understood in more detail by reading the subsequent detailed description in conjunction with the examples and references made to the accompanying drawings, wherein:

(2) FIG. 1 shows a schematic view of a conventional Class-D amplifier;

(3) FIG. 2 shows a schematic view of a known iPWM digital-to-analog converter (DAC);

(4) FIG. 3 shows a schematic view of an aPWM DAC according to the present invention;

(5) FIG. 4 shows a schematic view of the aPWM module of the aPWM DAC according to the present invention;

(6) FIG. 5 shows a schematic view of the power driver of the aPWM DAC according to the present invention;

(7) FIG. 6 shows a schematic view of input and output signals of the aPWM DAC according to the present invention;

(8) FIG. 7 shows a schematic view of the waveform of the output pulse periodic encoding scheme of the aPWM DAC according to the present invention;

(9) FIG. 8 shows a schematic view of the aPWM DAC according to the present invention based on the encoding ruler of FIG. 7;

(10) FIG. 9 shows a schematic view of the equivalent T.sub.R generation approach for the aPWM DAC according to the present invention;

(11) FIG. 10 shows a schematic view of flowchart of the encoding method for the output signal of the aPWM DAC according to the present invention;

(12) FIG. 11A shows a schematic view of waveform of the encoding scheme of the aPWM DAC according to the present invention; and

(13) FIG. 11B shows a schematic view of waveform of the encoding scheme of the iPWM DAC of U.S. Pat. No. 9,161,122.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

(14) FIG. 3 shows a schematic view of a differential amplitude pulse width modulation (aPWM) DAC according to the invention. As shown in FIG. 3, the aPWM DAC includes an aPWM module 310, a power drive 320 and a filter 30, wherein aPWM module 310 is connected to a digital audio input for receiving a digital audio input signal S. The filter 330 is connected to a terminal load 340, for example, a speaker. The power driver 320 is connected between the aPWM module 310 and the filter 330. The aPWM module 310 generates differential pulse according to the input signal S from the data stream of the digital audio input, the power driver 320 provides power to the terminal load 340 and the filter 330 removes unwanted harmonic signal in the process to reconstruct analog signal outputted to the terminal load 340.

(15) FIG. 4 shows a schematic view of the aPWM module of the aPWM DAC according to the present invention. The aPWM module 310 further includes a PWM generator 311, an amplitude modulation unit 312, and a differential pulse generator 313; wherein the PWM generator 311 converts the received digital audio signal S to a series of pulses Py having time domain width; the amplitude modulation unit 312 receives the digital audio signal S to increase the time domain resolution of the pulse width and generates selection signals SX and SY; and the differential pulse generator 313, connected to the PWM generator 311 to receive the series of pulses Py having time domain width and a positive/negative sign of the input signal S from the PWM generator 311 and convert to differential form defined on voltage domain and time domain, and outputs pulses DN and DP.

(16) It should be noted that the PWM generator 311 can improve the pulse width resolution from T.sub.P to T.sub.R by using the digital phase locked-loop (DLL).

(17) FIG. 5 shows a schematic view of the power driver of the aPWM DAC according to the present invention. The power driver 320 further includes a pulse amplitude selector 321, and two power stages 322. The pulse amplitude selector 321 determines the amplitude of the output pulse according to the selection signals SX and SY generated by the pulse modulation unit 312. In other words, the pulse amplitude selector 321 is connected to a power source Vcc and receives the selection signals SX and SY from the pulse amplitude unit 312 generator to determine the amplitude of output pulses from the power source. The two power stages 322 are connected respectively to the pulse amplitude selector 321, receive the output pulses DN and DP from the differential pulse generator 313 and output a pulse voltage VDN and a pulse voltage VDP. In the present embodiment, the pulse amplitude selector 321 includes a plurality of fixed-current switches connected in parallel, with each switch controlled by one bit of the selection signals SX and SY. Each switch controls the passing of I/n current respectively, where I is the current from Vcc and n is the bit position. Therefore, when the selection signals SX and SY use binary code, the switch allows respectively the passing of I/2, I/4, I/8, . . . , I/n of the current Vcc to corresponding power stage 322.

(18) The pulse amplitude selector 321 is designed to output the pulse amplitude of Vcc when all the switches are on. On the other hand, when only Sn (I/n) switch is on, the output pulse amplitude=Vp, which corresponds to the aPWM DAC output voltage of the minimum time resolution T.sub.R. For the amplitude modulation unit 312, when executing S<2.sup.K, the generated selection signals (SX, SY) are transmitted to the pulse amplitude selector 321 so that S=1 to (2.sup.K1) is linearly mapped onto the pulse amplitude Vp to Vcc.

(19) As aforementioned, the minimum time resolution must reach 122 ps to ensure the SNR is greater than 100 dB. In addition, because of the dead-time and the MOS parasitic capacitance, a small pulse width will be reduced in width when passing the power driver 320. Similarly, T.sub.P is defined the minimum pulse width able to pass the power driver 320 without diminishing and T.sub.R is defined as the minimum time resolution for the input signal. The following will describe how the present invention solves the aforementioned issues.

(20) FIG. 6 shows a schematic view of input and output signals of the aPWM DAC according to the present invention, wherein S is the digital input signal, and VDP and VDN are the output pulse voltage having width and amplitude. In addition, Vo is defined as VDP-VDN, i.e., the difference of the two pulse voltages. The aPWM DAC operates at the timing with a period of T.sub.P. Because the digital input signal S is quantized as N-bit and includes a sign bit, a J-bit MSB portion, and a K-bit LSB portion, wherein

(21) N = J + K , K = log 2 .Math. T P T R .Math. ,
T.sub.R is the minimum time resolution of the input signal S. The number of bits K can be computed by

(22) K = log 2 .Math. T P T R .Math. .

(23) FIG. 7 shows a schematic view of the waveform of the output pulse periodic encoding scheme of the aPWM DAC according to the present invention. As shown in FIG. 7, when S=0, there are two possible encodings. In other words, both VDP and VDN are pulses with width T.sub.P and the same amplitude. Alternatively, both VDP and VDN are pulses with or without width, i.e., no encoding for the pulses, V0=VDPVDN=0. Similarly, for other values of S, Vo=VDPVDN=S*Vcc*T.sub.R.

(24) FIG. 8 shows a schematic view of the aPWM DAC according to the present invention based on the encoding ruler of FIG. 7. As aforementioned, when S<2.sup.K, the pulse amplitude unit 312 executes encoding and outputs selection signals SX and SY. In the present embodiment, the selection signals SX and SY are binary codes. Also referring to FIG. 5 wherein the pulse amplitude selector 321 includes a plurality of fixed-current switches connected in parallel, with each switch controlled by one bit of the selection signals SX and SY. Each switch controls the passing of I/n current respectively, where I is the current from Vcc and n is the bit position. For example, for k=7, when the input signal S=0x65<0x80=2.sup.7, the selection signals SX and SY are encoded as SX=0x7F and SY=0x65; when the input signal S=0x165>0x80=2.sup.7, the selection signals SX and SY are encoded as SX=0x7F and SY=0x7F, wherein SX=0x7F or SY=0x7F indicates that all the switches controlled by SX or SY are on.

(25) FIG. 9 shows a schematic view of the equivalent T.sub.R generation approach for the aPWM DAC according to the present invention. As shown in FIG. 9, in a PWM time slot, the average voltage with respect to the minimum time resolution T.sub.R is:

(26) C = tc td Vcc t = T R * Vcc
A minimum pulse width T.sub.P with amplitude Vp can be found to pass the power driver 320 without diminishing.

(27) D = ta tb Vp t = T P * V P
So that C=D, and Vp=(T.sub.R/T.sub.P)*Vcc.

(28) In other words, the present invention can use the design of pulse amplitude selector 321, and the output pulse voltage Vo=Vp when the corresponding I/n switch is selected to design the aPWM DAC output voltage of the minimum time resolution T.sub.R.

(29) FIG. 10 shows a schematic view of flowchart of the encoding method for the output signal of the aPWM DAC according to the present invention.

(30) As shown in FIG. 10, Step 1001 is to select a PWM sample rate M to determine number of bits N required. For example, for audio bandwidth BW=20 Khz, SNR>100 dB, connecting to a 2 W power drive. When the PWM sample rate is selected as 500 Khz, M=500/20=25. Accordingly, the N can be determined as: SNR=6.02N+20 log(M)11.18 dB, which results in N>13.92. Thus, N is determined to be 14 bits.

(31) Step 1002 is to select a minimum pulse-width T.sub.P able to pass through a power driver without diminishing. Following the above example, T.sub.P is selected as 31.25 ns because in general, the minimum pulse-width is preferably greater than 30 ns.

(32) Step 1003 is to determine the minimum time resolution T.sub.R, as

(33) T R = 1 2 N M BW sec = 1 16384 25 20 K = 122 ps

(34) Step 1004 is to determine a number of amplitude resolution bits K for input signal S quantized into an N-bit representation, which including a 1-bit sign, a J-bit MSB portion and a K-bit LSB portion, wherein

(35) N = J + K , K = log 2 .Math. T P T R .Math. ,
and T.sub.R being the minimum time resolution of the input signal S. Following the above example,

(36) K = log 2 .Math. T P T R .Math. = log 2 .Math. 31.25 ns 122 ps .Math. = 8 - bit .
Thus, J=NK=148=6-bit.

(37) Step 1005 is to output amplitude pulse voltages VDP and VDN of designated pulse width. For example, the pulses can be encoded following the encoding scheme in FIG. 8.

(38) FIGS. 11A and 11B show schematic views of waveform of the encoding scheme of the aPWM DAC according to the present invention, and waveform of the encoding scheme of the iPWM DAC of U.S. Pat. No. 9,161,122, respectively, wherein the waveform of AP and AN signals of iPWM encoding scheme is prone to the impact of the manufacturing process and wiring, and as a result, demanding higher technical requirements of manufacturing process and wiring. In comparison, the present invention is not less affected by the manufacturing process and wiring to generate SNR signals with high stability.

(39) In summary, the differential amplitude pulse width modulation (aPWM) digital-to-analog (DAC) conversion and method for encoding output signal thereof according to the present invention is able to generate differential signals encoded according to the voltage domain and time domain with high SNR.

(40) Although the present invention has been described with reference to the preferred embodiments, it will be understood that the invention is not limited to the details described thereof. Various substitutions and modifications have been suggested in the foregoing description, and others will occur to those of ordinary skill in the art. Therefore, all such substitutions and modifications are intended to be embraced within the scope of the invention as defined in the appended claims.