CODER-DECODER AND CONTROL THEREOF

Abstract: A unique CVSD CODEC is provided utilizing switched capacitor technology. This CVSD CODEC includes a syllabic filter which provides one of a large number of possible step sizes, thereby allowing the CVSD CODEC to accurately track and convert a wide range of input voltages. The CVSD CODEC includes coincidence logic, which determines how accurately the input voltage is being tracked, and a syllabic filter which provides an appropriate step size based upon the output signals of the coincidence logic. Large step sizes are provided for converting input voltages having large magnitudes, and small step sizes are used to convert input voltages having small magnitudes, thereby providing the very accurate resolution of input voltages over the wide range of magnitudes, while minimizing the bit rate required.

Description: This invention relates to a coder-decoder (CODEC) and to a method of controlling the integration signal magnitude in a coder-decoder. Analog-to-digital converters convert an analog signal, typically an analog voltage, into a digital signal. This necessarily requires quantizing the range of analog signal into a number of discrete voltage ranges. For example, in one system a binary signal of 000 will be generated for all voltages ranging from 0 to 0.1 volts, a binary 001 signal will be generated for all voltages greater than 0.1 volt and not greater than 0.2 volts, etc. In some applications, this technique of utilizing voltage steps of a fixed size over the entire range of input voltages is adequate. However, in many instances, in particular in the digital-to-analog and analog-to-digital conversion of speech signals, for example in the operation of a coder-decoder, the use of a large step size will effectively preclude accurate conversion of low level signals, thereby providing unacceptable distortion of the signal. On the other hand, the use of a fixed step of small value, while preventing distortion of low level signals, results in a large number of discrete steps over the entire range of input signals, thereby requiring the digital word representing the analog signal to be rather large. The larger the word size, the greater the transmission rate required to transmit the digital representation of an analog signal. In order to minimize the transmission rate and yet provide a high quality output signal with little distortion, compressor/expanders (companders) are used. It has been found that rather large step sizes may be used when converting speech signals lying in the middle and high end of the speech signal amplitude range without causing excessive distortion of the speech signal. Accordingly, it is highly desirable to utilize a digital-to-analog or analog-to-digital conversion technique which does not use a plurality of steps of equal size, but which uses small steps for the conversion of low level signals, and larger steps for the conversion of larger signals. One technique for doing this is called the continuously variable slope delta (CVSD) modulator, which provides a plurality of steps, each step being of a different size. The smallest step is used to convert low level signals (i.e., those signals having amplitudes near 0 volts), and the steps increase in size, with the largest step being used to convert the largest signals (i.e., those signals having amplitudes of ± Vref, where Vref is the magnitude of the reference voltage used in the CVSD modulator). This nonlinear digital to analog conversion effectively compresses the input analog signal amplitude range from 0 to ± Vref, as shown in Figure 1 of the accompanying drawings, which is a graphical representation of the companding action of a CVSD CODEC constructed in accordance with the invention. This compressed, digital signal is then transmitted to an expander, which converts the compressed signal to an expanded analog signal which is a good reproduction of the input analog signal. One prior art circuit for generating the required step sizes used in a CVSD CODEC is shown in the block diagram of Figure 2 of the accompanying drawings. The analog input signal Vin to be converted is applied to the noninverting input lead 11 of comparator 12. The output signal from comparator 12 is applied via lead 13 to coincidence logic 14. Coincidence logic 14 serves to detect when the output signal from comparator 12 has been continuously either high or low for a plurality of samples, thus indicating that the output signal generated by encoder filter 17 (which is fully described later) is not accurately following the input signal. The output signal from coincidence logic 14 is applied to syllabic filter 15. Syllabic filter 15 establishes the integrating voltage ("step size") used by encoder filter 17 used by the CODEC at any particular time during the analog-to-digital or digital-to-analog conversion process. Thus, if the output signal from encoder filter 17 does not "track" the input voltage fast enough, syllabic filter 15 increases the step size. The output signals from comparator 12 and syllabic filter 15 are applied to polarity switch 16. Polarity switch 16 serves to provide either a positive or a negative voltage to encoder filter 17, depending on whether encoder filter must increase or decrease its output voltage in order to match the input signal Vin. The output signal from polarity switch 16 is applied to encoder filter 17, which serves to integrate the signals received from polarity switch 16 to provide an output signal which matches the input signal Vin. In turn, the output signal from encoder filter 17 is applied to the inverting input lead 18 of comparator 12. The delta modulated digital output signal representing the analog input signal applied to input terminal 11 is provided by the output signal bit stream from comparator 12 made available to other circuitry (not shown) on output terminal 21. The companding action provided by the circuit of Figure 2 improves the signal to noise performance of the CODEC, as compared with CODECs which utilize a fixed step size which is too great to accurately reproduce low level input signals Vin. The companding action provided by the circuit of Figure 2 also decreases the bit rate which is required by delta modulators which utilize a fixed step size which is sufficiently small to allow proper reproduction of low level input signals Vin, but which is much smaller than the step size required to accurately reproduce large level input signals Vin. One type of prior art syllabic filter 20 is shown in the schematic diagram of Figure 3 together with one prior art circuit serving as coincidence logic 14. Coincidence logic 14 receives an input signal on input terminal 21 from comparator 12 (Figure 2). This input signal is clocked into four bit shift register 22. When the output signals A0 through A3 provided by shift register 22 are all logical zeros or all logical ones, indicating that the output signal from encoder filter 17 (Figure 2) has not tracked the input signal Vin and thus that the step size provided by syllabic filter 15 is too small, the output signal from OR gate 29 goes high, thereby connecting capacitor 26 to reference voltage Vref through resistor 25, thereby charging capacitor 26 and increasing the output voltage available on lead 27. This output voltage on lead 27 is applied to encoder filter 17 (Figure 2), thereby increasing the step size. Conversely, when the step size is too large, the output signal from comparator 12 (Figure 2) toggles between one and zero and the output signals A0 through A3 provided by shift register 22 are not all logical ones or zeros which cause the output signal from OR gate 29 to go low, thereby discharging capacitor 26 through resistor 25, thereby decreasing the voltage available on output terminal 27. This discrease in output voltage on terminal 27 causes the step size to decrease, providing more accurate conversion of the input signal. However, such a prior art syllabic filter 20 utilizing shift register 22 as coincidence logic has not proven adequate to provide sufficiently low distortion due to poor control of the step size. In the prior art, syllabic filter 15 has been satisfactorily realized in discrete form by cascading two very low frequency single pole sections, as shown in the schematic diagram of Figure 4. However, it is highly desirable to fabricate CODECs in integrated circuit form, thereby achieving substantial cost and size reductions over CODECs formed from discrete components. Metal oxide silicon (MOS) technology is especially useful to form very large integrated circuits, typically containing as many as five thousand transistors to form a complex circuit of which a CODEC is only a part. However, in MOS technology, resistor values, capacitor values, and resistor ratios are not highly controllable. The syllabic filter shown on the schematic diagram of Figure 4 relies on the absolute values of resistors 35 and 37, and 39 and 41, and capacitors 38 and 42 to define the operating characteristics (such as time constants) of the syllabic filter. In order to overcome the problems associated with highly uncontrollable resistor and capacitor absolute values in MOS technology, switched capacitor resistor equivalent technology has been developed, as described in an article by Allstot, et al., entitled "MOS Switched Capacitor Ladder Filters", IEEE Journal of Solid-State Circuits, Volume SC-13, No. 6, December, 1978, pages 806 to 814, which is hereby incorporated by reference. Switched capacitor resistor equivalent technology utilizes a capacitor and appropriate switches to form a resistor equivalent. Because in MOS circuits the thickness of dielectrics are rather constant over the surface of the device, and the size of capacitor plate areas is highly controllable, ratios of capacitances are highly controllable. Thus, the use of switched capacitor resistor equivalent technology allows the highly uncontrollable RC time constants realized by capacitors and resistors to be replaced by highly controllable time constants realized by capacitor ratios. However, implementation of the syllabic filter of Figure 4 as an MOS integrated circuit utilizing switched capacitor technology provides very poor performance due to the very long time constants involved. Due to the very long time constants, the capacitance value of the capacitors used to form switched capacitor feedback resistors 37 and 41 become very small causing very small amount of DC feedback, which in turn results in a large DC offset voltage due to clock feedthrough and operational amplifier DC offset voltage. For proper performance the step-size should be controlled very accurately and the DC offset component of the output signal of syllabic filter 15 must be less than one millivolt. DC offset voltages are caused by undesirable feedthrough of clock signals and offset voltages inherent in all operational amplifiers due to finite component mismatches. When implementing the syllabic filter of Figure 4 using switched capacitor resistor equivalents, an offset voltage of approximately 100 millivolts was realized, thereby precluding use of this type of syllabic filter utilizing capacitor technology. Also, reference may be made to US-A-4 352 191 which discloses a Coder-Decoder comprising an input terminal for receiving an input signal to be converted, comparator for providing a binary digit output signal and having first input lead connected to the input terminal, a second input lead, and an output lead, an encoder filter for providing an encoder filter output voltage and having an input lead and an output lead connected to the second input lead of the comparator, coincidence logic for providing a coincidence signal when the binary digit output signal from said comparator has been a logical one or a logical zero during each of the previous two sample periods, the coincidence logic comprising a shift register for storing the values of the binary digit output signal during two sample periods, logical means for providing a coincidence signal when the two bits stored in the shift register are either both logical ones or both logical zeros, an up/down counter responsive to the coincidence signal, and means for instantaneous companding of the step size, syllabic filter means responsive to the coincidence logic and providing a syllabic filter output signal having a magnitude proportional to the number of preceding sample periods in which the coincidence signal is present; and polarity switch means responsive to the binary value of the binary digit output signal. In accordance with the present invention, there is provided such a Coder-Decoder in which, in the coincidence logic, the shift register comprises an N-bit register for storing the values of the binary digit output signal during N sample periods, the logical means provides a coincidence signal when the N bits stored in the shift register are either all logical ones or all logical zeros, the counter is an M bit counter, where M is a selected integer, the contents of the counter incrementing when the coincidence signal is present and decrementing when the coincidence signal is not present, and the means comprises means for providing the P most significant bits and the Q least significant bits from the up/down counter to the syllabic filter, where P and Q are selected positive integers such that P+Q=M , in which the syllabic filter means comprises means for generating a reference voltage proportional to the P most significant bits, a switched capacitor gain stage, and means for controlling the gain of the switched capacitor gain stage proportional to the Q least significant bits, and in which the polarity switch is a polarity switch means responsive to the coincidence logic, the polarity switch means connecting, to the encoder filter, the positive value of the syllabic filter output signal when the binary digit output signal is of a first binary value, and the negative value of the syllabic filter output signal when the binary digit output signal is of a secondary binary value opposite the first binary value. This invention thus allows a unique CVSD CODEC to be provided utilizing switched capacitor technology. The syllabic filter included in this CVSD CODEC provides a large number of possible step sizes, thereby allowing the CVSD CODEC to accurately track and convert a wide range of input voltages. The coincidence logic of the CVSD CODEC of this invention determines how accurately the input voltage is being tracked, and the syllabic filter provides an appropriate step size based upon the output signals of the coincidence logic. Large step sizes are provided for converting input voltages having large magnitudes, and small step sizes are used to convert input voltages having small magnitudes, thereby providing the very accurate resolution of input voltages over the wide range of magnitudes, while minimizing the bit rate required. With further reference to the accompanying drawings: Figure 5 is a diagram showing the 128 step sizes of an embodiment of the invention; Figure 6 is a schematic diagram of the coincidence logic used in accordance with this invention; Figures 7a and 7b fit together as shown in Figure 7 to form a schematic diagram of a syllabic filter, polarity switch, integrator, and comparator constructed in accordance with the present invention. In accordance with this invention, for use in a CVSD CODEC having a block diagram as in Figure 2, a syllabic filter 15 is provided, which, at any given time, generates a desired one of a plurality of possible step sizes, thereby allowing the output voltage of the encoder filter 17 to track the input voltage Vin applied to the CVSD modulator as accurately and as quickly as possible. Figure 5 depicts the plurality of step sizes that can be generated by such a syllabic filter in accordance with the invention. As shown in the graphical representation of Figure 5, the range of step sizes provided by such a syllabic filter is provided in a plurality of eight "segments", each segment providing a plurality of 16 step sizes. Accordingly, a total of 128 step sizes are available. A detailed schematic diagram of the coincidence logic 14 and a syllabic filter 15 in accordance with the invention is shown in Figures 6 and 7. Referring to Figures 2 and 6, coincidence logic 14 includes an N bit shift register 14-1 (where N is a selected positive integer), in one embodiment, a four bit shift register. Shift register 14-1 stores a plurality of bits provided on lead 13 from the output lead of voltage comparator 12 (Figure 2) which define the relationship during the previous N sampling periods between the input voltage Vin applied to input terminal 11 and the output voltage Venc from encoder filter 17 available on lead 18. In other words, shift register 14-1 provides an indication of whether each of the past N samples of the output voltage Venc from encoder filter 17 is greater than or less than the past N samples of the input voltage Vin applied to input terminal 11, which is defined by the output sign bit provided by voltage comparator 12 on output terminal 21. When the output voltage Venc from encoder filter 17 is less than the input voltage Vin, the output sign bit from comparator 12 is a logical one. Conversely, when the output voltage Venc from encoder filter 17 is greater than the input voltage Vin applied to terminal 11, the output sign bit from comparator 12 is a logical zero. "Coincidence" is defined, for the purposes of this application, as being when each of the plurality of bits stored in the shift register 14-1 of coincidence logic 14, are of equal value. Thus, when a four bit shift register is used in coincidence logic 14, "coincidence" occurs when the four bit shift register 14-1 of coincidence logic 14 stores either four logical zeros, or four logical ones. When shift register 14-1 stores four logical zeros, it indicates that the output voltage from encoder filter 17 is not tracking the input voltage applied to input terminal 11, and in fact the output voltage from encoder filter 17 has been greater than the input voltage on terminal 11 for the past four sampling periods. Conversely, when the four bit shift register 14-1 of coincidence logic 14 stores four logical ones, this indicates that the output voltage from encoder filter 17 is not tracking the input voltage applied to input terminal 11, and in fact that the output voltage from encoder filter 17 has been less than the input voltage applied to terminal 11 during the past four sampling periods. The logic circuitry provided by NOR gate 14-2 and AND gate 14-3, and OR gate 14-4 provide a logical zero signal on lead 14-4a when coincidence is achieved. With all zeros stored in shift register 14-1, NOR gate 14-2 provides a logical one output signal, thereby generating a logical one output signal on lead 14-4a. Conversely, when all ones are stored in shift register 14-1, AND gate provides a logical one output signal, which in turn cause a logical one to be generated by OR gate 14-4 on lead 14-4a. If shift register 14-1 stores both logical zeros and ones, NOR gate 14-2 and AND gate 14-3 provide logical zeros on their output leads, and OR gate 14-4 provides a logical zero output signal on lead 14-4a, thus indicating that coincidence has not been achieved. When coincidence is achieved, the encoder filter is not tracking the input voltage properly, and accordingly a voltage of greater amplitude must be provided by syllabic filter 15 to encoder filter 17, thereby allowing encoder filter 17 to integrate this voltage and thus cause the output voltage from encoder filter 17 to more quickly move closer to the input voltage Vin, thereby causing the output voltage from encoder filter 17 to better track the input voltage on terminal 11. As previously described, syllabic filter 15 provides a selected one of 128 voltages or "step sizes" to polarity switch 16, and polarity switch 16 applies either the positive or the negative of this output voltage of syllabic filter 15 to encoder filter 17. Thus, polarity switch 16 causes encoder filter 17 to integrate either the positive or the negative value of the output voltage from syllabic filter 15, depending on whether the output voltage from encoder filter 17 is less than or greater than, respectively, the input voltage Vin, as defined by the output sign bit from comparator 12. When coincidence logic 14 indicates that coincidence has occurred (i.e., the shift register of coincidence logic 14 stores all logical zeros or all logical ones), an up/down 14-5 counter within syllabic filter 15 is caused to count up one count. In one embodiment of this invention, up/down counter 14-5 is a seven bit up/down counter, thereby capable of counting from 0000000 to 1111111, or a total of 128 counts. During each sampling period when coincidence logic 14 indicates that coincidence is not achieved, seven bit up/down counter 14-5 decreases its count by one. As seven bit up/down counter 14-5 increases its count due to coincidence, the output voltage from syllabic filter 15, which is the magnitude of the step size by which encoder filter 17 will integrate, is increased, thereby causing encoder filter 17 to provide an output voltage Venc which is closer to the input voltage Vin. Conversely, when coincidence is not detected by coincidence logic 14, the count in seven bit up/down counter 14-5 is decreased, thereby causing the output voltage from syllabic filter 15 to decrease, which in turn causes the output voltage Venc from encoder filter 17 to more accurately track the input voltage Vin utilizing smaller voltage steps. This is necessary because, when coincidence is not detected, the output voltage Venc from encoder filter 17 has not been continuously either greater than or less than the input voltage Vin, and thus is doing a reasonable job in tracking the input voltage Vin. In one embodiment of this invention, coincidence logic 14 includes a rate multiplier, which causes count rate of shift register 14-1 to be increased as coincidence is approached. Thus, in this embodiment of the invention, the count of the shift register 14-1 during each sampling period is not always equal to one, but rather is proportional to the count already stored in the shift register, thereby allowing the step size provided by the encoder filter to be adjusted more quickly to the value required for proper operation of the CVSD CODEC in response to the input signal Vin. The three most significant bits from seven bit up/down counter 14-5 determine which of the eight segments (Figure 5) is to be utilized in generating the output voltage or "step size" provided by syllabic filter 15. The four least significant bits of up/down counter 14-5 are used to select which of the 16 steps of the selected segment is to be used. The three most significant bits provided by seven bit up/down counter 14-5 are applied to a well known three to eight decoder in order to provide output signals ⊘₀ through ⊘₇, with signal ⊘₀ corresponding to the three most significant bits of up/down counter 14-5 equal to 000, and ⊘₇ corresponds to the three most significant bits of up/down counter 14-5 equal to 111. The four most significant bits from seven bit up/down counter 14-5 serve as signals ⊘₈ through ⊘₁₁, respectively. Referring now to Figure 7b, voltage comparator 12 is implemented in one embodiment as an operational amplifier 12-5 utilizing switched capacitor technology and MOS transistors serving as switches. When clock signal ⊘₁₆ is high (logical "one") switches 12-2 and 12-4 are closed, and switch 12-1 is open. This causes the operational amplifier 12-5 to be placed in the unity gain mode, thus causing the inherent offset voltage Voff of operational amplifier 12-5 to be present on its inverting input lead, and thus on one plate of capacitor 12-3. The input voltage Vin is applied to the other plate of capacitor 12-3, thereby storing a voltage (Vin-Voff) on capacitor 12-3. ⊘₁₆ then goes low and ⊘₁₇ goes high, thereby causing switches 12-2 and 12-4 to open and switch 12-1 to close. This causes the output voltage Venc from encoder filter 17 to be applied to one plate of capacitor 12-3, thereby causing capacitor 12-3 to store a voltage equal to (Venc - Voff) - (Vin - Voff) = (Venc - Vin). The output voltage on output terminal 21 is thus either a logical one or a logical zero, depending on whether the output voltage Venc from encoder filter 17 is less than or greater than, respectively, the input voltage Vin. As previously described in conjunction with Figure 2, this output voltage from comparator 12 serves to control polarity switch 16 and coincidence logic 14. A resistance ladder formed of resistors R0 through R14 having a plurality of taps located therebetween allows a desired tap to be selected and thus a voltage between Vref and ground to be used to select which segment is to be utilized. The operation of the circuit of Figure 7a to select the desired segment will be fully described later. In one embodiment of this invention, resistors R0 through R14 are weighted in order to have the following resistance values: Two banks of switches (i.e., switches 50-1 through 57-1, and switches 51-2 through 57-2) are used to select desired taps on resistor ladder R0-R13, thereby providing reference voltages Vr1 and Vr2, respectively. As previously described, control signals ⊘₀ through ⊘₇ are provided by decoding the three most significant bits from up/down counter 14-5 (Figure 6) . The resistor ladder formed by resistors R₀-R₁₄, switches 50-1 through 57-1, and switches 50-2 through 57-2 form part 15a of syllabic filter 15. When ⊘₀ is high, ⊘₁ through ⊘₇ are all low, and thus the voltage provided by the tap between resistors R0 and ground is selected as voltage Vr1. Based on the resistance ratios previously described, the voltage on this tap is equal to Vref (R/255R) = Vref/255. Similarly, when ⊘₁ is high and ⊘₀, ⊘₂ through ⊘₇ are low, the tap between resistors R1 and R2 selected for Vr1, thereby providing a voltage equal to Vref (2R/255R) = 2Vref/255, and the tap between resistors R0 and ground selected for Vr2, thereby providing a voltage Vr2 equal to Vref/255. In this manner, the appropriate voltages Vr1 and Vr2 determine which segment is selected. In another embodiment of this invention, resistor R14 has a resistance value of less than 127R, for example 32R. In this manner, the total resistance of the resistor ladder formed by resistors R0 through R14 is equal to 160R. This causes the voltage at each tap of the resistor ladder to be greater than in the previous embodiment wherein resistor R14 has a resistance value of 127R, thereby allowing the use of a reference voltage Vref whose magnitude is less than the magnitude of the reference voltage Vref required in the previous embodiment, while maintaining the same voltages available on the taps of the resistor ladder formed by resistors R0 through R14. Polarity switch 16 serves to select whether the selected voltages Vr1 and Vr2 from the resistor ladder provided by resistors R0 through R14 are inverted or not. Thus, for example, if it is desired to integrate on selected capacitors C8 through C11 the negative of the voltage Vr1 provided by the appropriate tap on resistor ladder R0-R14, it is necessary to first integrate the ground voltage, and then integrate the selected voltage from the resistance ladder. This is done by making ⊘₁₄ high, and ⊘₁₅ low, thereby turning on switches 50a, 50b, 41a, 41b and turning off switches 51a and 51b. Then, when ⊘₁₃ goes high and ⊘₁₃ goes low, switch 52 turns on and switch 53 turns off, thereby causing ground voltage to be applied to input bus 99 of syllabic filter 15. Then, when ⊘₁₃ goes low and ⊘₁₃ goes high, switch 52 turns off and switch 53 turns on, thereby causing the selected voltage from resistor ladder R0 through R13 to be applied to input bus 99 of syllabic filter 15. Similarly, the negative of the voltage Vr2 is integrated on capacitor Cx through bus 199. Conversely, when it is desired to integrate on selected capacitors C8 through C11 the positive of the voltage Vr1, it is necessary to first sample the voltage Vr1 and then integrate the ground voltage. ⊘₁₄ is placed low and ⊘₁₅ is placed high, thereby turning off switches 50a and 50b and turning on switches 51a and 51b. Thus, when ⊘₁₃ goes high, switch 52 turns on and switch 53 turns off, thereby applying the selected voltage from resistor ladder R0 through R13 to the input bus 99 of syllabic filter 15. Then, when ⊘₁₃ goes low and ⊘₁₃ goes high, switch 52 turns off and switch 53 turns on, thereby applying the ground voltage to the input bus 99 of syllabic filter 15, as desired. The array of capacitors (C8-C11, capacitor CX, switches 47, 48, 54a-57a and 54b-57b form part 15b of syllabic filter 15. Switched capacitor gain stage 60 serves to select the desired segment (Figure 5). A more detailed description of the operation of a switched capacitor gain stage is described in co-pending United States Patent Application Serial No. 06/292,870, Filed August 14, 1981 on an invention of Haque, et al., which is assigned to American Microsystems, Inc., the assignee of this invention. The design of switched capacitor gain stages 60 and 70 which minimize the effect of the offset voltage of operational amplifiers is disclosed in U.S. Patent Application 06/287,387 filed July 27, 1981 and assigned to American Microsystems, Inc., and which is hereby incorporated by reference. The four least signficant bits from seven bit up/down counter 14-5 (Fig.6) of syllabic filter 15 serve to provide signals ⊘₈ through ⊘₁₁, which in turn each select and control the operation of an associated one of capacitors C8 through C11, respectively. Capacitors C8 through C11 have capacitance values of C, 2C, 4C, and 8C, respectively. Integrator capacitor 66 has a capacitance of K₂C. Thus, the output voltage Vout of switched capacitor gain stage 60, ignoring the effect of capacitor CX, is defined as: Vout(a) = (-1 h )(CT/K₂C) Vr1 where Vout(a) = the output voltage component of switched capacitor gain stage 15a due to Vr1; Vr1 = the input voltage provided by switches 50-1 through 57-1 and resistor ladder R0-R14; CT = the total capacitance of selected capacitors C8 through C11; K₂C = the capacitance of capacitor 66; and h = 1, if polarity switch 16 causes the positive of voltage Vr1 to be integrated by selected capacitors C8 through C11 and h = 2 if polarity switch 16 causes the negative of voltage Vr1 to be integrated by selected capacitors C8 through C11. Capacitor CX, having capacitance value 16C, and polarity switch 16b, switches 47 and 48, and switches 51-2 through 57-2, contribute to the output voltage Vout from operational amplifier 61 is defined as follows: Vout(b) = (-1 h ) (16C/K₂C) Vr2 where Vout(b) = the output voltage component of switched capacitor gain stage 60 due to Vr2; Vr2 = The input voltage provided by switches 51-2 through 57-2 and resistor ladder R0-R14; 16C = the capacitance of capacitor Cx; h = 1, if polarity switch causes the positive of voltage Vr2 to be integrated by capacitor Cx and h2 if polarity switch 16 causes the negative of voltage Vr2 to be integrated by capacitor Cx. The output voltage Vout from switched capacitor gain stage 60 is equal to Switched capacitor gain stage 70, which is identical in operation with switched capacitor gain stage 60, serves to amplify the output signal Vout from switched capacitor gain stage 60 and provide an encoder filter output voltage Venc on output lead 18 of switched capacitor gain stage 70. This output voltage Venc is in turn applied to one input lead of comparator 12. Comparator 12 serves to provide an output signal on output terminal 21 indicating whether the input voltage Vin is greater than or less than the encoder filter output voltage Venc. As previously described, this output signal on terminal 21 is applied to coincidence logic 14 (Figures 2 and 6) and polarity switch 16 (Figures 2 and 7a), thereby providing proper operation of the CVSD CODEC constructed in accordance with this invention. In accordance with this invention, capacitors C8 through C11 and CX serve both as the weighting capacitors to provide the appropriate step size, and the input capacitor of switched capacitor gain stage 60, thereby eliminating the need for an additional input capacitor and appropriate switches for sampling the input voltage applied to operational amplifier 61. The elimination of this extra input capacitor saves valuable area on an integrated circuit device, when the CVSD CODEC of this invention is formed as a monolithic integrated circuit. Furthermore, the elimination of the additional input capacitor and associated switches minimizes offset voltages, thereby making the CVSD CODEC of this invention more accurate. The specific embodiments of this invention described in this specification are intended to serve by way of example and are not a limitation on the scope of the invention, which is defined by the claims. Numerous other embodiments of this invention will become apparent to those of ordinary skill in the art in light of the teachings of this specification.

Claims: A Coder-Decoder comprising: an input terminal (21) for receiving an input signal to be converted, comparator (12) for providing a binary digit output signal and having first input (11) lead connected to the input terminal, a second input lead, and an output lead (13), an encoder filter (17) for providing an encoder filter output voltage and having an input lead and an output lead (18) connected to the second input lead of the comparator (12); coincidence logic (14) for providing a coincidence signal when the binary digit output signal from said comparator (12) has been a logical one or a logical zero during each of the previous two sample periods, the coincidence logic (14) comprising; a series connected flip-flop shift register (14-1) for storing the values of the binary digit output signal during two sample periods; logical means (14-2 to 14-4) for providing a coincidence signal when the two bits stored in the shift register (14-1) are either both logical ones or both logical zeros; an up/down counter (14-5) responsive to the coincidence signal, and means for instantaneous companding of the step size, syllabic filter means (15a,b) responsive to the coincidence logic (14) and providing a syllabic filter output signal having a magnitude proportional to the number of preceding sample periods in which the coincidence signal is present, and polarity switch means (16) responsive to the binary value of the binary digit output signal, characterised in that: in the coincidence logic (24), the shift register comprises an N-bit register (14-1) for storing the values of the binary digit output signal during N sample periods, where N is a selected positive integer; the logical means (14-2 to 14-4) provides a coincidence signal when the N bits stored in the shift register (14-1) are either all logical ones or all logical zeros; the counter is an M bit counter (14-5), where M is a selected integer, the contents of the counter incrementing when the coincidence signal is present and decrementing when the coincidence signal is not present; and the coincidence logic comprises means for providing the P most significant bits and the Q least significant bits from the up/down counter (14-5) to the syllabic filter (15), where P & Q are selected positive integers such that P+Q=M ; further characterised in that: the syllabic filter means comprises: means (15a) for generating a reference voltage proportional to the P most significant bits; a switched capacitor gain stage (60,70); and means (15b) for controlling the gain of the switched capacitor gain stage proportional to the Q least significant bits; and still further characterized in that: the polarity switch is a polarity switch means (16) responsive to the coincidence logic (14), the polarity switch means (16) connecting, to the encoder filter (17), the positive value of the syllabic filter output signal when the binary digit output signal is of a first binary value, and the negative value of the syllabic filter output signal when the binary digit output signal is of a secondary binary value opposite the first binary value. A coder-decoder as claimed in claim 1 wherein the counter (14-5) provides an output counter indicative of the contents of the counter, and the encoder filter (17) integrates the voltage on the voltage output lead. A coder-decoder as claimed in claim 2 wherein the syllabic filter (15) comprises providing means driving each of a plurality of output leads with a voltage, and a plurality of switches (50-1 to 57-1, 51-2 to 57-2), each switch having a first lead uniquely coupled to the voltage output lead, the switches (50-1 to 57-1, 51-2 to 57-2) opening and closing in response to the contents of the counter. A coder-decoder as claimed in claim 1 or 2 wherein the syllabic filter comprises: a first and a second terminal for receiving respectively a first and second voltage; a series of serially connected resistors (R₀-R₁₄) coupled between the first and a second terminal and forming a voltage divider network; first switch means (50-1 to 57-2) for coupling a first node (Vr₁) within the voltage divider network to the voltage output lead in response to the output count; and second switch means (51-2 and 57-2) for coupling a second node (Vr₂) within the voltage divider network to the voltage output lead in response to the output count. A coder-decoder as claimed in claim 1, 2, 3 or 4 comprising: a switched capacitor circuit including a plurality of input capacitors (C8-C11) each having a first and a second lead, the first leads being coupled to a common node; a plurality of switches (54a,b-57a,b) each having a first lead coupled to a second lead of a respective one of the capacitors (C8-C11), and each having a second lead coupled to the voltage output lead, the state of the switches being responsive to the output count; an operational amplifier (61,71) having a first input lead coupled to a reference voltage, a second input lead coupled to said common node, and an output lead; a feedback capacitor (63,66,73,76); and a feedback switch (64,65,67,68,74,75,77,78), the series combination of the feedback capacitor (63,66,73,76) and the feedback switch being coupled across the output lead of the operational amplifier (61,71) and the second input lead of the operational amplifier. A coder-decoder as claimed in claim 1, 2, 3 or 4 comprising: a means for driving a first terminal with a voltage; a plurality of switches (54a,b-57a,b) each having a first lead coupled to the first terminal, and each having a second lead, the switches (54a,b-57a,b) opening and closing in response to the contents of the counter; and a plurality of capacitors (C8-C11), each having a first lead coupled to a unique one of the switches (54a,b-57a,b), and each having a second lead coupled to a common node.

Inventors: GREGORIAN, ROUBIK, WEGNER, GLENN
Applicants: AMERICAN MICROSYSTEMS, INCORPORATED
Application year: 1984
Main classification: H03M3
IPC codes: H03M3