US 7,307,485 B1Grant
Capacitance sensor using relaxation oscillators
Issue Date:2007-12-11
•20 Claims
•7 Drawing Sheets
Abstract
An apparatus that may be used to sense capacitance, as well as other functions. The apparatus includes a comparator circuit with hysteresis, a capacitor, and a current driver. The comparator circuit with hysteresis includes a first input and an output. The capacitor is coupled to the first input of the comparator circuit with hysteresis. The current driver is coupled to the output of the comparator circuit with hysteresis and to the capacitor. The current driver reciprocally sources and sinks a drive current through a terminal of the capacitor to oscillate a voltage potential at the terminal of the capacitor between a low reference potential and a high reference potential. The current driver is responsive to the output of the comparator circuit with hysteresis.
Metadata
Assignee
- Cypress Semiconductor Corporation
Inventors
- Warren S. Snyder
- David Van Ess
Application Information
Application Number:US 11/273,708
Filing Date:2005-11-14
Priority Date:2005-11-14
Art Unit:2817
Classifications
IPC:
H03K3/02G01R27/26
Patent Drawings (7 sheets)
Description
Technical Field
[0001] This disclosure relates generally to relaxation oscillators, and in particular but not exclusively, relates to a dual coupled relaxation oscillators for use in a capacitance sensor.
Background Information
[0002] Capacitance sensors are used to implement a variety of useful functions including touch sensors (e.g., touch pad, touch dial, touch wheel, etc.), determining the presence of an object, accelerometers, and other functions. FIG. 1 illustrates a conventional capacitance sensor 100 including a relaxation oscillator, a reference clock, and a frequency comparator. The relaxation oscillator is coupled to drive a charging current (Ic) in a single direction onto a device under test (“DUT”) capacitor. As the charging current piles charge onto the DUT capacitor, the voltage across the capacitor increases with time as a function of Ic and its capacitance C. Equation 1 describes the relation between current, capacitance, voltage and time for a charging capacitor.
CdV=ICdt (Equation 1)
CdV=ICdt (Equation 1)
[0003] The relaxation oscillator begins by charging the DUT capacitor from a ground potential or zero voltage and continues to pile charge on the DUT capacitor at a fixed charging current Ic until the voltage across the DUT capacitor reaches a reference voltage (Vref). At Vref, the relaxation oscillator allows the accumulated charge to discharge or the DUT capacitor to “relax” back to the ground potential and then the process repeats itself. The relaxation oscillator outputs a relaxation oscillator clock signal (RO CLK) having a frequency (fRO) dependent upon capacitance C of the DUT capacitor and charging current Ic.
[0004] If capacitance C of the DUT capacitor changes, then fRO will change proportionally according to Equation 1. By comparing fRO of RO CLK against the frequency (fREF) of a known reference clock signal (REF CLK), the change in capacitance ΔC can be measured. Accordingly, equations 2 and 3 below describe that a change in frequency between RO CLK and REF CLK is proportional to a change in capacitance of the DUT capacitor.
ΔC∝Δf, where (Equation 2)
Δf=fRO−fREF. (Equation 3)
ΔC∝Δf, where (Equation 2)
Δf=fRO−fREF. (Equation 3)
[0005] The frequency comparator is coupled to receive RO CLK and REF CLK, compare their frequencies fRO and fREF, respectively, and output a signal indicative of the difference Δf between these frequencies. By monitoring Δf one can determine whether the capacitance of the DUT capacitor has changed.
[0006] However, during the relaxation of the DUT capacitor, the discharge current is not fixed and therefore the relaxation phase generates an error. As frequency fRO of RO CLK is increased (e.g., by increasing charging current Ic) the relaxation error becomes a more significant portion of the overall clock cycle. As such, the relaxation error is a frequency limiting factor that places an upper bound on the operational frequency of capacitance sensor 100. Operating at lower fRO frequencies leaves capacitance sensor 100 more susceptible to low frequency noise. Furthermore, since the frequency fRO of RO CLK is unrelated to the frequency fREF of REF CLK, capacitance sensor 100 is susceptible to frequency wandering due to temperature drift.
Brief Description of the Drawings
[0007] Non-limiting and non-exhaustive embodiments of the invention are described with reference to the following figures, wherein like reference numerals refer to like parts throughout the various views unless otherwise specified.
[0008] FIG. 1 is a block diagram illustrating a conventional capacitance sensor and timing diagram illustrating operation of the conventional capacitance sensor.
[0009] FIG. 2 is a functional block diagram illustrating a capacitance sensor implemented with dual relaxation oscillators, in accordance with an embodiment of the invention.
[0010] FIG. 3 is a functional block diagram illustrating a relaxation oscillator, in accordance with an embodiment of the invention.
[0011] FIG. 4 is a circuit schematic of a relaxation oscillator, in accordance with an embodiment of the invention.
[0012] FIG. 5 is a flow chart illustrating operation of a capacitance sensor implemented with dual relaxation oscillators, in accordance with an embodiment of the invention.
[0013] FIG. 6 illustrates a demonstrative integrated circuit for implementing an embodiment of the invention.
Detailed Description
[0014] Embodiments of a apparatus and method for are described herein. In the following description numerous specific details are set forth to provide a thorough understanding of the embodiments. One skilled in the relevant art will recognize, however, that the techniques described herein can be practiced without one or more of the specific details, or with other methods, components, materials, etc. In other instances, well-known structures, materials, or operations are not shown or described in detail to avoid obscuring certain aspects.
[0015] Reference throughout this specification to “one embodiment” or “an embodiment” means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. Thus, the appearances of the phrases “in one embodiment” or “in an embodiment” in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
[0016] FIG. 2 is a functional block diagram illustrating a capacitance sensor 200 implemented with dual relaxation oscillators, in accordance with an embodiment of the invention. The illustrated embodiment of capacitance sensor 200 includes a reference relaxation oscillator (REF RO) 205, a device under test (“DUT”) relaxation oscillator (DUT RO) 210, a frequency comparator 215, a reference capacitor 220, a processor 225, a scaler 230, a current source 235, a scaler 240, and a voltage source 245. Capacitance sensor 200 may be used to monitor, sense, and/or measure the absolute capacitance C or the change in the capacitance AC of a DUT capacitor 250.
[0017] The components of capacitance sensor 200 are coupled and interact as follows. REF RO 205 is coupled to a terminal 221 of reference capacitor 220. REF RO 205 generates a drive current ID1 into and out of terminal 221 to reciprocally charge and discharge reference capacitor 220. Since REF RO 205 sources and sinks drive current ID1 to/from reference capacitor 220, the frequency of charging and discharging reference capacitor 220 does not suffer from an upper bound due to a relaxation phase error. DUT RO 210 operates in a similar manner to REF RO 205, except DUT RO 210 is coupled to a terminal 251 of DUT capacitor 250 to reciprocally charge and discharge DUT capacitor 250 with a drive current ID2. During the process of charging and discharging reference capacitor 220, REF RO 205 outputs a clock signal RO1 CLK having a frequency fRO1. RO1 CLK tracks the charging and discharging of reference capacitor 220 and therefore fRO1 is substantially equal to the frequency at which reference capacitor 220 is charged and discharged. Similarly, DUT RO 210 output a clock signal RO2 CLK having a frequency fRO2. RO2 CLK tracks the charging and discharging of DUT capacitor 220 and therefore fRO2 is substantially equal to the frequency at which DUT capacitor 250 is charged and discharged.
[0018] Frequency comparator 215 (also referred to as a frequency discriminator) is coupled to REF RO 205 and DUT RO 210 to receive RO1 CLK and RO2 CLK. Frequency comparator 215 outputs a comparison signal (Δf) being indicative of a difference in frequency between fRO1 and fRO2 or indicative of a period difference between RO1 CLK and RO2 CLK. Since frequency and period are inversely related, it should be appreciated determining a frequency difference between RO1 CLK and RO2 CLK is defined herein to include measuring the frequency difference or measuring the period difference. In one embodiment, frequency comparator 215 includes a divider circuit 260 and a N-bit register counter 265. Divider circuit 260 is coupled to receive RO2 CLK from DUT RO 210 and to divide RO2 CLK by 2N to generate 2N pulses 263 for each input pulse 267 of RO2 CLK. N-bit register counter 265 then counts the number of pulses 263 that occur during a single pulse 269 or cycle of RO1 CLK. By selecting N (e.g., N=8), the sensitivity or resolution of capacitance sensor 200 may be adjusted.
[0019] As described above in connection with Equation 2, a change in relative frequency is related to the change in capacitance ΔC of DUT capacitor 250. Accordingly, capacitance sensor 200 may be used to sense a capacitance change in DUT capacitor 250. For example, capacitance sensor 200 may be used to implement a user interface, such as a touch pad or touch dial, where the presence or absence of a user's finger on the touch pad/dial alters the capacitance of DUT capacitor 250. Capacitance sensor 200 may further be used to implement other functions including determining the presence of an object, accelerometers, and other capacitance sensing apparatuses. Furthermore, as discussed below, capacitance sensor 200 may be used in test equipment for measuring the absolute capacitance of DUT capacitor 250.
[0020] In the illustrated embodiment, comparison signal Δf is coupled into processor 225. Processor 225 may perform various filtering functions on comparison signal Δf and use comparison signal Δf to implement a user interface or other functions.
[0021] In one embodiment, processor 225 controls operation of REF RO 205 and DUT RO 210 via a control signal ICTRL output to scaler 230. Control signal ICTRL selects a scaling factor for scaling a reference current IREF received from current source 235 for generating individual reference currents IREF1 and IREF2. Reference currents IREF1 and IREF2 drive REF RO 205 and DUT RO 210, respectively. In one embodiment, control signal ICTRL includes two 8-bit values, one each for selecting IREF1 and IREF2, and scalers 230 and 240 include digital-to-analog converters (“DACs”).
[0022] As discussed below, IREF1 and IREF2 may be mirrored by each of REF RO 205 and DUT RO 210, respectively, to generate drive currents ID1 and ID2. It should be appreciated that “mirroring” a reference current IREF1 or IREF2 to generate drive currents ID1 and ID2 means that ID1 and ID2 are related to IREF1 or IREF2 by a multiplying factor k1 or k2, respectively, where k1 or k2 may be greater than, less than, or equal to one. For example, k1 and k2, may be equal to the ratio of the widths and lengths of the transistors used to implement a current mirroring circuit within each of REF RO 205 and DUT RO 210
[0023] In one embodiment, IREF1 and IREF2 are identical. In an alternative embodiment, IREF1 and/or IREF2 are independently scalable in response to ICTRL. IREF2 received by DUT RO 210 can be trimmed with respect to IREF1 to compensate for baseline or nominal differences in the capacitances between reference capacitor 220 and DUT capacitor 250. IREF2 received at DUT RO 210 can be trimmed until the frequency fRO2 of RO2 CLK is equal to the frequency fRO1 of RO1 CLK. By measuring the amount of trim or offset between IREF1 and IREF2 when fRO2=fRO1 and knowing the fixed capacitance of reference capacitor 220, capacitance sensor 200 may be used to measure the absolute capacitance C of DUT capacitor 250.
[0024] In one embodiment, processor 225 further controls operation of REF RO 205 and DUT RO 210 via a control signal VCTRL output to scaler 240. Scaler 240 scales the reference voltage VREF received from voltage source 245 to generate a low voltage reference VRL and a high voltage reference VRH. Processor 225 may output control signal VCTRL to scaler 240 to independently select low voltage reference VRL and high voltage reference VRH. In one embodiment, control signal VCTRL may represent two 8-bit values, one to control low voltage reference VRL and one to control high voltage reference VRH.
[0025] Low voltage reference VRL is used by REF RO 205 and DUT RO 210 to set the low voltage trip point where the oscillators switch between discharging and charging their respective capacitors (i.e., reference capacitor 220 and DUT capacitor 250). High voltage reference VRH is used by REF RO 205 and DUT RO 210 to set the high voltage trip point where the oscillators switch between charging and discharging their respective capacitors. Accordingly, embodiments of capacitance sensor 200 enable processor 225 to select the low-side and high-side voltages between which reference capacitor 220 and DUT capacitor 250 oscillate. Processor 225 can change low voltage reference VRL and high voltage reference VRH to increase or decrease the voltage swings on reference capacitor 220 and DUT capacitor 250 and/or translate the oscillating voltage range up or down.
[0026] In one embodiment, REF RO 205 and DUT RO 210 are matched or symmetrically balanced relaxation oscillators. By using matched relaxation oscillators, environmental changes (e.g., temperature, voltage, and current drifts) affect each oscillator in a similar manner. Since scaler 230 generates IREF1 and IREF2 based on a single reference current IREF, fluctuations in reference current IREF are equally reflected in both IREF1 and IREF2. Therefore, any affect due to environmental changes is substantially equivalent across both REF RO 205 and DUT RO 210 and cancelled out or rejected by frequency comparator 215.
[0027] FIG. 3 is a functional block diagram illustrating a relaxation oscillator 300, in accordance with an embodiment of the invention. Relaxation oscillator 300 is one possible embodiment of REF RO 205 or DUT RO 210. Although relaxation oscillator 300 is illustrated as coupled to reference capacitor 220, it should be appreciated that it may also be coupled to DUT capacitor 250. Relaxation oscillator 300 includes a comparator with hysteresis 305 and current driver 310. The illustrated embodiment of comparator with hysteresis 305 includes a flip-flop 315, a comparator 320, and a comparator 325.
[0028] The components of relaxation oscillator 300 are interconnected as follows. Comparators 320 and 325 have one input tied to each other while one input of comparator 320 is coupled to high reference voltage VRH and one input of comparator 325 is coupled to low reference voltage VRL. The output of comparator 320 is coupled to the ‘S’ (set) input of flip-flop 315 and the output of comparator 325 is coupled to the ‘R’ (reset) input of flip-flop 315. An output ‘Q’ of flip-flop 315 is coupled to an input of current driver 310 to control when current driver 310 source or sinks drive current ID1 through terminal 221.
[0029] During operation, current driver 310 reciprocally charges and discharges capacitor 220 as illustrated in line chart 330 between VRL and VRH. The values of VRH and VRL are selectable to set the high and low voltage potential between which relaxation oscillator 300 oscillates terminal 221 of reference capacitor 220. Current driver 310 changes between sourcing drive current ID1 into terminal 221 and sinking drive current ID1 from terminal 221 under control of output Q of flip-flop 315.
[0030] FIG. 4 is a circuit schematic of a relaxation oscillator 400, in accordance with an embodiment of the invention. Relaxation oscillator 400 is similar to relaxation oscillator 300; however, relaxation oscillator 400 illustrates internal components of one possible embodiment of current driver 310.
[0031] A pull up path 405 and a pull down path 410 are coupled to the output Q of flip-flop 315 to selectively source or sink drive current ID1. Pull up path 405 includes two positive metal oxide semiconductor (“PMOS”) field effect transistor (“FETs”) coupled in series between a high voltage rail 415 and a node N1. Pull up path 405 is coupled to node N1 to selectively source drive current ID1 into reference capacitor 220. Pull down path 410 includes two negative metal oxide semiconductor (“NMOS”) FETs coupled in series between node N1 and a low voltage rail 420. Pull down path 410 is coupled to node N1 to selectively sink drive current ID1 from reference capacitor 220. Output Q of flip-flop 315 is coupled to the gate of PMOS transistor T1 in pull up path 405 and to the gate of NMOS transistor T3 in pull down path 410 to reciprocally turn on and off each of the current paths to reciprocally source and sink drive current ID1 through node N1.
[0032] Relaxation oscillator 400 further includes two current mirror circuits to mirror reference current IREF1 into pull up path 405 and pull down path 410 for generating drive current ID1. The first current mirror circuit includes a PMOS transistor T5 having its drain and gate clamped and its source coupled to high voltage rail 415. The gate of transistor T5 is further coupled to a gate of transistor T2 of pull up path 405 to implement the current mirroring function. The second current mirror circuit includes a NMOS transistor T6 having its drain and gate clamped and its source coupled to low voltage rail 420. The gate of transistor T6 is further coupled to a gate of transistor T4 of pull down path 410 to implement the current mirroring function.
[0033] By driving ID1 through node N1 to both charge and discharge reference capacitor 220, capacitance sensor 200 is not frequency limited due to relaxation error. Accordingly, REF RO 205 and DUT RO 210 can be operated at higher frequencies for reduced electromagnetic interference (“EMI”) susceptibility and improved signal to noise ratio (“SNR”). Furthermore, since REF RO 205 can be operated at higher frequencies, REF RO 205 can be reused within a circuit to operate as a synchronous clock signal for other circuit elements (e.g., to clock processor 225).
[0034] In one embodiment, drive current ID1 driven through node N1 is symmetrical having an equivalent magnitude when sourced out of node N1 via pull up path 405 as when sunk into node N1 via pull down path 410. In one embodiment, drive current ID1 is asymmetrical having a different magnitude when sourced out of node N1 via pull up path 405 as when sunk into node N1 via pull down path 410.
[0035] FIG. 5 is a flow chart illustrating a process 500 for operating capacitance sensor 200, in accordance with an embodiment of the invention. Process 500 explained below is described in terms of computer software and hardware. The techniques described may constitute machine-executable instructions embodied within a machine (e.g., computer) readable medium, that when executed by a machine will cause the machine to perform the operations described. Additionally, process 500 may be embodied within hardware, such as an application specific integrated circuit (“ASIC”) or the like. The order in which some or all of the process blocks appear should not be deemed limiting. Rather, one of ordinary skill in the art having the benefit of the present disclosure will understand that some of the process blocks may be executed in a variety of orders not illustrated.
[0036] In a process block 505, capacitor sensor 200 is powered on and/or reset. In a process block 510, processor 225 outputs ICTRL and VCTRL signals to scalers 230 and 240, respectively. In one embodiment, ICTRL and VCTRL are multi-bit digital signals (e.g., 8 bit digital signals) for selecting the analog values for IREF1, IREF2, VRH, and VRL. Scaler 230 uses ICTRL to generate IREF1 and IREF2 based on IREF received from current source 235. ICTRL instructs scaler 230 what multiplying factor to apply to IREF to generate the individual reference currents IREF1 and IREF2. Scaler 240 uses VCTRL to generate VRH and VRL based on VREF received from voltage source 245. VCTRL instructs scaler 240 what multiplying factor to apply to VREF to generate VRL and VRH. Accordingly, processor 225 selects the analog values of IREF1, IREF2, VRH, and VRL via its output control signals VCTRL and ICTRL. Controls signals VCTRL and ICTRL may initially be set to default values.
[0037] In a process block 515, REF RO 205 commences reciprocally charging and discharging reference capacitor 220 in response to IREF1, VRH, and VRL. Similarly, DUT RO 210 commences reciprocally charging and discharging DUT capacitor 250 in response to IREF2, VRH, and VRL. The frequency of oscillation fRO1 and fRO2 generated by REF RO 205 and DUT RO 210, respectively, are proportional to their respective load capacitances and the magnitude of their drive currents ID1 and ID2. In turn, ID1 and ID2 are related to IREF1 and IREF2, respectively. Initially ID1 and ID2 may be set by processor 225 to be equivalent. Accordingly, if there is an initial difference between the oscillation frequencies fRO1 and fRO2, this difference would be due to a difference in the capacitance loads between reference capacitor 220 and DUT capacitor 250.
[0038] In a process block 520, if frequency comparator 215 detects a frequency difference between fRO1 and fRO2, then DUT RO 210 may be trimmed until fRO1 and fRO2 are substantially equivalent. In one embodiment, trimming DUT RO 210 may include adjusting ICTRL under control of processor 225 to select a different value for IREF2 until fRO1 equals fRO2 or Δf=0. At this point, since the absolute capacitance of reference capacitor 220 is a fixed known value, the amount of offset applied to IREF2 may be used by processor 225 to calculate the absolute capacitance of DUT capacitor 250. In this manner, capacitance sensor 220 may be used within testing equipment to measure the absolute capacitance of a device under test.
[0039] In a process block 525, frequency comparator 215 may continue to monitor the frequency differential Δf between fRO1 and fRO2 and provide real-time feedback to processor 225. In this manner, capacitance sensor 200 may be used to implement a user interface, such as a capacitive touch wheel/dial/pad/button, or the like. For example, capacitive touch wheels operate by using an operator's finger to change its capacitive load (i.e., the capacitive load of DUT capacitor 250). As the operator's finger is pressed against the touch interface, the change in capacitance is sensed and fed back to a control system.
[0040] In a decision block 530, a DUT capacitor event is any significant change in the capacitive load of DUT capacitor 250. Capacitance sensor 200 continues to wait until processor 225 registers a DUT capacitor event (e.g., finger touch), at which point process 500 continues to a process block 535.
[0041] In process block 535, frequency comparator 215 measures the frequency differential Δf resulting from the DUT capacitor event and feeds this information to processor 225. As discussed above, processor 225 can determine the change of capacitance ΔC of DUT capacitor 250 based on the magnitude of Δf resulting from the DUT capacitor event. Processor 225 may apply various filtering algorithms to reject false events or insignificant events. In a process block 540, an action may be taken in response to registering a valid DUT capacitor event. An example action may include implementing a user interface, such as moving a cursor on a screen or selecting a menu item.
[0042] FIG. 6 illustrates a demonstrative integrated circuit (“IC”) 600 implemented using an embodiment of capacitance sensor 200. IC 600 illustrates a Programmable System on a Chip (PSoC™) microcontroller by Cypress Semiconductor Corporation. The illustrated embodiment of IC 600 includes input/output (“I/O”) ports 602. I/O ports 602 may be programmable. I/O ports 602 are coupled to Programmable Interconnect and Logic (“PIL”) 604 which acts as an interconnect between I/O ports 602 and a digital block array 606. Digital block array 606 may be configured to implement a variety of digital logic circuits (e.g., DAC, digital filters, digital control systems, etc.) using configurable user modules (“UMs”). Digital block array 606 is further coupled to a system bus 612.
[0043] Static Random Access Memory (“SRAM”) 610 and processor 225 are also coupled to system bus 612. Processor 225 is coupled to non-volatile storage (“NVS”) 616 which may be used to store firmware (e.g., control algorithms executable by processor 225 to implement process 500).
[0044] An analog block array 618 is coupled to system bus 612. Analog block array 618 also may be configured to implement a variety of analog circuits (e.g., ADC, analog filters, etc.) using configurable UMs. Analog block array 618 is also coupled to an analog I/O unit 624 which is coupled to I/O ports 602.
[0045] As illustrated, capacitance sensor 200 may be incorporated into IC 600 and coupled to analog I/O unit 624 for coupling to an externally coupled DUT capacitor 250 via I/O ports 602. In one embodiment, RO1 CLK output by REF RO 205 may optionally be used to clock the synchronous components of processor 225. Using REF RO 205 to clock processor 225 and operate capacitance sensor 200 eliminates the need for an additional clock circuit for processor 225, thereby eliminating a redundant part within IC 600.
[0046] As described above, capacitance sensor 200 may be incorporated into IC 600, as well as, various other integrated circuits. Descriptions of capacitance sensor 200 may be generated and compiled for incorporation into other integrated circuits. For example, behavioral level code describing capacitance sensor 200, or portions thereof, may be generated using a hardware descriptive language, such as VHDL or Verilog, and stored to a machine-accessible medium (e.g., CD-ROM, hard disk, floppy disk, etc.). Furthermore, the behavioral level code can be compiled into register transfer level (“RTL”) code, a netlist, or even a circuit layout and stored to a machine-accessible medium. The behavioral level code, the RTL code, the netlist, and the circuit layout all represent various levels of abstraction to describe capacitance sensor 200.
[0047] The above description of illustrated embodiments of the invention, including what is described in the Abstract, is not intended to be exhaustive or to limit the invention to the precise forms disclosed. While specific embodiments of, and examples for, the invention are described herein for illustrative purposes, various modifications are possible within the scope of the invention, as those skilled in the relevant art will recognize.
[0048] These modifications can be made to the invention in light of the above detailed description. The terms used in the following claims should not be construed to limit the invention to the specific embodiments disclosed in the specification. Rather, the scope of the invention is to be determined entirely by the following claims, which are to be construed in accordance with established doctrines of claim interpretation.
Claims
What is claimed is:
1. An apparatus, comprising:
a comparator circuit with hysteresis including a first input and an output;
a capacitor coupled to the first input of the comparator circuit with hysteresis;
a current driver coupled to the output of the comparator circuit with hysteresis and to the capacitor, the current driver to reciprocally source and sink a drive current through a terminal of the capacitor to oscillate a voltage potential at the terminal of the capacitor between a low reference potential and a high reference potential responsive to the output of the comparator circuit with hysteresis;
a processor coupled to execute instructions;
a current source to generate a first reference current; and
a scaler unit coupled to receive a digital current control signal from the processor and to selectively scale the first reference current in response to the digital current control signal to generate a second reference current to provide to the current driver.
2. The apparatus of claim 1, wherein a magnitude of the drive current is dependent upon the second reference current.
3. The apparatus of claim 1, wherein the comparator circuit with hysteresis comprises:
a flip-flop including first and second inputs and an output, the output of the flip-flop coupled to the current driver;
a first comparator including an output coupled to the first input of the flip-flop, a first input coupled to the capacitor, and a second input to receive the high reference potential; and
a second comparator including an output coupled to the second input of the flip-flop, a first input coupled to the first input of the first comparator, and a second input to receive the low reference potential.
4. The apparatus of claim 3, wherein the current driver includes:
a pull up path coupled between a first voltage rail and the terminal of the capacitor to source the drive current into the terminal of the capacitor, the pull up path responsive to the output of the flip-flop; and
a pull down path coupled between a second voltage rail and the terminal of the capacitor to sink the drive current from the terminal of the capacitor, the pull down path responsive to the output of the flip-flop.
5. The apparatus of claim 4, wherein the current driver further includes a current mirror circuit to mirror a reference current into the pull up and pull down paths.
6. The apparatus of claim 5,
wherein the pull up path includes first and second positive metal oxide semiconductor (“PMOS”) transistors coupled in series, a gate of the first PMOS transistor coupled to the output of the flip-flop,
wherein the pull down path includes first and second negative metal oxide semiconductor (“NMOS”) transistors coupled in series, a gate of the first NMOS transistor coupled to the output of the flip-flop,
wherein the mirror circuit includes a third PMOS transistor coupled between the first voltage rail and a reference current source, the third PMOS transistor having its gate and source coupled to a gate of the second PMOS transistor, and
wherein the mirror circuit includes a third NMOS transistor coupled between the second voltage rail and the reference current source, the third NMOS transistor having its gate and drain coupled to a gate of the second NMOS transistor.
7. A method to sense a capacitance, comprising:
charging and discharging a reference capacitor with a first drive current generated by a first oscillator oscillating at a first frequency;
charging and discharging a device under test (“DUT”) capacitor with a second drive current generated by a second oscillator oscillating at a second frequency, wherein the first and second drive currents are scaled from a common reference current; and
measuring a capacitance change across the DUT capacitor based on a relative change between the first and second frequencies.
8. The method of claim 7, further comprising:
generating a low voltage reference at which the first and second oscillators transition between discharging and charging the reference and DUT capacitors, respectively; and
generating a high voltage reference at which the first and second oscillators transition between charging and discharging, the reference and DUT capacitors, respectively.
9. The method of claim 8, further comprising:
generating a reference current; and
mirroring the reference current into the first and second oscillators to generate the first and second drive currents for charging and discharging the reference capacitor and the DUT capacitor, respectively.
10. The method of claim 8, wherein the low and high voltage references are selectable via a processor.
11. The method of claim 10, wherein the processor is clocked by the first oscillator at the first frequency.
12. The method of claim 8, further comprising:
generating a first reference current;
mirroring the first reference current into the first oscillator to generate the first drive current for charging and discharging the reference capacitor;
generating a second reference current;
mirroring the second reference current in the second oscillator to generate the second drive current for charging and discharging the DUT capacitor;
adjusting one of the first reference current or the second reference current until the first frequency of the first oscillator matches the second frequency of the second oscillator; and
computing the absolute capacitance of the DUT capacitor based at least in part on a current difference between the first and second reference currents when the first and second frequencies match.
13. The method of claim 7, wherein measuring the capacitance change across the DUT capacitor based on the relative change between the first and second frequencies includes:
generating a first clock pulse by the first oscillator;
dividing a second clock pulse generated by the second oscillator by N to generate N second clock pulses; and
counting the number of N second clock pulses that occur during a first clock pulse.
14. A capacitance sensor, comprising:
a first oscillator coupled to charge and discharge a reference capacitor with a first drive current at a first frequency, the first oscillator including:
a comparator circuit with hysteresis including a first input coupled to the reference capacitor and an output; and
a current driver coupled to the output of the comparator circuit with hysteresis and to the reference capacitor, the current driver to reciprocally source and sink the first drive current through a terminal of the reference capacitor to oscillate a voltage potential at the terminal of the reference capacitor between a low reference potential and high reference potential responsive to the output of the comparator circuit with hysteresis;
a second oscillator to charge and discharge a device under test (“DUT”) capacitor with a second drive current at a second frequency; and
a frequency comparator coupled to the first and second oscillators to output a signal indicative of a capacitance change across the DUT capacitor based on a frequency difference between the first and second frequencies.
15. The capacitance sensor of claim 14, further comprising:
a voltage source to generate a reference voltage;
a voltage scaler coupled to scale the reference voltage to generate a low voltage reference and a high voltage reference, the voltage scaler coupled to provide the low and high voltage references to the first and second oscillators, wherein the first and second oscillators are coupled to oscillate the reference capacitor and the DUT capacitor between the low and high voltage references;
a reference current source to generate a first reference current; and
a current scaler coupled to scale the first reference current to generate second and third reference currents, wherein the first and second oscillators mirror the second and third reference currents, respectively, to generate the first and second drive currents, respectively.
16. The capacitance sensor of claim 15, further comprising a processor coupled to execute instructions, the processor coupled to the voltage and current scalers to select scaling factors for generating the low and high voltage references and for generating the second and third reference currents.
17. The capacitance sensor of claim 16, wherein the first oscillator is further coupled to provide a clock signal having the first frequency to the processor.
18. The capacitance sensor of claim 14, wherein the frequency comparator includes:
a divider circuit coupled to receive a clock signal from the second oscillator having the second frequency and to divide the clock signal by 2N to generate a divided clock signal; and
an N-bit register counter coupled to count a number pulses of the divided clock signal that occur during a single pulse of a reference clock signal generated by the first oscillator and having the first frequency.
19. The capacitance sensor of claim 14, wherein the comparator circuit with hysteresis comprises:
a flip-flop including first and second inputs and an output, the output of the flip-flop coupled to the current driver;
a first comparator including an output coupled to the first input of the flip-flop, a first input coupled to the capacitor, and a second input to receive the high reference potential; and
a second comparator including an output coupled to the second input of the flip-flop, a first input coupled to the first input of the first comparator, and a second input to receive the low reference potential.
20. The capacitance sensor of claim 14, wherein the first and second drive currents are each asymmetrical for charging and discharging.
Patent Citations (169)
| Patent | Date | Inventor | Cited By |
|---|---|---|---|
| US4283713(A) | 1981-08-01 | Philipp | Applicant |
| US4438404(A) | 1984-03-01 | Philipp | Applicant |
| US4475151(A) | 1984-10-01 | Philipp | Applicant |
| US4497575(A) | 1985-02-01 | Philipp | Applicant |
| US4736097(A) | 1988-04-01 | Philipp | Applicant |
| US4773024(A) | 1988-09-01 | Faggin et al. | Applicant |
| US4802103(A) | 1989-01-01 | Faggin et al. | Applicant |
| US4876534(A) | 1989-10-01 | Mead et al. | Applicant |
| US4879461(A) | 1989-11-01 | Philipp | Applicant |
| US4935702(A) | 1990-06-01 | Mead et al. | Applicant |
| US4953928(A) | 1990-09-01 | Anderson et al. | Applicant |
| US4962342(A) | 1990-10-01 | Mead et al. | Applicant |
| US5049758(A) | 1991-09-01 | Mead et al. | Applicant |
| US5055827(A) | 1991-10-01 | Philipp | Applicant |
| US5059920(A) | 1991-10-01 | Anderson et al. | Applicant |
| US5068622(A) | 1991-11-01 | Mead et al. | Applicant |
| US5073759(A) | 1991-12-01 | Mead et al. | Applicant |
| US5083044(A) | 1992-01-01 | Mead et al. | Applicant |
| US5095284(A) | 1992-03-01 | Mead | Applicant |
| US5097305(A) | 1992-03-01 | Mead et al. | Applicant |
| US5107149(A) | 1992-04-01 | Platt et al. | Applicant |
| US5109261(A) | 1992-04-01 | Mead et al. | Applicant |
| US5119038(A) | 1992-06-01 | Anderson et al. | Applicant |
| US5120996(A) | 1992-06-01 | Mead et al. | Applicant |
| US5122800(A) | 1992-06-01 | Philipp | Applicant |
| US5126685(A) | 1992-06-01 | Platt et al. | Applicant |
| US5146106(A) | 1992-09-01 | Anderson et al. | Applicant |
| US5160899(A) | 1992-11-01 | Anderson et al. | Applicant |
| US5165054(A) | 1992-11-01 | Platt et al. | Applicant |
| US5166562(A) | 1992-11-01 | Allen et al. | Applicant |
| US5204549(A) | 1993-04-01 | Platt et al. | Applicant |
| US5243554(A) | 1993-09-01 | Allen et al. | Applicant |
| US5248873(A) | 1993-09-01 | Allen et al. | Applicant |
| US5260592(A) | 1993-11-01 | Mead et al. | Applicant |
| US5270963(A) | 1993-12-01 | Allen et al. | Applicant |
| US5276407(A) | 1994-01-01 | Mead et al. | Applicant |
| US5289023(A) | 1994-02-01 | Mead | Applicant |
| US5303329(A) | 1994-04-01 | Mead et al. | Applicant |
| US5305017(A) | 1994-04-01 | Gerphide | Applicant |
| US5324958(A) | 1994-06-01 | Mead et al. | Applicant |
| US5331215(A) | 1994-07-01 | Allen et al. | Applicant |
| US5336936(A) | 1994-08-01 | Allen et al. | Applicant |
| US5339213(A) | 1994-08-01 | O'Callaghan | Applicant |
| US5349303(A) | 1994-09-01 | Gerpheide | Applicant |
| US5374787(A) | 1994-12-01 | Miller et al. | Applicant |
| US5381515(A) | 1995-01-01 | Platt et al. | Applicant |
| US5384467(A) | 1995-01-01 | Plimon et al. | Applicant |
| US5408194(A) | 1995-04-01 | Steinbach et al. | Applicant |
| US5488204(A) | 1996-01-01 | Mead et al. | Applicant |
| US5495077(A) | 1996-02-01 | Miller et al. | Applicant |
| US5541878(A) | 1996-07-01 | LeMoncheck et al. | Applicant |
| US5543588(A) | 1996-08-01 | Bisset et al. | Applicant |
| US5543590(A) | 1996-08-01 | Gillespie et al. | Applicant |
| US5543591(A) | 1996-08-01 | Gillespie et al. | Applicant |
| US5555907(A) | 1996-09-01 | Philipp | Applicant |
| US5565658(A) | 1996-10-01 | Gerpheide et al. | Applicant |
| US5566702(A) | 1996-10-01 | Philipp | Applicant |
| US5629891(A) | 1997-05-01 | LeMoncheck et al. | Applicant |
| US5648642(A) | 1997-07-01 | Miller et al. | Applicant |
| US5670915(A) | 1997-09-01 | Cooper et al. | Examiner |
| US5682032(A) | 1997-10-01 | Philipp | Applicant |
| US5730165(A) | 1998-03-01 | Philipp | Applicant |
| US5757368(A) | 1998-05-01 | Gerpheide et al. | Applicant |
| US5763909(A) | 1998-06-01 | Mead et al. | Applicant |
| US5767457(A) | 1998-06-01 | Gerpheide et al. | Applicant |
| US5796183(A) | 1998-08-01 | Hourmand | Applicant |
| US5812698(A) | 1998-09-01 | Platt et al. | Applicant |
| US5841078(A) | 1998-11-01 | Miller et al. | Applicant |
| US5844265(A) | 1998-12-01 | Mead et al. | Applicant |
| US5854625(A) | 1998-12-01 | Frisch et al. | Applicant |
| US5861583(A) | 1999-01-01 | Schediwy et al. | Applicant |
| US5861875(A) | 1999-01-01 | Gerpheide | Applicant |
| US5864242(A) | 1999-01-01 | Allen et al. | Applicant |
| US5864392(A) | 1999-01-01 | Winklhofer et al. | Applicant |
| US5880411(A) | 1999-03-01 | Gillespie et al. | Applicant |
| US5889236(A) | 1999-03-01 | Gillespie et al. | Applicant |
| US5914465(A) | 1999-06-01 | Allen et al. | Applicant |
| US5914708(A) | 1999-06-01 | LaGrange et al. | Applicant |
| US5920310(A) | 1999-07-01 | Faggin et al. | Applicant |
| US5926566(A) | 1999-07-01 | Wang et al. | Applicant |
| US5942733(A) | 1999-08-01 | Allen et al. | Applicant |
| US5943052(A) | 1999-08-01 | Allen et al. | Applicant |
| US5969513(A) | 1999-10-01 | Clark | Applicant |
| US6023422(A) | 2000-02-01 | Allen et al. | Applicant |
| US6028271(A) | 2000-02-01 | Gillespie et al. | Applicant |
| US6028959(A) | 2000-02-01 | Wang et al. | Applicant |
| US6097432(A) | 2000-08-01 | Mead et al. | Applicant |
| US6148104(A) | 2000-11-01 | Wang et al. | Applicant |
| US6185450(B1) | 2001-02-01 | Seguine et al. | Applicant |
| US6188228(B1) | 2001-02-01 | Philipp | Applicant |
| US6188391(B1) | 2001-02-01 | Seely et al. | Applicant |
| US6222528(B1) | 2001-04-01 | Gerpheide et al. | Applicant |
| US6239389(B1) | 2001-05-01 | Allen et al. | Applicant |
| US6249447(B1) | 2001-06-01 | Boylan et al. | Applicant |
| US6262717(B1) | 2001-07-01 | Donohue et al. | Applicant |
| US6280391(B1) | 2001-08-01 | Olson et al. | Applicant |
| US6288707(B1) | 2001-09-01 | Philipp | Applicant |
| US6304014(B1) | 2001-10-01 | England et al. | Applicant |
| US6320184(B1) | 2001-11-01 | Winklhofer et al. | Applicant |
| US6323846(B1) | 2001-11-01 | Westerman et al. | Applicant |
| US6326859(B1) | 2001-12-01 | Goldman et al. | Examiner |
| US6377009(B1) | 2002-04-01 | Philipp | Applicant |
| US6380929(B1) | 2002-04-01 | Platt | Applicant |
| US6380931(B1) | 2002-04-01 | Gillespie et al. | Applicant |
| US6414671(B1) | 2002-07-01 | Gillespie et al. | Applicant |
| US6430305(B1) | 2002-08-01 | Decker | Applicant |
| US6441073(B1) | 2002-08-01 | Tanaka et al. | Applicant |
| US6452514(B1) | 2002-09-01 | Philipp | Applicant |
| US6457355(B1) | 2002-10-01 | Philipp | Applicant |
| US6466036(B1) | 2002-10-01 | Philipp | Applicant |
| US6473069(B1) | 2002-10-01 | Gerpheide | Applicant |
| US6489899(B1) | 2002-12-01 | Ely et al. | Applicant |
| US6498720(B2) | 2002-12-01 | Glad | Applicant |
| US6499359(B1) | 2002-12-01 | Washeleski et al. | Applicant |
| US6522128(B1) | 2003-02-01 | Ely et al. | Applicant |
| US6523416(B2) | 2003-02-01 | Takagi et al. | Applicant |
| US6534970(B1) | 2003-03-01 | Ely et al. | Applicant |
| US6535200(B2) | 2003-03-01 | Philipp | Applicant |
| US6570557(B1) | 2003-05-01 | Westerman et al. | Applicant |
| US6587093(B1) | 2003-07-01 | Shaw et al. | Applicant |
| US6610936(B2) | 2003-08-01 | Gillespie et al. | Applicant |
| US6624640(B2) | 2003-09-01 | Lund et al. | Applicant |
| US6639586(B2) | 2003-10-01 | Gerpheide | Applicant |
| US6642857(B1) | 2003-11-01 | Schediwy et al. | Applicant |
| US6649924(B1) | 2003-11-01 | Philipp et al. | Applicant |
| US6667740(B2) | 2003-12-01 | Ely et al. | Applicant |
| US6673308(B2) | 2004-01-01 | Hino et al. | Applicant |
| US6677932(B1) | 2004-01-01 | Westerman | Applicant |
| US6680731(B2) | 2004-01-01 | Gerpheide et al. | Applicant |
| US6683462(B2) | 2004-01-01 | Shimizu | Applicant |
| US6705511(B1) | 2004-03-01 | Dames et al. | Applicant |
| US6714817(B2) | 2004-03-01 | Daynes et al. | Applicant |
| US6730863(B1) | 2004-05-01 | Gerpheide et al. | Applicant |
| US6750852(B2) | 2004-06-01 | Gillespie et al. | Applicant |
| US6788221(B1) | 2004-09-01 | Ely et al. | Applicant |
| US6798218(B2) | 2004-09-01 | Kasperkovitz | Examiner |
| US6809275(B1) | 2004-10-01 | Cheng et al. | Applicant |
| US6856433(B2) | 2005-02-01 | Hatano et al. | Applicant |
| US6873203(B1) | 2005-03-01 | Latham, II et al. | Applicant |
| US6888538(B2) | 2005-05-01 | Ely et al. | Applicant |
| US6893724(B2) | 2005-05-01 | Lin et al. | Applicant |
| US6969978(B2) | 2005-11-01 | Dening | Examiner |
| US6975123(B1) | 2005-12-01 | Malang et al. | Applicant |
| US7119550(B2) | 2006-10-01 | Kitano et al. | Examiner |
| US2002/0063688(A1) | 2002-05-01 | Shaw et al. | Applicant |
| US2002/0191029(A1) | 2002-12-01 | Gillespie et al. | Applicant |
| US2003/0025679(A1) | 2003-02-01 | Taylor et al. | Applicant |
| US2003/0062889(A1) | 2003-04-01 | Ely et al. | Applicant |
| US2003/0063428(A1) | 2003-04-01 | Nishi | Applicant |
| US2003/0080755(A1) | 2003-05-01 | Kobayashi | Applicant |
| US2003/0156098(A1) | 2003-08-01 | Shaw et al. | Applicant |
| US2003/0160808(A1) | 2003-08-01 | Foote et al. | Applicant |
| US2003/0183864(A1) | 2003-10-01 | Miyazawa | Applicant |
| US2003/0183884(A1) | 2003-10-01 | Miyazawa | Applicant |
| US2003/0184315(A1) | 2003-10-01 | Eberlein | Applicant |
| US2004/0169594(A1) | 2004-09-01 | Ely et al. | Applicant |
| US2004/0178997(A1) | 2004-09-01 | Gillespie et al. | Applicant |
| US2004/0252109(A1) | 2004-12-01 | Trent, Jr. et al. | Applicant |
| US2004/0263864(A1) | 2004-12-01 | Lukacs et al. | Applicant |
| US2005/0021269(A1) | 2005-01-01 | Ely et al. | Applicant |
| US2005/0024341(A1) | 2005-02-01 | Gillespie et al. | Applicant |
| US2005/0073302(A1) | 2005-04-01 | Hibbs et al. | Applicant |
| US2005/0073322(A1) | 2005-04-01 | Hibbs et al. | Applicant |
| US2005/0083110(A1) | 2005-04-01 | Latham, II et al. | Applicant |
| US2006/0032680(A1) | 2006-02-01 | Elias et al. | Applicant |
| US2006/0097991(A1) | 2006-05-01 | Hotelling et al. | Applicant |
| US2006/0113974(A1) | 2006-06-01 | Kan et al. | Applicant |
| US2006/0164142(A1) | 2006-07-01 | Stanley | Applicant |
| US2006/0273804(A1) | 2006-12-01 | Delorme et al. | Applicant |
Non-Patent Literature (11)
- Sedra, Adel S. et al., “Microelectronic Circuits,” 3rd Edition, Oxford University Press, pp. xiii-xx and 861-883, 1991.Applicant
- Van Ess, David, “Simulating a 555 Timer with PSoC™,” Cypress Semiconductor Corporation, Application Note AN2286, pp. 1-10, May 19, 2005.Applicant
- Cypress Semiconductor Corporation, “FAN Controller CG6457AM and CG6462AM,” PSoC™ Mixed-Signal Array Preliminary Data Sheet, pp. 1-25, May 24, 2005.Applicant
- Cypress Semiconductor Corporation, “PsoC Mixed-Signal Controllers,” Product Description, pp. 1-2, http://www.cypress.com/portal/server.pt?space=CommunityPage&control=SetCommunity&CommunityID=209&PageID=215&gid=13&fid=24&category=false. (Sep. 27, 2005).Applicant
- Cypress Semiconductor Corporation, “CY8C21×34 Data Sheet,” CSR User Module, CSR V.1.0, Oct. 6, 2005, pp. 1-36.Applicant
- Chapweske, Adam, “The PS/2 Mouse Interface,” PS/2 Mouse Interfacing, 2001.Applicant
- Cypress Semiconductor Corporation, “Cypress Introduces PSoC(TM)-Based Capacitive Touch Sensor Solution”, Cypress Press Release, May 31, 2005, http://www.cypress.com/portal/server.pt?space=CommunityPage&contol=SetCommunity&CommunityID =208&PageID=218&DirectoryID=661552 (Retrieved on Feb. 5, 2007).Applicant
- Seguine, Ryan, “Layout Guidelines for PSoC™ CapSense™,” Cypress Semiconductor Corporation, Application Note AN2292, pp. 1-10, Jul. 22, 2005.Applicant
- Lee, Mark, “EMC Design considerations for PsoC™ CapSense™ Applications,” Cypress Semiconductor Corporation, Application Note AN2318, pp. 1-6, Sep. 16, 2005.Applicant
- Cypress Semiconductor Corporation, “Release Note srn017,” pp. 1-3, Jan. 24, 2007.Applicant
- Cypress Semiconductor Corporation, “PSoC® CY8C20×34 Technical Reference Manual (TRM),” PSoC CY8C20×34 TRM, Version 1.0, pp. 1-218, 2006.Applicant