APPARATUS FOR GENERATING SCALED WEIGHTING COEFFICIENTS FOR SAMPLED DATA FILTERS

Abstract: Method and apparatus for generating continuously variable sets of weighting coefficients for application to weighting circuits of a sampled data filter. A set standard weighting coefficients are predetermined to produce a nominal desired frequency response (Fig. 1a). The variable coefficients are generated by piecewise linear interpolation of the standard filter impulse response at points in time corresponding to the relative time position of the standard coefficients multiplied by a scale factor. Apparatus for performing the method includes a means (18) for storing the standard coefficients in an indexed manner. Means (12) are also provided for generating a sequence of numbers corresponding to the index values. The sequence of numbers are multiplied in a multiplier (15) by a scale factor supplied at a terminal (SCALE FACTOR SOURCE). The scaled coefficients are calculated according to an equation in a calculating means (22, 24, 25, 26) and means (33) are provided for storing the scaled coefficients.

Description: APPARATUS FOR GENERATING SCALED WEIGHTING COEFFICIENTS FOR SAMPLED DATA FILTERS Background of the Invention This invention relates to adaptive filters and more particularly to apparatus for generating weighting coefficients for sampled data filters such as finite impulse response filters. Sampled data filters perform weighting and summing operations on successive input samples to produce filtered replicas, y(n), of the input samples, x(n), generally defined by the equation k k y(n) = Σ a^C -i - Σ b.y(n-i). i=0 i=l The factors a. and b. are weighting coefficients applied to delayed input and output samples x(n-i) and y(n-i), respectively, where i connotes the number of sample delay periods. The equation defines the transfer function of a recursive filter. If the rightmost term of the equation is eliminated, the equation defines the transfer function • of a non-recussive filter. It will readily be appreciated that the transfer function of a given filter can be altered by changing the value of the weighting coefficients a. and b.. If apparatus is provided to automatically change the filter weighting coefficients in response to some stimulus, the filter transfer function is advantageously made adaptive. For example, sets of weighting coefficients may be stored in a read only memory (ROM). The stimulus may be arranged to address the ROM to provide particular sets of the coefficients to the filter weighting elements, which coefficients would correspond to particular values of the stimulus. If the stimulus corresponds to the frequency content of the signal being processed by the filter, the bandwidth of the filter can be varied responsive to the signal frequency content to enhance the average signal-to-noise ratio. ROM's are a convenient media for storing and accessing sets of weighting coefficients in adaptive filter circuits. However, if the desired range of filter adaptability is relatively wide and is to be incremented with relatively fine resolution, the size of the ROM may become excessive. For a filter having 15 taps, i.e., 15 weighting circuits, with each weighting coefficient consisting of a six bit binary number, one set of coefficients requires 90 bit locations in the ROM. As few as eleven sets of coefficients will require over 1,000 bit locations and will provide relatively course vernier resolution. It is an object of the present invention to generate sets of weighting coefficients which are substantially continuously variable with relatively simple hardware making possible adaptive filters which are substantially continuously variable over a given range. Summary of the Invention The present invention generates sets of sampled data filter weighting coefficients from a single stored set of such coefficients. The weighting coefficients which define the frequency response of a sampled data filter also determine the impulse response of the filter in the time domain. Scaling the frequency response of the filter translates to an inverse scaling of the impulse response, and vice-versa. Therefore, the impulse response may be scaled, i.e., coefficient values at intermediate sample points on the impulse response curve selected, to alter the filter frequency response. In the present invention, scaled coefficient values are determined by piecewise linear interpolation of.the set of stored coefficient values, according to the equation H'(I) = a[(H(K+l) - H(K))F Ia + H(K)] where H'(I) are the scaled coefficient values, a is the scaling factor, I is a simple index value, H(K) is the stored coefficient having the index K equal to the integer part of the product (la), H(K+1) is the stored coefficient having the index one greater than H(K), and F_ 1 ci is the fractional part of the product ( la) . Brief Description of the Drawings FIGURE la is a graphical illustration of the impulse response of an arbitrary sampled data filter and FIGURE lb is a graphical illustration of the frequency response corresponding to the same arbitrary filter; FIGURES 2 and 3 are block diagrams of two circuits for developing sampled data filter weighting coefficients from a unique set of stored coefficients; and FIGURE 4 is a flow chart describing the operational sequence of the FIGURE 3 embodiment. Detailed Description of the Invention The time domain and frequency domain functions of a sampled data filter are related by the transform pair given by h(t) <=> H(juι) (1) where h(t) is the time domain response of the filter to an input impulse excitation and H(jω) is the Fourier transform of h(t). The width of the frequency response may be scaled by reciprocally scaling the impulse response according to the relationship l h(at) <=> - H(jω/a) a > o (2) a where "a" is the scale factor. In order that the amplitude of the frequency response be unaffected by scaling, the transform pair of equation (2) is multiplied by the scale factor resulting in the transform pair a h(at) <=> H(jω/a) a > o (3). Consider a finite impulse response (FIR) filter having a linear phase response. Such a device consists of a tapped delay line with weighting elements coupled to the taps and means for summing the weighted output samples from all of the weighting elements. The weighting coefficients for a linear phase FIR filter are symmetrical about the center tap. The envelope or curve defined by the value of the weighting coefficients describes the time domain response curve of the filter, i.e., the impulse response. Figure 1A is the impulse response of a particular low p ' ass FIR filter. Only the portion of the response for time, t, greater than zero is illustrated, but it should be remembered that the curve of the impulse response for t > 0 is reflected about the vertical axis at t=0. The coefficient magnitude at t=0 corresponds to the weighting coefficient at the center tap of the filter. The sample points on the curve indicate the value of weighting coefficients of successive taps of the filter. For the impulse response illustrated in FIGURE 1, the filter has 15 taps, one corresponding to t=0, seven for positive values of t and seven for negative values of t. The dashed line in FIGURE 1A is the impulse response for the same filter with the coefficients scaled by a factor of 0.8. Note that time is normalized to the delay period between taps. FIGURE IB is the corresponding frequency response for the filter having the FIGURE 1A impulse response and the dashed line in FIGURE IB corresponds to the scaled impulse response of FIGURE 1A. The tap points on the filter delay line are located at fixed points on the delay line. The delay between taps are at integral multiples of the sample periods of the signal to be filtered. In order to scale the frequency response according to equation (2) or (3), it is necessary to scale time relative to the impulse response curve. However, as stated above, the tap points are fixed and nominally the sample rate is fixed. Consider the case where it is desired to narrow the bandwidth of the frequency response of the filter. Because of the inverse scaling of the transform pair, this corresponds to broadening the impulse response over time. For example, if the filter is to be scaled so that the response of the scaled filter at frequency ω is to equal the response of the unsealed filter at ω/a 0 < a < 1 then the impulse response at time at of the original filter must be translated to the time t in the scaled filter. r OMΠ Referring to FIGURE 1, scaling ' the filter by a factor of 0. ' 8 corresponds to shifting the coefficient value at the time 0.8 to the time t=l and the value at t=l.6 to the point designated t=2. Graphically, the coefficient values at any time (at) can be picked off the curve describing the impulse response. From the curve in FIGURE 1, the coefficient value at t=0.8 is approximately 0.153. From equation 3, this value must be multiplied by the scale factor, in this example 0.8, resulting in the scaled coefficient value of 0.1224. This value would be applied to the weighting circuit at the tap corresponding to t=l. It is noted that this is not the value at t=l in the scaled curve illustrated by the dashed line. The reason for this is that ultimately the scaled coefficients are normalized so that the sum of all the tap weights equals the value one. The current invention computes the scaled coefficients by math atically extrapolating their values by a piecewise linear calculation using the known coefficient values of an unsealed filter. Starting at t=0, the scaled coefficient is equal to a h(0). The coefficient at t=0.8 is found by finding the approximate slope of the curve between the known points h(0) and h(l), multiplying it by the distance the scaled time is located from the point in time the scaled time is from the lower coefficient value and adding that value to the value for h(0). In other words, the scaled coefficients are calculated according to the equation y=mx+b where y corresponds to the coefficient value, m is the slope, x corresponds to time between the two coefficients corresponding to the scaled time and b is the intercept, that is the value of the lower of the two unsealed coefficients used in the calculation. The slope is determined by the simple equation m = (h(i+l) - h(l)) / (t i+1 - t ± ) . However, the denominator (t 1.+,_1-. - ti. ) can be made to drop out of the equation for the slope if the distance between the successive tap points is made unity. Thus, to determine the value of the coefficient at point t=0.8, the coefficient value at t=0 is subtracted from the value at t=l, the difference is multiplied by 0.8 and the product is added to the coefficient value at t=0. " Using values from FIGURE 1A h(0.8) = 0.8(0.15 - 0.158) + 0.158 = 0.1516 which is within about one percent of the value read from the curve. This value is then multiplied by the scale factor to yield the coefficient to be applied to the weighting circuit at tap point t=l. FIGURE 2 illustrates circuitry for generating scaled coefficients by the foregoing piecewise linear interpolation method. The particular circuitry shown is arranged to produce coefficients for a linear phase filter wherein the weighting coefficients are symmetrically disposed about the center tap. Thus, for an N tap filter it is only necessary to generate (N-l)/2 coefficient values, where N is odd ' . A slight modification to the circuitry is required for N being even since the number of coe ficients required is N/2. In FIGURE 2, a storage device 18 which may be a read only memory (ROM) contains one set of filter coefficients chosen to produce a desired filter characteristic within the range of interest. The particular coefficients within the ROM 18 are accessed by means of address signals A applied on bus 161. The ROM is designed to concurrently output data D at two output ports D. and D A+1 where the data at port D, corresponds to the information stored in the ROM storage location currently being addressed, and the data at port D A+ , corresponds to the information stored in the ROM storage location having an address equal to the current address incremented by one. The filter coefficients h Q , h, , h 2 , etc. are stored in sequential address locations 0, 1, 2, etc., respectively. A second storage device 33, which may be a random access memory and supporting addressing circuitry, or a shift register, is included for storing the scaled coefficient values. OMPI The two data output terminals of ROM 18 are coupled to a SUBTRACTOR circuit 22 wherein data from port D A is subtracted from data at port D A+1 . The output of the SUBTRACTOR corresponds to the value h(i+l) - h(i) which approximates the slope, , of the impulse- esponse between the coefficient values currently addressed. The output value, "m", from SUBTRACTOR 22 is applied to one input of a MULTIPLIER circuit 24. A proportionality factor "x" from connection 16F is applied to a second input of the MULTIPLIER circuit 24, the output of which is the product (m x). The product (m x) is applied to one input connection of ADDER circuit 25.- The data from the currently addressed storage location in ROM 18 is applied to a second input connection of ADDER 25. Since the interpolation is being performed in a piecewise linear manner between each set of points, i.e., between sets of coefficients h(i) and h(i+l), the leftmost coefficient (h(i)) of each pair of coefficients on the impulse response curve represents the "b" intercept for the particular calculation. Therefore, the sum produced by ADDER 25 corresponds to the value (m x)+b or in terms of filter coefficients is (h(i+l) - h(i))x + h(i). The output value from ADDER 25 is coupled to a first input connection of the MULTIPLIER circuit 26. The scaling factor "a" on bus 27 is applied to a second input connection of MULTIPLIER 26 which produces the product h* = a[(h(i+l) - h(i))x + h(i)] (4) where h 1 is equivalent to the value of a scaled coefficient. The scale factor source may be, for example, a keyboard and latch for manually producing a binary number and incrementing and decrementing that number. On the other hand, it may be apparatus which determines the signal-to-noise ratio of the filtered signal and generates a scale factor in accordance with the current signal-to-noise ratio. If the scale factor "a" is an analog variable, then the scale factor source may include an analog-to-digital converter. Next, we shall consider the proportionality factor "x" and the ROM 18 addressing apparatus. Assume the filter has N taps so that (N-KL)/2 scaled coefficients, are to be generated and assume that the scale factor is 0.2. The scaled coefficients h(at) for t = 0, 1, 2, 3, etc. occur on the impulse response curve corresponding to the stored coefficients in ROM 18 at points corresponding to t = 0.0, 0.2, 0.4, 0.6, etc. The first six scaled coefficient values are located on the unsealed (hereinafter "standard") impulse response between t equal zero and one. For all values of a t between zero and one, the approximate slope of the standard impulse response is determined from the standard coefficients h(0) and h(l), i.e., π = h(l) - h(0). Similarly, for scaled coefficients corresponding between points t equal to one and two on the standard curve, the approximate slope of the curve is determined from coefficients h(l) and h(2). Since the distance between points on the standard impulse response is unity, the value of "x" by which the slope segments are to be multiplied is equal to the fractional part of the product ( ). In FIGURE 2, the ROM 18 addresses, and the "x" values, are generated by a binary COUNTER 12 and a binary MULTIPLIER 15. COUNTER 12 is responsive to a clock signal CL, which may be a square wave, and generates at its output connection 13 a sequence of binary numbers of values 0, 1, 2, 3 —N+l after which it resets and commences a new sequence 0, 1, 2, 3...N+l etc. The binary sequence from the COUNTER is applied to the MULTIPLIER 15. The scale factor "a" is applied to a second input of the MULTIPLIER 15. The output of MULTIPLIER 15 is a binary sequence corresponding to the sequence produced by the COUNTER 12 but miltiplied by the scale factor "a". MULTIPLIER 15 is designed with sufficient resolution and range to accommodate the desired resolution and range of the scale factor for the numbers 0 to N+l produced by the COUNTER. This means that while the COUNTER may only have signal bits to accommodate integer numbers, the has output bit positions for both integer and fractional numbers. The integer, bits 161 of the MULTIPLIER 15 output connection are connected to the address input terminal, of the ROM. Thus, for values of (at) less than one, the address applied to the ROM is the value zero. For 1 ≤ (at) < 2, the address applied to ROM 18 is the value one and so one. The output bits, 16F, corresponding to the fractional part of the product produced by MULTIPLIER 15 represent the value "x" in the sum (m x)+b. Therefore, the fractional bits 16F from multiplier 15 are connected as the "x » input to MULTIPLIER 24. The circuit described thus far may be operated to continuously calculate sets of scaled coefficients which may be stored directly in the storage element 33 (as indicated by the phantom bus connections 19). However, the scaling factor will generally result in truncation of the scaled impulse response and so it is desirable to normalize the scaled coefficients. For example, if the sum of the standard coefficients was made equal to one because of hardware constraints within the filter, it may be desirable that the sum of the scaled coefficients also equals one. The coefficient normalization is performed by the circuitry circumscribed in the dashed block 50. In circuit 50, the value of all of the coefficients is accummulated in ACCUMMULATOR 30. After the value of the last scaled coefficient of a set is included in the sum, the total value of the scaled coefficients is dumped into the LATCH 32. As the respective scaled coefficients are input to the ACCUMMULATOR, they are also stored in the SHIFT REGISTER 28 where they are stored in sequence while the sum is being totalized. Each scaled coefficient of the sequence is then shifted out of register 28 and divided by the total sum of the sequence in circuit 31. The normalized scaled coefficients are thereafter stored, for subsequent use, in the storage element 33. In the embodiment shown, it will be noted that the circuitry 5Q is clocked antiphase to the counter. This provides time for propogation of the signal through elements 15, 18, 22, 24, 25 and 26. It will be remembered that the total number of coefficients is N but only (N+l)/2 scaled coefficients were calculated due to the symmetry of coefficient values about the center tap. Thus, in the normalization process, it is necessary to add the value of the scaled coefficients twice or to multiply each coefficient (except the center coefficient) by the factor 2. Binary numbers may be multiplied by 2 simply by shifting their bit positions leftward one bit position. Element 29 between the ACCUMMULATOR 30 and MULTIPLIER 26 performs a one bit left shift on the scaled coefficients when the signal at its control input connection 23 is high. Element 29 passes the binary number at its input connection unaltered when the signal on the control input is low. A decoder 14, which may be a conventional OR gate coupled to the output of counter 12, will produce a high output signal for all binary output numbers greater than zero and a low output signal for a binary output number equal to zero. Decoder 14 may therefore be utilized to control the SHIFT LEFT circuit 29 to double all the scaled coefficients except the coefficient corresponding to h(0). The output of the OR gate 14 is complemented in INVERTOR circuit 35 to reset the accummulator at the beginning of each number sequence and latch the accummulated number therein into the LATCH circuit at the end of each sequence. (Note the end of one sequence " corresponds to the beginning of the next.) A delay 34 is interposed between INVERTOR 35 and the reset input terminal (R) of the ACCUMMULATOR 30 to insure that the contents therein are transferred to the LATCH 32 before the accummulator is reset to zero. Referring to FIGURE 3, a microprocessor and support hardware is configured to perform the function of the FIGURE 2 circuit. The microprocessor 62 which may be an RCA Corporation CDP 1802 COSMAC Microprocessor, stimulated by oscillator 61 cycles through program steps stored in ROM 63. A set of "standard" coefficients which may be stored in ROM 63 or RAM 64 are scaled in accordance with equation 4 -with the computed scaled coefficients being stored in RAM 64. The scaling factor is provided to the microprocessor through the input device 60_which for analog scale factors may include an analog-to-digital converter. FIGURE 4 is a flow chart describing the operation of the FIGURE 3 circuit. When the microprocessor (processing means) is directed to compute scaled coefficients, it is first directed to obtain the scale factor (70) and to initialize an index (1} and sum to zero (71). The index (I) is then multiplied by the scale factor (72). The product (a I) is separated (73) into its integer (K) and fractional parts (a f) . Two of the standard coefficients H(K+1), H(K) are accessed (74) from memory. The scaled coefficient H'(I) is then computed (75) according to the equation H'(I) = a[(H(K+l) - H(K))af + H(K)]. The scaled coefficient is stored (76) in memory for subsequent normalization. The index I is checked (77) to determine if it is zero. If it is greater than zero, the scaled coefficient is doubled (78) and then summed (79) with the previously calculated scaled coefficients. If the index I is zero, it is placed directly in the accummulator (79). The index I is then checked (80) to determine if the requisite number of scaled coefficients have been computed. If not, the index I is incremented (81) by one and the foregoing steps reiterated. If the desired number of scaled coefficients have been computed then each of the computed coefficients are divided by the ' sum (83) of all of the scaled coefficients and successively stored (84) in memory for subsequent application to the filter weighting circuits. The foregoing embodiments describe apparatus for calculating (N+l)/2 scaled weighting coefficients for an N tap filter from (N+l)/2 standard coefficients. It will readily be appreciated that by slight modification of the circuitry, N scaled coefficients may be calculated from N O standard coefficients for an N tap filter and thus the invention is applicable .for calculating scaled coefficients for filters having other than symmetrical coefficients. •

Claims: WHAT IS CLAIMED IS: 1. Apparatus for generating scaled weighting coefficients for sampled data filters from a set of N standard weighting coefficients, comprising: means for storing said standard coef icients, wherein said standard coefficients are indexed in a predetermined sequence; a terminal for applying a scale factor "a"; means for generating a sequence of numbers corresponding to the index values of. the standard coefficients; means for generating the products of the scale factor times each of said numbers of said sequence wherein each product has an integer part K and a fractional part F; means for calculating values for the scaled coefficients according to the equation H'U) = a[(H(K+l) - H(K))F + H(K)] where H'(I) equals a scaled coefficient H( ) is a standard coefficient with index K and H(K+1) is a standard coefficient with index K+l; and means for storing the scaled coefficients H'(I). 2. The apparatus set forth in Claim 1 further including; means for generating the sum of the scaled coefficients; means for dividing each of said scaled coefficients by said sum thereby normalizing each scaled coefficient; and means for storing said normalized scaled coefficients for use in a sampled data filter. 3. The apparatus set forth in Claim 1 wherein the means for generating the sequence of numbers is a binary counter responsive to a clocking signal. 4. The apparatus set forth in Claim 1 wherein the means for generating the products of the scale factor times each number is a binary multiplier having parallel output bit lines, respective ones of said output lines corresponding to the integer part of said products and respective ones of said output lines corresponding to the fractional part of said products. 5. The apparatus set forth in Claim 1 wherein the means for storing the standard coefficients is a memory device responsive to the integer part of said products for producing at respective output terminals the standard coefficient having an index value K equal to said integer and the standard coefficient having an index value K+l corresponding to said integer incremented by one. 6. The apparatus set forth in Claim 5 wherein the means for calculating the products H*(I) comprises: a subtraction circuit having first and second input connections to said memory device for applying the standard coefficients having index values K and K+l and producing at an output connection thereof the difference (H(K+1) - H(K)); a first multiplier circuit having an output connection and having first and second input connections for applying the output from said subtraction circuit, and the fractional value F of the product of the index times the scale factor; an addition circuit having an output connection, and having first and second input connections for applying signal from the output connection of said first multiplying circuit and from the memory device output terminal producing the standard coefficient H(K); and a second multiplying circuit having first and second input connections for applying said scale factor and signal from the output connection of said addition circuit " , said second multiplying circuit producing at an output terminal thereof, said scaled coefficients. OMPI WffO 7. Apparatus for generating sets of scaled weighting coefficients for a sampled data filter from a set of standard coefficients and a scale factor comprising: means for storing said scaled coefficients, wherein said scaled coefficients are successively indexed, according to their relative position of application in said filter, said standard coefficients being denoted H(K) where K is an index variable; means for storing said scaled coefficients H f (I) where I is an indexing variable; a connection for applying a scale factor "A"; processing means preprogrammed to generate a sequence of successive index numbers I, multiplying each number I of said sequence by the scale factor A, accessing the standard coefficients from the means for storing the standard coefficients and the factor A from said connection, calculating the scaled coefficients according to the equation H'(I) = A[(H(K+1) - H(K))F + H(K)] where K equals the integer part of A times I, the product of the scale factor times the number I of the index sequence, and F is the fractional part of the product of A times I, and applying the calculated values H'(I) to the means for storing the scaled coefficients. 8. The apparatus set forth in Claim 7 wherein the processing means is a microprocessor. 9. The apparatus set forth in Claim 8 wherein the means for storing the standard coefficients is a Read Only Memory. 10. The apparatus set forth in Claim 8 wherein the means for storing the scaled coefficients is a Random Access Memory. OMPI 11. The apparatus set forth in Claim 7 wherein the processing means is further preprogrammed to normalize the scaled coefficients by summing the values of all the coefficients in a set and dividing each scaled coefficient by the sum of the coefficient value. 12. A method for generating scaled weighting coefficients for application to weighting circuits of a sampled data filter, from a set of standard weighting coefficients predetermined to produce a nominal desired frequency response from said filter, comprising a piecewise linear interpolation of the filter impulse response described by said standard coefficients at points in time corresponding to the relative time position of the standard coefficients multiplied by the scale factor. 13. The method set forth in Claim 11 wherein the standard coefficients H(K) have successive index values K according to their relative positions in the filter and the scaled coefficients H'(I), I being an indexing variable are generated according to the equation H'(I) = A[(H(K+1) - H(K))F + H(K)] where A is a scale factor, F is the fractional part of A times I and K is the integer part of A times I . 14. The method set forth in Claim 11 wherein the interpolation comprises: storing said standard coefficients H indexed with variables K; generating a sequence of variables I; multiplying each variable I by the scale factor A; determining the integer part K and the fractional part F of the products of A times I; and calculating the respective scaled coefficients H'(I) according to the equation H f (I) = A[(H(K+1) - H(K)]F + H(K)]. δϊΛPI (4 , IPO

Inventors: BATTERMAN ERIC PAUL, BERNARD FRANCIS SELWYN, ELISCU STEVEN MICHAEL, BATTERMAN, ERIC, PAUL, BERNARD, FRANCIS, SELWYN, ELISCU, STEVEN, MICHAEL
Applicants: RCA CORP, RCA CORPORATION
Application year: 1984
Main classification: G06F15
IPC codes: G06F17, H03H17