JP2022082945A - Seismic sensor - Google Patents

Seismic sensor Download PDF

Info

Publication number
JP2022082945A
JP2022082945A JP2020194136A JP2020194136A JP2022082945A JP 2022082945 A JP2022082945 A JP 2022082945A JP 2020194136 A JP2020194136 A JP 2020194136A JP 2020194136 A JP2020194136 A JP 2020194136A JP 2022082945 A JP2022082945 A JP 2022082945A
Authority
JP
Japan
Prior art keywords
acceleration sensor
acceleration
logic level
interrupt signal
sensor
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.)
Granted
Application number
JP2020194136A
Other languages
Japanese (ja)
Other versions
JP7435419B2 (en
Inventor
裕 宇野
Yutaka Uno
章紀 成宮
Akinori Narumiya
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.)
Omron Corp
Original Assignee
Omron Corp
Omron Tateisi Electronics Co
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 Omron Corp, Omron Tateisi Electronics Co filed Critical Omron Corp
Priority to JP2020194136A priority Critical patent/JP7435419B2/en
Publication of JP2022082945A publication Critical patent/JP2022082945A/en
Application granted granted Critical
Publication of JP7435419B2 publication Critical patent/JP7435419B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Measurement Of Mechanical Vibrations Or Ultrasonic Waves (AREA)
  • Geophysics And Detection Of Objects (AREA)

Abstract

To provide technology to prevent the occurrence of problems due to fluctuations in a voltage supplied from a power supply.SOLUTION: The seismic sensor includes a microcontroller and an acceleration sensor. The acceleration sensor includes an interrupt signal output unit that outputs an interrupt signal that notifies the microcontroller that the measured acceleration meets a predetermined condition, and an initialization circuit that initializes the acceleration sensor by detecting a predetermined fluctuation in the voltage supplied from the power supply to the acceleration sensor. The logic level of the interrupt signal is opposite between the initialization state in which the acceleration sensor is initialized and the vibration standby state in which the acceleration sensor is waiting for vibration, and becomes the same as that of the initialization state when the measured acceleration satisfies the predetermined condition.SELECTED DRAWING: Figure 6

Description

本発明は、感震センサに関する。 The present invention relates to a seismic sensor.

従来、加速度センサとマイクロコントローラ(MCU)とを備えた感震センサとして、加速度センサによる加速度の測定結果が所定の条件を満たした場合に、加速度センサからかMCUに割り込み信号を送信して所定条件の成立を通知し、通知を受けたMCUが加速度センサから測定された加速度情報を取得し、SI値等の指標を算出する感震センサが知られている(例えば、特許文献1)。 Conventionally, as a seismic sensor equipped with an acceleration sensor and a microcontroller (MCU), when the measurement result of the acceleration by the acceleration sensor satisfies a predetermined condition, an interruption signal is transmitted from the acceleration sensor or the MCU to the predetermined condition. There is known a seismic sensor that notifies the establishment of the above, acquires the acceleration information measured from the acceleration sensor by the notified MCU, and calculates an index such as a SI value (for example, Patent Document 1).

このような割り込み信号としては、加速度センサの測定結果が所定の条件を満たした場合に、Highとなる正論理を採用するのが一般的である。一方、加速度センサに対する電力を供給する電源がON/OFFされ、又は電源電圧が変動するのを検知し、加速度センサのレジスタ等を初期化する機能を有する初期化回路を加速度センサが搭載している場合がある。このような初期化回路は、電源から加速度センサに供給される電圧の所定の変動を検知した場合に作動する。 As such an interrupt signal, it is common to adopt a positive logic that becomes High when the measurement result of the acceleration sensor satisfies a predetermined condition. On the other hand, the accelerometer is equipped with an initialization circuit that has the function of detecting that the power supply that supplies power to the accelerometer is turned on / off or that the power supply voltage fluctuates and initializes the registers of the accelerometer. In some cases. Such an initialization circuit operates when it detects a predetermined fluctuation in the voltage supplied from the power supply to the acceleration sensor.

特開2020-46395号公報Japanese Unexamined Patent Publication No. 2020-46395

例えば、感震センサが、ガスメータ内部の基板に搭載され、地震を検知したときに遮断弁を閉じてガスの供給を停止させる等の機能を担う場合がある。ガスメータ内は電池駆動で動作しており、感震センサ以外のデバイスにも電力が供給される。このため、電源ON後に、電源から電力の供給を受ける他のデバイスでの消費電力が変化する等の原因により、電源から感震センサに供給される電力の電圧が変動する場合がある。このとき、初期化回路が、この電圧の変動を電源ON/OFFと解釈して、加速度センサのレジスタ等を初期化してしまうことがある。 For example, a seismic sensor may be mounted on a substrate inside a gas meter and may have a function of closing a isolation valve to stop gas supply when an earthquake is detected. The inside of the gas meter is battery-powered, and power is also supplied to devices other than the seismic sensor. Therefore, after the power is turned on, the voltage of the power supplied from the power supply to the seismic sensor may fluctuate due to a change in the power consumption of another device that receives the power supply from the power supply. At this time, the initialization circuit may interpret this voltage fluctuation as power ON / OFF and initialize the register of the acceleration sensor or the like.

例えば、加速度センサが振動を待機する状態で加速度センサのレジスタ等が誤って初期化されると、振動を待機する状態で論理レベルがLowとなっている割り込み信号が、電源ON時の初期化状態と同じ論理レベルのLowとなり、MCUでは加速度センサが初期化されていることを認識できない。このように、MCUは、加速度センサの状態を正確に認識することができず、適切な処理を行うことができなくなるので、感震センサの動作に不具合が生じる。 For example, if the accelerometer's register or the like is erroneously initialized while the accelerometer is waiting for vibration, the interrupt signal whose logic level is Low while waiting for vibration is in the initialization state when the power is turned on. It becomes Low of the same logic level as, and the MCU cannot recognize that the acceleration sensor is initialized. As described above, the MCU cannot accurately recognize the state of the acceleration sensor and cannot perform appropriate processing, so that the operation of the seismic sensor becomes defective.

本発明は、上記のような問題に鑑みてなされたものであり、電源から供給される電圧の変動による感震センサの不具合の発生を防止する技術を提供することを目的とする。 The present invention has been made in view of the above problems, and an object of the present invention is to provide a technique for preventing a malfunction of a seismic sensor due to a fluctuation of a voltage supplied from a power source.

上記の課題を解決するための本発明は、
マイクロコントローラと加速度センサとを備えた感震センサであって、
前記加速度センサは、
測定される加速度が所定の条件を満たしたことを前記マイクロコントローラに通知する割り込み信号を出力する割り込み信号出力部と、
電源から該加速度センサに供給される電圧の所定の変動を検知して、該加速度センサを初期化する初期化回路と、
を有し、
前記割り込み信号は、該加速度センサが初期化された初期化状態と、振動を待機する振動待機状態とで論理レベルが逆となり、かつ、測定される加速度が前記所定の条件を満たした場合に論理レベルが該初期化状態と同一となることを特徴とする。
The present invention for solving the above problems
It is a seismic sensor equipped with a microcontroller and an acceleration sensor.
The accelerometer
An interrupt signal output unit that outputs an interrupt signal that notifies the microcontroller that the measured acceleration meets a predetermined condition, and
An initialization circuit that detects a predetermined fluctuation in the voltage supplied from the power supply to the accelerometer and initializes the accelerometer.
Have,
The interrupt signal is logical when the logic level is opposite between the initialization state in which the acceleration sensor is initialized and the vibration standby state in which the acceleration sensor is waiting, and the measured acceleration satisfies the predetermined condition. It is characterized in that the level is the same as the initialization state.

本発明によれば、加速度センサが振動待機状態にある場合に、初期化回路が、電源から加速度センサに供給される電圧の所定の変動を検知して加速度センサを初期化したときは、割り込み信号の論理レベルが振動待機状態に対応する論理レベルから初期化状態に対応する論理レベルに変更される。このため、マイクロコントローラは、割り込み信号の変化によって、加速度センサに何らの事象が発生したことを認識でき、必要に応じて適切な処理を行うことができるので、電源から供給される電圧の変動による感震センサの不具合を防止することができる。
ここで、測定される加速度が満たす所定の条件とは、例えば、加速度が所定の閾値を超えるという条件が挙げられるが、地震による振動を検知するための加速度に対する条件であればこれに限られない。
また、割り込み信号の論理レベルは、初期化状態でLow、振動待機状態でHigh、測定される加速度が所定の条件を満たした場合にLowとしてもよいし、初期化状態でHigh、振動待機状態でLow、測定される加速度が所定の条件を満たした場合にHighとしてもよい。
According to the present invention, when the acceleration sensor is in the vibration standby state and the initialization circuit detects a predetermined fluctuation of the voltage supplied from the power supply to the acceleration sensor and initializes the acceleration sensor, an interrupt signal is generated. The logic level of is changed from the logic level corresponding to the vibration standby state to the logic level corresponding to the initialization state. Therefore, the microcontroller can recognize that some event has occurred in the accelerometer due to the change in the interrupt signal, and can perform appropriate processing as needed, so that it depends on the fluctuation of the voltage supplied from the power supply. It is possible to prevent malfunction of the seismic sensor.
Here, the predetermined condition satisfied by the measured acceleration includes, for example, a condition that the acceleration exceeds a predetermined threshold value, but is not limited to the condition for the acceleration for detecting vibration due to an earthquake. ..
Further, the logic level of the interrupt signal may be Low in the initialization state, High in the vibration standby state, Low when the measured acceleration satisfies a predetermined condition, High in the initialization state, and in the vibration standby state. Low may be set to High when the measured acceleration satisfies a predetermined condition.

また、本発明においては、
前記マイクロコントローラが前記加速度センサのレジスタの所定アドレスを所定の値に設定することにより、該加速度センサは前記初期化状態から前記振動待機状態に遷移し、
前記加速度センサが前記振動待機状態にある場合に、前記マイクロコントローラが、前記割り込み信号の論理レベルの変化を検知したときは、前記マイクロコントローラは、前記加速度センサの前記レジスタの前記所定アドレスの値を確認するようにしてもよい。
Further, in the present invention,
When the microcontroller sets a predetermined address of the register of the acceleration sensor to a predetermined value, the acceleration sensor transitions from the initialization state to the vibration standby state.
When the acceleration sensor is in the vibration standby state and the microcontroller detects a change in the logic level of the interrupt signal, the microcontroller sets the value of the predetermined address of the register of the acceleration sensor. You may try to confirm.

これによれば、マイクロコントローラが割り込み信号の論理レベルが振動待機状態に対応する論理レベルから変化するのを検知し、加速度センサに何等かの事象が発生したことを認識した場合に、加速度センサのレジスタの所定アドレスの値を確認することにより、初期化回路により加速度センサが初期化されたことを認識することができる。このため、マイクロコントローラは、必要に応じて適切な処理を行うことができ、電源から供給される電圧の変動による感震センサの不具合を防止することができる。 According to this, when the microcontroller detects that the logic level of the interrupt signal changes from the logic level corresponding to the vibration standby state and recognizes that some event has occurred in the accelerometer, the accelerometer of the accelerometer By checking the value of the predetermined address of the register, it is possible to recognize that the acceleration sensor has been initialized by the initialization circuit. Therefore, the microcontroller can perform appropriate processing as needed, and can prevent the seismic sensor from malfunctioning due to fluctuations in the voltage supplied from the power supply.

また、本発明においては、
外部装置に対する外部割り込み信号を出力する外部割り込み信号出力部を備え、
前記マイクロコントローラは、前記加速度センサから出力される前記割り込み信号の論理レベルが前記初期化状態と同一の論理レベルに変化するのに応じて、前記外部割り込み信号の論理レベルをアクティブに設定するようにしてもよい。
Further, in the present invention,
Equipped with an external interrupt signal output unit that outputs an external interrupt signal to an external device
The microcontroller actively sets the logic level of the external interrupt signal in response to the change in the logic level of the interrupt signal output from the acceleration sensor to the same logic level as the initialization state. You may.

これによれば、感震センサが外部装置に接続され、感震センサの外部割り込み信号出力部から出力された外部割り込み信号に応じて、外部装置が感震センサに対して所定の処理を行う場合に、外部装置においても、感震センサのマイクロコントローラと同様に状態を認識することができるので、感震センサに対して適切な処理が可能となる。 According to this, when the seismic sensor is connected to an external device and the external device performs predetermined processing on the seismic sensor in response to the external interrupt signal output from the external interrupt signal output unit of the seismic sensor. In addition, since the external device can recognize the state in the same manner as the microcontroller of the seismic sensor, it is possible to perform appropriate processing for the seismic sensor.

本発明によれば、電源から供給される電圧の変動による感震センサの不具合の発生を防止する技術を提供することが可能となる。 INDUSTRIAL APPLICABILITY According to the present invention, it is possible to provide a technique for preventing a malfunction of a seismic sensor due to a fluctuation of a voltage supplied from a power source.

本発明の実施例1に係るおける感震センサの概略構成図である。It is a schematic block diagram of the seismic sensor according to Example 1 of this invention. 本発明の実施例1に係る加速度センサのブロック図である。It is a block diagram of the acceleration sensor which concerns on Example 1 of this invention. 本発明の実施例1に係るMCUのブロック図である。It is a block diagram of the MCU which concerns on Example 1 of this invention. 本発明の実施例1に係る感震センサのMCUと加速度センサにおける処理手順を説明するフローチャートである。It is a flowchart explaining the processing procedure in the MCU of the seismic sensor and the acceleration sensor which concerns on Example 1 of this invention. 本発明の実施例1に係る感震センサのMCUと加速度センサにおける処理手順を説明するフローチャートである。It is a flowchart explaining the processing procedure in the MCU of the seismic sensor and the acceleration sensor which concerns on Example 1 of this invention. 本発明の実施例1に係る感震センサの加速度センサが出力するINT信号のタイミングチャートであるである。It is a timing chart of the INT signal output by the acceleration sensor of the seismic sensor according to the first embodiment of the present invention. 本発明の実施例1に関心センサのMCUが出力するINT1信号及びINT2信号のタイミングチャートである。It is a timing chart of the INT1 signal and the INT2 signal output by the MCU of the interest sensor according to the first embodiment of the present invention. 従来例に係る感震センサの加速度センサが出力するINT信号のタイミングチャートである。It is a timing chart of the INT signal output by the acceleration sensor of the seismic sensor according to the conventional example.

〔適用例〕
以下、本発明の適用例について、図面を参照しつつ説明する。
本発明は、図1に示すように、加速度センサ2とMCU3と、電源電圧VCCを電圧VCCに変換して加速度センサ2及びMCU3に供給する電圧レギュレータ4とを備え、加速度センサ2によって測定された加速度に基づいて地震の規模の指標値の算出等を行う感震センサ1である。
[Application example]
Hereinafter, application examples of the present invention will be described with reference to the drawings.
As shown in FIG. 1, the present invention includes an acceleration sensor 2 and an MCU 3, and a voltage regulator 4 that converts a power supply voltage VCC into a voltage VCC and supplies the voltage to the acceleration sensor 2 and the MCU 3, and measures the measurement by the acceleration sensor 2. It is a seismic sensor 1 that calculates an index value of the scale of an earthquake based on the accelerated acceleration.

加速度センサ2とMCU3は、信号線11及び信号線12によって接続されている。加速度センサ2は、信号線11を通じてSPI方式によりMCU3と通信を行う。また、加速度センサ2からは、信号線12を通じて割り込み信号であるINT信号をMCUに対して出力する。このINT信号は、加速度センサが初期化された状態では論理レベルがLowである。そして、INT信号は、MCU3によって加速度センサ2のレジスタ221が設定されると、加速度を測定し得る振動待機状態で論理レベルがインアクティブに設定され、所定の閾値を超える加速度が測定された場合には論理レベルがアクティブに設定される。 The acceleration sensor 2 and the MCU 3 are connected by a signal line 11 and a signal line 12. The accelerometer 2 communicates with the MCU 3 through the signal line 11 by the SPI method. Further, the acceleration sensor 2 outputs an INT signal, which is an interrupt signal, to the MCU through the signal line 12. The logic level of this INT signal is Low when the accelerometer is initialized. Then, when the register 221 of the acceleration sensor 2 is set by the MCU 3, the logic level of the INT signal is set inactive in the vibration standby state in which the acceleration can be measured, and when the acceleration exceeding a predetermined threshold value is measured. The logical level is set to active.

従来の感震センサでは、このINT信号は、図8に示すように、レジスタ221(図2参照)が設定(T11)されると論理レベルがLowに設定され、所定の閾値を超える加速度が測定された(T12)場合には、論理レベルがHighに設定され、測定モードの終了により(T13)、論理レベルがLowとなるように設定されていた。すなわち、加速度が所定の閾値を超えたことをMCU3に通知する割り込み信号としてのINT信号は、正論理に従って論理レベルが変化するように設定されており、MCU3はINT信号の立ち上がりにより割り込みを認識していた。 In the conventional seismic sensor, as shown in FIG. 8, the logic level of this INT signal is set to Low when the register 221 (see FIG. 2) is set (T 11 ), and the acceleration exceeding a predetermined threshold is applied. In the case of measurement (T 12 ), the logic level was set to High, and by the end of the measurement mode (T 13 ), the logic level was set to Low. That is, the INT signal as an interrupt signal for notifying the MCU 3 that the acceleration has exceeded a predetermined threshold value is set so that the logic level changes according to the positive logic, and the MCU 3 recognizes the interrupt by the rising edge of the INT signal. Was there.

図2に示すように、加速度センサ2には、電圧レギュレータ4を介して電源から供給された電圧VDDの、電源ON時における変化を検知して加速度センサ2を初期化する機能を有する初期化回路24が設けられている。この初期化回路24は、電圧VDDの変動が所定の条件を満たすか否かにより電源ON又はOFF若しくは電源電圧が変動するのを検知するので、他の負荷の消費電力の増加等の原因により、電圧VDDが所定の条件を満たすように変動する場合には、誤って加速度センサ2が初期化されてしまう可能性があった。 As shown in FIG. 2, the acceleration sensor 2 has a function of detecting a change in the voltage VDD supplied from the power supply via the voltage regulator 4 when the power is turned on and initializing the acceleration sensor 2. The circuit 24 is provided. The initialization circuit 24 detects that the power supply is turned on or off or the power supply voltage fluctuates depending on whether or not the fluctuation of the voltage VDD satisfies a predetermined condition. If the voltage VDD fluctuates so as to satisfy a predetermined condition, the acceleration sensor 2 may be erroneously initialized.

図8のタイミングT14で電源電圧の変動で初期化回路24が誤って作動することによ
り、加速度センサ2のレジスタ221が初期化されてしまうと、加速度センサ2は電源ON時に初期化された状態と同じようにINT信号の論理レベルはLowになってしまう。しかし、正論理に従って論理レベルが変化するINT信号では、測定モードの終了(T13)により、既に論理レベルがインアクティブを示すLowになっている。このため、INT信号が入力されるMCU3では、初期化回路24が誤作動してもINT信号は変化しないので、初期化回路24の誤作動により加速度センサ2が初期化されていることを認識できないという不具合が生じる。また、感震センサ1に接続された外部装置が、INT信号に対応する論理レベルのINT2信号が出力される信号線15を通じて加速度センサ2の状態を認識し、信号線13によって接続された外部装置が感震センサ1から指標値等を読み出す等の通信を行う場合にも支障が生じる。
When the register 221 of the acceleration sensor 2 is initialized due to the initialization circuit 24 erroneously operating due to the fluctuation of the power supply voltage at the timing T 14 in FIG. 8, the acceleration sensor 2 is in the initialized state when the power is turned on. Similarly, the logic level of the INT signal becomes Low. However, in the INT signal whose logic level changes according to the positive logic, the logic level is already set to Low indicating inactivity by the end of the measurement mode (T 13 ). Therefore, in the MCU 3 to which the INT signal is input, the INT signal does not change even if the initialization circuit 24 malfunctions, so that it cannot be recognized that the acceleration sensor 2 is initialized due to the malfunction of the initialization circuit 24. The problem occurs. Further, the external device connected to the seismic sensor 1 recognizes the state of the acceleration sensor 2 through the signal line 15 to which the INT2 signal of the logic level corresponding to the INT signal is output, and the external device connected by the signal line 13. However, there is a problem in performing communication such as reading an index value or the like from the seismic sensor 1.

本発明に係る感震センサ1では、図6に示すように、INT信号の論理レベルが、レジスタ221が設定(T11)され、加速度センサ2が振動待機状態に遷移すると論理レベルがHighに設定され、所定の閾値を超える加速度が測定された(T12)場合には、感震状態に遷移し論理レベルがLowに設定され、測定モードの終了により(T13)、振動待機状態に遷移し論理レベルがHighに戻るように設定されている。すなわち、加速度が所定の閾値を超えたことをMCU3に通知する割り込み信号としてのINT信号は、振動待機状態及び感震状態を含む振動検知可能状態では、負論理に従って論理レベルが変化するように設定されている。 In the seismic sensor 1 according to the present invention, as shown in FIG. 6, the logic level of the INT signal is set to high when the register 221 is set (T 11 ) and the acceleration sensor 2 transitions to the vibration standby state. When the acceleration exceeding a predetermined threshold is measured (T 12 ), the state transitions to the seismic state and the logic level is set to Low, and when the measurement mode ends (T 13 ), the state transitions to the vibration standby state. The logic level is set to return to High. That is, the INT signal as an interrupt signal for notifying the MCU 3 that the acceleration has exceeded a predetermined threshold value is set so that the logic level changes according to the negative logic in the vibration standby state and the vibration detectable state including the vibration sensitive state. Has been done.

このようにINT信号の論理レベルを設定することにより、本発明に係る感震センサ1では、初期化回路24の誤動作により加速度センサ2が初期化されると(T14)、INT信号の論理レベルがLowに変化する。ここでは、タイミングT13で測定モードが終了し振動待機状態となっている加速度センサ2のINT信号の論理レベルはHighとなっているので、INT信号の論理レベルのLowへの変化により、MUC3は何らかの事象の発生を認識することができる。そこで、信号線11を通じてMUC3が加速度センサ2のレジスタの所定アドレスの値を確認し、その値が初期されていれば初期化回路24の誤動作であることを認識することができので、それに応じた対処が可能となり不具合の発生を防止することができる。 By setting the logic level of the INT signal in this way, in the seismic sensor 1 according to the present invention, when the acceleration sensor 2 is initialized due to the malfunction of the initialization circuit 24 (T 14 ), the logic level of the INT signal Changes to Low. Here, since the logic level of the INT signal of the acceleration sensor 2 in which the measurement mode ends at the timing T 13 and is in the vibration standby state is High, the MUC 3 changes due to the change of the logic level of the INT signal to Low. It is possible to recognize the occurrence of some event. Therefore, the MUC 3 confirms the value of the predetermined address of the register of the acceleration sensor 2 through the signal line 11, and if the value is initialized, it can be recognized that the initialization circuit 24 is malfunctioning. It is possible to deal with it and prevent the occurrence of problems.

〔実施例1〕
以下では、本発明の実施例に係る感震センサについて、図面を用いて、より詳細に説明する。
[Example 1]
Hereinafter, the seismic sensor according to the embodiment of the present invention will be described in more detail with reference to the drawings.

図1に、実施例1に係る感震センサ1の概略構成を示す。 FIG. 1 shows a schematic configuration of the seismic sensor 1 according to the first embodiment.

実施例1に係る感震センサ1は、地震の規模の指標値の算出等を行う装置である。図1に示すように、感震センサ1は加速度センサ2と、マイクロコントローラ(MCU)3と、電圧レギュレータ4とを備える。加速度センサ2とMCU3とは信号線11及び信号線12によって接続されている。また、感震センサ1のMCU3からは外部装置は信号線13、信号線14、信号線15によって接続されている。ここでは、感震センサ1が電圧レギュレータ4を備える例について説明するが、電圧レギュレータ4を省略することもできる。感震センサ1が電圧レギュレータ4を備えない場合には、加速度センサ2及びMCU3に対して、電圧レギュレータ4を介した電圧VDDではなく、電源電圧VCCが直接供給される。 The seismic sensor 1 according to the first embodiment is a device that calculates an index value of the scale of an earthquake. As shown in FIG. 1, the seismic sensor 1 includes an acceleration sensor 2, a microcontroller (MCU) 3, and a voltage regulator 4. The acceleration sensor 2 and the MCU 3 are connected by a signal line 11 and a signal line 12. Further, the external device is connected to the MCU 3 of the seismic sensor 1 by a signal line 13, a signal line 14, and a signal line 15. Here, an example in which the seismic sensor 1 includes the voltage regulator 4 will be described, but the voltage regulator 4 may be omitted. When the seismic sensor 1 does not include the voltage regulator 4, the power supply voltage VCC is directly supplied to the acceleration sensor 2 and the MCU 3 instead of the voltage VDD via the voltage regulator 4.

電圧レギュレータ4は、外部の電源(乾電池等)から感震センサ1に供給された電圧VCCを電圧VDDに変換し、加速度センサ2及びMCU3に供給する。 The voltage regulator 4 converts the voltage VCC supplied to the seismic sensor 1 from an external power source (dry cell or the like) into a voltage VDD and supplies the voltage VCC to the acceleration sensor 2 and the MCU 3.

図2に、加速度センサ2の概略構成を示す。
加速度センサ2は、デジタル出力タイプの3軸加速度センサである。加速度センサ2は、主として、加速度測定部21と、制御部22と、割り込み信号出力部23、初期化回路24を有する。電圧レギュレータ4に接続された制御部22及び初期化回路24には、電圧VDDが供給される。
FIG. 2 shows a schematic configuration of the acceleration sensor 2.
The acceleration sensor 2 is a digital output type 3-axis acceleration sensor. The acceleration sensor 2 mainly includes an acceleration measurement unit 21, a control unit 22, an interrupt signal output unit 23, and an initialization circuit 24. The voltage VDD is supplied to the control unit 22 and the initialization circuit 24 connected to the voltage regulator 4.

加速度測定部21は、3軸方向の加速度を測定する。制御部22は、プロセッサ及びレジスタ221等のメモリを有し、加速度測定部21による加速度測定を司る。また、制御部22は、信号線11によりSPI方式によりMCU3と通信を行うように接続され、さらに信号線12によりMCU3に対して割り込み信号INTを出力するように接続されている。制御部22は、起動条件が満たされるのを監視し、起動条件が満たされたことを検出したときに、信号線12を通じて割り込み信号をMCU3に出力する。また、MCU3からは、信号線11を通じたSPI方式の通信により、加速度測定部21の各軸方向のオフセットや、サンプリング周波数を設定する。具体的には、MCU3が制御部22のレジスタ221の所定アドレスを所定値に設定することにより、制御部22が当該設定値を読み取り、設定値に基づいて加速度測定部21による加速度測定を制御する。そして、加速度センサ2からは、サンプリング周波数によって測定され、レジスタ221の所定領域に記憶された各軸方向の加速度情報が、信号線11を通じてMCU3に送信される。 The acceleration measuring unit 21 measures the acceleration in the three axial directions. The control unit 22 has a memory such as a processor and a register 221 and controls acceleration measurement by the acceleration measurement unit 21. Further, the control unit 22 is connected by the signal line 11 so as to communicate with the MCU 3 by the SPI method, and further connected by the signal line 12 so as to output an interrupt signal INT to the MCU 3. The control unit 22 monitors that the start condition is satisfied, and when it detects that the start condition is satisfied, outputs an interrupt signal to the MCU 3 through the signal line 12. Further, from the MCU 3, the offset in each axial direction of the acceleration measuring unit 21 and the sampling frequency are set by SPI communication through the signal line 11. Specifically, the MCU 3 sets a predetermined address of the register 221 of the control unit 22 to a predetermined value, so that the control unit 22 reads the set value and controls the acceleration measurement by the acceleration measurement unit 21 based on the set value. .. Then, from the acceleration sensor 2, the acceleration information in each axial direction measured by the sampling frequency and stored in the predetermined area of the register 221 is transmitted to the MCU 3 through the signal line 11.

初期化回路24は、電圧レギュレータ4を介して電源から供給される電圧VDDにおける所定の変動を検出した場合に、レジスタ221の所定アドレスの値を初期化することにより、加速度センサ2を初期化する機能を有する。初期化回路24が、初期化するための、電圧VDDの変動に関する条件は特に限定されないが、この判断条件を同様に満たすような電圧のVDDの変動が発生した場合にも、初期化回路24は、レジスタ221の所定アドレスの値を初期化する。 The initialization circuit 24 initializes the acceleration sensor 2 by initializing the value of the predetermined address of the register 221 when a predetermined fluctuation in the voltage VDD supplied from the power supply via the voltage regulator 4 is detected. Has the function of The conditions relating to the fluctuation of the voltage VDD for the initialization circuit 24 to initialize are not particularly limited, but the initialization circuit also occurs when the fluctuation of the VDD of the voltage that similarly satisfies this determination condition occurs. 24 initializes the value of the predetermined address of the register 221.

図3に、MCU3の概略構成を示す。 FIG. 3 shows a schematic configuration of the MCU 3.

MCU3は、加速度センサ2による加速度の測定結果に基づき、発生している地震の規模の指標値を算出する処理等を行うユニットである。本実施例では、指標値として、SI(Spectral Intensity)値及びPGA(最大加速度)を算出する。
具体的には、MCU3は、他装置(他のMCU等)から入力される指示に従って、加速度センサ設定部31、指標値算出部32、割り込み信号出力部33、記憶部34等として
機能する。MCU3は、信号線13によって他装置と接続され、I2C通信方式によりデータの送受信を行う。また、MCU3は、信号線14及び信号線15によって他装置と接続され、他装置に対して、それぞれINT1信号及びINT2信号を出力する。ここでは、割り込み信号出力部33が本発明の外部割り込み信号出力部に相当し、INT2信号が本発明の外部割り込み信号に相当する。
The MCU 3 is a unit that performs processing such as calculating an index value of the scale of an earthquake occurring based on the measurement result of acceleration by the acceleration sensor 2. In this embodiment, the SI (Spectral Intensity) value and the PGA (maximum acceleration) are calculated as index values.
Specifically, the MCU 3 functions as an acceleration sensor setting unit 31, an index value calculation unit 32, an interrupt signal output unit 33, a storage unit 34, and the like according to an instruction input from another device (another MCU or the like). The MCU 3 is connected to another device by the signal line 13, and transmits / receives data by the I2C communication method. Further, the MCU 3 is connected to another device by the signal line 14 and the signal line 15, and outputs the INT1 signal and the INT2 signal to the other device, respectively. Here, the interrupt signal output unit 33 corresponds to the external interrupt signal output unit of the present invention, and the INT2 signal corresponds to the external interrupt signal of the present invention.

図4及び図5は、感震センサ1による地震測定処理の手順を示すフローチャートである。図6は、加速度センサ2のINT信号のタイミングチャート、図7は、MCU3のINT1信号及びINT2信号のタイミングチャートである。これらの図面を参照しながら、感震センサ1による地震測定処理の手順について説明する。以下の説明では、加速度センサ2の初期化状態におけるINT信号の論理レベルがLow、振動待機状態におけるINT信号の論理レベルがHighに設定される場合について説明する。ただし、加速度センサ2の初期化状態におけるINT信号の論理レベルと振動待機状態における論理レベルが逆であればよいので、初期化状態におけるINT信号の論理レベルがHigh、振動待機状態におけるINT信号の論理レベルがLowに設定することもできる。 4 and 5 are flowcharts showing a procedure of seismic measurement processing by the seismic sensor 1. FIG. 6 is a timing chart of the INT signal of the acceleration sensor 2, and FIG. 7 is a timing chart of the INT1 signal and the INT2 signal of the MCU 3. The procedure of the seismic measurement process by the seismic sensor 1 will be described with reference to these drawings. In the following description, a case where the logic level of the INT signal in the initialization state of the acceleration sensor 2 is set to Low and the logic level of the INT signal in the vibration standby state is set to High will be described. However, since the logic level of the INT signal in the initialization state of the acceleration sensor 2 and the logic level in the vibration standby state may be opposite, the logic level of the INT signal in the initialization state is High and the logic of the INT signal in the vibration standby state is high. The level can also be set to Low.

電源がONされると、MCU3は加速度センサ2のレジスタ221を設定する(ステップS101,S201)。加速度センサ2のレジスタ221の所定アドレスが所定の値に
設定されることにより、加速度センサ2は、初期化状態から振動を待機する振動待機状態となる。
加速度センサ2の割り込み信号出力部23から出力されるINT信号としては、電源ON時には論理レベルLowである信号が出力されるが、ステップS201においてレジスタ221が設定されることにより論理レベルはHighに変更され(ステップS202)。
図6は、加速度センサ2に作用する振動と、加速度センサ2の状態と、加速度センサ2からMCU3に出力されるINT信号を時系列で示している。図6に示すように、電源ON時(T10)の時点では加速度センサ2のレジスタ221は初期化された状態であり、INT信号としては論理レベルLowが出力される。そして、加速度センサ2のレジスタ221が設定(T11)されることにより、加速度センサ2は振動待機状態となり、INT信号の論理レベルはHighとなる。
When the power is turned on, the MCU 3 sets the register 221 of the acceleration sensor 2 (steps S101 and S201). When the predetermined address of the register 221 of the acceleration sensor 2 is set to a predetermined value, the acceleration sensor 2 goes into a vibration standby state that waits for vibration from the initialization state.
As the INT signal output from the interrupt signal output unit 23 of the acceleration sensor 2, a signal having a logic level Low is output when the power is turned on, but the logic level is changed to High by setting the register 221 in step S201. (Step S202).
FIG. 6 shows the vibration acting on the acceleration sensor 2, the state of the acceleration sensor 2, and the INT signal output from the acceleration sensor 2 to the MCU 3 in chronological order. As shown in FIG. 6, when the power is turned on (T 10 ), the register 221 of the acceleration sensor 2 is in the initialized state, and the logic level Low is output as an INT signal. Then, when the register 221 of the acceleration sensor 2 is set (T 11 ), the acceleration sensor 2 is in the vibration standby state, and the logic level of the INT signal is High.

振動待機状態となった加速度センサ2によって加速度が測定される(ステップS203)。
そして、加速度センサ2の制御部22によって、測定された加速度が所定の閾値を超える(起動条件)と判断された場合、又は、電源電圧の変動により初期化回路24が作動して初期化された場合には割り込み信号出力部23は論理レベルをLowに変更したINT信号を出力する(ステップS204,S205)。ここでは、測定された加速度が所定の閾値を超えること(起動条件)が、本発明の測定される加速度が満たすべき所定の条件に相当する。
所定の閾値を超える加速度が測定されず、かつ、初期化回路24による初期化も行われない場合には、加速度センサ2は、ステップS203に戻り、加速度の測定を継続する。
図6では、T12のタイミングで、所定の閾値を超える振動が測定されINT信号の論理レベルはLowに変更される。すなわち、加速度が所定の閾値を超えたことをMCU3に通知する割り込み信号としてのINT信号は、振動待機状態において論理レベルがインアクティブでHighとなり、所定の閾値を超える加速度が測定された感震状態において論理レベルがアクティブでLowとなる。このように、加速度が所定の閾値を超えたことをMCU3に通知する割り込み信号としてのINT信号の論理レベルは、振動待機状態及び感震状態を含む振動検知可能状態において負論理に設定されている。また、図6では、T14のタイミングで、加速度センサ2のレジスタ221の所定アドレスが初期化され、INT信号として論理レベルがLowの信号が出力される。
The acceleration is measured by the acceleration sensor 2 in the vibration standby state (step S203).
Then, when the control unit 22 of the acceleration sensor 2 determines that the measured acceleration exceeds a predetermined threshold value (starting condition), or when the power supply voltage fluctuates, the initialization circuit 24 is activated and initialized. In this case, the interrupt signal output unit 23 outputs an INT signal whose logic level is changed to Low (steps S204 and S205). Here, the fact that the measured acceleration exceeds a predetermined threshold value (starting condition) corresponds to a predetermined condition that the measured acceleration of the present invention should satisfy.
If the acceleration exceeding a predetermined threshold value is not measured and the initialization by the initialization circuit 24 is not performed, the acceleration sensor 2 returns to step S203 and continues the measurement of the acceleration.
In FIG. 6, at the timing of T 12 , vibration exceeding a predetermined threshold value is measured and the logic level of the INT signal is changed to Low. That is, the INT signal as an interrupt signal for notifying the MCU3 that the acceleration has exceeded a predetermined threshold has a logic level inactive and becomes High in the vibration standby state, and is in a seismic state in which the acceleration exceeding the predetermined threshold is measured. In, the logic level is active and becomes Low. As described above, the logic level of the INT signal as an interrupt signal for notifying the MCU 3 that the acceleration has exceeded a predetermined threshold value is set to negative logic in the vibration detectionable state including the vibration standby state and the vibration sensitive state. .. Further, in FIG. 6, at the timing of T 14 , the predetermined address of the register 221 of the acceleration sensor 2 is initialized, and a signal having a logic level of Low is output as an INT signal.

MCU3の指標値算出部32は、INT信号がLowへと変化する立下りを割り込み信号として検出する。加速度センサ2はINT信号の論理レベルをLowに変更し、感震状態に遷移する。これにより、加速度センサ2は、測定モードで動作する。そして、MCU3の割り込み信号出力部33は、信号線15を通じて論理レベルHighが出力されていたINT2信号の論理レベルをLowに変更する(ステップS102)。
図7は、MCU3の割り込み信号出力部33から出力されるINT1信号及びINT2信号を時系列で示す。図7に示すように、所定の閾値を超える振動が検出されるとINT信号の論理レベルがLowに変化するタイミング(T12)で、感震状態に移行し、割り込み信号出力部33は、INT2信号の論理レベルをHighからLowに変更する。
The index value calculation unit 32 of the MCU 3 detects a falling edge in which the INT signal changes to Low as an interrupt signal. The acceleration sensor 2 changes the logic level of the INT signal to Low, and transitions to a seismic state. As a result, the accelerometer 2 operates in the measurement mode. Then, the interrupt signal output unit 33 of the MCU 3 changes the logic level of the INT2 signal from which the logic level High was output through the signal line 15 to Low (step S102).
FIG. 7 shows the INT1 signal and the INT2 signal output from the interrupt signal output unit 33 of the MCU 3 in chronological order. As shown in FIG. 7, when a vibration exceeding a predetermined threshold value is detected, the state shifts to a seismic state at the timing (T 12 ) when the logic level of the INT signal changes to Low, and the interrupt signal output unit 33 enters the INT 2 Change the logic level of the signal from High to Low.

INT信号がLowに変化したのを検出したMCU3の指標値算出部32は、信号線11を通じて加速度センサ2のレジスタ221の所定アドレスの値をチェックする(ステップS103)。
加速度センサ2は、レジスタ221の所定アドレスへのMCU3のアクセスを検出すると(ステップ206)、INT信号の論理レベルをHighに変更し(ステップS207)、測定した加速度情報を、信号線11を通じてSPI方式でMCU3に送信する(ステップS207)。
The index value calculation unit 32 of the MCU 3 that has detected that the INT signal has changed to Low checks the value of the predetermined address of the register 221 of the acceleration sensor 2 through the signal line 11 (step S103).
When the acceleration sensor 2 detects the access of the MCU 3 to the predetermined address of the register 221 (step 206), the logic level of the INT signal is changed to High (step S207), and the measured acceleration information is transferred to the SPI method through the signal line 11. Is transmitted to the MCU 3 (step S207).

MCU3の指標値算出部32は、加速度センサ2のレジスタ221の所定アドレスが初期化されているか否かを判断する(ステップS104)。
ステップS104において、Yesと判断された場合、すなわち、加速度センサ2のレジスタ221の所定アドレスが初期化されていた場合には、異常処理を行う(ステップS105)。図6に示す例では、MCU3の指標値算出部32が、T14のタイミングでのINT信号のLowレベルへの変化を検出した場合には、ステップS103において、加速度センサ2のレジスタ221の所定アドレスのチェックし、ステップS104において、当該レジスタ値が初期化されていると判断するので、ステップS105に進み、異常処理を行う。
ステップS104において、Noと判断された場合、すなわち、加速度センサ2のレジスタ221に所定アドレスが初期化されていない場合に、MCU3の指標値算出部32では、加速度センサ2から受信した加速度情報を受信し(ステップS106)、受信した加速度情報に基づいて、SI値及びPGAを算出する(ステップS107)。算出されたSI値及びPGAは、記憶部34に記憶される。このとき、MCU3に接続された外部装置(例えば、他のマイクロコントローラ)には、信号線15を通じて、INT2信号が入力され、INT2信号の論理レベルがLowであることにより、感震センサ1が感震状態であることを認識し、必要に応じて、信号線13を通じてI2C方式により感震センサ1の記憶部34に記憶されたSI値等を読み出すことができる。
The index value calculation unit 32 of the MCU 3 determines whether or not the predetermined address of the register 221 of the acceleration sensor 2 is initialized (step S104).
If it is determined to be Yes in step S104, that is, if the predetermined address of the register 221 of the acceleration sensor 2 has been initialized, an abnormality process is performed (step S105). In the example shown in FIG. 6, when the index value calculation unit 32 of the MCU 3 detects the change of the INT signal to the Low level at the timing of T 14 , in step S103, the predetermined address of the register 221 of the acceleration sensor 2 Is checked, and in step S104, it is determined that the register value has been initialized. Therefore, the process proceeds to step S105 to perform an abnormality process.
When No is determined in step S104, that is, when the predetermined address is not initialized in the register 221 of the acceleration sensor 2, the index value calculation unit 32 of the MCU 3 receives the acceleration information received from the acceleration sensor 2. (Step S106), the SI value and PGA are calculated based on the received acceleration information (step S107). The calculated SI value and PGA are stored in the storage unit 34. At this time, the INT2 signal is input to the external device (for example, another microcontroller) connected to the MCU 3 through the signal line 15, and the logical level of the INT2 signal is Low, so that the seismic sensor 1 feels. Recognizing that it is in a seismic state, it is possible to read out the SI value and the like stored in the storage unit 34 of the seismic sensor 1 by the I2C method through the signal line 13 as needed.

MCU3の指標値算出部32では、算出したSI値等の指標に基づいて、地震判定が成立するか否か、すなわわち、加速度センサ2で検知された振動が地震であるか否を所定の条件に従って判定する(ステップ108)。
ステップS108においてNoと判断された場合には、MCU3の指標値算出部32は、ステップS107に戻り、加速度センサ2から送信される加速度情報に基づく指標値の算出を継続する。
ステップS108においてYesと判断された場合、例えば、指標が遮断条件、すなわち遮断信号を出力すべき条件(日本配線器具工業会規格JWDS 0007付2)を満たすと判断した場合には、指標値算出部32は、信号線14にINT1信号として論理レベルLowを出力する(ステップS109)。このINT1信号の立下りが遮断信号であり、外部装置は、INT1信号の論理レベルがLow(アクティブ)となることにより、遮断条件が満たされたことを認識し、遮断弁を閉じる等の必要な動作を指示する。図7に示すように、遮断条件が成立すると(T21)、High(インアクティブ)となっていたINT1信号の論理レベルがLow(アクティブ)に変更される。
図6では、測定モードが終了すると(T13)、加速度センサ2は感震状態から振動待機状態に遷移し、INT信号の論理レベルはHighに変更される。図7に示すように、測定モード終了(T13)により、INT1信号及びINT2信号の論理レベルは、いずれもLowに変更される。
The index value calculation unit 32 of the MCU 3 determines whether or not the earthquake determination is established, that is, whether or not the vibration detected by the acceleration sensor 2 is an earthquake, based on the calculated index such as the SI value. (Step 108).
If No is determined in step S108, the index value calculation unit 32 of the MCU 3 returns to step S107 and continues to calculate the index value based on the acceleration information transmitted from the acceleration sensor 2.
If it is determined to be Yes in step S108, for example, if it is determined that the index satisfies the cutoff condition, that is, the condition for outputting the cutoff signal (Japan Wiring Equipment Manufacturers Association Standard JWDS 0007 Appendix 2), the index value calculation unit. 32 outputs the logic level Low as an INT1 signal to the signal line 14 (step S109). The falling edge of this INT1 signal is a cutoff signal, and the external device recognizes that the cutoff condition is satisfied by setting the logic level of the INT1 signal to Low (active), and it is necessary to close the cutoff valve. Instruct the operation. As shown in FIG. 7, when the cutoff condition is satisfied (T 21 ), the logic level of the INT1 signal which has been High (inactive) is changed to Low (active).
In FIG. 6, when the measurement mode ends (T 13 ), the acceleration sensor 2 transitions from the seismic sensory state to the vibration standby state, and the logic level of the INT signal is changed to High. As shown in FIG. 7, when the measurement mode ends (T 13 ), the logic levels of the INT1 signal and the INT2 signal are both changed to Low.

上述したように、測定モードが終了し、又は、地震の発生が検出されず振動待機状態が継続している場合には、INT信号としては、インアクティブであることを示す論理レベルがHighの信号が加速度センサ2の割り込み信号出力部23から出力されている。しかし、電源ON時ではないにもかかわらず、加速度センサ2に供給される電圧VDDが変動して初期化回路24が作動すると、加速度センサ2のレジスタ221が初期化される。このようにレジスタ221が初期化されると、加速度センサ2は振動検知可能状態から初期化状態に強制的に遷移してしまい、感震センサ1が地震を検知できないという不具合が発生する。このとき、加速度センサ2は電源ON時と同様に初期化された状態となり、INT信号として論理レベルがLowの信号を出力する。本実施例では、MCU3によってINT信号を監視することにより、INT信号の割り込み、すなわち、INT信号の論理レベルが、インアクティブを示すHighからアクティブを示すLowに変化することを
検知し、加速度センサ2のレジスタ221の所定アドレスの値をチェックするようにしている。これにより、電源ON時ではないにもかかわらず初期化回路24が作動したか否かを確認することができるので、状態に応じた適切な対応が可能となり、不具合の発生を防止することができる。
As described above, when the measurement mode ends, or when the occurrence of an earthquake is not detected and the vibration standby state continues, the INT signal has a logic level of High indicating that it is inactive. Is output from the interrupt signal output unit 23 of the acceleration sensor 2. However, when the voltage VDD supplied to the acceleration sensor 2 fluctuates and the initialization circuit 24 operates even though the power is not turned on, the register 221 of the acceleration sensor 2 is initialized. When the register 221 is initialized in this way, the accelerometer 2 forcibly transitions from the vibration-detectable state to the initialized state, causing a problem that the seismic sensor 1 cannot detect an earthquake. At this time, the acceleration sensor 2 is in the initialized state as in the case of turning on the power, and outputs a signal having a logic level of Low as an INT signal. In this embodiment, by monitoring the INT signal by the MCU 3, it is detected that the INT signal is interrupted, that is, the logic level of the INT signal changes from High indicating inactivity to Low indicating active, and the acceleration sensor 2 The value of the predetermined address of the register 221 of the above is checked. As a result, it is possible to confirm whether or not the initialization circuit 24 has been operated even though the power is not turned on, so that it is possible to take appropriate measures according to the state and prevent the occurrence of a problem. ..

なお、以下には本発明の構成要件と実施例の構成とを対比可能とするために、本発明の構成要件を図面の符号付きで記載しておく。
<発明1>
マイクロコントローラ(3)と加速度センサ(2)とを備えた感震センサ(1)であって、
前記加速度センサ(2)は、
測定される加速度が所定の条件を満たしたことを前記マイクロコントローラ(3)に通知する割り込み信号を出力する割り込み信号出力部(23)と、
電源から該加速度センサ(2)に供給される電圧の所定の変動を検知して、該加速度センサを初期化する初期化回路(24)と、
を有し、
前記割り込み信号は、該加速度センサが初期化された初期化状態と、振動を待機する振動待機状態とで論理レベルが逆となり、かつ、測定される加速度が前記所定の条件を満たした場合に論理レベルが該初期化状態と同一となることを特徴とする感震センサ(1)。
In addition, in order to make it possible to compare the constituent elements of the present invention with the configurations of the examples, the constituent elements of the present invention are described below with reference numerals in the drawings.
<Invention 1>
A seismic sensor (1) equipped with a microcontroller (3) and an acceleration sensor (2).
The acceleration sensor (2) is
An interrupt signal output unit (23) that outputs an interrupt signal that notifies the microcontroller (3) that the measured acceleration satisfies a predetermined condition, and
An initialization circuit (24) that detects a predetermined fluctuation in the voltage supplied from the power source to the accelerometer (2) and initializes the accelerometer.
Have,
The interrupt signal is logical when the logic level is opposite between the initialization state in which the acceleration sensor is initialized and the vibration standby state in which the acceleration sensor is waiting, and the measured acceleration satisfies the predetermined condition. A seismic sensor (1) characterized in that the level is the same as the initialized state.

1 :感震センサ
2 :加速度センサ
3 :マイクロコントローラ
23 :割り込み信号出力部
24 :初期化回路
33 :割り込み信号出力部
1: Seismic sensor 2: Accelerometer 3: Microcontroller 23: Interrupt signal output unit 24: Initialization circuit 33: Interrupt signal output unit

Claims (3)

マイクロコントローラと加速度センサとを備えた感震センサであって、
前記加速度センサは、
測定される加速度が所定の条件を満たしたことを前記マイクロコントローラに通知する割り込み信号を出力する割り込み信号出力部と、
電源から該加速度センサに供給される電圧の所定の変動を検知して、該加速度センサを初期化する初期化回路と、
を有し、
前記割り込み信号は、該加速度センサが初期化された初期化状態と、振動を待機する振動待機状態とで論理レベルが逆となり、かつ、測定される加速度が前記所定の条件を満たした場合に論理レベルが該初期化状態と同一となることを特徴とする感震センサ。
It is a seismic sensor equipped with a microcontroller and an acceleration sensor.
The accelerometer
An interrupt signal output unit that outputs an interrupt signal that notifies the microcontroller that the measured acceleration meets a predetermined condition, and
An initialization circuit that detects a predetermined fluctuation in the voltage supplied from the power supply to the accelerometer and initializes the accelerometer.
Have,
The interrupt signal is logical when the logic level is opposite between the initialization state in which the acceleration sensor is initialized and the vibration standby state in which the acceleration sensor is waiting, and the measured acceleration satisfies the predetermined condition. A seismic sensor characterized in that the level is the same as the initialized state.
前記マイクロコントローラが前記加速度センサのレジスタの所定アドレスを所定の値に設定することにより、該加速度センサは前記初期化状態から前記振動待機状態に遷移し、
前記加速度センサが前記振動待機状態にある場合に、前記マイクロコントローラが、前記割り込み信号の論理レベルの変化を検知したときは、前記マイクロコントローラは、前記加速度センサの前記レジスタの前記所定アドレスの値を確認することを特徴とする請求項1に記載の感震センサ。
When the microcontroller sets a predetermined address of the register of the acceleration sensor to a predetermined value, the acceleration sensor transitions from the initialization state to the vibration standby state.
When the acceleration sensor is in the vibration standby state and the microcontroller detects a change in the logic level of the interrupt signal, the microcontroller sets the value of the predetermined address of the register of the acceleration sensor. The seismic sensor according to claim 1, wherein the sensor is to be confirmed.
外部装置に対する外部割り込み信号を出力する外部割り込み信号出力部を備え、
前記マイクロコントローラは、前記加速度センサから出力される前記割り込み信号の論理レベルが前記初期化状態と同一の論理レベルに変化するのに応じて、前記外部割り込み信号の論理レベルをアクティブに設定することを特徴とする請求項1又は2に記載の感震センサ。
Equipped with an external interrupt signal output unit that outputs an external interrupt signal to an external device
The microcontroller actively sets the logic level of the external interrupt signal in response to the change of the logic level of the interrupt signal output from the acceleration sensor to the same logic level as the initialization state. The seismic sensor according to claim 1 or 2, wherein the seismic sensor is characterized.
JP2020194136A 2020-11-24 2020-11-24 Seismic sensor Active JP7435419B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2020194136A JP7435419B2 (en) 2020-11-24 2020-11-24 Seismic sensor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2020194136A JP7435419B2 (en) 2020-11-24 2020-11-24 Seismic sensor

Publications (2)

Publication Number Publication Date
JP2022082945A true JP2022082945A (en) 2022-06-03
JP7435419B2 JP7435419B2 (en) 2024-02-21

Family

ID=81811844

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2020194136A Active JP7435419B2 (en) 2020-11-24 2020-11-24 Seismic sensor

Country Status (1)

Country Link
JP (1) JP7435419B2 (en)

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3911854B2 (en) 1998-06-25 2007-05-09 松下電器産業株式会社 Vibration detector
JP2000162032A (en) 1998-12-01 2000-06-16 Sensor Gijutsu Kenkyusho:Kk Earthquake detector
JP2007232377A (en) 2006-02-27 2007-09-13 Toshiba Corp Information processing apparatus and seismic monitoring method
JP4820692B2 (en) 2006-05-30 2011-11-24 Okiセミコンダクタ株式会社 Sensor control circuit
JP5591898B2 (en) 2012-10-09 2014-09-17 有限会社アルニック Vibration sensing device
AU2017346943A1 (en) 2016-10-21 2018-07-05 Silicon Controls Pty Ltd An electronic device
WO2019171708A1 (en) 2018-03-06 2019-09-12 ローム株式会社 Vibration recording device

Also Published As

Publication number Publication date
JP7435419B2 (en) 2024-02-21

Similar Documents

Publication Publication Date Title
EP2324407B1 (en) Circuit having a low power mode
US7516347B2 (en) Electronic device having power-down mode and method of reducing power consumption
JP2015513664A (en) Apparatus, system, and method for detecting and reacting to exposure of electronic devices to moisture
US20110109170A1 (en) Hand-held electronic device and method for preventing fall of the same
US7408475B2 (en) Power supply monitoring device
JP2022082945A (en) Seismic sensor
TWI434048B (en) Voltage detection circuit
JP2005037300A (en) Portable equipment having acceleration history recording function, and acceleration sensor device used for the same
JP2008261718A (en) Proximity sensor with self-diagnostic function
CN107831983A (en) Overvoltage protection control methods, device, mobile terminal and readable storage medium storing program for executing
JP7063692B2 (en) Watchdog timer monitoring system
JP4479002B2 (en) Debugging system and method for equipment having CPU power saving function
JP2003242049A (en) Method of detecting abnormality in microcomputer
KR100719257B1 (en) The touch sensor which automatic movement is adapted to a external environment
US7839717B2 (en) Semiconductor device with reduced standby failures
JP2000088680A (en) Electronic equipment system with shock-sensitive function
US6861769B1 (en) Apparatus and method for protection of an electronic circuit
JP4709504B2 (en) Electronic circuit failure judgment circuit
US11248617B2 (en) Fan control system
US7080280B2 (en) Power failure sensing device and a card reader having a power failure sensing device
US9553975B2 (en) Portable terminal and method for controlling portable terminal
CN110134570A (en) A kind of server and its concussion protective device
CN113268163B (en) Touch display screen, electronic equipment and touch panel error touch prevention method
US20100057406A1 (en) Electrical Equipment Device
JP2001188687A (en) Microcomputer

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20230228

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20231122

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: 20240109

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20240122

R150 Certificate of patent or registration of utility model

Ref document number: 7435419

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150