A general purpose low cost digital amplitude regulator

Abstract: Apparatus for digital amplitude regulation is disclosed, for use as a volume control or the like, utilizing pulse width modulation to control gain through the variation of the incremental resistance of a two terminal non-linear element (46), the resistance of which varies with current, e.g., a diode or diode like element. A stream of pulses, (from 12), the duty cycle of which is variable and digitally controlled, is filtered to produce a quasi-continuously variable direct-current (DC) voltage (at 22). The DC voltage either directly or by providing a DC current regulates the gain of an amplifier (26) for amplifying the signal of interest by regulating the transmission characteristics of the diode. For low cost implementation in a system already employing a microprocessor or microcomputer the determinative duty cycle can be derived under software control and supplied as an output from a single latchable output pin (13). In an exemplary implementation, the incremental resistance of an ordinary silicon diode is operated in accordance with the small signal model of a diode. Additionally, the use of an energy storing type filter (14,16,18,20) allows the continuous stream of variable duty cycle pulses to be momentarily interrupted so that a pin (13) used for supplying the pulses can be used for the performance of additional functions without affecting the perceived volume level.

Description: This invention relates to apparatus for digitally regulating the magnitude of an output signal derived from an input signal. Demand for higher functionality in today's consumer and business electronics continues to require greater complexity from modern circuits. The further requirement that such products be available at lower cost requires the reuse or multiple function use of as many components as possible. Many microprocessor based products such as telephones, digitally tuned radios, games and facsimile machines produce and/or transmit signals, the amplitudes of which must be regulated. Typically, this regulation process is performed under direct customer control, i.e., volume controls and the like, although there are implementations in which the regulation is done automatically. Today, there is an increasing trend toward push button control because of the low cost of physically providing a button and the circuitry to sense the state of the button. However, the digitally controlled regulators that are responsive to the state of the button continue to add substantial cost. Prior digital controls generally required multiple dedicated pins of a microprocessor or dedicated pins of a latched output port to set volume levels. These control systems typically utilized some type of digital to analog (D/A) converter to which a binary number is supplied as an input and from which a representative voltage magnitude of a predetermined set of voltage magnitudes is derived. This derived voltage magnitude is used to determine the gain of a voltage controlled amplifier. Alternatively, multiple controls for shunting or series incorporating elements, typically resistors, are used to set the gain of an amplification stage. In order to reduce costs, component count and thus the number of gain settings was limited, resulting in noticeable discontinuity between magnitude levels. These prior gain regulation systems did, however, enjoy the advantage of simple and straight forward software development and implementation. Another prior gain regulation system, disclosed in United States patent 4,868,519, uses microprocessor control to generate a variable duty cycle waveform that indirectly controls the drain to source resistance of an FET which is constantly monitored via a feedback loop, to regulate the gain of a two stage amplifier. Still other gain regulators, such as disclosed in United States patent 4,468,631, suggest the use of FETs or photo-resistors and photo-transistors for use in amplitude control apparatus. These systems are relatively expensive to implement because of their complexities. Additional cost is typically incurred by the introduction of non-essential elements that introduce indirectness of control and, most notably, in the use of feedback to monitor the actual value of the gain controlling factor or mechanism. US-A-3942181 discloses a variable-gain amplifier comprising a transistor with an emitter connected in a degenerative emitter-follower circuit which includes a PIN diode traversed by a current injector in the form of an operational amplifier, the PIN diode forming part of a negative-feedback path extending from the output to the inverting input of the operational amplifier. To achieve a gain characteristic whose logarithm varies linearly with a control voltage, this control voltage is fed to the same inverting input through an amplifier circuit with an exponential characteristic, including another operational amplifier provided with an input transistor. According to this invention there is provided apparatus as claimed in claim 1. The prior difficulties with digital amplitude regulators, such as volume controls and the like, are avoided by utilizing pulse width modulation to control gain through the variation of the incremental resistance of a two terminal non-linear element whose resistance varies with current, e.g., a diode or diode like element. A continuous stream of pulses, the duty cycle of which is variable and digitally controlled, is filtered to produce a quasi-continuously variable direct-current (DC) voltage. The DC voltage, either directly or by providing a DC current, regulates the gain of an amplifier by controlling the transmission characteristics of the diode. For low cost implementation in a system already employing a microprocessor or microcomputer the determinative duty cycle can be derived under software control and supplied as an output from a single latchable output pin. In an exemplary implementation, a DC voltage and a corresponding current is generated in response to variable duty cycle pulses by a two stage passive filter. The DC current is used to control the incremental resistance of an ordinary silicon diode operated in accordance with the small signal model of a diode. The diode is substituted for the input resistor in a basic inverting configuration op-amp amplifier, thus directly determining the gain of the amplifier which varies in accordance with the input resistance. One advantage of this system is that because of the natural filtering action inherent in the basic operating principals of the system coupled with the large number of discrete duty cycles that even a reasonably highly loaded microprocessor can produce, the transitions between levels can easily be made to appear continuous to a user. Additionally, the use of an energy storing type filter allows the stream of variable duty cycle pulses to be momentarily interrupted so that the pin used for supplying the pulses can be used for the performance of additional funcitions without affecting the perceived volume level. Thus, for example, the pin can also be used as an output that supplies pulses for scanning a key pad for button depressions. A further advantage of the invention is that it can be easily implemented in a system with only a single voltage supply. Brief Description of the Drawing In the Drawing: Shown if Fig. 1 is an example implementation wherein the amplitude of an input signal is digitally regulated. Detailed Description Shown if Fig. 1 is an example implementation wherein variable width pulses of a fixed frequency, i.e., variable duty cycle pulses, are produced under software control by microcomputer 12. Microcomputer 12 is, for example, an 8-bit microcomputer such as MC68HC05C4 made by the Motorola Corporation. Any known technique for generating and digitally controlling the duty cycle of the pulses may be used For purposes of the present example, it is assumed that the software of microcomputer 12 is responsive to a keyboard or serial message system (not shown), to determine the actual duty cycle to be used at any particular moment. If the amplitudes of multiple signals are to be independently controlled by a single microprocessor each independent control will require its own latchable output pin and corresponding circuitry. The pulses from microcomputer 12 supplied from pin 13 are filtered by a two stage passive filter in which the first stage is comprised of resistor 14 and capacitor 16 and the second stage is comprised of resistor 18 and capacitor 20. The result of the filtering of the variable width pulses is a DC voltage at node 22, the magnitude of which is used as a reference signal. The magnitude of the voltage at node 22 is proportional to and varies directly with the duty cycle of the pulses. Changes in the duty cycle will be tracked by corresponding changes in the reference signal, i.e., voltage magnitude. Resistors 14 and 18 and capacitors 16 and 20 are selected so that the DC voltage maintained at node 22 is stable for any particular duty cycle, and yet, an undue amount of time, as perceived by a user, is not necessary to effect the required changes in the DC voltage. In this example, microcomputer 12 provides a pulse width modulated signal, at an amplitude of 5 volts peak-to peak the duty cycle of which may vary anywhere from 0% to 100%. Thus, the voltage at node 22 will vary from nearly 0 volts at a duty cycle of 0% to nearly 5 volts at a duty cycle of 100% with correspondingly proportionate voltages produced at corresponding duty cycles. Optional resistor 24 can be used to change the ratio of dependence of the voltage at node 22 to the duty cycle of the pulses. Thus, resistor 24 can be used to allow a large variation in duty cycle to translate into a smaller variation of voltage magnitude. This result is due to the voltage divider action between resistor 14 and resistor 24. Operational-Amplifier (op-amp) 26 is connected as a basic inverting amplifier. Non-inverting node 28 is connected to signal ground, a fixed predetermined DC voltage, the magnitude of which is selected to allow maximum distortion free output voltage swing of the selected op-amp. For simplicity, the magnitude of signal ground should not be less than the minimum or more than the maximum voltage that can be directly supplied by the variable duty cycle pulses. If the magnitude of signal ground is less than the minimum or more than the maximum voltage that can be directly supplied by the variable duty cycle pulses some type of level shifting must be performed on the pulses. Level shifting is well known in the art. Output node 30 is fed back through the parallel combination of feedback resistor (R f ) 32 and optional capacitor 34 to the inverting input terminal of the op-amp 26 at node 36. Optional feedback capacitor 34 is used to provide high frequency roll off if it is desired. The value of feedback resistor 32 determines the overall gain in conjunction with the input resistance of the op-amp. Closing of the feedback loop causes a virtual signal ground to appear at the inverting input terminal of the op-amp, i.e. at node 36. Capacitor 38 blocks the transmission of DC but appears as a short circuit to alternating current (AC) signals. Thus, the AC virtual signal ground from the inverting input terminal is extended to appear at node 40. An input signal from a signal source, the magnitude of which is to be regulated, is supplied to resistor 42. As will be shown later, resistor 42, in conjunction with feedback resistor 32 determines the maximum gain of the system. The input signal contains a constant, fixed, predetermined DC component For illustrative purposes, the magnitude of the DC component of the input signal will be chosen to be equal to the magnitude of the DC voltage used for the signal ground. With optional resistor 44 not in the circuit and capacitor 38 blocking DC transmission to the op-amp, a DC voltage divider is formed between the DC voltages present at node 22 and at the signal input. As long as the duty cycle of the variable duty cycle pulses is maintained so that the voltage at node 22 is less than or equal to the DC voltage component of the input signal diode 46 remains in a nonconducting state. Therefore, none of the AC component of the input signal reaches node 40 or the op-amp. As the duty cycle of the variable duty cycle pulses is increased, the magnitude of the reference voltage at node 22 will increase to a magnitude larger than the DC voltage component of the input signal. Diode 46 will turn on and a DC current will flow through resistor 48, diode 46 and resistor 42. This DC current is I d , the bias current for diode 46. The magnitude of I d is dependent upon and varies directly with the magnitude of the reference voltage at node 22. At any instant and for any chosen combination of values and duty cycle the value of the magnitude of I d can be calculated using techniques that are well known in the art The value of resistor 48 is chosen to be relatively large so that the magnitude of I d is maintained relatively small, and further, so that the minor fluctuations in the voltage at node 22 will result in only small changes in I d which are imperceptible to the user. The incremental resistance of the signal model of a diode of an ordinary silicon diode is R d =nV t /I d wherein R d is the small signal resistance of the diode, n is a parameter based on the physical structure of a diode and is specific to the diode chosen and I d is the bias current passing through the diode at a particular instant in time. V t =KT/q where K is Boltzmann's constant, T is the absolute temperature in degrees Kelvin and q is the magnitude of electronic charge. At room temperature (22 degrees C) the value of V t is 25 mV. Therefore, at a fixed temperature for a particular diode, increasing I d decreases the small signal resistance and correspondingly, decreasing I d increases the small signal resistance. The gain of op-amp 26 in the inverting configuration varies inversely with input resistance, in accordance with the formula G=-( R f /R i ) wherein G is the gain, R f is a fixed, predetermined feedback resistor, and R i is the input resistance. In this example, resistor 32 is the fixed feedback resistor R f and input resistance R i is the series combination of resistor 42 and the incremental resistance of diode 46. Thus, if R i is made smaller by reducing the diode resistance, the gain increases. R i is reduced by increasing the duty cycle of the pulses, thus causing the magnitude of the reference voltage and Id to be larger, thereby reducing the diode resistance and resulting in an increased gain. Similarly, if R i is made larger by increasing the diode resistance, accomplished by reducing the duty cycle of the pulses and correspondingly the reference voltage and I d , the gain decreases. Note that the feedback used for establishing the gain of an op-amp is not the same as the mentioned feedback used in prior systems to monitor the actual value of the gain controlling factor or mechanism. The minus sign in the gain formula indicates that the output of the op-amp is 180 degrees out of phase with the input. An advantage of this implementation is that as the incremental resistance of the diode is decreased, less of the AC input signal appears across diode 46 due to the AC voltage divider action between resistor 42 and diode 46. This voltage divider action allows the diode to operate in the piecewise linear region over a wide range of input signals. Another advantage of this implementation is the ability to set the minimum gain to a value other than zero by the incorporation of optional resistor 44. The overall input resistance, and thus the gain, is determined by the sum of resistor 42 and the parallel combination of resistor 44 and the incremental resistance of diode 46. Naturally other implementations of the invention can be envisioned. These would include but are not limited to regulating the incremental resistance of the diode by using the reference signal to regulate the voltage at the cathode of the diode or using the diode in a shunt mode rather than in the presented series mode. An advantage of the presented types of digital volume control systems is that because of the natural filtering action inherent in the basic operating principles of the system coupled with the large number of discrete duty cycles that even a reasonably highly loaded microprocessor can produce, the transitions between levels can easily be made to appear continuous to a user. Another advantage of the invention is that it can be easily implemented in a system with only a single voltage supply. Further, the use of an energy storing type filter allows, the stream of variable duty cycle pulses to be interrupted momentarily so that a pin supplying the variable duty cycle pulses can be used for another function without affecting the perceived volume level. Thus, for example, a microcomputer pin can also be used for supplying variable duty cycle pulses as well as an output for purposes of scanning a key pad for button depressions. Also shown in FIG. 1 is an example optional mini-keyboard for selecting volume up or volume down by a user. The keyboard and associated circuitry comprises push button switches 78 and 80, pull down resistors 82 and 84 and isolation resistor 86. Pins 88 and 90 of microcomputer 52 are configured as input ports. While keyboard scanning techniques are well known in the art, they must be combined with the generation of the variable duty cycle pulses. The keyboard only need be scanned at prescribed intervals and does not need the constant attention of microcomputer 52. When the signals from the keyboard are not being input by microcomputer 12, the signal being supplied to pin 13 is ignored by the keyboard scanning process. At an appropriate time to check the keyboard for switch closures, the value that is being provided to pin 13 as part of a variable duty cycle pulse is temporarily removed. Typically, this value is already stored in a register of microcomputer 52 from which it is copied and supplied to pin 13. Further, the value being output for the variable width pulses is generally determined by an interrupt routine initiated via the timeout of a timer and may actually change during the keyboard scanning operation. The keyboard scanning process in this simple example is initiated by writing a logic one to pin 13 and latching the logic levels appearing at pins 88 and 90. The appropriate value for the variable duty cycle pulses is then replaced at pin 13, by copying the value currently stored in the register, as if the keyboard scanning never took place. Considering switch 78 to signal volume up and switch 80 to signal volume down, a logic one appearing at pin 88 indicates that the user has closed switch 78 and is signaling volume up while a logic zero indicates switch 78 is open. Similarly, a logic one appearing at pin 90 indicates that the user has closed switch 80 and is signaling volume down while a logic zero indicates switch 80 is open. The keyboard is debounced over several cycles. If volume up is signaled, the duty cycle of the variable duty cycle pulses is increased by one unit. If volume down is signaled, the duty cycle of the variable duty cycle pulses is decreased by one unit. If both volume up and volume down are signaled simultaneously the button depressions are ignored and the current duty cycle is maintained.

Claims: Apparatus for digitally regulating the magnitude of an output signal derived from an input signal including means (12) for generating a stream of pulses with a controllable variable duty cycle, means (12) for controlling said duty cycle of said pulses, means (12) for supplying said generated stream of variable duty cycle pulses, means (14,16,18,20) for filtering said stream of variable duty cycle pulses to develop a reference signal, the magnitude of said reference signal being responsive to and proportional with the duty cycle of said stream of pulses, and an input signal source for supplying said input signal, said apparatus being CHARACTERIZED BY a two terminal non-linear element (46), not being a PIN diode, having a resistance value that varies in accordance with a current passing through said element, means responsive to the magnitude of said reference signal for varying the instantaneous operating resistance of said two terminal non-linear element, and amplifier means (26) connected to the two terminal non-linear element to form an amplifying circuit with a variable gain for amplifying an input signal from said signal source, said gain of said amplifying circuit being responsive to said instantaneous operating resistance of said two terminal non-linear element. Apparatus as claimed in claim 1 wherein said means for generating said stream of pulses is digital. Apparatus as claimed in claim 1 or 2 wherein, in operation, said signal from said signal source passes through said two terminal non-linear element whose resistance varies with current. Apparatus as claimed in claim 1, 2 or 3 wherein said reference signal is a voltage. Apparatus as claimed in claim 1, 2 or 3 wherein said reference signal is a current. Apparatus as claimed in any preceding claim wherein said two terminal non-linear element is a diode. Apparatus as claimed in any preceding claim wherein, in operation, said reference signal passes through said two terminal non-linear element whose resistance varies with current. Apparatus as claimed in any preceding claim wherein said means for generating and said means for controlling comprise a microprocessor. Apparatus as claimed in any preceding claim comprising means (12) for receiving a signal indicating an increase in said output magnitude and means (12) for receiving a signal indicating a decrease in said output magnitude, said means for controlling said duty cycle of said pulses being responsive to said signals received by said means for receiving signals for increasing or decreasing said duty cycle in accordance with said signal to correspondingly adjust said output magnitude. Apparatus as claimed in any preceding claim wherein said means for controlling said duty cycle comprises means for varying said duty cycle between 0% and 100%. Apparatus as claimed in any preceding claim comprising means (12) for multiplexing said means for supplying so that said means for supplying serves to supply other signals in addition to said generated stream of variable duty cycle pulses. Apparatus as claimed in claim 11 comprising means (12) for generating a periodic signal, means (78) responsive to said periodic signal for producing a first output indicating increase said output magnitude, and means (80) responsive to said periodic signal for producing a second output indicating decrease said output magnitude, said means for supplying serving to supply on a multiplexed basis said periodic signal, and said means for controlling being responsive to said first and second outputs to appropriately determine said duty cycle. Apparatus as claimed in claim 11 comprising means (12) for generating a periodic signal, and one or more switch means (78,80) for general purpose use, each of said switch means having at least one state, each of said switch means being responsive to said periodic signal so as to produce an output indicative of each of said switch states, and said means for supplying serving to supply said periodic signal.

Inventors: KUTZAVITCH WALTER G, ROSENTHAL EUGENE J, KUTZAVITCH, WALTER G., ROSENTHAL, EUGENE J.
Applicants: AT & T CORP, AT&T CORP.
Application year: 1990
Main classification: H03G1
IPC codes: H03G3, H03G1