A novel and useful apparatus for and method of DC offset compensation for use
in
a communications receiver. The invention is operative to calculate an estimate
of the DC offset which is subsequently subtracted from each input sample to generate
compensated samples. The training sequence portion of the uncompensated input samples
is used to generate an estimate of the DC offset. The vector used in calculating
the offset estimate is pre-calculated for several channel lengths and stored in
memory. An estimate of the channel is generated which provides the channel length
and the location in the input sample buffer of the first training sequence sample
to be used in calculating the offset estimate. The channel length is used to determine
the number of training sequence samples to be used and to select one of the previously
calculated vectors.