CIRCULAR VERTICAL HALL (CVH) SENSING ELEMENT WITH SLIDING INTEGRATION
A magnetic field sensor comprises a circular vertical Hall (CVH) sensing element comprising a plurality of vertical Hall elements, each vertical Hall element comprised of a respective group of vertical Hall element contacts selected from among a plurality of vertical Hall element contacts. A quadrature modulator circuit is coupled to the digital signal and operable to generate a plurality of quadrature modulated signals. A processor stage is coupled to receive the signals representative of the plurality of quadrature modulated signals, and operable to perform a sliding window integration using the signals representative of the plurality of quadrature modulated signals and compute an estimated angle of the external magnetic field using the signals representative of the plurality of quadrature modulated signals.
Latest Allegro Microsystems, LLC Patents:
This invention relates generally to electronic circuits, and, more particularly, to an electronic circuit that can process signals from a circular vertical Hall (CVH) sensing element to determine an angle of a magnetic field using particular processing techniques.
BACKGROUND OF THE INVENTIONSensing elements are used in a variety of applications to sense characteristics of an environment. Sensing elements include, but are not limited to, pressure sensing elements, temperature sensing elements, light sensing elements, acoustic sensing elements, and magnetic field sensing elements.
A magnetic field sensor can include one or more magnetic field sensing elements and also other electronics.
Magnetic field sensors can be used in a variety of applications. In one application, a magnetic field sensor can be used to detect a direction of a magnetic field. In another application, a magnetic field sensor can be used to sense an electrical current. One type of current sensor uses a Hall effect magnetic field sensing element in proximity to a current-carrying conductor.
Planar Hall elements and vertical Hall elements are known types of magnetic field sensing elements that can be used in magnetic field sensors. A planar Hall element tends to be responsive to magnetic field perpendicular to a surface of a substrate on which the planar Hall element is formed. A vertical Hall element tends to be responsive to magnetic field parallel to a surface of a substrate on which the vertical Hall element is formed.
SUMMARY OF THE INVENTIONIn an embodiment, a magnetic field sensor comprises a circular vertical Hall (CVH) sensing element comprising a plurality of vertical Hall elements, each vertical Hall element comprised of a respective group of vertical Hall element contacts selected from among a plurality of vertical Hall element contacts, the plurality of vertical Hall element contacts arranged over a common implant region in a semiconductor substrate, adjacent ones of the plurality of contacts at predetermined angles from each other. A CVH output stage comprises one or more of drive circuits to drive the plurality of vertical Hall elements in a sequential order and produce an analog signal representing a strength of an external magnetic field as detected by the plurality of vertical Hall elements, the analog signal comprising a series of measurements from the vertical Hall elements. An analog-to-digital converter is coupled to receive the analog signal and produce a digital signal. A quadrature modulator circuit is coupled to the digital signal and operable to generate a plurality of quadrature modulated signals. A processor stage is coupled to receive the signals representative of the plurality of quadrature modulated signals, and operable to perform a sliding window integration using the signals representative of the plurality of quadrature modulated signals and compute an estimated angle of the external magnetic field using the signals representative of the plurality of quadrature modulated signals.
One or more of the following features may be included.
The sliding window integration may include starting a first integration from a sample in the signals representative of the plurality of quadrature modulated signals corresponding to a first vertical Hall element of the plurality of vertical Hall elements. The sliding window integration may include performing the first integration over a first portion of the signals representative of the plurality of quadrature modulated signals corresponding to a full CVH cycle. The sliding window integration may include starting a second integration from a sample in the signals representative of the plurality of quadrature modulated signals corresponding to a second vertical Hall element of the plurality of vertical Hall elements. The sliding window integration may include performing the second integration over a second portion of signals representative of the plurality of quadrature modulated signals, wherein at least a part of the first portion overlaps at least a part of the second portion.
The processor stage may be configured to perform an average of one or more integrations of the sliding window integration.
The analog-to-digital converter may be a sigma-delta analog-to-digital converter comprising a noise shaping transform that shifts quantization noise to higher frequencies and the digital signal is a pulse stream.
The quadrature modulator circuit may be configured to modulate the digital signal with a sine signal to produce a first quadrature modulated signal of the plurality of quadrature modulated signals. The quadrature modulator circuit may be configured to modulate the digital signal with a cosine signal to produce a second quadrature modulated signal of the plurality of quadrature modulated signals. The quadrature modulator circuit may be configured to modulate the digital signal with the sine signal by multiplying the digital signal with a first clock or square wave signal and configured to modulate the digital signal with the cosine signal by multiplying the digital signal with a second clock or square wave signal that is ninety degrees out of phase with the first clock signal.
The processor stage is configured to filter the first and second quadrature signals by performing an integration using the first and second quadrature signals. The processor stage may be configured to calculate an estimated angle signal by performing an arctangent function using the first and second quadrature signals. The estimated angle may be computed at a frequency greater than the frequency of a CVH cycle.
In another embodiment, a method of sensing an angle of a magnetic field comprises selectively activating one or more drive circuits coupled to one or more of a plurality of vertical Hall elements arranged over a common implant region in a substrate, each vertical Hall element comprised of a respective group of vertical Hall element contacts selected from among a plurality of vertical Hall element contacts, the plurality of vertical Hall element contacts arranged over a common implant region in a semiconductor substrate, adjacent ones of the plurality of contacts at predetermined angles from each other, the selectively activating in order to activate the one or more of the plurality of vertical Hall elements; providing an analog signal from the one or more activated vertical Hall elements, the signal representing a magnitude of an external magnetic field as detected by the one or more vertical hall elements; converting the analog signal to a digital signal; generating a plurality of quadrature modulated signals; performing a sliding window integration using the plurality of quadrature modulated signals; and computing an estimated angle of the external magnetic field from the sliding window integration.
One or more of the following features may be included.
Performing the sliding window integration may include starting a first integration from a sample in the signals representative of the plurality of quadrature modulated signals corresponding to a first vertical Hall element of the plurality of vertical Hall elements. Performing the sliding window may further comprise performing the first integration over a first portion of the signals representative of the plurality of quadrature modulated signals corresponding to a CVH cycle. Performing the sliding window may further comprise starting a second integration from a sample in the signals representative of the plurality of quadrature modulated signals corresponding to a second vertical Hall element of the plurality of vertical Hall elements. Performing the sliding window may further comprise performing the second integration over a second portion of the signals representative of the plurality of quadrature modulated signals.
The digital signal may be modulating with a sine signal to produce a first quadrature modulated signal of the plurality of quadrature modulated signals and modulated with cosine signal to produce a second quadrature modulated signal of the plurality of quadrature modulated signals. The first and second quadrature signals may be filtered by performing an integration using the first and second quadrature signals of the plurality of quadrature modulated signals.
The estimated angle signal may be computed by performing an arctangent function using the first and second quadrature signals of the plurality of quadrature modulated signals. The estimated angle may be computed at a frequency greater than that of a CVH cycle. An average may be performed of one or more integrations of the sliding window integration.
The foregoing features of the invention, as well as the invention itself may be more fully understood from the following detailed description of the drawings, in which:
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, an anisotropic magnetoresistance element (AMR), a tunneling magnetoresistance (TMR) element, a magnetic tunnel junction (MTJ), a spin-valve, etc. 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).
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, spin-valve) and vertical Hall elements tend to have axes of sensitivity parallel to a substrate.
It will be appreciated by those of ordinary skill in the art that while a substrate (e.g. a semiconductor substrate) is described as “supporting” the magnetic field sensing element, the element may be disposed “over” or “on” the active semiconductor surface, or may be formed “in” or “as part of” the semiconductor substrate, depending upon the type of magnetic field sensing element. For simplicity of explanation, while the embodiments described herein may utilize any suitable type of magnetic field sensing elements, such elements will be described here as being supported by the substrate.
As used herein, the term “magnetic field sensor” is used to describe a circuit that uses a magnetic field sensing element, 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.
As used herein, the term “target” is used to describe an object to be sensed or detected by a magnetic field sensor or magnetic field sensing element. A target may be ferromagnetic or magnetic.
As is known in the art, magnetic fields have direction and strength. The strength of a magnetic field can be described as a magnitude of a magnetic flux or flux density. Therefore, the terms magnetic field “strength” and magnetic “flux” may be used interchangeably in this document.
As used herein, the term “ground” refers to a reference potential in an electrical circuit from which other voltages are measured, or a common return path for electrical current. Ground may also refer to a portion of a circuit that is connected to earth ground.
Referring to
The term “common” circular implant region indicates that the plurality of vertical Hall elements of the CVH sensing element can have no diffused barriers between the plurality of vertical Hall elements.
A particular vertical Hall element (e.g., 12a) within the CVH sensing element 12, which, for example, can have five adjacent contacts, can share some, for example, four, of the five contacts with a next vertical Hall element (e.g., 12b). Thus, a next vertical Hall element can be shifted by one contact from a prior vertical Hall element. For such shifts by one contact, it will be understood that the number of vertical Hall elements is equal to the number of vertical Hall element contacts, e.g., 32. However, it will also be understood that a next vertical Hall element can be shifted by more than one contact from the prior vertical Hall element, in which case, there are fewer vertical Hall elements than there are vertical Hall element contacts in the CVH sensing element.
A center of a vertical Hall element 0 is positioned along an x-axis 20 and a center of vertical Hall element 8 is positioned along a y-axis 22. In the example shown in
In some applications, a circular magnet 14 having a south side 14a and a north side 14b can be disposed over the CVH sensing element 12. The circular magnet 14 may generate a magnetic field 16 having a direction from the north side 14b to the south side 14a, here shown to be pointed to a direction of about forty-five degrees relative to x-axis 20. Other magnets having other shapes and configurations are possible.
In some applications, the circular magnet 14 is mechanically coupled to a rotating object (a target object), for example, an automobile crankshaft or an automobile camshaft, and is subject to rotation relative to the CVH sensing element 12. With this arrangement, the CVH sensing element 12 in combination with an electronic circuit described below can generate a signal related to the angle of rotation of the magnet 14.
Referring now to
The graph 200 includes a signal 202 representative of output signal levels from the plurality of vertical Hall elements of the CVH taken sequentially with the magnetic field 16 of
The graph 200 shows one CVH sensing element cycle, i.e. one revolution of the CVH sensing element where each Hall element is activated in sequence around the circumference of the CVH sensing element. For example, the portion of signal 202 shown in graph 200 is produced during one CVH cycle as each of the Hall elements are activated around the circumference of the CVH sensing element. In this example, the CVH cycle starts with Hall element position 0, and ends with Hall element position 31. Of course, in this example, a CVH cycle can have any start and end point as long as the CVH cycle includes one revolution of the CVH sensing element.
Referring briefly to
In
A sine wave 204 is provided to more clearly show the ideal behavior of the signal 202. The signal 202 has variations due to vertical Hall element offsets, which tend to somewhat randomly cause element output signals to be too high or too low relative to the sine wave 204, in accordance with offset errors for each element. In embodiments, the offset signal errors may be undesirable. In some embodiments, the offset errors can be reduced by “chopping” each vertical Hall element. Chopping will be understood to be a process by which vertical Hall element contacts of each vertical Hall element are driven in different configurations and signals are received from different ones of the vertical Hall element contacts of each vertical Hall element to generate a plurality of output signals from each vertical Hall element. The plurality of signals can be arithmetically processed (e.g., summed or otherwise averaged) resulting in a signal with less offset. Chopping is described more fully in U.S. Pat. No. 8,890,518 (filed Jun. 8, 2011), which is incorporated here by reference in its entirety.
Full operation of the CVH sensing element 12 of
As will be understood from PCT Patent Application No. PCT/EP2008/056517, groups of contacts of each vertical Hall element can be used in a multiplexed or chopped arrangement to generate chopped output signals from each vertical Hall element. Thereafter, a new group of adjacent vertical Hall element contacts can be selected (i.e., a new vertical Hall element), which can be offset by one or more elements from the prior group. The new group can be used in the multiplexed or chopped arrangement to generate another chopped output signal from the next group, and so on.
Each step of the signal 202 can be representative of a chopped output signal from one respective group of vertical Hall element contacts, i.e., from one respective vertical Hall element. However, in other embodiments, no chopping is performed and each step of the signal 202 is representative of an unchopped output signal from one respective group of vertical Hall element contacts, i.e., from one respective vertical Hall element. Thus, the graph 502 is representative of a CVH output signal with or without the above-described grouping and chopping of vertical Hall elements.
It will be understood that, using techniques described above in PCT Patent Application No. PCT/EP2008/056517, a phase of the signal 502 (e.g., a phase of the signal 204) can be found and can be used to identify the pointing direction of the magnetic field 16 of
Referring now to
One skilled in the art will recognize that the grouping of elements into sensing portion 302 and signal processing portion 306 are arbitrary groupings made for the purposes of illustration. In embodiments, the elements can be grouped or not grouped in any way.
In embodiments, ADC 310 is a sigma-delta converter and converted signal 314 is a delta-modulated waveform (e.g. a bit-stream) representing the output of CVH sensing element 304. For example, recalling that signal 202 in
A magnet (not shown) can be disposed proximate to the CVH sensing element 304, and can be coupled to a target object (not shown). The magnet can be the same as or similar to the magnet 14 of
Magnetic field sensor 300 may be configured to detect the position, rotational angle, speed, direction, and/or other states of a rotating magnetic target by, for example, measuring and processing the phase and changes in phase of converted signal 314.
As described above, the CVH sensing element 304 can have a plurality of vertical Hall elements, each vertical Hall element comprising a group of vertical Hall element contacts (e.g., five vertical Hall element contacts), of which the vertical Hall element contact is but one example.
In some embodiments, sequencer circuit 312 can control CVH sensing element 304 by switching individual vertical Hall elements and contacts on and off to provide sequential CVH differential output signal 316.
In certain embodiments, output signal 316 is a differential signal. In other embodiments, output signal 316 may be a non-differential signal.
The CVH output signal 316 may be comprised of sequential output signals taken one-at-a-time around the CVH sensing element 304, where each output signal is generated on a separate signal path and switched by the sequencer circuit 312 into the path of output signal 316. The CVH output signal 316 can be represented as a switched set of CVH output signals xn=x0 to xN-1, taken one at a time, where n is equal to a vertical Hall element position (i.e., a position of a group of vertical Hall element contacts that form a vertical Hall element) in the CVH sensing element 304, and where there are N such positions.
Signal processing portion 306 may employ a quadrature modulation processing scheme to detect phase and phase changes in converted signal 314. Signal processing portion 306 may include a first modulator circuit 320 and a second modulator circuit 320. The modulator circuits 320 and 322 may modulate signal 314 to produce modulated signal 324 and modulated signal 326 respectively. Taken together, the modulators 320, 322 are referred to here as an I/Q modulator or as a quadrature modulator circuit.
In an embodiment, modulated signal 324 and modulated signal 326 may be ninety degrees out of phase from each other. For example, modulator circuit 320 may modulate converted signal 314 by applying (e.g. multiplying by) a cosine signal and modulator circuit 322 may modulate converted signal 314 by applying (e.g. multiplying by) a sine signal. Because sine and cosine are ninety degrees out of phase, the resulting modulated signals 324 and 326 may be quadrature signals that are ninety degrees out of phase.
In an alternate embodiment, modulator 320 may modulate converted signal 314 by multiplying with a first clock signal or square wave that represents the cosine function, and modulator 322 may modulate converted signal 314 by multiplying with a second clock signal or square wave that represents the sine signal. The first and second clock signals/square waves may be ninety degrees out of phase from each other. One skilled in the art will recognize that multiplying converted signal 314 by clock signals or square waves may introduce high frequency spectral products into signal 324, 326. However, the high frequency spectral products can be filtered from the signals 324, 326 by integrators 328, 330, respectively, or by low-pass or band-pass filters.
As described above, signal processing portion 306 may also include one or more low pass filters 328, 330. Low pass filters 328, 330 receive modulated signals 324, 326, respectively. In an embodiment, low pass filters 328, 330 may be implemented by integrator circuits. However, this is not a requirement—any type of appropriate low pass filter or band pass filter may be applied to modulated signals 324, 326. The filtered signals 332, 334 may then be fed into a processor circuit 336.
Processor circuit 336 may combine the filtered, quadrature signals 332, 334. The combination of filtered signals 332, 334 may be used to calculate the angle of the magnetic target detected by CVH sensing element 304. For example, as the magnetic target moves around the Hall elements in CVH sensing element 304, the amplitude steps (see, e.g.,
In an embodiment, the combined signal may be a sum or product of quadrature signals 332 and 334. As shown in
By using quadrature signals and performing the arctangent calculation, the resulting estimated angle signal may have a resolution finer than, and/or accuracy greater than, the angular spacing of the vertical Hall elements in the CVH sensing element 304. In addition to the arctangent calculation, the processor circuit 336 can include an interpolation module (not shown) operable to interpolate the angle of the detected magnetic field to a finer degree than the angles between the Hall elements.
The sigma-delta ADC 310 may be configured so that the converted signal 314 can be written as:
Where f(t) represents converted signal 314, αn represents the angle of the detected magnetic field and (An, αn) represents the harmonic offset components, VDC is the DC offset of the signal, and Vnoise is the high pass noise (e.g. waveform 402 in
It is not necessary that a sigma-delta analog-to-digital converter be employed. ADC 310 can be replaced with any type of analog-to-digital converter. However, the sigma-delta ADC 310 has the advantage that it may be implemented in a relatively small silicon area, it can operate to move noise content to higher frequencies as shown in
The sigma-delta ADC 310 acquires many samples of the input signal 318 to produce a stream of 1-bit codes. In an embodiment, the sampling frequency of ADC 310 is much higher than the Nyquist frequency. For example, the sample rate may approach or be equal to the frequency of the system clock. The frequency of the system clock may range from less than about 5 MHz to more than about 16 MHz in a typical embodiment.
Referring to
As shown in
Referring to
Referring again to
Where I represents modulated signal 332 and Q represents modulated signal 334. From equations 3 and 4 it can be identified that the I and Q values, 332, 334, respectively, are DC values.
Performing an arctangent operation (i.e. the inverse of a tangent operation) on the quotient of Q divided by I results in an estimated angle of the magnetic field, as follows:
Referring to
Operation of the modulators 320, 322 of
Referring to
Processor 504 may be configured to perform the CORDIC algorithm to perform an arctangent function on signal 502. Processor 504 may be a custom circuit, such as a custom-designed IC, a processor having a memory containing/programmed with instructions to perform the CORDIC algorithm, an FPGA or other type of programmable hardware programmed to perform the CORDIC function, etc. Circuit 500 also includes a control unit circuit 506. The control circuit may control the processing flow by sending control signals to processor 504 and surrounding circuitry (such as counter 508, sinc filters 510 and 512, and the various multiplexors, latches, and other circuits shown in
In an embodiment, processor 504 has a dual functionality as I/Q modulator and an arctangent calculator. Counter 508 represents the phase of the sine and cosine reference signals (used for generating the quadrature components). The signal 502 is multiplied by these sine and cosine signals generated by processor 504. The result of such multiplication pass through filters 510, 512 and, when the reference signal period is finished (as controlled by 506), control unit 506 asserts a control signal that causes processor 504 to begin performing an arctangent function. When the arctangent operation is complete, the arctangent value representing the estimated angle of the target is provided as an output (e.g. signal 514).
The CVH techniques above may produce an output signal (i.e. an estimated angle or location of the magnetic target) each time a CVH cycle is completed. Each CVH cycle consists of a sampling from each of the vertical Hall elements in the CVH sensing element. For example, the CVH sensing element 10 in
Referring to
As an example, assume that CVH sensing element 10 in
Turning now to
The windowed integration scheme may begin a CVH cycle on any Hall element. As shown in
In the next CVH cycle 606, however, it may not be necessary to wait until CVH cycle 602 is complete before updating the output signal with a new estimated angle. Using a windowed integration scheme, a new estimated angle may be produced as soon as a sample is taken from Hall element 5.
The beginning of CVH cycle 606, shown by start line 608, begins with Hall element 5. Just prior to the beginning of CVH cycle 606, during CVH cycle 602, samples were taken from Hall elements 5-31 and then 0-4. Thus, these recent samples, along with the most recent sample from Hall element 5, can be used to perform an integration and produce an estimated angle as the output as soon as the sample from Hall element 5 is taken.
Continuing the example, the next sample may be taken from Hall element 6, as shown by line 610. Just prior to taking the sample from Hall element 6, samples were taken from Hall elements 6-31 then 0-5. Again, these recent samples, along with the most recent sample from Hall element 6, can be used to perform an integration and produce an estimated angle as the output as soon as the sample from Hall element 5 is taken. Accordingly, in this example, the estimated angle at the output signal can be updated every time a sample is taken from a Hall element. Thus, using a windowed integration scheme, the rate of updating the output signal can be increased from 1 update every CVH cycle, to N updates every CVH cycle, where N is the number of Hall elements in CVH sensing element 10.
In other embodiments, using a windowed integration scheme, the CVH-based magnetic field sensor can update the output signal after every m Hall elements have sampled the magnetic field, where m is an arbitrary integer less than the number of Hall elements N. For example, assume m is 4. In this case, the output signal will be updated after every 4 samples are taken from the Hall elements. The first windowed integration cycle may start with Hall element 0 and proceed to take samples from Hall elements 0-31. When the last sample is taken again from Hall element 0, the output signal is updated with the estimated angle.
After updating the estimated angle, the CVH magnetic field sensor may proceed to take samples from Hall elements 1-4. After taking the sample from Hall element 4, the output signal is updated again with a newly estimated angle. The newly estimated angle may be based on an integration of the most recent samples from Hall elements 5-31 and 0-4.
After again updating the estimated angle, the CVH sensor may proceed to take samples from Hall elements 5-8 and, after the sample from Hall element 8 is taken, again update the output signal with a new estimated angle. The CVH sensor may continue this way, providing updated output after every m samples are taken from the Hall elements.
One skilled in the art will recognize that m can be any arbitrary number, and it need not be evenly divisible into the number of Hall elements N.
Referring to
Converted signal 711 produced by ADC 710 may be the same as or similar to converted signal 314. Modulator 712 may modulate signal 711 with cosine signal 714, and modulator 716 may module signal 711 with sine signal 718, to produce quadrature modulated signals 713, 717, respectively.
Using the sliding window technique described above in conjunction with
In equations 5 and 6, f(t) represents digital signal 711, I represents quadrature modulated signal 713, Q represents quadrature modulated signal 717, and n is a multiplier representing the increase in throughput of the output signal. For example, in a CVH sensing element with 32 Hall elements (N=32), where the output is updated after every 8 samples (m=8), the increase in throughput of the output signal n would be n=m/N=4. Thus, in this example, where an integration is performed after every 8 samples, the throughput of the output signal is increased 4× with respect to a CVH magnetic field sensor that does not use a windowed integration scheme.
Modulated signals 713 and 717 are received by windowed integrators 720 and 722. As noted above, a windowed integration scheme (e.g. using sliding windows of samples from the Hall effect elements) may be employed.
In an embodiment, ‘n’ in equations 5 and 6 is greater than 1 and may be as large as N, where N is the number of elements in the CVH. In this case, the system will update the output representing the estimated angle of the target n times during one CVH cycle. Each integration may have a window length (e.g. a number of samples that are used to perform the integration) equal to one CVH cycle (i.e. each integration may include N samples where N is the number of elements in a full CVH cycle).
In an embodiment, the system may perform an average of multiple estimated angles in order to provide an averaged estimated angle output. The average may be performed over any number of samples of the estimated angle signal. Recall that n represents the number of times the estimated angle signal is updated in one CVH cycle. If the average is performed over n (or fewer) samples of the estimated angle signal, the averaged estimated angle may be calculated (and/or provided as an output) at a frequency equal to or less than that of the CVH cycle (i.e f(avg)<=1/TCVH, where f(avg) is the frequency that the averaged estimated angle is calculated, f(CVH) is the frequency of the CVH cycles or. In other embodiments, the average can be performed over more than n samples of the estimated angle signal. In this case, the frequency of the averaged estimated angle may be greater than the frequency of the CVH cycles.
The outputs of integrators 720 and 722 are amplified by amplifiers 724 and 726, and received by arctangent processing circuit 728. Arctangent processing circuit 728 may be the same as or similar to processor circuit 336 shown in
The output signal 732 may represent the estimated angle of the magnetic target. As noted above, the output may be updated more frequently than once every CVH cycle. In an embodiment, the output may be updated after every m samples taken by the Hall effect elements in CVH sensing element 702, where m is an arbitrary integer less than or equal to the number of Hall effect elements in CVH sensing element 702.
All references cited in this document are incorporated by reference in their entirety. Having described various embodiments, which serve to illustrate various concepts, structures and techniques, which are the subject of this patent, it will now become apparent to those of ordinary skill in the art that other embodiments incorporating these concepts, structures and techniques may be used. Accordingly, it is submitted that that scope of the patent should not be limited to the described embodiments but rather should be limited only by the spirit and scope of the following claims.
Claims
1. A magnetic field sensor, comprising:
- a circular vertical Hall (CVH) sensing element comprising a plurality of vertical Hall elements, each vertical Hall element comprised of a respective group of vertical Hall element contacts selected from among a plurality of vertical Hall element contacts, the plurality of vertical Hall element contacts arranged over a common implant region in a semiconductor substrate, adjacent ones of the plurality of contacts at predetermined angles from each other;
- a CVH output stage comprising one or more of drive circuits to drive the plurality of vertical Hall elements in a sequential order and produce an analog signal representing a strength of an external magnetic field as detected by the plurality of vertical Hall elements, the analog signal comprising a series of measurements from the vertical Hall elements;
- an analog-to-digital converter coupled to receive the analog signal and produce a digital signal;
- a quadrature modulator circuit coupled to the digital signal and operable to generate a plurality of quadrature modulated signals; and a processor stage coupled to receive the signals representative of the plurality of quadrature modulated signals, and operable to perform a sliding window integration using the signals representative of the plurality of quadrature modulated signals; and compute an estimated angle of the external magnetic field using the signals representative of the plurality of quadrature modulated signals.
2. The magnetic field sensor of claim 1 wherein the sliding window integration comprises starting a first integration from a sample in the signals representative of the plurality of quadrature modulated signals corresponding to a first vertical Hall element of the plurality of vertical Hall elements.
3. The magnetic field sensor of claim 2 wherein the sliding window integration comprises performing the first integration over a first portion of the signals representative of the plurality of quadrature modulated signals corresponding to a full CVH cycle.
4. The magnetic field sensor of claim 3 wherein the sliding window integration comprises starting a second integration from a sample in the signals representative of the plurality of quadrature modulated signals corresponding to a second vertical Hall element of the plurality of vertical Hall elements.
5. The magnetic field sensor of claim 4 wherein the sliding window integration comprises performing the second integration over a second portion of signals representative of the plurality of quadrature modulated signals, wherein at least a part of the first portion overlaps at least a part of the second portion.
6. The magnetic field sensor of claim 1 wherein the processor stage is configured to perform an average of one or more integrations of the sliding window integration.
7. The magnetic field sensor of claim 1 wherein the analog-to-digital converter is a sigma-delta analog-to-digital converter comprising a noise shaping transform that shifts quantization noise to higher frequencies and the digital signal is a pulse stream.
8. The magnetic field sensor of claim 1 wherein the quadrature modulator circuit is configured to modulate the digital signal with a sine signal to produce a first quadrature modulated signal of the plurality of quadrature modulated signals.
9. The magnetic field sensor of claim 8 wherein the quadrature modulator circuit is configured to modulate the digital signal with a cosine signal to produce a second quadrature modulated signal of the plurality of quadrature modulated signals.
10. The magnetic field sensor of claim 9 wherein the quadrature modulator circuit is configured to modulate the digital signal with the sine signal by multiplying the digital signal with a first clock or square wave signal and configured to modulate the digital signal with the cosine signal by multiplying the digital signal with a second clock or square wave signal that is ninety degrees out of phase with the first clock signal.
11. The magnetic field sensor of claim 9 wherein the processor stage is configured to filter the first and second quadrature signals by performing an integration using the first and second quadrature signals.
12. The magnetic field sensor of claim 9 wherein the processor stage is configured to calculate an estimated angle signal by performing an arctangent function using the first and second quadrature signals.
13. The magnetic field sensor of claim 1 wherein the estimated angle is computed at a frequency greater than the frequency of a CVH cycle.
14. A method of sensing an angle of a magnetic field comprising:
- selectively activating one or more drive circuits coupled to one or more of a plurality of vertical Hall elements arranged over a common implant region in a substrate, each vertical Hall element comprised of a respective group of vertical Hall element contacts selected from among a plurality of vertical Hall element contacts, the plurality of vertical Hall element contacts arranged over a common implant region in a semiconductor substrate, adjacent ones of the plurality of contacts at predetermined angles from each other, the selectively activating in order to activate the one or more of the plurality of vertical Hall elements;
- providing an analog signal from the one or more activated vertical Hall elements, the signal representing a magnitude of an external magnetic field as detected by the one or more vertical hall elements;
- converting the analog signal to a digital signal;
- generating a plurality of quadrature modulated signals;
- performing a sliding window integration using the plurality of quadrature modulated signals; and
- computing an estimated angle of the external magnetic field from the sliding window integration.
15. The method of claim 14 wherein performing the sliding window integration comprises starting a first integration from a sample in the signals representative of the plurality of quadrature modulated signals corresponding to a first vertical Hall element of the plurality of vertical Hall elements.
16. The method of claim 15 wherein performing the sliding window further comprises performing the first integration over a first portion of the signals representative of the plurality of quadrature modulated signals corresponding to a CVH cycle.
17. The method of claim 16 wherein performing the sliding window further comprises starting a second integration from a sample in the signals representative of the plurality of quadrature modulated signals corresponding to a second vertical Hall element of the plurality of vertical Hall elements.
18. The method of claim 17 wherein performing the sliding window further comprises performing the second integration over a second portion of the signals representative of the plurality of quadrature modulated signals.
19. The method of claim 14 further comprising modulating the digital signal with a sine signal to produce a first quadrature modulated signal of the plurality of quadrature modulated signals and modulating the digital signal with cosine signal to produce a second quadrature modulated signal of the plurality of quadrature modulated signals.
20. The method of claim 19 further comprising filtering the first and second quadrature signals by performing an integration using the first and second quadrature signals of the plurality of quadrature modulated signals.
21. The method of claim 19 further comprising computing the estimated angle signal by performing an arctangent function using the first and second quadrature signals of the plurality of quadrature modulated signals.
22. The method of claim 14 wherein the estimated angle is computed at a frequency greater than that of a CVH cycle.
23. The method of claim 14 further comprising performing an average of one or more integrations of the sliding window integration.
Type: Application
Filed: Feb 1, 2016
Publication Date: Aug 3, 2017
Applicant: Allegro Microsystems, LLC (Worcester, MA)
Inventors: Octavio H. Alpago (Buenos Aires), Ezequiel Alves (Buenos Aires), Hernán D. Romero (Buenos Aires)
Application Number: 15/012,131