CONVERSION OF A PCM SIGNAL INTO A UPWM SIGNAL

Abstract: To correct non-linearity and noise in the conversion of a pulse code modulated signal (PCM) into a uniform pulse width modulated signal (UPWM), a model is made of the known non-linearity in the conversion by dividing a plurality of non-linearity components in the model, where the polynomial components are separately weighted with filter coefficients. The model is used as a basis for the construction of a filter of the Hammerstein type whose non-linear parts consist of a division of the PCM signal into a plurality of powers, and whose linear parts are approximated by means of the model made. With the circuit of the invention it is now possible to construct a purely digital amplifier which has a great efficiency, low weight, etc.

Description: CONVERSION OF A PCM SIGNAL INTO A UPWM SIGNAL The invention relates to a method for use in the correc ¬ tion of non-linearity and noise m the conversion of a PCM signal into a UPWM signal. Such a conversion of a digital signal into a pulse width modulated signal may advantageously be used in connection with power amplifiers which are of the class D type. In connection with digital sound sources, such as compact disc players, where the sound signals are pulse code modulated, a conversion of the pulse code modulation nto pulse width modulation will make it extremely suitable for the connection of a class D amplifier. The class D amplifier primarily has the advantage that it has a very high efficiency, which means that it may be constructed with a low weight while maintaining an extremely high output power, it being possible to achieve an efficiency of almost 95% for a class D amplifier. Further, connec¬ tion of a digital sound source and a class D amplifier will allow analog signal processing to be avoided, which is an advantage in the signal processing. Thus, it is desirable to be able to convert a pulse code modulated signal into a pulse width modulated signal without the information in the pulse code modulating sig¬ nal being changed in the conversion. It has been known for many years that the conversion of a pulse code modulation signal into a pulse width modulated signal is non-linear by nature. Several methods have been proposed in the course of time for the correction of this non-linearity, which is funda¬ mentally necessary if a digital sound source, such as a compact disc player, is to be used in connection with an amplifier to which a pulse width modulated signal is fed as an input signal. In addition to the inevitable non-linearity, the conver¬ sion of the pulse code modulation signal into the pulse width modulation signal generates noise which also has to be corrected if the oπgnal information from a digital sound source is to be reproduced correctly. This noise occurs since the PWM signal is desirably formed as a digital signal, which means that all level switchings take place synchronously with a bit clock which has a limited frequency. Thus, the UPWM signal must be capable of being formed by a digital circuit which gives rise to a coarse quantization and thereby noise. Examples of methods for the elimination of error sources which occur if a pulse code modulation signal is con¬ verted into a pulse width modulated signal include: Use of oversampling, which means that the switching fre ¬ quency is considerably greater than is necessary accord¬ ing to the sampling theorem in the generation of the pulse width modulated signal which is used in the pulse code modulation. However, too strong oversampling is not desirable in practical uses, because this inevitably cre¬ ates noise. Problems will primarily occur with a class D output stage which is to switch correspondingly rapidly. Although, as mentioned above, the noise, also called quantization noise, can be reduced using so-called noise shaping, where the quantization noise at high frequencies is amplified, while the noise from the lower frequencies is removed, but the interaction of the quantization noise with the non-linear pulse width modulation gives rise to so-called intermodulation noise, causing a new error source called intermodulation noise (IM noise) to be gen¬ erated by noise shaping, which means that the advan¬ tageous effect of the noise shaping is reduced. The published international patent application No. WO 92/15153 discloses a method of correcting non-linearity and correcting deterministic distortion as well as inter¬ modulation noise. The document describes a plurality of complex circuits including look-up tables, used for the determination of parameters, for use m the feedback to suppress the deterministic distortion and the inter¬ modulation noise. In practice, however, it is necessary to use look-up tables of a considerable extent, which will hardly be easy to implement, in connection with pulse code modulation signals of 16-24 bits. The published international patent application No. WO 92/11699 discloses an equalization method based on an imitation of the naturally sampled PWM. The method has no effect on the inevitably occurring intermodulation noise as well as possible noise which is generated if a so- called quasι-s * y * τrιmetrιcal uniform pulse width modulation is used. Further, the method cannot be applied in connec¬ tion with all UPWM forms (e.g. double-sided, symmetri¬ cal) . As a starting point for the invention it is desired to provide a new and better method of modelling, and thereby also predicting, the non-linearity of a pulse code modu¬ lation to a pulse width modulation conversion process. As will appear from the following, it has been found that the use of so-called Hammerstein filters, which generally consist of a static non-linearity followed by a linear, time invariant filter, is extremely suitable for the cor- rection of several of the error sources which occur in pulse code modulation to pulse width modulation. Of these error sources, m particular the following four ones are interesting in connection with the present m- vention: 1. Quantization noise because of the time discretization of pulse width information. 2. Intermodulation noise which is created by the uniform pulse width modulation because of quantization and noise shaping. 3. Noise because of the use of quasi-symmetrical uniform pulse width modulation. 4. Deterministic harmonic distortion. Thus, it is desirable to provide some correction circuits which each are directed to the above-mentioned error sources 1-4. As will appear from the following, the error sources 1-3 will be corrected by simple feedback circuits, while the error source 4 will be corrected by signal feedforward. The object of the invention is to provide a method for use in the correction of the errors which occur in the conversion of pulse code modulation into a pulse width modulation, thereby minimizing non-linearities and noise which inevitably occur in connection therewith. The object is achieved by designing a model circuit for the known non-linearity in the PCM to UPWM conversion, said model circuit being formed by parallel-connected Hammerstein filters which divide the PCM signal into their respective polynomial components, each of said polynomial components being filtered with a linear and time invariant filter associated with the power 1 and having the transfer function: A/00 = L 0 , ! 2 ' i where z = e jω following which the filtered components are summed, with z=e "\ where ω=2πf/f represents the normalized angle frequency and f is the sampling frequency and a x ι represents the filter coefficient associated with the power 1 and time index 1. This ensures that the non-linearity m the pulse code modulation to pulse width modulation may be modelled, without complicated table-based memories having to be used. Thus, instead, use is made of a method which may be implemented by simple circuits consisting of Hammerstein filters. As stated m claim 2, it is expedient that the non-linear polynomial components are determined by a Taylor develop¬ ment of the pulse code modulation signal. As stated in claim 3, it is expedient that in a UPWM trailing edge modulation the coefficients of the filters are determined so as to achieve the following transfer functions: . . . If - ω /IV 2 According to claim 4, it is expedient that in a UPWM leading edge modulation the coefficients of the filters are determined so as to achieve the following transfer functions : According to the method, it is moreover expedient that in an UPWM double-sided symmetrical modulation the filter coefficients are determined so as to achieve the follow¬ ing transfer functions: It is noted in connection with the model according to claim 5 that a more linear process is obtained when using double-sided symmetrical uniform pulse width modulation. The invention also concerns a circuit for correcting non- linearity and noise in the conversion of a PCM signal into a UPWM signal. This circuit is characterized in that the PCM signal is fed to a plurality of parallel-connected Hammerstein fil ¬ ters which divide the PCM signal into their respective polynomial components which each are filtered with a lin ¬ ear filter belonging to the power 1 and having the trans- fer function B . , (ω) , adapted to equalize the non-linear contributions caused by the PCM-UPWM conversion, said Bι(ω) being approximated on the basis of the knowledge of the model circuit according to claim 1, following which the filtered components are fed to a summation unit. This provides a circuit which is simple to realize, and which is based exclusively on signal feedforward, which causes no problems of stability. For optimum realization of the circuit, it is an advan ¬ tage that a time delay circuit is inserted after the 1st order component. To remove the noise which, as mentioned before, mevitab- ly occurs in the discretization of the PCM signal, it is expedient according to claim 9 that the input of the noise shaper is associated with a summation unit which, in addition to receiving the PCM signal, is adapted to receive and subtract a feedback signal derived as the difference between the output signals of two UPWM models according to claim 1, wherein the input signal to the first model, which is a first Hammerstein filter, is formed by the PCM signal, and the input signal to the second model, which is a second Hammerstein filter, is formed by the output signal of the noise shaper. As stated in claim 11, the PCM signal may be corrected in connection with the use of quasi-symmetrical modulation by feedback from a Hammerstein filter whose non-linear part is formed by a generator signal g(k), which, dynami¬ cally, is an indication of the selected symmetry form and pulse width for the modulated pulse associated with the time index k, and whose linear part is a time invariant filter having the transfer function C(ω) . It is advantageous if the generator signal g(k) is given by: g(k) = s(k) (x(k) + 1) where (x(k) + 1) represents the width of the pulse at time index k and s(k) represents the time shift with re¬ spect to symmetrical modulation of the pulse at time in¬ dex k expressed in half bit clock periods T r , and where C(ω) is approximated by the transfer function: T C(ω)= jω 2ΔT where T b is the cycle time of the bit clock, while ΔT represents the cycle time of the UPWM signal. Finally, the invention relates to use. This use is de¬ fined in claim 13. The invention has the advantage that it allows construc¬ tion of a digital amplifier in which analog calculation circuits are not used at any time. As explained above, the invention thus provides circuits which are all based on Hammerstein filters which, as men¬ tioned before, in principle consist of a non-linear cir¬ cuit followed by a linear and time invariant filter. Thus by applying the principles of the method according to the invention it is possible to construct circuits capable of correcting non-linearities as well as noise, including intermodulation noise which inevitably occur in connec¬ tion with digital signal processing. In short, it has now been made possible to construct purely digital amplifiers without analog signal processing and without using A/D, D/A converters. The invention will now be explained more fully with ref¬ erence to an embodiment of the invention shown in the drawing, in which fig. 1 shows a uniform pulse width modulator, UPWM modu ¬ lator, fig. 2 shows the principle of a uniform sampling, with trailing edge modulation, fig. 3 shows the principle of a uniform sampling, with leading edge modulation, fig. 4 shows the principle of a uniform sampling, with double-sided modulation, fig. 5 shows a model of the principles of the invention, fig. 6 shows the principles of the invention in connec¬ tion with Hammerstein filters, fig. 7 shows a model of circuit for the equalization of UPWM according to the invention, fig. 8 shows a realizable circuit corresponding to fig. 7, fig. 9 shows the structure of a known noise shaper, f g. 10 shows a model for the creation of intermodulation noise, fig. 11 shows the principles for an intermodulation cor- rection circuit for a noise shaper, fig. 12 shows a realizable circuit for the correction of intermodulation noise, fig. 13 shows how quasi-symmetrical noise occurs, fig. 14 shows a circuit for the feedback correction of quasi-symmetrical noise, fig. 15 shows a block diagram for a complete system for PCM to UPWM conversion, fig. 16 snows a first embodiment of a feedforward circuit according to the invention, fig. 17 shows a second embodiment of a feedforward cir¬ cuit according to the invention, fig. 18 shows the effect of the correction circuits of the invention, fig. 19 shows a digital amplifier according to the inven ¬ tion with a connected class D output stage. Fig. 1 shows the principle for a pulse width modulator of the uniform type constructed by means of analog building blocks. The circuit consists of a comparator unit 1 which receives the sum of two signals on its input, one of said signals originating from a sawtooth/triangular generator 3, the other of said signals coming from a sample-and- hold unit 2, whose input receives e.g. an audio signal A which is fed via a sample-and-hold circuit to the other input of the comparator 1. Additionally, the circuit com¬ prises a synchronization unit 4 so that the saw¬ tooth/triangular generator 3 may be synchronized with the sample-and-hold un t 2. The fundamental mode of operation of the circuit will now be explained m connection with figs. 2-4. Fig. 2 shows an example of a so-called trailing edge modulation where the input signal is sampled each time the sawtooth has reached the point E. The signal from the sample-and-hold unit 2 is added to the sawtooth signal in the summation unit 5, and as long as the sawtooth signal has a value which is lower than the signal from the sample-and-hold unit 2, a pulse will occur on the output of the comparator unit 1, while when the value of the sawtooth signal exceeds the signal D, a signal which is "low" will occur on the input of the comparator unit 1. Fig. 3 differs from fig. 2 by the shape of the sawtooth, thereby providing the so-called leading edge modulation. When using leading edge modulation, the mode of operation of the circuit in fig. 1 is the same as when using trail¬ ing edge modulation. Finally, fig. 4 shows a so-called double sided modulation where the circuit 3 generates a triangle. As will be seen in fig. 4, pulses occur when the signal B2 has a lower value than the signal D. With respect to the modulation forms in figs. 2 and 3, it may be said that the pulses are generated in that the two edges of the pulses are both shifted as a function of the sampled value from the sample-and-hold unit 2. To illustrate the principles of the invention, reference may be made to the model in fig. 5. In the UPWM converter 6 (uniform pulse width modulation) , a discrete-time digi¬ tal signal x(k) is converted into a time continuous sig¬ nal y(t) . The time discrete (PCM) signal x(k) corresponds to the output signal of the sample-and-hold unit 2 in fig. 1. The result of the subsequent pulse width modula¬ tion, i.e. the time continuous signal y(t), is produced in that each sample of x(k) determines the course of y(t) within a sampling time interval of the duration ΔT. This UPWM conversion is a non-linear process where an ampli- tude input is imaged into the time domain (pulse width) . For this non-linearity to be corrected digitally, it is necessary to make a model which forms an equivalent discrete-time signal y(k) which represents the time continuous signal y(t) generated by UPWM. According to the sampling theorem, this may be achieved by band limitation (lowpass filtering of y(t) ), said signal, after band limitation, being sampled synchronously with the discrete-time signal x(k) . This results in the time discrete signal y(k) which represents the output signal of the UPWM conversion in a time discrete form. The ideal lowpass filter 7 in fig. 5, given by the pulse response h(t), has a real transfer function with a con¬ stant and positive value below f g , where f g is one half of the sampling frequency, i.e. f g = f = /2. This filter ensures that the sampling frequency is observed. It may be shown (see Appendix A) by a Taylor development of the resulting signal y(k) that y(k) may be formed by a signal model as illustrated in fig. 6. The input signal x(k) is divided into polynomial components of the form x " '( ) which each are filtered with linear time invariant (LTD filters Aι (z) . This is followed by summation re ¬ sulting in y(k) . Thus, the model, cf. fig. 6, is composed of an infinity of submodels which consist of a static non-linearity 8 consisting of involution to the 1th power followed by an associated discrete-time linear and time invariant (LTI) filter 9 having the transfer function A x (z) . This sub ¬ model belongs to the class of Hammerstein models. It will be realized in connection with the error model above that distortion components generally depending on the frequency occur. In Appendix A, direct transfer func ¬ tions belonging to various UPWM forms are derived. It is common to all UPWM forms that the distortion increases with the frequency. Owing to the non-linear nature of UPWM it will be desir- able to supply some "anti-distortion" to the input signal before the UPWM unit so that this unit is equalized. This may be done by using a new Hammerstein-based non¬ linear filter which has to be inverse to the PCM-UPWM model. As a result, only feedforward of correction sig¬ nals will occur - which means that there are no problems of stability like in feedback. Such a system may have the appearance shown in fig. 7. The figure shows how it is attempted to equalize the dis¬ tortion in the UPWM model by means of a non-linear pre- filter of the Hammerstein type. The system in fig. 7 will thus be inserted before the UPWM conversion, which may be modelled with the Hammerstein model m fig. 6, as shown before. As a starting point, it may be assumed that the UPWM process (modelled in fig. 6) is so linear as to directly enable the use of an equalization filter where the sign of the non-linearities is reversed. However, this will not result in a total linearization of the complete sys¬ tem. The reason is that the supply of "anti-distortion components" itself has the side effect that additional higher order distortion is generated because of the non- linear nature of the UPWM unit. These distortion compo¬ nents will be called "false" in the following. For exam¬ ple, the sum of the input signal itself and the 2nd order contribution as defined by B 2 (z) will form 3rd order false products (because of the x : non-linearity m the UPWM part) . The problem of false contributions may be solved by cor¬ recting the B-, (z) filters so that also the false compo¬ nents are corrected. The procedure comprises starting by setting B (z)=-A;(z) (where A ; (z) is given for the modula- tion form concerned - see Appendix C) . Then the size of the false 3rd order component is calculated, and the re¬ sult is included in B 3 (z) so that all 3rd order contribu¬ tions are neutralized. Then the size of the false 4th or¬ der components is determined (i.e. lst+3rd) and (2nd+2nd) ) , and this is included in the selection of B (z) . Above a certain order, the size of the false com¬ ponents will have fallen to an acceptable level, and the process is stopped. Appendix C describes this process in detail with exact formulae for Bι(ω) up to 1=4. The deri- vation of the correction circuit fed forward is directly conditional upon the knowledge of a model for UPWM. Till now the invention has been explained solely by means of models in which causal filters occur, i.e. filters which are not realizable in the real world. The filters Bι(z) (all of which are LTI) must of course be realizable (causal) in contrast to Ai (z) which represents a gener¬ ally acausal model. A practical circuit for insertion after the PCM signal may naturally be based on fig. 7. The filters 10 used must both be causal (i.e. realizable) and be capable of approximating generally acausal transfer functions (which are given e.g. by the formulae (m) , (n) and (r) in Appen- dix A which are all either purely real or purely imagi ¬ nary) . The approximation may be improved considerably by accepting a delay through the entire circuit, which may be done in that all branches contain a pure delay of e.g. K samples. The linear branch with Bι(z)=l is thus re- placed by a pure digital K sample delay 13, which has the transfer function z ~ in the z domain. This is illustra- ted in fig. 8. The non-linear branches may then be realized with filters 10 B α (z), which are e.g. of the FIR (Finite Impulse Response) type with 2K+1 coefficients. Reference is made to Appendix B for the approximation itself. If the uniform pulse width modulation of a PCM signal is to be performed by a digital circuit, it is necessary that the pulse width modulated signal is a time discrete signal. This means in practice that the pulse edges are synchronous with a clock signal (also called the bit clock with the frequency f ) . The pulse widths achievable are hereby discretized to a whole multiple of the bit clock period T b . The bit clock is selected such that a sampling time interval ΔT=l/f = corresponds to a whole number of bit clock periods, i.e. ΔT=N-T , where N is the number of possible pulse widths. For single-sided modula ¬ tion it is thus necessary to have a bit clock frequency of f b =N-f £ , where N is the number of pulse widths. How- ever, the formation of double-sided symmetrical UPWM re¬ quires a bit clock frequency of f =2N-f, because of the symmetry requirement. In other words, a doubling of the bit clock frequency. The discretization of the pulse widths reduces the read¬ ily achievable accuracy of a PCM to UPWM conversion sys¬ tem. The inaccuracy is in the form of quantization noise, the PCM signal having to be rounded off to a discrete number of amplitude levels (quantized) . If e.g. a 16 bit PCM signal is to be converted with full accuracy, a bit clock frequency f b =2 15 -f, is required. Such a bit clock frequency cannot be achieved in practice. To reduce the necessary bit clock frequency, the prior art therefore uses a so-called noise shaper immediately before the UPWM conversion. Combined with the use of oversampling, the noise shaper can suppress the quantization noise in the audible range at the expense of increased quantization noise at high frequencies above the audible range. Fig. 9 shows an ordinary noise shaper which is adapted to correct the inevitable quantization noise which is fed by the quantizer 19. It is noted that the noise shaper in¬ volves no correction of the non-linearities which exist in the pulse code modulation to pulse width modulation conversion. Previously, noise shaping comprised finding the instanta¬ neous quantization error from the quantizer 19 by sub¬ traction of the output of the quantizer from its input. This quantization error is filtered with the noise shap- mg filter F(z), 21, and is added, 20, to the input of the quantizer. However, the noise shaping filter responds only after a delay of one sample, i.e. it is attempted to correct an error at a given time with a correction signal which is transmitted one sample later. The noise shaper may be regarded as a feedback system where the error is returned to the input and is sub¬ tracted. The feedback branch must therefore contain a de¬ lay of at least one sample, since instantaneous feedback is not possible. In other words, the noise shaping filter F(z) with the pulse response f(n) must be causal and spe¬ cially satisfy the condition: f (n)=0 for n<l The noise shaping filter must moreover give the best pos¬ sible feedback of the error within the audible frequency range. Such a filter is called a predictor, as the filter tries to predict the error at the following sampling time. A good noise shaping filter is thus a predictive approximation where F(z)=l within the audible range. Ap ¬ pendix B shows examples of predictive approximation. The mode of operation of a noise shaper means that the input signal receives some spectrally shaped quantization noise which is suppressed in the audible frequency range at the expense of an increased amount of noise in the ul¬ trasonic range. Unfortunately, the added noise, because of interaction with the following non-linear UPWM conver- sion, will form so-called intermodulation noise (IM noise) which will increase the noise in the audible range . The IM noise may be defined as the additional noise con- tribution which is caused by the insertion of a noise shaper just before the UPWM process. If both the input and the output of the noise shaper are separately trans¬ mitted through a UPWM model and then subtracted, an error signal representing the IM noise will be isolated. This is illustrated in fig. 10 where the two Hammerstein UPWM models correspond to fig. 6. However, the error signal e(k), which represents the IM noise, cannot readily be fed back because the UPWM models are generally acausal. It is necessary that the feedback branch contains a delay of at least one sample like the noise shaper (condition (1)) . Fig. 11 shows a system for the feedback of IM noise in which the shown Hammerstein UPWM models 23 and 24 are based on predictive LTI filters, and in which the pre¬ dicted error signal is subtracted at the input of the noise shaper 19. Suppression of the IM noise is hereby achieved by means of feedback. If both predictive models are the same, then, advan¬ tageously, the predicted IM noise signal does not contain signal related components, but only the pure IM noise (the signal related components pass the noise shaper un- changed and thus give no contribution) . The system will neither add nor remove harmonic distortion, but just sup¬ press the IM noise concerned. This advantageously permits simultaneous use of feedback correction followed by a noise shaper with IM correction. Owing to the stability of the system fed back, it is an advantage that as most correction as possible takes place in a feedforward cir¬ cuit. The structure of the predictive models for the UPWM proc- ess permits fig. 11 to be simplified, as the linear, time invariant signal processing (LTD in both models may be combined. The system is hereby simplified, as shown in fig. 12 where the LTI blocks 27 are predictive approxima ¬ tions to the transfer functions Aι(ω) corresponding to the modulation form used (see (m) , (n) and (r) in Appen ¬ dix A) . This should be taken to mean that the approxima¬ tion of the predictors A ι (z) is optimized with respect to the audible frequency range, and that Aι(z) contains a delay of at least one sample analogous w th condition (1) . The feedback thus does not become operative until the next sampling time. Appendix B shows examples of such predictive approximations. It is noted that the linear branches (for 1=1) in the predictive UPWM models in fig. 12 are removed, since these do not contribute to the IM noise. As mentioned before, the use of double-sided symmetrical UPWM requires the double bit clock frequency with respect to single-sided modulation. As a result of this circum¬ stance it is has been proposed to use so-called quasi- s*y * mmetrical modulation where the bit clock frequency is not doubled. Fig. 13 shows an example of the formation of quasi-symmetrical UPWM. Pulses having a width of an even number of bit clock periods can be formed symmetrically, while pulses having an odd length can only be placed asymmetrically. As shown in fig. 13, either leading edge asymmetry or trailing edge asymmetry may be involved here. It may readily be seen from fig. 13 that if the odd pulses with leading edge or trailing edge asymmetry are shifted half a bit clock period temporally forwards or rearwards, respectively, then the error with respect to symmetrical modulation will be eliminated. Thus, by quasi-symmetry, the error signal may be ex¬ pressed as the error by shifting a pulse half a bit clock period. To make a model of the error in quasi-symmetrical UPWM, first the auxiliary quantity s indicating the form of asymmetry is defined: In other words, the quantity s indicates the time shift of the pulses expressed in half bit clock periods, i.e. the time shift is s-T b /2. The difference between a time shifted and a non time shifted signal may be expressed by the following transfer function: ' ω ÷^: .. T C_(ω)=l :.ιr ■ l)w j -y ' ω i.e. a first order differentiator. In other words, the error spectrum is proportional to the frequency. An equivalent error signal e(k) may now (cf. fig. 14) be modelled in that a generator sequence g(k) is filtered by a linear filter. The absolute size of the error signal is directly proportional to the duration of the pulse, as time shift of a long pulse gives rise to greater errors than a short duration of the pulse. The generator se¬ quence g(k) must therefore be proportional to the dura- tion of the resulting pulse in case of asymmetry and otherwise zero. The signal x(k)+l has this property. Fur¬ thermore, the sign of the generator sequence may indicate which form of asymmetry the resulting pulse has. The gen ¬ erator sequence g(k) is defined hereby: (4) g(k) = s(k) (χ(k) + 1 where the signal s(k) , originating from the pulse width modulator generator 15, dynamically indicates the form of asymmetry (the time shift) sample by sample. The error signal e(k) is formed as shown in fig. 14 by filtering of the generator sequence g(k) with a differen ¬ tiator filter having the following LTI transfer function which is derived from (3) : where T b is the cycle time of the bit clock and ΔT is the sampling time. The dependence of the symmetry form s(k) has shifted from the transfer function (3) to the generator sequence (4) . It may hereby be realized that the error model, cf. fig. 14, is a Hammerstein model, as the differentiator filter 14 shown in fig. 14 is LTI, and the generator sequence is formed by memoryless non-linear processing of x(k) . The constant Tι/(2ΔT) scales the error e(k) depending on the time resolution given by the bit clock. The modelled error signal e(k) will thus be the additive error contribution which differs quasi-symmetrically from fully symmetrical UPWM. The error signal is in the form of noise with a spectrum proportional to the frequency because of the transfer function -jω. For the error model in fig. 14 to be used for feedback and thus suppression of the quas -symmetry noise, it is necessary that the ω LTI filter is replaced by a predic- tive approximation. Reference is again made to Appendix B for predictive approximations. Fig. 15 shows a block diagram of how the various types of correction circuits, which are explained in the forego- mg, may be combined to a complete pulse code modulation to pulse width modulation system. In fig. 15, u(k) repre- sents an oversampled audio signal which is fed to a feed¬ forward equalizing unit 28, cf. fig. 8. Then the amplitude discretized signal is formed by a noise shaper 19 which is provided with feedback correction for both IM noise in the circuit 29 and quasi-symmetrical noise in the circuit 30. The pulse width modulation unit 31 then converts to a pulse width modulated signal y(t) which switches synchronously with the bit clock with the frequency f b . It is noted in this case that it is not necessary m all cases to use all correction blocks in fig. 15. If quasi-symmetrical pulse width modulation, as explained in connection with fig. 13, is not used, the correction m the circuit 30 must be omitted. In some cases, even the IM correction in the circuit 29 may turn out to be superfluous and may thus be omitted. Fig. 16 shows a practical implementation of the feedfor¬ ward correction circuit of fig. 8 for the correction of single-sided trailing edge modulation. A total delay of K=l samples (Bi (z) =z ~1 ) is selected, and only correction up to and including 3rd order is included. From equation (H) in Appendix C and (m) in Appendix A: Hence, the following approximation by means of Table 2 in Appendix B for G(ω)= * jω and K=l: B 2 (z)« (-*ϊ - ^z " ) = (1 - z "2 )/8 Hence, from equation (m) in Appendix A and equation (L) in Appendix C: B (co ) =Aι (ω ) =-ω / 24 Hence, the following approximation by means of Table 2 for G(ω)=-ω and K=l : B T )* ' ! - 2z ~ + z " -)/24 As will be seen from the expressions of B : (z) and B-<(z), these filters may be implemented by means of multipliers, summations and time delays, which appears from fig. 16. Fig. 17 shows an embodiment of the feedforward circuit which is intended to correct double-sided symmetrical modulation up to and including 3rd order and for K=l. In this case, it may be turned to account that the second and third order contributions may approximately use the same filter, cf. formulae (0) and (P) m Appendix C. This results m the extremely simple structure for the imple¬ mentation of the feedforward circuit of the invention shown in fig. 17. The calculation principles in the embodiment of fig. 17 are the same as in the embodiment of fig. 16 and will therefore not be described in more detail. Appendix A Various UPWM forms are described below. Furthermore, the Taylor development of the equivalent signal y(k) from fig. 5 is shown, which leads to the determination of the transfer functions in fig. 6. Mathematically, the UPWM modulation may be characterized by a function p(x(k) ,t), which indicates a pulse course of the duration ΔT as a function of the sample x(k) . The modulated signal y(t) may hereby be formulated as an in¬ finite sum of time shifted pulses: (a) y(t)=∑p(x(k) 2 t-kΔT k Generally, a distinction is made between class AD and class BD modulation. In class AD modulation, y(t) can only assume the amplitude 1 or -1, while in class BD modulation y(t) can assume the amplitude 1, 0 or -1. Fur- thermore, a distinction is made between double-sided and single-sided modulation. There are two variants for single-sided modulation: leading edge modulation and trailing edge modulation depending on which pulse flank is modulated. The following figures, cf. page 29, show p(x,t) for the three classes of AD modulation: Fig. Al : leading edge formulation Fig. A2 : trailing edge modulation Fig. A3 : double-sided symmetrical modulation Class BD modulation may be described as a type of differ ¬ ential coupling of two class AD modulations: (b) p BD (x, t) = (pAD(x, t) - p M (-x,t))/2 This results in a pulse signal capable of assuming the values -1, 0 and 1. From fig. 5, by convolution of y(t) with h(t): (c) y(l) = h(l)* y(t) = f y(t - τ)h{τ)dτ The discrete-time signal y(k) is then given by sampling with the sampling time interval ΔT: (d ) y{k) = y(kAT) The convolution integral may be split into contributions of the duration ΔT=1: (e ) v(/) (x(k - ι) -τ)h(τ + ιΔT)dτ It will be seen from this that y(k) may be expressed as a sum of generally non-linear functions of time shifted samples of x(k) : ( f ) y(k) = ∑h, {x(k - ,)} A Taylor development of this infinity of non-linearities is now performed from the zero signal x(k)=0 (i.e. a McLaurin's series) . The non-linearities are hereby split into a double infinity of polynomial contributions: where the Taylor coefficients a ;i are given by the 1th derived ones of the non-linearities: «,' = : > { χ =o} This Talyor's series may now be expressed (by sorting the terms according to time and power) as a signal model in which each power of the input signal, x'(k), is filtered by linear and time invariant (LTD discrete-time filters Aι(z) given by the coefficients a . as a pulse response: A /(0 = Σ α ,/ 2 '> where, For single-sided class AD trailing edge modulation (by means of fig. A2 ) : 'ΛT \ T I AT (:) h,{x}= Jp(v,-r)/-(r+-ΔT)dr = - |/7(r + /ΔT)dr+ J/7(r + * ΔT)d τ -Α * -' T '%AT Hence, by differentiation: (k) h;{.τ}= Λ(/ΔT- tΔT) Continued differentiation generally provides the follow¬ ing coefficient set of formula (h) (with ΔT=1): This means that the filter coefficients are based on a sampling of the (1-1) th derived one of the pulse response h(t), which, as mentioned before, is an ideal lowpass filter having the cut-off frequency The follow¬ ing transfer functions may hereby be derived directly, 1 ( - y" (m) A l (ω) = -^-γ-j Analogously, it may be inferred by symmetry consideration that for single-sided class AD leading edge modulation: (/-!) n A,(ω) / ! V 2 As will be seen, leading edge modulation is just as non- linear as trailing edge modulation, but the even distor ¬ tion components have an opposite sign. For double-sided symmetrical class AD modulation (fig, A3) : ( o ) h, { } + /ΔT)d r Hence the following coefficients in the Taylor's series As will be seen, two time shifted samplings of derived ones of h(t) are included. Hence, m the frequency do ¬ main, the following transfer functions: This expression may be approximated with the following somewhat simpler expression: It will thus be seen that double-sided symmetrical UPWM is considerably more linear than single-sided symmetrical UPWM. The level generally decreases by a factor of 4 (m contrast to 2 for single-sided symmetrical UPWM) each time the distortion order 1 increases by 1. Further, the even distortion products increase by the 1st power of the frequency in contrast to the (1-1) th power for single- sided symmetrical UWM. For class BD modulation, the distortion components of even order will be not be included because of the differ¬ ential coupling. In this case, A . ,(ω)=0 for even 1. Class BD is thus considerably more linear than corresponding class AD modulation. t=-ΔT 2 =0 t»ΔT 2 Figure Al : ρ(x, t) for single-sided leading edge modulation t-xΔT/2 t--ΔT/2 t-0 t-ΔT/2 Figure A2: p(x, t) for single-sided trailing edge modulation t«-ΔT/2 tβ0 t-ΔT/2 Figure A3: ρ(x,t) for double-sided symmetrical modulation Appendix B Examples of filter approximations for use in feedforward and feedback are shown below. Filter approximation may be defined as the task of finding a realizable filter struc¬ ture with an associated (finite) set of coefficients so that a given transfer function is approximated as best as possible . Approximations by means of FIR filter (Finite Impulse Re¬ sponse) are described below. It is pointed out that the invention may also be based on recursive (IIR) filters. Furthermore, the literature includes a large number of other (and better) approximation criteria than shown here (Parks MacLellan, Least Squares, etc.) . FIR PREDICTORS Here, the following class of FIR filters with N coeffi- cients is selected: ,aa; C ( z) =c z * +c z " +Cι z This transfer function is causal and responds with a de- lay of one sample as required for feedback (analogously with (1)) . The coefficients d ....c N must now be selected such that a given transfer function is approximated. In this case, the criterion is selected such that the first N derived ones with respect to the frequency co of the transfer function for the FIR filter (a) must be identi¬ cal with the corresponding derived ones for the given transfer function. This gives N linear equations with N unknowns, the solution being a FIR predictor with an ap¬ proximation error proportional to ω". This means that the approximation is best at low frequencies (corresponding to the audible range when using oversampling) . The fol- lowing table shows the result for N=1..4, where G(co) is the approximated transfer function: TABLE 1 Filters suitable as noise shaping filters (see fig. 9) are obtained from Table 1 for G(ω)=l. For G(ω)=jω, pre¬ dictors intended for e.g. feedback of quasi-symmetry noise, cf. fig. 14, are obtained. The table may moreover be used for determining predictors A- . (z) for feedback of IM noise, cf. fig. 12. FIR FEEDFORWARD FILTERS FIR filters of the form: are selected for use in the feedforward correction, The filters are causal and have 2K+1 coefficients, which are desirably selected such that that the given transfer function e^'^G (ω) is approximated. This means that G(ω) is approximated by (bb) with a delay of K samples. This results in an approximation error which is considerably smaller than for a predictive approximation with the same number of coefficients. The use of the same criterion as shown above gives the following table in which the approximation error in¬ creases with ω * " "+1 : TABLE 2 Appendxx C Described below is a method for the exact determination of Bι(z) filters for use m the feedforward correction of UPWM taking false components into consideration. It is contemplated that the feedforward circuit in fig. 7 is followed by the UPWM model m fig. 6. It is moreover assumed that the input signal u(k) is a complex pure tone having the frequency ω. Owing to the notation, time index (k) is left out in the following. We now have: (A) u=e It is noted that involution generally gives (B) u i.e. a complex pure tone having the frequency lω. All terms having a power above 4 are left out m the fol¬ lowing calculations for clarity. The output signal x=x(k) of the feedforward circuit is now given by filtering of the polynomial contributions u 1 with Bi (ω) as well as subsequent summation: (C) x = u + B 2 (2ω)u " + B 3 (3ω)u J + B,(4ω)u "1 + In the UPWM model, X " , x ^ and x ] are formed: (D) x : = u : + 2B-(2ω)u + (B 2 2 (2ω) + 2B 3 (3ω) )u + (E) x 3 = u 5 + 3B^(2ω)u' + (F) x- = u" + Filtering of the polynomial contributions x 1 with Ai (ω) and subsequent summation then provide the output signal y(k) of the system (by collection of terms with the same power) : (G) y = u + [B : (2ω)+A;(2ω) ] u" * [B,(3ω)+2A^(3ω)B ; (2ω)+A 3 (3ω) ] u + [B 4 (4ω) + A_(4ω) (B (2ω) + 2B,(3ω) ) + A 3 (4ω) 3B : (2ω) + A (4ω) ] u' + The purpose of the feedforward is to linearize the sys ¬ tem, i.e. to satisfy the condition y=u. It will be seen from (B) that it generally is possible to start directly with B_ (co) : (H) B 2 (ω)=-A : (ω) Then, Bι(ω) is determined so that the complete 3rd order contribution is eliminated. It is noted from (G) that the 3rd order contribution has a mixed term which is the "false" 3rd order contribution to be included in B (ω) : (I) B 3 (3ω) = -2A_ (3ω)B_ (2ω)-A (3ω) = 2A, (3ω)A (2ω) -A,(3ω) Which is tantamount to: (J) B 3 (ω) = 2A.(ω)A.(2ω/3)-A,(ω) This is followed by the determination of B (ω) by means of (G) : (K) B (4ω) = -A,(4ω) (B 2 2 (2ω) - 2B 3 (3ω) ) - A, (4ω) 3B , (2ω) - A 4 (4ω) Three false 4th order contributions are thus involved here. By continued substitution: (Ka)B 4 (ω) = -A 2 (ω) [A 2 2 (ω/2) + 4A 2 (3ω/4)A 2 (ω/2) - 2A 3 (3ω/4)] + 3A 3 (ω)A 2 (ω/2) - Aι(ω) When including more terms, B ^ (ω), B (ω) ... may be deter¬ mined. However, the process rapidly becomes complicated in terms of calculation, because the number of false coiti- ponents increases strongly. It is rarely necessary, how¬ ever, to include corrections for more than the 4th order contribution since these have a very small amplitude. The preceding calculations have been based on the assump- tion that the linear branches have the transfer functions 1 both in feedforward and in UPWM model, i.e. coupled di¬ rectly without any filter. If a delay of K samples is in¬ troduced in the linear branch of the feedforward, as shown in fig. 8, all Bico) transfer functions for 1>1 must be corrected by a corresponding delay with the transfer function e _:ιKω = z "κ . As described in Appendix B, it is hereby easier to approximate the realizable (causal) fil¬ ters in the feedforward. EXAMPLE For example, for single-sided trailing edge modulation of (J) and (m) in Appendix A: - L > B 3 (ω) = 2 ι ω . ;ω + 2 = - 2 =A,(ω) As will be seen, the false 3rd order contribution is twice as great and oppositely directed A 3 (ω), making it necessary to reverse the sign of B 3 (co) . From (K) and (m) by careful calculation: (M) B 4 (ω)=-A 4 (ω) Further, a careful calculation of (K) with the 5th order terms shows that: (N) B 5 (ω)=A 5 (ω) Therefore, it seems to apply generally that the sign must be reversed for the odd filters in the case of single- sided trailing edge modulation. EXAMPLE For double-sided symmetrical modulation, from (r) in Ap¬ pendix A and (H) : (0) B 2 (ω) = -A 2 (ω) = αr/32 And: (P) B 3 (ω) = ω 2 /96 + ωVll52 = -A 3 (ω) + ω 4 /1152 Here, in a practical implementation, it may be decided to disregard the ω J term (the false contribution), since the amplitude is very limited. Both B : (ω) and B (ω) may hereby be based on a common filter with the transfer function ω : which is fed to the signal u ; /32 + u /96. This recipe is used in the implementation of the circuit in fig. 17.

Claims: P a t e n t C l a i m s : 1. A method of correcting non-linearity and noise m the conversion of a PCM signal (Pulse Code Modulation) into a UPWM (Uniform Pulse Width Modulation) signal, c h a r ¬ a c t e r i z e d by employing a model circuit of the non-linearity known m the PCM to UPWM conversion, said model circuit being formed by parallel-connected Hammerstein filters which divide the PCM signal into their respective polynomial components, (x, x " , x\ x ...), each of said polynomial components being filtered with a linear and time invariant filter associated with the power 1 and having the transfer function: A,(z) = 2 j fl (/ 2', where z-e JO) following which the filtered components are summed, with z=e ιω , where ω = 2πf/f represents the normalized angle frequency and f is the sampling frequency and a represents the filter coefficient associated with the power 1 and time index l. 2. A method according to claim 1, c h a r a c t e r ¬ i z e d in that the filter coefficients aα are deter- mined by a Taylor development of the non-linearity in the PCM to UPWM conversion. 3. A method according to claims 1-2, c h a r a c t e r ¬ i z e d in that in a UPWM class AD trailing edge modu- lation the filter coefficients a : give the transfer functions : 4. A method according to claims 1-2, c h a r a c t e r - l z e d in that m a UPWM leading edge modulation the filter coefficients a L1 give the transfer functions: 5. A method according to claims 1-2, c h a r a c t e r ¬ i z e d m that in a UPWM double-sided symmetrical modu¬ lation the filter coefficients a,ι give the transfer functions : IΪI J •foroddl 1 jω ϋlτJ ' forevenl 6. A circuit for correcting non-linearity and noise m the conversion of a PCM signal into a UPWM signal, c h a r a c t e r i z e d m that the PCM signal is fed to a plurality of parallel-connected Hammerstein filters which divide the PCM signal into their respective polyno- mial components (u, u", u J , ... ) , which each are filtered with a linear filter associated with the power 1 and hav¬ ing the transfer function Bι(ω) , adapted to equalize the non-linear contributions caused by the PCM-UPWM conver¬ sion, said Bι(ω) being approximated on the basis of the knowledge of the model circuit according to claim 1, fol¬ lowing which the filtered components are fed to a summa¬ tion unit. 7. A circuit according to claim 6, c h a r a c t e r - l z e d in that the transfer functions for filtering the polynomial components are approximated by: B 2 (ω) * -A 2 (ω) B 3 (ω) * 2A 2 (ω)A ; (2ω)/3) - A 3 (ω) B 4 (ω) * -A (ω) [A 2 - (ω/2) + 4A, ( 3ω/4 ) A 2 (ω/2) - 2A 3 (3ω/4) ] + 3A 3 (ω) - (ω/2) - A A (ω) 8. A circuit according to claim 6 or 7, c h a r a c - t e r i z e d in that the filter Bi (ω) associated with the 1st order component is formed by a time delay circuit of K samples, and that this delay is included m the re ¬ maining Bi (ω) filters for 1>1. 9, A circuit for correcting non-linearity and noise in the conversion of a PCM signal into a UPWM signal, said PCM signal being fed to a noise shaper, c h a r a c ¬ t e r i z e d in that the input of the noise shaper is associated with a summation unit which, m addition to receiving the PCM signal, is adapted to receive a feed ¬ back error signal derived as the difference between the output signals of two Hammerstein based UPWM models ac ¬ cording to claim 1, wherein the input signal to the first model is formed by the PCM signal, and the input signal to the second UPWM model is formed by the output signal from the noise shaper. 10. A circuit according to claim 9, c h a r a c t e r ¬ i z e d m that the two Hammerstein based UPWM model circuits are identical, and that only the Hammerstein filters associated with the power 1>1 are included, and that the linear and time invariant filters contained in the Hammerstein filters are predictive. 11. A circuit for correcting non-linearity and noise in the conversion of a PCM signal into a UPWM signal, c h a r a c t e r i z e d in that the PCM signal is cor¬ rected in connection with the use of quasi-symmetrical modulation by adding negative feedback from a Hammerstein filter whose non-lmear part is formed by a generator signal g(k) which, dynamically, is an indication of the selected symmetry form and pulse duration of the modu¬ lated pulse associated with time index k, and whose lin¬ ear part is a time predictive invariant filter having the transfer function C(ω) . 12. A circuit according to claim 11, c h a r a c t e r ¬ i z e d in that the generator signal g(k) is given by: g(k) = s(k) (x(k) + 1 where the quantity ΔT(x(k)+l)/2 represents the duration of the pulse at time index k, ΔT represents the cycle time of the UPWM signal and s(k) represents the time shift with respect to symmetrical modulation of the pulse at time index k expressed in half bit clock periods T b , and where C (ω) is approximated by the transfer function: T C(ω)= Jω—-- 2ΔT where T b is the cycle time of the bit clock. 13. Use of a method and a circuit according to claims 1- 12 in connection with a class D amplifier or equipment for digital-to-analog conversion.

Inventors: ANDERSEN HANS K, RISBO LARS, ANDERSEN, HANS, K., RISBO, LARS
Applicants: ANDERSEN HANS K, RISBO LARS, ANDERSEN, HANS, K., RISBO, LARS
Application year: 1997
Main classification: H03M5
IPC codes: H03F3, H03M1, H03M5, H04L25