WO2006103246A1 - Digital high-pass filter for a displacement detection device of a portable apparatus - Google Patents

Digital high-pass filter for a displacement detection device of a portable apparatus Download PDF

Info

Publication number
WO2006103246A1
WO2006103246A1 PCT/EP2006/061116 EP2006061116W WO2006103246A1 WO 2006103246 A1 WO2006103246 A1 WO 2006103246A1 EP 2006061116 W EP2006061116 W EP 2006061116W WO 2006103246 A1 WO2006103246 A1 WO 2006103246A1
Authority
WO
WIPO (PCT)
Prior art keywords
pass filter
digital high
stage
output
acceleration
Prior art date
Application number
PCT/EP2006/061116
Other languages
French (fr)
Inventor
Michele Tronconi
Enrico Chiesa
Fabio Pasolini
Original Assignee
Stmicroelectronics S.R.L.
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Stmicroelectronics S.R.L. filed Critical Stmicroelectronics S.R.L.
Priority to CN2006800192908A priority Critical patent/CN101189794B/en
Publication of WO2006103246A1 publication Critical patent/WO2006103246A1/en
Priority to US11/864,447 priority patent/US7783449B2/en

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03HIMPEDANCE NETWORKS, e.g. RESONANT CIRCUITS; RESONATORS
    • H03H17/00Networks using digital techniques
    • H03H17/02Frequency selective networks
    • H03H17/04Recursive filters
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01PMEASURING LINEAR OR ANGULAR SPEED, ACCELERATION, DECELERATION, OR SHOCK; INDICATING PRESENCE, ABSENCE, OR DIRECTION, OF MOVEMENT
    • G01P15/00Measuring acceleration; Measuring deceleration; Measuring shock, i.e. sudden change of acceleration
    • G01P15/02Measuring acceleration; Measuring deceleration; Measuring shock, i.e. sudden change of acceleration by making use of inertia forces using solid seismic masses
    • G01P15/08Measuring acceleration; Measuring deceleration; Measuring shock, i.e. sudden change of acceleration by making use of inertia forces using solid seismic masses with conversion into electric or magnetic values
    • G01P15/0891Measuring acceleration; Measuring deceleration; Measuring shock, i.e. sudden change of acceleration by making use of inertia forces using solid seismic masses with conversion into electric or magnetic values with indication of predetermined acceleration values
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01PMEASURING LINEAR OR ANGULAR SPEED, ACCELERATION, DECELERATION, OR SHOCK; INDICATING PRESENCE, ABSENCE, OR DIRECTION, OF MOVEMENT
    • G01P15/00Measuring acceleration; Measuring deceleration; Measuring shock, i.e. sudden change of acceleration
    • G01P15/18Measuring acceleration; Measuring deceleration; Measuring shock, i.e. sudden change of acceleration in two or more dimensions

Definitions

  • the present invention relates to a digital high-pass filter, in particular for use in a displacement detection device for detecting displacements of a portable apparatus, to which the following description will make explicit reference, without this implying any loss of generality.
  • the displacement detection devices of a known type generally comprise acceleration sensors, which detect the acceleration acting on the corresponding portable apparatus along one or more detection directions, and generate corresponding electrical signals.
  • An appropriate processing circuit connected to the acceleration sensors processes the acceleration signals thus generated, and in particular compares them with pre-set acceleration thresholds. In particular, exceeding of one of the acceleration thresholds indicates that the portable apparatus has undergone a displacement in a corresponding direction.
  • the acceleration sensors have a non-zero output also in the absence of an acceleration exerted on the portable apparatus by the user.
  • the acceleration signals generated on account of the sole acceleration of gravity have different values according to the resting position of the portable apparatus, in so far as the components of the acceleration of gravity along the detection directions are each time different. Consequently, the exceeding of the acceleration thresholds by the acceleration signals, in the presence of an acceleration exerted on the portable apparatus, is dependent upon the initial position (and in particular upon the orientation) of the portable apparatus. This leads to disparity of operation according to the initial resting position of the portable apparatus chosen by the user, a position that varies, for example, between right-handed users and left-handed users, and in any case according to the preference of the various users .
  • numerical high-pass filters are generally made with FIR (Finite Impulse Response) or HR (Infinite Impulse Response) structures.
  • FIR Finite Impulse Response
  • HR Infinite Impulse Response
  • the high-pass filters must have a long time constant, for example longer than 100 ms, and a high order.
  • the FIR or HR filters envisage the repetition of one and the same circuit structure a number of times equal to the order of the filter, and the storage of a number of constants once again equal to the order of the filter, these characteristics lead to a considerable circuit complexity and consequently a high use of resources .
  • the silicon area occupation and the memory occupation can be excessive beyond a certain order of the filter (mainly in the case of portable applications) .
  • a firmware stored for example in a microcontroller or in a DSP (Digital Signal Processor) , it is necessary to choose very costly components and to use all or a large part of the resources of the system just for the filter implementation .
  • the aim of the present invention is consequently to provide a digital high-pass filter that will enable the problems and the disadvantages referred to above to be overcome, and in particular will have high time constants, will be readily configurable, and at the same time will lead to a reduced use of resources.
  • a digital high-pass filter is provided, as defined in Claim 1.
  • a displacement detection device is moreover provided, as defined in Claim 10.
  • FIG. 1 shows a block diagram of a portable apparatus incorporating a displacement detection device according to one embodiment of the present invention
  • FIG. 2 shows a circuit block diagram of a processing circuit of the displacement detection device of Figure 1;
  • FIG. 3 shows a possible circuit embodiment of a digital high-pass filter in the processing circuit of Figure 2;
  • - Figure 4 shows the time response of the digital high-pass filter in the presence of a square-wave input signal;
  • FIG. 5 shows a possible circuit embodiment of an integrator block of the digital high-pass filter of Figure 3;
  • FIG. 6 shows an alternative circuit embodiment of the integrator block of the digital high-pass filter of Figure 3;
  • FIGS. 7a-7b and 8a-8b show diagrams of the magnitude and phase response of the digital high-pass filter, for two different values of a variable dividing factor; and - Figure 9 shows a block diagram of a portable apparatus incorporating a displacement detection device, according to a further embodiment of the present invention.
  • Figure 1 is a schematic illustration of a portable apparatus 1 equipped with a displacement detection device 2 and a microprocessor 3, connected to the displacement detection device 2 and configured to control the general operation of the portable apparatus 1.
  • the displacement detection device 2 comprises an accelerometer 4 of a linear type, and a processing circuit 5, connected to the accelerometer 4.
  • the processing circuit 5 is made in an ASIC and is integrated together with the accelerometer 4 within a single chip 6 of semiconductor material, preferably silicon.
  • the accelerometer 4 is of a known type, in particular is constituted by a MEMS (Micro-Electro-Mechanical System) device made using semiconductor technology, has three detection axes x, y and z, and generates three acceleration signals A x , A y , A z
  • MEMS Micro-Electro-Mechanical System
  • each correlated to the acceleration detected along a respective detection axis each correlated to the acceleration detected along a respective detection axis.
  • the accelerometer 4 can be made as described in "3-axis Digital
  • the processing circuit 5 receives at input the acceleration signals A x , A y , A z , carries out appropriate processing operations, and supplies at output logic signals corresponding to the displacements of the portable apparatus from a reference position.
  • the microprocessor 3 receives said logic signals and reconstructs therefrom the displacement direction of the portable apparatus 1 so as to activate corresponding functions or programs in the portable apparatus 1 .
  • the processing circuit 5 comprises, for each of the acceleration signals A x , A y , A z , a threshold comparator 10, a digital high-pass filter 12 (which will be described in detail hereinafter) receiving at input a respective acceleration signal A x , A y , A z from the accelerometer
  • the processing circuit 5 further comprises a first register 15, which stores an acceleration threshold A th , which can be set from outside by a user.
  • the threshold comparator 10 has a first input connected to the first register 15, a second input connected to the output of the digital high-pass filter 12, and an output connected to the enabling stage 13.
  • the enabling stage 13, preferably made with logic gates, has a first input connected to the output of the threshold comparator 10, a second input receiving an enabling signal EN x , EN y , EN Z of a logic type, and an output connected to the microprocessor 3 of the portable apparatus 1 (see Figure 1) .
  • the adjustment stage 14 is connected to the digital high-pass filter 12 for varying its cutoff frequency f t on the basis of a selection by the user.
  • the operation of the displacement detection device 2 is the following.
  • the acceleration signals A x , A y , A z generated by the accelerometer 4 are filtered in the respective digital high- pass filters 12 and supplied to the respective threshold comparators 10, which first calculate their magnitudes, and then compare them with the acceleration threshold A th , generating at output a logic signal (designated by X f , Y f , Z f ) .
  • the logic signal X f , Y f , Z f has, for example, a high value, if the magnitude of the respective acceleration signal A x , A y , A z is greater than the acceleration threshold A th (a situation corresponding to the detection of an acceleration greater than the threshold set along the respective detection axis x, y, z) .
  • the enabling stage 13 supplies at output a respective displacement detection signal X, Y, Z corresponding to the logic signal X f , Y f , Z f received from the respective threshold comparator 10. Otherwise, the enabling stage 13 supplies at output a pre-set logic signal, for example low, so disabling displacement detection along the respective axis x, y, z. Said function is useful for disabling one or more of the detection axes and thus simplifying processing by the microprocessor 3 when it is known which will be the displacement direction of the portable apparatus 1. In any case, the displacement detection signals X, Y, Z are sent to the microprocessor 3, which processes them (in a per-se known manner which is not described in detail herein) to determine the displacement direction of the portable apparatus 1.
  • the digital high-pass filter 12 eliminates (or in any case reduces) the continuous component of the respective acceleration signal A x , A y , A z received at input, which is related to the acceleration of gravity, so that the displacement detection is independent of the initial position of the portable apparatus 1.
  • the adjustment stage 14 enables variation of the cutoff frequency f t of the digital high-pass filter 12, so as to adapt operation of the processing circuit 5 to the type of application/function that it is desired to obtain. For example, if it is desired to detect slow movements by the user, it is preferable to select a cutoff frequency f t that is sufficiently low so that the low-frequency components of the corresponding acceleration signals will have an amplitude sufficient to be detected.
  • the digital high-pass filter 12 has a recursive structure and has an input IN connected to the accelerometer 4 and receiving the respective acceleration signal A x , A y , A z , and an output OUT connected to the respective threshold comparator 10.
  • the digital high-pass filter 12 comprises a subtractor stage 20 and a recursive branch 21.
  • the subtractor stage 20 has a positive input terminal connected to the input IN, a negative input terminal connected to the recursive branch 21, and an output terminal connected to the output OUT of the digital high-pass filter 12.
  • the recursive branch 21 connects the output OUT to the negative input terminal of the subtractor stage 20, and comprises an integrator stage 23 and a divider stage 24, cascaded to one another.
  • the integrator stage 23 is connected at input to the output OUT of the digital high-pass filter 12, and the divider stage 24 has an output connected to the negative input terminal of the subtractor stage 20.
  • the integrator stage 23 performs an accumulation function in so far as it carries out a summation, possibly weighted (according to the specific circuit configuration) , of the samples that it receives at input.
  • the divider stage 24 carries out a division by a dividing factor den, having a value greater than 1.
  • the recursive branch 21, and in particular the accumulation function of the integrator stage 23 causes the output of the integrator stage 23 to change, in particular to increase, until it assumes a value of ⁇ *den.
  • the negative terminal of the subtractor stage 20 is equal to ⁇ , matching the value of the input signal, and the output OUT of the digital high-pass filter 12 goes to zero .
  • the output OUT of the digital high-pass filter 12 substantially follows the input IN in so far as the recursive branch 21 is not sufficiently fast to follow the variations of the input IN. In this way, the information related to the movement issued by the user to the portable apparatus 1 is brought substantially unaltered to the output OUT of the digital high-pass filter 12.
  • the recursive branch 21 brings back to zero the output OUT of the digital high-pass filter 12, with a time that is related to its time constant.
  • Input signals having low frequencies are instead more or less attenuated, according to whether they are more or less close to the cutoff frequency f t of the digital high-pass filter 12.
  • the cutoff frequency f t of the digital high- pass filter 12 results from the speed of the recursive branch 21 in annulling the output OUT of the digital high-pass filter 12, i.e., from the speed of the integrator stage 23 in following the variations of the input IN.
  • Said speed is a function of the sampling period of the integrator stage 23, and of the dividing factor den. Given the same sampling period, the higher the dividing factor den, the longer the digital high-pass filter 12 takes to reach a steady state (output OUT zero); i.e., the greater is its time constant.
  • the cutoff frequency f t of the digital high-pass filter 12 can hence be modified in a simple and fast way by the adjustment stage 14, by simply varying the dividing factor den of the divider stage 24.
  • Figure 4 illustrates the waveform of the signal at the output OUT of the digital high-pass filter 12 (represented with a solid line) in the presence of a square-wave signal (represented with a dashed line) at the input IN, simulating impulsive application of positive and negative displacements to the portable apparatus 1 by the user.
  • the ordinate gives a normalized numerical value, whilst the abscissa gives the generated number of samples, normalized with respect to the sampling frequency.
  • the output OUT of the digital high-pass filter 12 follows the impulsive variations of the input IN, and goes to zero, in a time related to its time constant, when the signal at the input IN is stable.
  • the integrator stage 23 comprises an adder block 26, and a delay block 28.
  • the adder block 26 has a first positive input terminal connected to the output OUT of the digital high-pass filter 12, a second positive input terminal connected to the output of the delay block 28, and an output terminal connected to the divider stage 24.
  • the delay block 28 has an input connected to the output terminal of the adder block 26, and an output connected to the second positive input of the adder block 26.
  • the integrator stage 23 has a different circuit configuration.
  • the delay block 28 is connected at input to the output terminal of the adder block 26 and at output to the divider stage 24.
  • the adder block 26 has, instead, a first positive input terminal connected to the output OUT of the digital high-pass filter 12, a second positive input terminal connected to the divider stage 24, and an output terminal connected to the input of the delay block 28.
  • both of the embodiments of the integrator stage 23 share the common feature of comprising a recursive accumulation structure.
  • Figures 7a and 7b show the magnitude and phase response against frequency, respectively, of the digital high-pass filter 12 for a first value of the dividing factor den, equal to 32.
  • Figures 8a and 8b show the magnitude and phase response, respectively, of the digital high-pass filter 12 for a second value of the dividing factor den, equal to 256.
  • the cutoff frequency f t of the digital high-pass filter 12 moves towards lower frequencies as the dividing factor den increases .
  • the structure of the digital high-pass filter is extremely simple, is readily configurable, and calls for a minimum use of resources.
  • it is sufficient to vary the dividing factor den of the divider stage 24 in order to vary the cutoff frequency f t .
  • the operation of the divider stage 24 reduces to a simple shift of a digital word, thus further simplifying operation of the digital high-pass filter 12.
  • the overall displacement detection device can be integrated in a single chip, with obvious advantages in terms of area occupation.
  • the processing circuit 5 is obtained entirely via software.
  • the displacement detection device 2 comprises a microprocessor circuit 30 (for example, a microcontroller or a DSP) , on which a firmware is stored that provides the processing circuit 5.
  • the digital high-pass filter 12 of the processing circuit 5 can be made via software with three simple blocks, namely, an adder block, a subtractor block, and a divider block.
  • the displacement detection device 2 can advantageously be integrated within a single chip
  • the microprocessor circuit 30 can be equipped with appropriate logic circuits designed to deduce the displacement direction of the portable apparatus 1 and to transmit said information directly to the main microprocessor 3 of the portable apparatus 1 so as to further simplify the management software of the portable apparatus 1.
  • the order of cascaded connection between the integrator stage 23 and the divider stage 24 within the recursive branch 21 can be reversed.
  • the input of the divider stage 24 is connected to the output OUT of the digital high-pass filter 12, and the integrator stage 23 has an output connected to the negative input terminal of the subtractor block 20.
  • integrator stage 23 can be made with other circuit configurations with the characteristic recursive accumulation structure .
  • the displacement detection device can be used for re-activating a portable apparatus from a stand-by condition (the so-called wake-up function) .
  • the detection of an acceleration greater than the pre-set threshold causes re-activation of functions of the portable apparatus that had previously been de-activated in order to save energy.
  • the displacement detection device can also be used in systems for control and compensation of vibrations, for example within electrical household appliances. In this case, in fact, it is not necessary to know the continuous acceleration to which the apparatus is subject, but rather the displacement with respect to a resting position.

Abstract

A digital high-pass filter (12) has an input (IN), an output (OUT), and a subtractor stage (20), having a first input terminal, a second input terminal and an output terminal. The first input terminal of the subtractor stage (20) is connected to the input (IN) of the digital high-pass filter (12) and the output terminal is connected to the output (OUT) of the digital high-pass filter (12). A recursive circuit branch (21) is connected between the output (OUT) of the digital high-pass filter (12) and the second input terminal of the subtractor stage (20). Within the recursive circuit branch (21) are cascaded an accumulation stage (23), constituted by an integrator circuit, and a divider stage (24). The cutoff frequency (ft) of the digital high-pass filter (12) is variable according to a dividing factor (den) of the divider stage (24).

Description

DIGITAL HIGH-PASS FILTER FOR A DISPLACEMENT DETECTION DEVICE OF A PORTABLE APPARATUS
TECHNICAL FIELD The present invention relates to a digital high-pass filter, in particular for use in a displacement detection device for detecting displacements of a portable apparatus, to which the following description will make explicit reference, without this implying any loss of generality.
BACKGROUND ART
As is known, in the last few years, with the increasing use of portable apparatuses (such as laptops, PDAs - Personal Data Assistants, digital audio players, mobile phones, digital cameras, and the like) , a need has grown for simplifying the use of said apparatuses and in particular their user interface. In this regard, of particular interest has proven the possibility of activating given functions or programs in the portable apparatuses with a simple movement made by the user. Consider, for example, navigation within a list of options or the phone book of a mobile phone by simply tilting it or moving it in the direction in which the list or the phone book is to be scrolled, or the possibility of adapting the display of an image on a PDA by simply modifying its inclination.
In some portable apparatuses, the introduction of displacement detection devices has thus been proposed which enable the activation of functions or programs following upon the detection of a movement imparted by the user.
The displacement detection devices of a known type generally comprise acceleration sensors, which detect the acceleration acting on the corresponding portable apparatus along one or more detection directions, and generate corresponding electrical signals. An appropriate processing circuit connected to the acceleration sensors processes the acceleration signals thus generated, and in particular compares them with pre-set acceleration thresholds. In particular, exceeding of one of the acceleration thresholds indicates that the portable apparatus has undergone a displacement in a corresponding direction.
However, due to the acceleration of gravity, the acceleration sensors have a non-zero output also in the absence of an acceleration exerted on the portable apparatus by the user. Furthermore, the acceleration signals generated on account of the sole acceleration of gravity have different values according to the resting position of the portable apparatus, in so far as the components of the acceleration of gravity along the detection directions are each time different. Consequently, the exceeding of the acceleration thresholds by the acceleration signals, in the presence of an acceleration exerted on the portable apparatus, is dependent upon the initial position (and in particular upon the orientation) of the portable apparatus. This leads to disparity of operation according to the initial resting position of the portable apparatus chosen by the user, a position that varies, for example, between right-handed users and left-handed users, and in any case according to the preference of the various users .
To solve the above problem, in the Italian patent application No. TO2004A000847, filed in the name of the present applicant on December 1, 2004, the use of a high-pass filter was proposed, said high-pass filter being arranged between the acceleration sensors and the corresponding processing circuit. The high-pass filter eliminates the continuous component of the acceleration signals linked to the acceleration of gravity so as to render the displacement detection independent of the initial position of the portable apparatus.
As is known, numerical high-pass filters are generally made with FIR (Finite Impulse Response) or HR (Infinite Impulse Response) structures. In order to effectively reduce the continuous component of the acceleration signals, without, however, altering the frequency components indicative of the displacements to be detected (frequency components that can be low-frequency ones in the case of slow movements or high- frequency ones in the case of fast movements) , the high-pass filters must have a long time constant, for example longer than 100 ms, and a high order. Since the FIR or HR filters envisage the repetition of one and the same circuit structure a number of times equal to the order of the filter, and the storage of a number of constants once again equal to the order of the filter, these characteristics lead to a considerable circuit complexity and consequently a high use of resources . In particular, in the case of hardware implementation via an ASIC (Application Specific Integrated Circuit) the silicon area occupation and the memory occupation can be excessive beyond a certain order of the filter (mainly in the case of portable applications) . Instead, in case of software implementation via a firmware, stored for example in a microcontroller or in a DSP (Digital Signal Processor) , it is necessary to choose very costly components and to use all or a large part of the resources of the system just for the filter implementation .
In addition, in numerical filters of a conventional type it is not easy to vary the cutoff frequency, a possibility that is, instead, extremely useful in the described application for the detection of displacements of portable apparatuses. In fact, to detect slow movements made by the user, it is preferable to select a cutoff frequency that is sufficiently low, such that the low-frequency components of the corresponding acceleration signals will have an amplitude sufficient to be detected. Instead, it is preferable to select a higher cutoff frequency if the movements of the user are faster so as to cut off the low-frequency components and in any case to accurately detect the signal components linked to the movements made by the user.
DISCLOSURE OF INVENTION The aim of the present invention is consequently to provide a digital high-pass filter that will enable the problems and the disadvantages referred to above to be overcome, and in particular will have high time constants, will be readily configurable, and at the same time will lead to a reduced use of resources.
According to the present invention, a digital high-pass filter is provided, as defined in Claim 1.
According to the present invention a displacement detection device is moreover provided, as defined in Claim 10.
BRIEF DESCRIPTION OF THE DRAWINGS
For a better understanding of the present invention, preferred embodiments thereof are now described, purely by way of non- limiting examples and with reference to the attached drawings, wherein :
- Figure 1 shows a block diagram of a portable apparatus incorporating a displacement detection device according to one embodiment of the present invention;
- Figure 2 shows a circuit block diagram of a processing circuit of the displacement detection device of Figure 1;
- Figure 3 shows a possible circuit embodiment of a digital high-pass filter in the processing circuit of Figure 2; - Figure 4 shows the time response of the digital high-pass filter in the presence of a square-wave input signal;
- Figure 5 shows a possible circuit embodiment of an integrator block of the digital high-pass filter of Figure 3;
- Figure 6 shows an alternative circuit embodiment of the integrator block of the digital high-pass filter of Figure 3;
- Figures 7a-7b and 8a-8b show diagrams of the magnitude and phase response of the digital high-pass filter, for two different values of a variable dividing factor; and - Figure 9 shows a block diagram of a portable apparatus incorporating a displacement detection device, according to a further embodiment of the present invention.
BEST MODE FOR CARRYING OUT THE INVENTION
Figure 1 is a schematic illustration of a portable apparatus 1 equipped with a displacement detection device 2 and a microprocessor 3, connected to the displacement detection device 2 and configured to control the general operation of the portable apparatus 1. The displacement detection device 2 comprises an accelerometer 4 of a linear type, and a processing circuit 5, connected to the accelerometer 4. In particular, the processing circuit 5 is made in an ASIC and is integrated together with the accelerometer 4 within a single chip 6 of semiconductor material, preferably silicon.
The accelerometer 4 is of a known type, in particular is constituted by a MEMS (Micro-Electro-Mechanical System) device made using semiconductor technology, has three detection axes x, y and z, and generates three acceleration signals Ax, Ay, Az
(see also Figure 2), each correlated to the acceleration detected along a respective detection axis. For example, the accelerometer 4 can be made as described in "3-axis Digital
Output Accelerometer for Future Automotive Applications", B.
Vigna et al . , AMAA 2004.
In brief, the processing circuit 5 receives at input the acceleration signals Ax, Ay, Az, carries out appropriate processing operations, and supplies at output logic signals corresponding to the displacements of the portable apparatus from a reference position. The microprocessor 3 receives said logic signals and reconstructs therefrom the displacement direction of the portable apparatus 1 so as to activate corresponding functions or programs in the portable apparatus 1 .
In detail, Figure 2, the processing circuit 5 comprises, for each of the acceleration signals Ax, Ay, Az, a threshold comparator 10, a digital high-pass filter 12 (which will be described in detail hereinafter) receiving at input a respective acceleration signal Ax, Ay, Az from the accelerometer
4, an enabling stage 13, and an adjustment stage 14. The processing circuit 5 further comprises a first register 15, which stores an acceleration threshold Ath, which can be set from outside by a user.
The threshold comparator 10 has a first input connected to the first register 15, a second input connected to the output of the digital high-pass filter 12, and an output connected to the enabling stage 13. The enabling stage 13, preferably made with logic gates, has a first input connected to the output of the threshold comparator 10, a second input receiving an enabling signal ENx, ENy, ENZ of a logic type, and an output connected to the microprocessor 3 of the portable apparatus 1 (see Figure 1) . In addition, the adjustment stage 14 is connected to the digital high-pass filter 12 for varying its cutoff frequency ft on the basis of a selection by the user.
The operation of the displacement detection device 2 is the following.
The acceleration signals Ax, Ay, Az generated by the accelerometer 4 are filtered in the respective digital high- pass filters 12 and supplied to the respective threshold comparators 10, which first calculate their magnitudes, and then compare them with the acceleration threshold Ath, generating at output a logic signal (designated by Xf, Yf, Zf) . The logic signal Xf, Yf, Zf has, for example, a high value, if the magnitude of the respective acceleration signal Ax, Ay, Az is greater than the acceleration threshold Ath (a situation corresponding to the detection of an acceleration greater than the threshold set along the respective detection axis x, y, z) . When the enabling signal ENx, ENy, ENZ assumes a pre-set logic value, for example high, the enabling stage 13 supplies at output a respective displacement detection signal X, Y, Z corresponding to the logic signal Xf, Yf, Zf received from the respective threshold comparator 10. Otherwise, the enabling stage 13 supplies at output a pre-set logic signal, for example low, so disabling displacement detection along the respective axis x, y, z. Said function is useful for disabling one or more of the detection axes and thus simplifying processing by the microprocessor 3 when it is known which will be the displacement direction of the portable apparatus 1. In any case, the displacement detection signals X, Y, Z are sent to the microprocessor 3, which processes them (in a per-se known manner which is not described in detail herein) to determine the displacement direction of the portable apparatus 1.
In particular, the digital high-pass filter 12 eliminates (or in any case reduces) the continuous component of the respective acceleration signal Ax, Ay, Az received at input, which is related to the acceleration of gravity, so that the displacement detection is independent of the initial position of the portable apparatus 1. Furthermore, the adjustment stage 14 enables variation of the cutoff frequency ft of the digital high-pass filter 12, so as to adapt operation of the processing circuit 5 to the type of application/function that it is desired to obtain. For example, if it is desired to detect slow movements by the user, it is preferable to select a cutoff frequency ft that is sufficiently low so that the low-frequency components of the corresponding acceleration signals will have an amplitude sufficient to be detected. It is, instead, preferable to select a higher cutoff frequency ft if the movements by the user are faster. According to an aspect of the present invention, Figure 3, the digital high-pass filter 12 has a recursive structure and has an input IN connected to the accelerometer 4 and receiving the respective acceleration signal Ax, Ay, Az, and an output OUT connected to the respective threshold comparator 10. The digital high-pass filter 12 comprises a subtractor stage 20 and a recursive branch 21. The subtractor stage 20 has a positive input terminal connected to the input IN, a negative input terminal connected to the recursive branch 21, and an output terminal connected to the output OUT of the digital high-pass filter 12. The recursive branch 21 connects the output OUT to the negative input terminal of the subtractor stage 20, and comprises an integrator stage 23 and a divider stage 24, cascaded to one another. In particular, the integrator stage 23 is connected at input to the output OUT of the digital high-pass filter 12, and the divider stage 24 has an output connected to the negative input terminal of the subtractor stage 20.
The integrator stage 23 performs an accumulation function in so far as it carries out a summation, possibly weighted (according to the specific circuit configuration) , of the samples that it receives at input. The divider stage 24 carries out a division by a dividing factor den, having a value greater than 1.
In detail, when the input IN of the digital high-pass filter 12 is constant at a given value α (for example, on account of a constant acceleration signal due to the sole acceleration of gravity), the recursive branch 21, and in particular the accumulation function of the integrator stage 23, causes the output of the integrator stage 23 to change, in particular to increase, until it assumes a value of α*den. When this condition arises, the negative terminal of the subtractor stage 20 is equal to α, matching the value of the input signal, and the output OUT of the digital high-pass filter 12 goes to zero .
When the input IN varies rapidly (for example, on account of an acceleration signal originated by a movement on the portable apparatus 1) , the output OUT of the digital high-pass filter 12 substantially follows the input IN in so far as the recursive branch 21 is not sufficiently fast to follow the variations of the input IN. In this way, the information related to the movement issued by the user to the portable apparatus 1 is brought substantially unaltered to the output OUT of the digital high-pass filter 12. Next, when the input IN reaches again a stable or slowly variable value, the recursive branch 21 brings back to zero the output OUT of the digital high-pass filter 12, with a time that is related to its time constant.
Input signals having low frequencies (for example due to slow movements made by the user of the portable apparatus 1) are instead more or less attenuated, according to whether they are more or less close to the cutoff frequency ft of the digital high-pass filter 12.
In particular, the cutoff frequency ft of the digital high- pass filter 12 results from the speed of the recursive branch 21 in annulling the output OUT of the digital high-pass filter 12, i.e., from the speed of the integrator stage 23 in following the variations of the input IN. Said speed is a function of the sampling period of the integrator stage 23, and of the dividing factor den. Given the same sampling period, the higher the dividing factor den, the longer the digital high-pass filter 12 takes to reach a steady state (output OUT zero); i.e., the greater is its time constant. The cutoff frequency ft of the digital high-pass filter 12 can hence be modified in a simple and fast way by the adjustment stage 14, by simply varying the dividing factor den of the divider stage 24. Figure 4 illustrates the waveform of the signal at the output OUT of the digital high-pass filter 12 (represented with a solid line) in the presence of a square-wave signal (represented with a dashed line) at the input IN, simulating impulsive application of positive and negative displacements to the portable apparatus 1 by the user. The ordinate gives a normalized numerical value, whilst the abscissa gives the generated number of samples, normalized with respect to the sampling frequency. As may be noted, the output OUT of the digital high-pass filter 12 follows the impulsive variations of the input IN, and goes to zero, in a time related to its time constant, when the signal at the input IN is stable.
Two possible embodiments of the integrator stage 23 are now described.
In detail, according to a first embodiment, shown in Figure 5, the integrator stage 23 comprises an adder block 26, and a delay block 28. The adder block 26 has a first positive input terminal connected to the output OUT of the digital high-pass filter 12, a second positive input terminal connected to the output of the delay block 28, and an output terminal connected to the divider stage 24. The delay block 28 has an input connected to the output terminal of the adder block 26, and an output connected to the second positive input of the adder block 26.
With simple mathematical steps, it is found that the Z- transform, designated by H(z), of the digital high-pass filter 12 transfer function is the following:
Figure imgf000012_0001
which has a zero for z =\ and a pole for z =1/(1 + 1/den) In a second embodiment of the present invention, shown in Figure 6, the integrator stage 23 has a different circuit configuration. In particular, the delay block 28 is connected at input to the output terminal of the adder block 26 and at output to the divider stage 24. The adder block 26 has, instead, a first positive input terminal connected to the output OUT of the digital high-pass filter 12, a second positive input terminal connected to the divider stage 24, and an output terminal connected to the input of the delay block 28.
In a similar way, also in this case it is possible to obtain with simple mathematical steps the Z-transform of the digital high-pass filter 12 transfer function:
Figure imgf000013_0001
which has a zero for z =\ and a pole for z =l/(l —λldeή) .
In particular, it should be noted how both of the embodiments of the integrator stage 23 share the common feature of comprising a recursive accumulation structure.
As regards the second embodiment, Figures 7a and 7b show the magnitude and phase response against frequency, respectively, of the digital high-pass filter 12 for a first value of the dividing factor den, equal to 32. Likewise, Figures 8a and 8b show the magnitude and phase response, respectively, of the digital high-pass filter 12 for a second value of the dividing factor den, equal to 256. In particular, the cutoff frequency ft of the digital high-pass filter 12 moves towards lower frequencies as the dividing factor den increases .
The advantages of the digital high-pass filter are clear from the foregoing description.
It is, however, emphasized that the structure of the digital high-pass filter is extremely simple, is readily configurable, and calls for a minimum use of resources. In particular, it is sufficient to vary the dividing factor den of the divider stage 24 in order to vary the cutoff frequency ft. In addition, if the values of the dividing factor den are chosen as powers of two, the operation of the divider stage 24 reduces to a simple shift of a digital word, thus further simplifying operation of the digital high-pass filter 12.
Furthermore, the overall displacement detection device can be integrated in a single chip, with obvious advantages in terms of area occupation.
Finally, it is clear that modifications and variations may be made to what has been described and illustrated herein, without thereby departing from the scope of the present invention, as defined in the attached claims.
In particular, in the embodiment of Figure 9, the processing circuit 5 is obtained entirely via software. In this case, the displacement detection device 2 comprises a microprocessor circuit 30 (for example, a microcontroller or a DSP) , on which a firmware is stored that provides the processing circuit 5. In particular, the digital high-pass filter 12 of the processing circuit 5 can be made via software with three simple blocks, namely, an adder block, a subtractor block, and a divider block. Also in this case, the displacement detection device 2 can advantageously be integrated within a single chip
The microprocessor circuit 30 can be equipped with appropriate logic circuits designed to deduce the displacement direction of the portable apparatus 1 and to transmit said information directly to the main microprocessor 3 of the portable apparatus 1 so as to further simplify the management software of the portable apparatus 1.
In addition, the order of cascaded connection between the integrator stage 23 and the divider stage 24 within the recursive branch 21 can be reversed. In this case, the input of the divider stage 24 is connected to the output OUT of the digital high-pass filter 12, and the integrator stage 23 has an output connected to the negative input terminal of the subtractor block 20.
In addition, it is evident to the person skilled in the art that the integrator stage 23 can be made with other circuit configurations with the characteristic recursive accumulation structure .
Furthermore, in addition to being used for simplifying the man-machine interface, the displacement detection device can be used for re-activating a portable apparatus from a stand-by condition (the so-called wake-up function) . In this case, the detection of an acceleration greater than the pre-set threshold causes re-activation of functions of the portable apparatus that had previously been de-activated in order to save energy. Finally, the displacement detection device can also be used in systems for control and compensation of vibrations, for example within electrical household appliances. In this case, in fact, it is not necessary to know the continuous acceleration to which the apparatus is subject, but rather the displacement with respect to a resting position.

Claims

1. A digital high-pass filter (12) comprising: an input (IN) ; an output (OUT) ; a subtractor stage (20) , having a first input terminal and a second input terminal and an output terminal, said first input terminal being connected to said input (IN) of said digital high-pass filter (12) and said output terminal being connected to said output (OUT) of said digital high-pass filter (12); and a recursive circuit branch (21) connected between said output (OUT) of said digital high-pass filter (12) and said second input terminal of said subtractor stage (20) , characterized in that said recursive circuit branch (21) comprises an accumulation stage (23) and a divider stage (24) cascaded to one another.
2. The digital high-pass filter according to claim 1, wherein said divider stage (24) performs a division by a variable dividing factor (den) , having a value greater than 1; a cutoff frequency of said digital high-pass filter (12) being variable according to said variable dividing factor (den) .
3. The digital high-pass filter according to claim 2, wherein said dividing factor (den) is a power of 2.
4. The digital high-pass filter according to any one of the preceding claims, wherein said accumulation stage comprises an integrator circuit (23) .
5. The digital high-pass filter according to claim 4, wherein said integrator circuit (23) has a recursive accumulation structure having an own input terminal and an own output terminal, and comprising at least one adder block (26) connected to said own input terminal, and at least one delay block (28) connected to said adder block (26) and to said own output terminal .
6. The digital high-pass filter according to claim 5, wherein said adder block (26) has a first positive input and a second positive input and an output, said first positive input of said adder block (26) being connected to said input terminal of said integrator stage (23) , and said output of said adder block (26) being connected to said output terminal of said integrator stage (23) ; said delay block (28) having an input connected to said output terminal of said integrator stage
(23) and an output connected to said second positive input of said adder block (26) .
7. The digital high-pass filter according to claim 5, wherein said adder block (26) has a first positive input and a second positive input and an output, said first positive input of said adder block (26) being connected to said input terminal of said integrator stage (23) , said second positive input of said adder block (26) being connected to said output terminal of said integrator stage (23) ; said delay block (28) having an input connected to said output of said adder block (26) and an output connected to said output terminal of said integrator stage (23) .
8. The digital high-pass filter according to any one of the preceding claims, implemented via hardware using an application specific integrated circuit - ASIC.
9. The digital high-pass filter according to any one of claims 1-7, implemented via software using a firmware stored in a microprocessor .
10. A displacement detection device (2) for a portable apparatus (1) , comprising:
- an acceleration sensor (4) generating a first acceleration signal (Ax) corresponding to a first detection axis (x) ; and - a displacement detection circuit (5) connected to said acceleration sensor (4) and generating a first displacement- detection signal (X) , said displacement detection circuit (5) comprising first high-pass filtering means (12) configured to reduce a continuous component of said first acceleration signal (Ax) ; characterized in that said first high-pass filtering means comprise a digital high-pass filter (12), made according to any one of the preceding claims.
11. The displacement detection device (2) according to claim 10, wherein said displacement detection circuit (5) comprises a first comparator stage (10) receiving said first acceleration signal (Ax) and a first acceleration threshold (Ath) , and generating said first displacement-detection signal (X); said digital high-pass filter (12) being arranged between said acceleration sensor (4) and said first comparator stage (10) .
12. The device according to claim 10 or claim 11, wherein said displacement detection circuit (5) further comprises cutoff frequency modifying means (14) connected to said digital high- pass filter (12), for adjusting the cutoff frequency of said digital high-pass filter (12); said cutoff frequency modifying means (14) varying a dividing factor (den) of a divider stage (24) of said digital high-pass filter (12) .
13. The device according to any one of claims 10-12, wherein said displacement detection circuit (5) is implemented as an
ASIC and is integrated with said acceleration sensor (4) within a single chip (6); said acceleration sensor (4) being implemented as a microelectromechanical system - MEMS.
14. The device according to any one of claims 10-12, further comprising a microprocessor circuit (30) connected to said acceleration sensor (4) and wherein said displacement detection circuit (5) is implemented in a firmware stored in said microprocessor (30) , and said microprocessor (30) and said acceleration sensor (4) are integrated in a single chip (6); said acceleration sensor (4) being implemented as a MEMS.
15. The device according to any one of claims 10-14, wherein said acceleration sensor (4) is a linear accelerometer with three detection axes (x, y, z) further generating a second acceleration signal (Ay) and a third acceleration signal (Az) , said first, second and third acceleration signals (Ax, Ay, Az) being correlated to a component of the acceleration along a respective detection axis (x, y, z) ; and wherein said displacement detection circuit (5) further comprises: a second comparator stage (10) and a third comparator stage (10) , for comparing, respectively, said second acceleration signal (Ay) and said third acceleration signal (Az) with said first acceleration threshold (Ath) and generating a second displacement-detection signal (Y') and a third displacement- detection signal (Z'); and second and third filtering means (12) arranged, respectively, between said acceleration sensor (4) and said second comparator stage (10) and third comparator stage (10) , and configured to reduce a continuous component, respectively, of said second and of said third acceleration signal (Ay, Az) ; said second and third filtering means (12) comprising a digital high-pass filter made according to any one of claims 1-9.
16. A portable apparatus (1) , characterized in that it comprises a displacement detection device (2) made according to any one of claims 10-15, said portable apparatus (1) being chosen in the group comprising laptops, PDAs, audio players, mobile phones, cameras, and videocameras .
17. The portable apparatus according to claim 16, further comprising a microprocessor (3) , said microprocessor (3) being connected to an output of said displacement detection device (2) for determining the displacement direction of said portable apparatus (1) .
PCT/EP2006/061116 2005-03-31 2006-03-28 Digital high-pass filter for a displacement detection device of a portable apparatus WO2006103246A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN2006800192908A CN101189794B (en) 2005-03-31 2006-03-28 A displacement detection device and a portable apparatus including same
US11/864,447 US7783449B2 (en) 2005-03-31 2007-09-28 Digital high-pass filter for a displacement detection device of a portable apparatus

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
EP05425184.8 2005-03-31
EP05425184A EP1708362B1 (en) 2005-03-31 2005-03-31 Displacement detection device of a portable apparatus using a digital high-pass filter

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US11/864,447 Continuation US7783449B2 (en) 2005-03-31 2007-09-28 Digital high-pass filter for a displacement detection device of a portable apparatus

Publications (1)

Publication Number Publication Date
WO2006103246A1 true WO2006103246A1 (en) 2006-10-05

Family

ID=34943120

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/EP2006/061116 WO2006103246A1 (en) 2005-03-31 2006-03-28 Digital high-pass filter for a displacement detection device of a portable apparatus

Country Status (5)

Country Link
US (1) US7783449B2 (en)
EP (1) EP1708362B1 (en)
CN (1) CN101189794B (en)
DE (1) DE602005012052D1 (en)
WO (1) WO2006103246A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2434298A1 (en) * 2009-05-19 2012-03-28 Furuno Electric Co., Ltd. Movement condition detection device

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5155117B2 (en) * 2008-11-21 2013-02-27 ラピスセミコンダクタ株式会社 Gravity axis determination device and mobile terminal device using the same
US8760392B2 (en) * 2010-04-20 2014-06-24 Invensense, Inc. Wireless motion processing sensor systems suitable for mobile and battery operation
US9921239B2 (en) * 2014-11-20 2018-03-20 Stmicroelectronics, Inc. Offset cancellation device for micro-electromechanical system
US20170177203A1 (en) * 2015-12-18 2017-06-22 Facebook, Inc. Systems and methods for identifying dominant hands for users based on usage patterns
JP2022152252A (en) * 2021-03-29 2022-10-12 セイコーエプソン株式会社 Sensor module and measuring system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5155520A (en) * 1990-01-16 1992-10-13 Olympus Optical Co., Ltd. Camera apparatus having image correcting function against instability of shooting thereof
US5590065A (en) * 1994-08-10 1996-12-31 Crystal Semiconductor Corporation Digital decimation filter for delta sigma analog-to-digital conversion with reduced hardware compelexity
US5777909A (en) * 1995-12-29 1998-07-07 Crystal Semiconductor Corporation High pass filter with coefficient switching to improve settling time
US6128442A (en) * 1998-08-11 2000-10-03 Asahi Kogaku Kogyo Kabushiki Kaisha Trembling compensation and control apparatus for camera

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CH689071A5 (en) * 1994-03-24 1998-08-31 Cerberus Ag Signal processing circuit for a motion.
ITTO20040847A1 (en) * 2004-12-01 2005-03-01 St Microelectronics Srl DISPLACEMENT DEVICE FOR A PORTABLE DEVICE

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5155520A (en) * 1990-01-16 1992-10-13 Olympus Optical Co., Ltd. Camera apparatus having image correcting function against instability of shooting thereof
US5590065A (en) * 1994-08-10 1996-12-31 Crystal Semiconductor Corporation Digital decimation filter for delta sigma analog-to-digital conversion with reduced hardware compelexity
US5777909A (en) * 1995-12-29 1998-07-07 Crystal Semiconductor Corporation High pass filter with coefficient switching to improve settling time
US6128442A (en) * 1998-08-11 2000-10-03 Asahi Kogaku Kogyo Kabushiki Kaisha Trembling compensation and control apparatus for camera

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
C. DICK; F. HARRIS: "FPGA Signal Processing Using Sigma-Delta Modulation", IEEE SIGNAL PROCESSING MAGAZINE, vol. 17, no. 1, January 2000 (2000-01-01), U.S.A., pages 20 - 35, XP002342101 *
RICHARD G. LYONS: "Understanding Digital Signal Processing", 2004, PRENTICE HALL, U.S.A., XP002342103 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2434298A1 (en) * 2009-05-19 2012-03-28 Furuno Electric Co., Ltd. Movement condition detection device
EP2434298A4 (en) * 2009-05-19 2012-11-21 Furuno Electric Co Movement condition detection device
US10012672B2 (en) 2009-05-19 2018-07-03 Furuno Electric Company Limited Moving state detecting device

Also Published As

Publication number Publication date
US7783449B2 (en) 2010-08-24
DE602005012052D1 (en) 2009-02-12
EP1708362A1 (en) 2006-10-04
EP1708362B1 (en) 2008-12-31
CN101189794B (en) 2011-06-08
CN101189794A (en) 2008-05-28
US20080079594A1 (en) 2008-04-03

Similar Documents

Publication Publication Date Title
US7783449B2 (en) Digital high-pass filter for a displacement detection device of a portable apparatus
US7672806B2 (en) Displacement detection device for a portable apparatus
CA2590248C (en) Motion detection apparatus and motion detecting method
EP3940517B1 (en) Electrical capacitance detection method for touch display panel, electrical capacitance detection circuit for touch display panel, and touch display panel
CN110768730B (en) Signal transmission method and device and display device
JP5286676B2 (en) Detection device, sensor and electronic device
JP2013042326A (en) Portable terminal and control method
KR20130028629A (en) Touch screen sensor integrated circuit, method thereof, and system having the same
KR20210068315A (en) Electronic device and its control method, apparatus, and readable storage medium
KR20140020330A (en) Vehicle context awareness by detecting engine rpm using a motion sensor
CN113168268B (en) Touch detection method, touch detection circuit, touch chip and electronic equipment
WO2020020324A1 (en) Signal transmission method and apparatus, and display apparatus
EP1523163A1 (en) Hand-held phone capable of providing various vibrations
US20050064912A1 (en) Hand-held phone capable of providing various vibrations with only one vibration motor
KR20180102429A (en) Apparatus and method for detecting pointer
CN103002145A (en) Phone answering method and device based on mobile terminal
EP2354903B1 (en) Terminal device and control method for terminal device
CN103108078A (en) Mobile terminal with call reminding control system and call reminding control method
US10704910B2 (en) Duty-cycled phase shifter for angular rate sensor
US20140055124A1 (en) Peak detector and auto gain controller using the same
JP2007278983A (en) Apparatus and method for detecting movement
JP5802184B2 (en) Noise removal device for inertial sensor and noise removal method thereof
CN101611545B (en) Digital gain control
CN102969997B (en) Filter system capable of automatically adjusting bandwidth and method for automatically adjusting bandwidth of filter
EP1867967A2 (en) Vibration sensor

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application
WWE Wipo information: entry into national phase

Ref document number: 11864447

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE

WWW Wipo information: withdrawn in national office

Country of ref document: DE

NENP Non-entry into the national phase

Ref country code: RU

WWW Wipo information: withdrawn in national office

Country of ref document: RU

WWE Wipo information: entry into national phase

Ref document number: 200680019290.8

Country of ref document: CN

WWP Wipo information: published in national office

Ref document number: 11864447

Country of ref document: US

122 Ep: pct application non-entry in european phase

Ref document number: 06725375

Country of ref document: EP

Kind code of ref document: A1

WWW Wipo information: withdrawn in national office

Ref document number: 6725375

Country of ref document: EP