System for interfacing an LC sensor, related method and computer program product
10168443 ยท 2019-01-01
Assignee
Inventors
Cpc classification
International classification
Abstract
A system for interfacing an LC sensor includes a starter configured to selectively start an oscillation of the LC sensor. The system also includes an analog peak detector configured to determine a signal (V.sub.peak) being indicative of a peak voltage of the oscillation of the LC sensor and a detector configured to determine a state of the LC sensor as a function of the signal (V.sub.peak) determined by the analog peak detector.
Claims
1. A system for interfacing an LC sensor, the system comprising: a starter configured to selectively start an oscillation of the LC sensor; an analog peak detector to be coupled to the LC sensor and configured to determine a signal being indicative of a peak voltage of an oscillation of the LC sensor; and a state detector configured to determine a state of the LC sensor as a function of the signal determined by the analog peak detector, wherein the system is configured to: deactivate the starter once the analog peak detector has determined the peak voltage of the oscillation of the LC sensor; and activate the state detector once the analog peak detector has determined the peak voltage of the oscillation of the LC sensor.
2. The system according to claim 1 wherein the analog peak detector comprises a diode and a storage capacitor coupled thereto.
3. The system according to claim 2, wherein the storage capacitor has first and second terminals; wherein the diode has an anode to be coupled to the LC sensor and a cathode coupled to the first terminal of the storage capacitor; and wherein the second terminal of the storage capacitor is coupled to a voltage reference.
4. The system according to claim 1, wherein the analog peak detector comprises a capacitive voltage divider, such that the signal corresponds to a scaled down version of the peak voltage of the oscillation of the LC sensor.
5. The system according to claim 2, wherein the analog peak detector comprises a switch configured to selectively discharge the storage capacitor.
6. The system according to claim 2, wherein the analog peak detector comprises a switch to selectively enable or disable the analog peak detector.
7. The system according to claim 6, wherein the analog peak detector comprises a control circuit configured to enable the analog peak detector as a function of a voltage of the oscillation of the LC sensor.
8. The system according to claim 1, wherein the state detector comprises: an analog-to-digital converter; a digital processing unit coupled to the analog-to-digital converter; and a comparator coupled to the digital processing unit and configured to compare the signal indicative of the peak voltage with a threshold value.
9. The system according to claim 1, wherein the LC sensor has a first and second terminals; and wherein the starter comprises a switch configured to selectively couple the first terminal of the LC sensor to a supply voltage, and wherein the second terminal of the LC sensor is coupled to the analog peak detector and reference voltage.
10. The system according to claim 1, wherein the starter and the analog peak detector are incorporated in an integrated circuit.
11. A system for interfacing a plurality of LC sensors, the system comprising: a starter configured to start oscillations of the plurality of LC sensor; a plurality of analog peak detectors, wherein an analog peak detector is to be coupled to each LC sensor and configured to determine signals being indicative of a peak voltage of an oscillation of a respective LC sensor; and a state detector configured to determine states of the plurality of LC sensors as a function of the signals determined by the plurality of analog peak detectors, wherein the system is configured to: deactivate the starter once the analog peak detector has determined the peak voltage of the oscillation of the respective LC sensor; and activate the state detector once the analog peak detector has determined the peak voltage of the oscillation of the LC sensor.
12. The system according to claim 11, wherein the state detector comprises: an analog-to-digital converter; a digital processing unit coupled to the analog-to-digital converter; and a comparator configured to compare the signals indicative of the peak voltage with a threshold value, and wherein the plurality of analog peak detectors provide the signals to the analog-to-digital converter or the comparator.
13. A method of interfacing an LC sensor comprising a starter configured to selectively start an oscillation of the LC sensor, an analog peak detector to be coupled to the LC sensor and configured to determine a signal being indicative of a peak voltage of an oscillation of the LC sensor, and a state detector configured to determine a state of the LC sensor as a function of the signal determined by the analog peak detector, the method comprising: activating the starter to selectively start an oscillation of the LC sensor; obtaining the signal being indicative of a peak voltage of the oscillation of the LC sensor from the analog peak detector; detecting the state of the LC sensor as a function of the signal determined by the analog peak detectors; deactivating the starter once the analog peak detector has determined the peak voltage of the oscillation of the LC sensor; and activating the state detector once the analog peak detector has determined the peak voltage of the oscillation of the LC sensor.
14. A non-transitory computer readable medium for performing steps of interfacing an LC sensor comprising a starter configured to selectively start an oscillation of the LC sensor, an analog peak detector to be coupled to the LC sensor and configured to determine a signal being indicative of a peak voltage of an oscillation of the LC sensor, and a state detector configured to determine a state of the LC sensor as a function of the signal determined by the analog peak detector, the steps comprising: activating the starter to selectively start an oscillation of the LC sensor; obtaining the signal being indicative of a peak voltage of the oscillation of the LC sensor from the analog peak detector; detecting the state of the LC sensor as a function of the signal determined by the analog peak detectors; deactivating the starter once the analog peak detector has determined the peak voltage of the oscillation of the LC sensor; and activating the state detector once the analog peak detector has determined the peak voltage of the oscillation of the LC sensor.
15. A system comprising: a first terminal configured to be coupled to an LC sensor; a second terminal configured to be coupled to the LC sensor; and a control unit configured to: excite the LC sensor by providing a fixed voltage to the first terminal, detect a peak voltage of an overshoot of an oscillation of the LC sensor, and detect a state of the LC sensor based on the peak voltage of the overshoot.
16. The system of claim 15, wherein the control unit comprises: a first capacitor configured to be coupled to the LC sensor; a diode having an anode coupled to the first capacitor and a cathode coupled to the second terminal; and a second capacitor coupled between the second terminal and ground.
17. The system of claim 15, wherein the control unit is further configured to stop exciting the LC sensor a first time after exciting the LC sensor, wherein the first time corresponds to at least one fourth of an oscillation period of the LC sensor.
18. The system of claim 15, wherein the control unit comprises an analog-to-digital converter (ADC) configured to detect the peak voltage of the overshoot.
19. The system of claim 15, wherein the control unit comprises a state detector configured to determine the state of the LC sensor, and wherein the control unit is further configured to activate the state detector after the control unit detects the peak voltage of the overshoot.
20. The system of claim 15, further comprising the LC sensor.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) Embodiments of the invention will now be described with reference to the annexed drawings, which are provided purely by way of non-limiting example and in which:
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
(13)
(14)
(15)
(16)
(17)
DETAILED DESCRIPTION
(18) In the following description, numerous specific details are given to provide a thorough understanding of embodiments. The embodiments can be practiced without one or several 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 aspects of the embodiments.
(19) Reference throughout this specification to one embodiment or an embodiment indicates that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment. 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.
(20) The headings provided herein are for convenience only and do not interpret the scope or meaning of the embodiments.
(21) In the following
(22) The embodiments described offer approaches that permit an efficient handling of at least one LC sensor 10 by reducing the required dedicated on-chip components and/or by ensuring reduced power consumption.
(23) Specifically, as mentioned in the foregoing, fast comparators or analog-to-digital converters are usually required to analyze the oscillation of an LC sensor.
(24) In order to avoid this problem, a peak detector is used to detect a value being indicative of the maximum peak value of the oscillation.
(25) For example,
(26) Conversely, as shown e.g. in
(27) The control unit 20 comprises a further switch 222 configured to connect the pin 204 selectively to ground GND. Thus, generally, the operation of the voltage generator 206 and the switch 222 could also be implemented with the pin driver circuitry of a conventional microcontroller.
(28) For example, as shown in
(29) The switching of the switches 220 and 222 is controlled by a processing unit 230, such as a digital processing unit programmed via software instructions, such as the central processing unit (CPU) of a microcontroller, or a dedicated digital IP. Accordingly, when the oscillation of the LC sensor 10 has to be started, a fixed voltage V.sub.MID corresponding to VDD/2, for example, is supplied at the pin 202 via the voltage generator 206 and the pin 204 is coupled via the switch 222 for a short period of time to ground GND.
(30) In the embodiment shown in
(31) In various embodiments, the voltage at the pin 204 is fed to a peak detector 280. For example,
(32) Specifically, in case an external peak detector 280 is used (see
(33)
(34) Accordingly, once the oscillation of the LC sensor has been started the output of the peak detector 280 will provide a signal V.sub.peak being indicative of the peak voltage of the oscillation at the pin 204. For example, neglecting the forward voltage of the diode D, the capacitor C will be charged to a voltage which corresponds to the peak voltage of the oscillation at the pin 204. Thus, the voltage V.sub.peak at the capacitor C is indicative of the peak voltage of the oscillation at the pin 204.
(35)
(36)
(37) As shown in
(38) Conversely,
(39) For example, the control circuit 232 is configured to determine the control signal for the switch S2 as a function of the signal at the input of the peak detector 280, i.e. the control circuit 232 is configured to enable and/or disable the peak detector 280 as a function of the voltage at the input of the peak detector 280.
(40) The circuit 232 may comprise one or more comparators configured to compare the input voltage with one or more threshold values. The circuit 232 may be configured to enable the peak detector only at the second peak value of the oscillation. As shown in
(41) Generally, also any other of the pulses in the comparison signal could be used to enable and disable the peak detector 280, such as the first pulse.
(42) Moreover, also other circuits may be used in order to detect the value of a given peak in the oscillation. For example, the circuit 232 could enable the peak detector 280 at a falling edged and disable the peak detector 280 at the next falling edge.
(43) Accordingly, the peak value V.sub.peak provided at the output of the peak detector 280 would depend on the initial amplitude of the oscillation and the damping of the oscillation. For example, in this way, the damping behavior may be determined more precisely, even with a low resolution analog-to-digital converter.
(44) Generally, in case an external peak detector 280 is used, two additional pins of the control unit 20 may be required for this purpose. However, a single pin may be used for the control of the switch S2 and the switch S1 may be implemented directly with the driver logic of the control unit 20 associated with the pin receiving the peak signal V.sub.peak, e.g. the pin 248 shown in
(45) With reference to
(46) Specifically, the peak detector 280 is coupled to an analog-to-digital converter 208 in
(47) Generally, also in this case, the voltage at the pin 204 corresponds to a damped oscillation having a DC offset corresponding to the voltage V.sub.MID, imposed by the voltage source 206, i.e. the voltage V.sub.MID constitutes the middle point of the oscillation.
(48) Thus, the output of the peak detector 280 provides a signal V.sub.peak being indicative of the peak value of this oscillation at a given time. For example, by using a peak detector as shown in
(49) For example, in the embodiment shown in
(50) In the embodiment shown in
(51) Generally, also in this case, the control unit may comprise both an analog-to-digital converter 208 and an analog comparator 210. Generally, it is not of particular interest for this embodiment how the oscillation of the LC sensor 10 is started.
(52) As shown in
(53) In order to start the oscillation at step 6002, the previous embodiments were based on use of a fixed voltage generator 206, which imposes the middle point voltage V.sub.MID at the pin 202 and wherein a switch 222 is used to connect the pin 204 selectively to ground. However, the approaches described in the Italian patent applications TO2014A000548 or TO2014A000549, which are incorporated herein by reference, may be used to start the oscillation.
(54) For example,
(55) However, while a voltage generator 206 imposing a fixed voltage at the pin 202 has been used in the above embodiments, the approach described in Italian patent application TO2014A000549 uses a capacitor which is charged via a supply voltage, such as VDD, to a given voltage. For this purpose, a capacitor C1 is coupled between the contact 202 and a ground GND. Thus, an oscillation of the LC sensor is started by:
(56) during a first phase, connecting the contact 202 to the supply voltage, e.g. VDD, and placing the contact 204 in a high impedance state, such that the capacitor C1 is charged through the supply voltage, e.g. VDD;
(57) during a second phase, placing the contact 202 in a high impedance state and connecting the contact 204 to ground GND, such that the capacitor C1 transfers charge towards the LC sensor 10; and
(58) during a third phase, placing the contact 202 and the second contact 204 in a high impedance state, such that the LC sensor 10 is able to oscillate.
(59) Accordingly, the peak detector 280 may be coupled to the pin 204 in order to determine the peak voltage of the oscillation at the pin 204.
(60) Italian patent application TO2014A000548 addresses the problem of clamping circuits, which may be coupled to the pins 202 and/or 204. Specifically, once the oscillation of the LC sensor 10 is started, the voltage V.sub.204 at the second contact 204 is monitored. Specifically, this voltage corresponds to the sum of the voltage at the contact 202, i.e. the voltage V.sub.MID, and the voltage at the LC sensor 10. Thus, in order to avoid that the clamping circuit dissipates energy from the LC sensor 10, the voltage at the contact 202 is varied such that the voltage at the measurement contact 204 does not exceed an upper voltage threshold and does not fall below a lower voltage threshold.
(61) However, Italian patent application TO2014A000549 describes with respect to
(62) Specifically, a capacitor C1 is coupled between the contact 202 and ground GND. However, the oscillation may be started in two different ways.
(63) In the first case, the oscillation is started by:
(64) during a first phase, coupling the contact 202 to ground GND, such that said capacitor C1 is discharged;
(65) during a second phase, coupling the contact 202 to ground GND and coupling the contact 204 to a supply voltage, e.g. VDD, such that the LC sensor 10 is charged; and
(66) during a third phase, placing the contact 202 and the contact 204 in a high impedance state, such that the LC sensor 10 is able to oscillate.
(67) Accordingly, the capacitor C1 is initially discharged when the LC sensor starts to oscillate, but the voltage at the contact 204 is limited by charging or discharging the capacitor C1 through the clamping circuit 214 of the contact 204.
(68) Conversely, in the second case, the oscillation is started by:
(69) during a first phase, coupling the contact 202 to a supply voltage, e.g. VDD, such that the capacitor C1 is charged;
(70) during a second phase, coupling the contact 202 to the supply voltage and coupling the contact 204 to ground GND, such that the LC sensor 10 is charged; and
(71) during a third phase, placing the contact 202 and the contact 204 in a high impedance state, such that the LC sensor 10 is able to oscillate.
(72) Accordingly, the capacitor C1 is initially charged when the LC sensor starts to oscillate, but the oscillation occurs in the opposite direction. Thus, the voltage at the contact 204 is limited by discharging or charging the capacitor C1 through the clamping circuit 214 of the contact 204. However, again a peak detector 280 may be used to determine the peak value of the oscillation at the pin 204.
(73) Generally, in order to interface a LC sensor with a control unit by a peak voltage detector 280, the possible presence of clamping diodes used to protect I/O pads may cause a problem. Indeed, as described in Italian patent application TO2014A000549, these diodes would limit the amplitude of the oscillation at the pin 204, and thus prevent a significant measurement of the peak voltage.
(74) For this reason, the arrangements using a voltage source 206 (as described with respect to
(75) Conversely, this is usually not the case in the arrangement of Italian patent application TO2014A000548. Accordingly, the peak detector 280 shown in
(76) Instead, a different approach is used to avoid excessive voltages at the measurement pin 204. Specifically, in order to cope with this saturation issue and to avoid the use of a dedicated middle point generator 206 (as shown in
(77)
(78) Generally, neglecting the internal capacitor of the LC sensor 10, the natural frequency f.sub.0 of the RLC resonant circuit may be determined from the following relation:
(79)
(80) Conversely, the damping factor is:
(81)
(82) Finally, the overshoot OS:
(83)
(84) is directly linked to the peak voltage V.sub.peak:
V.sub.peak=V.sub.final(1+OS)(4)
(85) According to these equations, the peak voltage V.sub.peak at the capacitor C cannot exceed the double of the final voltage V.sub.final, i.e. the voltage applied to the RLC series, which corresponds usually to the voltage V.sub.MID.
(86) Thus, in order to perform LC sensor measurement through the peak voltage approach, while avoiding a dedicated voltage generator 206, a capacitor voltage divider may be used.
(87) In fact, the voltage generator 206 described with respect to
(88) Conversely, when using a capacitive voltage divider, the voltage provided at the pin 202 may also be higher, and in particular may correspond to the supply voltage VDD.
(89)
V.sub.peak=V.sub.final(1+OS)/2(5)
(90) Thus, by using a peak detector 280 comprising a capacitive voltage divider, the embodiments disclosed with respect to
(91) Specifically, the voltage generator 206 is replaced with a simple switch 220 configured to couple the pin 202 selectively to VDD. For example, as shown in
(92) The LC sensor 10 is coupled (e.g. directly) in series with a peak detector 280 between the pin 202 and ground GND. Specifically, the peak detector 280 comprises a diode D and two capacitors C and C2. Consequently, the LC sensor 10, the capacitor C2, the diode D and the capacitor C are coupled in series between the pin 202 and ground GND. In particular, due to the voltage at the pin 202 is switched, the previous pin 204 may not be required and the connection to ground GND may be fixed.
(93) Those of skill in the art will appreciate that the position of the capacitor C2 may also change and, instead of coupling the capacitor between the LC sensor 10 and the diode D, the capacitor C2 may be coupled also, e.g., between the diode D and the capacitor C.
(94) Accordingly, when the pin 202 is coupled to VDD via the switch 220 (or the driver logic 240), the oscillation of the LC sensor will start with an overshoot and the capacitor C will be charged to a peak value depending on the ratio between the capacitances of the capacitor C2 and C. For example, usually the capacitances of the capacitors C2 and C should substantially be the same. For example, usually capacitances in the range of 200-2000 pF may be used.
(95) The voltage V.sub.peak at the capacitor C is provided to the control unit 20, e.g. the pin 248. Accordingly, by monitoring the voltage at the pin 248, e.g. by an analog-to-digital converter 208 (see also
(96) A switch S2 may be used for discharging the capacitor C. For example, as shown with respect to
(97) Similarly, the capacitor C2 and the LC sensor 10 may be discharged by coupling contemporaneously the pin 202 to ground, e.g. by using the driver logic 240.
(98) Accordingly, as shown in
(99) For example, typically a 10 or 12 bit analog-to-digital converter 208 is sufficient in order to determine the voltage variation of the peak value being caused by variations of the resistance R of the LC sensor 10 of several Ohms.
(100) Generally, the peak detector 280 described with respect to
(101) The approaches described herein are also particularly suitable for managing multiple LC sensors. In fact, depending on the application requirements, different arrangements may be used in order to interface a number of N LC sensors:
(102) sequential measurement (see
(103) parallel measurement (see
(104) independent measurement (see
(105) Independently of the specific architecture adopted (sequential, parallel or independent measurement), the approach described herein may use a single analog to digital converter 208 (or alternatively a single comparator 210). Due to the peak values stored by the associated peak detector 280, the peak values coming from different measurement pins 248 may be provided sequentially to the same measurement circuit 208/210 without losing information.
(106)
(107) After a start step 7000, the control unit 20 resets at step 7002 all external components. For example, this may include discharging the capacitor C of the peak detector and the LC sensor 10. Usually the excitation pin(s) 202 and the measurement pins 248 are coupled to ground for this purpose. The processing unit 230 may drive the driver circuits 240 and 242 associated with the pins 202 and 248 with the logic value 0.
(108) At step 7004, the control unit 20 excites all LC sensors 10 by placing the measurement pin 248 in a high impedance state and by connecting the excitation pin(s) 202 to the supply voltage VDD. For example, the processing unit 230 may drive the driver circuits 240 associated with the pin(s) 202 with the logic value 1 and the driver circuits 242 associated with the pins 248 with the logic value Z.
(109) At step 7010, the control unit may monitor the value of the voltage at the measurement pin 248 associated with the current LC sensor. For example, the control unit 20 may determine the state of the current LC sensor by measuring by an analog-to-digital converter 208 the voltage at the current measurement pin 248 and comparing the digital peak value with a digital reference value, or the control unit 20 may compare the voltage via an analog comparator 210 directly with at least one analog threshold value V.sub.Ref.
(110) At step 7012 the control unit 20 stores the state of the current LC sensor 10.
(111) Next, at step 7014 the control unit 20 may test whether all LC sensors 10 have been monitored.
(112) In case at least one LC sensor 10 has not been monitored (output N of the verification step 7014), the control unit 20 selects at step 7016 the next LC sensor and the procedure is repeated at step 7010.
(113) Otherwise, in case all LC sensors 10 have been monitored (output Y of the verification step 7014), the control unit 20 proceeds to step 7018 in which the control unit waits till a next measurement is requested, before the procedure returns at step 7002.
(114) As shown in
(115) Specifically, the step 7006 may be a wait step, in which the control unit 20 waits a given period of time, corresponding at least to one fourth of the oscillation period of the LC sensor 10. In fact, this period may be required in order to ensure that the overshoot occurred and the peak detector 280 stored the peak value.
(116) Conversely, the step 7008 may be used to deactivate the excitation pin 202 and/or activate the analog-to-digital converter 208 (or alternatively the comparator 210), thereby reducing the power consumption. These measurement components may then be deactivated again, e.g., at the step 7018.
(117) The proposed peak detectors 280 may also be modified to reduce the number of required off-chip components. Generally, the diode D may be easily integrated on-chip with the control unit 20. Conversely, at least the capacitor C is usually too big to be integrated. In fact, a small capacitor C (with respect to C2) could lead to the saturation problem, while reducing both capacitors C and C2 could lead to poor resolution. Thus, a possible approach, which may be suitable at least for the approaches using a single peak detector (e.g. single sensor or sequential measurement) may be the use of an integrated diode and external capacitors.
(118) Of course, without prejudice to the principle of the invention, the details of construction and the embodiments may vary widely with respect to what has been described and illustrated herein purely by way of example, without thereby departing from the scope of the present invention, as defined by the ensuing claims.