BACKGROUND OF THE INVENTION 
     1. Field of the Invention 
     The subject invention relates to the demodulation of quadrature amplitude modulation (QAM) signals. 
     2. Description of the Related Art 
     QAM systems require analog input signals which have gain and DC offset errors minimized if denser QAM constellations are to be operated in a noisy environment. 
     Analog-to-digital (A/D) converters have a DC offset that varies from part to part, due to temperature, voltage and time. This DC offset at the A/D converter adds an error to the QAM constellation that effects the overall noise performance of the demodulator. The DC offset shifts all of the constellation points away from the center of the decision region reducing the probability of correct slicing in the presence of noise and/or phase error. 
     SUMMARY OF THE INVENTION 
     It is an object of the present invention to provide a circuit arrangement capable of correcting for DC offset in the demodulation of a QAM signal. 
     This object is achieved in a circuit arrangement for providing signal correction for QAM demodulation, the circuit arrangement comprising means for receiving an input analog QAM signal; analog-to-digital converting means for converting the analog QAM signal into a digital QAM signal samples; first determining means, coupled to said analog-to-digital converting means, for determining which of said digital QAM signal samples represent positive values; first averaging means, coupled to said first determining means, for forming a first average of said digital QAM signal samples representing positive values; second determining means, coupled to said analog-to-digital converting means, for determining which of said digital QAM signal samples represent negative values; second averaging means, coupled to said second determining means, for forming a second average of said digital QAM signal samples representing negative values; first combining means for combining said first average and said second average, said first combining means having an output for providing a combination signal resulting from said second average being added from said first average; and digital-to-analog converting means for converting said combination signal into an analog DC error signal, wherein said receiving means comprises second combining means for combining said DC error signal with said input analog QAM signal, said second combining means having a non-inverting input coupled to receive said input analog QAM signal, an inverting input coupled to receive said DC error signal, and an output coupled to an input of said analog-to-digital converting means. 
     A further object of the invention is to provide a circuit arrangement capable of providing automatic gain control for QAM demodulation. 
     This object is achieved in a circuit arrangement for providing signal correction for QAM demodulation, the circuit arrangement comprising means for receiving an input analog QAM signal; analog-to-digital converting means for converting the analog QAM signal into a digital QAM signal samples; first determining means, coupled to said analog-to-digital converting means, for determining which of said digital QAM signal samples represent positive values; first averaging means, coupled to said first determining means, for forming a first average of said digital QAM signal samples representing positive values; second determining means, coupled to said analog-to-digital converting means, for determining which of said digital QAM signal samples represent negative values; second averaging means, coupled to said second determining means, for forming a second average of said digital QAM signal samples representing negative values; combining means for combining said first average and said second average so that said second average is subtracted from said first average forming a difference signal; and digital-to-analog converting means for converting said difference signal into an analog gain control signal, wherein said receiving means comprises gain control means for controlling a gain of said input analog QAM signal in response to said gain control signal, said gain control means having an input coupled to receive said analog QAM signal, a gain control input coupled to receive said analog gain control signal, and an output coupled to an input of said analog-to-digital converting means. 
     A still further object of the invention is to provide a circuit arrangement capable of achieve both DC offset correction and automatic gain control for QAM demodulation. 
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS 
     With the above and additional objects and advantages in mind as will hereinafter appear, the invention will be described with reference to the accompanying drawings, in which: 
     FIG. 1A shows a QAM envelope signal in time domain with no DC offset, while FIG. 1B shows the QAM envelope signal with a DC offset; 
     FIG. 2 shows a diagram of the constellation points of a QAM signal in which there is a DC offset in the constellation points; 
     FIG. 3 shows a block diagram of a first embodiment of a circuit arrangement for correcting DC offset; 
     FIG. 4 shows a block diagram of a second embodiment of a circuit arrangement for correcting DC offset; 
     FIG. 5 shows a block diagram of a first embodiment of a circuit arrangement for providing automatic gain control; 
     FIG. 6 shows a block diagram of a second embodiment of a circuit arrangement for providing automatic gain control; 
     FIG. 7 shows a block diagram of a circuit arrangement for both correcting DC offset and providing automatic gain control; and 
     FIGS. 8A-8C show timing diagrams for switching signals for the embodiment of FIG. 7. 
    
    
     DESCRIPTION OF THE PREFERRED EMBODIMENTS 
     FIG. 1A shows a diagram of a QAM envelope signal in the time domain. As shown, the signal has a 2 volt peak-to-peak amplitude centered around the 0 volt axis, i.e., the signal ranges from -1 volt to +1 volt. Hence, this signal does not have any DC offset. Conversely, FIG. 1B shows the same QAM envelope signal having a 2 volt peak-to-peak amplitude. However, in FIG. 1B, the signal ranges from -0.5 volts to +1.5 volts; a DC offset of +0.5 volts. 
     In FIG. 2, the effect of a DC offset is shown in a diagram of the constellation points of the QAM signal. 
     The DC offset shifts all of these constellation points away from the center of the decision region thereby reducing the probability of a data slicer from correctly slicing the signal in the presence of noise and/or phase error. 
     FIG. 3 shows a block diagram of a first embodiment of a circuit arrangement capable correcting this DC offset. The analog QAM signal is applied to a non-inverting input of operational amplifier 10. The output from operational amplifier 10 is applied to an analog-to-digital (A/D) converter 12. The digitized QAM signal samples at the output of A/D converter 12 is applied to a circuit 14 for determining which of the signal samples represent positive values. These signal samples are then applied to an averager 16. Similarly, the digitized QAM signal samples at the output of A/D converter 12 are applied to a circuit 18 for determining which of the signal samples represent negative values, these negative signal samples being averaged in an averager 20. The outputs from averagers 16 and 20 are applied to the first and second inputs, respectively, of a signal combiner 22 which form a combination signal representing the sum of the signals at its first and second inputs. An output from the signal combiner 22 is applied to a digital-to-analog converter 24. The output from the D/A converter 24, representing the DC offset value, is applied to the inverting input of operational amplifier 10, thereby compensating for the DC offset in the input QAM signal. 
     FIG. 4 shows a second embodiment of the circuit of FIG. 3 in which the same components bear the same reference numbers. The output from the signal combiner 22 is now applied through a low-pass filter 26 to the input of a threshold circuit 28. The threshold circuit 28 receives a signal representing a maximum DC offset value from signal source 30, and a signal representing a minimum DC offset value from signal source 32. If the low-pass filtered combination signal is greater than DC MAX, the threshold circuit 28 applies a signal to its increment (I) output, while if the low-pass filtered combination signal is less than DC MIN, the threshold circuit 28 applies a signal to its decrement (D) output. These outputs (I, D) are applied to the up and down inputs, respectively, of an up/down counter 34. The output from the up/down counter 34, representing the DC offset, is now applied to the D/A converter 24. 
     FIG. 5 shows a block diagram of a circuit for providing automatic gain control for the QAM signal. This circuit is substantially similar to that shown in FIG. 3 and as such, identical components bear the same reference numbers. 
     The input operational amplifier 10&#39; now has an input for adjusting its gain. The output from D/A converter 24 is now applied to this gain adjusting input. In addition, the signal combiner 22&#39; now forms the difference between the outputs from the averagers 16 and 20. By applying the resulting signal to the operational amplifier 10&#39; as a gain control signal, the circuit achieves an automatic gain control. 
     FIG. 6 shows as second embodiment of the circuit of FIG. 5 which is substantially similar to that shown in FIG. 4, and as such, identical components bear the same reference numbers. 
     The output from signal combiner 22&#39; is now applied to the low-pass filter 26, while the sources 30 and 32 are replaced by sources 36 and 38 which provide an AGC MAX value and an AGC MIN value, respectively. The operation of the circuit is similar to that of the circuit of FIG. 4 with the exception that the value applied to the D/A converter 24 is the gain factor. 
     FIG. 7 shows a block diagram of a combined DC offset correction and automatic gain control circuit. The circuit of FIG. 7 is essentially a combination of the circuits of FIGS. 4 and 6, and as such, identical components have the same reference numbers. 
     In particular, the signal combiner 22&#34; now has a first output for providing the combination signal and a second output for providing the difference signal. These outputs are applied to the first and second inputs of a multiplexer 40, the output from the multiplexer 40 being applied to the low-pass filter 26. In addition, this embodiment includes the sources 30 and 32 as well as the sources 36 and 38, in which the outputs from the sources 30 and 36 are applied to a multiplexer 42 which applies its output to the maximum threshold input of the threshold circuit 28. Similarly, the outputs from the sources 32 and 38 are applied to a multiplexer 44 which applies its output to the minimum threshold input of the threshold circuit 28. The output from the up/down counter 34&#39; is applied to a register 46 which then applies its output to the D/A converter 24 whose output, representing the DC offset, is applied to the inverting input of operational amplifier 10&#34;. The output from the up/down counter 34&#39; is also applied to a register 48 which then applies its output to a D/A converter 50 whose output, representing the gain factor, is applied to the gain control input of operational amplifier 10&#34;. In addition, the output from the up/down counter 34&#39; is applied to registers 54 and 56, the outputs therefrom being applied to a multiplexer 58 which applies its output to a count value input of the up/down counter 34&#39;. 
     A switching signal generator 60 generates a first switching signal for switching the multiplexers 40, 42, 44 and 58 in synchronism, a second switching signal for causing the registers 46 and 54 to store the output signal from the up/down counter 34&#39; representing the DC offset value, and a third switching signal for causing the registers 48 and 56 to store the output signal from the up/down counter 34&#34; representing the gain factor. 
     FIGS. 8A-8C show timing diagrams for the switching signals from the switching signal generator 60. In particular, as shown in FIG. 8A, the first switching signal, in a first switching phase, causes the combination signal from the &#34;+&#34; output of signal combiner 22&#34; to be connected to the low-pass filter 26, the DC MAX and DC MIN sources 30 and 32 to be connected to the maximum and minimum threshold inputs, respectively, of the threshold circuit 28, and the output of register 54 to be connected to the count value input of the up/down counter 34&#39;. Arranged as such, the circuit arrangement is set to determine the DC offset. Similarly, the first switching signal, in a second switching phase, causes the difference signal from the &#34;-&#34; output of signal combiner 22&#34; to be connected to the low-pass filter 26, the AGC MAX and AGC MIN sources 36 and 38 to be connected to the maximum and minimum threshold value inputs, respectively, of the threshold circuit 28, and the output of register 56 to be connected to the count value input of the up/down counter 34&#39;. Now the circuit arrangement is set to determine the automatic gain control. 
     The second switching signal, at the end of the first, third, fifth, . . . , switching phases of the first switching signal, causes the registers 46 and 54 to store the current count value residing in the up/down counter 34&#39;, which represents the DC offset. Similarly, the third switching signal, at the end of the second, fourth, sixth, etc., switching phases of the first switching signal, causes the registers 48 and 56 to store the current count value residing in the up/down counter 34&#39;, which represents the gain factor. 
     Numerous alterations and modifications of the structure herein disclosed will present themselves to those skilled in the art. However, it is to be understood that the above described embodiment is for purposes of illustration only and not to be construed as a limitation of the invention. All such modifications which do not depart from the spirit of the invention are intended to be included within the scope of the appended claims.
A circuit arrangement capable of achieving both DC offset correction and automatic gain control for QAM demodulation. The QAM signal is digitized and then the positive signal samples are averaged and combined with the negative signal samples. The sum of these two averages is an indication of the DC offset while the difference of these two averages is an indication of the gain factor for automatic gain control. Common circuitry is then alternately used to process the DC offset and the gain factor for automatic gain control.