As is known, a wide variety of sensors are used for a wide range of applications. Conventional magnetic field sensors, for example, can include a fault set point that can be set by a user, such as with a resistor divider network coupled to a supply voltage. In typical configurations, there is a ratiometric relationship between the supply voltage and the sensor output so that changes in the supply voltage level ripple throughout the sensor functionality, such that the trip point field level does not change as the supply voltage changes. In addition, regulated voltages can vary, especially in noisy and/or extreme environments. Further, a supply voltage from a battery will have inherent changes in voltage level over time. Also, some systems may have separate circuit boards providing supply voltage signals that can vary.
It will be appreciated that in many applications constant sensor sensitivity is desirable so that supply voltage changes do not impact performance. Known sensors typically have one or more fault trip points that are ratiometric with respect to a supply voltage, e.g., Vcc. A user sets a trip point voltage with a resistor divider network from Vcc. The voltage at the resistor divider moves with Vcc so as to vary the trip level setting.
The present invention provides method and apparatus for sensors having one or more non-ratiometric fault set points. As used herein, non-ratiometric means not ratiometric to a supply voltage, e.g., Vcc. In embodiments, a sensor has a fixed gain signal path where the user is able to set a constant fault trip point using external resistors, for example.
In embodiments, a sensor includes a circuit having a divider network to provide a voltage to an ADC, which has a Vcc-based reference, to output a digitized signal. The circuit further includes a signal processing module that receives the digitized signal and generates a code for a DAC, which uses the same reference as the signal path. This effectively takes a ratiometric voltage and converts it to a fixed output on the DAC, independent of Vcc. This enables fault trip point setting that does not respond to changes in supply voltage, i.e., non-ratiometric.
In one aspect of the invention, a sensor comprises: a sensing element having a fixed gain; a voltage pin to receive a supply voltage; a fault trip level pin to receive a fault trip level setting; a signal processing module to receive the fault trip level setting and maintain the fault trip level setting constant during changes in the supply voltage; a fault output pin to transition to an active state based a signal from the sensing element and the fault trip level setting output from the signal processing module; and a sensor output pin to output data from the sensing element.
The sensor can include one or more of the following features: an ADC coupled to the fault trip level pin and a DAC, wherein the signal processing module is coupled between the ADC and the DAC, the ADC is referenced to a voltage that is the same as a voltage on the fault trip level pin, the ADC-referenced voltage comprises the supply voltage, a bandgap coupled to a current source to drive the sensing element with a constant current and coupled to the DAC, the sensing element comprises a Hall plate, the sensing element is configured to have a reference voltage to maintain the fixed gain, the sensing element comprises a magnetic field sensing element, the sensing element to sensor output pin path has a fixed gain which is not ratiometric to the supply voltage, the fault trip level pin is coupled only to components consisting of resistors and/or capacitors, the resistors and/or capacitors are connected between the supply voltage and ground, and/or the fault trip level setting is not set with a regulated voltage or current.
In another aspect of the invention, a method comprises: employing a sensing element having a fixed gain; employing a voltage pin to receive a supply voltage; employing a fault trip level pin to receive a fault trip level setting; employing a signal processing module to receive the fault trip level setting and maintain the fault trip level setting constant during changes in the supply voltage; employing a fault output pin to transition to an active state based a signal from the sensing element and the fault trip level setting output from the signal processing module; and employing a sensor output pin to output data from the sensing element.
The method can further include one or more of the following features: setting the fault trip level setting using a resistor divider coupled to the supply voltage, setting the fault trip level setting using a resistor tied from the fault trip level pin to the supply voltage or to ground, employing a constant current source for setting the fault trip level setting, employing at least one capacitor at the fault trip level pin to provide an anti-aliasing filter, the fault output pin is coupled to an open-drain device, employing an ADC coupled to the fault trip level pin and a DAC, wherein the signal processing module is coupled between the ADC and the DAC, the ADC is referenced to a voltage that is the same as a voltage on the fault trip level pin, the ADC-referenced voltage comprises the supply voltage, a bandgap reference coupled to a current source to drive the sensing element with a constant current and coupled to the DAC, the sensing element comprises a magnetic field sensing element, the sensing element to sensor output pin path has a fixed gain which is not ratiometric to the supply voltage, the fault trip level setting is not set with a regulated voltage or current, the signal processing module scales codes from the ADC and generates codes for the DAC to provide a desired trip level transfer function, the transfer function is linear, the transfer function is selected from the group consisting of linear, square, and logarithmic, the transfer function, for a range of ADC codes, provides the same DAC code, the signal processing module corrects for gains and/or offsets between a signal path, the ADC, the DAC, and/or the comparator, and/or the signal processing module corrects for temperature.
The foregoing features of this invention, as well as the invention itself, may be more fully understood from the following description of the drawings in which:
As used herein, the term “magnetic field sensor” is used to describe a circuit, which can be provided in an IC package, that uses a magnetic field sensing element(s), generally in combination with other circuits. Magnetic field sensors are used in a variety of applications, including, but not limited to, an angle sensor that senses an angle of a direction of a magnetic field, a current sensor that senses a magnetic field generated by a current carried by a current-carrying conductor, a magnetic switch that senses the proximity of a ferromagnetic object, a rotation detector that senses passing ferromagnetic articles, for example, magnetic domains of a ring magnet or a ferromagnetic target (e.g., gear teeth) where the magnetic field sensor is used in combination with a back-biased or other magnet, and a magnetic field sensor that senses a magnetic field density of a magnetic field.
In many applications it is preferable to have a component with high power supply rejection ratio (PSRR). By definition, a ratiometric part does not provide a high PSRR. The power supply rejection ratio (PSRR) refers to the amount of noise from a power supply that a particular device can reject, i.e., the ratio of the change in supply voltage in an amplifier to the equivalent (differential) output voltage it produces. An ideal circuit has infinite PSRR.
In general, embodiments of the invention relate to sensors having fixed gain signal path (not ratiometric to Vcc) where the user is able to set a fault trip point, such as by using external resistors. For conventional sensors which are ratiometric, the user can set a fault trip point voltage by resistor dividing from Vcc. This voltage moves with Vcc in the same way the signal path gain changes, thus keeping the fault trip point constant versus Vcc. However, where the signal gain is constant, i.e., does not change with Vcc, a change in Vcc causes a change in the fault trip point. In embodiments, a fault trip level voltage from the resistor divider is provided to an ADC with a Vcc based reference. The digitized signal is processed to generate a code for a DAC that uses the same (bandgap based) reference as the signal path to effectively take a ratiometric voltage and convert it to a fixed output on the DAC that is independent of Vcc. In other embodiments, a fault trip point is with a resistor to ground on the fault level set pin. A current is driven into the resistor to create the trip voltage. The current is based on the same reference (bandgap based for example) as the signal path.
Embodiments of the invention provide a sensor having a non-ratiometric signal path and relatively constant fault trip point set with external resistors, for example. The advantages of this arrangement include simplicity as compared to forcing a user to supply a fixed voltage to the sensor or program the trip point. In addition, embodiments of the invention provide a sensor that one can trim out error in the fault level by changing the conversion of the information from the user to the analog signal path. In particular, in embodiments using an ADC and a DAC, one can add digital trim to the fault in a straightforward manner.
The supply voltage 102 is coupled to an ADC 108 and to a resistor divider network having first and second resistors R1, R2, which provide the fault trip level voltage to the ADC 108. A sensing element 110, such as a magnetic field sensing element, e.g., a Hall Effect element, is coupled to the supply voltage 102 via a current source 112 for biasing the element to a constant gain. The output of the sensing element 110 provides the sensor output 104.
A signal processing module 114 processes the signal from the ADC 108, as described more fully below, and provides a digital signal to a DAC 116, which is coupled to a bandgap reference 118. The current source 112 is also coupled to the bandgap reference 118. The outputs of the sensing element 110 and the DAC 116, are combined, such as by a comparator 120, to generate the fault output 106 signal.
The ADC 108 converts the analog voltage signal (trip level) from the R1/R2 divider network to a digital word based on the divided supply voltage 102 with a reference to the supply voltage. Digital correction is then applied to the fault trip level by the signal processing module 114, which provides an output word that is then converted back to analog by the DAC 116, which has a reference signal from the bandgap reference module 118.
In the illustrated embodiment, the sensing element 110 is provided as a Hall plate having a constant gain that is controlled by the current from the current source 112 driven through the Hall plate. The bandgap reference 118, which can be provided as any suitable reference, maintains a constant current through the Hall plate, and thus, maintaining a constant gain. It is understood that a bandgap reference refers to a common circuit on ICs that provides a stable voltage over temperature (and Vcc) based on the physics of the semiconductors used.
In embodiments, a user can set the trip level to the ADC 108 by selecting impedance values for the resistors R1, R2 in the divider network coupled to Vcc 102. If the current through the Hall plate 110 was dependent on Vcc, then one could bring the trip level voltage into a comparator. In embodiments of the invention, the trip level voltage is provided to the ADC 108, which has a Vcc based reference. The signal processing module 114 performs digital scaling and trimming (if needed, as one could go straight from the ADC to the DAC) for the trip point and outputs a value to the DAC 116, which has a bandgap based reference 118. The DAC 116 output is compared 120 to the sensor 110 output to determine whether the fault pin 106 should be active. This arrangement maintains the fault trip point constant as Vcc changes and as the bandgap reference changes (which should be relatively little). As long as the current into the Hall plate 110 and the voltage reference of the DAC are referenced to the same voltage (even this voltage moves), then the fault trip point will not change. That is, fault sensitivity remains substantially constant.
The signal processing module 114 can provide digital correction for various offsets including supply voltage offset, DAC output offset, comparator offset, amplifier offset, gain error offset, and the like. In addition, these offset errors can also have a temperature component that can be corrected.
The voltage VADC from the resistor divider network can be defined as:
The digital output of the ADC 108 can be defined as:
where N refers to the number of bits for the ADC. Note that code_in is independent of VREF_ADC.
The output of the sensing element 110 can be referred to as Vin and defined as:
Vin=K×B×VREFDAC
where B is the field, current, etc., being sensed and K is a constant gain for the sensor. Note that Vin and VDAC depend on VREF_DAC, which controls the gain of the sensing element 110 and DAC 116.
The DAC 116 output VDAC can be defined as:
where code_out is the digital output of the signal processing module 114 that performs the corrections.
As can be seen, the comparator 120 trips when Vin equals VDAC (VDAC=Vin). From above, it follows that
Note that the trip level (B_trip) depends only on code_out, which is described more fully below, the remaining values are fixed.
It is understood that the correction processing performed by the signal processing module 114 can be customized. In an ideal case, B_trip does not change as VREF_ADC (or VREF_DAC) change. In embodiments, each percentage of VREF_ADC set by the user causes a trip level at a given B value.
It should be noted that the gain of a magnetic sensor is usually dependent on a reference voltage.
For Hall Effect sensors, the reference voltage fixes a current through the Hall plate to control gain. For a GMR sensing element, a current through a single GMR or a voltage on a Wheatstone bridge controls the gain.
While the conversion from code_in to code_out can be determined in a variety of ways, in embodiments, the conversion includes offset and slope adjustment. For example, in one particular embodiment, the ADC input is set to be between 0.3 and 0.7 times VREF_ADC. The resulting trip level is 50% to 125% of the full scale output. Based on the gain (K) of the sensing element, this determines the minimum and maximum for the DAC. For the ADC, the code_in min is 0.3*(2̂N−1), and the code_in max is 0.7*(2̂N−1), for example. In illustrative embodiments, for the DAC, the code_out min and max are determined as set forth below, setting Btrip to the min and max levels.
Referring to
and
codeout=Btrip×K(2M−1)
Using minimum and maximums:
If K or K2 (amplifier gain) is slightly off or separate but fixed references for the DAC and sensor are used, it effectively shows up as K being incorrect in the above. This can be avoided by trimming K and setting K2 using matched resistors. To compensate for K being off, the below can be computed noting that one can change gain_adj with temperature if necessary by adding a temperature sensor to the system.
If there is offset in the comparator 120 or signal path after the sensing element 110, this offset can be corrected per below noting that this performs best by fixing VREF_DAC. If VREF_DAC changes, only the offset which is multiplied by VREF_DAC will be perfectly cancelled.
If there is offset in the sensing element 110, this offset can be corrected by (voff_2 in
It is understood that coff(equations) and voff (circuit) are proportional to each other. In embodiments, a correspondence is the number of codes that are needed to compensate for how many volts, which depends upon gain values in the system.
The supply voltage input pin 402 is coupled to first and second current sources 416, 418, which are coupled to a bandgap reference 420. The output of the first current source 416 is coupled to the trip level pin 410 and a comparator 422 input. The output of the second current source 418 is coupled to the sensing element 414, the output of which is coupled to an input of the comparator 422.
In the illustrated embodiment, the user sets the fault trip level using the single resistor 412 connected to ground. The first current source 416 into the resistor 412 is based off of the same reference 420 as the gain control for the sensing element 414. In the illustrated embodiment, the sensing element 414 comprises a Hall plate with a current drive 418. The ratio of the first and second current sources 416, 418 sets the gain from the trip level setting 410 to the sensing element 414. Voltages can be added/subtracted based on the reference in order to shift the offset between the two trip levels into the comparator.
In the illustrated embodiment at zero resistance, the comparator 422 trips at zero field from sensor element 414. In embodiments, there is a linear relationship of resistance to field trip level. By adding a constant voltage to either side of the comparator 422, one shifts the y intercept—meaning one can create any desired y=mx+b relationship. Here, y is the trip level, and x is the resistance.
While illustrative embodiments of the invention are primarily shown and described in conjunction with magnetic field sensing elements, such as Hall effect sensors, it understood that embodiments of the invention are applicable to sensors and sensing elements in general in which it is desirable to have non-ratiometric fault trip points for fixed gain sensing elements.
As used herein, the term “magnetic field sensing element” is used to describe a variety of electronic elements that can sense a magnetic field. The magnetic field sensing element can be, but is not limited to, a Hall effect element, a magnetoresistance element, or a magnetotransistor. As is known, there are different types of Hall effect elements, for example, a planar Hall element, a vertical Hall element, and a Circular Vertical Hall (CVH) element. As is also known, there are different types of magnetoresistance elements, for example, a semiconductor magnetoresistance element such as Indium Antimonide (InSb), a giant magnetoresistance (GMR) element, for example, a spin valve, an anisotropic magnetoresistance element (AMR), a tunneling magnetoresistance (TMR) element, and a magnetic tunnel junction (MTJ). The magnetic field sensing element may be a single element or, alternatively, may include two or more magnetic field sensing elements arranged in various configurations, e.g., a half bridge or full (Wheatstone) bridge. Depending on the device type and other application requirements, the magnetic field sensing element may be a device made of a type IV semiconductor material such as Silicon (Si) or Germanium (Ge), or a type III-V semiconductor material like Gallium-Arsenide (GaAs) or an Indium compound, e.g., Indium-Antimonide (InSb).
As is known, some of the above-described magnetic field sensing elements tend to have an axis of maximum sensitivity parallel to a substrate that supports the magnetic field sensing element, and others of the above-described magnetic field sensing elements tend to have an axis of maximum sensitivity perpendicular to a substrate that supports the magnetic field sensing element. In particular, planar Hall elements tend to have axes of sensitivity perpendicular to a substrate, while metal based or metallic magnetoresistance elements (e.g., GMR, TMR, AMR) and vertical Hall elements tend to have axes of sensitivity parallel to a substrate.
Processing may be implemented in hardware, software, or a combination of the two. Processing may be implemented in computer programs executed on programmable computers/machines that each includes a processor, a storage medium or other article of manufacture that is readable by the processor (including volatile and non-volatile memory and/or storage elements), at least one input device, and one or more output devices. Program code may be applied to data entered using an input device to perform processing and to generate output information.
The system can perform processing, at least in part, via a computer program product, (e.g., in a machine-readable storage device), for execution by, or to control the operation of, data processing apparatus (e.g., a programmable processor, a computer, or multiple computers). Each such program may be implemented in a high level procedural or object-oriented programming language to communicate with a computer system. However, the programs may be implemented in assembly or machine language. The language may be a compiled or an interpreted language and it may be deployed in any form, including as a stand-alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment. A computer program may be deployed to be executed on one computer or on multiple computers at one site or distributed across multiple sites and interconnected by a communication network. A computer program may be stored on a storage medium or device (e.g., CD-ROM, hard disk, or magnetic diskette) that is readable by a general or special purpose programmable computer for configuring and operating the computer when the storage medium or device is read by the computer. Processing may also be implemented as a machine-readable storage medium, configured with a computer program, where upon execution, instructions in the computer program cause the computer to operate.
Processing may be performed by one or more programmable processors executing one or more computer programs to perform the functions of the system. All or part of the system may be implemented as, special purpose logic circuitry (e.g., an FPGA (field programmable gate array) and/or an ASIC (application-specific integrated circuit)).
Having described exemplary embodiments of the invention, it will now become apparent to one of ordinary skill in the art that other embodiments incorporating their concepts may also be used. The embodiments contained herein should not be limited to disclosed embodiments but rather should be limited only by the spirit and scope of the appended claims. All publications and references cited herein are expressly incorporated herein by reference in their entirety.
Elements of different embodiments described herein may be combined to form other embodiments not specifically set forth above. Various elements, which are described in the context of a single embodiment, may also be provided separately or in any suitable subcombination. Other embodiments not specifically described herein are also within the scope of the following claims.
The present application is a continuation of U.S. patent application Ser. No. 14/918,716, filed on Oct. 21, 2015, which is incorporated herein by reference.
Number | Date | Country | |
---|---|---|---|
Parent | 14918716 | Oct 2015 | US |
Child | 16127295 | US |