JP6608106B2 - Semiconductor device, portable terminal device, and motion detection method - Google Patents

Semiconductor device, portable terminal device, and motion detection method Download PDF

Info

Publication number
JP6608106B2
JP6608106B2 JP2015059928A JP2015059928A JP6608106B2 JP 6608106 B2 JP6608106 B2 JP 6608106B2 JP 2015059928 A JP2015059928 A JP 2015059928A JP 2015059928 A JP2015059928 A JP 2015059928A JP 6608106 B2 JP6608106 B2 JP 6608106B2
Authority
JP
Japan
Prior art keywords
axis
signal
acceleration
semiconductor device
detection
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
JP2015059928A
Other languages
Japanese (ja)
Other versions
JP2016180616A (en
Inventor
隼平 佐藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lapis Semiconductor Co Ltd
Original Assignee
Lapis Semiconductor Co Ltd
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 Lapis Semiconductor Co Ltd filed Critical Lapis Semiconductor Co Ltd
Priority to JP2015059928A priority Critical patent/JP6608106B2/en
Publication of JP2016180616A publication Critical patent/JP2016180616A/en
Application granted granted Critical
Publication of JP6608106B2 publication Critical patent/JP6608106B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Description

本発明は、半導体装置、携帯端末装置および運動検出方法に関する。   The present invention relates to a semiconductor device, a portable terminal device, and a motion detection method.

加速度センサから出力される加速度信号に基づいて運動を検出する運動検出装置を備えた携帯端末装置が提案されている(例えば特許文献1および特許文献2参照)。   There has been proposed a portable terminal device including a motion detection device that detects motion based on an acceleration signal output from an acceleration sensor (see, for example, Patent Document 1 and Patent Document 2).

特許文献2に記載の運動検出装置は、三軸加速度センサから出力された加速度成分データの各々を、ローパスフィルタ処理して得られた静止成分と、加速度成分データの各々から静止成分の各々を除いた動き成分とに分離する。この運動検出装置は、静止成分が最大となる軸を重力軸と判定し、最大の値を示す動き成分に対応する軸が、重力軸以外の軸である場合に、最大の値を示す動き成分に基づいて、いずれの軸方向に運動したかを検出する。   The motion detection apparatus described in Patent Document 2 excludes each of the stationary components obtained by low-pass filtering each of the acceleration component data output from the triaxial acceleration sensor, and each of the stationary components from each of the acceleration component data. To separate the motion components. This motion detection device determines that the axis having the maximum stationary component is the gravity axis, and when the axis corresponding to the motion component indicating the maximum value is an axis other than the gravity axis, the motion component indicating the maximum value Based on this, it is detected in which axial direction it has moved.

特表2012−529253号公報Special table 2012-529253 gazette 特開2012−98254号公報JP 2012-98254 A

携帯端末装置に対する入力操作を、当該携帯端末装置を所定の方向に振る動作(シェイキング)によって行うものが知られている。この種の携帯端末装置は、所定の運動を検出した場合に、所定の動作を行うように構成されている。このような携帯端末装置においては、ユーザが意図的に行う運動とは異なる運動をも検知してしまうという問題がある。例えば、ユーザは、当該携帯端末装置に対して、任意の軸の正の向きに振動を加える場合、通常、当該携帯端末装置を自身の手に把持した状態で当該軸の正の向きに自身の腕を振る動作を行う。ユーザは、正の向きに腕を振る前に、無意識に当該軸の負の向きに腕を振るいわゆる振りかぶり動作を行う場合が多い。ユーザの振りかぶり動作が、正規のシェイキングと同様に検出された場合には、ユーザが意図しない運動が携帯端末装置に対する入力操作として入力されることになり、携帯端末装置を意図したとおりに操作することが困難となる。   A device that performs an input operation on a mobile terminal device by an operation (shaking) of shaking the mobile terminal device in a predetermined direction is known. This type of mobile terminal device is configured to perform a predetermined operation when a predetermined motion is detected. In such a portable terminal device, there is a problem that an exercise different from the exercise intentionally performed by the user is detected. For example, when a user applies vibration to the mobile terminal device in the positive direction of an arbitrary axis, the user normally holds the mobile terminal device in the positive direction of the axis while holding the mobile terminal device in his / her hand. Swing your arms. In many cases, the user performs a so-called swinging motion in which the user unconsciously swings the arm in the negative direction of the axis before swinging the arm in the positive direction. When a user's shaking motion is detected in the same way as regular shaking, an unintended exercise is input as an input operation to the mobile terminal device, and the mobile terminal device is operated as intended. It becomes difficult.

本発明は、上記した点に鑑みてなされたものであり、ユーザが意図しない運動の誤検知を防止することを目的とする。   The present invention has been made in view of the above-described points, and an object of the present invention is to prevent erroneous detection of an exercise that is not intended by the user.

本発明に係る半導体装置は、互いに異なる複数の方向の各々に沿った加速度成分の各々を示す複数の加速度信号が入力される入力部と、前記複数の方向のうちから選択される1つの方向に沿った軸を、所定の順序で指定軸として設定する設定部と、前記加速度信号の各々の所定時間内における時間推移の各々から加速度ゼロを含む所定範囲の上限閾値を超えた信号部分及び前記所定範囲の下限閾値未満の信号部分を抽出する抽出部と、前記抽出部によって抽出された前記信号部分同士の比較結果に基づいて前記信号部分の選択を行い、選択した信号部分に対応する方向の運動を検出し、検出した運動の方向が、前記設定部において設定された指定軸の方向である場合、当該指定軸について指定軸検出情報を生成して記憶し、検出した運動の方向が前記設定部において設定された指定軸の方向とは異なる方向である場合、記憶した全ての指定軸検出情報を消去して指定軸の設定を最初に戻す検出部と、前記設定部において設定された全ての指定軸について前記指定軸検出情報が記憶された場合に検出信号を出力する出力部と、を含む。 The semiconductor device according to the present invention includes an input unit to which a plurality of acceleration signals indicating acceleration components along each of a plurality of different directions are input, and one direction selected from the plurality of directions. A setting unit that sets the axis along the specified axis in a predetermined order, a signal portion that exceeds an upper limit threshold of a predetermined range including acceleration zero from each of the time transitions of each of the acceleration signals within a predetermined time, and the predetermined An extraction unit that extracts a signal portion that is less than the lower limit threshold of the range, and the signal portion is selected based on a comparison result between the signal portions extracted by the extraction unit, and movement in a direction corresponding to the selected signal portion detecting a direction of the detected movement, when the direction of the specified axis set in the setting unit, and generates and stores the specified axis detection information about the specified axis, towards the detected motion If There is a direction different from the direction of the specified axis set in the setting unit, a detection unit that initially return the setting of the specified axis to erase all the specified axis detection information stored, is set in the setting unit An output unit that outputs a detection signal when the specified axis detection information is stored for all the specified axes .

本発明に係る携帯端末装置は、上記の半導体装置と、前記加速度信号を出力する加速度センサと、前記検出信号に応じて所定の動作を行う制御部と、を含む。 A portable terminal device according to the present invention includes the semiconductor device described above, an acceleration sensor that outputs the acceleration signal, and a control unit that performs a predetermined operation in accordance with the detection signal.

本発明に係る運動検出方法は、互いに異なる複数の方向のうちから選択される1つの方向に沿った軸を、所定の順序で指定軸として設定し、前記複数の方向の各々に沿った加速度成分の各々を示す複数の加速度信号の各々の所定時間内における時間推移の各々から加速度ゼロを含む所定範囲の上限閾値を超えた信号部分及び前記所定範囲の下限閾値未満の信号部分を抽出し、抽出した前記信号部分同士の比較結果に基づいて前記信号部分の選択を行い、選択した信号部分に対応する方向の運動を検出し、検出した運動の方向が、設定した指定軸の方向である場合、当該指定軸について指定軸検出情報を生成して記憶し、検出した運動の方向が前記設定部において設定された指定軸の方向とは異なる方向である場合、記憶した全ての指定軸検出情報を消去して指定軸の設定を最初に戻し、設定した全ての指定軸について前記指定軸検出情報が記憶された場合に検出信号を出力することを含む。 The motion detection method according to the present invention sets an axis along one direction selected from a plurality of different directions as a designated axis in a predetermined order, and an acceleration component along each of the plurality of directions A signal portion exceeding the upper limit threshold of the predetermined range including zero acceleration and a signal portion less than the lower limit threshold of the predetermined range are extracted from each of the time transitions within the predetermined time of each of the plurality of acceleration signals indicating each of When the signal portion is selected based on the comparison result between the signal portions, the motion in the direction corresponding to the selected signal portion is detected, and the detected motion direction is the direction of the set designated axis, Generates and stores specified axis detection information for the specified axis, and if the detected motion direction is different from the specified axis direction set in the setting unit, all stored specified axis detections are performed. First return the settings of the specified axis to clear the broadcast, and outputting a detection signal when the specified axis detection information is stored for all the designated axis is set.

本発明によれば、ユーザが意図しない運動の誤検知を防止することが可能となる。   According to the present invention, it is possible to prevent erroneous detection of exercise not intended by the user.

本発明の実施形態に係る半導体装置の構成を示すブロック図である。It is a block diagram which shows the structure of the semiconductor device which concerns on embodiment of this invention. 各軸毎の加速度信号の一例を示す図である。It is a figure which shows an example of the acceleration signal for every axis | shaft. 本発明の実施形態に係る順序情報の内容の一例を示す図である。It is a figure which shows an example of the content of the order information which concerns on embodiment of this invention. (A)および(B)は、本発明の実施形態に係る運動検出装置の動作の一例を示す図である。(A) And (B) is a figure which shows an example of operation | movement of the motion detection apparatus which concerns on embodiment of this invention. 振りかぶり動作を伴うシェイキングが行われた場合の各軸毎の加速度信号の一例を示す図である。It is a figure which shows an example of the acceleration signal for every axis | shaft at the time of the shaking accompanying a swing-up operation | movement. 本発明の実施形態に係る半導体装置の機能構成を示す機能ブロック図である。It is a functional block diagram which shows the function structure of the semiconductor device which concerns on embodiment of this invention. 本発明の実施形態に係る抽出部における処理の内容を示す図である。It is a figure which shows the content of the process in the extraction part which concerns on embodiment of this invention. 本発明の実施形態に係る検出部における処理の内容を示す図である。It is a figure which shows the content of the process in the detection part which concerns on embodiment of this invention. 本発明の実施形態に係る運動検出処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the motion detection process which concerns on embodiment of this invention. 斜め方向のシェイキングが行われた場合の加速度信号の一例を示す図である。It is a figure which shows an example of the acceleration signal at the time of performing the shaking of a diagonal direction. 本発明の実施形態に係る検出部における処理の内容を示す図である。It is a figure which shows the content of the process in the detection part which concerns on embodiment of this invention. 本発明の実施形態に係る運動検出処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the motion detection process which concerns on embodiment of this invention. 本発明の実施形態に係る携帯端末装置の平面図である。It is a top view of the portable terminal device concerning the embodiment of the present invention. 本発明の実施形態に係る携帯端末装置の構成を示すブロック図である。It is a block diagram which shows the structure of the portable terminal device which concerns on embodiment of this invention.

以下、本発明の実施形態について図面を参照しつつ説明する。なお、各図面において同一または対応する構成要素には同一の参照符号を付与している。   Embodiments of the present invention will be described below with reference to the drawings. In the drawings, the same or corresponding components are given the same reference numerals.

[第1の実施形態]
図1は、運動検出装置として機能する、本発明の実施形態に係る半導体装置10のハードウェア構成を示すブロック図である。なお、図1には、半導体装置10とともに使用される加速度センサ20も示されている。
[First Embodiment]
FIG. 1 is a block diagram showing a hardware configuration of a semiconductor device 10 according to an embodiment of the present invention that functions as a motion detection device. FIG. 1 also shows an acceleration sensor 20 used with the semiconductor device 10.

加速度センサ20は、3次元直交座標系におけるX軸、Y軸およびZ軸の各軸の方向に生じた加速度を検出し、検出した加速度の大きさに応じた加速度信号を軸毎に出力する。すなわち、加速度センサ20は、X軸の加速度の大きさを示す加速度信号SaX、Y軸の加速度を示す加速度信号SaY、Z軸の加速度を示す加速度信号SaZを出力する。加速度センサ20は、X軸、Y軸およびZ軸の加速度を単一のデバイスで検出する3軸加速度センサであってもよい。また、加速度センサ20は、軸毎に異なるデバイスで構成されていてもよい。 The acceleration sensor 20 detects the acceleration generated in the directions of the X axis, the Y axis, and the Z axis in the three-dimensional orthogonal coordinate system, and outputs an acceleration signal corresponding to the detected magnitude of each axis. That is, the acceleration sensor 20 outputs an acceleration signal S aX indicating the magnitude of the X-axis acceleration, an acceleration signal S aY indicating the Y-axis acceleration, and an acceleration signal S aZ indicating the Z-axis acceleration. The acceleration sensor 20 may be a three-axis acceleration sensor that detects acceleration in the X-axis, Y-axis, and Z-axis with a single device. Moreover, the acceleration sensor 20 may be comprised with a different device for every axis | shaft.

半導体装置10は、CPU(Central Processing Unit)11、RAM(Random Access Memory)12、ROM(Read Only Memory)13、入出力ポート(I/Oポート)14およびこれらを相互に接続するバス15を含むマイクロコンピュータである。   The semiconductor device 10 includes a central processing unit (CPU) 11, a random access memory (RAM) 12, a read only memory (ROM) 13, an input / output port (I / O port) 14, and a bus 15 that interconnects them. It is a microcomputer.

CPU11は、半導体装置10の全体の制御を司る。ROM13は、CPU11によって実行される後述する運動検出プログラム16および指定軸の設定順序を示す順序情報17を記憶した記憶媒体である。RAM12は、CPU11における演算処理に使用するデータや命令等を一時的に格納するワークエリアを提供する記憶媒体である。加速度センサ20から出力される加速度信号SaX、Say、およびSaZは、入出力ポート14を介してCPU11に供給される。また、CPU11が運動検出プログラム16を実行することによって生成される後述する検出信号Sは、入出力ポート14を介して外部に出力される。 The CPU 11 governs overall control of the semiconductor device 10. The ROM 13 is a storage medium that stores a later-described motion detection program 16 executed by the CPU 11 and order information 17 indicating the setting order of the designated axis. The RAM 12 is a storage medium that provides a work area for temporarily storing data, instructions, and the like used for arithmetic processing in the CPU 11. Acceleration signals S aX , S ay , and S aZ output from the acceleration sensor 20 are supplied to the CPU 11 via the input / output port 14. The detection signal S d which will be described later CPU11 is generated by performing the motion detection program 16 is output to the outside via the output port 14.

図2は、加速度センサ20から出力されるX軸、Y軸およびZ軸の加速度信号SaX、SaYおよびSaZの一例を示す図である。図2において、横軸は時間であり、縦軸は加速度である。図2は、加速度センサ20にY軸方向に沿った正方向の運動を生じさせた場合の例である。このように、外部から力を加えて加速度センサ20に運動(加速度)を生じさせることを以降「シェイキング」と称する。例えば、加速度センサ20をY軸に沿った正方向のシェイキングを行うと、加速度センサ20は、図2に示すように、正側(上側)にピークを有する加速度信号SaYを出力する。また、この場合、Z軸およびX軸における加速度信号SaXおよびSaZは略ゼロレベルとなる。加速度信号のゼロレベルは、加速度センサ20に運動(加速度)が生じていないことを示し、加速度信号の正負は、当該軸に沿った加速度の向きを示す。 FIG. 2 is a diagram illustrating an example of X-axis, Y-axis, and Z-axis acceleration signals S aX , S aY, and S aZ output from the acceleration sensor 20. In FIG. 2, the horizontal axis is time, and the vertical axis is acceleration. FIG. 2 shows an example in which the acceleration sensor 20 is caused to move in the positive direction along the Y-axis direction. In this manner, applying force from the outside to cause the acceleration sensor 20 to generate motion (acceleration) is hereinafter referred to as “shaking”. For example, when the acceleration sensor 20 is shaken in the positive direction along the Y axis, the acceleration sensor 20 outputs an acceleration signal SaY having a peak on the positive side (upper side) as shown in FIG. In this case, the acceleration signals S aX and S aZ on the Z axis and the X axis are substantially at the zero level. The zero level of the acceleration signal indicates that no motion (acceleration) occurs in the acceleration sensor 20, and the positive or negative of the acceleration signal indicates the direction of acceleration along the axis.

半導体装置10は、各軸の加速度信号SaX、Say、およびSaZが、これらについて設定された上限閾値(正側の閾値)を超えた場合または下限閾値(負側の閾値)未満となった場合に、当該軸の方向に沿った運動(シェイキング)が行われたものと判定する。例えば、図2に示す例では、Y軸の加速度信号SaYは、正側について設定された閾値TY1を超えているので、半導体装置10は、Y軸方向に沿った運動(シェイキング)が行われたものと判定する。なお、加速度信号が負側について設定された閾値未満となるとは、負の方向の加速度の絶対値が、負側について設定された閾値の絶対値よりも大きくなること意味する。 In the semiconductor device 10, the acceleration signals S aX , S ay , and S aZ of each axis exceed the upper limit threshold (positive side threshold) set for them or become less than the lower limit threshold (negative side threshold). If it is determined that the movement (shaking) along the direction of the axis has been performed. For example, in the example shown in FIG. 2, since the Y-axis acceleration signal SaY exceeds the threshold value TY1 set for the positive side, the semiconductor device 10 moves (shaking) along the Y-axis direction. Judge that it was broken. Note that the acceleration signal being less than the threshold value set for the negative side means that the absolute value of the acceleration in the negative direction is larger than the absolute value of the threshold value set for the negative side.

半導体装置10は、後述する運動検出プログラム16を実行することにより、以下のように動作する。すなわち、半導体装置10は、ROM13に記憶された順序情報17に基づいて3軸のうちから選択される複数の軸の各々を、所定の順序で指定軸として設定する。半導体装置10は、加速度センサ20から供給される各軸の加速度信号SaX、Say、およびSaZに基づいて検出した運動の方向が、設定された指定軸の各々に沿った方向であると判定した場合に検出信号Sを出力する。 The semiconductor device 10 operates as follows by executing a motion detection program 16 described later. That is, the semiconductor device 10 sets each of a plurality of axes selected from the three axes based on the order information 17 stored in the ROM 13 as a designated axis in a predetermined order. In the semiconductor device 10, the direction of motion detected based on the acceleration signals S aX , S ay , and S aZ of each axis supplied from the acceleration sensor 20 is a direction along each of the set designated axes. When the determination is made, the detection signal Sd is output.

ここで、図3は、順序情報17の内容の一例を示す図である。図3に示す例では、1番目にX軸が指定軸として設定され、2番目にY軸が指定軸として設定され、3番目にZ軸が指定軸として設定され、4番目にX軸が指定軸として設定される場合が示されている。   Here, FIG. 3 is a diagram illustrating an example of the contents of the order information 17. In the example shown in FIG. 3, the X axis is designated as the designated axis first, the Y axis is designated as the designated axis, the Z axis is designated as the designated axis, the X axis is designated fourth. The case where it is set as an axis is shown.

図4(A)は、運動検知プログラム16に基づいて動作する半導体装置10の動作の一例を示す図であり、指定軸の設定順序が、図3に示すように、X軸、Y軸、Z軸、X軸の順とされている場合の動作例である。   FIG. 4A is a diagram illustrating an example of the operation of the semiconductor device 10 that operates based on the motion detection program 16, and the setting order of the designated axes is as shown in FIG. It is an operation example in the case of the order of the axis and the X axis.

半導体装置10は、順序情報17に基づいて1番目にX軸を指定軸に設定する。半導体装置10は、X軸が指定軸に設定されている場合にX軸方向の運動(シェイキング)を検出すると、順序情報17に基づいて2番目の指定軸としてY軸を設定する。半導体装置10は、Y軸が指定軸に設定されている場合にY軸方向の運動(シェイキング)を検出すると、順序情報17に基づいて3番目の指定軸としてZ軸を設定する。半導体装置10は、Z軸が指定軸に設定されている場合にZ軸方向の運動(シェイキング)を検出すると、順序情報17に基づいて4番目の指定軸としてX軸を指定軸に設定する。半導体装置10は、4番目の指定軸としてX軸が設定されている場合にX軸方向の運動(シェイキング)を検出すると、組み合わせシェイキングが成立したものと判定して検出信号Sを出力する。すなわち、指定軸の方向に沿ったシェイキングが、全ての指定軸について行われた場合に検出信号Sが出力される。なお、組み合わせシェイキングとは、全ての指定軸について指定軸方向の運動(シェイキング)を行うことをいう。 The semiconductor device 10 first sets the X axis as the designated axis based on the order information 17. When the X-axis is set as the designated axis and the movement (shaking) in the X-axis direction is detected, the semiconductor device 10 sets the Y-axis as the second designated axis based on the order information 17. When the semiconductor device 10 detects the movement (shaking) in the Y-axis direction when the Y-axis is set as the designated axis, the semiconductor device 10 sets the Z-axis as the third designated axis based on the order information 17. When the movement in the Z-axis direction (shaking) is detected when the Z-axis is set as the designated axis, the semiconductor device 10 sets the X-axis as the designated axis based on the order information 17. The semiconductor device 10 detects the movement of the X-axis direction (shaking) when X axis is set as the fourth specified axis, combined shaking outputs a detection signal S d to determine what was established. That is, the detection signal Sd is output when the shaking along the direction of the designated axis is performed for all the designated axes. In addition, the combination shaking refers to performing movement (shaking) in the specified axis direction for all the specified axes.

図4(B)は、運動検知プログラム16に基づいて動作する半導体装置10の動作の他の例を示す図であり、指定軸の設定順序が、図3に示すように、X軸、Y軸、Z軸、X軸の順とされている場合の動作例である。   FIG. 4B is a diagram illustrating another example of the operation of the semiconductor device 10 that operates based on the motion detection program 16, and the setting order of the designated axes is the X axis and the Y axis as shown in FIG. This is an example of operation when the order of the Z axis and the X axis is set.

半導体装置10は、図4(B)に示すように、1番目にX軸を指定軸に設定する。半導体装置10は、X軸が指定軸に設定されている場合にX軸方向の運動(シェイキング)を検出すると、2番目の指定軸としてY軸を設定する。半導体装置10は、Y軸が指定軸に設定されている場合に指定軸とは異なるZ軸の方向の運動(シェイキング)を検出すると、組み合わせシェイキングが失敗したものと判定し、先に検出された指定軸(X軸)方向の運動は検出されなかったものとし、指定軸の設定を1番目に戻す。   As shown in FIG. 4B, the semiconductor device 10 first sets the X axis as the designated axis. The semiconductor device 10 sets the Y axis as the second designated axis when detecting movement (shaking) in the X axis direction when the X axis is set as the designated axis. When the semiconductor device 10 detects a movement (shaking) in the direction of the Z axis different from the designated axis when the Y axis is set as the designated axis, the semiconductor device 10 determines that the combination shaking has failed, and is detected first. It is assumed that no motion in the designated axis (X-axis) direction has been detected, and the designated axis setting is returned to the first.

このように、半導体装置10は、三次元直交座標系の3つの軸の各軸毎の加速度を示す加速度信号の入力を受け付け、3つの軸のうちから選択される複数の軸を、所定の順序で指定軸として設定する。半導体装置10は、入力された各軸の加速度信号に基づいて検出した運動の方向が、設定された指定軸の各々に沿った方向であると判定した場合に検出信号Sを出力する。このような態様によれば、互いに異なる複数の軸が指定軸として設定されるので、歩行時や階段昇降時に生じる単調な運動によって検出信号Sが出力されることを防止できる。すなわち、ユーザによる意図的なシェイキング以外の運動によって検出信号Sが出力されることを防止できる。 As described above, the semiconductor device 10 receives an input of an acceleration signal indicating the acceleration for each of the three axes of the three-dimensional orthogonal coordinate system, and selects a plurality of axes selected from the three axes in a predetermined order. Set as specified axis with. The semiconductor device 10, the direction of the detected based on the acceleration signal of each axis which is input motion, and outputs a detection signal S d when it is determined that the direction along the respective selected axis that is set. According to such an aspect, since a plurality of different axes are set as the designated axes, it is possible to prevent the detection signal Sd from being output due to a monotonous movement that occurs during walking or climbing up and down stairs. That is, it is possible to prevent the detection signal S d by the exercises other than the intentional shaking by the user is output.

ところで、ユーザは、加速度センサ20を内蔵した携帯端末装置等の電子機器に対して、例えば、任意の軸の正の向きに振動を加える場合、通常、当該電子機器を自身の手に把持した状態で当該軸の正の向きに自身の腕を振る動作を行う。このとき、ユーザは、正の向きに腕を振る前に、無意識に当該軸の負の向きに腕を振るいわゆる振りかぶり動作を行う場合が多い。   By the way, when a user applies vibrations to an electronic device such as a mobile terminal device incorporating the acceleration sensor 20 in a positive direction of an arbitrary axis, for example, the user normally holds the electronic device in his / her hand. Then, the user swings his / her arm in the positive direction of the axis. At this time, the user often performs a so-called swinging motion in which the user unconsciously swings the arm in the negative direction of the axis before swinging the arm in the positive direction.

図5は、振りかぶり動作を伴うシェイキングが行われた場合の加速度信号SaX、SaYおよびSaZの一例を示す図である。例えば、Y軸の方向に沿って振りかぶり動作を伴うシェイキングが行われた場合、図5に示すように、正側および負側の双方にピークを有する加速度信号SaYが加速度センサ20から出力され得る。なお、図5に示す例では、負側のピークが振りかぶり動作に対応し、正側のピークが正規のシェイキングに対応している。図5に示すように、各ピークの絶対値がそれぞれ閾値の絶対値を超えた場合において、それぞれのピークを、別々の運動として検出した場合には、組み合わせシェイキングを成立させることが困難となる。本実施形態に係る半導体装置10は、振りかぶり動作等の、正規のシェイキングに付随する、ユーザが意図しない運動を検出対象から除外するように構成されている。 FIG. 5 is a diagram illustrating an example of acceleration signals S aX , S aY, and S aZ when shaking is performed with a swing-up operation. For example, when shaking with a swinging motion is performed along the Y-axis direction, an acceleration signal SaY having peaks on both the positive side and the negative side can be output from the acceleration sensor 20 as shown in FIG. . In the example shown in FIG. 5, the negative peak corresponds to the shaking motion, and the positive peak corresponds to regular shaking. As shown in FIG. 5, when the absolute value of each peak exceeds the absolute value of the threshold value, it is difficult to establish combination shaking when each peak is detected as a separate motion. The semiconductor device 10 according to the present embodiment is configured to exclude movements that are not intended by the user and that are associated with regular shaking, such as shaking motions, from detection targets.

図6は、半導体装置10の機能構成を示す機能ブロック図である。半導体装置10は、CUP11が、ROM13に記憶された後述する運動検出プログラム16を実行することによって入力部31、抽出部32、検出部33、設定部34および出力部35として機能する。   FIG. 6 is a functional block diagram showing a functional configuration of the semiconductor device 10. In the semiconductor device 10, the CUP 11 functions as an input unit 31, an extraction unit 32, a detection unit 33, a setting unit 34, and an output unit 35 by executing a later-described motion detection program 16 stored in the ROM 13.

入力部31は、加速度センサ20から出力される各軸の加速度信号SaX、SaYおよびSaZの入力を受け付ける機能を有する。 The input unit 31 has a function of receiving input of acceleration signals S aX , S aY and S aZ of each axis output from the acceleration sensor 20.

抽出部32は、入力部31に入力された各軸の加速度信号SaX、SaYおよびSaZの所定期間内における時間推移の各々から、加速度ゼロを含む所定範囲の上限閾値(正側の閾値)を超えた信号部分及び上記所定範囲の下限閾値(負側の閾値)未満の信号部分を抽出する機能を有する。すなわち、加速度信号のうち、その絶対値が、上限閾値(正側の閾値)の絶対値および下限閾値(負側の閾値)の絶対値を超えた信号部分が抽出される。 The extraction unit 32 detects the upper limit threshold value (positive side threshold value) of a predetermined range including zero acceleration from each of the time transitions within a predetermined period of the acceleration signals S aX , S aY and S aZ of each axis input to the input unit 31. ) And a signal portion that is less than the lower limit threshold value (negative threshold value) of the predetermined range. That is, a signal portion whose acceleration value exceeds the absolute value of the upper limit threshold value (positive threshold value) and the absolute value of the lower limit threshold value (negative threshold value) is extracted from the acceleration signal.

図7は、抽出部32における処理の内容の一例を示す図である。抽出部32は、いずれかの軸における加速度信号の絶対値が、正側または負側について設定された閾値の絶対値を超えた場合、各軸の加速度信号SaX、SaYおよびSaZの値を所定期間に亘りサンプリングし、当該サンプリングデータをRAM12に記憶する。例えば、図7に示す場合において、抽出部32は、Y軸における加速度信号SaYの絶対値が負側について設定された閾値TY2の絶対値を超えた時刻tから所定時間(例えば0.5秒)が経過するまでの間、各軸の加速度信号SaX、SaYおよびSaZの値をサンプリングし、当該サンプリングデータをRAM12に記憶する。 FIG. 7 is a diagram illustrating an example of processing contents in the extraction unit 32. When the absolute value of the acceleration signal in any axis exceeds the absolute value of the threshold set for the positive side or the negative side, the extraction unit 32 determines the values of the acceleration signals S aX , S aY, and S aZ for each axis. Are sampled over a predetermined period, and the sampling data is stored in the RAM 12. For example, in the case shown in FIG. 7, the extraction unit 32, from the time t 1 when the absolute value of the acceleration signal S aY exceeds the absolute value of the threshold T Y2 that has been set for the negative side in the Y axis a predetermined time (e.g., 0. 5 seconds), the values of the acceleration signals S aX , S aY and S aZ for each axis are sampled, and the sampling data is stored in the RAM 12.

抽出部32は、RAM12に記憶されたサンプリングデータによって構成される、各軸の加速度信号の所定時間内における時間推移を示す加速度信号波形の各々から、正側の閾値を超えた波形部分および負側の閾値未満となった波形部分を抽出する。例えば、図7に示す場合において、抽出部32は、Y軸における加速度信号Sayについての加速度信号波形から、時刻tから時刻tまでの波形部分PY1および時刻tから時刻tまでの波形部分PY2を抽出する。 The extraction unit 32 is configured by sampling data stored in the RAM 12, and from each of the acceleration signal waveforms indicating the time transition of the acceleration signal of each axis within a predetermined time, the waveform portion exceeding the positive threshold and the negative side The waveform portion that is less than the threshold is extracted. For example, in the case illustrated in FIG. 7, the extraction unit 32 determines the waveform portion P Y1 from the time t 1 to the time t 2 and the time t 3 to the time t 4 from the acceleration signal waveform for the acceleration signal S ay on the Y axis. Waveform portion PY2 is extracted.

検出部33は、抽出部32によって抽出された波形部分の各々を軸毎に比較した結果に基づいて波形部分の選択を軸毎に行い、軸毎に選択した波形部分に基づいて各軸の方向に沿った運動を検出する。すなわち、抽出部32によって抽出された波形部分のうち、選択されない波形部分は、運動の検出において考慮されない。   The detection unit 33 selects a waveform part for each axis based on the result of comparing each waveform part extracted by the extraction unit 32 for each axis, and the direction of each axis based on the waveform part selected for each axis. To detect movement along. That is, among the waveform portions extracted by the extraction unit 32, waveform portions that are not selected are not considered in the motion detection.

図8は、検出部33における処理の内容の一例を示す図である。検出部33は、抽出部32によって抽出された波形部分PY1およびPY2の比較を以下のようにして行う。すなわち、検出部33は、波形部分PY1およびPY2の各々に関する数値を導出し、導出した数値の比較を行う。より具体的には、検出部33は、波形部分PY1に関する数値として、波形部分PY1のおおよその面積に相当する、下記の(1)式によって示される数値QY1を導出するとともに、波形部分PY2に関する数値として、波形部分PY2のおおよその面積に相当する、下記の(2)式によって示される数値QY2を導出する。 FIG. 8 is a diagram illustrating an example of processing contents in the detection unit 33. The detection unit 33 compares the waveform portions P Y1 and P Y2 extracted by the extraction unit 32 as follows. That is, the detection unit 33 derives a numerical value regarding each of the waveform portions P Y1 and P Y2 and compares the derived numerical values. More specifically, the detector 33, as a number relating to the waveform portion P Y1, corresponds to an approximate area of a waveform portion P Y1, together to derive a numerical value Q Y1 as indicated by the following equation (1), waveform portion as figures for P Y2, corresponding to the approximate area of the waveform portion P Y2, derives the numerical Q Y2 indicated by (2) below.

Y1=T1×A1/2 ・・・(1)
Y2=T2×A2/2 ・・・(2)
Q Y1 = T1 × A1 / 2 (1)
Q Y2 = T2 × A2 / 2 (2)

(1)において、T1は、加速度信号波形が負側について設定された閾値TY2未満となった期間(時刻tから時刻tまでの期間)であり、A1は、時刻tから時刻tの間に存在する、加速度信号波形の負側のピーク値B1と、負側の閾値TY2と、の差の絶対値である。すなわち、数値QY1は、図8においてハッチングで示される下側の三角形の面積に相当し、波形部分PY1のおおよその面積に相当する。 In (1), T1 is a period in which the acceleration signal waveform becomes the threshold T less than Y2 set for negative (the period from time t 1 to time t 2), A1 is the time from the time t 1 t 2 is the absolute value of the difference between the negative peak value B1 of the acceleration signal waveform and the negative threshold value TY2 . That is, the numerical value QY1 corresponds to the area of the lower triangle indicated by hatching in FIG. 8, and corresponds to the approximate area of the waveform portion PY1 .

同様に、(2)式において、T2は、加速度信号波形が正側について設定された閾値TY1を超えた期間(時刻tから時刻tまでの期間)であり、A2は、時刻tから時刻tの間に存在する、加速度信号波形の側のピーク値B2と、正側の閾値TY1との差の絶対値である。すなわち、数値QY2は、図8においてハッチングで示される上側の三角形の面積に相当し、波形部分PY2のおおよその面積に相当する。 Likewise, in (2), T2 is a period in which the acceleration signal waveform exceeds the threshold value T Y1 set for positive (the period from time t 3 to time t 4), A2 is the time t 3 exists between the time t 4 from the peak value B2 of the side of the acceleration signal waveform, the absolute value of the difference between the positive side threshold value T Y1. That is, the numerical value QY2 corresponds to the area of the upper triangle indicated by hatching in FIG. 8, and corresponds to the approximate area of the waveform portion PY2 .

検出部33は、波形部分の各々について導出した数値を軸毎に比較し、比較した結果に基づいて波形部分の選択を軸毎に行う。すなわち、図8に示す場合において、検出部33は、Y軸について抽出された波形部分PY1およびPY2に関する数値QY1とQY2のうち、より大きい数値QY2を有する波形部分PY2を選択する。 The detection unit 33 compares the numerical values derived for each waveform portion for each axis, and selects the waveform portion for each axis based on the comparison result. That is, in the case shown in FIG. 8, the detection unit 33 selects the waveform portion P Y2 having a larger numerical value Q Y2 among the numerical values Q Y1 and Q Y2 regarding the waveform portions P Y1 and P Y2 extracted with respect to the Y axis. To do.

ユーザによる正規のシェイキングに対応する波形部分の面積は、ユーザが意図しない振りかぶり動作に対応する波形部分の面積よりも大きいことが想定される。従って、抽出された波形部分の選択において、面積の大きいもの選択することで、正規のシェイキングに対応する波形部分を選択できる可能性が高くなる。換言すれば、波形部分の選択において、振りかぶり動作に対応する波形部分を除外できる可能性が高くなる。なお、図8に示す例では、Y軸についてのみ波形部分が抽出された場合が例示されているが、X軸またはZ軸についても波形部分が抽出された場合には、検出部33は、これらの軸についても同様に波形部分の選択を行う。   It is assumed that the area of the waveform portion corresponding to the regular shaking by the user is larger than the area of the waveform portion corresponding to the shaking motion that the user does not intend. Therefore, by selecting an extracted waveform portion having a large area, it is highly possible to select a waveform portion corresponding to regular shaking. In other words, in the selection of the waveform portion, there is a high possibility that the waveform portion corresponding to the swinging motion can be excluded. In the example illustrated in FIG. 8, the case where the waveform portion is extracted only for the Y axis is illustrated, but when the waveform portion is also extracted for the X axis or the Z axis, the detection unit 33 performs these operations. Similarly, the waveform portion is selected for the other axis.

検出部33は、選択した波形部分に基づいて当該軸の方向に沿った運動を検出する。すなわち、図8に示す場合において、検出部33は、選択した波形部分PY2に基づいて、Y軸上における正方向の運動を検出する。換言すれば、選択されない波形部分PY1は、Y軸上の運動の検出に際して考慮されない。このように、本実施形態に係る半導体装置10によれば、各軸における加速度信号の絶対値が所定時間内に複数回に亘って閾値の絶対値を超えた場合でも、当該所定期間内における運動の検出は、各軸につき1回とされる。 The detection unit 33 detects a movement along the direction of the axis based on the selected waveform portion. That is, in the case shown in FIG. 8, the detection unit 33 detects a positive motion on the Y axis based on the selected waveform portion PY2 . In other words, the waveform portion PY1 that is not selected is not taken into account when detecting the motion on the Y axis. As described above, according to the semiconductor device 10 according to the present embodiment, even when the absolute value of the acceleration signal in each axis exceeds the absolute value of the threshold value a plurality of times within a predetermined time, the movement within the predetermined period is performed. Is detected once for each axis.

設定部34は、X軸、Y軸およびZ軸のうちから選択される複数の軸の各々を、所定の順序で指定軸として設定する機能を有する。   The setting unit 34 has a function of setting each of a plurality of axes selected from the X axis, the Y axis, and the Z axis as a designated axis in a predetermined order.

出力部35は、検出部33によって検出された運動の方向が設定部34によって設定された各指定軸の方向と一致する場合に、検出信号Sを出力する機能を有する。 The output unit 35, when the direction of the detected by the detector 33 movement coincides with the direction of the specified axis set by the setting unit 34 has a function of outputting a detection signal S d.

図9は、半導体装置10のCPU11がROM13に記憶された運動検出プログラム16を実行することにより実施される運動検出処理の流れを示すフローチャートである。   FIG. 9 is a flowchart showing the flow of the motion detection process performed by the CPU 11 of the semiconductor device 10 executing the motion detection program 16 stored in the ROM 13.

ステップS1において、CPU11は、ROM13に記憶された順序情報17を読み込む。順序情報17は、X軸、Y軸およびZ軸の3軸のうちから選択される複数の指定軸の設定順序を示す情報である。   In step S <b> 1, the CPU 11 reads the order information 17 stored in the ROM 13. The order information 17 is information indicating a setting order of a plurality of designated axes selected from the three axes of the X axis, the Y axis, and the Z axis.

ステップS2において、CPU11は、設定部34として機能し、順序情報17に基づいて、X軸、Y軸およびZ軸のうち、1番目の指定軸を設定する。   In step S <b> 2, the CPU 11 functions as the setting unit 34 and sets the first designated axis among the X axis, the Y axis, and the Z axis based on the order information 17.

ステップS3において、CPU11は、入力部31として機能し、X軸、Y軸およびZ軸の各々の加速度信号SaX、Say、およびSaZを加速度センサ20から取得する。 In step S <b> 3 , the CPU 11 functions as the input unit 31 and acquires the acceleration signals S aX , S ay , and S aZ of the X axis, the Y axis, and the Z axis from the acceleration sensor 20.

ステップS4において、CPU11は、ステップS3の処理を開始してからの時間が、所定のタイムアウト時間に到達したか否かを判定する。CPU11は、タイムアウト時間にはまだ到達していないと判定した場合には、処理をステップS5に移行し、タイムアウト時間を超えたと判定した場合には、処理をステップS2に戻す。   In step S4, the CPU 11 determines whether or not the time from the start of the process in step S3 has reached a predetermined timeout time. If the CPU 11 determines that the timeout period has not yet been reached, the process proceeds to step S5. If the CPU 11 determines that the timeout period has been exceeded, the process returns to step S2.

ステップS5において、CPU11は、いずれかの軸の加速度信号が、正側について設定された閾値を超えたか否かを判定するとともに、負側について設定された閾値未満となったか否かを判定する。CPU11は、いずれかの軸の加速度信号が、正側について設定された閾値を超えたと判定した場合、または負側について設定された閾値未満となったと判定した場合には、処理をステップS6に移行し、それ以外の場合には、処理をステップS3に戻す。   In step S <b> 5, the CPU 11 determines whether or not the acceleration signal of any axis exceeds a threshold value set for the positive side and determines whether or not the acceleration signal of any axis is less than the threshold value set for the negative side. If the CPU 11 determines that the acceleration signal of any axis has exceeded the threshold set for the positive side, or has determined that the acceleration signal has fallen below the threshold set for the negative side, the process proceeds to step S6. In other cases, the process returns to step S3.

ステップS6において、CPU11は、抽出部32として機能し、各軸の加速度信号SaX、SaYおよびSaZの値を所定時間に亘りサンプリングし、当該サンプリングデータをRAM12に記憶する。その後、CPU11は、RAM12に記憶されたサンプリングデータによって構成される、各軸の加速度信号の所定時間内における時間推移を示す加速度信号波形を取得する。 In step S <b> 6, the CPU 11 functions as the extraction unit 32, samples the values of the acceleration signals S aX , S aY, and S aZ of each axis over a predetermined time, and stores the sampling data in the RAM 12. Thereafter, the CPU 11 obtains an acceleration signal waveform indicating the time transition within a predetermined time of the acceleration signal of each axis, which is constituted by the sampling data stored in the RAM 12.

ステップS7において、CPU11は、抽出部32として機能し、図7に例示するように、ステップS6において取得した各軸の加速度信号波形から、正側の閾値を超えた波形部分および負側の閾値未満となった波形部分を抽出する。   In step S7, the CPU 11 functions as the extraction unit 32, and as illustrated in FIG. 7, from the acceleration signal waveform of each axis acquired in step S6, the waveform portion that exceeds the positive threshold value and less than the negative threshold value. The waveform portion that becomes is extracted.

ステップS8において、CPU11は、検出部33として機能し、ステップS7において抽出した波形部分を軸毎に比較し、比較した結果に基づいて、波形部分を軸毎に選択する。具体的には、CPU11は、図8に例示するように、ステップS7において抽出した波形部分の各々の面積に応じた数値Qを、(1)式または(2)式に準じて導出する。CPU11は、導出した数値Qのうち、より大きい数値に対応する波形部分を選択する処理を軸毎に行う。   In step S8, the CPU 11 functions as the detection unit 33, compares the waveform portion extracted in step S7 for each axis, and selects the waveform portion for each axis based on the comparison result. Specifically, as illustrated in FIG. 8, the CPU 11 derives a numerical value Q corresponding to each area of the waveform portion extracted in step S <b> 7 according to the equation (1) or (2). CPU11 performs the process which selects the waveform part corresponding to a larger numerical value among the derived | led-out numerical values Q for every axis | shaft.

ステップS9において、CPU11は、検出部33として機能し、ステップS8において選択した波形部分に基づいて軸毎に運動を検出する。すなわち、CPU11は、ステップS8において選択した波形部分に対応する軸の方向に沿った運動を検出する。   In step S9, the CPU 11 functions as the detection unit 33, and detects movement for each axis based on the waveform portion selected in step S8. That is, the CPU 11 detects a movement along the direction of the axis corresponding to the waveform portion selected in step S8.

ステップS8およびS9の処理によれば、いずれかの軸の所定時間内における加速度信号波形において、正側の閾値を超えた波形部分および負側の閾値未満となった波形部分が存在した場合でも、各軸において、1つの波形部分が選択され、選択された波形部分に基づいて運動の検出が行われる。つまり、抽出された波形部分が複数存在した場合でも、複数の波形部分の各々に基づいて複数回に亘り運動が検出されることが防止される。   According to the processing of steps S8 and S9, even if there is a waveform portion that exceeds the positive threshold and a waveform portion that is less than the negative threshold in the acceleration signal waveform within a predetermined time of any axis, In each axis, one waveform portion is selected, and motion is detected based on the selected waveform portion. That is, even when there are a plurality of extracted waveform portions, the motion is prevented from being detected a plurality of times based on each of the plurality of waveform portions.

ステップS10において、CPU11は、ステップS9において検出された運動の方向が、現在設定されている指定軸の方向と一致するか否かを判定する。CPU11は、ステップS9において検出された運動の方向が、現在設定されている指定軸の方向と一致すると判定した場合には処理をステップS11に移行し、一致しないと判定した場合には、処理をステップS12に移行する。   In step S10, the CPU 11 determines whether or not the direction of motion detected in step S9 matches the direction of the currently set designated axis. If the CPU 11 determines that the direction of motion detected in step S9 matches the currently set direction of the designated axis, the process proceeds to step S11. If the CPU 11 determines that the direction does not match, the CPU 11 performs the process. The process proceeds to step S12.

ステップS11において、CPU11は、現在設定されている指定軸の方向の運動を検出したことを示す指定軸検出情報をRAM12に記憶する。   In step S <b> 11, the CPU 11 stores designated axis detection information indicating that the movement in the direction of the designated axis currently set is detected in the RAM 12.

ステップS12において、CPU11は、RAM12に記憶されている全ての指定軸検出情報を消去して処理をステップS2に戻す。すなわち、現在設定されている指定軸の方向とは異なる方向の運動を検出した場合には、これまでに検出された指定軸方向の運動は全て検出されなかったものとされ、初期状態に戻される。   In step S12, the CPU 11 deletes all the designated axis detection information stored in the RAM 12, and returns the process to step S2. That is, when a motion in a direction different from the currently set designated axis direction is detected, all the motions in the designated axis direction detected so far are not detected, and the initial state is restored. .

ステップS13において、CPU11は、全ての指定軸について、指定軸方向の運動を検出したか否かを判定する。CPU11は、全ての指定軸について指定軸方向の運動を検出したと判定した場合には処理をステップS15に移行し、全ての指定軸について指定軸方向の運動を検出したと判定しない場合には処理をステップS14に移行する。   In step S13, the CPU 11 determines whether or not movement in the designated axis direction has been detected for all the designated axes. If the CPU 11 determines that the movement in the designated axis direction has been detected for all the designated axes, the process proceeds to step S15. If the CPU 11 does not determine that the movement in the designated axis direction has been detected for all the designated axes, the process is performed. To step S14.

ステップS14において、CPU11は、次の指定軸を設定して処理をステップS3に戻す。   In step S14, the CPU 11 sets the next designated axis and returns the process to step S3.

ステップS15において、CPU11は、組み合わせシェイキングが成立したものとして、検出信号Sを生成し、これを入出力ポート14から出力して本ルーチンを終了させる。 In step S15, CPU 11 include, but are combined shaking is satisfied, generates the detection signal S d, it terminates the routine outputs it from the input-output port 14.

以上のように、本実施形態に係る半導体装置10によれば、互いに異なる複数の軸が指定軸として設定されるので、歩行時や階段昇降時に生じる単調な運動によって検出信号Sが出力されることを防止できる。すなわち、ユーザによる意図的なシェイキング以外の運動によって検出信号Sが出力されることを防止できる。 As described above, according to the semiconductor device 10 according to the present embodiment, since a plurality of different axes are set as the designated axes, the detection signal Sd is output by a monotonous movement that occurs when walking or climbing stairs. Can be prevented. That is, it is possible to prevent the detection signal S d by the exercises other than the intentional shaking by the user is output.

また、本実施形態に係る半導体装置10によれば、各軸における加速度信号の絶対値が所定期間内において複数回に亘って閾値の絶対値を超えた場合でも、当該所定期間内における運動の検出は各軸につき1回とされる。従って、振りかぶり動作等の、正規のシェイキングに付随する、ユーザが意図しない運動を検出対象から除外することができ、組み合わせシェイキングの成立が困難となることを防止することができる。   In addition, according to the semiconductor device 10 according to the present embodiment, even when the absolute value of the acceleration signal in each axis exceeds the absolute value of the threshold value a plurality of times within a predetermined period, the motion is detected within the predetermined period. Is once per axis. Therefore, it is possible to exclude movements unintended by the user, such as swinging movements, that are not intended by the user from being detected, and it is possible to prevent the combination shaking from becoming difficult.

また、本実施形態に係る半導体装置10によれば、抽出された波形部分の各々の面積に応じた数値を導出し、数値がより大きい波形部分を選択し、選択した波形部分に基づいて運動の検出を行う。かかる態様によれば、正規のシェイキングに付随して振りかぶり動作が行われた場合でも、正規のシェイキングに対応する波形部分を選択することが可能となり、正規のシェイキングに基づいて運動の検出を行うことが可能となる。換言すれば、振りかぶり動作に対応する波形部分に基づいて運動の検出が行われてしまうことを防止できる。   In addition, according to the semiconductor device 10 according to the present embodiment, a numerical value corresponding to the area of each extracted waveform portion is derived, a waveform portion having a larger numerical value is selected, and movement based on the selected waveform portion is performed. Perform detection. According to this aspect, even when a swing motion is performed in association with regular shaking, it is possible to select a waveform portion corresponding to regular shaking and to detect motion based on regular shaking Is possible. In other words, it is possible to prevent the motion from being detected based on the waveform portion corresponding to the swinging motion.

なお、抽出された波形部分の各々について導出した数値を比較する場合に、所定範囲内にない数値を比較対象から除外してもよい。例えば、歩行動作等の比較的周期の長い振動は、正規のシェイキングよりも数値が顕著に大きくなることが想定される。一方、電車乗車時の振動等の比較的周期の短い振動は、正規のシェイキングよりも数値が著しく小さくなることが想定される。従って、比較対象とする数値の範囲を限定することで、歩行動作や電車乗車時の振動を運動の検出対象から除外することが可能となる。   In addition, when comparing the numerical value derived | led-out about each of the extracted waveform part, you may exclude the numerical value which is not in a predetermined range from a comparison object. For example, it is assumed that vibrations having a relatively long cycle, such as walking motion, are significantly larger in value than normal shaking. On the other hand, vibrations with a relatively short period, such as vibrations when getting on a train, are assumed to be significantly smaller than normal shaking. Therefore, by limiting the range of the numerical values to be compared, it is possible to exclude the walking motion and the vibration during the train ride from the motion detection target.

また、上記の実施形態では、抽出された波形部分を選択するための数値として、各波形部分の面積に応じた数値を用いることとしているが、これに限定されるものではない。例えば、抽出された波形部分の傾き(角度)に相当する数値を適用してもよい。波形部分の傾き(角度)は、例えば、加速度信号波形が閾値を超えた点(または閾値未満となった点)と加速度信号波形のピーク点とを結ぶ直線の傾き(角度)であってもよい。この場合、正規のシェイキングに対応する波形部分の傾き(角度)の理想値を記憶しておき、抽出された波形部分のうち、理想値に最も近い数値を有するものを選択してもよい。   In the above-described embodiment, the numerical value corresponding to the area of each waveform portion is used as the numerical value for selecting the extracted waveform portion. However, the present invention is not limited to this. For example, a numerical value corresponding to the slope (angle) of the extracted waveform portion may be applied. The slope (angle) of the waveform portion may be, for example, the slope (angle) of a straight line connecting a point where the acceleration signal waveform exceeds the threshold (or a point where the acceleration signal waveform falls below the threshold) and the peak point of the acceleration signal waveform. . In this case, the ideal value of the slope (angle) of the waveform portion corresponding to regular shaking may be stored, and the extracted waveform portion having the value closest to the ideal value may be selected.

[第2の実施形態]
例えば、ユーザがY軸方向に沿ってシェイキングを行ったつもりでも、実際には、X軸方向成分およびY軸方向成分の双方を含む斜め方向のシェイキングが行われてしまうことがある。図10は、加速度センサ20に対してX軸方向成分およびY軸方向成分の双方を含む、斜め方向のシェイキングが行われた場合の加速度信号の一例を示す図である。斜め方向のシェイキングが行われると、X軸およびY軸の双方の加速度信号SaX、SaYにおいてピークが出現し、各ピークの絶対値が閾値の絶対値を超える場合がある。また、X軸における加速度信号SaXの位相および振幅は、Y軸における加速度信号SaYの位相および振幅と異なるものとなり得る。
[Second Embodiment]
For example, even if the user intends to perform shaking along the Y-axis direction, in practice, oblique shaking including both the X-axis direction component and the Y-axis direction component may be performed. FIG. 10 is a diagram illustrating an example of the acceleration signal when the acceleration sensor 20 is shaken in an oblique direction including both the X-axis direction component and the Y-axis direction component. When shaking in an oblique direction is performed, peaks appear in the acceleration signals S aX and S aY of both the X axis and the Y axis, and the absolute value of each peak may exceed the absolute value of the threshold value. Further, the phase and amplitude of the acceleration signal S aX on the X axis can be different from the phase and amplitude of the acceleration signal S aY on the Y axis.

上記した第1の実施形態に係る半導体装置10によれば、各軸について抽出した波形部分の選択を軸毎に行い、軸毎に選択した波形部分に基づいて、各軸の運動を検出するので、図10に示すような加速度信号が入力された場合には、最初にY軸方向の運動を検出し、その後わずかに遅れたタイミングでX軸方向の運動を検出する可能性がある。すなわち、第1の実施形態に係る半導体装置10によれば、斜め方向のシェイキングが行われた場合に、複数の軸において運動を検出してしまう可能性があり、組み合わせシェイキングを成立させることが困難となるおそれがある。従って、第1の実施形態に係る半導体装置10によれば、ユーザは、指定軸の方向からずれないように各指定軸の方向に沿って正確にシェイキングを行うことが要求される。第2の実施形態に係る半導体装置10は、斜め方向のシェイキングが行われた場合でも、1つの軸に沿った運動のみを検出することで、組み合わせシェイキングの成立が困難となることを防止している。   According to the semiconductor device 10 according to the first embodiment described above, the waveform portion extracted for each axis is selected for each axis, and the motion of each axis is detected based on the waveform portion selected for each axis. When an acceleration signal as shown in FIG. 10 is input, there is a possibility that the motion in the Y-axis direction is first detected and then the motion in the X-axis direction is detected at a slightly delayed timing. That is, according to the semiconductor device 10 according to the first embodiment, when the shaking is performed in an oblique direction, there is a possibility that motion is detected on a plurality of axes, and it is difficult to establish the combination shaking. There is a risk of becoming. Therefore, according to the semiconductor device 10 according to the first embodiment, the user is required to perform shaking accurately along the direction of each designated axis so as not to deviate from the direction of the designated axis. The semiconductor device 10 according to the second embodiment can prevent the combination shaking from becoming difficult by detecting only the movement along one axis even when the shaking in the oblique direction is performed. Yes.

第2の実施形態に係る半導体装置10は、検出部33における処理が第1の実施形態とは異なる。すなわち、第1の実施形態に係る検出部33は、抽出部32によって各軸について抽出された波形部分の各々を軸毎に比較し、比較結果に基づいて波形部分を選択する処理を軸毎に行い、軸毎に1つずつ選択した波形部分に基づいて各軸の方向に沿った運動を検出するものであった。これに対して第2の実施形態に係る検出部33は、抽出部32によって各軸について抽出された全ての波形部分を比較対象として比較し、比較結果に基づいて、各軸について抽出された全ての波形部分の中から1つを選択し、選択した波形部分に対応する軸の方向に沿った運動を検出する。抽出部32によって各軸について抽出された波形部分のうち、選択されない波形部分は、運動の検出において考慮されない。   The semiconductor device 10 according to the second embodiment is different from the first embodiment in the processing in the detection unit 33. That is, the detection unit 33 according to the first embodiment compares each waveform portion extracted for each axis by the extraction unit 32 for each axis, and performs processing for selecting the waveform portion based on the comparison result for each axis. The motion along the direction of each axis is detected based on the waveform portion selected one for each axis. On the other hand, the detection unit 33 according to the second embodiment compares all the waveform portions extracted for each axis by the extraction unit 32 as comparison targets, and all the extracted for each axis based on the comparison result. One of the waveform portions is selected, and movement along the direction of the axis corresponding to the selected waveform portion is detected. Of the waveform portions extracted for each axis by the extraction unit 32, the waveform portions that are not selected are not considered in the motion detection.

以下に、第2の実施形態に係る半導体装置10の動作の一例を、図11を参照しつつ説明する。図11に示すように、X軸およびY軸の双方の加速度信号SaX、SaYにおいてピークが出現し、各ピークの絶対値が閾値の絶対値を超えている場合、抽出部32は、Y軸についての加速度信号波形から波形部分PY1およびPY2を抽出し、X軸についての加速度信号波形から波形部分PX1およびPX2を抽出する。 An example of the operation of the semiconductor device 10 according to the second embodiment will be described below with reference to FIG. As shown in FIG. 11, when peaks appear in both the X-axis and Y-axis acceleration signals S aX and S aY and the absolute value of each peak exceeds the absolute value of the threshold, the extraction unit 32 Waveform portions P Y1 and P Y2 are extracted from the acceleration signal waveform for the axis, and waveform portions P X1 and P X2 are extracted from the acceleration signal waveform for the X axis.

検出部33は、抽出部32によって抽出された波形部分PY1、PY2、PX1およびPX2のそれぞれについて、(1)式または(2)式に準じて、これらの波形部分のおおよその面積に相当する数値QY1、QY2、QX1およびQX2を導出する。検出部33は、波形部分の各々について導出した全ての数値QY1、QY2、QX1およびQX2の中から値が最も大きい数値に対応する波形部分を選択する。図11に示す例では、波形部分PY2について導出された数値QY2が最も大きいので、検出部33は、波形部分PY2を選択する。 For each of the waveform portions P Y1 , P Y2 , P X1, and P X2 extracted by the extraction unit 32, the detection unit 33 approximates the area of these waveform portions according to the equation (1) or (2). Numerical values Q Y1 , Q Y2 , Q X1 and Q X2 corresponding to are derived. The detection unit 33 selects a waveform portion corresponding to a numerical value having the largest value from all the numerical values Q Y1 , Q Y2 , Q X1, and Q X2 derived for each of the waveform portions. In the example shown in FIG. 11, since the numerical Q Y2 derived for waveform portion P Y2 largest, the detection unit 33 selects the waveform portion P Y2.

斜め方向のシェイキングが行われた場合には、ユーザが意図した方向の加速度信号のピーク値は、ユーザが意図しない方向の加速度信号のピーク値よりも大きくなると考えられる。すなわち、図11に示す例においては、ユーザはY軸方向に沿ったシェイキングを意図したものと考えられる。本実施形態に係る半導体装置10によれば、抽出部32によって抽出された波形部分のうち、面積が最も大きい波形部分が選択されるので、ユーザが意図したシェイキングの方向に対応する波形部分を選択できる可能性が高くなる。   When the shaking in the oblique direction is performed, the peak value of the acceleration signal in the direction intended by the user is considered to be larger than the peak value of the acceleration signal in the direction not intended by the user. That is, in the example shown in FIG. 11, it is considered that the user intends to perform shaking along the Y-axis direction. According to the semiconductor device 10 according to the present embodiment, since the waveform portion having the largest area is selected from the waveform portions extracted by the extraction unit 32, the waveform portion corresponding to the direction of shaking intended by the user is selected. The possibility of being able to be increased.

検出部33は、選択した波形部分PY2に基づいてY軸の方向に沿った運動が生じたものと判定する。すなわち、選択されない波形部分PY1、PX1およびPX2は、運動の検出に際して考慮されない。このように、本実施形態に係る半導体装置10によれば、斜め方向のシェイキングが行われたことによって、所定時間内に複数の軸において加速度信号の絶対値が閾値の絶対値を超えた場合でも、当該所定時間内においては、選択された波形部分に対応する1つの軸の方向に沿った運動のみが検出される。また、第1の実施形態に係る半導体装置と同様、振りかぶり動作等の、正規のシェイキングに付随する、ユーザが意図しない運動を検出対象から除外することができる。 The detection unit 33 determines that the movement along the Y-axis direction has occurred based on the selected waveform portion PY2 . That is, the waveform portions P Y1 , P X1, and P X2 that are not selected are not taken into account when detecting the motion. As described above, according to the semiconductor device 10 according to the present embodiment, even when the absolute value of the acceleration signal exceeds the absolute value of the threshold value in a plurality of axes within a predetermined time due to the oblique shaking. Within the predetermined time, only movement along the direction of one axis corresponding to the selected waveform portion is detected. In addition, as in the semiconductor device according to the first embodiment, it is possible to exclude from the detection target movements that are not intended by the user and are associated with regular shaking, such as a swing-up operation.

図12は、第2の実施形態に係る半導体装置10のCPU11がROM13に記憶された運動検出プログラムを実行することにより実施される運動検出処理の流れを示すフローチャートである。   FIG. 12 is a flowchart showing the flow of the motion detection process performed by the CPU 11 of the semiconductor device 10 according to the second embodiment executing the motion detection program stored in the ROM 13.

第2の実施形態に係る運動検出プログラムは、第1の実施形態に係る運動検出プログラム(図9参照)におけるステップS8およびS9の処理に代えて、ステップS8AおよびS9Aの処理を有する。他のステップS1〜S7およびS10〜S15の処理は、第1の実施形態に係る運動検出プログラムと同様であるので、重複する説明は省略する。   The motion detection program according to the second embodiment has steps S8A and S9A instead of the processing of steps S8 and S9 in the motion detection program (see FIG. 9) according to the first embodiment. Since the processing of other steps S1 to S7 and S10 to S15 is the same as that of the motion detection program according to the first embodiment, a duplicate description is omitted.

ステップS8Aにおいて、CPU11は、検出部33として機能し、ステップS7において抽出した、全ての波形部分を比較対象として比較した結果に基づいて、全ての軸に亘る波形部分の中から1つの波形部分を選択する。具体的には、CPU11は、ステップS7において抽出した波形部分の各々の面積に応じた数値Qを、(1)式または(2)式に準じて導出する。CPU11は、導出した各数値Qのうち、最も大きい数値を有する波形部分を1つ選択する。   In step S8A, the CPU 11 functions as the detection unit 33, and selects one waveform portion from among the waveform portions over all axes based on the comparison result of all the waveform portions extracted in step S7 as comparison targets. select. Specifically, the CPU 11 derives a numerical value Q corresponding to the area of each waveform portion extracted in step S7 according to the equation (1) or (2). The CPU 11 selects one waveform portion having the largest numerical value among the derived numerical values Q.

ステップS9Aにおいて、CPU11は、検出部33として機能し、ステップS8Aにおいて選択した波形部分に基づいて軸毎に運動を検出する。すなわち、CPU11は、ステップS8Aにおいて選択した波形部分に対応する軸の方向に沿った運動を検出する。   In step S9A, the CPU 11 functions as the detection unit 33, and detects movement for each axis based on the waveform portion selected in step S8A. That is, the CPU 11 detects a movement along the direction of the axis corresponding to the waveform portion selected in step S8A.

ステップS8AおよびS9Aの処理によれば、斜め方向のシェイキングが行われたことによって、所定期間内に複数の軸において加速度信号の絶対値が閾値の絶対値を超えた場合でも、当該所定期間内においては、1つの軸の方向に沿った運動のみが検出される。   According to the processing in steps S8A and S9A, even when the absolute value of the acceleration signal exceeds the absolute value of the threshold value in a plurality of axes within a predetermined period due to the oblique shaking, the predetermined value within the predetermined period Only motion along the direction of one axis is detected.

このように、本発明の第2の実施形態に係る半導体装置10によれば、斜め方向のシェイキングが行われたことによって、図10および図11に示すように、所定期間内に複数の軸において加速度信号の絶対値が閾値の絶対値を超えた場合でも、複数の軸のそれぞれについて運動を検出してしまうことを防止することができる。従って、斜め方向のシェイキングが行われた場合に組み合わせシェイキングの成立が困難となることを防止できる。すなわち、第2の実施形態に係る半導体装置10によれば、指定軸の方向に沿った正確なシェイキングを行うことを要しないので、第1の実施形態と比較して操作性を向上させることができる。   As described above, according to the semiconductor device 10 according to the second embodiment of the present invention, as a result of the oblique shaking, as shown in FIG. 10 and FIG. Even when the absolute value of the acceleration signal exceeds the absolute value of the threshold, it is possible to prevent motion from being detected for each of the plurality of axes. Therefore, it is possible to prevent the combination shaking from becoming difficult when the shaking in the oblique direction is performed. That is, according to the semiconductor device 10 according to the second embodiment, since it is not necessary to perform accurate shaking along the direction of the designated axis, operability can be improved as compared with the first embodiment. it can.

[第3の実施形態]
図13は、上記した第1および第2の実施形態に係る半導体装置10および加速度センサ20を内蔵した本発明の第3の実施形態に係る携帯端末装置50の平面図である。携帯端末装置50は、携帯電話やスマートフォンのような携帯通信端末装置であってもよい。
[Third Embodiment]
FIG. 13 is a plan view of a portable terminal device 50 according to the third embodiment of the present invention in which the semiconductor device 10 and the acceleration sensor 20 according to the first and second embodiments are incorporated. The mobile terminal device 50 may be a mobile communication terminal device such as a mobile phone or a smartphone.

携帯端末装置50は、上面中央に表示画面51が設けられている。加速度センサ20(図13において図示せず)は、X軸が表示画面51の左右方向に対応し、Y軸が表示画面51の上下方向に対応し、Z軸が表示画面51の前後方向に対応するように、携帯端末装置50の内部に搭載されている。   The mobile terminal device 50 is provided with a display screen 51 in the center of the upper surface. In the acceleration sensor 20 (not shown in FIG. 13), the X axis corresponds to the horizontal direction of the display screen 51, the Y axis corresponds to the vertical direction of the display screen 51, and the Z axis corresponds to the longitudinal direction of the display screen 51. As such, it is mounted inside the portable terminal device 50.

図14は、携帯端末装置50の構成を示すブロック図である。携帯端末装置50は、加速度センサ20、半導体装置10、メインコンピュータ60およびアプリケーションソフトウェア70を含んで構成されている。   FIG. 14 is a block diagram illustrating a configuration of the mobile terminal device 50. The mobile terminal device 50 includes an acceleration sensor 20, a semiconductor device 10, a main computer 60, and application software 70.

メインコンピュータ60は、携帯端末装置50全体の制御を司るコンピュータであり、図示しないCPU、RAM、ROMを含んで構成されている。メインコンピュータ60は、マイクロコンピュータを含んで構成される半導体装置10よりも回路規模の大きい半導体集積回路によって構成されている。なお、メインコンピュータ60は、本発明に係る携帯端末装置の制御部に対応する。   The main computer 60 is a computer that controls the entire mobile terminal device 50 and includes a CPU, a RAM, and a ROM (not shown). The main computer 60 is configured by a semiconductor integrated circuit having a circuit scale larger than that of the semiconductor device 10 including a microcomputer. The main computer 60 corresponds to the control unit of the mobile terminal device according to the present invention.

メインコンピュータ60は、半導体装置10の入出力ポート14に接続されており、入出力ポート14から出力される検出信号Sがメインコンピュータ60に供給されるようになっている。アプリケーションソフトウェア70は、メインコンピュータ60にインストールされている。アプリケーションソフトウェア70は、一例として、電子メールを送受信および閲覧等するための機能を提供するものであってもよく、他の例として、音声データを再生する機能を提供するものであってもよい。 The main computer 60 is connected to the input and output ports 14 of the semiconductor device 10, the detection signal S d that is output from the output port 14 are supplied to the main computer 60. Application software 70 is installed in main computer 60. For example, the application software 70 may provide a function for sending / receiving and browsing an electronic mail, and may provide a function for reproducing audio data as another example.

メインコンピュータ60は、半導体装置10から検出信号Sを受信した場合に、所定の動作を行う。一例として、メインコンピュータ60は、半導体装置10から検出信号Sを受信すると、アプリケーションソフトウェア70を起動させてもよい。他の例として、メインコンピュータ60は、半導体装置10から検出信号Sを受信すると、アプリケーションソフトウェア70によって提供される機能を発揮させてもよい。例えば、アプリケーションソフトウェア70が電子メールを送受信および閲覧等するための機能を提供するものである場合には、メインコンピュータ60は、検出信号Sに応じて電子メールの送信を行うようにしてもよい。 The main computer 60, when receiving the detection signal S d from the semiconductor device 10 performs a predetermined operation. As an example, the main computer 60 may activate the application software 70 when receiving the detection signal S d from the semiconductor device 10. As another example, when receiving the detection signal S d from the semiconductor device 10, the main computer 60 may cause the function provided by the application software 70 to be exhibited. For example, if the application software 70 is intended to provide a function for transmitting and receiving and browsing, etc. the e-mail, the main computer 60 may perform the transmission of e-mail in response to the detection signal S d .

このように、加速度センサ20および半導体装置10を内蔵した本発明の実施形態に係る携帯端末装置50によれば、携帯端末装置50をシェイキングによって操作することが可能となる。検出信号Sは、組み合わせシェイキングが成立した場合に出力されるので、歩行時や階段昇降時に生じる単調な運動によって携帯端末装置50が操作されてしまうことを防止することができる。 As described above, according to the mobile terminal device 50 according to the embodiment of the present invention in which the acceleration sensor 20 and the semiconductor device 10 are incorporated, the mobile terminal device 50 can be operated by shaking. Detection signal S d is because combinations shaking is output when a condition is satisfied, it is possible to prevent the portable terminal device 50 from being operated by a monotonous motion that occurs during walking or climbing stairs.

ここで、半導体装置10によって実施される運動検出処理をメインコンピュータ60に行わせることとすると、メインコンピュータ60は加速度センサ20からの加速度信号を常時監視することとなる。メインコンピュータ60は、比較的回路規模の大きい半導体集積回路で構成されており、常時動作させた場合には、消費電力が大きくなり、バッテリ消費が増大する。本実施形態に係る携帯端末装置50によれば、メインコンピュータ60よりも回路規模の小さいマイクロコンピュータで構成される半導体装置10が運動検出処理を行うので、メインコンピュータ60が運動検出処理を行う場合と比較して、消費電力を低減することができる。   Here, if the main computer 60 performs the motion detection process performed by the semiconductor device 10, the main computer 60 constantly monitors the acceleration signal from the acceleration sensor 20. The main computer 60 is composed of a semiconductor integrated circuit having a relatively large circuit scale. When the main computer 60 is always operated, the power consumption increases and the battery consumption increases. According to the mobile terminal device 50 according to the present embodiment, since the semiconductor device 10 configured by a microcomputer having a circuit scale smaller than that of the main computer 60 performs the motion detection process, the main computer 60 performs the motion detection process. In comparison, power consumption can be reduced.

以上、本発明の実施形態について説明したが、本発明は上記各実施形態の態様に限定されるものではなく、種々の変更が可能である。上記の各実施形態においては、指定軸の設定順序を示す順序情報17をROM13に記憶する場合を例示したが、順序情報17を適宜書き換えることができるように構成してもよい。   As mentioned above, although embodiment of this invention was described, this invention is not limited to the aspect of each said embodiment, A various change is possible. In each of the above-described embodiments, the case where the order information 17 indicating the setting order of the designated axis is stored in the ROM 13 is exemplified. However, the order information 17 may be appropriately rewritten.

また、半導体装置10において、複数の組み合わせシェイキングを規定し、各組み合わせシェイキングに対応した検出信号Sを出力するように構成してもよい。例えば、半導体装置10は、第1の組み合わせシェイキングが成立した場合に第1の検出信号Sd1を出力し、第1の組み合わせシェイキングとは異なる第2の組み合わせシェイキングが成立した場合に第2の検出信号Sd2を出力してもよい。この場合において、携帯端末装置50は、第1の検出信号Sd1に応じて第1の動作を行い、第2の検出信号Sd2に応じて第1の動作とは異なる第2の動作を行ってもよい。 In the semiconductor device 10, defines a plurality of combinations shaking may be configured to output a detection signal S d corresponding to each combination shaking. For example, the semiconductor device 10 outputs the first detection signal S d1 when the first combination shaking is established, and performs the second detection when the second combination shaking different from the first combination shaking is established. The signal S d2 may be output. In this case, the portable terminal device 50 performs a first operation in response to the first detection signal S d1, subjected to different second operation to the first operation in response to the second detection signal S d2 May be.

また、半導体装置10は、組み合わせシェイキングが成立した場合に検出信号Sを出力することに代えて、携帯端末装置50に対して動作内容を指示するコマンドを出力してもよい。また、半導体装置10は、加速度センサ20と一体的に構成されたモジュールの形態を有していてもよい。 Further, the semiconductor device 10, instead of the combination shaking outputs a detection signal S d when a condition is satisfied, may output a command instructing the operation content to the portable terminal device 50. Further, the semiconductor device 10 may have a form of a module configured integrally with the acceleration sensor 20.

10 半導体装置
11 CPU
12 RAM
13 ROM
14 入出力ポート
16 運動検出プログラム
17 順序情報
20 加速度センサ
31 入力部
32 抽出部
33 判定部
34 設定部
35 出力分
50 携帯端末装置
60 メインコンピュータ
10 Semiconductor device 11 CPU
12 RAM
13 ROM
14 Input / output port 16 Motion detection program 17 Order information 20 Acceleration sensor 31 Input unit 32 Extraction unit 33 Determination unit 34 Setting unit 35 Output 50 Mobile terminal device 60 Main computer

Claims (8)

互いに異なる複数の方向の各々に沿った加速度成分の各々を示す複数の加速度信号が入力される入力部と、
前記複数の方向のうちから選択される1つの方向に沿った軸を、所定の順序で指定軸として設定する設定部と、
前記加速度信号の各々の所定時間内における時間推移の各々から加速度ゼロを含む所定範囲の上限閾値を超えた信号部分及び前記所定範囲の下限閾値未満の信号部分を抽出する抽出部と、
前記抽出部によって抽出された前記信号部分同士の比較結果に基づいて前記信号部分の選択を行い、選択した信号部分に対応する方向の運動を検出し、検出した運動の方向が、前記設定部において設定された指定軸の方向である場合、当該指定軸について指定軸検出情報を生成して記憶し、検出した運動の方向が前記設定部において設定された指定軸の方向とは異なる方向である場合、記憶した全ての指定軸検出情報を消去して指定軸の設定を最初に戻す検出部と、
前記設定部において設定された全ての指定軸について前記指定軸検出情報が記憶された場合に検出信号を出力する出力部と、
を含む半導体装置。
An input unit that receives a plurality of acceleration signals indicating acceleration components along each of a plurality of different directions;
A setting unit that sets an axis along one direction selected from the plurality of directions as a specified axis in a predetermined order;
An extraction unit that extracts a signal portion that exceeds an upper limit threshold of a predetermined range including zero acceleration and a signal portion that is less than the lower limit threshold of the predetermined range from each of the time transitions within each predetermined time of the acceleration signal;
The signal part is selected based on the comparison result between the signal parts extracted by the extraction unit, the motion in the direction corresponding to the selected signal part is detected, and the detected motion direction is determined in the setting unit. When the direction of the designated axis is set, the designated axis detection information is generated and stored for the designated axis, and the detected motion direction is different from the direction of the designated axis set in the setting unit. A detection unit that erases all stored specified axis detection information and returns the setting of the specified axis to the beginning ,
An output unit that outputs a detection signal when the specified axis detection information is stored for all the specified axes set in the setting unit ;
A semiconductor device including:
前記検出部は、前記抽出部によって抽出された前記信号部分の選択を軸毎に行う
請求項1に記載の半導体装置。
The semiconductor device according to claim 1, wherein the detection unit selects the signal portion extracted by the extraction unit for each axis.
前記検出部は、前記抽出部によって抽出された前記信号部分の全ての中から1つの信号部分を選択する
請求項1に記載の半導体装置。
The semiconductor device according to claim 1, wherein the detection unit selects one signal portion from all of the signal portions extracted by the extraction unit.
前記検出部は、前記抽出部によって抽出された前記信号部分の各々に関する数値を導出し、前記数値同士を比較した結果に基づいて前記信号部分の選択を行う
請求項1から請求項3のいずれか1項に記載の半導体装置。
The said detection part derives | leads-out the numerical value regarding each of the said signal part extracted by the said extraction part, and selects the said signal part based on the result of having compared the said numerical values. 2. A semiconductor device according to item 1.
前記検出部は、前記数値として、前記抽出部によって抽出された前記信号部分の各々によって示される加速度信号波形の波形部分の面積に応じた数値を導出し、前記数値がより大きい信号部分を選択する
請求項4に記載の半導体装置。
The detection unit derives a numerical value corresponding to the area of the waveform portion of the acceleration signal waveform indicated by each of the signal portions extracted by the extraction unit as the numerical value, and selects a signal portion having a larger numerical value. The semiconductor device according to claim 4.
前記検出部は、前記数値のうち所定範囲内に含まれない数値を比較対象から除外する請求項4または請求項5に記載の半導体装置。   The semiconductor device according to claim 4, wherein the detection unit excludes a numerical value that is not included in a predetermined range from the numerical values. 請求項1から請求項のいずれか1項に記載の半導体装置と、
前記加速度信号を出力する加速度センサと、
前記検出信号に応じて所定の動作を行う制御部と、
を含む携帯端末装置。
A semiconductor device according to any one of claims 1 to 6 ,
An acceleration sensor that outputs the acceleration signal;
A control unit that performs a predetermined operation in response to the detection signal;
A mobile terminal device.
互いに異なる複数の方向のうちから選択される1つの方向に沿った軸を、所定の順序で指定軸として設定し、
前記複数の方向の成分を有する複数の軸の各々に沿った加速度を各々が示す複数の加速度信号の所定期間内における時間推移を示す複数の加速度信号波形の各々から、正側および負側における閾値を超えた信号部分を抽出し、
抽出した前記信号部分の各々の比較結果に基づいて前記信号部分の選択を行い、
選択した信号部分に対応する軸の方向に沿った運動を検出し、
検出した運動の方向が、設定された指定軸の方向である場合、当該指定軸について指定軸検出情報を生成して記憶し、検出した運動の方向が設定された指定軸の方向とは異なる方向である場合、記憶した全ての指定軸検出情報を消去して指定軸の設定を最初に戻し、
設定された全ての指定軸について前記指定軸検出情報が記憶された場合に検出信号を出力する
運動検出方法。
An axis along one direction selected from a plurality of different directions is set as a designated axis in a predetermined order,
Threshold values on the positive side and the negative side from each of a plurality of acceleration signal waveforms indicating time transitions within a predetermined period of a plurality of acceleration signals each indicating acceleration along each of a plurality of axes having components in a plurality of directions. Extract the signal part that exceeds
Selecting the signal portion based on the comparison result of each of the extracted signal portions;
Detect movement along the direction of the axis corresponding to the selected signal part,
If the direction of the detected motion is the direction of the specified axis that has been set, the specified axis detection information is generated and stored for the specified axis, and the direction of the detected motion is different from the direction of the specified axis that has been set If this is the case, delete all stored specified axis detection information and return the specified axis settings to the beginning.
A motion detection method for outputting a detection signal when the specified axis detection information is stored for all set specified axes .
JP2015059928A 2015-03-23 2015-03-23 Semiconductor device, portable terminal device, and motion detection method Active JP6608106B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015059928A JP6608106B2 (en) 2015-03-23 2015-03-23 Semiconductor device, portable terminal device, and motion detection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015059928A JP6608106B2 (en) 2015-03-23 2015-03-23 Semiconductor device, portable terminal device, and motion detection method

Publications (2)

Publication Number Publication Date
JP2016180616A JP2016180616A (en) 2016-10-13
JP6608106B2 true JP6608106B2 (en) 2019-11-20

Family

ID=57131693

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015059928A Active JP6608106B2 (en) 2015-03-23 2015-03-23 Semiconductor device, portable terminal device, and motion detection method

Country Status (1)

Country Link
JP (1) JP6608106B2 (en)

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7233316B2 (en) * 2003-05-01 2007-06-19 Thomson Licensing Multimedia user interface
JP2005037300A (en) * 2003-07-17 2005-02-10 Hitachi Metals Ltd Portable equipment having acceleration history recording function, and acceleration sensor device used for the same
JP2007531113A (en) * 2004-03-23 2007-11-01 富士通株式会社 Identification of mobile device tilt and translational components
KR100723494B1 (en) * 2005-07-23 2007-06-04 삼성전자주식회사 Method of detecting free fall of a mobile device, apparatus for the same and recording medium for the same
JP2007304988A (en) * 2006-05-12 2007-11-22 Seiko Epson Corp Motion command processing system
US8312392B2 (en) * 2009-10-02 2012-11-13 Qualcomm Incorporated User interface gestures and methods for providing file sharing functionality
JP2011151709A (en) * 2010-01-25 2011-08-04 Olympus Corp Imaging device
JP5547985B2 (en) * 2010-02-22 2014-07-16 ラピスセミコンダクタ株式会社 Motion detection device, electronic device, motion detection method and program
JP5392157B2 (en) * 2010-03-19 2014-01-22 富士通株式会社 Motion judgment device, motion judgment method, and computer program
JP2012037452A (en) * 2010-08-10 2012-02-23 Panasonic Corp Walking azimuth detection apparatus and walking azimuth detection method
WO2012147349A1 (en) * 2011-04-27 2012-11-01 パナソニック株式会社 Electronic device
KR101214733B1 (en) * 2011-09-06 2012-12-21 삼성전기주식회사 Device for detecting double motion and method for detecting double motion
KR20130060757A (en) * 2011-11-30 2013-06-10 삼성전기주식회사 Device for detecting motions and method for detecting motions
JP6222096B2 (en) * 2012-09-19 2017-11-01 株式会社ニコン Electronic device and program

Also Published As

Publication number Publication date
JP2016180616A (en) 2016-10-13

Similar Documents

Publication Publication Date Title
JP5656566B2 (en) Motion detection device, electronic device, motion detection method and program
JP6286247B2 (en) Motion detection device, portable terminal device, and motion detection method
JP5798713B2 (en) Electronic device, motion detection method and program
JP5547985B2 (en) Motion detection device, electronic device, motion detection method and program
JP5038240B2 (en) Motion sensor
CN105827847B (en) A kind of guard method that mobile terminal falls, mobile terminal and computer readable storage medium
CN113031840B (en) False triggering prevention method and device for wrist-worn device, electronic device and storage medium
CN108021242A (en) Gyro data processing method, mobile terminal and computer-readable recording medium
JP2018173712A (en) Input device, information processing device, information processing method, and program
CN104010125A (en) Electronic device and method
JPWO2017163662A1 (en) Information processing apparatus, electronic device, control method for information processing apparatus, and control program
JP6608106B2 (en) Semiconductor device, portable terminal device, and motion detection method
US20120287049A1 (en) Gravity sensing input system, gravity sensing input method and electronic device thereof
JP6409918B2 (en) Terminal device, motion recognition method and program
JP6155806B2 (en) Electronic equipment and impact detection program
CN110377159B (en) Action recognition method and device
JP2008117256A (en) Operation data input system, operation data input method and program
JP4668839B2 (en) Information processing apparatus, control method thereof, and program
JP2017207953A (en) Information processing device, electronic apparatus, method for controlling information processing device, and control program
JP5987666B2 (en) Operation control program and information processing apparatus
CN107767712B (en) Method and device for adjusting matching degree, storage medium and electronic equipment
JP6552274B2 (en) Terminal device and information processing method
US20170097683A1 (en) Method for determining non-contact gesture and device for the same
CN104020941A (en) Time information display method and handheld electronic equipment
KR101485821B1 (en) Remote Control Module and Method Using User Motion

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20171228

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20181030

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20181225

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190416

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20190924

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20191022

R150 Certificate of patent or registration of utility model

Ref document number: 6608106

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150