This invention relates to amplifiers, and more particularly to programmable-gain amplifiers for Analog Front-End (AFE) applications.
Wearable devices may include sensors to collect physical data such as a heartbeat, perspiration salinity, brain waves, muscle activity, or other electrical activity. Since the electric signals collected are so minute, amplification is necessary before they can be converted from analog to digital signals and be processed digitally such as by a digital-signal processor (DSP).
Wearable devices that are small and light are desirable, but the signal quality must still be sufficient to be useful. Small physical sizes, high noise immunity, and ultra-low power consumption are design goals. Complementary metal-oxide-semiconductor (CMOS) manufacturing processes or derivates or variants are often used to produce integrated Analog Front-End (AFE) devices.
Oscillator 102 generates a clock that is applied to chopping clock generator 104 to generate chopping clocks that operate choppers 116, 118 to sample signals from electrodes 114 which are buffered by chopping amplifier 12.
A Programmable-Gain Amplifier (PGA) clock is generated by PGA clock generator 106 and applied to PGA 10. PGA 10 has a gain that is programmable. Programming the gain allows the flexibility to tune the amplitude and bandwidth so that vital signs of different magnitudes and frequencies can be monitored and better isolated.
Band selection filter 112 may be a switched-capacitor filter to filter the output from PGA 10, such as to better select desired frequencies. This can be considered part of the PGA as the PGA is a 1st order low pass filter. Driver 14 drives the analog input to ADC 110, which converts this analog signal to a digital value, such as by using a Successive-Approximation Register (SAR). ADC clock generator 108 generates a clock to ADC 110.
Bias network 120 samples the input from electrodes 114 and biases chopping amplifier 12, PGA 10, and driver 14. Other biasing, control, or filters may be present.
What is desired is a Programmable-Gain Amplifier (PGA). A PGA for applications such as an AFE shown in
The present invention relates to an improvement in Programmable-Gain Amplifiers (PGA's). The following description is presented to enable one of ordinary skill in the art to make and use the invention as provided in the context of a particular application and its requirements. Various modifications to the preferred embodiment will be apparent to those with skill in the art, and the general principles defined herein may be applied to other embodiments. Therefore, the present invention is not intended to be limited to the particular embodiments shown and described, but is to be accorded the widest scope consistent with the principles and novel features herein disclosed.
Variable gain capacitor 68 has a variable capacitance that has a capacitance value that is controlled by a digital value. Variable gain capacitor 68 samples input voltage VIN through switch 62 which is also closed during the first phase by clock CK1. The other plate of variable gain capacitor 68 at node VX is connected to virtual ground by grounding switch 26 which is also closed by CK1.
During the second phase, CK2 is active and CK1 is inactive. Switches 30, 62, 26 open while switches 35, 38, 42 are closed by CK2. The charges stored on sampling capacitor 20 and variable gain capacitor 68 on node VX are applied to the inverting (-) input of amplifier 40 through switch 35. The non-inverting input of amplifier 40 is connected to virtual ground.
Switch 38 is closed by CK2 to place sampling capacitor 20 in parallel with feedback capacitor 24, as both are connected between the inverting input of amplifier 40 and its output. However, variable gain capacitor 68 is not connected in parallel with feedback capacitor 24. Instead, switch 66 connects the input-side plate of variable gain capacitor 68 to virtual ground, rather than to the output of amplifier 40. Variable gain capacitor 68 allows the gain of the circuit of
Output switch 42 is closed by clock CK2 to allow output voltage VOUT to be charged or discharged by the output of amplifier 40. Direct charge transfer may also occur through switch 38 where charge is transferred directly from sampling capacitor 20 to output VOUT.
Similarly, variable-gain sub-capacitor 74 is enabled when DN is high, but disabled when DN is low. When DN is high, switch 72 connects one plate of variable-gain sub-capacitor 74 to input VIN when CK1 is high. This plate of variable-gain sub-capacitor 74 is connected to virtual ground by switch 76 when CK2 is high. When DN is low, both switches 72, 76 remain open, regardless of CK1 or CK2.
Other variable-gain sub-capacitors and switches exist for bits D2, D3, . . . D(N-1) but are not shown. Each variable-gain sub-capacitor 64 . . . 74 could have the same capacitance value, or the capacitance values could be in a sequence such as binary-weighted. Thus the digital value D1 . . . DN determines the amount of capacitance enabled as the variable gain capacitor. Other components shown in
Assume that D1 is high and DN is low for the digital input value. DN low causes both of switches 72, 76 to remain open, so that the capacitance of variable-gain sub-capacitor 74 does not contribute to the amplifier gain as no charge is transferred from variable-gain sub-capacitor 74.
However, D1 high allows switch 62 to close during the first phase when CK1 is high. Input charge from VIN flows through switch 62 to charge variable-gain sub-capacitor 64. Thus the capacitance of variable-gain sub-capacitor 64 contributes to the amplifier gain since its charge is transferred from VIN.
CK1 high also closed switch 30, allowing input charge from VIN to charge sampling capacitor 20. Grounding switch 26 is also closed by CK1 high, grounding the right plates of sampling capacitor 20 and any of variable-gain sub-capacitors 64, . . . 74 that are enabled. Thus input charge from VIN is sampled and stored onto sampling capacitor 20 and any of variable-gain sub-capacitors 64, . . . 74 that are enabled.
In
Since CK1 is low during the second phase, switches 30, 26 are open. Also, all of switches 62, . . . 72 are open since CK1 is low and the product with any digital value D1, D2, . . . DN is also low.
Switch 35 is closed by CK2 high, allowing the stored charge on node VX to be applied to the inverting input of amplifier 40. Again assuming that D1 is high and DN is low for the digital input value, DN low causes both of switches 72, 76 to remain open, so that the capacitance of variable-gain sub-capacitor 74 does not contribute to the amplifier gain as no charge is transferred from variable-gain sub-capacitor 74.
However, D1 high allows switch 66 to close during the second phase when CK2 is high. Stored charge on variable-gain sub-capacitor 64 is pushed onto node VX as the left side of variable-gain sub-capacitor 64 is connected to virtual ground. Thus the capacitance of variable-gain sub-capacitor 64 contributes to the amplifier gain since its stored charge is transferred to amplifier 40.
Other grounding switches 66, . . . 76 are also closed by CK2 high, grounding the left plates of any of variable-gain sub-capacitors 64, . . . 74 that are enabled. Thus input charge stored on any of variable-gain sub-capacitors 64, . . . 74 that are enabled are applied to the input of amplifier 40.
The left plate of sampling capacitor 20 is not connected to virtual ground during the second phase. Instead, this left plate of sampling capacitor 20 is connected through to the output of amplifier 40 through switch 38. Switches 38, 35 are closed by CK2 high during the second phase. Thus sampling capacitor 20 is connected between the inverting input and the output of amplifier 40 during the second phase. This allows for direct charge transfer between the output of amplifier 40 and the input (left) plate of sampling capacitor 20.
Sampling capacitor 20 is connected in parallel with feedback capacitor 24 during the second phase. However, variable-gain sub-capacitors 64, . . . 74 are not connected in parallel with feedback capacitor 24 but instead are connected as input capacitors. Switch 42 is also closed by CK2 high, allowing the output of amplifier 40 to drive output VOUT.
The transfer function for the amplifier circuit of
Vout(z)/Vin(z)=(1+Cg/Cs)z−1/2/[(+Cfb/Cs)−(Cfb/Cs)z−1]
where Cs is the capacitance of sampling capacitor 20, Cfb is the capacitance of feedback capacitor 24, and Cg is the sum of capacitances of any of variable-gain sub-capacitors 64, . . . 74 that are enabled by D1, D2, . . . DN. The gain is given by (1+Cg/Cs). Thus Cg, the capacitance of the variable gain capacitor, directly controls the amplifier gain.
Node VX connects to the left plate of double-sampling capacitor 22, while the right plate of double-sampling capacitor 22 connects to the inverting (−) input of amplifier 40. The left plate of feedback capacitor 24 connects to the inverting input of amplifier 40 through switch 36, which closes during the first phase when CK1 is high. During the second phase when CK2 is high, the left plate of feedback capacitor 24 connects to node VX through switch 34. Other components are as described for
Since CK1 is high, switch 36 is closed, allowing feedback capacitor 24 to transfer a small offset voltage or charge to the right plate of double-sampling capacitor 22. The left plate of double-sampling capacitor 22 is connected to virtual ground by grounding switch 26. Thus an offset charge is stored on double-sampling capacitor 22 during the first phase. Any noise or input offsets from earlier cycles are reset by grounding switch 26 discharging the left plate of double-sampling capacitor 22. Thus offsets do not accumulate over many cycles of CK1, CK2.
Input charge from VIN is sampled and stored onto sampling capacitor 20 and any of variable-gain sub-capacitors 64, . . . 74 that are enabled as described earlier for
In
During the second phase, the sampled input charge that is stored on sampling capacitor 20 and any of variable-gain sub-capacitors 64, . . . 74 that are enabled are amplified by amplifier 40 to drive output VOUT as described earlier for
Rather than connect directly to the inverting input of amplifier 40, the right plates of sampling capacitor 20 and any of enabled variable-gain sub-capacitors 64, . . . 74 drive node VX, which is the left plate of double-sampling capacitor 22. Any stored offset charge that was stored on double-sampling capacitor 22 during the first phase is added to the stored input charges, and the right plate of double-sampling capacitor 22 then drives the inverting input of amplifier 40. Thus both the stored VIN input charges on sampling capacitor 20 and any of enabled variable-gain sub-capacitors 64, . . . 74 are passed through double-sampling capacitor 22, which adds the offset charge.
Switch 34 is closed by CK2 high, allowing the left plate of feedback capacitor 24 to connect to the left plate of double-sampling capacitor 22. Thus sampling capacitor 20 and feedback capacitor 24 are still connected in parallel, between the output of amplifier 40 and node VX.
In the embodiments of
In
For example, when D2 is low, variable-gain sub-capacitor 68 is disconnected from node VX by isolating switch 131. Isolating occurs for both phases, regardless of CK1 and CK2. Switches 63, 67 also remain open when D2 is low.
When D2 is high, the right plate of variable-gain sub-capacitor 71 is connected to node VX by isolating switch 131. Switch 63 closes when CK1 is high, while switch 67 closes when CK2 is high. Thus VIN is sampled during CK1 and the sampled charge on variable-gain sub-capacitor 71 is pushed to node VX when CK2 is high.
A second circuit similar to that of
Input VINP is sampled by sampling capacitor 20 through switch 30 and by variable gain capacitor 65 through switch 62 when CK1 is high. Node VXP is grounded by switch 26 by CK1. Switch 36 connects feedback capacitor 24 to the right plate of double-sampling capacitor 22 when CK1 is active.
When CK2 is active, the VOUTP output is driven through switch 42 from differential amplifier 70 and connects through switch 38 to sampling capacitor 20. Switch 66 grounds the left side of variable gain capacitor 65 and switch 34 closes to drive the left plate of double-sampling capacitor 22, while the right plate of double-sampling capacitor 22 drives the inverting input of differential amplifier 70.
For the N circuit, Input VINN is sampled by sampling capacitor 21 through switch 31 and by variable gain capacitor 69 through switch 63 when CK1 is high. Node VXN is grounded by switch 27 by CK1. Switch 37 connects feedback capacitor 25 to the right plate of double-sampling capacitor 23 when CK1 is active.
When CK2 is active, the VOUTN output is driven through switch 43 from differential amplifier 70 and connects through switch 39 to sampling capacitor 21. Switch 67 grounds the left side of variable gain capacitor 69 and switch 45 closes to drive the left plate of double-sampling capacitor 23, while the right plate of double-sampling capacitor 23 drives the inverting input of differential amplifier 70.
When CK is high, n-channel transistor 82 closes the drain to source connection, allowing current flow and connecting together the two terminals. Also, CKB is low, so p-channel transistor 84 closes the drain to source connection, allowing current flow and connecting together the two terminals.
When CK is low, n-channel transistor 82 opens the drain to source connection, blocking current flow and isolating the two terminals. Also, CKB is high, so p-channel transistor 84 opens the drain to source connection, blocking current flow and isolating the two terminals.
The bulk or substrate terminal of n-channel transistor 82 can be connected to the lowest available voltage, such as ground when the midpoint is VDD/2, or to an average of the negative peak voltages, or to a substrate bias voltage VBB. Similarly, the bulk or substrate terminal of p-channel transistor 84 can be connected to the highest available voltage, such as VDD.
Several other embodiments are contemplated by the inventors. For example various combinations of the embodiments shown are contemplated. While an application of a PGA for an AFE has been shown, other applications may use the PGA with a variable capacitor that sets the gain. While an AFE for receiving signals from electrodes that pick up an ECG have been shown, other signals, sensors, and applications may be substituted, such as for Electromyography (EMG), Electroencephalography (EEG), Electro-Oculography (EOG), etc. The low power and cost of the circuit is ideally suited for wearable devices with an AFE, such as pulse monitors, respiration monitors, oxygen saturation (SpO2) monitors, acceleration or Gravity (G-force) monitors or sensors, gyroscopes, etc. The circuit could also be used for Radio-Frequency (RF) front ends rather than AFE's, such as for Near-Field Communication (NFC) devices or Radio-Frequency Identification (RFID) devices where a variable gain is desired.
Using double-sampling capacitor 22 has the benefit of reducing or canceling noise or offsets. Offsets may be reduced by large amounts, such as by a factor of 20, and input referred noise may be reduced by a factor of 4 or more. However, using correlated double-sampling as shown in
Direct charge transfer through switch 38 (
Amplifier 40 and differential amplifier 70 may be op amps, differential amps, difference amps, complementary metal-oxide-semiconductor (CMOS) current-mirrored amps, etc. A variety of circuits may be used to implement amplifiers. Current-gain or voltage-gain amplifiers may be used.
Any of variable-gain sub-capacitors 64, . . . 74 that are not enabled may be completely isolated from node VX by an isolating switch such as switch 130 in
The multi-bit digital value may be encoded and then decoded into separate control bits D1, D2, D3, . . . DN. Many encodings or compression functions may be used. Programmable registers may store the encoded multi-bit digital value or a decoded multi-bit digital value.
Grounds may be virtual grounds that have a voltage other than zero volts, or A.C. grounds. A fixed voltage such as a midpoint in an input-voltage swing may be applied as the virtual ground. This voltage may be approximate, such as VDD/2, or may be variable, such as a voltage generated by a filtering capacitor that filters or swings in the input voltage to obtain an average input voltage.
A filter capacitor could be added to VOUT to maintain VOUT during the first phase when switch 42 is open. Parasitic capacitance on VOUT could also be used for this purpose. Isolating switches 130, 131, . . . 140 may be added to some but not all variable-gain sub-capacitors 64, 71, . . . 74. For example, large-value sub-capacitors could have isolating switches while small sub-capacitors with tiny capacitances could eliminate the isolating switches.
Capacitors may be transistors with sources and drains connected together as one capacitor terminal, and the gate as the second capacitor terminal. Other kinds of capacitors could be used, such as a Metal-Insulator-Metal (MIM) capacitor or a Metal-Oxide-Metal (MoM) capacitor or Metal-Metal or Poly-Poly or Metal-Poly or other off-chip capacitors such as a ceramic capacitor or a thin-film capacitor or a polyester capacitor.
Some embodiments may not use all components. For example, switches may be added or deleted in some embodiments. Different kinds of switches may be used, such as 2-way switches or 3-way switches. Muxes may be used as switches. Input or output resistors could be added, or input or output filters used. Inversions may be added by swapping inverting and non-inverting inputs as desired, but do not change the overall function and thus may be considered equivalents. Clocks may be inverted to drive the gates of p-channel transistors. Active-low clocks could be used that have non-overlapping low-going pulses rather than non-overlapping high-going pulses.
Capacitors, resistors, and other filter elements may be added. Switches could be n-channel transistors, p-channel transistors, or transmission gates with parallel n-channel and p-channel transistors, or more complex circuits, either passive or active, amplifying or non-amplifying. External switches such as relays could also be used.
Additional components may be added at various nodes, such as resistors, capacitors, inductors, transistors, extra buffering, etc., and parasitic components may also be present. Enabling and disabling the circuit could be accomplished with additional transistors or in other ways. Pass-gate transistors or transmission gates could be added for isolation.
The final sizes of transistors, capacitors, and other components may be selected after circuit simulation or field testing. Metal-mask options or other programmable components may be used to select the final transistor sizes. Transistors may be connected together in parallel to create larger transistors that have the same fringing or perimeter effects across several sizes. Currents may be positive currents or negative currents that flow in an opposite direction. Charging of a capacitor may be charging with positive charge or charging with negative charge. Thus the terms charging and discharging can be with respect to current in either direction, or with either positive or negative charges. The terms left plates and right plates are with reference to the diagrams and not necessarily to the physical device orientations. Peaks in a signal may be positive peaks or negative peaks (troughs).
The background of the invention section may contain background information about the problem or environment of the invention rather than describe prior art by others. Thus inclusion of material in the background section is not an admission of prior art by the Applicant.
Any methods or processes described herein are machine-implemented or computer-implemented and are intended to be performed by machine, computer, or other device and are not intended to be performed solely by humans without such machine assistance. Tangible results generated may include reports or other machine-generated displays on display devices such as computer monitors, projection devices, audio-generating devices, and related media devices, and may include hardcopy printouts that are also machine-generated. Computer control of other machines is another tangible result.
Any advantages and benefits described may not apply to all embodiments of the invention. When the word “means” is recited in a claim element, Applicant intends for the claim element to fall under 35 USC Sect. 112, paragraph 6. Often a label of one or more words precedes the word “means”. The word or words preceding the word “means” is a label intended to ease referencing of claim elements and is not intended to convey a structural limitation. Such means-plus-function claims are intended to cover not only the structures described herein for performing the function and their structural equivalents, but also equivalent structures. For example, although a nail and a screw have different structures, they are equivalent structures since they both perform the function of fastening. Claims that do not use the word “means” are not intended to fall under 35 USC Sect. 112, paragraph 6. Signals are typically electronic signals, but may be optical signals such as can be carried over a fiber optic line.
The foregoing description of the embodiments of the invention has been presented for the purposes of illustration and description. It is not intended to be exhaustive or to limit the invention to the precise form disclosed. Many modifications and variations are possible in light of the above teaching. It is intended that the scope of the invention be limited not by this detailed description, but rather by the claims appended hereto.