JP2018200666A - Detection system, sensor and microcomputer - Google Patents
Detection system, sensor and microcomputer Download PDFInfo
- Publication number
- JP2018200666A JP2018200666A JP2017177551A JP2017177551A JP2018200666A JP 2018200666 A JP2018200666 A JP 2018200666A JP 2017177551 A JP2017177551 A JP 2017177551A JP 2017177551 A JP2017177551 A JP 2017177551A JP 2018200666 A JP2018200666 A JP 2018200666A
- Authority
- JP
- Japan
- Prior art keywords
- signal
- microcomputer
- clock signal
- output
- 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.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G08—SIGNALLING
- G08C—TRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
- G08C19/00—Electric signal transmission systems
- G08C19/02—Electric signal transmission systems in which the signal transmitted is magnitude of current or voltage
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
- H04J3/0635—Clock or time synchronisation in a network
- H04J3/0638—Clock or time synchronisation among nodes; Internode synchronisation
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01D—MEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
- G01D21/00—Measuring or testing not otherwise provided for
-
- G—PHYSICS
- G08—SIGNALLING
- G08C—TRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
- G08C17/00—Arrangements for transmitting signals characterised by the use of a wireless electrical link
- G08C17/02—Arrangements for transmitting signals characterised by the use of a wireless electrical link using a radio link
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03B—GENERATION OF OSCILLATIONS, DIRECTLY OR BY FREQUENCY-CHANGING, BY CIRCUITS EMPLOYING ACTIVE ELEMENTS WHICH OPERATE IN A NON-SWITCHING MANNER; GENERATION OF NOISE BY SUCH CIRCUITS
- H03B5/00—Generation of oscillations using amplifier with regenerative feedback from output to input
- H03B5/08—Generation of oscillations using amplifier with regenerative feedback from output to input with frequency-determining element comprising lumped inductance and capacitance
- H03B5/12—Generation of oscillations using amplifier with regenerative feedback from output to input with frequency-determining element comprising lumped inductance and capacitance active element in amplifier being semiconductor device
- H03B5/1206—Generation of oscillations using amplifier with regenerative feedback from output to input with frequency-determining element comprising lumped inductance and capacitance active element in amplifier being semiconductor device using multiple transistors for amplification
- H03B5/1212—Generation of oscillations using amplifier with regenerative feedback from output to input with frequency-determining element comprising lumped inductance and capacitance active element in amplifier being semiconductor device using multiple transistors for amplification the amplifier comprising a pair of transistors, wherein an output terminal of each being connected to an input terminal of the other, e.g. a cross coupled pair
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03K—PULSE TECHNIQUE
- H03K5/00—Manipulating of pulses not covered by one of the other main groups of this subclass
- H03K5/13—Arrangements having a single output and transforming input signals into pulses delivered at desired time intervals
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03M—CODING; DECODING; CODE CONVERSION IN GENERAL
- H03M1/00—Analogue/digital conversion; Digital/analogue conversion
- H03M1/10—Calibration or testing
- H03M1/1009—Calibration
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03M—CODING; DECODING; CODE CONVERSION IN GENERAL
- H03M1/00—Analogue/digital conversion; Digital/analogue conversion
- H03M1/12—Analogue/digital converters
- H03M1/124—Sampling or signal conditioning arrangements specially adapted for A/D converters
- H03M1/1245—Details of sampling arrangements or methods
- H03M1/1285—Synchronous circular sampling, i.e. using undersampling of periodic input signals
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
- H04J3/0635—Clock or time synchronisation in a network
- H04J3/0682—Clock or time synchronisation in a network by delay compensation, e.g. by compensation of propagation delay or variations thereof, by ranging
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Theoretical Computer Science (AREA)
- Nonlinear Science (AREA)
- Arrangements For Transmission Of Measured Signals (AREA)
Abstract
【課題】マイクロコンピュータから入力するクロック信号に基づいてセンサのクロック信号の周波数を補正すること。【解決手段】検出システム100は、センサ1、マイクロコンピュータ2を有する。センサ1は、クロック信号CLK1に基づいてサンプリングしたアナログ信号をアナログ/デジタル変換して生成したサンプリングデータSDを出力可能に構成される。マイクロコンピュータ2は、クロック信号CLK2を生成してセンサ1に出力し、かつ、センサ1からサンプリングデータSDを読み出す。センサ1は、クロック信号CLK2に基づいて、クロック信号CLK1の周波数を補正する。【選択図】図1To correct the frequency of a clock signal of a sensor based on a clock signal input from a microcomputer. A detection system includes a sensor and a microcomputer. The sensor 1 is configured to be able to output sampling data SD generated by performing analog / digital conversion on an analog signal sampled based on the clock signal CLK1. The microcomputer 2 generates the clock signal CLK2 and outputs it to the sensor 1, and reads out the sampling data SD from the sensor 1. The sensor 1 corrects the frequency of the clock signal CLK1 based on the clock signal CLK2. [Selection diagram] Fig. 1
Description
本発明は、検出システム、センサ及びマイクロコンピュータに関する。 The present invention relates to a detection system, a sensor, and a microcomputer.
近年、種々のセンサからデータを取得し、取得したデータを処理する検出システムが用いられている。このような例として、複数のセンサで取得したデータを処理するセンサシステムが提案されている(特許文献1)。 In recent years, detection systems that acquire data from various sensors and process the acquired data have been used. As such an example, a sensor system that processes data acquired by a plurality of sensors has been proposed (Patent Document 1).
このシステムでは、制御部、第1のセンサ及び第2のセンサとの間で、データのやり取りが行われる。この例では、制御部の第1入力端子と第1のセンサの入出力端子が接続される。制御部の第2入力端子と第2のセンサの入出力端子が接続される。第1のセンサの入出力端子と第2のセンサの入出力端子とが接続されている。第2のセンサは、第1のセンサ信号が入力され、入力された第1のセンサ信号に応答して、第2の同期化信号と第2の同期化信号を基準とする第2のセンサデータとを含む第2のセンサ信号をシリアルで出力する。これにより、このシステムでは、少なくとも2つ以上のセンサの出力データが、同じ期間に得られたセンサの出力データとなり、これを簡素なセンサシステム及びセンサにて実現することができる。 In this system, data is exchanged between the control unit, the first sensor, and the second sensor. In this example, the first input terminal of the control unit and the input / output terminal of the first sensor are connected. The second input terminal of the control unit and the input / output terminal of the second sensor are connected. The input / output terminal of the first sensor and the input / output terminal of the second sensor are connected. The second sensor receives the first sensor signal, and in response to the input first sensor signal, the second sensor data based on the second synchronization signal and the second synchronization signal. The second sensor signal including is serially output. Thereby, in this system, the output data of at least two or more sensors becomes the output data of the sensor obtained in the same period, and this can be realized with a simple sensor system and sensor.
しかし、上述の構成では、センサからのデータの出力タイミングを同期させることはできるものの、データのサンプリングされたタイミングが同じであるかまでは保証できない。この場合、センサにおいては、検出結果を示すアナログ信号をデジタル信号に変換した後に、データを出力する。この際、サンプリングのタイミングの基準となるクロック信号に応じてアナログ/デジタル変換が行われる。よって、複数のセンサにおけるデータのサンプリングタイミングを高精度に同期させるためには、各センサで用いられるクロック信号の周波数精度を保つ必要がある。しかし、消費電力やコスト等の問題から各センサに高精度な水晶発振回路等を内蔵することは一般的ではない。そのため、リングオシレータ等の簡易な発振回路が用いられるが、こうした簡易な発振回路は周波数が変動しやすいという問題がある。 However, although the output timing of the data from the sensor can be synchronized with the above-described configuration, it cannot be guaranteed that the timing at which the data is sampled is the same. In this case, the sensor outputs data after converting the analog signal indicating the detection result into a digital signal. At this time, analog / digital conversion is performed in accordance with a clock signal which is a reference for sampling timing. Therefore, in order to synchronize the sampling timing of data in a plurality of sensors with high accuracy, it is necessary to maintain the frequency accuracy of the clock signal used in each sensor. However, it is not common to incorporate a highly accurate crystal oscillation circuit or the like in each sensor due to problems such as power consumption and cost. Therefore, a simple oscillation circuit such as a ring oscillator is used. However, such a simple oscillation circuit has a problem that the frequency is likely to fluctuate.
その他の課題と新規な特徴は、本明細書の記述および添付図面から明らかになるであろう。 Other problems and novel features will become apparent from the description of the specification and the accompanying drawings.
一実施の形態によれば、検出システムは、第1のクロック信号に基づいてサンプリングしたアナログ信号をアナログ/デジタル変換して生成したサンプリングデータを出力可能に構成されたセンサと、第2のクロック信号を生成して前記センサに出力し、かつ、前記センサから前記サンプリングデータを読み出すマイクロコンピュータと、を有し、前記センサは、前記第2のクロック信号に基づいて、前記第1のクロック信号の周波数を補正する。 According to one embodiment, a detection system includes a sensor configured to output sampling data generated by analog / digital conversion of an analog signal sampled based on a first clock signal, and a second clock signal And a microcomputer for reading out the sampling data from the sensor, the sensor based on the second clock signal, the frequency of the first clock signal Correct.
一実施の形態によれば、センサは、第1のクロック信号に基づいてサンプリングしたアナログ信号をアナログ/デジタル変換して生成したサンプリングデータを出力可能に構成され、マイクロコンピュータで生成された第2のクロック信号に基づいて、前記第1のクロック信号の周波数を補正し、前記マイクロコンピュータによって、前記サンプリングデータが読み出される。 According to an embodiment, the sensor is configured to output sampling data generated by analog / digital conversion of an analog signal sampled based on the first clock signal, and the second data generated by the microcomputer Based on the clock signal, the frequency of the first clock signal is corrected, and the sampling data is read out by the microcomputer.
一実施の形態によれば、マイクロコンピュータは、第1のクロック信号に基づいてサンプリングしたアナログ信号をアナログ/デジタル変換して生成したサンプリングデータを出力可能に構成されたセンサに、第2のクロック信号を生成して出力し、かつ、前記センサから前記サンプリングデータを読み出し可能に構成され、前記第1のクロック信号の周波数は、前記第2のクロック信号に基づいて、前記センサにより補正される。 According to one embodiment, the microcomputer outputs a second clock signal to a sensor configured to output sampling data generated by analog / digital conversion of an analog signal sampled based on the first clock signal. And outputting the sampling data from the sensor, and the frequency of the first clock signal is corrected by the sensor based on the second clock signal.
一実施の形態によれば、マイクロコンピュータから入力するクロック信号に基づいてセンサのクロック信号の周波数を補正することができる。 According to one embodiment, the frequency of the clock signal of the sensor can be corrected based on the clock signal input from the microcomputer.
以下、図面を参照して本発明の実施の形態について説明する。各図面においては、同一要素には同一の符号が付されており、必要に応じて重複説明は省略される。 Embodiments of the present invention will be described below with reference to the drawings. In the drawings, the same elements are denoted by the same reference numerals, and redundant description is omitted as necessary.
実施の形態1
以下、図面を参照して本発明の実施の形態について説明する。図1は、実施の形態1にかかる検出システム100の基本構成を模式的に示す図である。図2は、実施の形態1にかかる検出システム100の構成を模式的に示す図である。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a diagram schematically illustrating a basic configuration of a
検出システム100は、センサ1及びマイクロコンピュータ2を有する。センサ1とマイクロコンピュータ2とは、互いにデータ通信が可能である。なお、センサ1とマイクロコンピュータ2との間のデータ通信は、有線通信及び無線通信のいずれで行ってもよい。センサ1は、例えば、圧力や加速度などといった物理量を検出し、検出結果を内部のメモリに格納可能に構成される。マイクロコンピュータ2は、センサ1から検出結果を示すデータを読み出し、かつ、センサ1の動作を制御することが可能に構成される。
The
まず、センサ1について説明する。センサ1は、通信部11、検出部12、発振器13、アナログ/デジタル(A/D)変換器14、メモリ15及び周波数補正部16を有する。通信部11、発振器13、アナログ/デジタル(A/D)変換器14、メモリ15及び周波数補正部16とは、検出部12からのアナログ信号をA/D変換するA/D変換部である信号処理部1Aを構成する。
First, the
通信部11(第1の入出力部とも称する)は、マイクロコンピュータ2とのデータ通信を行うための入出力装置である。 The communication unit 11 (also referred to as a first input / output unit) is an input / output device for performing data communication with the microcomputer 2.
検出部12は、圧力や加速度などの所定の物理量を検出し、検出結果をアナログ信号ASとして出力する。
The
発振器13は、発振動作によってクロック信号CLK1を生成し、A/D変換器14へ出力する。本実施の形態では、発振器13は、比較的簡易な構成を有し、例えばリングオシレータなどにより構成される。この場合、発振器13は、経時変化や環境変動によって発振周波数が変動しやすい特性を有する。よって、クロック信号CLK1の周波数を一定の値に維持するため、発振器13は、周波数補正部16から入力される制御信号CONに応じて、クロック信号CLK1の周波数を調整可能に構成される。
The
A/D変換器14は、発振器13から受け取ったクロック信号CLK1に基づいてサンプリングしたアナログ信号ASをアナログ/デジタル変換(A/D変換)し、変換したデジタル信号をサンプリングデータSDとして出力する。
The A /
メモリ15は、A/D変換器14から逐次出力されたサンプリングデータSDを格納する機能を有する。メモリ15は、マイクロコンピュータ2からのデータの読み出し要求REQに応じて、格納されているサンプリングデータSDを、通信部11を介してマイクロコンピュータ2へ出力する。メモリ15としては、例えばFIFO(First In, First Out)などを用いてもよい。
The
周波数補正部16は、通信部11を介してマイクロコンピュータ2から入力されるクロック信号CLK2を受けとり、クロック信号CLK2に基づいて、発振器13が出力するクロック信号CLK1の周波数を補正するための制御信号CONを発振器13へ出力する。なお、クロック信号CLK1の周波数の補正動作の詳細については、後述する。
The
次いで、マイクロコンピュータ2について説明する。マイクロコンピュータ2は、上述の通り、センサ1からサンプリングデータSDを読み出し可能に構成される。マイクロコンピュータ2は、通信部21、クロック信号生成部22、更に図示しないがCPU及びメモリを有する。
Next, the microcomputer 2 will be described. As described above, the microcomputer 2 is configured to be able to read the sampling data SD from the
通信部21(第2の入出力部とも称する)は、センサ1とのデータ通信を行うための入出力装置である。
The communication unit 21 (also referred to as a second input / output unit) is an input / output device for performing data communication with the
クロック信号生成部22は、例えば発振回路を内蔵しており、発振動作に基づいて、マイクロコンピュータ2に設けられた各部の処理に用いられるクロック信号CLK2を出力する。クロック信号CLK2は、通信部21を介して、例えば読み出し要求REQとともに、センサ1にも出力される。センサ1に入力されたクロック信号CLK2は、上述の通り、周波数補正部16での補正処理に用いられる。
The clock
図3に、動作タイミングの一例を示す。センサ1は、時刻T1に検出部12からの出力信号(アナログ信号AS)をサンプリングし、A/D変換器14によりデジタル信号(サンプリングデータSD)に変換した後、メモリ15に保持する。同様に、センサ1は、時刻T2に検出部12からの出力信号(アナログ信号AS)をサンプリングし、A/D変換器14によりデジタル信号(サンプリングデータSD)に変換した後、メモリ15に保持する。次いで、時刻T3にマイクロコンピュータ2がスリープからアクティブに遷移した後、マイクロコンピュータ2は、センサ1へクロック信号CLK2及び読み出し要求REQを出力する。センサ1は、読み出し要求REQを受信すると、メモリ15に保持された時刻T1及びT2のサンプリングデータSDを、通信部11を介してマイクロコンピュータへ出力する。そして、時刻T4にマイクロコンピュータ2はスリープへ遷移する。同様に、時刻T8にマイクロコンピュータ2がアクティブに遷移すると、時刻T5、T6、T7のサンプリングデータSDが、センサ1から出力される。
FIG. 3 shows an example of operation timing. The
本実施の形態では、クロック信号生成部22は、クロック信号CLK2の周波数を高精度に安定化させることができる発振回路、例えば、水晶発振回路や高精度にトリミングされたオンチップ発振回路等を含み、発振器13と比べて高い周波数安定性を有するものとして構成される。
In the present embodiment, the clock
また、マイクロコンピュータ2は、センサ1から逐次読み出した複数のサンプリングデータSDを、クロック信号CLK2に基づいて時系列に並べて解析する機能を有する。
The microcomputer 2 has a function of analyzing a plurality of sampling data SD sequentially read from the
次いで、クロック信号CLK1の補正処理について説明する。図4は、実施の形態1にかかるセンサ1の構成をより詳細に示す図である。図4に示すように、周波数補正部16は、分周器161、周波数電圧変換部162、周波数電圧変換部163、比較器164、差動増幅器165、電圧ホールド部166及びスイッチ167を有する。
Next, the correction process of the clock signal CLK1 will be described. FIG. 4 is a diagram illustrating the configuration of the
分周器161には、マイクロコンピュータ2から、通信部11を介して、クロック信号CLK2が入力する。分周器161は、クロック信号CLK2を所定の比率nで分周する。すなわち、分周器161は、クロック信号CLK2の周波数をfとすると、f/nの周波数を有する分周信号CLKDを出力する。
The clock signal CLK <b> 2 is input from the microcomputer 2 through the
周波数電圧変換部162(第1の周波数電圧変換部とも称する)は、発振器13が出力するクロック信号CLK1を電圧信号V1(第1の信号とも称する)に変換する。図5に、周波数電圧変換部162の構成の一例を示す。クロック信号CLKIN(CLK1に相当する)は、タイミング制御回路33に入力される。タイミング制御回路33は、クロック信号CLKINに基づき、チャージ信号CHR及びディスチャージ信号DCHRを生成する。スイッチ34は、定電流回路32と容量36とを導通できるように挿入され、スイッチ34のON/OFFはチャージ信号CHRにより制御される。スイッチ35は、容量36とグランド電位とを接続できるように挿入され、スイッチ35のON/OFFはディスチャージ信号DCHRにより制御される。よって、クロック信号CLKINに応じて、定電流回路32から出力される電流によって容量36に電荷をチャージし、容量36に保持された電荷をディスチャージすることにより、クロック信号CLKINの周波数に応じた電圧VOUT(電圧信号V1に相当する)が出力される。
The frequency voltage converter 162 (also referred to as a first frequency voltage converter) converts the clock signal CLK1 output from the
周波数電圧変換部(第2の周波数電圧変換部とも称する)163は、分周信号CLKDの周波数を電圧信号V2(第2の信号とも称する)に変換する。周波数電圧変換部163は、図5に示す周波数電圧変換部162と同様に構成される。
A frequency voltage converter (also referred to as a second frequency voltage converter) 163 converts the frequency of the frequency-divided signal CLKD into a voltage signal V2 (also referred to as a second signal). The frequency
比較器164は、電圧信号V2を所定の電圧Vthと比較し、比較結果である信号Vcを、切り替え信号として、電圧ホールド部166とスイッチ167とに出力する。
The
差動増幅器165の一方の入力には電圧信号V1が入力され、他方の入力には電圧信号V2が入力される。例えば、本実施の形態では、差動増幅器165の反転入力に電圧信号V2が入力され、非反転入力には電圧信号V1が入力される。そして、差動増幅器165は、電圧信号V1と電圧信号V2との差電圧を示す出力電圧Vdを出力する。
The voltage signal V1 is input to one input of the
電圧ホールド部166は、信号Vcに応じて、差動増幅器165の出力電圧Vdをホールドする。図6に、電圧ホールド部の構成の一例を示す。スイッチ42は、信号VcによりON/OFFが制御される。スイッチ42がONのときには出力電圧Vdが容量43に印加され、スイッチ42がOFFのときには出力電圧Vdの電圧値が容量43に保持される。保持された電圧値は、オペアンプ41を用いたボルテージフォロワ回路等により電圧Vhとして出力される。
The
スイッチ167は、信号Vcに応じて、発振器13の制御端子を、差動増幅器165の出力端子及び電圧ホールド部166の出力端子のいずれか一方に接続する。図7に、発振器13の構成の一例を示す。発振器13はn(nは、正の奇数)個の反転回路INV_1〜INV_nをリング状に接続したリングオシレータにより構成される。電圧制御部から各反転回路に電源電圧が供給される。制御信号CONにより電圧制御回路31から供給される電圧値が制御されることにより、各反転回路の遅延量が変化することで、発振器13から出力されるクロック信号CLK1の周波数が制御される。
The
上記したように、マイクロコンピュータ2のクロック信号生成部22は、センサ1と同期して動作しているわけではない。そのため、クロック信号CLK1の周波数は、クロック信号CLK2と関わりなく変動する。しかも、上記したように、クロック信号CLK1の周波数は比較的変動しやすいので、マイクロコンピュータ2のデータの時系列処理の精度を担保するには、クロック信号CLK1の周波数を、クロック信号CLK2基づいて、一定の値に保持する必要がある。マイクロコンピュータ2から受け取るクロック信号CLK1の発振周波数をセンサ1で予め知ることができない場合、マイクロコンピュータ2から、センサ1に対して通信で使用しているクロックの周波数情報を送信することもできる。周波数情報の送信は好適なタイミングで行えばよい。
As described above, the clock
以下、クロック信号CLK1の周波数の補正動作について説明する。
[1.センサ1にクロック信号CLK2が入力されている場合]
センサ1にクロック信号CLK2が入力されている場合には、周波数電圧変換部163は、分周信号CLKDの周波数を示す電圧信号V2を出力する。
Hereinafter, the operation of correcting the frequency of the clock signal CLK1 will be described.
[1. When clock signal CLK2 is input to sensor 1]
When the clock signal CLK2 is input to the
比較器164に入力される所定の電圧Vthは、クロック信号CLK2が入力されている場合の電圧信号V2が電圧Vthよりも大きくなるような値に設定される。よって、この場合、比較器164は、信号Vcとして、例えばHIGHを出力する。
The predetermined voltage Vth input to the
信号VcがHIGHである場合、スイッチ167は、発振器13の制御端子を差動増幅器165の出力端子と接続する。また、差動増幅器165では、クロック信号CLK1の周波数を示す電圧信号V1と分周信号CLKDの周波数を示す電圧信号V2とが比較され、これらの差電圧である出力電圧Vdが、制御信号CONとして出力される。
When the signal Vc is HIGH, the
発振器13は、制御信号CONの値に応じて、出力するクロック信号CLK1の周波数を増減させることで、クロック信号CLK1の周波数を分周信号CLKDの周波数に一致させることができる。
[2.センサ1へのクロック信号CLK2の入力が停止する場合]
センサ1へのクロック信号CLK2の入力が停止する場合には、分周信号CLKDの周波数を示す電圧信号V2が例えば「0」となる。
The
[2. When input of clock signal CLK2 to
When the input of the clock signal CLK2 to the
よって、電圧信号V2は電圧Vthよりも小さくなるので、比較器164は信号Vcとして、例えばLOWを出力する。
Therefore, since the voltage signal V2 becomes smaller than the voltage Vth, the
信号VcがLOWである場合、電圧ホールド部166は、差動増幅器165から出力される制御信号CON(すなわち出力電圧Vd)をホールドする。
When the signal Vc is LOW, the
スイッチ167は、発振器13の制御端子を電圧ホールド部166の出力端子と接続する。よって、発振器13には、電圧ホールド部166がホールドした一定電圧Vhの制御信号CONが入力される。これにより、発振器13でのクロック信号CLK1の周波数の補正動作は中止される。
The
[3.センサ1にクロック信号CLK2が再度入力される場合]
この場合には、上述したように、発振器13でのクロック信号CLK1の周波数の補正動作が再開される。
[3. When the clock signal CLK2 is input to the
In this case, as described above, the operation of correcting the frequency of the clock signal CLK1 in the
次いで、クロック信号CLK1の補正動作の実施例について説明する。
[実施例1 センサ1が予期せずにスリープモードに入った場合]
センサ1は、例えば電力消費を抑制するためにスリープモードに入ることがある。この場合、マイクロコンピュータ2がセンサ1からデータを読み出すためには、センサ1を起動し、クロック信号CLK1を補正する。
Next, an example of the correction operation of the clock signal CLK1 will be described.
Example 1 When
For example, the
図8は、センサ1が予期せずにスリープモードに入った場合の復帰動作を示す図である。
FIG. 8 is a diagram illustrating a return operation when the
ステップS11
センサ1が予期せずに、スリープモードに入る。
Step S11
ステップS12
マイクロコンピュータ2は、センサ1に、メモリ15に格納されたデータに読み出し要求REQを送る。
Step S12
The microcomputer 2 sends a read request REQ to the data stored in the
ステップS13
マイクロコンピュータ2は、センサ1から読み出し要求に対する応答が有ったかを判定する。
Step S13
The microcomputer 2 determines whether there is a response to the read request from the
ステップS14
マイクロコンピュータ2は、センサ1から読み出し命令に対する応答が無かった場合、センサ1に対して起動命令を送る。
Step S14
When there is no response to the read command from the
ステップS15
起動命令を送った後、所定時間の経過後、ステップS12に戻る。
Step S15
After the start command is sent, the process returns to step S12 after a predetermined time has elapsed.
ステップS16
マイクロコンピュータ2は、センサ1から読み出し命令に対する応答が有った場合、センサ1に対してクロック信号CLK2を出力する。センサ1は、クロック信号CLK2を参照して、クロック信号CLK1の補正動作を行う。これにより、クロック信号CLK1の周波数は所望の値に補正される。
Step S16
When there is a response to the read command from the
ステップS17
マイクロコンピュータ2は、センサ1から、所定のサンプリングデータSDを読み出す。
Step S17
The microcomputer 2 reads predetermined sampling data SD from the
[実施例2 マイクロコンピュータ2が予期せずにスリープモードに入った場合]
マイクロコンピュータ2は、例えば電力消費を抑制するためにスリープモードに入ることがある。この場合、マイクロコンピュータ2がスリープモードから復帰したときに、クロック信号CLK1を補正する必要がある。
[Example 2 When the microcomputer 2 unexpectedly enters the sleep mode]
For example, the microcomputer 2 may enter a sleep mode in order to reduce power consumption. In this case, it is necessary to correct the clock signal CLK1 when the microcomputer 2 returns from the sleep mode.
図9は、マイクロコンピュータ2が予期せずにスリープモードに入った場合の復帰動作を示す図である。 FIG. 9 is a diagram showing a return operation when the microcomputer 2 unexpectedly enters the sleep mode.
ステップS21
マイクロコンピュータ(MCU)2が予期せずに、スリープモードに入る。
Step S21
The microcomputer (MCU) 2 unexpectedly enters the sleep mode.
ステップS22
マイクロコンピュータ(MCU)2が、スリープモードから復帰する。
Step S22
The microcomputer (MCU) 2 returns from the sleep mode.
ステップS23
マイクロコンピュータ2は、センサ1に、読み出し要求REQを送るとともに、クロック信号CLK2を出力する。 センサ1は、クロック信号CLK2を参照して、クロック信号CLK1の補正動作を行う。これにより、クロック信号CLK1の周波数は所望の値に補正される。
Step S23
The microcomputer 2 sends a read request REQ to the
ステップS24
マイクロコンピュータ2は、センサ1から、所定のサンプリングデータSDを読み出す。
Step S24
The microcomputer 2 reads predetermined sampling data SD from the
以上、本構成によれば、センサ1の発振器13が出力するクロック信号CLK1の周波数が変動しても、マイクロコンピュータ2から与えられるクロック信号CLK2に基づいて、クロック信号CLK1の周波数を適切な値に補正することができる。
As described above, according to this configuration, even if the frequency of the clock signal CLK1 output from the
また、マイクロコンピュータ2がセンサ1と同様の構成を有する複数のセンサからデータを読み出す場合、各センサのデータのサンプリングを同期させるためには、各センサのクロック信号CLK1の周波数が同じでなければならない。これに対し、本構成では、マイクロコンピュータ2から各センサにクロック信号CLK2を出力して、各センサでクロック信号CLK1の補正を行うことができるので、容易に各センサのクロック信号CLK1を補正することが可能である。
Further, when the microcomputer 2 reads data from a plurality of sensors having the same configuration as the
更に、マイクロコンピュータ2は、例えば必要な信号をセンサ1に出力することで、サンプリング周波数やクロック信号CLK1の周波数を設定してもよい。例えば、マイクロコンピュータ2がセンサ1に対してサンプリング周波数やクロック信号CLK1の周波数を設定することで、センサ1はクロック信号CLK2の分周比を設定することができる。なお、マイクロコンピュータ2は、クロック信号CLK2の分周比自体をセンサ1に設定してもよいことは勿論である。
Further, the microcomputer 2 may set the sampling frequency and the frequency of the clock signal CLK1 by outputting a necessary signal to the
実施の形態2
実施の形態2にかかる検出システム100について説明する。図10は、実施の形態2にかかる検出システム200の構成を模式的に示す図である。検出システム200は、実施の形態1にかかる検出システム100のマイクロコンピュータ2を、マイクロコンピュータ3に置換した構成を有する。検出システム200は、マイクロコンピュータ3が、センサ1から受け取った、データがサンプリングされた時刻を算出するための情報に基づいて、データのサンプリング時刻を算出するシステムとして構成される。また、検出システム200の動作タイミングは、図3と同様である。
Embodiment 2
A
マイクロコンピュータ3は、マイクロコンピュータ2に演算部23を追加した構成を有する。演算部23は、論理回路で構成することが可能である。また、演算部23は、図示されていないCPUで実行されるプログラムにより実現することも可能である。
The microcomputer 3 has a configuration in which a
本実施の形態では、メモリ15は、A/D変換器14から出力されたサンプリングデータSDを格納し、マイクロコンピュータ3の要求REQに応じて、通信部11を介して、出力対象となるサンプリングデータSDと、当該サンプリングデータSDがリセットされてから何回目にサンプリングされたかを示す情報であるシリアルデータSERと、を出力する。
In the present embodiment, the
図10では、例として、リセット後の1回目のサンプリングデータをSD1、シリアルデータをSER1、2回目のサンプリングデータをSD2、シリアルデータをSER2、・・・、i回目のサンプリングデータをSDi、シリアルデータをSERiとしている。 In FIG. 10, as an example, the first sampling data after reset is SD1, the serial data is SER1, the second sampling data is SD2, the serial data is SER2,..., The i-th sampling data is SDi, and the serial data. Is SERi.
次に、マイクロコンピュータ3のサンプリング時刻の算出動作について説明する。マイクロコンピュータ3は、検出システム200の起動時又は任意のタイミングで、センサ1のメモリ15のシリアルデータSERをリセットすることができる。
Next, the sampling time calculation operation of the microcomputer 3 will be described. The microcomputer 3 can reset the serial data SER in the
具体的には、マイクロコンピュータ3は、リセット信号RSを出力する。リセット信号RSは、メモリ15へ入力され、シリアルデータSERはリセットされ、「0」となる。その後、メモリ15は、サンプリングデータを受け取るたびにシリアルデータSERをインクリメントして、サンプリングデータSDに付加する。
Specifically, the microcomputer 3 outputs a reset signal RS. The reset signal RS is input to the
マイクロコンピュータ3がサンプリングデータSD及びシリアルデータSERを受け取ると、演算部23はシリアルデータSERを参照し、対応するサンプリングデータSDがサンプリングされた時刻を算出する。以下、算出方法について説明する。
When the microcomputer 3 receives the sampling data SD and the serial data SER, the
マイクロコンピュータ3は、式[1]に示すように、基準時刻Trefに、サンプリング周期Psにサンプリング回数を示すシリアルデータSERの値Nを乗じた値を加えて、サンプリング時刻Tsを算出する。ここで、基準時刻Trefは、マイクロコンピュータ3がセンサ1にリセット信号RSを出力した時刻である。例えば、演算部23は、リセット信号RSを出力した時刻を基準時刻Trefとして保持することで、必要に応じて基準時刻Trefを参照することができる。
Ts=Tref+N・Ps [1]
As shown in the equation [1], the microcomputer 3 calculates the sampling time Ts by adding the value obtained by multiplying the reference time Tref by the value N of the serial data SER indicating the number of samplings to the sampling period Ps. Here, the reference time Tref is the time when the microcomputer 3 outputs the reset signal RS to the
Ts = Tref + N · Ps [1]
また、より高精度にサンプリング時刻を算出することも可能である。例えば、実際にデータをサンプリングしたタイミングと、マイクロコンピュータ3がサンプリング時刻を算出するタイミングとの間には、信号の伝達や信号の処理に要する遅延時間が存在する。ここで、例えば、A/D変換器14でのA/D変換処理による遅延時間をTD1とする。ここでいうA/D変換処理による遅延時間とは、クロック信号CLK1の立ち下がり又は立ち下がりのエッジから、A/D変換の開始までに要する時間である。また、時刻同期にかかる遅延時間をTD2とする。ここでいう時刻同期にかかる遅延時間TD2とは、マイクロコンピュータ3がリセット信号RSを出力してから、メモリ15によるシリアルデータSERのリセットが完了するまでに要する時間である。この場合、サンプリング時刻Tsは、以下の式[2]で算出される。
Ts=Tref+N・Ps+TD1+TD2 [2]
It is also possible to calculate the sampling time with higher accuracy. For example, there is a delay time required for signal transmission and signal processing between the timing at which data is actually sampled and the timing at which the microcomputer 3 calculates the sampling time. Here, for example, the delay time due to the A / D conversion process in the A /
Ts = Tref + N · Ps + TD1 + TD2 [2]
なお、ここでは遅延時間TD1と遅延時間TD2とを想定したが、他の原因で生じる遅延時間を適宜加算してもよいことは言うまでもない。 Although the delay time TD1 and the delay time TD2 are assumed here, it goes without saying that the delay times caused by other causes may be added as appropriate.
また、計算に用いるサンプリング周期や遅延時間にかかる情報は、例えばマイクロコンピュータ3に設けられたメモリ(不図示)に格納されていてもよい。更に、サンプリング周期については、必要に応じてサンプリング周期を示す信号をマイクロコンピュータ3のメモリからセンサ1に与えることで、センサ1に設定してもよい。
Moreover, the information concerning the sampling period and delay time used for calculation may be stored in, for example, a memory (not shown) provided in the microcomputer 3. Further, the sampling period may be set in the
以上、本構成によれば、センサ1のクロック信号CLK1の周波数を補正するだけでなく、マイクロコンピュータ3は、シリアルデータSERに基づいて、サンプリングデータSDのサンプリング時刻を算出することができる。これにより、サンプリングデータSDの時系列を正確に把握することができる。
As described above, according to this configuration, not only the frequency of the clock signal CLK1 of the
また、本構成によれば、センサ1でのサンプリングごとにシリアルデータSERがインクリメントされるので、マイクロコンピュータ3がセンサ1から受け取るサンプリングデータに抜けが生じた場合、シリアルデータSERの値にも抜けが生じるので、取得に失敗したサンプリングデータの存在を容易に検出することができる。この場合、例えばマイクロコンピュータ3がセンサ1に対して、取得に失敗したサンプリングデータを再度出力するように要求してもよい。
Further, according to this configuration, since the serial data SER is incremented every time sampling is performed by the
マイクロコンピュータ3がセンサ1と同様の構成を有する複数のセンサからサンプリングデータを読み出す場合、マイクロコンピュータ3において各センサの同時刻でのサンプリングデータを関連付けるためには、マイクロコンピュータ3は各センサのサンプリングデータのサンプリング時刻を参照する必要がある。これに対し、本構成では、上述の通り、各センサのサンプリングデータのサンプリング時刻を算出できるため、複数のセンサにおいて同時刻にサンプリングされたサンプリングデータを容易に関連付けることが可能となる。
When the microcomputer 3 reads sampling data from a plurality of sensors having the same configuration as the
本構成では、マイクロコンピュータ3でのサンプリング時刻算出のため、センサ1からマイクロコンピュータ3にシリアルデータSERが出力される。よって、例えば、センサ1に時刻を示すデータを出力する部分を設ける必要がなく、かつ、センサ1からマイクロコンピュータ3に、サンプリング時刻そのものを示す時刻データを送信しなくともよい。これにより、本構成は、センサの小型化及びセンサからマイクロコンピュータに出力するデータの圧縮率を向上できる点で有利である。
In this configuration, serial data SER is output from the
実施の形態3
実施の形態3にかかる検出システム300について説明する。図11は、実施の形態3にかかる検出システム300の構成を模式的に示す図である。検出システム300は、複数のセンサを有するものである。検出システム300は、マイクロコンピュータ2、第1及び第2のセンサ4及び5を有する。この例では、センサ4及び5は、検出システム100のセンサ1と同様の構成を有する。マイクロコンピュータ2は、検出システム100と同様である。
Embodiment 3
A
図12に、動作タイミングの一例を示す。第1のセンサ4は、時刻T9及びT10のサンプリングデータSDをメモリに保持する。第2のセンサ5は、時刻T11のサンプリングデータをメモリに保持する。次いで、マイクロコンピュータ2が時刻T12にスリープからアクティブに遷移した後、第1のセンサ4へクロック信号CLK2及び読み出し要求REQが出力される。第1のセンサ4は、読み出し要求REQを受信すると、時刻T9及びT10のサンプリングデータSDを、マイクロコンピュータ2へ出力する。更に、第2のセンサ5へクロック信号CLK2及び読み出し要求REQが出力される。第2のセンサ5は、読み出し要求REQを受信すると、時刻T11のサンプリングデータSDを、マイクロコンピュータ2へ出力する。そして、マイクロコンピュータ2は、時刻T13でスリープへ遷移する。 FIG. 12 shows an example of operation timing. The first sensor 4 holds the sampling data SD at times T9 and T10 in the memory. The second sensor 5 holds the sampling data at time T11 in the memory. Next, after the microcomputer 2 transits from sleep to active at time T <b> 12, the clock signal CLK <b> 2 and the read request REQ are output to the first sensor 4. When receiving the read request REQ, the first sensor 4 outputs the sampling data SD at times T9 and T10 to the microcomputer 2. Further, the clock signal CLK 2 and the read request REQ are output to the second sensor 5. Upon receiving the read request REQ, the second sensor 5 outputs the sampling data SD at time T11 to the microcomputer 2. Then, the microcomputer 2 shifts to sleep at time T13.
検出システム300は、例えば生体の情報を取得、処理するシステムである。例えば、センサ4は脈波センサであり、生体の脈波を検出し、検出結果をサンプリングデータSD4として出力する。例えば、センサ5は心電センサであり、生体の心電を検出し、検出結果をサンプリングデータSD5として出力する。マイクロコンピュータ2は、サンプリングデータSD4とサンプリングデータSD5とに基づいて、心電のピークと脈波のピークとの間の位相差をから、脈波の伝搬速度を推定する。
The
よって、脈波の伝搬速度の推定精度を確保するためには、センサでサンプリングされるデータの時刻精度が重要となる。これに対し、本構成では、センサ4及び5のクロック周波数を、検出システム100と同様に補正することができるので、サンプリングデータの処理精度を高めることができる。
Therefore, in order to ensure the estimation accuracy of the propagation speed of the pulse wave, the time accuracy of the data sampled by the sensor is important. On the other hand, in this configuration, the clock frequencies of the sensors 4 and 5 can be corrected in the same manner as in the
なお、本実施の形態において、マイクロコンピュータ2を実施の形態2にかかるマイクロコンピュータ3に置換してもよい。この場合には、複数のセンサから受け取ったサンプリングデータのサンプリング時刻を算出できるので、複数の時系列データをより確実にかつ精度良く比較することが可能となる。 In the present embodiment, the microcomputer 2 may be replaced with the microcomputer 3 according to the second embodiment. In this case, since the sampling time of the sampling data received from the plurality of sensors can be calculated, it becomes possible to compare the plurality of time series data more reliably and accurately.
実施の形態4
実施の形態4にかかる検出システム400について説明する。図13は、実施の形態4にかかる検出システム400の構成を模式的に示す図である。検出システム400は、複数の検出部12_0〜12_n(nは、1以上の整数)、信号処理部6A及びマイクロコンピュータ2を有する。マイクロコンピュータ2は、実施の形態1と同様であるので、説明を省略する。
Embodiment 4
A
検出部12_0〜12_nは同一種類の検出部であってもよいし、異なる種類の検出部が含まれてもよい。検出部12_0〜12_nからの出力信号であるアナログ信号AS0〜ASnは、信号処理部6Aに入力される。
The detection units 12_0 to 12_n may be the same type of detection unit, or may include different types of detection units. Analog signals AS0 to ASn that are output signals from the detection units 12_0 to 12_n are input to the
信号処理部6Aは、通信部11、発振器13、A/D変換器14、メモリ15、周波数補正部16及びマルチプレクサ17を有する。この例では、通信部11、発振器13、A/D変換器14、メモリ15、周波数補正部16及びマルチプレクサ17が、検出部12_0〜12_nからの出力信号であるアナログ信号AS0〜ASnをA/D変換するためのA/D変換部として構成されている。通信部11、発振器13、A/D変換器14、メモリ15、周波数補正部16は、実施の形態1と同様であるので、説明を省略する。
The
マルチプレクサ17は、検出部12_0〜12_nからの出力信号であるアナログ信号AS0〜ASnが入力され、アナログ信号AS0〜ASnのいずれかをA/D変換器14に出力するように構成される。このとき、マルチプレクサ17は、例えばクロック信号CLK1が入力され、クロック信号CLK1に基づいて出力する信号をアナログ信号AS0〜ASnの中で切り換えてもよい。
The
なお、マルチプレクサ17は入力される信号のサンプルホールド機能を有していてもよい。この場合、マルチプレクサ17は、アナログ信号AS0〜ASnをサンプリングした信号を適宜切り換えて出力することができる。また、検出部12_0〜12_nのそれぞれとマルチプレクサ17との間に、例えばアナログスイッチやコンデンサで構成されるサンプルホールド回路を挿入してもよい。この場合、アナログスイッチを同時にオン/オフすることで、検出部12_0〜12_nからの出力信号であるアナログ信号AS0〜ASnのサンプリングタイミングについて、検出部ごとの時間差分が生じないようにすることも可能である。なお、アナログ信号AS0〜ASnのサンプリングのタイミングは、例えばクロック信号CLK1に基づいて決定されてもよい。
The
検出システム400のその他の動作については、実施の形態1にかかる検出システム100と同様であるので、説明を省略する。
Since other operations of the
この例では、検出部12_0〜12_nと信号処理部6Aとは物理的に分離して設けられているが、検出部12_0〜12_nと信号処理部6Aとは、一体として上述の実施の形態にかかるセンサに対応するセンサ6を構成するものとして理解できる。換言すれば、検出部は、信号処理部の外付け部品として設けられてもよい。検出部と信号処理部とを物理的に分離することで、用途に合わせて検出部を選択、交換することが可能となり、検出システムの構成の柔軟性を向上させることができる。
In this example, the detection units 12_0 to 12_n and the
図13では、検出部12_0〜12_nからのアナログ信号AS0〜ASnがマルチプレクサ17に入力されるものとして説明したが、マルチプレクサ17に代えて複数のA/D変換器を設けてもよい。図14は、実施の形態4にかかる検出システム400の変形例である検出システム401の構成を模式的に示す図である。図14に示すように、検出システム401は、検出システム400の信号処理部6Aを信号処理部7Aに置換した構成を有する。信号処理部7Aは、信号処理部6AのA/D変換器14及びマルチプレクサ17を、A/D変換器14_0〜14_nに置換した構成を有する。
In FIG. 13, the analog signals AS0 to ASn from the detection units 12_0 to 12_n have been described as being input to the
A/D変換器14_0〜14_nは、それぞれアナログ信号AS0〜ASnをサンプリングし、デジタル信号(サンプリングデータSD0〜SDn)に変換した後、メモリ15に出力する。この際、A/D変換器14_0〜14_nは、発振器13から与えられるクロック信号CLK1に基づいて、いずれか1つのA/D変換器のみが択一的にサンプリングデータを出力する。そして、サンプリングデータを出力するA/D変換器がクロック信号CLK1に応じて切り替わることで、メモリ15はA/D変換器14_0〜14_nから出力されるサンプリングデータSD0〜SDnのいずれかを択一的に受け取り、受け取ったサンプリングデータを順次保持することができる。
The A / D converters 14_0 to 14_n respectively sample the analog signals AS0 to ASn, convert them to digital signals (sampling data SD0 to SDn), and then output them to the
検出システム401のその他の動作については、実施の形態1にかかる検出システム100と同様であるので、説明を省略する。
Since other operations of the
この例でも、検出部12_0〜12_nと信号処理部7Aとは物理的に分離して設けられているが、検出部12_0〜12_nと信号処理部7Aとは、一体として上述の実施の形態にかかるセンサに対応するセンサ7を構成するものとして理解できる。換言すれば、検出部は、信号処理部の外付け部品として設けられてもよい。検出部と信号処理部とを物理的に分離することで、用途に合わせて検出部を選択、交換することが可能となり、検出システムの構成の柔軟性を向上させることができる。
Also in this example, the detection units 12_0 to 12_n and the
以上、本構成によれば、複数の検出部が設けられた場合でも、実施の形態1と同様に、マイクロコンピュータからの要求に応じて、信号処理部からマイクロコンピュータへサンプリングデータを出力することができる。 As described above, according to the present configuration, even when a plurality of detection units are provided, sampling data can be output from the signal processing unit to the microcomputer in response to a request from the microcomputer, as in the first embodiment. it can.
なお、検出システム400は実施の形態1にかかる検出システム100の変形例であるものとして説明したが、これは例示に過ぎない。実施の形態2にかかる検出システム200のセンサにおいて、同様に複数の検出部及びマルチプレクサを設けてもよいことは言うまでもない。なお、実施の形態2では、マイクロコンピュータ3の演算部23が、式[2]を用いて遅延時間TD1及びTD2を考慮してサンプリング時刻Tsを算出することについて説明したが、本構成では、マルチプレクサから出力される信号の切り替えに要する時間や、マルチプレクサ自体で生じる信号の遅延などを更に遅延時間として加算してサンプリング時刻Tsを算出してもよい。
In addition, although the
また、実施の形態2にかかる検出システム200のセンサにおいて、同様に複数の検出部及び複数のA/D変換器を設けてもよいことは言うまでもない。
Needless to say, the sensor of the
さらに、実施の形態3にかかる検出システム300のセンサを、適宜本実施の形態で説明した複数の検出部及び信号処理部に置換してもよいことは言うまでもない。
Furthermore, it goes without saying that the sensor of the
実施の形態5
実施の形態5にかかる検出システム500について説明する。図15は、実施の形態5にかかる検出システム500の構成を模式的に示す図である。検出システム500は、実施の形態4にかかる検出システム400の変形例であり、発振器13が参照する基準クロックCLKRが、信号処理部6Aの外部の発振子50によって発振器13に与えられる。検出システム500のその他の構成は、検出システム400と同様であるので、説明を省略する。
Embodiment 5
A
本構成によれば、発振器13は、基準クロックCLKRを基準として、適宜制御信号CONによって、マイクロコンピュータ内のクロック信号CLK2と周波数同期するように周波数が調整されたクロック信号CLK1を出力することが可能となる。
According to this configuration, the
この例では、検出部12_0〜12_nと信号処理部6Aとは物理的に分離して設けられているが、検出システム400と同様に、検出部12_0〜12_nと信号処理部6Aとは、一体として上述の実施の形態にかかるセンサに対応するセンサ6を構成するものとして理解できる。換言すれば、検出部は、信号処理部の外付け部品として設けられてもよい。検出部と信号処理部とを物理的に分離することで、用途に合わせて検出部を選択、交換することが可能となり、検出システムの構成の柔軟性を向上させることができる。
In this example, the detection units 12_0 to 12_n and the
なお、検出システム500は実施の形態4にかかる検出システム400の変形例であるものとして説明したが、これは例示に過ぎない。すなわち、検出システム400以外の、実施の形態4にかかる検出システムにおいて同様に発振子50を設けてもよい。
In addition, although the
実施の形態6
実施の形態6にかかる検出システム600について説明する。図16は、実施の形態6にかかる検出システム600の構成を模式的に示す図である。検出システム600は、実施の形態4にかかる検出システム400の信号処理部6Aを、信号処理部の一形態であるマイクロコントローラ部(MCU:Micro Control Unit)8Aに置換した構成を有する。検出システム600のその他の構成は、検出システム400と同様であるので、説明を省略する。
Embodiment 6
A
検出システム600は、検出システム400の周波数補正部16による周波数補正機能を、CPUでの演算によって実現するものである。そのため、図16に示すように、検出システム600のMCU8Aでは、検出システム400信号処理部6Aの通信部11及び周波数補正部16が除去され、代わりにバス61及びCPU62が設けられる。発振器13、A/D変換器14、メモリ15及びマルチプレクサ17は、検出システム400と同様であるので、説明を省略する。
The
バス61は、発振器13、A/D変換器14、メモリ15及びCPU62の間のアドレス情報やデータのやり取りが可能に構成される。
The
CPU62は、バス61を介して、発振器13から出力されるクロック信号CLK1と、マイクロコンピュータ2から出力されるクロック信号CLK2と、に基づいて、クロック信号CLK1がクロック信号CLK2と周波数同期するように発振器13を制御するための制御信号CONを発振器13へ出力可能に構成される。
Based on the clock signal CLK1 output from the
この例では、CPU62は、発振器13から出力されるクロック信号CLK1と、マイクロコンピュータ2から出力されるクロック信号CLK2と、を受け取ることが可能である。そしてCPU62は、クロック信号CLK1とクロック信号CLK2とを比較し、両者の間の周波数のずれを検出し、検出結果に基づいて制御信号CONを出力する。発振器13は、受け取った制御信号CONに応じて、適宜クロック信号CLK1の周波数を調整する。
In this example, the
この例では、検出部12_0〜12_nと信号処理部8Aとは物理的に分離して設けられているが、検出部12_0〜12_nと信号処理部8Aとは、一体として上述の実施の形態にかかるセンサに対応するセンサ8を構成するものとして理解できる。換言すれば、検出部は、信号処理部の外付け部品として設けられてもよい。検出部と信号処理部とを物理的に分離することで、用途に合わせて検出部を選択、交換することが可能となり、検出システムの構成の柔軟性を向上させることができる。
In this example, the detection units 12_0 to 12_n and the
次いで、検出システム600の変形例について説明する。図17は、実施の形態6にかかる検出システム600の変形例である検出システム601の構成を模式的に示す図である。検出システム601は、検出システム600のMCU8Aを、信号処理部の一形態であるMCU9Aに置換した構成を有する。
Next, a modified example of the
MCU9Aは、MCU8Aに通信部71、DMAC(Direct Memory Access Controller)72、ROM(Read Only Memory)73及びタイマ74を追加した構成を有する。
The
通信部71はバス61に接続され、上述で説明した通信部11と同様の機能を有する。
The
DMAC72は、CPUを介して行われるデータ転送を代行することが可能であり、例えば、メモリ15から通信部71へのデータ転送をCPU62に代わって実行することができる。これにより、CPU62のデータ転送の負荷を低減することが可能となる。なお、DMACが行うデータ転送はこの例に限られるものではない。
The
ROM73は、例えばCPU62での処理を規定するプログラムや処理に用いるパラメータが格納され、CPU62は必要に応じてROM62からプログラムやパラメータを読み出すことが可能である。
The
タイマ74は、発振器13から出力されるクロック信号CLK1を、バス61を介して受け取る。また、タイマ74は、マイクロコンピュータ2から出力されるクロック信号CLK2を、通信部71及びバス61を介して受け取る。タイマ74は、タイマ機能によってクロック信号CLK1及びCLK2のパルス幅や周波数を検出することができる。これにより、タイマ74は、クロック信号CLK2に対するクロック信号CLK1の周波数のズレを検出する。CPU62は、タイマ74で検出されたクロック信号CLK1の周波数のズレを示すデータDETを、バス61を介して受け取り、データDETに応じて制御信号CONを発振器13に出力することで、クロック信号CLK1の周波数をクロック信号CLK2の周波数に対して同期させることができる。
The timer 74 receives the clock signal CLK1 output from the
検出システム601のその他の構成及び動作は、検出システム400と同様であるので説明省略する。
Since other configurations and operations of the
この例では、検出部12_0〜12_nと信号処理部9Aとは物理的に分離して設けられているが、検出部12_0〜12_nと信号処理部9Aとは、一体として上述の実施の形態にかかるセンサに対応するセンサ9を構成するものとして理解できる。換言すれば、検出部は、信号処理部の外付け部品として設けられてもよい。検出部と信号処理部とを物理的に分離することで、用途に合わせて検出部を選択、交換することが可能となり、検出システムの構成の柔軟性を向上させることができる。
In this example, the detection units 12_0 to 12_n and the
本構成によれば、電気回路により構成される周波数補正部16に代えて、CPUないしはマイクロコンピュータによる演算処理を適用することで、実施の形態1〜5と同様にクロック信号CLK1の周波数をクロック信号CLK2の周波数に対して同期させることができる。
According to this configuration, the frequency of the clock signal CLK1 is changed to the clock signal as in the first to fifth embodiments by applying arithmetic processing by a CPU or a microcomputer instead of the
なお、本構成においても、実施の形態4と同様に、マルチプレクサから出力される信号の切り替えに要する時間や、マルチプレクサ自体で生じる信号の遅延などを更に遅延時間として加算してサンプリング時刻Tsを算出してもよいことは言うまでもない。また、実施の形態5と同様に、発振器13が参照する基準クロックCLKRが、信号処理部の外部の発振子によって発振器13に与えられてもよい。
Also in this configuration, as in the fourth embodiment, the sampling time Ts is calculated by adding the time required for switching the signal output from the multiplexer and the delay of the signal generated in the multiplexer itself as a delay time. Needless to say. Similarly to the fifth embodiment, the reference clock CLKR referred to by the
また、検出システム401と同様に、MCU8A及び9Aにおいても、A/D変換器14及びマルチプレクサ17に代えて、検出部12_0〜12_nに対応したA/D変換器14_0〜14_nを設けた構成としてもよいことが言うまでも無い。
Similarly to the
その他の実施の形態
なお、本発明は上記実施の形態に限られたものではなく、趣旨を逸脱しない範囲で適宜変更することが可能である。例えば、実施の形態1〜3では、センサが検出部と信号処理部とを含むものとして説明したが、検出システムの構成はこれに限定されるものではない。実施の形態4〜6と同様に、検出部と信号処理部とが物理的に分離して設けられてもよいことは言うまでも無い。換言すれば、検出部は、信号処理部の外付け部品として設けられてもよい。検出部と信号処理部とを物理的に分離することで、用途に合わせて検出部を選択、交換することが可能となり、検出システムの構成の柔軟性を向上させることができる。
Other Embodiments The present invention is not limited to the above-described embodiments, and can be appropriately changed without departing from the spirit of the present invention. For example, in the first to third embodiments, the sensor is described as including a detection unit and a signal processing unit, but the configuration of the detection system is not limited to this. Needless to say, the detection unit and the signal processing unit may be physically separated as in the fourth to sixth embodiments. In other words, the detection unit may be provided as an external component of the signal processing unit. By physically separating the detection unit and the signal processing unit, the detection unit can be selected and exchanged according to the application, and the configuration flexibility of the detection system can be improved.
上述の実施の形態では、センサ又は信号処理部とマイクロコンピュータとの間でデータ、クロック信号及び要求などの情報などのやり取りが行われるが、この情報のやりとりは有線通信によって行われてもよいし、無線通信によって行われてもよい。 In the above embodiment, information such as data, a clock signal, and a request is exchanged between the sensor or signal processing unit and the microcomputer, but this exchange of information may be performed by wired communication. The wireless communication may be performed.
実施の形態2において、シリアルデータSERについて説明したが、センサが出力するサンプリングデータSDの全てにシリアルデータSERを付加するだけでなく、一定の出力回数毎にサンプリングデータSDにシリアルデータSERを付加してもよい。例えば、サンプリングデータSDが10回出力される毎に、前回のデータ出力から「10」だけインクリメントされたシリアルデータSERを付加してもよい。そして、マイクロコンピュータ3は、算出したサンプリング時刻にサンプリング周期の整数倍を加算することで、シリアルデータSERが付加されていない出力データのサンプリング時刻を算出することができる。 Although the serial data SER has been described in the second embodiment, not only the serial data SER is added to all the sampling data SD output from the sensor, but also the serial data SER is added to the sampling data SD at every fixed number of outputs. May be. For example, every time the sampling data SD is output ten times, the serial data SER incremented by “10” from the previous data output may be added. The microcomputer 3 can calculate the sampling time of the output data to which the serial data SER is not added by adding an integer multiple of the sampling period to the calculated sampling time.
上述では、実施の形態2は、実施の形態1にかかるクロック信号CLK1の周波数補正のみならず、シリアルデータSERに基づいてデータのサンプリング時刻を算出するものとして説明した。しかし、実施の形態2において説明したシリアルデータSERに基づいてサンプリング時刻を算出する構成は、実施の形態1にかかるクロック信号CLK1の周波数を補正する構成の存在を前提とするものではない。すなわち、実施の形態1にかかるクロック信号CLK1の周波数を補正する構成を有せずに、実施の形態2にかかるサンプリング時刻を算出する構成を有する検出システムの実現が妨げられることはない In the above description, the second embodiment has been described on the assumption that the data sampling time is calculated based on the serial data SER as well as the frequency correction of the clock signal CLK1 according to the first embodiment. However, the configuration for calculating the sampling time based on the serial data SER described in the second embodiment is not based on the existence of the configuration for correcting the frequency of the clock signal CLK1 according to the first embodiment. In other words, it does not hinder the realization of the detection system having the configuration for calculating the sampling time according to the second embodiment without the configuration for correcting the frequency of the clock signal CLK1 according to the first embodiment.
以上、本発明者によってなされた発明を実施の形態に基づき具体的に説明したが、本発明は既に述べた実施の形態に限定されるものではなく、その要旨を逸脱しない範囲において種々の変更が可能であることはいうまでもない。 As mentioned above, the invention made by the present inventor has been specifically described based on the embodiments. However, the present invention is not limited to the embodiments already described, and various modifications can be made without departing from the scope of the invention. It goes without saying that it is possible.
実施の形態1において、図4を参照して周波数補正部の構成について説明したが、これは例示に過ぎない。発振器に対して同様の制御信号を出力できるならば、適宜他の構成を適用することも可能である。 In the first embodiment, the configuration of the frequency correction unit has been described with reference to FIG. 4, but this is merely an example. As long as the same control signal can be output to the oscillator, other configurations can be applied as appropriate.
以上、実施の形態に説明したが、上述の検出システム、センサ、マイクロコンピュータ及び検出システムの補正方法は、以下のように記述することもできる。 As described above, the detection system, the sensor, the microcomputer, and the correction method of the detection system can be described as follows.
(付記1)第1のクロック信号に基づいてサンプリングした検出結果を示すアナログ信号をアナログ/デジタル変換して生成したデジタル信号であるサンプリングデータを出力可能に構成されたセンサと、第2のクロック信号を生成して前記センサに出力し、かつ、前記センサから前記サンプリングデータを読み出すマイクロコンピュータと、を備え、前記センサは、前記第2のクロック信号に基づいて、前記第1のクロック信号の周波数を補正する、検出システム。 (Supplementary note 1) A sensor configured to output sampling data which is a digital signal generated by analog / digital conversion of an analog signal indicating a detection result sampled based on the first clock signal, and a second clock signal And a microcomputer that reads out the sampling data from the sensor, and the sensor determines the frequency of the first clock signal based on the second clock signal. Correction system to correct.
(付記2)前記センサは、前記マイクロコンピュータとの間でデータ通信を行う第1の入出力部と、検出結果を前記アナログ信号として出力する検出部と、与えられる制御信号に基づいて周波数を補正した前記第1のクロック信号を出力する発振器と、前記第1の入出力部を介して前記マイクロコンピュータから受け取った前記第2のクロック信号に基づいて前記制御信号を出力する周波数補正部と、前記アナログ信号を、前記第1のクロック信号に基づいてサンプリングしてアナログ/デジタル変換し、前記サンプリングデータを出力するアナログ/デジタル変換器と、前記サンプリングデータを格納するメモリと、
を備え、前記マイクロコンピュータは、前記第2のクロック信号を生成するクロック信号生成部と、前記センサとの間でデータ通信を行う第2の入出力部と、を備える、付記1に記載の検出システム。
(Appendix 2) The sensor corrects the frequency based on a first input / output unit that performs data communication with the microcomputer, a detection unit that outputs a detection result as the analog signal, and a given control signal An oscillator that outputs the first clock signal; a frequency correction unit that outputs the control signal based on the second clock signal received from the microcomputer via the first input / output unit; An analog signal is sampled based on the first clock signal, converted from analog to digital, and an analog / digital converter that outputs the sampling data; a memory that stores the sampling data;
The detection according to
(付記3)前記マイクロコンピュータは、前記メモリから前記サンプリングデータを読み出すときに、前記第2のクロック信号を出力する、付記2に記載の検出システム。 (Supplementary note 3) The detection system according to supplementary note 2, wherein the microcomputer outputs the second clock signal when reading the sampling data from the memory.
(付記4)前記周波数補正部は、前記第2のクロック信号を分周する分周器と、前記第1のクロック信号の周波数を示す第1の信号を出力する第1の周波数電圧変換部と、前記分周器で分周された信号の周波数を示す第2の信号を出力する第2の周波数電圧変換部と、前記第1の信号と前記第2の信号との差電圧を示す信号を出力する差動増幅器と、前記第2の信号と所定値の信号とを比較し、比較結果を示す切り替え信号を出力する比較器と、前記切り替え信号に応じて、前記差動増幅器が出力した前記信号の電圧をホールドする電圧ホールド部と、前記切り替え信号に応じて、前記発振器を前記差動増幅器の出力及び前記電圧ホールド部の出力のいずれかと、前記発振器と、を接続するスイッチと、を備え、前記発振器が前記差動増幅器の前記出力と接続されることで、前記差動増幅器が出力した前記信号の電圧が前記制御信号として前記発振器に入力され、前記発振器が前記電圧ホールド部の前記出力と接続されることで、前記電圧ホールド部がホールドした電圧が前記制御信号として前記発振器に入力される、付記2に記載の検出システム。 (Supplementary Note 4) The frequency correction unit includes a frequency divider that divides the second clock signal, a first frequency voltage conversion unit that outputs a first signal indicating the frequency of the first clock signal, and A second frequency voltage converter for outputting a second signal indicating the frequency of the signal divided by the frequency divider, and a signal indicating a difference voltage between the first signal and the second signal. A differential amplifier for outputting, a comparator for comparing the second signal with a signal of a predetermined value, and outputting a switching signal indicating a comparison result, and the differential amplifier outputting the switching signal in response to the switching signal A voltage hold unit that holds a voltage of a signal; and a switch that connects the oscillator to either the output of the differential amplifier or the output of the voltage hold unit in response to the switching signal; The oscillator is the differential amplifier By being connected to the output, the voltage of the signal output from the differential amplifier is input to the oscillator as the control signal, and the oscillator is connected to the output of the voltage hold unit, so that the voltage The detection system according to appendix 2, wherein the voltage held by the hold unit is input to the oscillator as the control signal.
(付記5)前記スイッチは、前記マイクロコンピュータから前記第2のクロック信号が入力されている場合に、前記発振器と前記差動増幅器の前記出力とを接続し、前記マイクロコンピュータから前記第2のクロック信号が入力されていない場合に、前記発振器と前記電圧ホールド部の前記出力とを接続する、付記4に記載の検出システム。 (Supplementary Note 5) The switch connects the oscillator and the output of the differential amplifier when the second clock signal is input from the microcomputer, and the second clock is output from the microcomputer. The detection system according to appendix 4, wherein when no signal is input, the oscillator and the output of the voltage hold unit are connected.
(付記6)前記マイクロコンピュータは、前記センサにリセット信号を出力可能であり、前記メモリは、前記マイクロコンピュータからの読み出し要求に応じて、前記リセット信号を受け取った後のデータのサンプリング回数を示すシリアルデータを、対応するサンプリングデータと共に前記マイクロコンピュータへ出力し、前記マイクロコンピュータは、前記リセット信号を出力した基準時刻と、前記センサでのサンプリング周期と、受け取った前記シリアルデータとに基づいて、受け取った前記サンプリングデータのサンプリング時刻を算出する演算部を更に備える、付記2に記載の検出システム。 (Additional remark 6) The said microcomputer can output a reset signal to the said sensor, The said memory is a serial which shows the sampling frequency of the data after receiving the said reset signal according to the read-out request from the said microcomputer The data is output to the microcomputer together with the corresponding sampling data, and the microcomputer receives the reset signal based on the reference time, the sampling period of the sensor, and the received serial data. The detection system according to appendix 2, further comprising a calculation unit that calculates a sampling time of the sampling data.
(付記7)前記演算部は、前記基準時刻に、前記受け取ったシリアルデータの値を前記サンプリング周期に乗じた値を加算することで、前記サンプリング時刻を算出する、付記6に記載の検出システム。 (Supplementary note 7) The detection system according to supplementary note 6, wherein the calculation unit calculates the sampling time by adding a value obtained by multiplying the sampling period by the value of the received serial data to the reference time.
(付記8)前記演算部は、前記演算部が前記リセット信号を出力してから前記シリアルデータがリセットされるまでの遅延時間を更に加算して、前記サンプリング時刻を算出する、付記7に記載の検出システム。 (Additional remark 8) The said calculating part further adds the delay time after the said calculating part outputs the said reset signal until the said serial data is reset, and calculates the said sampling time, Additional remark 7 Detection system.
(付記9)前記演算部は、前記第1のクロック信号に基づいて前記アナログ信号を前記サンプリングデータに変換するのに要する遅延時間を更に加算して、前記サンプリング時刻を算出する、付記7に記載の検出システム。 (Additional remark 9) The said calculating part further adds the delay time required to convert the said analog signal into the said sampling data based on the said 1st clock signal, and calculates the said sampling time, Additional remark 7 Detection system.
(付記10)前記シリアルデータは、前記マイクロコンピュータから読み出しが要求される毎に、対応するサンプリングデータと共に前記マイクロコンピュータへ出力される、付記6に記載の検出システム。 (Supplementary note 10) The detection system according to supplementary note 6, wherein the serial data is output to the microcomputer together with corresponding sampling data every time reading is requested from the microcomputer.
(付記11)前記シリアルデータは、前記マイクロコンピュータから読み出しが所定の回数要求される毎に、対応するサンプリングデータと共に前記マイクロコンピュータへ出力される、付記6に記載の検出システム。 (Supplementary note 11) The detection system according to supplementary note 6, wherein the serial data is output to the microcomputer together with corresponding sampling data every time a predetermined number of readings are requested from the microcomputer.
(付記12)前記センサを複数有し、算出したサンプリング時刻に基づいて、複数の前記センサで同時刻にサンプリングされたサンプリングデータを相互に関連付ける、付記6に記載の検出システム。 (Supplementary note 12) The detection system according to supplementary note 6, wherein a plurality of the sensors are provided, and sampling data sampled at the same time by the plurality of sensors are correlated with each other based on the calculated sampling time.
(付記13)第1のクロック信号に基づいてサンプリングした検出結果を示すアナログ信号をアナログ/デジタル変換して生成したデジタル信号であるサンプリングデータを出力可能に構成され、マイクロコンピュータで生成された第2のクロック信号に基づいて、前記第1のクロック信号の周波数を補正し、前記マイクロコンピュータによって、前記サンプリングデータが読み出される、センサ。 (Additional remark 13) It is comprised so that the sampling data which is a digital signal produced | generated by carrying out analog / digital conversion of the analog signal which shows the detection result sampled based on the 1st clock signal can be output, and the 2nd produced | generated by the microcomputer A sensor that corrects the frequency of the first clock signal based on the clock signal and reads the sampling data by the microcomputer.
(付記14)前記マイクロコンピュータとの間でデータ通信を行う第1の入出力部と、検出結果を前記アナログ信号として出力する検出部と、与えられる制御信号に基づいて周波数を補正した前記第1のクロック信号を出力する発振器と、前記第1の入出力部を介して前記マイクロコンピュータから受け取った前記第2のクロック信号に基づいて前記制御信号を出力する周波数補正部と、前記アナログ信号を、前記第1のクロック信号に基づいてサンプリングしてアナログ/デジタル変換し、前記サンプリングデータを出力するアナログ/デジタル変換器と、前記サンプリングデータを格納するメモリと、
を備える、付記13に記載のセンサ。
(Supplementary Note 14) A first input / output unit that performs data communication with the microcomputer, a detection unit that outputs a detection result as the analog signal, and a frequency that is corrected based on a given control signal An oscillator that outputs the clock signal, a frequency correction unit that outputs the control signal based on the second clock signal received from the microcomputer via the first input / output unit, and the analog signal, An analog / digital converter for sampling and analog / digital conversion based on the first clock signal and outputting the sampling data; and a memory for storing the sampling data;
The sensor according to
(付記15)前記マイクロコンピュータは、前記第2のクロック信号を生成するクロック信号生成部と、前記センサとの間でデータ通信を行う第2の入出力部と、を備える、付記14に記載のセンサ。 (Supplementary note 15) The microcomputer includes a clock signal generation unit that generates the second clock signal and a second input / output unit that performs data communication with the sensor. Sensor.
(付記16)前記マイクロコンピュータは、前記メモリから前記サンプリングデータを読み出すときに、前記第2のクロック信号を出力する、付記14に記載のセンサ。
(Supplementary note 16) The sensor according to
(付記17)前記周波数補正部は、前記第2のクロック信号を分周する分周器と、前記第1のクロック信号の周波数を示す第1の信号を出力する第1の周波数電圧変換部と、前記分周器で分周された信号の周波数を示す第2の信号を出力する第2の周波数電圧変換部と、前記第1の信号と前記第2の信号との差電圧を示す信号を出力する差動増幅器と、前記第2の信号と所定値の信号とを比較し、比較結果を示す切り替え信号を出力する比較器と、前記切り替え信号に応じて、前記差動増幅器が出力した前記信号の電圧をホールドする電圧ホールド部と、前記切り替え信号に応じて、前記発振器を前記差動増幅器の出力及び前記電圧ホールド部の出力のいずれかと、前記発振器と、を接続するスイッチと、を備え、前記発振器が前記差動増幅器の前記出力と接続されることで、前記差動増幅器が出力した前記信号の電圧が前記制御信号として前記発振器に入力され、前記発振器が前記電圧ホールド部の前記出力と接続されることで、前記電圧ホールド部がホールドした電圧が前記制御信号として前記発振器に入力される、付記14に記載のセンサ。
(Supplementary Note 17) The frequency correction unit includes a frequency divider that divides the second clock signal, a first frequency voltage conversion unit that outputs a first signal indicating the frequency of the first clock signal, and A second frequency voltage converter for outputting a second signal indicating the frequency of the signal divided by the frequency divider, and a signal indicating a difference voltage between the first signal and the second signal. A differential amplifier for outputting, a comparator for comparing the second signal with a signal of a predetermined value, and outputting a switching signal indicating a comparison result, and the differential amplifier outputting the switching signal in response to the switching signal A voltage hold unit that holds a voltage of a signal; and a switch that connects the oscillator to either the output of the differential amplifier or the output of the voltage hold unit in response to the switching signal; The oscillator is the differential amplification The voltage of the signal output from the differential amplifier is input to the oscillator as the control signal, and the oscillator is connected to the output of the voltage hold unit. 15. The sensor according to
(付記18)前記スイッチは、前記マイクロコンピュータから前記第2のクロック信号が入力されている場合に、前記発振器と前記差動増幅器の前記出力とを接続し、前記マイクロコンピュータから前記第2のクロック信号が入力されていない場合に、前記発振器と前記電圧ホールド部の前記出力とを接続する、付記17に記載のセンサ。
(Supplementary note 18) When the second clock signal is input from the microcomputer, the switch connects the oscillator and the output of the differential amplifier, and the switch supplies the second clock from the microcomputer. 18. The sensor according to
(付記19)前記マイクロコンピュータは、前記センサにリセット信号を出力可能であり、前記メモリは、前記マイクロコンピュータからの読み出し要求に応じて、前記リセット信号を受け取った後のデータのサンプリング回数を示すシリアルデータを、対応するサンプリングデータと共に前記マイクロコンピュータへ出力し、前記マイクロコンピュータは、前記リセット信号を出力した基準時刻と、前記センサでのサンプリング周期と、受け取った前記シリアルデータとに基づいて、受け取った前記サンプリングデータのサンプリング時刻を算出する演算部を更に備える、付記14に記載のセンサ。
(Supplementary note 19) The microcomputer is capable of outputting a reset signal to the sensor, and the memory is a serial indicating the number of times data is sampled after receiving the reset signal in response to a read request from the microcomputer. The data is output to the microcomputer together with the corresponding sampling data, and the microcomputer receives the reset signal based on the reference time, the sampling period of the sensor, and the received serial data. The sensor according to
(付記20)前記演算部は、前記基準時刻に、前記受け取ったシリアルデータの値を前記サンプリング周期に乗じた値を加算することで、前記サンプリング時刻を算出する、付記19に記載のセンサ。
(Supplementary note 20) The sensor according to
(付記21)前記演算部は、前記演算部が前記リセット信号を出力してから前記シリアルデータがリセットされるまでの遅延時間を更に加算して、前記サンプリング時刻を算出する、付記20に記載のセンサ。 (Supplementary note 21) The calculation unit according to supplementary note 20, wherein the calculation unit further calculates a sampling time by further adding a delay time from when the calculation unit outputs the reset signal to when the serial data is reset. Sensor.
(付記22)前記演算部は、前記第1のクロック信号に基づいて前記アナログ信号を前記サンプリングデータに変換するのに要する遅延時間を更に加算して、前記サンプリング時刻を算出する、付記20に記載のセンサ。 (Additional remark 22) The said calculating part further adds the delay time required to convert the said analog signal into the said sampling data based on the said 1st clock signal, and calculates the said sampling time, Additional remark 20 Sensor.
(付記23)前記シリアルデータは、前記マイクロコンピュータから読み出しが要求される毎に、対応するサンプリングデータと共に前記マイクロコンピュータへ出力される、付記19に記載のセンサ。
(Supplementary note 23) The sensor according to
(付記24)前記シリアルデータは、前記マイクロコンピュータから読み出しが所定の回数要求される毎に、対応するサンプリングデータと共に前記マイクロコンピュータへ出力される、付記19に記載のセンサ。
(Supplementary note 24) The sensor according to
(付記25)算出したサンプリング時刻に基づいて、複数の前記センサで同時刻にサンプリングされたサンプリングデータを相互に関連付ける、付記19に記載のセンサ。
(Supplementary note 25) The sensor according to
(付記26)第1のクロック信号に基づいてサンプリングした検出結果を示すアナログ信号をアナログ/デジタル変換して生成したデジタル信号であるサンプリングデータを出力可能に構成されたセンサに、第2のクロック信号を生成して出力し、かつ、前記センサから前記サンプリングデータを読み出し可能に構成され、前記第1のクロック信号の周波数は、前記第2のクロック信号に基づいて、前記センサにより補正される、マイクロコンピュータ。 (Supplementary Note 26) A second clock signal is output to a sensor configured to output sampling data which is a digital signal generated by analog / digital conversion of an analog signal indicating a detection result sampled based on the first clock signal. And the sampling data can be read from the sensor, and the frequency of the first clock signal is corrected by the sensor based on the second clock signal. Computer.
(付記27)前記第2のクロック信号を生成するクロック信号生成部と、前記センサとの間でデータ通信を行う第2の入出力部と、を備える、
請求項付記26に記載のマイクロコンピュータ。
(Supplementary Note 27) A clock signal generation unit that generates the second clock signal and a second input / output unit that performs data communication with the sensor.
27. The microcomputer according to claim 26.
(付記28)前記センサは、前記マイクロコンピュータとの間でデータ通信を行う第1の入出力部と、検出結果を前記アナログ信号として出力する検出部と、与えられる制御信号に基づいて周波数を補正した前記第1のクロック信号を出力する発振器と、前記第1の入出力部を介して前記マイクロコンピュータから受け取った前記第2のクロック信号に基づいて前記制御信号を出力する周波数補正部と、前記アナログ信号を、前記第1のクロック信号に基づいてサンプリングしてアナログ/デジタル変換し、前記サンプリングデータを出力するアナログ/デジタル変換器と、前記サンプリングデータを格納するメモリと、
を備える、付記26に記載のマイクロコンピュータ。
(Supplementary Note 28) The sensor corrects the frequency based on a first input / output unit that performs data communication with the microcomputer, a detection unit that outputs a detection result as the analog signal, and a given control signal An oscillator that outputs the first clock signal; a frequency correction unit that outputs the control signal based on the second clock signal received from the microcomputer via the first input / output unit; An analog signal is sampled based on the first clock signal, converted from analog to digital, and an analog / digital converter that outputs the sampling data; a memory that stores the sampling data;
27. The microcomputer according to appendix 26.
(付記29)前記メモリから前記サンプリングデータを読み出すときに、前記第2のクロック信号を出力する、付記28に記載のマイクロコンピュータ。 (Supplementary note 29) The microcomputer according to supplementary note 28, wherein the second clock signal is output when the sampling data is read from the memory.
(付記30)前記周波数補正部は、前記第2のクロック信号を分周する分周器と、前記第1のクロック信号の周波数を示す第1の信号を出力する第1の周波数電圧変換部と、前記分周器で分周された信号の周波数を示す第2の信号を出力する第2の周波数電圧変換部と、前記第1の信号と前記第2の信号との差電圧を示す信号を出力する差動増幅器と、前記第2の信号と所定値の信号とを比較し、比較結果を示す切り替え信号を出力する比較器と、前記切り替え信号に応じて、前記差動増幅器が出力した前記信号の電圧をホールドする電圧ホールド部と、前記切り替え信号に応じて、前記発振器を前記差動増幅器の出力及び前記電圧ホールド部の出力のいずれかと、前記発振器と、を接続するスイッチと、を備え、前記発振器が前記差動増幅器の前記出力と接続されることで、前記差動増幅器が出力した前記信号の電圧が前記制御信号として前記発振器に入力され、前記発振器が前記電圧ホールド部の前記出力と接続されることで、前記電圧ホールド部がホールドした電圧が前記制御信号として前記発振器に入力される、付記28に記載のマイクロコンピュータ。 (Supplementary Note 30) The frequency correction unit includes a frequency divider that divides the second clock signal, a first frequency voltage conversion unit that outputs a first signal indicating the frequency of the first clock signal, and A second frequency voltage converter for outputting a second signal indicating the frequency of the signal divided by the frequency divider, and a signal indicating a difference voltage between the first signal and the second signal. A differential amplifier for outputting, a comparator for comparing the second signal with a signal of a predetermined value, and outputting a switching signal indicating a comparison result, and the differential amplifier outputting the switching signal in response to the switching signal A voltage hold unit that holds a voltage of a signal; and a switch that connects the oscillator to either the output of the differential amplifier or the output of the voltage hold unit in response to the switching signal; The oscillator is the differential amplification The voltage of the signal output from the differential amplifier is input to the oscillator as the control signal, and the oscillator is connected to the output of the voltage hold unit. 29. The microcomputer according to appendix 28, wherein the voltage held by the voltage hold unit is input to the oscillator as the control signal.
(付記31)前記スイッチは、前記マイクロコンピュータから前記第2のクロック信号が入力されている場合に、前記発振器と前記差動増幅器の前記出力とを接続し、前記マイクロコンピュータから前記第2のクロック信号が入力されていない場合に、前記発振器と前記電圧ホールド部の前記出力とを接続する、付記30に記載のマイクロコンピュータ。 (Supplementary Note 31) When the second clock signal is input from the microcomputer, the switch connects the oscillator and the output of the differential amplifier, and the switch supplies the second clock from the microcomputer. 31. The microcomputer according to appendix 30, wherein the microcomputer and the output of the voltage hold unit are connected when no signal is input.
(付記32)前記センサにリセット信号を出力可能であり、前記メモリは、前記マイクロコンピュータからの読み出し要求に応じて、前記リセット信号を受け取った後のデータのサンプリング回数を示すシリアルデータを、対応するサンプリングデータと共に前記マイクロコンピュータへ出力し、前記マイクロコンピュータは、前記リセット信号を出力した基準時刻と、前記センサでのサンプリング周期と、受け取った前記シリアルデータとに基づいて、受け取った前記サンプリングデータのサンプリング時刻を算出する演算部を更に備える、付記28に記載のマイクロコンピュータ。 (Supplementary Note 32) A reset signal can be output to the sensor, and the memory corresponds to serial data indicating the number of times of sampling of the data after receiving the reset signal in response to a read request from the microcomputer. The microcomputer outputs the sampling data together with the sampling data, and the microcomputer samples the received sampling data based on the reference time when the reset signal is output, the sampling period of the sensor, and the received serial data. 29. The microcomputer according to appendix 28, further comprising a calculation unit that calculates time.
(付記33)前記演算部は、前記基準時刻に、前記受け取ったシリアルデータの値を前記サンプリング周期に乗じた値を加算することで、前記サンプリング時刻を算出する、付記32に記載のマイクロコンピュータ。
(Supplementary note 33) The microcomputer according to
(付記34)前記演算部は、前記演算部が前記リセット信号を出力してから前記シリアルデータがリセットされるまでの遅延時間を更に加算して、前記サンプリング時刻を算出する、付記33に記載のマイクロコンピュータ。
(Supplementary note 34) The calculation unit according to
(付記35)前記演算部は、前記第1のクロック信号に基づいて前記アナログ信号を前記サンプリングデータに変換するのに要する遅延時間を更に加算して、前記サンプリング時刻を算出する、付記33に記載のマイクロコンピュータ。
(Additional remark 35) The said calculating part further adds the delay time required to convert the said analog signal into the said sampling data based on the said 1st clock signal, and calculates the said sampling time,
(付記36)前記シリアルデータは、前記マイクロコンピュータから読み出しが要求される毎に、対応するサンプリングデータと共に前記マイクロコンピュータへ出力される、付記32に記載のマイクロコンピュータ。
(Supplementary note 36) The microcomputer according to
(付記37)前記シリアルデータは、前記マイクロコンピュータから読み出しが所定の回数要求される毎に、対応するサンプリングデータと共に前記マイクロコンピュータへ出力される、付記32に記載のマイクロコンピュータ。
(Supplementary note 37) The microcomputer according to
(付記38)前記センサを複数有し、算出したサンプリング時刻に基づいて、複数の前記センサで同時刻にサンプリングされたサンプリングデータを相互に関連付ける、付記32に記載のマイクロコンピュータ。
(Supplementary note 38) The microcomputer according to
(付記39)前記センサから前記サンプリングデータを読み出すときに、前記第2のクロック信号を出力する、付記28に記載のマイクロコンピュータ。 (Supplementary note 39) The microcomputer according to supplementary note 28, wherein the second clock signal is output when the sampling data is read from the sensor.
(付記40)前記センサにリセット信号を出力可能であり、前記センサは、前記マイクロコンピュータからの読み出し要求に応じて、前記リセット信号を受け取った後のデータのサンプリング回数を示すシリアルデータを、対応するサンプリングデータと共に前記マイクロコンピュータへ出力し、前記マイクロコンピュータは、前記リセット信号を出力した基準時刻と、前記センサでのサンプリング周期と、受け取った前記シリアルデータとに基づいて、受け取った前記サンプリングデータのサンプリング時刻を算出する演算部を更に備える、付記28に記載のマイクロコンピュータ。 (Supplementary Note 40) A reset signal can be output to the sensor, and the sensor corresponds to serial data indicating the number of times of sampling of the data after receiving the reset signal in response to a read request from the microcomputer. The microcomputer outputs the sampling data together with the sampling data, and the microcomputer samples the received sampling data based on the reference time when the reset signal is output, the sampling period of the sensor, and the received serial data. 29. The microcomputer according to appendix 28, further comprising a calculation unit that calculates time.
(付記41)第2のクロック信号を生成し、第1のクロック信号に基づいてサンプリングした検出結果を示すアナログ信号をアナログ/デジタル変換して生成したデジタル信号であるサンプリングデータを出力可能に構成されたセンサに、前記センサから前記サンプリングデータを読み出すマイクロコンピュータから前記第2のクロック信号を出力し、前記センサに、前記第2のクロック信号に基づいて、前記第1のクロック信号の周波数を補正させる、検出システムの補正方法。 (Supplementary Note 41) The second clock signal is generated, and sampling data which is a digital signal generated by analog / digital conversion of an analog signal indicating a detection result sampled based on the first clock signal can be output. The sensor outputs the second clock signal from a microcomputer that reads the sampling data from the sensor, and causes the sensor to correct the frequency of the first clock signal based on the second clock signal. , Detection system correction method.
(付記42)前記センサは、前記マイクロコンピュータとの間でデータ通信を行う第1の入出力部と、検出結果を前記アナログ信号として出力する検出部と、与えられる制御信号に基づいて周波数を補正した前記第1のクロック信号を出力する発振器と、前記第1の入出力部を介して前記マイクロコンピュータから受け取った前記第2のクロック信号に基づいて前記制御信号を出力する周波数補正部と、前記アナログ信号を、前記第1のクロック信号に基づいてサンプリングしてアナログ/デジタル変換し、前記サンプリングデータを出力するアナログ/デジタル変換器と、前記サンプリングデータを格納するメモリと、を備え、前記マイクロコンピュータは、前記第2のクロック信号を生成するクロック信号生成部と、前記センサとの間でデータ通信を行う第2の入出力部と、を備える、付記41に記載の検出システムの補正方法。
(Supplementary Note 42) The sensor corrects the frequency based on a first input / output unit that performs data communication with the microcomputer, a detection unit that outputs a detection result as the analog signal, and a control signal that is provided. An oscillator that outputs the first clock signal; a frequency correction unit that outputs the control signal based on the second clock signal received from the microcomputer via the first input / output unit; The microcomputer comprising: an analog / digital converter that samples and analog / digital converts an analog signal based on the first clock signal and outputs the sampling data; and a memory that stores the sampling data Between the clock signal generator that generates the second clock signal and the sensor. Comprising a second output unit for performing Data Communications, a method of correcting the detection system according to
(付記43)前記マイクロコンピュータに、前記メモリから前記サンプリングデータを読み出すときに、前記第2のクロック信号を出力させる、付記42に記載の検出システムの補正方法。
(Supplementary note 43) The correction method of the detection system according to
(付記44)前記周波数補正部は、前記第2のクロック信号を分周する分周器と、前記第1のクロック信号の周波数を示す第1の信号を出力する第1の周波数電圧変換部と、前記分周器で分周された信号の周波数を示す第2の信号を出力する第2の周波数電圧変換部と、前記第1の信号と前記第2の信号との差電圧を示す信号を出力する差動増幅器と、前記第2の信号と所定値の信号とを比較し、比較結果を示す切り替え信号を出力する比較器と、前記切り替え信号に応じて、前記差動増幅器が出力した前記信号の電圧をホールドする電圧ホールド部と、前記切り替え信号に応じて、前記発振器を前記差動増幅器の出力及び前記電圧ホールド部の出力のいずれかと、前記発振器と、を接続するスイッチと、を備え、前記発振器が前記差動増幅器の前記出力と接続されることで、前記差動増幅器が出力した前記信号の電圧が前記制御信号として前記発振器に入力され、前記発振器が前記電圧ホールド部の前記出力と接続されることで、前記電圧ホールド部がホールドした電圧が前記制御信号として前記発振器に入力される、付記42に記載の検出システムの補正方法。
(Supplementary Note 44) The frequency correction unit includes a frequency divider that divides the second clock signal, and a first frequency-voltage conversion unit that outputs a first signal indicating the frequency of the first clock signal. A second frequency voltage converter for outputting a second signal indicating the frequency of the signal divided by the frequency divider, and a signal indicating a difference voltage between the first signal and the second signal. A differential amplifier for outputting, a comparator for comparing the second signal with a signal of a predetermined value, and outputting a switching signal indicating a comparison result, and the differential amplifier outputting the switching signal in response to the switching signal A voltage hold unit that holds a voltage of a signal; and a switch that connects the oscillator to either the output of the differential amplifier or the output of the voltage hold unit in response to the switching signal; The oscillator is the differential amplification The voltage of the signal output from the differential amplifier is input to the oscillator as the control signal, and the oscillator is connected to the output of the voltage hold unit. 43. The correction method of the detection system according to
(付記45)前記スイッチに、前記マイクロコンピュータから前記第2のクロック信号が入力されている場合には、前記発振器と前記差動増幅器の前記出力とを接続させ、前記マイクロコンピュータから前記第2のクロック信号が入力されていない場合には、前記発振器と前記電圧ホールド部の前記出力とを接続させる、付記44に記載の検出システムの補正方法。 (Supplementary Note 45) When the second clock signal is input from the microcomputer to the switch, the oscillator and the output of the differential amplifier are connected to the switch. 45. The correction method of the detection system according to appendix 44, wherein when the clock signal is not input, the oscillator and the output of the voltage hold unit are connected.
(付記46)前記マイクロコンピュータは、前記センサにリセット信号を出力可能であり、前記メモリに、前記マイクロコンピュータからの読み出し要求に応じて、前記リセット信号を受け取った後のデータのサンプリング回数を示すシリアルデータを、対応するサンプリングデータと共に前記マイクロコンピュータへ出力させ、前記マイクロコンピュータに、前記リセット信号を出力した基準時刻と、前記センサでのサンプリング周期と、受け取った前記シリアルデータとに基づいて、受け取った前記サンプリングデータのサンプリング時刻を算出させる、付記44に記載の検出システムの補正方法。 (Supplementary Note 46) The microcomputer is capable of outputting a reset signal to the sensor, and a serial number indicating the number of times data is sampled after the reset signal is received in the memory in response to a read request from the microcomputer The data is output to the microcomputer together with the corresponding sampling data, and the microcomputer receives the reset time based on the reference time, the sampling period of the sensor, and the received serial data. 45. The correction method of the detection system according to appendix 44, wherein a sampling time of the sampling data is calculated.
(付記47)前記基準時刻に、前記受け取ったシリアルデータの値を前記サンプリング周期に乗じた値を加算することで、前記サンプリング時刻を算出させる、付記46に記載の検出システムの補正方法。 (Supplementary note 47) The correction method of the detection system according to supplementary note 46, wherein the sampling time is calculated by adding a value obtained by multiplying the sampling period by the value of the received serial data to the reference time.
(付記48)前記リセット信号を出力してから前記シリアルデータがリセットされるまでの遅延時間を更に加算して、前記サンプリング時刻を算出する、付記47に記載の検出システムの補正方法。 (Supplementary note 48) The detection system correction method according to supplementary note 47, wherein a delay time from when the reset signal is output to when the serial data is reset is further added to calculate the sampling time.
(付記49)前記第1のクロック信号に基づいて前記アナログ信号を前記サンプリングデータに変換するのに要する遅延時間を更に加算して、前記サンプリング時刻を算出する、付記47に記載の検出システムの補正方法。 (Supplementary note 49) The correction of the detection system according to supplementary note 47, wherein the sampling time is calculated by further adding a delay time required to convert the analog signal into the sampling data based on the first clock signal. Method.
(付記50)前記シリアルデータは、前記マイクロコンピュータから読み出しが要求される毎に、対応するサンプリングデータと共に前記マイクロコンピュータへ出力される、付記46に記載の検出システムの補正方法。 (Supplementary note 50) The detection system correction method according to supplementary note 46, wherein the serial data is output to the microcomputer together with corresponding sampling data every time reading is requested from the microcomputer.
(付記51)前記シリアルデータは、前記マイクロコンピュータから読み出しが所定の回数要求される毎に、対応するサンプリングデータと共に前記マイクロコンピュータへ出力される、付記46に記載の検出システムの補正方法。 (Supplementary note 51) The detection system correction method according to supplementary note 46, wherein the serial data is output to the microcomputer together with corresponding sampling data each time a read request is made from the microcomputer a predetermined number of times.
(付記52)前記センサを複数有し、算出したサンプリング時刻に基づいて、複数の前記センサで同時刻にサンプリングされたサンプリングデータを相互に関連付ける、付記46に記載の検出システムの補正方法。 (Supplementary note 52) The detection system correction method according to supplementary note 46, wherein a plurality of the sensors are provided, and sampling data sampled at the same time by the plurality of sensors are correlated with each other based on the calculated sampling time.
1、4−9 センサ
1A、6A、7A 信号処理部
2、3 マイクロコンピュータ
8A、9A MCU
11、71 通信部
12、12_0〜12_n 検出部
13 発振器
14、14_0〜14_n A/D変換器
15 メモリ
16 周波数補正部
17 マルチプレクサ
21 通信部
22 クロック信号生成部
23 演算部
31 電圧制御回路
32 定電流回路
33 タイミング制御回路
34、35、42 スイッチ
36、43 容量
41 オペアンプ
50 発振子
61 バス
62 CPU
72 DMAC
73 ROM
74 タイマ
161 分周器
162、163 周波数電圧変換部
164 比較器
165 差動増幅器
166 電圧ホールド部
167 スイッチ
CHR チャージ信号
CLK1、CLK2 クロック信号
CLKD 分周信号
CLKIN クロック信号
CLKR 基準クロック
DCHR ディスチャージ信号
CON 制御信号
INV_1〜INV_n 反転回路
SD サンプリングデータ
REQ 要求
RS リセット信号
AS アナログ信号
SD サンプリングデータ
SER シリアルデータ
100、200、300、400、401、500、600、601 検出システム
1, 4-9
DESCRIPTION OF
72 DMAC
73 ROM
74
Claims (20)
第2のクロック信号を生成して前記センサに出力し、かつ、前記センサから前記サンプリングデータを読み出すマイクロコンピュータと、を備え、
前記センサは、前記第2のクロック信号に基づいて、前記第1のクロック信号の周波数を補正する、
検出システム。 A sensor configured to output sampling data which is a digital signal generated by analog / digital conversion of an analog signal indicating a detection result sampled based on a first clock signal;
A microcomputer that generates and outputs a second clock signal to the sensor and reads the sampling data from the sensor;
The sensor corrects the frequency of the first clock signal based on the second clock signal;
Detection system.
前記マイクロコンピュータとの間でデータ通信を行う第1の入出力部と、
検出結果を前記アナログ信号として出力する検出部と、
与えられる制御信号に基づいて周波数を補正した前記第1のクロック信号を出力する発振器と、
前記第1の入出力部を介して前記マイクロコンピュータから受け取った前記第2のクロック信号に基づいて前記制御信号を出力する周波数補正部と、
前記アナログ信号を、前記第1のクロック信号に基づいてサンプリングしてアナログ/デジタル変換し、前記サンプリングデータを出力するアナログ/デジタル変換器と、
前記サンプリングデータを格納するメモリと、
を備え、
前記マイクロコンピュータは、
前記第2のクロック信号を生成するクロック信号生成部と、
前記センサとの間でデータ通信を行う第2の入出力部と、を備える、
請求項1に記載の検出システム。 The sensor is
A first input / output unit for performing data communication with the microcomputer;
A detection unit for outputting a detection result as the analog signal;
An oscillator for outputting the first clock signal whose frequency is corrected based on a given control signal;
A frequency correction unit that outputs the control signal based on the second clock signal received from the microcomputer via the first input / output unit;
An analog / digital converter that samples the analog signal based on the first clock signal, performs analog / digital conversion, and outputs the sampling data;
A memory for storing the sampling data;
With
The microcomputer is
A clock signal generator for generating the second clock signal;
A second input / output unit that performs data communication with the sensor,
The detection system according to claim 1.
請求項2に記載の検出システム。 The microcomputer outputs the second clock signal when reading the sampling data from the memory.
The detection system according to claim 2.
前記第2のクロック信号を分周する分周器と、
前記第1のクロック信号の周波数を示す第1の信号を出力する第1の周波数電圧変換部と、
前記分周器で分周された信号の周波数を示す第2の信号を出力する第2の周波数電圧変換部と、
前記第1の信号と前記第2の信号との差電圧を示す信号を出力する差動増幅器と、
前記第2の信号と所定値の信号とを比較し、比較結果を示す切り替え信号を出力する比較器と、
前記切り替え信号に応じて、前記差動増幅器が出力した前記信号の電圧をホールドする電圧ホールド部と、
前記切り替え信号に応じて、前記発振器を前記差動増幅器の出力及び前記電圧ホールド部の出力のいずれかと、前記発振器と、を接続するスイッチと、を備え、
前記発振器が前記差動増幅器の前記出力と接続されることで、前記差動増幅器が出力した前記信号の電圧が前記制御信号として前記発振器に入力され、
前記発振器が前記電圧ホールド部の前記出力と接続されることで、前記電圧ホールド部がホールドした電圧が前記制御信号として前記発振器に入力される、
請求項2に記載の検出システム。 The frequency correction unit is
A frequency divider for dividing the second clock signal;
A first frequency-voltage converter that outputs a first signal indicating the frequency of the first clock signal;
A second frequency voltage converter that outputs a second signal indicating the frequency of the signal divided by the frequency divider;
A differential amplifier that outputs a signal indicating a voltage difference between the first signal and the second signal;
A comparator that compares the second signal with a signal of a predetermined value and outputs a switching signal indicating a comparison result;
In response to the switching signal, a voltage hold unit that holds the voltage of the signal output from the differential amplifier;
In response to the switching signal, the oscillator includes a switch that connects either the output of the differential amplifier or the output of the voltage hold unit, and the oscillator,
By connecting the oscillator to the output of the differential amplifier, the voltage of the signal output from the differential amplifier is input to the oscillator as the control signal,
By connecting the oscillator to the output of the voltage hold unit, the voltage held by the voltage hold unit is input to the oscillator as the control signal.
The detection system according to claim 2.
前記マイクロコンピュータから前記第2のクロック信号が入力されている場合に、前記発振器と前記差動増幅器の前記出力とを接続し、
前記マイクロコンピュータから前記第2のクロック信号が入力されていない場合に、前記発振器と前記電圧ホールド部の前記出力とを接続する、
請求項4に記載の検出システム。 The switch is
When the second clock signal is input from the microcomputer, the oscillator and the output of the differential amplifier are connected,
When the second clock signal is not input from the microcomputer, the oscillator and the output of the voltage hold unit are connected.
The detection system according to claim 4.
前記メモリは、前記マイクロコンピュータからの読み出し要求に応じて、前記リセット信号を受け取った後のデータのサンプリング回数を示すシリアルデータを、対応するサンプリングデータと共に前記マイクロコンピュータへ出力し、
前記マイクロコンピュータは、前記リセット信号を出力した基準時刻と、前記センサでのサンプリング周期と、受け取った前記シリアルデータとに基づいて、受け取った前記サンプリングデータのサンプリング時刻を算出する演算部を更に備える、
請求項2に記載の検出システム。 The microcomputer can output a reset signal to the sensor,
In response to a read request from the microcomputer, the memory outputs serial data indicating the number of times of sampling of the data after receiving the reset signal, together with corresponding sampling data, to the microcomputer.
The microcomputer further includes a calculation unit that calculates a sampling time of the received sampling data based on a reference time at which the reset signal is output, a sampling period in the sensor, and the received serial data.
The detection system according to claim 2.
請求項6に記載の検出システム。 The calculation unit calculates the sampling time by adding a value obtained by multiplying the value of the received serial data by the sampling period to the reference time.
The detection system according to claim 6.
請求項7に記載の検出システム。 The calculation unit further adds a delay time from when the calculation unit outputs the reset signal until the serial data is reset, to calculate the sampling time,
The detection system according to claim 7.
請求項7に記載の検出システム。 The arithmetic unit further adds a delay time required to convert the analog signal to the sampling data based on the first clock signal to calculate the sampling time.
The detection system according to claim 7.
請求項6に記載の検出システム。 The serial data is output to the microcomputer together with corresponding sampling data each time reading is requested from the microcomputer.
The detection system according to claim 6.
請求項6に記載の検出システム。 The serial data is output to the microcomputer together with corresponding sampling data every time reading from the microcomputer is requested a predetermined number of times.
The detection system according to claim 6.
算出したサンプリング時刻に基づいて、複数の前記センサで同時刻にサンプリングされたサンプリングデータを相互に関連付ける、
請求項6に記載の検出システム。 A plurality of the sensors;
Based on the calculated sampling time, correlate sampling data sampled at the same time by a plurality of the sensors,
The detection system according to claim 6.
マイクロコンピュータで生成された第2のクロック信号に基づいて、前記第1のクロック信号の周波数を補正し、
前記マイクロコンピュータによって、前記サンプリングデータが読み出される、
センサ。 It is configured to be able to output sampling data which is a digital signal generated by analog / digital conversion of an analog signal indicating a detection result sampled based on the first clock signal,
Based on the second clock signal generated by the microcomputer, the frequency of the first clock signal is corrected,
The sampling data is read by the microcomputer.
Sensor.
検出結果を前記アナログ信号として出力する検出部と、
与えられる制御信号に基づいて周波数を補正した前記第1のクロック信号を出力する発振器と、
前記第1の入出力部を介して前記マイクロコンピュータから受け取った前記第2のクロック信号に基づいて前記制御信号を出力する周波数補正部と、
前記アナログ信号を、前記第1のクロック信号に基づいてサンプリングしてアナログ/デジタル変換し、前記サンプリングデータを出力するアナログ/デジタル変換器と、
前記サンプリングデータを格納するメモリと、
を備える、
請求項13に記載のセンサ。 A first input / output unit for performing data communication with the microcomputer;
A detection unit for outputting a detection result as the analog signal;
An oscillator for outputting the first clock signal whose frequency is corrected based on a given control signal;
A frequency correction unit that outputs the control signal based on the second clock signal received from the microcomputer via the first input / output unit;
An analog / digital converter that samples the analog signal based on the first clock signal, performs analog / digital conversion, and outputs the sampling data;
A memory for storing the sampling data;
Comprising
The sensor according to claim 13.
前記第2のクロック信号を分周する分周器と、
前記第1のクロック信号の周波数を示す第1の信号を出力する第1の周波数電圧変換部と、
前記分周器で分周された信号の周波数を示す第2の信号を出力する第2の周波数電圧変換部と、
前記第1の信号と前記第2の信号との差電圧を示す信号を出力する差動増幅器と、
前記第2の信号と所定値の信号とを比較し、比較結果を示す切り替え信号を出力する比較器と、
前記切り替え信号に応じて、前記差動増幅器が出力した前記信号の電圧をホールドする電圧ホールド部と、
前記切り替え信号に応じて、前記発振器を前記差動増幅器の出力及び前記電圧ホールド部の出力のいずれかと、前記発振器と、を接続するスイッチと、を備え、
前記発振器が前記差動増幅器の前記出力と接続されることで、前記差動増幅器が出力した前記信号の電圧が前記制御信号として前記発振器に入力され、
前記発振器が前記電圧ホールド部の前記出力と接続されることで、前記電圧ホールド部がホールドした電圧が前記制御信号として前記発振器に入力される、
請求項14に記載のセンサ。 The frequency correction unit is
A frequency divider for dividing the second clock signal;
A first frequency-voltage converter that outputs a first signal indicating the frequency of the first clock signal;
A second frequency voltage converter that outputs a second signal indicating the frequency of the signal divided by the frequency divider;
A differential amplifier that outputs a signal indicating a voltage difference between the first signal and the second signal;
A comparator that compares the second signal with a signal of a predetermined value and outputs a switching signal indicating a comparison result;
In response to the switching signal, a voltage hold unit that holds the voltage of the signal output from the differential amplifier;
In response to the switching signal, the oscillator includes a switch that connects either the output of the differential amplifier or the output of the voltage hold unit, and the oscillator,
By connecting the oscillator to the output of the differential amplifier, the voltage of the signal output from the differential amplifier is input to the oscillator as the control signal,
By connecting the oscillator to the output of the voltage hold unit, the voltage held by the voltage hold unit is input to the oscillator as the control signal.
The sensor according to claim 14.
前記マイクロコンピュータから前記第2のクロック信号が入力されている場合に、前記発振器と前記差動増幅器の前記出力とを接続し、
前記マイクロコンピュータから前記第2のクロック信号が入力されていない場合に、前記発振器と前記電圧ホールド部の前記出力とを接続する、
請求項15に記載のセンサ。 The switch is
When the second clock signal is input from the microcomputer, the oscillator and the output of the differential amplifier are connected,
When the second clock signal is not input from the microcomputer, the oscillator and the output of the voltage hold unit are connected.
The sensor according to claim 15.
前記第1のクロック信号の周波数は、前記第2のクロック信号に基づいて、前記センサにより補正される、
マイクロコンピュータ。 A second clock signal is generated in a sensor configured to output sampling data that is a digital signal generated by analog / digital conversion of an analog signal indicating a detection result sampled based on the first clock signal. Output, and configured to be able to read the sampling data from the sensor,
The frequency of the first clock signal is corrected by the sensor based on the second clock signal.
Microcomputer.
前記センサとの間でデータ通信を行う第2の入出力部と、を備える、
請求項17に記載のマイクロコンピュータ。 A clock signal generator for generating the second clock signal;
A second input / output unit that performs data communication with the sensor,
The microcomputer according to claim 17.
請求項18に記載のマイクロコンピュータ。 The microcomputer outputs the second clock signal when reading the sampling data from the sensor.
The microcomputer according to claim 18.
前記センサは、前記マイクロコンピュータからの読み出し要求に応じて、前記リセット信号を受け取った後のデータのサンプリング回数を示すシリアルデータを、対応するサンプリングデータと共に前記マイクロコンピュータへ出力し、
前記マイクロコンピュータは、前記リセット信号を出力した基準時刻と、前記センサでのサンプリング周期と、受け取った前記シリアルデータとに基づいて、受け取った前記サンプリングデータのサンプリング時刻を算出する演算部を更に備える、
請求項18に記載のマイクロコンピュータ。 A reset signal can be output to the sensor;
In response to a read request from the microcomputer, the sensor outputs serial data indicating the number of times of sampling of the data after receiving the reset signal, together with corresponding sampling data, to the microcomputer.
The microcomputer further includes a calculation unit that calculates a sampling time of the received sampling data based on a reference time at which the reset signal is output, a sampling period in the sensor, and the received serial data.
The microcomputer according to claim 18.
Priority Applications (5)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US15/967,307 US20180340803A1 (en) | 2017-05-25 | 2018-04-30 | Detection system, sensor and microcomputer |
| TW107115869A TW201907666A (en) | 2017-05-25 | 2018-05-10 | Detection system, sensor and microcomputer |
| KR1020180058290A KR20180129662A (en) | 2017-05-25 | 2018-05-23 | Detection system, sensor and microcomputer |
| CN201810508113.0A CN109067493A (en) | 2017-05-25 | 2018-05-24 | Detection system, sensor and microcomputer |
| EP18183261.9A EP3416291A3 (en) | 2017-05-25 | 2018-07-12 | Detection system, sensor and microcomputer |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2017103835 | 2017-05-25 | ||
| JP2017103835 | 2017-05-25 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JP2018200666A true JP2018200666A (en) | 2018-12-20 |
Family
ID=64667290
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2017177551A Pending JP2018200666A (en) | 2017-05-25 | 2017-09-15 | Detection system, sensor and microcomputer |
Country Status (4)
| Country | Link |
|---|---|
| JP (1) | JP2018200666A (en) |
| KR (1) | KR20180129662A (en) |
| CN (1) | CN109067493A (en) |
| TW (1) | TW201907666A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2022061467A (en) * | 2020-10-06 | 2022-04-18 | 國立臺灣科技大學 | Brain computer interface device for data compression of multi-channel physiological signals |
| JP2023032014A (en) * | 2021-08-26 | 2023-03-09 | 富士電機株式会社 | sensor device |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109917218B (en) * | 2019-04-30 | 2024-10-01 | 深圳开立生物医疗科技股份有限公司 | Power-on and power-off test system and method for electrical equipment and electrical equipment |
| CN110780189B (en) * | 2019-09-23 | 2021-12-21 | 福州瑞芯微电子股份有限公司 | SDIO interface test equipment and method based on FPGA |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| DE10149174A1 (en) * | 2001-10-04 | 2003-04-17 | Heidenhain Gmbh Dr Johannes | Position determination in drive regulator position measurement device, involves adopting instantaneous sampling signal values using clock, forming position values associated with clock |
| US6639529B1 (en) * | 2002-05-14 | 2003-10-28 | Mitutoyo Corporation | System and method for delay calibration in position encoders |
| EP2677346A1 (en) * | 2012-06-19 | 2013-12-25 | Sercel | Digital seismic sensor and acquisition device adapted to be connected together via a two-conductor line. |
| JP6436616B2 (en) * | 2013-06-12 | 2018-12-12 | キヤノン株式会社 | Measuring device, measuring method, and processing device |
| US10180340B2 (en) * | 2014-10-09 | 2019-01-15 | Invensense, Inc. | System and method for MEMS sensor system synchronization |
-
2017
- 2017-09-15 JP JP2017177551A patent/JP2018200666A/en active Pending
-
2018
- 2018-05-10 TW TW107115869A patent/TW201907666A/en unknown
- 2018-05-23 KR KR1020180058290A patent/KR20180129662A/en not_active Withdrawn
- 2018-05-24 CN CN201810508113.0A patent/CN109067493A/en active Pending
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2022061467A (en) * | 2020-10-06 | 2022-04-18 | 國立臺灣科技大學 | Brain computer interface device for data compression of multi-channel physiological signals |
| US11755058B2 (en) | 2020-10-06 | 2023-09-12 | National Taiwan University Of Science And Technology | Brain-computer interface device with multiple channels |
| JP2023032014A (en) * | 2021-08-26 | 2023-03-09 | 富士電機株式会社 | sensor device |
| JP7697316B2 (en) | 2021-08-26 | 2025-06-24 | 富士電機株式会社 | Sensor Device |
Also Published As
| Publication number | Publication date |
|---|---|
| CN109067493A (en) | 2018-12-21 |
| KR20180129662A (en) | 2018-12-05 |
| TW201907666A (en) | 2019-02-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP5561010B2 (en) | Successive comparison type AD converter and method of adjusting operation clock of successive approximation type AD converter | |
| US6934215B2 (en) | Semiconductor memory device having duty cycle correction circuit and interpolation circuit interpolating clock signal in the semiconductor memory device | |
| JP4794596B2 (en) | Physical quantity detection circuit, physical quantity sensor device | |
| EP3416291A2 (en) | Detection system, sensor and microcomputer | |
| JP2018200666A (en) | Detection system, sensor and microcomputer | |
| JP2016092590A (en) | Clock generation circuit, sequential comparison ad converter and integrated circuit | |
| US7336748B2 (en) | DDS circuit with arbitrary frequency control clock | |
| WO2022186375A1 (en) | Voltage measurement system | |
| JP2002368605A (en) | Parallel signal automatic phase adjustment circuit | |
| CN108919707B (en) | 64-channel high-precision data acquisition system | |
| US10826504B2 (en) | Time-to-digital converter and phase difference detection method | |
| WO2009122637A1 (en) | Physical quantity detection circuit, physical quantity sensor, method for detecting physical quantity | |
| US11728814B1 (en) | Voltage droop monitor and voltage droop monitoring method | |
| CN103338037B (en) | The method and apparatus that in a kind of phaselocked loop, clock signal turns digital signal | |
| JP7797781B2 (en) | Transition state output device, time-to-digital converter and A/D conversion circuit | |
| KR101510777B1 (en) | Frequency measurement circuit and semiconductor device having the same | |
| US10033355B2 (en) | Electric power supply device and semiconductor device | |
| US20040004505A1 (en) | Data delay circuit | |
| JPH11214987A (en) | PLL device | |
| US11695399B2 (en) | Digital timer delay line with sub-sample accuracy | |
| JP2004258888A (en) | Semiconductor integrated circuit | |
| JP2021010096A (en) | Phase-locked loop | |
| JP2011109161A (en) | Temperature compensation type oscillator, method of compensating temperature, and temperature compensation program | |
| US6859912B2 (en) | Method and circuit arrangement for clock recovery | |
| JP2002244762A (en) | Clock generation circuit |