Nova Patents
CA1338040C

Sample rate converter

Abstract

A sample rate converter receives an input stream of samples representative of a time-varying signal and generates a corresponding output stream of samples which is also representative of the time-varying signal and in which each output stream sample appears at a desired time which may differ from the time when a sample appears in the input stream; filter circuitry receives the input stream and generates at least two intermediate samples which appear at different times, and interpolation circuitry combines selected intermediate samples to form a sample of the output stream at the desired time. In another aspect, an improvement is provided for a modem of the kind in which a line signal is sampled at times governed by an unstable clock to generate a first sample stream in which the samples appear with possibly changing sampling phases and a converter converts the first sample stream to a second stream of samples appearing at times that are possibly different from the times of appearance of the samples in the first sample stream; the improvement is means for providing to the converter signals representative of the changing phases of the samples in the first sample stream to cause the conversion to occur in a manner that reduces the contribution of the changing sampling phases to the times of appearance of the samples in the second sample stream.

CA1338040C, drawing sheet 1
Sheet 1 of 2

Term

Term ended

Expired 6 February 2013, 13.6 years ago.

  1. Priority
  2. Filed
  3. Granted
  4. Expired
  5. Today

22 claims: 11 independent, 11 dependent

  1. 1
    21 THE EMBODIMENTS OF THE INVENTION IN WHICH AN EXCLUSIVE PROPERTY OR PRIVILEGE IS CLAIMED ARE DEFINED AS FOLLOWS. 1. A method for receiving an input stream of samples representative of a time-varying signal and generating a corresponding output stream of samples which is also representative of said time-varying signal and in which each output stream sample appears at a desired time which may differ from the time when a sample appears in said input stream, said input sample stream being sampled based on a clock derived from an unstable clock having a nominally fixed rate subject to instabilities, said method comprising receiving said input stream and generating, by filtering, at least two intermediate samples which appear at different times, interpolating selected said intermediate samples to form a sample of said output stream at said desired time, said intermediate samples being selected and said interpolation being controlled in response to the difference between the sampling phase of the input stream and the sampling phase of the output stream, and reducing said instabilities in said unstable clock in order to reduce the contribution of changing sampling phases of the samples in the input stream, which samples are based on said unstable clock, on the desired time of appearance of each sample in the output stream.
  2. 2
    Apparatus for receiving an input stream of samples representative of a time-varying signal and generating a 22 corresponding output stream of samples which is also representative of said time-varying signal and in which each output stream sample appears at a desired time which may differ from the time when a sample appears in said input stream, said input sample stream being sampled based on a clock derived from an unstable clock having a nominally fixed rate subject to instabilities, said apparatus comprising filter circuitry for receiving said input stream and for generating at least two intermediate samples which appear at different times, interpolation circuitry for combining selected said intermediate samples to form a sample of said output stream at said desired time, said intermediate samples being selected and said interpolation circuitry being controlled in response to the difference between the sampling phase of the input stream and the sampling phase of the output stream, and means for reducing said instabilities in said unstable clock in order to reduce the contribution of changing sampling phases of the samples in the input stream, which samples are based on said unstable clock, on the desired time of appearance of each sample in the output stream.
  3. 3
    Apparatus for use with a full-duplex, echo cancellation modem comprising an input for receiving an input stream of samples derived by said modem from a time-varying line signal, said input stream appearing at a rate related to the transmission baud rate of said modem, 22a an output for delivering to said modem, for use in deriving data carried by said line signal, a corresponding output stream of samples which is representative of said time-varying line signal and in which each output stream sample appears at a desired time which may differ from the time when a sample appears in said input stream, said output stream of samples appearing at a rate, possibly different from the input stream sample rate, related to the transmission baud rate of a modem at the other end of said line, 23 filter circuitry for receiving said input stream and for generating at least two intermediate samples which appear at different times, and interpolation circuitry for combining selected said intermediate samples to form a sample of said output stream at said desired time.
  4. 4
    Apparatus for receiving an input stream of samples representative of a time-varying signal and generating a corresponding output stream of samples which is also representative of said time-varying signal and in which each output stream sample appears at a desired time which may differ from the time when a sample appears in said input stream, comprising filter circuitry for receiving said input stream and for generating at least two intermediate samples which appear at different times, said filter circuitry having a plurality of transversal filters for generating said intermediate samples simultaneously using two or more different sets of coefficients, each set for generating one of said intermediate samples, and interpolation circuitry for combining selected said intermediate samples to form a sample of said output stream at said desired time.
  5. 5
    Apparatus for receiving an input stream of samples representative of a time-varying signal and generating a corresponding output stream of samples which is also representative of said time-varying signal and in which each 24 output stream sample appears at a desired time which may differ from the time when a sample appears in said input stream, comprising filter circuitry for receiving said input stream and for generating at least two intermediate samples which appear at different times, and interpolation circuitry for combining selected said intermediate samples to form a sample of said output stream at said desired time, said interpolation circuitry comprising a switch for selecting two of said intermediate samples, and combining circuitry for performing a linear interpolation between said two intermediate samples, and wherein coefficients for said linear interpolation are based on a measure of the difference between the sampling phase of said input stream and the sampling phase of the output stream.
  6. 6
    The apparatus of any one of claims 2, 3 or 5 wherein said filter circuitry comprises a plurality of sets of coefficients, each set for generating one of said intermediate samples.
  7. 10
    The apparatus of any one of claims 2 or 4 wherein said output stream has a sample rate that differs from the sample rate of said input stream.
  8. 17
    The apparatus of claim 16 wherein the sampling phase difference between samples of said input stream and samples of said output stream varies over time, and further comprising means for selecting said intermediate samples and controlling said interpolation circuitry based on said varying difference. 27
  9. 18
    The apparatus of any one of claims 2, 3 or 4 wherein said interpolation circuitry comprises a switch for selecting two of said intermediate samples, and combining circuitry for performing a linear interpolation between said two intermediate samples.
  10. 20
    The apparatus of any one of claims 3, 4 or 5 wherein said input sample stream is sampled based on a clock derived from an unstable clock having a nominally fixed rate subject to jitter and frequency shifts, said output stream appears at a nominally fixed rate, and said intermediate samples are selected and said interpolation circuitry is controlled in response to the difference between the sampling phase of said input stream and the sampling phase of said output stream, said apparatus further comprising means for reducing said jitter and frequency shifts in said unstable clock in order to reduce the contribution of changing sampling phases of the samples in the input stream, which samples are based on said unstable clock, on the desired time of appearance of each sample in the output stream.
  11. 21
    The apparatus of any one of claims 2, 3, 4 or 5 further comprising a buffer for temporarily storing said input stream 28 samples for delivery to said filter circuitry, said samples being stored in said buffer at a first rate which 18 derived indirectly from an external clock, said samples being accepted by said filter circuitry at a possibly different average second rate based on said external clock, said apparatus further comprising a monitor for monitoring the occupancy status of said buffer and causing said average second rate to be adjusted 80 that said buffer 18 normally not full or empty.