Readout Circuit for Resistive and Capacitive Sensors
20210270872 · 2021-09-02
Inventors
- Richard Gaggl (Poertschach am, AT)
- Andrea Baschirotto (Tortona, IT)
- Cesare BUFFA (Villach, AT)
- Fulvio Ciciotti (Milano, IT)
Cpc classification
G01R1/30
PHYSICS
G01R15/005
PHYSICS
International classification
G01R15/00
PHYSICS
G01R1/30
PHYSICS
G01R27/02
PHYSICS
Abstract
A readout circuit for resistive and capacitive sensors includes a first input coupled to a reference resistor in a first mode of operation and coupled to a resistive sensor in a second mode of operation; a second input coupled to a capacitive sensor in the first mode of operation and coupled to a reference capacitor in the second mode of operation; and an output for providing a capacitive sensor data stream in the first mode of operation and for providing a resistive sensor data stream in the second mode of operation.
Claims
1. A method of operating a circuit in a device, the method comprising: coupling a resistor and a capacitive sensor to first and second inputs of the circuit in a first mode of operation; coupling a capacitor and a resistive sensor to first and second inputs of the circuit in a second mode of operation; providing a capacitive sensor data stream at an output in the first mode of operation; and providing a resistive sensor data stream at the output in a the second mode of operation.
2. The method of claim 1, further comprising: selecting the capacitive sensor from a plurality of capacitive sensors resident in the device.
3. The method of claim 1, further comprising: selecting the resistive sensor from a plurality of resistive sensors resident in the device.
4. The method of claim 1, further comprising: integrating the resistive sensor and the circuit together in an integrated circuit.
5. The method of claim 1, further comprising: integrating the capacitive sensor and the circuit together in an integrated circuit.
6. The method of claim 1, further comprising: coupling a resistive sensor and a capacitive sensor to the first and second inputs of the circuit in a third mode of operation; and providing a composite sensor data stream at the output in the third mode of operation.
7. A method of operating a circuit, the method comprising: coupling a resistor to a first two node input of the circuit; coupling a capacitor to a second two node input of the circuit; converting a voltage at the first two node input into a switched current output; using the capacitor, integrating the switched current output to generate an integrated voltage; comparing the integrated voltage to first and second threshold voltages to generate first and second logic signals; and combining the first and second logic signals to generate first and second variable frequency output signals.
8. The method of claim 7, further comprising controlling the switched current output with the first and second variable frequency output signals.
9. The method of claim 7, wherein the integrated voltage comprises a triangular voltage waveform.
10. The method of claim 7, wherein combining the first and second logic signals comprises latching the first and second logic signals.
11. The method of claim 7, wherein the resistor comprises a resistive sensor, the capacitor comprises a fixed capacitor reference, and at least one of the first and second logic signals comprises data based on resistive variations of the resistive sensor.
12. The method of claim 7, wherein the resistor comprises a fixed resistor reference, the capacitor comprises a capacitive sensor, and at least one of the first and second logic signals comprises data based on capacitive variations of the capacitive sensor.
13. The method of claim 7, wherein the resistor comprises a resistive sensor, the capacitor comprises a capacitive sensor, and at least one of the first and second logic signals comprises composite serial data based on resistive variations of the resistive sensor and on capacitive variations of the capacitive sensor.
14. A method of operating a circuit in a device, the method comprising: coupling a resistor and a capacitive sensor to first and second inputs of the circuit in a first mode of operation; coupling a capacitor and a resistive sensor to first and second inputs of the circuit in a second mode of operation; converting a voltage at the first input into a switched current output; integrating the switched current output to generate an integrated voltage; comparing the integrated voltage to first and second threshold voltages to generate first and second logic signals; and combining the first and second logic signals to generate a variable frequency capacitive sensor data stream in the first mode of operation and to generate a variable frequency resistive sensor data stream in the second mode of operation.
15. The method of claim 14, further comprising: coupling a resistive sensor and a capacitive sensor to the first and second inputs of the circuit in a third mode of operation; and providing a composite sensor data stream in the third mode of operation.
16. The method of claim 14, further comprising: selecting the capacitive sensor from a plurality of capacitive sensors resident in the device.
17. The method of claim 14, further comprising: selecting the resistive sensor from a plurality of resistive sensors resident in the device.
18. The method of claim 14, further comprising controlling the switched current output with the variable frequency capacitive sensor data stream in the first mode of operation and with the variable frequency resistive sensor data stream in the second mode of operation.
19. The method of claim 14, wherein the integrated voltage comprises a triangular voltage waveform.
20. The method of claim 14, wherein combining the first and second logic signals comprises latching the first and second logic signals.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0016] For a more complete understanding of the invention, and the advantages thereof, reference is now made to the following descriptions taken in conjunction with the accompanying drawings, in which:
[0017]
[0018]
[0019]
[0020]
[0021]
[0022]
DETAILED DESCRIPTION OF ILLUSTRATIVE EMBODIMENTS
[0023]
[0024]
[0025]
[0026]
[0027] Switches S.sub.9 and S.sub.10 are used to couple either the capacitive sensor C.sub.SENSE of the capacitive reference to OPAMP A.sub.5. A reset transistor M.sub.9 receives a Reset control signal and the source and drain nodes of transistor M.sub.9 are coupled between the negative input and output V.sub.O of OPAMP A.sub.5. The positive input of OPAMP A.sub.5 is coupled to a common mode voltage V.sub.CM.
[0028] Switch S.sub.7 is used to form a first current mirror with transistors M.sub.5A and M.sub.7 in a first position, and is used to form a second current mirror with transistors M.sub.5B and M.sub.7 in a second position. Both current mirrors have a ratio of δ as shown. Similarly, switch S.sub.8 is used to form a first current with transistors M.sub.6A and M.sub.8 in a first position, and is used to form a second current with transistors M.sub.6B and M.sub.8 in a second position. Both current mirrors have a ratio of δ as shown. The current mirrors formed with transistor M.sub.7 include an output resistance boosting circuit using OPAMP A.sub.3 and transistor M.sub.3, as will be explained in further detail below. The current mirrors formed with transistor M.sub.8 include an output resistance boosting circuit using OPAMP A.sub.4 and transistor M.sub.4, as will be explained in further detail below.
[0029] At the output of the integrator including OPAMP A.sub.5, the voltage V.sub.O is a triangular waveform that is compared to two reference voltages (V.sub.TH and V.sub.TL) to generate switch control signals and to steer current. A first comparator 402 receives the V.sub.O triangular output voltage and the V.sub.TH reference voltage to generate a first variable frequency output voltage that is coupled to the SN input of latch 406. A second comparator 404 receives the V.sub.O triangular output voltage and the V.sub.TL reference voltage to generate a second variable frequency output voltage that is coupled to the RN input of latch 406. Latch 406 generates the CTRL_H control signal at the Q output and the CTRL_L control signal at the QN output as shown. The presence of an additional latch 406 always guarantees the synchronized switching of comparators. A variable frequency output signal having a period T.sub.OSC in a particular time period is shown in
[0030] The output period waveform is proportional to the sensor resistance value according to the following expression:
[0031] Where ΔV=V.sub.TH−V.sub.TL is the input switching window of comparators 402 and 404 and δ is the current ratio of the current mirrors including transistors M.sub.7 and M.sub.8 as previously discussed. The digital conversion of the variable frequency output signal to a serial data bit stream is performed by counting how many oscillations occur in a precisely defined time window, as will be discussed in further detail below with respect in particular to the description of
[0032] Equation [1] was used to measure the resistance value of a resistive sensor. By inverting the roles of R and C in the above equation it is possible to use the same architecture to measure an unknown capacitor value in a capacitive sensor. In the resistance-to-frequency conversion of equation [1] the unknown parameter is R.sub.SENS, and the capacitance value is fixed. In the capacitance-to-frequency conversion of equation [2] a reference resistor R.sub.REF is used to generate a constant current I.sub.SENS to be integrated in the sensor capacitance C.sub.SENS leading to an oscillation frequency proportional to C.sub.SENS itself:
[0033] The interface can be adapted to convert a matrix of resistive sensors by having the multiplexing switches working on high impedance nodes as shown in
[0034] Current mirrors have to maintain a very high linearity for a very wide range of currents due to the large variations in the resistance value of R.sub.SENS. Choosing regulated cascoded topologies for the mirrors is then strongly advised and OPAMPs A.sub.3 and A.sub.4 should have sufficiently high gain to boost each current mirror's output impedance. To better fit operative point constraints OPAMP A.sub.3 uses a p-input topology while OPAMP A.sub.4 uses a complementary n-input topology.
[0035] Transistors M.sub.1A, M.sub.1B, M.sub.2A, and M.sub.2B ideally have a very large W/L ratio to keep their overdrive low and to avoid saturation of the outputs of amplifier A.sub.1 and A.sub.2 in high I.sub.SENS conditions. Transistors M.sub.3 and M.sub.4 ideally ensure that the outputs of OPAMPs A.sub.3 and A.sub.4 are always sufficiently separated from V.sub.DD and GND, and thus they have a much lower W/L ratio.
[0036] The value of R.sub.REF used to evaluate C.sub.SENS should be chosen to have the current mirrors working with a constant current in their best nominal operative point to ensure the best linearity response in all conditions.
[0037] Integrator OPAMP (A5) and comparators 402 and 404 shown ideally be fast enough to cope with a maximum oscillation frequency. The comparators input switching window ΔV should be as large as possible to lower the comparators' offset impact on output resolution.
[0038] A similar implementation to that of
[0039] Thus,
[0040] Switch S.sub.7 is used to form a first dual output current mirror with transistors M.sub.5A and M.sub.7A and M.sub.7B in a first position, and is used to form a second dual output current mirror with transistors M.sub.5B and M.sub.7A and M.sub.7B in a second position. Both current mirrors have a ratio of δ as shown.
[0041] The remaining circuitry in
[0042] An ASIC 100D is shown in
[0043] The digital section 118 converts the frequency of the triangular wave signal at the output of the integrator into a digit which can be communicated at the ASIC output, with a single bit interface. In pertinent part, the number of rising/falling edges of the wave at the output of the integrator in a reference stable time window are counted. The digital section 118 includes a register 120, a comparator 122, a reference counter 124, and a GAS counter 126 having an output bus 128. Also shown in digital section 118 are a multiplexer 130, a state machine 132, and a parallel-to-serial converter 134. A reset and enable bus is coupled to the integrator 104, GAS counter 126, reference counter 124, state machine 132, and parallel-to-serial converter 134, and brought out to a strobe pin as shown.
[0044] Pins on the ASIC 100D include, but are not limited to, an analog supply voltage VDDANA, a digital supply voltage VDDDIG, a two-bit time window select, a start measurement, and end measurement strobe, a data output, and two node inputs 108 and 110.
[0045] Referring to the timing diagram of
[0046] The “elk” signal is the internal 500 KHz clock signal previously described.
[0047] The “sensor_signal” is the output of a capacitive or resistive signal.
[0048] The “start_meas” signal is a pulse that begins a measurement cycle.
[0049] The “count_en” is a signal that goes high when the clock cycles and sensor_signal cycles are being counted.
[0050] The “elk_count” signal shows the count progression of the number of clock signals being counted.
[0051] The “signal_count” signal counts the rising/falling (depending on the implementation but this is not relevant) edges of the voltage signal generated at the output of the integrator and squared with a comparator.
[0052] The “serial_data” signal is sell explanatory and refers to the serial data provided at an output pin to the user, multiplexing one or more resistive and/or capacitive sensors.
[0053] The resolution of the serial data provided by ASIC 100D depends on time window duration and clock frequency. The resolution will be improved, generally speaking, with a longer window duration and a higher clock frequency.
[0054]
[0055] In a first mode of operation, one of the reference resistors 806 and one of the capacitive sensors 812 could be selected and coupled to the appropriate inputs of circuit 400. In a second mode of operation, one of the reference capacitors 810 and one of the resistive sensors 808 could be selected and coupled to the appropriate inputs of circuit 400. In a third mode of operation, one of the resistive sensors 808 and one of the capacitive sensors 812 could be selected and coupled to the appropriate inputs of circuit 400.
[0056] Circuit 400 can be configured in an embodiment to multiplex between two or all three modes of operation. Different sensors and references can also be selected from a plurality of sensors and references and multiplexed as desired. Other embodiments can be hardwired to fix operation in the first, second, or third mode operation if desired.
[0057] While this invention has been described with reference to illustrative embodiments, this description is not intended to be construed in a limiting sense. Various modifications and combinations of the illustrative embodiments, as well as other embodiments of the invention, will be apparent to persons skilled in the art upon reference to the description. It is therefore intended that the appended claims encompass any such modifications or embodiments.