JP2012181677A - Physical quantity measuring device - Google Patents

Physical quantity measuring device Download PDF

Info

Publication number
JP2012181677A
JP2012181677A JP2011044191A JP2011044191A JP2012181677A JP 2012181677 A JP2012181677 A JP 2012181677A JP 2011044191 A JP2011044191 A JP 2011044191A JP 2011044191 A JP2011044191 A JP 2011044191A JP 2012181677 A JP2012181677 A JP 2012181677A
Authority
JP
Japan
Prior art keywords
command
signal
physical quantity
measuring device
circuit
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.)
Pending
Application number
JP2011044191A
Other languages
Japanese (ja)
Inventor
Masataka Kazuno
雅隆 數野
Katsuhito Nakajima
克仁 中島
Takashi Aoyama
孝志 青山
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2011044191A priority Critical patent/JP2012181677A/en
Publication of JP2012181677A publication Critical patent/JP2012181677A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Arrangements For Transmission Of Measured Signals (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a physical quantity measuring device with high reliability that executes an error notification with respect to bit error and the like during communication as well as with respect to a failure in a circuit by using a serial communication system such as an SPI.SOLUTION: A physical quantity measuring device includes: a sensor element 4 that detects a predetermined physical quantity so as to output first signals 90 and 92; a detecting circuit 6 for generating a second signal 40 based on the first signals 90 and 92; a driving circuit 5 that generates a driving signal 82 so as to supply the driving signal 82 to the sensor element; a fault diagnosis section 20 that receives third signals 42 and 44 being internal signals from at least one of the detecting circuit 6 and the driving circuit 5 so as to execute a fault diagnosis and to output a fourth signal 30; and an interface section 10 that receives a command and serially transmits response data including data requested by the command. The interface section 10 causes the response data to include at least a command error flag indicating whether or not an error occurs with respect to the command during communication.

Description

本発明は、物理量測定装置等に関する。   The present invention relates to a physical quantity measuring device and the like.

安全性が求められる自動車、飛行機、船舶、鉄道等に搭載される物理量測定装置には高い信頼性が要求される。このような物理量測定装置は、例えばホストCPUからの要求に応じて検出された物理量に応じた信号を正確に出力する必要がある。そして、万一エラーが生じた場合には直ちにホストCPUに通知することが要求される。   High reliability is required for physical quantity measuring devices mounted on automobiles, airplanes, ships, railways, and the like that require safety. Such a physical quantity measuring apparatus needs to output a signal corresponding to the physical quantity detected in response to a request from the host CPU, for example. If an error occurs, it is required to notify the host CPU immediately.

特許文献1の発明は、送信の単位であるバイト毎にエラーの有無を示すフラグを1ビット設けることでエラーの通知を行う。また、特許文献2の発明は、4ビットのエラーコードを含む故障診断出力用データを用意してエラーの通知を行う。   In the invention of Patent Document 1, an error is notified by providing one bit of a flag indicating the presence / absence of an error for each byte as a transmission unit. The invention of Patent Document 2 prepares fault diagnosis output data including a 4-bit error code and notifies an error.

特開2007−285745号公報JP 2007-285745 A 特開2007−230514号公報JP 2007-230514 A

しかし、特許文献1および特許文献2の発明では、検出装置の回路の故障についてエラーの通知を行うが、通信時に発生するエラーは対象としていない。例えば、検出装置はホストCPUからコマンドを受け取り、コマンドの内容に応じて複数のデータから適切なものを選択する場合がある。このとき、コマンドを正しく受け取ることができなければ、特許文献1および特許文献2の発明では正しいデータを送信できない。   However, in the inventions of Patent Document 1 and Patent Document 2, an error is notified about a failure of the circuit of the detection apparatus, but errors that occur during communication are not targeted. For example, the detection device may receive a command from the host CPU and select an appropriate one from a plurality of data depending on the content of the command. At this time, if the command cannot be received correctly, the inventions of Patent Document 1 and Patent Document 2 cannot transmit correct data.

ここで、例えばI2Cなどのハンドシェイクを行う通信方式を採用することにより、確実にコマンドを受け取ることが可能である。しかし、I2Cは送信速度が遅く、近年の高速通信の要求を満たさない。また、通信中のノイズなどでコマンドにビット化けが生じた場合、検出装置がコマンドを確実に受け取ったとしても、誤ったコマンドに対応したデータを送信する恐れがある。   Here, for example, by adopting a communication method that performs handshake such as I2C, it is possible to receive a command reliably. However, I2C has a low transmission speed and does not satisfy the demand for high-speed communication in recent years. In addition, when a command is garbled due to noise during communication, data corresponding to an erroneous command may be transmitted even if the detection device receives the command reliably.

本発明はこのような問題点に鑑みてなされたものである。本発明のいくつかの態様によれば、例えば特許文献1で使用しているSPI(Serial Peripheral Interface)のように、より高速なシリアル通信方式を用いることができ、回路の故障のみならず、通信中のビット化けなどについてもエラー通知を行う、信頼性の高い物理量測定装置等を提供する。   The present invention has been made in view of such problems. According to some aspects of the present invention, it is possible to use a higher-speed serial communication method such as SPI (Serial Peripheral Interface) used in Patent Document 1, for example, not only a circuit failure but also communication. Provided is a highly reliable physical quantity measuring device that provides error notification even when bits are garbled.

(1)本発明は、所定の物理量を検出する物理量測定装置であって、前記所定の物理量を検出し、検出された前記所定の物理量の大きさに応じた信号である第1の信号を出力するセンサー素子と、前記第1の信号に基づいて、前記所定の物理量に応じた第2の信号を生成する検出回路と、駆動信号を生成し、前記駆動信号を前記センサー素子に供給する駆動回路と、前記検出回路および前記駆動回路の少なくとも1つから内部信号である第3の信号を受け取り、前記第3の信号に基づいて前記検出回路および前記駆動回路の少なくとも1つについての故障診断を行い、前記故障診断の結果に応じた信号である第4の信号を出力する故障診断部と、コマンドを受け取り、前記コマンドが要求するデータであるコマンド要求データを生成し、前記コマンド要求データを含む応答データをシリアルに送信するインターフェース部と、を含み、前記インターフェース部は、前記第2の信号および前記第4の信号のうち少なくとも1つの信号に基づいて前記コマンド要求データを生成し、前記応答データに、エラーの発生の有無を表すエラーフラグを含め、前記エラーフラグに、前記コマンドについて通信中にエラーが発生したか否かを表すコマンドエラーフラグを少なくとも含める。 (1) The present invention is a physical quantity measuring device that detects a predetermined physical quantity, detects the predetermined physical quantity, and outputs a first signal that is a signal corresponding to the detected magnitude of the predetermined physical quantity. A sensor element that generates a second signal according to the predetermined physical quantity based on the first signal, and a drive circuit that generates a drive signal and supplies the drive signal to the sensor element And receiving a third signal that is an internal signal from at least one of the detection circuit and the drive circuit, and performing a failure diagnosis on at least one of the detection circuit and the drive circuit based on the third signal. A failure diagnosis unit that outputs a fourth signal that is a signal corresponding to the result of the failure diagnosis; and a command is received, command request data that is data requested by the command is generated, and An interface unit that serially transmits response data including command request data, and the interface unit generates the command request data based on at least one of the second signal and the fourth signal The response data includes an error flag indicating whether or not an error has occurred, and the error flag includes at least a command error flag indicating whether or not an error has occurred during communication for the command.

(2)この物理量測定装置において、前記インターフェース部は、他の前記コマンドと重ならない固有の1つのビットのみに所定の値を有するコマンドデータをシリアルに受け取り、前記コマンドデータに基づいて、前記コマンドについて通信中にエラーが発生したか否かを判断して、前記エラーフラグの値を定めてもよい。 (2) In this physical quantity measuring device, the interface unit serially receives command data having a predetermined value in only one unique bit that does not overlap with another command, and based on the command data, The value of the error flag may be determined by determining whether an error has occurred during communication.

これらの発明によれば、物理量測定装置に含まれるインターフェース部は、受け取ったコマンドについて通信中にエラーが発生したか否かを表すコマンドエラーフラグを含む応答データをシリアルに送信する。そのため、回路の故障のみならず、通信中のビット化けなどについてもエラー通知を行う、信頼性の高い物理量測定装置を提供できる。   According to these inventions, the interface unit included in the physical quantity measuring device serially transmits response data including a command error flag indicating whether or not an error has occurred during communication for the received command. For this reason, it is possible to provide a highly reliable physical quantity measuring apparatus that performs error notification not only for circuit failures but also for garbled bits during communication.

このとき、インターフェース部は、他のコマンドと重ならない固有の1つのビットのみに、所定の値(例えば1)を有するコマンドデータをシリアルに受け取り、コマンドデータに基づいて、通信中にエラーが発生したか否かを判断してもよい。例えば、受け取ったコマンドデータで2つ以上のビットが1である場合、又は、1がない場合に、インターフェース部は直ちに通信中にエラーが発生したと判断できる。   At this time, the interface unit serially receives command data having a predetermined value (for example, 1) in only one unique bit that does not overlap with another command, and an error has occurred during communication based on the command data. It may be determined whether or not. For example, when two or more bits are 1 in the received command data, or when there is no 1, the interface unit can immediately determine that an error has occurred during communication.

ここで、物理量測定装置のセンサー素子が検出する所定の物理量とは、例えば角速度、加速度、速度、変位量、流量、温度、圧力、照度等であってもよいが、これらに限られない。例えば、所定の物理量が角速度である場合、物理量測定装置は角速度センサーとして機能する。このとき、センサー素子は、振動する物体を回転させた場合に物体の振動方向と回転軸のそれぞれに直交する方向に作用するコリオリ力に基づいて角速度を検出する。角速度センサーのセンサー素子は例えば振動子で構成される。   Here, the predetermined physical quantity detected by the sensor element of the physical quantity measuring device may be, for example, angular velocity, acceleration, velocity, displacement, flow rate, temperature, pressure, illuminance, etc., but is not limited thereto. For example, when the predetermined physical quantity is an angular velocity, the physical quantity measuring device functions as an angular velocity sensor. At this time, the sensor element detects the angular velocity based on the Coriolis force acting in the direction orthogonal to the vibration direction of the object and the rotation axis when the vibrating object is rotated. The sensor element of the angular velocity sensor is composed of a vibrator, for example.

また、インターフェース部はシリアル通信を行うが、通信方式は例えばSPIであってもよいし、双方向のデータ線を用いる3線式のシリアル通信等であってもよい。そして、駆動回路、検出回路からの内部信号とは、これらの回路の内部の状態を表す信号の意味であり、必ずしも回路の内部に閉じた信号を指すわけではない。   The interface unit performs serial communication, but the communication method may be SPI, for example, or 3-wire serial communication using a bidirectional data line. The internal signals from the drive circuit and the detection circuit mean the signals representing the internal state of these circuits, and do not necessarily indicate the signals closed inside the circuits.

(3)この物理量測定装置において、前記インターフェース部は、前記コマンドの1つである故障診断結果出力コマンドを受け取った場合に、前記故障診断部が行った前記故障診断のそれぞれの結果を含む前記コマンド要求データを生成してもよい。 (3) In this physical quantity measuring device, the interface unit includes the command including each result of the failure diagnosis performed by the failure diagnosis unit when receiving a failure diagnosis result output command which is one of the commands. Request data may be generated.

本発明によれば、インターフェース部は、故障診断結果出力コマンドを受け取った場合に、故障診断部が行った故障診断のそれぞれの結果を含むコマンド要求データを生成する。このとき、例えばホストCPUは、故障診断の詳細を知ることが可能であるため、故障箇所を早期に特定でき、早期の対応を行うことができる。   According to the present invention, when the interface unit receives a failure diagnosis result output command, the interface unit generates command request data including each result of the failure diagnosis performed by the failure diagnosis unit. At this time, for example, since the host CPU can know the details of the failure diagnosis, the failure location can be identified at an early stage, and an early response can be performed.

(4)この物理量測定装置において、前記インターフェース部は、前記応答データに、前記コマンド要求データおよび前記エラーフラグについてのチェックサムを含めてもよい。 (4) In this physical quantity measuring device, the interface unit may include a checksum for the command request data and the error flag in the response data.

本発明によれば、インターフェース部は、コマンド要求データだけでなくエラーフラグまでも含めたデータについてのチェックサムを計算する。そして、そのチェックサムを含む応答データを送信する。これにより、例えばホストCPUは、物理量測定装置からの送信途中でエラーが発生したか否かを直ちに知ることができるため、応答データの信頼性が高まる。   According to the present invention, the interface unit calculates a checksum for data including not only command request data but also an error flag. Then, response data including the checksum is transmitted. Thereby, for example, the host CPU can immediately know whether or not an error has occurred during transmission from the physical quantity measuring device, so that the reliability of the response data is increased.

また、エラーフラグまでもチェックサムの対象にすることで、コマンド要求データ以外については正しさを確認できないといった問題は生じない。   Further, since the error flag is also subject to the checksum, there is no problem that the correctness cannot be confirmed except for the command request data.

なお、チェックサムは、コマンド要求データおよびエラーフラグの全ビットにおける1の総和であってもよい。また、応答データに含む場合に、その補数が使われてもよい。   The checksum may be a sum of 1 in all bits of the command request data and the error flag. Further, when it is included in the response data, its complement may be used.

(5)この物理量測定装置において、前記インターフェース部は、前記応答データを複数回に分けて送信してもよい。 (5) In this physical quantity measuring device, the interface unit may transmit the response data in a plurality of times.

本発明によれば、応答データを複数回に分けて送信できるので、例えば検出精度の向上に伴い検出回路が出力する信号のビット数が増えた場合などでも、容易に対応が可能になる。よって、拡張性に優れる物理量測定装置を提供できる。   According to the present invention, since the response data can be transmitted in a plurality of times, for example, even when the number of bits of the signal output from the detection circuit increases with improvement in detection accuracy, it is possible to easily cope with the response data. Therefore, a physical quantity measuring device excellent in expandability can be provided.

(6)この物理量測定装置において、前記センサー素子は、前記所定の物理量として角速度を検出してもよい。 (6) In this physical quantity measuring device, the sensor element may detect an angular velocity as the predetermined physical quantity.

本発明によれば、所定の物理量は角速度であってもよい。このとき、回路の故障のみならず、通信中のビット化けなどについてもエラー通知を行うので信頼性が高い。よって、例えば、信頼性が要求される車両に搭載されて、走行制御や推測航法等に用いる角速度センサーとして使用され得る。   According to the present invention, the predetermined physical quantity may be an angular velocity. At this time, not only the failure of the circuit but also the error notification about the garbled bits during communication is performed, so that the reliability is high. Thus, for example, it can be used as an angular velocity sensor that is mounted on a vehicle that requires reliability and used for travel control, dead reckoning navigation, and the like.

第1実施形態における物理量測定装置のブロック図。The block diagram of the physical quantity measuring apparatus in 1st Embodiment. 第1実施形態の故障診断部の構成例を示す図。The figure which shows the structural example of the failure diagnosis part of 1st Embodiment. 第1実施形態のインターフェース部のブロック図。The block diagram of the interface part of 1st Embodiment. 第1実施形態のコマンドデータを示す図。The figure which shows the command data of 1st Embodiment. 第1実施形態の応答データを示す図。The figure which shows the response data of 1st Embodiment. 第1実施形態のコマンドデータと応答データの送受信のタイミング図。The timing diagram of transmission / reception of the command data and response data of 1st Embodiment. 第1実施形態の駆動回路の1つの例を表すブロック図。FIG. 3 is a block diagram illustrating an example of a drive circuit according to the first embodiment. 第1実施形態の検出回路の1つの例を表すブロック図。The block diagram showing one example of the detection circuit of a 1st embodiment. 第1実施形態の検出回路の別の例を表すブロック図。The block diagram showing another example of the detection circuit of a 1st embodiment.

1.第1実施形態
本発明の第1実施形態について図1〜図9を参照して説明する。
1. First Embodiment A first embodiment of the present invention will be described with reference to FIGS.

1.1.本実施形態の物理量測定装置の構成
図1は、本実施形態の物理量測定装置1のブロック図である。物理量測定装置1は、センサー素子4、駆動回路5、検出回路6、故障診断部20、インターフェース部10を含む。物理量測定装置1は、さらに動作設定回路7を含んでいてもよい。
1.1. Configuration of Physical Quantity Measuring Device of this Embodiment FIG. 1 is a block diagram of a physical quantity measuring device 1 of this embodiment. The physical quantity measuring device 1 includes a sensor element 4, a drive circuit 5, a detection circuit 6, a failure diagnosis unit 20, and an interface unit 10. The physical quantity measuring device 1 may further include an operation setting circuit 7.

本実施形態のセンサー素子4は、例えば一体である振動子2、3を含み、角速度を検出する。ここで、角速度の大きさに応じた信号であってセンサー素子4が出力する信号を第1の信号とする。図1では、第1の信号は差動信号90、92である。なお、本実施形態ではノイズ耐性のために、振動子3から差動信号90、92が出力されるが、差動でない1つの信号が出力されてもよい。   The sensor element 4 of the present embodiment includes, for example, integrated vibrators 2 and 3 and detects angular velocity. Here, a signal corresponding to the magnitude of the angular velocity and output from the sensor element 4 is a first signal. In FIG. 1, the first signals are differential signals 90 and 92. In the present embodiment, the differential signals 90 and 92 are output from the vibrator 3 for noise resistance, but one signal that is not differential may be output.

駆動回路5は、駆動信号82を生成して振動子2に供給し、振動子2からの励振電流80を受け取って発振ループを形成する。差動信号90、92の大きさは励振電流80に比例する。そのため、駆動回路5は、測定環境の変化に関わらず励振電流80の振幅を一定にするように駆動信号82を制御する。   The drive circuit 5 generates a drive signal 82 and supplies it to the vibrator 2, receives the excitation current 80 from the vibrator 2, and forms an oscillation loop. The magnitudes of the differential signals 90 and 92 are proportional to the excitation current 80. Therefore, the drive circuit 5 controls the drive signal 82 so that the amplitude of the excitation current 80 is constant regardless of changes in the measurement environment.

検出回路6は、差動信号90、92に基づいて出力信号40を生成する。ここで、センサー素子4が検出した角速度の大きさに応じた信号であって検出回路6が出力する信号を第2の信号とする。図1では、第2の信号は出力信号40である。   The detection circuit 6 generates an output signal 40 based on the differential signals 90 and 92. Here, a signal corresponding to the magnitude of the angular velocity detected by the sensor element 4 and output from the detection circuit 6 is a second signal. In FIG. 1, the second signal is the output signal 40.

出力信号40は、インターフェース部10を介して、例えばホストCPUにシリアル送信される。検出回路6は、差動信号90、92を受け取り、例えばホストCPUが要求する形式への変換等を行って出力信号40を生成する。   The output signal 40 is serially transmitted to the host CPU, for example, via the interface unit 10. The detection circuit 6 receives the differential signals 90 and 92 and performs conversion into a format required by the host CPU, for example, to generate an output signal 40.

ここで、本実施形態では、動作設定回路7が、駆動回路5、検出回路6に対して最適な動作設定を行う。動作設定回路7は、例えば基準電圧回路、メモリー回路等を含んでおり、駆動回路5、検出回路6の電圧設定、パラメーター設定等によって最適化を行う。   Here, in the present embodiment, the operation setting circuit 7 performs optimal operation settings for the drive circuit 5 and the detection circuit 6. The operation setting circuit 7 includes, for example, a reference voltage circuit, a memory circuit, and the like, and performs optimization by voltage setting, parameter setting, and the like of the drive circuit 5 and the detection circuit 6.

故障診断部20は、駆動回路5および検出回路6の少なくとも1つについての故障診断を行う。本実施形態では、両方の回路について故障診断が実行される。故障診断を行うのに必要な情報を含む駆動回路5および検出回路6の内部信号を第3の信号とする。図1では、第3の信号は内部信号42、44である。   The failure diagnosis unit 20 performs failure diagnosis for at least one of the drive circuit 5 and the detection circuit 6. In the present embodiment, failure diagnosis is executed for both circuits. An internal signal of the drive circuit 5 and the detection circuit 6 including information necessary for performing the failure diagnosis is a third signal. In FIG. 1, the third signals are internal signals 42 and 44.

故障診断部20が実行した故障診断の結果を表す信号を第4の信号とする。図1では、第4の信号は信号30である。信号30は、故障診断部20が実行した故障診断のそれぞれの結果を表す値(例えば、エラー時にハイレベル‘1’)と、全ての故障診断のうち1つでもエラーがあれば例えば‘1’となるエラーフラグの値とを含んでいてもよい。   A signal representing the result of the fault diagnosis executed by the fault diagnosis unit 20 is defined as a fourth signal. In FIG. 1, the fourth signal is signal 30. The signal 30 is a value representing each result of the fault diagnosis executed by the fault diagnosis unit 20 (for example, high level “1” at the time of error), and “1” if any one of all the fault diagnoses has an error. The error flag value may be included.

インターフェース部10は、物理量測定装置1の外部の例えばホストCPUとデータの通信を行う。このとき、データの通信はシリアル方式で行われ、パラレル方式に比べてインターフェース部10の端子数を減らすことができる。   The interface unit 10 performs data communication with, for example, a host CPU outside the physical quantity measuring device 1. At this time, data communication is performed by the serial method, and the number of terminals of the interface unit 10 can be reduced as compared with the parallel method.

本実施形態では、インターフェース部10は通信方式としてSPIを用いる。図1に示すように、スレーブ選択信号SS、シリアルクロックSCK、シリアル入力信号MOSI、シリアル出力信号MISOの4つの信号が使用される。   In the present embodiment, the interface unit 10 uses SPI as a communication method. As shown in FIG. 1, four signals of a slave selection signal SS, a serial clock SCK, a serial input signal MOSI, and a serial output signal MISO are used.

インターフェース部10は、マスターの要求に従って、これらの信号を用いてデータの通信を行う。以下では、SPIによる通信において、マスターとしてホストCPU(図外)が存在し、物理量測定装置1は1つのスレーブとして機能するものとして説明する。   The interface unit 10 performs data communication using these signals in accordance with a request from the master. In the following description, it is assumed that a host CPU (not shown) exists as a master in communication using SPI, and the physical quantity measuring device 1 functions as one slave.

スレーブ選択信号SSは、ホストCPU(マスター)が物理量測定装置1(スレーブ)を選択するのに用いる信号であり、例えばローアクティブの信号であってもよい。スレーブ選択信号SSが‘0’(ローレベル)の場合にインターフェース部10はホストCPUと通信を行う。   The slave selection signal SS is a signal used by the host CPU (master) to select the physical quantity measuring device 1 (slave), and may be, for example, a low active signal. When the slave selection signal SS is “0” (low level), the interface unit 10 communicates with the host CPU.

シリアルクロックSCKは、シリアル送信の同期をとるためのクロックであり、通信スピードはシリアルクロックSCKのクロック周波数により定まる。本実施形態では、例えば10MHzのシリアルクロックSCKを用いることにより、例えば標準モードのI2Cと比べても高速な通信が可能である。   The serial clock SCK is a clock for synchronizing serial transmission, and the communication speed is determined by the clock frequency of the serial clock SCK. In the present embodiment, for example, by using a serial clock SCK of 10 MHz, high-speed communication is possible even compared with, for example, I2C in the standard mode.

シリアル入力信号MOSI、シリアル出力信号MISOは、それぞれホストCPUから物理量測定装置1へのデータ、物理量測定装置1からホストCPUへのデータである。   The serial input signal MOSI and the serial output signal MISO are data from the host CPU to the physical quantity measuring device 1, and data from the physical quantity measuring device 1 to the host CPU, respectively.

インターフェース部10は、ホストCPUからコマンドを受け取り、コマンドが要求するデータであるコマンド要求データを生成する。コマンドはホストCPUからの命令であり、シリアル入力信号MOSIとして入力されるコマンドデータの形で与えられる。コマンドデータの具体例については後述する。   The interface unit 10 receives a command from the host CPU and generates command request data that is data requested by the command. The command is a command from the host CPU and is given in the form of command data input as the serial input signal MOSI. A specific example of command data will be described later.

インターフェース部10は、出力信号40(第2の信号)および信号30(第4の信号)のうち少なくとも1つの信号に基づいてコマンド要求データを生成する。そして、コマンド要求データを含み、所定のビット数やフォーマットを有する応答データを生成する。応答データはシリアル出力MISOとして出力されるデータであって、その具体例については後述する。   The interface unit 10 generates command request data based on at least one of the output signal 40 (second signal) and the signal 30 (fourth signal). Then, response data including command request data and having a predetermined number of bits and format is generated. The response data is data output as the serial output MISO, and a specific example thereof will be described later.

このとき、インターフェース部10は、応答データにコマンド要求データだけでなくエラーフラグを含める。エラーフラグは、エラーの発生の有無を表す1ビット以上のデータである。このとき、エラーフラグとして、ホストCPUから受け取ったコマンドにエラーが含まれているかどうかを表すコマンドエラーフラグを含める。   At this time, the interface unit 10 includes not only the command request data but also an error flag in the response data. The error flag is data of 1 bit or more indicating whether or not an error has occurred. At this time, a command error flag indicating whether or not an error is included in the command received from the host CPU is included as an error flag.

インターフェース部10は、駆動回路5、検出回路6についての故障診断の結果を信号30として受け取るので、回路の故障をコマンド要求データに含むことができる。そして、コマンド要求データだけでなく、受け取ったコマンド自体について通信中にエラーが発生したか否かを表すコマンドエラーフラグをホストCPUに送信する。そのため、例えば通信中のビット化けなどもホストCPUが把握することが可能になり、データの信頼性の高い物理量測定装置1を提供できる。   Since the interface unit 10 receives the result of the failure diagnosis for the drive circuit 5 and the detection circuit 6 as the signal 30, the failure of the circuit can be included in the command request data. Then, not only the command request data but also a command error flag indicating whether or not an error has occurred during communication for the received command itself is transmitted to the host CPU. Therefore, for example, it becomes possible for the host CPU to grasp bit corruption during communication, and the physical quantity measuring device 1 with high data reliability can be provided.

1.2.駆動回路と検出回路の構成例
本実施形態の物理量測定装置1は例えば角速度センサーである。このとき、センサー素子4は、例えば一体である振動子2、3を含み、角速度を検出する。そして、駆動回路5と検出回路6は例えば以下のような構成により実現される。
1.2. Configuration Example of Drive Circuit and Detection Circuit The physical quantity measuring device 1 of the present embodiment is an angular velocity sensor, for example. At this time, the sensor element 4 includes, for example, the integrated vibrators 2 and 3 and detects the angular velocity. And the drive circuit 5 and the detection circuit 6 are implement | achieved by the following structures, for example.

1.2.1.駆動回路
図7は駆動回路5の構成例を表す。なお、図1と同じ要素には同じ符号を付しており説明は省略する。
1.2.1. Drive Circuit FIG. 7 shows a configuration example of the drive circuit 5. In addition, the same code | symbol is attached | subjected to the same element as FIG. 1, and description is abbreviate | omitted.

駆動回路5は、例えば電流電圧変換回路52、全波整流回路53、比較調整回路54、駆動信号生成回路55を含む。   The drive circuit 5 includes, for example, a current-voltage conversion circuit 52, a full-wave rectification circuit 53, a comparison adjustment circuit 54, and a drive signal generation circuit 55.

電流電圧変換回路52は、振動子2からの励振電流80を電圧に変換して信号202を出力する。信号202の振幅は励振電流80の振幅に比例している。全波整流回路53は、電流電圧変換回路52からの信号202を全波整流して直流に近い電圧を得て信号204を出力する。   The current-voltage conversion circuit 52 converts the excitation current 80 from the vibrator 2 into a voltage and outputs a signal 202. The amplitude of the signal 202 is proportional to the amplitude of the excitation current 80. The full-wave rectification circuit 53 performs full-wave rectification on the signal 202 from the current-voltage conversion circuit 52 to obtain a voltage close to direct current, and outputs a signal 204.

比較調整回路54は、全波整流回路53からの信号204を比較電圧供給回路56からの電圧と比較し、比較結果を反映した信号である信号206を駆動信号生成回路55に出力する。   The comparison adjustment circuit 54 compares the signal 204 from the full wave rectification circuit 53 with the voltage from the comparison voltage supply circuit 56, and outputs a signal 206 that is a signal reflecting the comparison result to the drive signal generation circuit 55.

そして、駆動信号生成回路55は、電流電圧変換回路52からの信号202に基づいて駆動信号82を生成するが、信号206に基づいて駆動信号82の振幅を調整する。   The drive signal generation circuit 55 generates the drive signal 82 based on the signal 202 from the current-voltage conversion circuit 52, and adjusts the amplitude of the drive signal 82 based on the signal 206.

差動信号90、92(第1の信号、図1参照)の大きさは励振電流80に比例する。そのため、駆動回路5は、環境の変化に関わらず正確に角速度が測定されるように、励振電流80の振幅を一定にするように駆動信号82を制御して出力する。   The magnitude of the differential signals 90 and 92 (first signal, see FIG. 1) is proportional to the excitation current 80. Therefore, the drive circuit 5 controls and outputs the drive signal 82 so that the amplitude of the excitation current 80 is constant so that the angular velocity can be accurately measured regardless of the environmental change.

1.2.2.検出回路
図8は、検出回路6の1つの構成例を表す。なお、図1と同じ要素には同じ符号を付しており説明は省略する。
1.2.2. Detection Circuit FIG. 8 shows one configuration example of the detection circuit 6. In addition, the same code | symbol is attached | subjected to the same element as FIG. 1, and description is abbreviate | omitted.

検出回路6は、センサー素子4(図1参照)から差動信号90、92を受け取る。そして、差動信号90、92に必要な処理を行い、センサー素子4が検出した角速度に応じた出力信号40を生成する。   The detection circuit 6 receives differential signals 90 and 92 from the sensor element 4 (see FIG. 1). Then, necessary processing is performed on the differential signals 90 and 92, and an output signal 40 corresponding to the angular velocity detected by the sensor element 4 is generated.

ここで、同期検波回路66によって直流信号への変換がおこなわれるが、説明の都合上、その変換までの処理を行う回路を前段回路70と表現し、それ以降の回路を後段回路72と表現する。   Here, although conversion to a DC signal is performed by the synchronous detection circuit 66, for convenience of explanation, a circuit that performs processing up to the conversion is expressed as a pre-stage circuit 70, and a circuit after that is expressed as a post-stage circuit 72. .

図8のように、前段回路70は、例えば電流電圧変換回路62−1、62−2、差動増幅回路(差動アンプ)63、ハイパスフィルター(HPF)64、増幅回路(ACアンプ)65、同期検波回路66の一部を含む。   As shown in FIG. 8, the pre-stage circuit 70 includes, for example, current-voltage conversion circuits 62-1 and 62-2, a differential amplifier circuit (differential amplifier) 63, a high-pass filter (HPF) 64, an amplifier circuit (AC amplifier) 65, A part of the synchronous detection circuit 66 is included.

また、後段回路72は、例えば同期検波回路66の一部、信号出力部67、オフセット調整回路69を含む。   Further, the post-stage circuit 72 includes, for example, a part of the synchronous detection circuit 66, a signal output unit 67, and an offset adjustment circuit 69.

電流電圧変換回路62−1、62−2は、それぞれ差動信号90、92の電流を電圧へと変換する。差動信号90、92は、センサー素子4(図1参照)が検出した角速度に応じた電流値を有している。なお、電流電圧変換回路62−1と電流電圧変換回路62−2とは同一の構成である。   The current-voltage conversion circuits 62-1 and 62-2 convert the currents of the differential signals 90 and 92 into voltages, respectively. The differential signals 90 and 92 have a current value corresponding to the angular velocity detected by the sensor element 4 (see FIG. 1). The current-voltage conversion circuit 62-1 and the current-voltage conversion circuit 62-2 have the same configuration.

差動増幅回路63は、電流電圧変換回路62−1、62−2から出力される信号210、212の両方を受け取り、これらの信号の差分を増幅して信号214として出力する。   The differential amplifier circuit 63 receives both the signals 210 and 212 output from the current-voltage conversion circuits 62-1 and 62-2, amplifies the difference between these signals, and outputs the amplified signal 214.

ハイパスフィルター64は、信号214の高周波成分を透過させて、信号216として出力する。   The high pass filter 64 transmits the high frequency component of the signal 214 and outputs it as the signal 216.

そして、増幅回路65は、信号216を増幅して信号218を出力する。   Then, the amplifier circuit 65 amplifies the signal 216 and outputs a signal 218.

同期検波回路66は、信号218を受け取り、同期検波を行う。このとき、角速度の正確な測定のために、オフセット調整回路69からオフセット信号226が同期検波回路66に入力される。   The synchronous detection circuit 66 receives the signal 218 and performs synchronous detection. At this time, an offset signal 226 is input from the offset adjustment circuit 69 to the synchronous detection circuit 66 in order to accurately measure the angular velocity.

信号出力部67は、同期検波回路66から出力される信号220を受け取り、例えばローパスフィルター等によるフィルタリングを行ったり増幅を行ったりする。そして、センサー素子が検出した角速度に応じた出力信号40を生成する。   The signal output unit 67 receives the signal 220 output from the synchronous detection circuit 66, and performs filtering or amplification using, for example, a low-pass filter. Then, an output signal 40 corresponding to the angular velocity detected by the sensor element is generated.

ここで、図9は、別の構成例である検出回路6Aを表す。前記の検出回路6(図8参照)に代えて、検出回路6Aを用いてもよい。なお、図1、図8と同じ要素には同じ符号を付しており説明は省略する。   Here, FIG. 9 shows a detection circuit 6A which is another configuration example. Instead of the detection circuit 6 (see FIG. 8), a detection circuit 6A may be used. The same elements as those in FIGS. 1 and 8 are denoted by the same reference numerals, and description thereof is omitted.

検出回路6Aは、前段回路70として、例えば差動入出力の電流電圧変換回路62と、ADコンバーター(ADC)68とを含む。また、後段回路72は、例えば信号出力部67A、オフセット調整回路69を含む。   The detection circuit 6 </ b> A includes, for example, a differential input / output current-voltage conversion circuit 62 and an AD converter (ADC) 68 as the pre-stage circuit 70. Further, the post-stage circuit 72 includes, for example, a signal output unit 67A and an offset adjustment circuit 69.

検出回路6Aは、検出回路6とは異なり、電流電圧変換回路62で差動信号90、92の電流を電圧へと変換した後、直ちにADコンバーター68によって、検出回路6の直流信号に対応する信号222への変換を行う。   Unlike the detection circuit 6, the detection circuit 6A converts the current of the differential signals 90 and 92 into a voltage by the current-voltage conversion circuit 62, and immediately thereafter, a signal corresponding to the DC signal of the detection circuit 6 by the AD converter 68. Conversion to 222 is performed.

なお、後段回路72の信号出力部67Aは、検出回路6の信号出力部67と同じようにフィルタリングや増幅を行うとともに、オフセット信号226に基づいてオフセット調整も行う。検出回路6Aは、検出回路6に比べて、回路規模を小さくすることが可能である。   The signal output unit 67A of the post-stage circuit 72 performs filtering and amplification in the same manner as the signal output unit 67 of the detection circuit 6, and also performs offset adjustment based on the offset signal 226. The detection circuit 6A can be reduced in circuit scale as compared with the detection circuit 6.

ここで、駆動回路5、検出回路6(又は、検出回路6A)のいずれかに故障が生じた場合には、出力信号40は正確な角速度を表さない。そのため、特に高い信頼性が要求される用途において、これらの回路に故障が生じた場合には、直ちにホストCPU等に通知を行う必要がある。   Here, when a failure occurs in either the drive circuit 5 or the detection circuit 6 (or the detection circuit 6A), the output signal 40 does not represent an accurate angular velocity. Therefore, it is necessary to immediately notify the host CPU or the like when a failure occurs in these circuits in an application that requires particularly high reliability.

1.3.故障診断部
図2は、故障診断部20の構成例を表す。故障診断部20は、駆動回路5、検出回路6についての故障診断を行い、故障診断結果を出力する。
1.3. Failure Diagnosis Unit FIG. 2 illustrates a configuration example of the failure diagnosis unit 20. The failure diagnosis unit 20 performs failure diagnosis on the drive circuit 5 and the detection circuit 6 and outputs a failure diagnosis result.

故障診断部20は、駆動回路5、検出回路6の内部信号42、44(図1参照)を受け取り、例えばコンパレーターで所定の電圧値と比較することで故障診断を行う。そして、故障診断結果をそれぞれ、または論理回路経由で出力する。   The failure diagnosis unit 20 receives the internal signals 42 and 44 (see FIG. 1) of the drive circuit 5 and the detection circuit 6, and performs failure diagnosis by comparing with a predetermined voltage value using a comparator, for example. Then, the fault diagnosis result is output individually or via a logic circuit.

図2の例では、故障診断部20は16箇所の故障診断を行うが、診断箇所の数は1以上の任意の数でよい。図2の例では、駆動回路5、検出回路6の動作の状態を表す信号42A、42B、44A、44B等を、故障診断部20は受け取る。例えば、信号42A、42Bは駆動回路5の内部信号42に対応し、信号44A、44Bは検出回路6の内部信号44に対応してもよい。   In the example of FIG. 2, the failure diagnosis unit 20 performs failure diagnosis at 16 locations, but the number of diagnosis locations may be an arbitrary number of 1 or more. In the example of FIG. 2, the failure diagnosis unit 20 receives signals 42 </ b> A, 42 </ b> B, 44 </ b> A, 44 </ b> B and the like that indicate the operation states of the drive circuit 5 and the detection circuit 6. For example, the signals 42A and 42B may correspond to the internal signal 42 of the drive circuit 5, and the signals 44A and 44B may correspond to the internal signal 44 of the detection circuit 6.

なお、故障診断部20が受け取る信号は故障診断の対象により適当に選択される。例えば、駆動回路5および検出回路6の一方のみから、その内部の動作状態を表す信号を受け取ってもよい。   Note that the signal received by the failure diagnosis unit 20 is appropriately selected depending on the target of failure diagnosis. For example, a signal indicating the internal operation state may be received from only one of the drive circuit 5 and the detection circuit 6.

図2の例では、故障診断部20はコンパレーターCMP0〜CMP15を含み、駆動回路5、検出回路6の動作の状態を表す信号42A、42B、44A、44B等と、所定の電圧値Vth0〜Vth15とを比較する。なお、図2では、信号42A、42B、44A、44B等がコンパレーターの入力端子に、電圧値Vth0〜Vth15が反転入力端子に割り当てられているが、逆であってもよい。コンパレーター毎に独立して、設定(所定の電圧値や端子の割り当て)が変更されてもよい。 In the example of FIG. 2, the failure diagnosis unit 20 includes comparators CMP0 to CMP15, signals 42A, 42B, 44A, 44B and the like indicating the operation states of the drive circuit 5 and the detection circuit 6, and a predetermined voltage value V th0 to Compare with Vth15 . In FIG. 2, the signals 42A, 42B, 44A, 44B and the like are assigned to the input terminals of the comparators, and the voltage values V th0 to V th15 are assigned to the inverting input terminals. Settings (predetermined voltage values and terminal assignments) may be changed independently for each comparator.

コンパレーターCMP0〜CMP15の出力信号であるEF[0]〜EF[15]は、故障診断の結果を表す。本実施形態では、EF[0]〜EF[15]のそれぞれについて、‘1’であれば故障があったことを表し、‘0’であれば故障はなく正常であることを表す。   EF [0] to EF [15], which are output signals of the comparators CMP0 to CMP15, represent the results of failure diagnosis. In the present embodiment, for each of EF [0] to EF [15], “1” indicates that there is a failure, and “0” indicates that there is no failure and that the device is normal.

このとき、故障診断部20は、全体での故障の有無を表す信号30Aを出力してもよい。信号30Aは、EF[0]〜EF[15]を入力したOR回路の出力である。また、EF[0]〜EF[15]のそれぞれは、図2の信号30B〜30E等として出力される。ここで、信号30A〜30Eは、図1における故障診断部20からの信号30に対応する。   At this time, the failure diagnosis unit 20 may output a signal 30A indicating whether or not there is a failure as a whole. The signal 30A is an output of the OR circuit to which EF [0] to EF [15] are input. Each of EF [0] to EF [15] is output as the signals 30B to 30E in FIG. Here, the signals 30A to 30E correspond to the signal 30 from the failure diagnosis unit 20 in FIG.

さらに、故障診断部20は、ホストCPUからのコマンドによってコンパレーターCMP0〜CMP15自体の故障診断を行うモードを有していてもよい。図2のテスト信号TESTにより、予め用意された電圧値Vtest0〜Vtest15が信号42A、42B、44A、44B等に代わって選択される。このとき、信号30A〜30Eが期待値と一致すればコンパレーターCMP0〜CMP15は正常に動作していることが確認できる。 Furthermore, the failure diagnosis unit 20 may have a mode in which failure diagnosis of the comparators CMP0 to CMP15 itself is performed by a command from the host CPU. Based on the test signal TEST of FIG. 2, voltage values V test0 to V test 15 prepared in advance are selected instead of the signals 42A, 42B, 44A, 44B and the like. At this time, if the signals 30A to 30E match the expected value, it can be confirmed that the comparators CMP0 to CMP15 are operating normally.

故障診断部20がコンパレーター自体の故障診断を行うモードを有することで、さらにデータの信頼性を高めることができる。このコンパレーター自体の故障診断は、例えば物理量測定装置1の起動時に1度だけ行われてもよい。   Since the failure diagnosis unit 20 has a mode for performing failure diagnosis of the comparator itself, the reliability of data can be further improved. The failure diagnosis of the comparator itself may be performed only once, for example, when the physical quantity measuring device 1 is activated.

1.4.インターフェース部
図3は、インターフェース部10の構成例を表す。なお、図1と同じ要素には同じ符号を付しており説明は省略する。
1.4. Interface Unit FIG. 3 shows a configuration example of the interface unit 10. In addition, the same code | symbol is attached | subjected to the same element as FIG. 1, and description is abbreviate | omitted.

インターフェース部10は、シフトレジスター11、29、バッファー12、13、コマンド判定回路14、記憶回路15、チェックサム回路16、レジスター17、18、マルチプレクサー19を含む。   The interface unit 10 includes shift registers 11 and 29, buffers 12 and 13, a command determination circuit 14, a storage circuit 15, a checksum circuit 16, registers 17 and 18, and a multiplexer 19.

バッファー12、13、レジスター17、18はそれぞれ2つ用意されているが、同一のバッファー、レジスターを2つ含むことを意味する。本実施形態では、例えば32ビットのデータを2回に分けて16ビットずつ送受信する。つまり、16ビットを送受信の単位としてシリアル通信を行う。このような送信方法により、シフトレジスター11、29のサイズを変えることなく、より大きなデータ(例えば64ビット)を扱うことも可能になる。   Two buffers 12 and 13 and two registers 17 and 18 are prepared respectively, which means that two identical buffers and registers are included. In the present embodiment, for example, 32-bit data is transmitted and received 16 bits at a time in two steps. That is, serial communication is performed using 16 bits as a unit of transmission and reception. With such a transmission method, it becomes possible to handle larger data (for example, 64 bits) without changing the size of the shift registers 11 and 29.

ここで、ホストCPUからのコマンドを表すコマンドデータ(例えば32ビット)を受信単位(例えば16ビット)で分割し、最初に送信されるデータをコマンド1、その後に送信されるデータをコマンド2とよぶ。コマンド1は、コマンドデータの上位側であってもよいし、下位側であってもよい。   Here, command data (for example, 32 bits) representing a command from the host CPU is divided by a reception unit (for example, 16 bits), and data transmitted first is referred to as command 1, and data transmitted thereafter is referred to as command 2. . Command 1 may be on the upper side or lower side of the command data.

同様に、インターフェース部10が出力する応答データ(例えば32ビット)を送信単位(例えば16ビット)で分割し、最初に送信されるデータを応答1、その後に送信されるデータを応答2とよぶ。応答1は、応答データの上位側であってもよいし、下位側であってもよい。   Similarly, response data (for example, 32 bits) output from the interface unit 10 is divided by a transmission unit (for example, 16 bits), and data that is transmitted first is referred to as a response 1, and data that is transmitted thereafter is referred to as a response 2. The response 1 may be on the upper side or lower side of the response data.

1.4.1.シフトレジスターとバッファー
インターフェース部10は、シリアル入力信号MOSIとしてホストCPUから受け取ったコマンドデータを、シフトレジスター11によってパラレルに変換して出力する(信号101)。本実施形態では、コマンドデータは2回に分けて受信されるので、パラレルに変換されたコマンド1をバッファー12に、コマンド2をバッファー13に一時保存する。
1.4.1. The shift register and buffer interface unit 10 converts the command data received from the host CPU as the serial input signal MOSI into parallel data by the shift register 11 and outputs it (signal 101). In the present embodiment, since the command data is received in two steps, the command 1 converted into parallel is temporarily stored in the buffer 12 and the command 2 is temporarily stored in the buffer 13.

1.4.2.コマンド判定回路
コマンド判定回路14は、バッファー12、13からコマンドデータを受け取る(信号102、103)。そして、コマンド判定回路14は、コマンドデータからホストCPUが要求するコマンドを判定する。
1.4.2. Command determination circuit The command determination circuit 14 receives command data from the buffers 12 and 13 (signals 102 and 103). Then, the command determination circuit 14 determines a command requested by the host CPU from the command data.

コマンド判定回路14は、判定したコマンドが要求するデータ(コマンド要求データ)を生成するために、記憶回路15から必要なデータを選択するための信号104を出力する。本実施形態では、信号104は例えばレジスターである記憶回路15のアドレスであるが他の信号であってもよい。   The command determination circuit 14 outputs a signal 104 for selecting necessary data from the storage circuit 15 in order to generate data required by the determined command (command request data). In this embodiment, the signal 104 is an address of the storage circuit 15 that is a register, for example, but may be another signal.

また、コマンド判定回路14は、コマンドについて通信中にエラーが発生したか否かを判断して、その結果に応じてコマンドエラーフラグ(CEF)を変化させる。コマンドについての通信中のエラーとは、例えばコマンドデータがホストCPUからの通信中にビット化けなどを生じて、コマンドが正しいコードでなくなることをいう。   Further, the command determination circuit 14 determines whether or not an error has occurred during communication for the command, and changes the command error flag (CEF) according to the result. An error in communication with respect to a command means that, for example, the command data is garbled during communication from the host CPU and the command is not a correct code.

なお、コマンド判定回路14は、コマンドに基づいてデータを更新、変更する必要があるときには、信号105を用いて記憶回路15に書き込みを行ってもよい。本実施形態では、信号105は例えばレジスターである記憶回路15のデータであるが他の信号であってもよい。   Note that the command determination circuit 14 may write to the memory circuit 15 using the signal 105 when it is necessary to update or change data based on the command. In the present embodiment, the signal 105 is data of the storage circuit 15 that is a register, for example, but may be another signal.

ここで、図4は本実施形態のコマンドデータを表す。この例では、第1〜第8のコマンドがあり、それぞれに対応して異なるコマンドデータが割り当てられている。例えば、第1のコマンドは検出した物理量(例えば、角速度)に応じた信号の出力を要求する通常動作用のコマンドであってもよい。また、第2のコマンドは、どの部分で故障が生じたかのデータを取得するための故障診断を開始させるコマンドであってもよい。そして、第2のコマンドは、故障箇所を特定するための故障診断結果を出力させるコマンドであってもよい。   Here, FIG. 4 shows command data of this embodiment. In this example, there are first to eighth commands, and different command data are assigned to each of them. For example, the first command may be a command for normal operation that requests output of a signal according to the detected physical quantity (for example, angular velocity). In addition, the second command may be a command for starting a failure diagnosis for acquiring data indicating where a failure has occurred. The second command may be a command for outputting a failure diagnosis result for specifying a failure location.

図4のようにコマンド1のビット15は、コマンドデータであることを示すために0になっている。コマンド判定回路14は、コマンド1のビット15によって容易にコマンドデータとそれ以外のデータとを区別することができる。   As shown in FIG. 4, bit 15 of command 1 is 0 to indicate that it is command data. The command determination circuit 14 can easily distinguish command data from other data by the bit 15 of the command 1.

そして、コマンド1において、それぞれのコマンドが他のコマンドと重ならない固有の1ビットを割り当てられており、その固有の1ビットの値を1にしている。図4の例では、この固有の1ビットは、8つのコマンドに対応するビット14〜ビット7(計8ビット)にある。   In the command 1, each command is assigned a unique bit that does not overlap with other commands, and the value of the unique 1 bit is set to 1. In the example of FIG. 4, this unique 1 bit is in bits 14 to 7 (8 bits in total) corresponding to 8 commands.

例えば、第1のコマンドは、ビット14が1であり、ビット13〜ビット7は0である。また、第2のコマンドは、ビット13が1であり、ビット12〜ビット7およびビット14は0である。このように、それぞれのコマンドが重複しないようにビット14〜ビット7のうちの1ビットだけを1にしているので、コマンド判定回路14は容易にコマンドを判定できる。   For example, in the first command, bit 14 is 1 and bits 13 to 7 are 0. In the second command, bit 13 is 1, and bits 12 to 7 and bit 14 are 0. In this way, since only one of the bits 14 to 7 is set to 1 so that the respective commands do not overlap, the command determination circuit 14 can easily determine the command.

ここで、8つのコマンドを区別するためには、エンコードして3ビットを用いるだけで判定が可能である。例えばビット14〜ビット12を用いて、第1のコマンドに“000b”を割り当て、第2のコマンドに“001b”を割り当ててもよい。   Here, in order to distinguish the eight commands, it is possible to make a determination only by encoding and using 3 bits. For example, using bits 14 to 12, “000b” may be assigned to the first command and “001b” may be assigned to the second command.

しかし、この手法の場合には、コマンドデータが通信中にビット化けなどを生じた場合に、コマンド判定回路14がエラーを検知することができない。例えば、ビット12が0から1へとビット化けを生じた場合には、コマンド判定回路14は第1のコマンドを第2のコマンドと誤って判定してしまう。   However, in the case of this method, the command determination circuit 14 cannot detect an error when the command data is garbled during communication. For example, if the bit 12 is garbled from 0 to 1, the command determination circuit 14 erroneously determines the first command as the second command.

そのため、本実施形態では、図4のように他のコマンドと重ならない固有の1ビットを1にすることで、コマンド判定回路14が通信中にビット化けが生じたことも検知できるようにする。   Therefore, in the present embodiment, the unique bit that does not overlap with other commands is set to 1 as shown in FIG. 4 so that the command determination circuit 14 can detect that the bit is garbled during communication.

図4の例では、例えばホストCPUが第1のコマンドを指定した場合に、コマンド1のビット14がビット化けを生じた場合には、コマンド1の全ビットが0になるのでコマンド判定回路14がエラーを検知できる。また、コマンド1のビット12がビット化けを生じた場合には、2つのビットが1であるのでコマンド判定回路14がエラーを検知できる。   In the example of FIG. 4, for example, when the host CPU specifies the first command and the bit 14 of the command 1 is garbled, all the bits of the command 1 become 0, so the command determination circuit 14 Can detect errors. When bit 12 of command 1 is garbled, since the two bits are 1, the command determination circuit 14 can detect an error.

コマンド判定回路14は、コマンドのエラーを検知した場合に、コマンドエラーフラグ(CEF)を1にセットして、ホストCPUにコマンドの再送を要求することができる。よって、データの信頼性の高い物理量測定装置1を実現できる。   When detecting a command error, the command determination circuit 14 can set the command error flag (CEF) to 1 and request the host CPU to retransmit the command. Therefore, the physical quantity measuring device 1 with high data reliability can be realized.

なお、図4の例ではコマンド2は全ビットが0であるが、コマンドを16以上用意した場合の予約領域であってもよいし、コマンド1のビット14〜ビット7の一部をコマンド2に持たせてコマンドデータを構成してもよい。   In the example of FIG. 4, all bits of command 2 are 0, but may be a reserved area when 16 or more commands are prepared, or a part of bits 14 to 7 of command 1 may be changed to command 2. The command data may be configured by providing it.

1.4.3.記憶回路
記憶回路15は、検出回路からの検出された角速度に応じた出力信号40、故障診断部20からの故障診断結果を表す信号30、コマンド判定回路14からのデータである信号105を記憶する。
1.4.3. Storage Circuit The storage circuit 15 stores an output signal 40 corresponding to the detected angular velocity from the detection circuit, a signal 30 indicating a failure diagnosis result from the failure diagnosis unit 20, and a signal 105 that is data from the command determination circuit 14. .

記憶回路15は例えばレジスターである。なお、SRAMであってもよいし、DRAMであってもよいし、不揮発性のメモリーであってもよいし、その他のメモリーであってもよい。そして、コマンド判定回路14からのアドレス(信号104)に従って、選択されたデータ106を出力する。   The storage circuit 15 is a register, for example. Note that it may be an SRAM, a DRAM, a non-volatile memory, or another memory. Then, according to the address (signal 104) from the command determination circuit 14, the selected data 106 is output.

1.4.4.チェックサム回路
本実施形態のインターフェース部10は、チェックサム回路16を含む。チェックサム回路16は、インターフェース部10が出力する応答データ(例えば32ビット)が含むチェックサムを生成する。これにより、例えば応答データが通信中にビット化けを生じたときに、ホストCPUがエラーを検知することが可能になる。このとき、ホストCPUは再送要求を行うことができ、正しい応答データを得られる。つまり、チェックサムによりデータの信頼性をさらに高めることができる。
1.4.4. Checksum Circuit The interface unit 10 of this embodiment includes a checksum circuit 16. The checksum circuit 16 generates a checksum included in response data (for example, 32 bits) output from the interface unit 10. As a result, for example, when the response data is garbled during communication, the host CPU can detect an error. At this time, the host CPU can make a retransmission request and obtain correct response data. That is, the reliability of data can be further improved by the checksum.

チェックサムは、対象となるビットの値を足した合計であってもよい。例えば、チェックサムが5ビットであるとすると、応答データのチェックサム以外の27ビットの値を足した数がチェックサムとなる。例えば、この27ビットが全て1であればチェックサムの値は27である。このとき、ビット化け等により1つのビットが0となると、チェックサムの値と合わなくなる。そのため、ホストCPUは通信中のエラーの発生を知ることができる。   The checksum may be a sum of the values of the target bits. For example, if the checksum is 5 bits, the checksum is a number obtained by adding 27-bit values other than the checksum of the response data. For example, if all the 27 bits are 1, the checksum value is 27. At this time, if one bit becomes 0 due to bit corruption or the like, the checksum value does not match. Therefore, the host CPU can know the occurrence of an error during communication.

図3では、チェックサム回路16は、信号106に基づいてチェックサムを算出して信号107として出力している。しかし、信号106の代わりに、応答データとしてレジスター17、18に一時保存されたデータ(信号108、109)を読み出して、チェックサムを算出してもよい。   In FIG. 3, the checksum circuit 16 calculates a checksum based on the signal 106 and outputs it as a signal 107. However, instead of the signal 106, the checksum may be calculated by reading data (signals 108 and 109) temporarily stored in the registers 17 and 18 as response data.

1.4.5.レジスター、とシフトレジスター
インターフェース部10は、応答データを送信単位で分割して、レジスター17、18に一時保存する。レジスター17は応答1を一時保存し、レジスター18は応答2を一時保存する。ここで、本実施形態では、チェックサムである信号107の値もレジスター17に保存される。
1.4.5. Register and shift register The interface unit 10 divides the response data into transmission units and temporarily stores them in the registers 17 and 18. Register 17 temporarily stores response 1 and register 18 temporarily stores response 2. Here, in this embodiment, the value of the signal 107 that is a checksum is also stored in the register 17.

そして、それぞれのレジスターから出力される信号108、109は、マルチプレクサー19によって順に選択される。マルチプレクサー19の出力である信号110は、シフトレジスター29によってシリアルに変換されて、シリアル出力信号MISOとして送信される。   The signals 108 and 109 output from the respective registers are sequentially selected by the multiplexer 19. The signal 110 that is the output of the multiplexer 19 is converted into a serial signal by the shift register 29 and transmitted as a serial output signal MISO.

ここで、図5は本実施形態の応答データを表す。なお、図5の第1〜第8のコマンドは図4に対応しており、説明は省略する。なお、第2のコマンドでは各ビットの内容が表示されていないが、第2のコマンド(故障診断開始)はホストCPUへのデータ送信を要しないコマンドであるため、応答データが無いことを示している。   Here, FIG. 5 shows the response data of this embodiment. Note that the first to eighth commands in FIG. 5 correspond to those in FIG. Note that the contents of each bit are not displayed in the second command, but the second command (beginning of failure diagnosis) is a command that does not require data transmission to the host CPU, indicating that there is no response data. Yes.

応答1のビット15〜ビット7は、コマンドによらず同じデータが割り当てられている。まず、ビット11〜ビット7は、チェックサム回路(図3参照)が計算したチェックサムである。   Bit 15 to bit 7 of response 1 are assigned the same data regardless of the command. First, bits 11 to 7 are a checksum calculated by a checksum circuit (see FIG. 3).

本実施形態では、チェックサムを算出するときの対象ビットは応答1のビット6〜ビット0および応答2の全ビットだけでなく、フラグである応答1のビット15〜ビット12も含む。フラグ1〜フラグ4は、ホストCPUがコマンドで要求したコマンド要求データではないが、これらもチェックサムの対象ビットとすることでコマンド要求データ以外についてもエラーの発生を検出することが可能になる。   In the present embodiment, the target bits when calculating the checksum include not only all bits 6 to 0 of response 1 and all bits of response 2, but also bits 15 to 12 of response 1 that are flags. Although the flag 1 to flag 4 are not command request data requested by the host CPU as a command, it is possible to detect the occurrence of an error other than the command request data by using these as the checksum target bits.

応答1のビット15〜ビット12はフラグ4〜フラグ1であり、特にエラーの有無を示すエラーフラグである。本実施形態では、ビット15のフラグ4は、コマンドエラーフラグである。例えば、ホストCPUは、コマンドエラーフラグが1である場合には、コマンドを再送するなどの対応をとってもよい。   Bits 15 to 12 of the response 1 are flag 4 to flag 1, and are error flags that particularly indicate the presence or absence of an error. In the present embodiment, the flag 4 of bit 15 is a command error flag. For example, when the command error flag is 1, the host CPU may take measures such as retransmitting the command.

また、本実施形態では、ビット14のフラグ3は、故障診断の結果でどこかにエラーが生じたことを示す常時故障診断フラグである。常時故障診断フラグは、図2の信号30Aに対応する。例えば、ホストCPUは、常時故障診断フラグが1である場合には、故障箇所を特定するために故障診断開始を命じる第2のコマンドを送信してもよい。   In the present embodiment, the flag 3 of the bit 14 is a constant failure diagnosis flag indicating that an error has occurred somewhere as a result of the failure diagnosis. The constant failure diagnosis flag corresponds to the signal 30A in FIG. For example, when the failure diagnosis flag is always 1, the host CPU may transmit a second command for instructing the start of failure diagnosis in order to identify the failure location.

なお、ビット13〜ビット12のフラグ2〜フラグ1には、他のエラーフラグが割り当てられてもよい。例えば、図2の故障診断結果30B、30Cがそれぞれ割り当てられてもよい。また、ビット13〜ビット12にはエラーフラグではなく、駆動回路5、検出回路6のステータス(状態)を表す信号が割り当てられてもよい。   Note that other error flags may be assigned to flags 2 to 1 of bits 13 to 12. For example, the failure diagnosis results 30B and 30C of FIG. 2 may be assigned, respectively. Bits 13 to 12 may be assigned signals representing statuses of the drive circuit 5 and the detection circuit 6 instead of error flags.

例えば、ビット13のフラグ2として、例えば第2のコマンドによる故障診断を開始した場合などに、故障診断の結果を出力できることを示すステータス信号が割り当てられてもよい。また、ビット12のフラグ1として、例えば故障診断部20のコンパレーターのテストを行うテストモードであることを示すステータス信号が割り当てられてもよい。なお、このテストモードのステータス信号は、図2のTEST信号に対応する。   For example, a status signal indicating that the result of failure diagnosis can be output may be assigned as the flag 2 of bit 13 when, for example, failure diagnosis by the second command is started. Further, as the flag 1 of the bit 12, for example, a status signal indicating a test mode for performing a test of the comparator of the failure diagnosis unit 20 may be assigned. The test mode status signal corresponds to the TEST signal in FIG.

ビット15〜ビット12はコマンドによらず出力されるエラーフラグ(又はステータス信号)であるので、ホストCPUはフラグ4〜フラグ1の内容に基づいて、エラーの有無を含む最新の情報を直ちに把握することが可能になる。   Since bit 15 to bit 12 are error flags (or status signals) output regardless of the command, the host CPU immediately grasps the latest information including the presence / absence of an error based on the contents of flags 4 to 1. It becomes possible.

応答1のビット6〜ビット0および応答2の全ビットは、それぞれのコマンドに応じたコマンド要求データとして用いられる。例えば、第1のコマンドの場合には、検出された物理量(例えば角速度)に応じた信号の値が出力される。また例えば、第3のコマンドの場合には、故障診断部20における全ての故障診断結果EF[15:0]が出力される。なおEF[15:0]は図2のEF[15]〜EF[0]に対応する。   Bit 6 to bit 0 of response 1 and all bits of response 2 are used as command request data corresponding to each command. For example, in the case of the first command, a signal value corresponding to the detected physical quantity (for example, angular velocity) is output. Further, for example, in the case of the third command, all failure diagnosis results EF [15: 0] in the failure diagnosis unit 20 are output. Note that EF [15: 0] corresponds to EF [15] to EF [0] in FIG.

その他のコマンドについても、コマンド要求データとして様々なデータを出力可能である。例えば第4のコマンドは角速度とは異なる、例えば温度といった測定値を出力してもよいし、例えば第8のコマンドは負荷状態等を示すステータス信号を出力してもよい。コマンド数も8つに限らず、第9のコマンド以降への拡張も容易に行うことが可能である。   For other commands, various data can be output as command request data. For example, the fourth command may output a measured value such as temperature, which is different from the angular velocity, and for example, the eighth command may output a status signal indicating a load state or the like. The number of commands is not limited to eight, and expansion to the ninth command and later can be easily performed.

1.4.6.シリアル通信のタイミング
図6は、本実施形態のコマンドデータと応答データの送受信のタイミングを示す図である。なお、図1〜図5と同じ要素には同じ符号を付しており説明は省略する。
1.4.6. Serial Communication Timing FIG. 6 is a diagram illustrating transmission / reception timings of command data and response data according to the present embodiment. In addition, the same code | symbol is attached | subjected to the same element as FIGS. 1-5, and description is abbreviate | omitted.

インターフェース部10は、コマンドデータをコマンド1とコマンド2の2回に分けて受け取る。また、応答データを応答1と応答2の2回に分けて出力する。   The interface unit 10 receives command data in two times, command 1 and command 2. The response data is divided into two outputs, response 1 and response 2.

データの送受信が行われる期間(例えば、時刻t0〜t1)は、スレーブ選択信号SSは‘0’である。この期間はシリアルクロックSCKの16クロック分であり、インターフェース部は、例えばコマンドデータを1ビットずつ受信する。なお、本実施形態では、シリアルクロックSCKのクロック周波数は10MHzであって、標準モードのI2Cと比べても高速な通信が可能である。   During a period during which data is transmitted and received (for example, times t0 to t1), the slave selection signal SS is “0”. This period is 16 clocks of the serial clock SCK, and the interface unit receives, for example, command data bit by bit. In the present embodiment, the clock frequency of the serial clock SCK is 10 MHz, and high-speed communication is possible even compared with I2C in the standard mode.

インターフェース部10は、まず、第Nのコマンドデータを、第Nのコマンド1(時刻t0〜t1)、第Nのコマンド2(時刻t2〜t3)の順に受け取る。そして、第Nのコマンドが要求するデータを含む、第Nの応答データを生成する。   First, the interface unit 10 receives the Nth command data in the order of the Nth command 1 (time t0 to t1) and the Nth command 2 (time t2 to t3). Then, Nth response data including data requested by the Nth command is generated.

そして、インターフェース部10は、第N+1のコマンド1(時刻t4〜t5)、第N+1のコマンド2(時刻t6〜t7)を受け取るとともに、第Nの応答1(時刻t4〜t5)、第Nの応答2(時刻t6〜t7)を送信する。   The interface unit 10 receives the (N + 1) th command 1 (time t4 to t5) and the (N + 1) th command 2 (time t6 to t7), the Nth response 1 (time t4 to t5), and the Nth response. 2 (time t6 to t7) is transmitted.

その後、第N+1のコマンドに対する第N+1の応答データを、第N+1の応答1(時刻t8〜t9)、第N+1の応答2(時刻t10〜t11)の順に送信する。   After that, the (N + 1) th response data for the (N + 1) th command is transmitted in the order of the (N + 1) th response 1 (time t8 to t9) and the (N + 1) th response 2 (time t10 to t11).

本実施形態の物理量測定装置1では、SPIといった高速なシリアル通信方式を用いることができ、駆動回路、検出回路の故障のみならず、通信中のビット化けなどについてもエラー通知を行う、信頼性の高い物理量測定装置等1を提供できる。   The physical quantity measuring apparatus 1 according to the present embodiment can use a high-speed serial communication method such as SPI, and performs error notification not only for failure of a drive circuit and a detection circuit but also for garbled bits during communication. A high physical quantity measuring device 1 or the like can be provided.

そのため、本実施形態の物理量測定装置1は、安全性が求められる自動車、飛行機、船舶、鉄道等にも搭載することができる。例えば自動車の走行制御装置の一部として好適に適用が可能である。   Therefore, the physical quantity measuring device 1 of the present embodiment can be mounted on automobiles, airplanes, ships, railways, and the like that require safety. For example, it can be suitably applied as a part of an automobile travel control device.

これらの例示に限らず、本発明は、実施の形態で説明した構成と実質的に同一の構成(例えば、機能、方法および結果が同一の構成、あるいは目的および効果が同一の構成)を含む。また、本発明は、実施の形態で説明した構成の本質的でない部分を置き換えた構成を含む。また、本発明は、実施の形態で説明した構成と同一の作用効果を奏する構成又は同一の目的を達成することができる構成を含む。また、本発明は、実施の形態で説明した構成に公知技術を付加した構成を含む。   The present invention is not limited to these exemplifications, and includes configurations that are substantially the same as the configurations described in the embodiments (for example, configurations that have the same functions, methods, and results, or configurations that have the same objects and effects). In addition, the invention includes a configuration in which a non-essential part of the configuration described in the embodiment is replaced. In addition, the present invention includes a configuration that exhibits the same operational effects as the configuration described in the embodiment or a configuration that can achieve the same object. Further, the invention includes a configuration in which a known technique is added to the configuration described in the embodiment.

1…物理量測定装置(角速度センサー)、2…振動子、3…振動子、4…センサー素子、5…駆動回路、6…検出回路、6A…検出回路、7…動作設定回路、10…インターフェース部、11…シフトレジスター、12…バッファー、13…バッファー、14…コマンド判定回路、15…記憶回路、16…チェックサム回路、17…レジスター、18…レジスター、19…マルチプレクサー、20…故障診断部、29…シフトレジスター、30、30A、30B、30C、30D、30E…信号(第4の信号)、40…出力信号(第2の信号)、42、42A、42B…内部信号(第3の信号)、44、44A、44B…内部信号(第3の信号)、52…電流電圧変換回路、53…全波整流回路、54…比較調整回路、55…駆動信号生成回路、56…比較電圧供給回路、62、62−1、62−2…電流電圧変換回路、63…差動増幅回路(差動アンプ)、64…ハイパスフィルター(HPF)、65…増幅回路(ACアンプ)、66…同期検波回路、67、67A…信号出力部、68…ADコンバーター(ADC)、69…オフセット調整回路、70…前段回路、72…後段回路、80…励振電流、82…駆動信号、90、92…差動信号(第1の信号)、202、204、206、210、212、214、216、218、220、222…信号、210A、212A…差動信号、226…オフセット信号、CMP0〜CMP15…コンパレーター、EF…エラーフラグ、SS…スレーブ選択信号、SCK…シリアルクロック、MOSI…シリアル入力信号、MISO…シリアル出力信号 DESCRIPTION OF SYMBOLS 1 ... Physical quantity measuring device (angular velocity sensor), 2 ... Vibrator, 3 ... Vibrator, 4 ... Sensor element, 5 ... Drive circuit, 6 ... Detection circuit, 6A ... Detection circuit, 7 ... Operation setting circuit, 10 ... Interface part 11 ... shift register, 12 ... buffer, 13 ... buffer, 14 ... command determination circuit, 15 ... memory circuit, 16 ... checksum circuit, 17 ... register, 18 ... register, 19 ... multiplexer, 20 ... failure diagnosis unit, 29 ... shift register, 30, 30A, 30B, 30C, 30D, 30E ... signal (fourth signal), 40 ... output signal (second signal), 42, 42A, 42B ... internal signal (third signal) , 44, 44A, 44B ... internal signal (third signal), 52 ... current-voltage conversion circuit, 53 ... full-wave rectifier circuit, 54 ... comparison and adjustment circuit, 55 ... drive signal generation circuit 56 ... Comparison voltage supply circuit 62, 62-1, 62-2 ... Current / voltage conversion circuit 63 ... Differential amplifier circuit (differential amplifier) 64 ... High pass filter (HPF) 65 ... Amplifier circuit (AC amplifier) , 66 ... Synchronous detection circuit, 67, 67A ... Signal output unit, 68 ... AD converter (ADC), 69 ... Offset adjustment circuit, 70 ... Pre-stage circuit, 72 ... Post-stage circuit, 80 ... Excitation current, 82 ... Drive signal, 90, 92 ... differential signal (first signal), 202, 204, 206, 210, 212, 214, 216, 218, 220, 222 ... signal, 210A, 212A ... differential signal, 226 ... offset signal, CMP0 -CMP15 ... comparator, EF ... error flag, SS ... slave selection signal, SCK ... serial clock, MOSI ... serial input signal, MISO ... si Al output signal

Claims (6)

所定の物理量を検出する物理量測定装置であって、
前記所定の物理量を検出し、検出された前記所定の物理量の大きさに応じた信号である第1の信号を出力するセンサー素子と、
前記第1の信号に基づいて、前記所定の物理量に応じた第2の信号を生成する検出回路と、
駆動信号を生成し、前記駆動信号を前記センサー素子に供給する駆動回路と、
前記検出回路および前記駆動回路の少なくとも1つから内部信号である第3の信号を受け取り、前記第3の信号に基づいて前記検出回路および前記駆動回路の少なくとも1つについての故障診断を行い、前記故障診断の結果に応じた信号である第4の信号を出力する故障診断部と、
コマンドを受け取り、前記コマンドが要求するデータであるコマンド要求データを生成し、前記コマンド要求データを含む応答データをシリアルに送信するインターフェース部と、を含み、
前記インターフェース部は、
前記第2の信号および前記第4の信号のうち少なくとも1つの信号に基づいて前記コマンド要求データを生成し、
前記応答データに、エラーの発生の有無を表すエラーフラグを含め、
前記エラーフラグに、前記コマンドについて通信中にエラーが発生したか否かを表すコマンドエラーフラグを少なくとも含める物理量測定装置。
A physical quantity measuring device for detecting a predetermined physical quantity,
A sensor element that detects the predetermined physical quantity and outputs a first signal that is a signal corresponding to the detected magnitude of the predetermined physical quantity;
A detection circuit that generates a second signal according to the predetermined physical quantity based on the first signal;
A drive circuit that generates a drive signal and supplies the drive signal to the sensor element;
Receiving a third signal that is an internal signal from at least one of the detection circuit and the drive circuit, performing a fault diagnosis on at least one of the detection circuit and the drive circuit based on the third signal, and A fault diagnosis unit that outputs a fourth signal that is a signal corresponding to a result of the fault diagnosis;
An interface unit that receives a command, generates command request data that is data requested by the command, and serially transmits response data including the command request data;
The interface unit is
Generating the command request data based on at least one of the second signal and the fourth signal;
The response data includes an error flag indicating whether an error has occurred,
A physical quantity measuring device including at least a command error flag indicating whether an error has occurred during communication for the command in the error flag.
請求項1に記載の物理量測定装置において、
前記インターフェース部は、
他の前記コマンドと重ならない固有の1つのビットのみに所定の値を有するコマンドデータをシリアルに受け取り、
前記コマンドデータに基づいて、前記コマンドについて通信中にエラーが発生したか否かを判断して、前記エラーフラグの値を定める物理量測定装置。
The physical quantity measuring device according to claim 1,
The interface unit is
Serially receiving command data having a predetermined value in only one unique bit that does not overlap with the other commands,
A physical quantity measuring apparatus that determines whether an error has occurred during communication of the command based on the command data and determines a value of the error flag.
請求項1乃至2のいずれかに記載の物理量測定装置において、
前記インターフェース部は、
前記コマンドの1つである故障診断結果出力コマンドを受け取った場合に、
前記故障診断部が行った前記故障診断のそれぞれの結果を含む前記コマンド要求データを生成する物理量測定装置。
The physical quantity measuring device according to claim 1,
The interface unit is
When a failure diagnosis result output command that is one of the commands is received,
A physical quantity measuring device that generates the command request data including each result of the failure diagnosis performed by the failure diagnosis unit.
請求項1乃至3のいずれかに記載の物理量測定装置において、
前記インターフェース部は、
前記応答データに、前記コマンド要求データおよび前記エラーフラグについてのチェックサムを含める物理量測定装置。
In the physical quantity measuring device according to any one of claims 1 to 3,
The interface unit is
A physical quantity measuring device that includes a checksum for the command request data and the error flag in the response data.
請求項1乃至4のいずれかに記載の物理量測定装置において、
前記インターフェース部は、
前記応答データを複数回に分けて送信する物理量測定装置。
In the physical quantity measuring device according to any one of claims 1 to 4,
The interface unit is
A physical quantity measuring device that transmits the response data in a plurality of times.
請求項1乃至5のいずれかに記載の物理量測定装置において、
前記センサー素子は、
前記所定の物理量として角速度を検出する物理量測定装置。
In the physical quantity measuring device according to any one of claims 1 to 5,
The sensor element is
A physical quantity measuring device that detects an angular velocity as the predetermined physical quantity.
JP2011044191A 2011-03-01 2011-03-01 Physical quantity measuring device Pending JP2012181677A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011044191A JP2012181677A (en) 2011-03-01 2011-03-01 Physical quantity measuring device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011044191A JP2012181677A (en) 2011-03-01 2011-03-01 Physical quantity measuring device

Publications (1)

Publication Number Publication Date
JP2012181677A true JP2012181677A (en) 2012-09-20

Family

ID=47012828

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011044191A Pending JP2012181677A (en) 2011-03-01 2011-03-01 Physical quantity measuring device

Country Status (1)

Country Link
JP (1) JP2012181677A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107229010A (en) * 2016-03-25 2017-10-03 精工爱普生株式会社 Circuit, detection means, oscillator, electronic equipment, moving body and detection method
US10677610B2 (en) 2016-03-25 2020-06-09 Seiko Epson Corporation Circuit device, physical quantity detection device, electronic apparatus, and vehicle

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1139586A (en) * 1997-07-23 1999-02-12 Denso Corp Automatic operation controller
JP2005536809A (en) * 2002-08-22 2005-12-02 ローベルト ボツシユ ゲゼルシヤフト ミツト ベシユレンクテル ハフツング Control device
JP2006112346A (en) * 2004-10-15 2006-04-27 Denso Corp Signal processor
JP2007285745A (en) * 2006-04-13 2007-11-01 Matsushita Electric Ind Co Ltd Angular velocity sensor

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1139586A (en) * 1997-07-23 1999-02-12 Denso Corp Automatic operation controller
JP2005536809A (en) * 2002-08-22 2005-12-02 ローベルト ボツシユ ゲゼルシヤフト ミツト ベシユレンクテル ハフツング Control device
JP2006112346A (en) * 2004-10-15 2006-04-27 Denso Corp Signal processor
JP2007285745A (en) * 2006-04-13 2007-11-01 Matsushita Electric Ind Co Ltd Angular velocity sensor

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107229010A (en) * 2016-03-25 2017-10-03 精工爱普生株式会社 Circuit, detection means, oscillator, electronic equipment, moving body and detection method
US10318370B2 (en) 2016-03-25 2019-06-11 Seiko Epson Corporation Circuit device, physical quantity detection device, oscillator, electronic apparatus, vehicle, and method of detecting failure of master clock signal
US10677610B2 (en) 2016-03-25 2020-06-09 Seiko Epson Corporation Circuit device, physical quantity detection device, electronic apparatus, and vehicle

Similar Documents

Publication Publication Date Title
JP6210187B2 (en) Integrated circuit device, physical quantity measuring device, electronic device, and moving object
Fedorov et al. Using of measuring system MPU6050 for the determination of the angular velocities and linear accelerations
US20230099359A1 (en) Inertial Sensor Module
KR102035108B1 (en) Semiconductor system
JP2011203028A (en) Device for detecting angular velocity and acceleration
JP4327720B2 (en) Sensor, controller and method for monitoring at least one sensor
US9594169B2 (en) Altitude detecting unit, loading/driving apparatus, and altitude detecting method
CN113821399A (en) Security device and method for maintaining data security
JP2012181677A (en) Physical quantity measuring device
WO2013111454A1 (en) Physical quantity-detecting device
KR20160106769A (en) Accelerometer autocalibration in a mobile device
JP6232733B2 (en) Communication circuit, physical quantity measuring device, electronic device, mobile object, communication method
US10677610B2 (en) Circuit device, physical quantity detection device, electronic apparatus, and vehicle
JP5554684B2 (en) Physical quantity detection device, network system
JP5125534B2 (en) Direction detection device and direction detection program
WO2009122739A1 (en) Sensor device
JP2017181485A (en) Circuit device, physical quantity detection device, oscillator, electronic apparatus, movable body, and abnormality detection method for master clock signal
JP4935300B2 (en) Sensor circuit with abnormality detection circuit for self-diagnosis
JP7202989B2 (en) Sensor maintenance system, information processing device, and program
JP2019174368A (en) Circuit device, physical quantity measuring device, electronic apparatus, moving body, and phase adjustment method
JP6542720B2 (en) Full duplex communication device
KR101031641B1 (en) Chip logic debugging chip, debugging system using chip logic debugging chip and method for datarization of external chip signal
USRE47211E1 (en) Inertial sensor
JP2015028705A (en) Sensor apparatus
JP2020035205A (en) Computation device, and mutual monitoring system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20140213

RD07 Notification of extinguishment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7427

Effective date: 20140619

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20141016

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20141119

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20141229

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20150128