The present invention generally relates to analog-to-digital converters, and more particularly relates to a method and apparatus for an improved cyclic analog-to-digital converter.
Data conversion circuitry that converts analog signals into digital signals for processing by a digital signal processor is well known to those skilled in the art. There are a variety of circuits and techniques that may be used for analog-to-digital (A/D) conversion. In addition it is well-known to use A/D circuits for housekeeping chores in devices such as receiving signals from various sensors and converting those signals into digital signals for interpretation and utilization by a controller. For example, in portable electronic devices such as cellular telephones, A/D circuits could be used for housekeeping chores such as monitoring the battery voltage and/or the battery current, monitoring the charging voltage, monitoring die temperature or monitoring touchscreen pressure points. Cyclic A/D circuits, such as redundant signed digit (RSD) cyclic A/D circuits, are suitable for such housekeeping chores.
As can be easily understood, there could be a large number of housekeeping cyclic A/D circuits. Each cyclic A/D circuit consumes power and takes up space. Portable electronic devices are becoming smaller and smaller and have limited power, therefore size and power have become critical design parameters. Thus, what is needed is an improved cyclic A/D circuit with reduced size and reduced power consumption.
An improved analog-to-digital conversion circuit is provided reducing both the size and the power consumption thereof. The analog-to-digital conversion circuit includes a scaling/reference circuit selectably couplable between a first input and a second input for generating an output in response to at least one of the first input and second input, an analog-to-digital converter (ADC) coupled to the scaling/reference circuit for receiving the output therefrom and generating a digital housekeeping signal in response to the output and ADC control circuitry coupled to the scaling/reference circuit and the ADC for controlling the operation thereof. The scaling/reference circuit includes an operational amplifier selectably couplable between the first and second inputs for operating in a reference generation mode and an analog multiplexing mode and a plurality of switching elements coupled to the input and the output of the operational amplifier. The ADC control circuitry is coupled to the plurality of switching elements for operating the scaling/reference circuit during an ADC conversion time having a plurality of phases by coupling and uncoupling various ones of the plurality of switching elements to and from the operational amplifier to operate the operational amplifier in the reference generation mode and the analog multiplexing mode during a first of the plurality of phases and to operate the operational amplifier in the analog multiplexing mode during subsequent ones of the plurality of phases.
A method is provided for analog-to-digital conversion in a cyclic analog-to-digital (ADC) conversion circuit having both reduced size and reduced power consumption. The ADC conversion circuit has an input and an output where the input is selectable between a stable reference input and an analog multiplexer input and includes a scaling/reference circuit having an operational amplifier capable of operating in both a reference voltage generation mode and an analog multiplexing mode. The ADC conversion circuit also has an ADC conversion time comprising a plurality of phases. The method includes the steps of during a first of the plurality of phases operating the operational amplifier in the reference generation mode and the analog multiplexing mode, and during subsequent ones of the plurality of phases operating the operational amplifier in the analog multiplexing mode.
The present invention will hereinafter be described in conjunction with the following drawing figures, wherein like numerals denote like elements, and
The following detailed description of the invention is merely exemplary in nature and is not intended to limit the invention or the application and uses of the invention. Furthermore, there is no intention to be bound by any theory presented in the preceding background of the invention or the following detailed description of the invention.
Referring to
In accordance with the preferred embodiment of the present invention, one or more housekeeping sensors 26, 27, 28, 29 are utilized to sense various housekeeping states (e.g., operational conditions) of the portable electronic device to determine if the housekeeping states sensed are within predefined operational parameters. For example, at least one housekeeping sensor 26 could be coupled to the power control circuitry 24 to sense voltages, currents or other battery conditions. At least one housekeeping sensor 27 could also be coupled to terminals 25 to detect charging voltages or charging currents and to monitor the state of the charging operation. In addition, at least one housekeeping sensor 28 could be coupled to the user interface 20 to sense inputs thereto, such as touchscreen pressure points or user actuable switches. Also, at least one housekeeping sensor 29 could be a temperature sensor to monitor the temperature of the portable electronic device 10 and/or the various components thereof. While not shown in
Each of the housekeeping sensors 26, 27, 28, 29 is coupled to a housekeeping analog-to-digital conversion circuit 30. A stable voltage reference circuit 32 is coupled to the power control circuitry 24 and generates a stable reference signal for providing to the input of the analog-to-digital conversion circuit 30. The stable voltage reference circuit 32 and the stable voltage output should preferably be stable and not vary in response to temperature changes or changes of other external environment conditions, such that the output of the stable voltage reference circuit 32 can be used as a common baseline reference for the portable electronic device 10. The input of the analog-to-digital conversion circuit 30 is coupled to the controller 16 for receiving control signals therefrom as described below in reference to
The operation of the housekeeping analog-to-digital conversion circuit 30 in accordance with the preferred embodiment of the present invention is described in reference to
The algorithm of ADC 38 shown above in C-like abstract can be summarized in the following five steps: first, sample the signal provided from the scaling/reference circuit 36; second, make a decision whether the signal is within one of three possible ranges (≧Vref/4, ≦−Vref/4, or between Vref/4 and −Vref/4); third, based on the decision from step two compute the residual voltage by either (a) multiplying the input by two and subtracting Vref, (b) multiplying the input by two and adding Vref, or (c) multiplying the input by two; fourth, make the decision of step two on whether the computed residual voltage is within one of the three ranges; and fifth, repeat steps three and four n−2 more times with the computed residual voltage each time to obtain n-bit resolution. In accordance with the preferred embodiment of the present invention, a ten-bit resolution of the digital housekeeping signal is desired. Thus, ADC 38 would perform the algorithm to obtain the first bit, i.e., the most significant bit, by simultaneously sampling the input signal in accordance with step one and making the decision of step two on the input signal. Thereafter, ADC 38 performs the algorithm on each subsequent computed residual voltage.
The scaling/reference circuit 36 provides the input signals to the ADC 38. A first input of the scaling/reference circuit 36 is coupled to the stable voltage reference circuit 32 to provide a stable reference signal thereto and a second input is coupled to the output of a channel selector 40. The output of the housekeeping sensors 26, 27, 28, 29 are coupled to the channel selector 40 and upon a channel selection signal from the controller 16, the channel selector 40 selects one of the housekeeping signals to provide to the scaling/reference circuit 36.
In operation, the controller 16 signals the analog-to-digital conversion circuit to perform a conversion on a particular housekeeping signal such as the charger sensor 27 signal by providing an external conversion request signal to the ADC control circuitry 34 and a channel select signal to the channel selector 40. The housekeeping sensor 27 is sensing the charger state and generating an analog housekeeping signal in response to the housekeeping state of the charger. The analog housekeeping signal is provided to the channel selector 40 for provision to the second input of the ADC 30 in accordance with the channel select signal from the controller 16. The scaling/reference circuit 36 and the ADC 30 generate a digital housekeeping signal in response to the stable reference signal and the analog housekeeping signal under the control of the ADC control circuitry 34 in accordance with the clock signal from the controller 16 and provides and end-of-conversion interrupt and the bits of the digital housekeeping signal to the controller 16 for utilization thereby.
Referring next to
The reference circuit 50 is utilized to define the full scale of the ADC 38 by providing reference signals for the ADC 38 (i.e., an upper reference voltage limit, VREFP, and a lower reference voltage limit, VREFM, limit) in response to the stable reference input by control of switching elements 58, 59 so that the ADC 38 can assign the digital “one” value to signals having the full scale and any signal below full scale will be assigned a value equivalent to a ratio of the signal to the full scale. The scaling circuit 52 operates under the control of switching elements 62, 63, 64, 65 to scale the analog input, VIN, to fit into the full scale of ADC 38 as defined in response to the stable reference voltage, VBG, and perform single-ended to differential-ended conversion to derive the lower multiplexer limit, VOUTM, and the upper multiplexer limit, VOUTP. Thus, ADC 38 utilizes the four inputs VOUTM, VOUTP, VREFM and VREFP to generate the digital housekeeping signal.
Referring to
Preferably, the first bit of the ten bit digital housekeeping signal to be generated by the ADC 38 during each ADC conversion time is the most significant bit of the ten bits. During generation of the first bit of the digital housekeeping signal, the ADC control circuitry 34 controls the plurality of switching elements 72, 74, 76, 78, 80, 82, 84, 86, 88, 90 to operate the operational amplifier 70 in the reference generation mode by first coupling the operational amplifier 70 to the stable voltage reference circuit 32 (
For generation of the second through tenth bits of the digital housekeeping signal, the ADC control circuitry 32 controls the plurality of switching elements 72, 74, 76, 78, 80, 82, 84, 86, 88, 90 to operate the operational amplifier 70 in the analog multiplexing mode by coupling the operational amplifier 70 to the selected one of the housekeeping sensors 26, 27, 28, 29 to receive the analog housekeeping signal, VIN, therefrom and generating an upper reference voltage limit, VREFP, and a lower reference voltage limit, VREFM, in response to the analog housekeeping signal and then coupling the operational amplifier 70 to the selected one of the housekeeping sensors 26, 27, 28, 29 to generate the second through the tenth bit signals in response to the analog housekeeping signal, VIN, the upper reference voltage limit, VREFP, and the lower reference voltage limit, VREFM.
The plurality of switching elements 72, 74, 76, 78, 80, 86, 88, 90 are a plurality of switched capacitative elements, i.e., capacitors which are selectably operable, such as coupling one or more inputs to capacitors and thence to the first input 92 or second input 94 of operational amplifier 70. Capacitors 96, 97 and 98 are coupled to the first input 92 of operational amplifier 70 and, as controlled by switching elements 72, 74, 76 and 78, are couplable to either a common mode voltage from stable voltage source 32, VBG, ground, or the selected analog housekeeping signal, VIN. Capacitors 100, 101 and 102 are coupled to the second input 94 of operational amplifier 70 and, as controlled by switching elements 72, 74, 76 and 78, are likewise couplable to VBG, ground or VIN. Switching elements 80 control the operational mode of the operational amplifier 70 by selectably coupling capacitors 104 and 106 between the inputs 92, 94 and the outputs of operational amplifier 70.
In accordance with the preferred embodiment of the present invention, switching elements 82 selective provide high and low outputs from the operational amplifier 70 when operating in the analog multiplexing mode and switching elements 84 selective provide high and low outputs from the operational amplifier 70 when operating in the reference generation mode. Since the scaled and reference outputs are required simultaneously for generation of the first bit of the digital housekeeping signal, the ADC control circuitry 34 of the present invention advantageously controls switching elements 86, 88 and 90 to selectably couple capacitors 110 and 108 to temporarily store an upper reference voltage limit, VREFP, and a lower reference voltage limit, VREFM, generated in the voltage reference mode and thereafter controls switching elements 82 and 84 to provide the upper reference voltage limit, VREFP, the lower reference voltage limit, VREFM, the upper multiplexer output limit, VOUTP, and the lower multiplexer output limit, VOUTM, to the ADC 38.
Referring to
As described previously, in accordance with the present invention, the analog-to-digital converter (ADC) 38 is a cyclic ADC. An ADC conversion time is defined as the time duration of one cycle of the cyclic ADC 38 and the ADC conversion time is made up of a plurality of phases. Each phase corresponds to a bit of the digital housekeeping signal generated by the ADC 38 and, in accordance with the present invention, the digital housekeeping signal is a ten bit signal. Referring to the timing diagram of
In operation, to generate the first bit of the ten bit digital housekeeping signal, the scaling/reference circuit 36 operates in the reference generation mode during time 120 and, first, switching elements 80 are closed to place the operational amplifier in a upper voltage limit generation mode and switching elements 78 are closed to couple the first input 92 of operational amplifier 70 to ground and the second input 94 of operational amplifier 70 to VBG. Then, switching elements 80 are opened to place the operational amplifier in minus generating mode. Switching elements 78 are opened and thereafter switching elements 76 are closed to reverse the first and second inputs 92, 94. In this manner, an upper reference voltage limit, VREFP, and a lower reference voltage limit, VREFM, are generated from the stable reference input, VBG. Switching elements 86 are temporarily closed to store VREFP in capacitor 110 and VREFM in capacitor 108. Thereafter, switching elements 86 are opened and switching elements 88 are closed to latch VREFP and VREFM in capacitors 110 and 108, respectively.
Next, the scaling/reference circuit 36 operates in the analog multiplexing mode 122, 124. Switching elements 80, 72 and 74 are operated to couple the first and second input 92, 94 to the analog multiplexer input, VIN, from the selected one of the housekeeping sensors 26, 27, 28, 29 to generate an upper multiplexer output limit, VOUTP, and a lower multiplexer output limit, VOUTM. When switching elements 72 are closed, the first input 92 of the operational amplifier 70 is coupled to ground and VBG coupled in parallel through capacitors 96 and 97 and the second input 94 of operational amplifier 70 is coupled to VN and ground coupled in parallel through capacitors 101 and 102 and switching elements 80 are closed to place the operational amplifier 70 in the upper voltage limit generation mode for generation of the upper multiplexer output limit, VOUTP, scaled by the reference voltage, VBG. The values VREFM and VREFP are unlatched from capacitors 108 and 110 by closing switching elements 90 and provided to the output. Then, switching elements 80 are opened to place the operational amplifier 70 in the lower voltage limit generation mode and, during analog multiplexing mode 124, switching elements 74 are closed to couple the first input 92 to ground and VIN coupled in parallel through capacitors 96 and 97 and to couple the second input 94 to VBG and ground coupled in parallel through capacitors 101 and 102. And switching elements 82 are closed to provide the upper multiplexer output limit, VOUTP, and a lower multiplexer output limit, VOUTM, to the output. The ADC 38, thus makes the decision whether the first bit, preferably the most significant bit, of the digital housekeeping signal is a digital “0” or a digital “1” in response to the analog multiplexer input, VIN, the upper reference voltage limit, VREFP the lower reference voltage limit, VREFM, the upper multiplexer output limit, VOUTP, and the lower multiplexer output limit, VOUTM, received from the output of the scaling/reference circuit 36.
Subsequent ones of the bits of the digital housekeeping signal are generated during time t2 in analog multiplexing mode 126. First, switching elements 80 and 78 are operated to couple the first and second inputs 92, 94 of operational amplifier 70 to the analog multiplexer input from the selected one of the housekeeping sensors 26, 27, 28, 29 to generate an upper reference voltage limit, VREFP, and a lower reference voltage limit, VREFM. When switching elements 80 and 78 are closed, the first input 92 of the operational amplifier 70 is coupled to ground through capacitor 98 and the second input 94 is coupled to VBG through capacitor 100 and the operational amplifier 70 is operating in the upper voltage limit generation mode. Thereafter, switching elements 84 are closed to provide the values VREFM and VREFP to the ADC 38. Next, switching elements 80 are opened to place the operational amplifier in the lower voltage limit generation mode and switching elements 78 are opened and switching elements 76 are closed to couple the first input 92 to VBG through capacitor 98 and the second input 94 to ground through capacitor 100. In this manner, the ADC 38 makes the decision whether the subsequent bits of the digital housekeeping signal are a digital “0” or a digital “1” in response to the analog multiplexer input, VIN, the upper reference voltage limit, VREFP and the lower reference voltage limit, VREFM as received from the scaling/reference circuit 36.
Thus, it can be seen that the present invention advantageously reduces the number of components in of the ADC conversion circuit. In addition, the present invention reduces the power consumption of the ADC conversion circuit. While at least one exemplary embodiment has been presented in the foregoing detailed description of the invention, it should be appreciated that a vast number of variations exist. It should also be appreciated that the exemplary embodiment or exemplary embodiments are only examples, and are not intended to limit the scope, applicability, or configuration of the invention in any way. Rather, the foregoing detailed description will provide those skilled in the art with a convenient road map for implementing an exemplary embodiment of the invention, it being understood that various changes may be made in the function and arrangement of elements described in an exemplary embodiment without departing from the scope of the invention as set forth in the appended claims.
Number | Name | Date | Kind |
---|---|---|---|
5633640 | Barker et al. | May 1997 | A |
6147522 | Rhode et al. | Nov 2000 | A |
6512472 | Smith et al. | Jan 2003 | B1 |
6653966 | van der Goes et al. | Nov 2003 | B1 |
6940445 | Kearney | Sep 2005 | B1 |