JPWO2005020573A1 - Data string sample and hold method, apparatus, and semiconductor integrated circuit - Google Patents

Data string sample and hold method, apparatus, and semiconductor integrated circuit Download PDF

Info

Publication number
JPWO2005020573A1
JPWO2005020573A1 JP2005513359A JP2005513359A JPWO2005020573A1 JP WO2005020573 A1 JPWO2005020573 A1 JP WO2005020573A1 JP 2005513359 A JP2005513359 A JP 2005513359A JP 2005513359 A JP2005513359 A JP 2005513359A JP WO2005020573 A1 JPWO2005020573 A1 JP WO2005020573A1
Authority
JP
Japan
Prior art keywords
data
storage area
storage medium
storage
port
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
JP2005513359A
Other languages
Japanese (ja)
Inventor
隆太郎 森
隆太郎 森
Original Assignee
アセットコア・テクノロジー株式会社
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 アセットコア・テクノロジー株式会社 filed Critical アセットコア・テクノロジー株式会社
Publication of JPWO2005020573A1 publication Critical patent/JPWO2005020573A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/418External card to be used in combination with the client device, e.g. for conditional access
    • H04N21/4184External card to be used in combination with the client device, e.g. for conditional access providing storage capabilities, e.g. memory stick
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • H04N21/4223Cameras
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • H04N5/765Interface circuits between an apparatus for recording and another apparatus
    • H04N5/77Interface circuits between an apparatus for recording and another apparatus between a recording apparatus and a television camera
    • H04N5/772Interface circuits between an apparatus for recording and another apparatus between a recording apparatus and a television camera the recording apparatus and the television camera being placed in the same enclosure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • H04N5/907Television signal recording using static stores, e.g. storage tubes or semiconductor memories

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Read Only Memory (AREA)
  • Debugging And Monitoring (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Television Signal Processing For Recording (AREA)
  • Closed-Circuit Television Systems (AREA)

Abstract

【課題】記憶媒体の記憶容量を最小限に留め、かつトリガ信号の到来前のデータとトリガ信号の到来後のデータとを明確に分離し、それぞれ独立して管理する。【解決手段】一次記憶媒体に第1の記憶領域と第2の記憶領域とを定義するための領域定義データを記憶するための領域定義データ記憶手段と、到来するデータを前記第1の記憶領域に書き込む動作を前記トリガ信号が到来するまで継続する第1の書き込み制御手段と、前記トリガ信号が到来するのを待って、前記第1の記憶領域へのデータ書き込みを停止する代わりに、前記トリガ信号の到来以降に到来したデータを前記第2の記憶領域へと書き込む第2の書き込み制御手段と、を具備する。The storage capacity of a storage medium is minimized, and data before the arrival of a trigger signal and data after the arrival of a trigger signal are clearly separated and managed independently. Area definition data storage means for storing area definition data for defining a first storage area and a second storage area in a primary storage medium, and incoming data in the first storage area Instead of stopping the data write to the first storage area after waiting for the trigger signal to arrive, and Second write control means for writing data that has arrived after the arrival of the signal into the second storage area.

Description

本発明は、各種のデータ分析用途等に好適なサンプルホールド方法に係り、特に、連続的に到来する一連のデータの中で、所定のトリガ信号の到来タイミングの前後それぞれ所定区間内に存在する一連のデータのみを確実にサンプルホールドするための方法に関するものである。  The present invention relates to a sample-and-hold method suitable for various data analysis applications and the like, and in particular, among a series of continuously arriving data, a series existing in a predetermined section before and after the arrival timing of a predetermined trigger signal. The present invention relates to a method for surely sampling and holding only the data.

連続的に到来する一連のデータの中で、所定のトリガ信号の到来タイミングの前後それぞれ所定区間内に存在する一連のデータのみをサンプルホールドすることができれば、各種のデータ分析用途に便利である。  If it is possible to sample and hold only a series of data existing in a predetermined section before and after the arrival timing of a predetermined trigger signal among a series of data that arrives continuously, it is convenient for various data analysis applications.

例えば、玄関に防犯カメラを取り付けて来訪者を監視するような場合、来訪者の到来を別途設けたセンサや映像そのものの変化等に基づいて検知し、これをトリガとして検知後の防犯カメラからの映像データを一定期間分だけ保存することは従来より知られている(特許文献1参照)。このとき、検知後の一定期間分の映像データのみならず、検知前の一定期間分の映像データについても保存することができれば、それら保存された両映像データに基づいて映像を再生することによって、来訪者の様子をより詳細に観察することができる。  For example, when a security camera is attached to the entrance to monitor a visitor, the arrival of the visitor is detected based on a separately provided sensor or a change in the image itself, and this is used as a trigger from the detected security camera. It is conventionally known to store video data for a certain period (see Patent Document 1). At this time, if not only video data for a certain period after detection but also video data for a certain period before detection can be stored, by reproducing the video based on both the stored video data, Visitors can be observed in more detail.

また、複数の計測器からの計測データに基づいて対象物の状態を監視しつつ、それら計測データの示す特徴量が予め想定される事象発生時の特徴量と一致したことをトリガとして、その後の一定期間分の計測データを保存すると言ったことも監視システムの分野では知られている。このとき、トリガ発生後の一定期間分の計測データのみならず、トリガ発生前の一定期間分の計測データについても保存することができれば、それら保存された両計測データは、事象発生検知精度の検証や事象発生の予測に有効である。  In addition, while monitoring the state of the object based on the measurement data from a plurality of measuring instruments, triggered by the fact that the feature quantity indicated by the measurement data coincides with the feature quantity at the time of the event occurrence that is assumed in advance, It is also known in the field of monitoring systems that measurement data for a certain period is stored. At this time, if it is possible to save not only the measurement data for a certain period after the trigger occurrence but also the measurement data for a certain period before the trigger occurrence, both the saved measurement data can be used to verify the event occurrence detection accuracy. It is effective in predicting the occurrence of events.

さらに、複数の計測器からの計測データに基づいて車両の状態を監視しつつ、それら計測データの示す特徴量が予め想定される事故発生時の特徴量と一致したことをトリガとして、トリガ発生後の一定期間分の計測データのみならず、トリガ発生前の一定期間分の計測データについても保存することができるとすれば、それら保存された両計測データは事故原因の究明に有効である。
特開平4−32390号公報
Furthermore, while the vehicle state is monitored based on measurement data from a plurality of measuring instruments, the occurrence of the trigger is triggered by the fact that the feature values indicated by the measurement data match the feature values at the time of the accident. If it is possible to save not only the measurement data for a certain period of time but also the measurement data for a certain period before the occurrence of the trigger, both of the saved measurement data are effective for investigating the cause of the accident.
JP-A-4-32390

この発明が解決しようとする課題は、連続的に到来する一連のデータの中で、所定のトリガ信号の到来タイミングの前後それぞれ所定区間内に存在する一連のデータのみを確実にサンプルホールドすることができるサンプルホールド方法及び装置を提供することにある。  The problem to be solved by the present invention is to reliably sample and hold only a series of data existing within a predetermined section before and after the arrival timing of a predetermined trigger signal among a series of data that continuously arrive. An object of the present invention is to provide a sample hold method and apparatus.

この発明が解決しようとする他の課題は、上記の課題を達成するために必要とされる記憶媒体の記憶容量を必要最小限に留め、かつトリガ信号の到来タイミング前の所定区間に含まれる一連のデータとトリガ信号の到来タイミング後の所定区間に含まれる一連のデータとを明確に分離してそれぞれを独立して管理できるサンプルホールド方法及び装置を提供することにある。  Another problem to be solved by the present invention is that the storage capacity of the storage medium required to achieve the above-mentioned problem is minimized, and a series included in a predetermined section before the arrival timing of the trigger signal. And a sample-and-hold method and apparatus capable of clearly separating a series of data included in a predetermined section after the arrival timing of a trigger signal and independently managing the data.

この発明が解決しようとするさらに他の課題は、連続的に到来する一連のデータの中で、所定のトリガ信号の到来タイミングの前後それぞれ所定区間内に存在する一連のデータのみを確実にサンプルホールドするための用途に好適な汎用性の高い半導体集積回路を提供することにある。  Still another problem to be solved by the present invention is to reliably sample and hold only a series of data existing within a predetermined section before and after the arrival timing of a predetermined trigger signal among a series of data that continuously arrive. Another object of the present invention is to provide a highly versatile semiconductor integrated circuit suitable for the purpose of doing so.

この発明のさらに他の課題については、以下の記載を参照することにより当業者であれば容易に理解されるであろう。  Still other problems of the present invention will be easily understood by those skilled in the art by referring to the following description.

本発明のサンプルホールド方法は、連続的に到来する一連のデータの中で、所定のトリガ信号の到来タイミングの前後それぞれ所定区間内に存在する一連のデータのみをサンプルホールドするための方法である。この方法は、前記トリガ信号の到来タイミングの前側区間に対応する第1の記憶領域と前記トリガ信号の到来タイミングの後側区間に対応する第2の記憶領域とが定義された一次記憶媒体を用意する第1のステップと、到来する一連のデータを第1の記憶領域にアドレスを循環歩進させながら書き込む動作を前記トリガ信号が到来するまで継続する第2のステップと、前記トリガ信号が到来するのを待って、前記第1の記憶領域へのデータ書き込みを停止する代わりに、前記トリガ信号の到来以降に到来した一連のデータを第2の記憶領域へと書き込む第3のステップと、を具備して構成される。  The sample and hold method of the present invention is a method for sampling and holding only a series of data existing within a predetermined section before and after the arrival timing of a predetermined trigger signal, among a series of data that arrives continuously. This method prepares a primary storage medium in which a first storage area corresponding to a front section of the arrival timing of the trigger signal and a second storage area corresponding to a rear section of the arrival timing of the trigger signal are defined. A second step of continuing the operation of writing a series of incoming data to the first storage area while cyclically incrementing addresses until the trigger signal arrives, and the trigger signal arrives A third step of writing a series of data that arrived after the arrival of the trigger signal to the second storage area instead of stopping the data writing to the first storage area after waiting for Configured.

このような構成によれば、トリガ信号の到来以前に到来した一連のデータは一次記録媒体の第1の記憶領域に保存され、トリガ信号の到来以降に到来した一連のデータは一次記録媒体の第2の記憶領域に保存される。したがって、この方法によれば、必要とされる記憶媒体の記憶容量を必要最小限に留め、かつトリガ信号の到来タイミング前の所定区間に含まれる一連のデータとトリガ信号の到来タイミング後の所定区間に含まれる一連のデータとを明確に分離してそれぞれを独立して管理できる。  According to such a configuration, a series of data that has arrived before the arrival of the trigger signal is stored in the first storage area of the primary recording medium, and a series of data that has arrived after the arrival of the trigger signal is stored in the first storage area of the primary recording medium. Is stored in the second storage area. Therefore, according to this method, the required storage capacity of the storage medium is kept to the minimum necessary, and the series of data included in the predetermined section before the arrival timing of the trigger signal and the predetermined section after the arrival timing of the trigger signal Can be managed independently by separating them clearly from the series of data contained in the.

このとき、前記一次記憶媒体がオプトメモリ等の高速記憶に適する不揮発性記憶媒体、又は電源バックアップされたDRAM等の揮発性記憶媒体とすれば、トリガ信号の到来と共に電源が断たれるような自体が発生したとしても、トリガ信号の到来タイミングの前後それぞれ所定区間内に存在する一連のデータを確実にサンプルホールドさせることができる。  At this time, if the primary storage medium is a non-volatile storage medium suitable for high-speed storage such as an opto-memory, or a volatile storage medium such as DRAM backed up by a power source, the power is cut off when the trigger signal arrives. Even if this occurs, it is possible to reliably sample and hold a series of data existing in a predetermined section before and after the arrival timing of the trigger signal.

本発明の上記のサンプルホールド方法は、前記第3のステップが完了するのを待って、前記一次記憶媒体の第1及び第2の記憶領域に書き込まれたデータを二次記憶媒体へと転写する第4のステップをさらに有するようにしてもよい。  The sample hold method of the present invention waits for the completion of the third step to transfer the data written in the first and second storage areas of the primary storage medium to the secondary storage medium. You may make it have a 4th step further.

このような構成によれば、一次記録媒体の第1の記憶領域に保存されたトリガ信号の到来以前に到来した一連のデータ及び一次記録媒体の第2の記憶領域に保存されたトリガ信号の到来以降に到来した一連のデータは、二次記録媒体に転写される。したがって、この方法によれば、必要とされる記憶媒体の記憶容量を必要最小限に留め、かつトリガ信号の到来タイミング前の所定区間に含まれる一連のデータとトリガ信号の到来タイミング後の所定区間に含まれる一連のデータとを明確に分離してそれぞれを独立して安全に管理でき、しかもサンプルホールドされたデータ列は最終的に二次記録媒体に保存されるから、次回のサンプルホールド待機動作に支障を与えることがない。  According to such a configuration, a series of data that arrived before the arrival of the trigger signal stored in the first storage area of the primary recording medium and the arrival of the trigger signal stored in the second storage area of the primary recording medium A series of data that has arrived thereafter is transferred to the secondary recording medium. Therefore, according to this method, the required storage capacity of the storage medium is kept to the minimum necessary, and the series of data included in the predetermined section before the arrival timing of the trigger signal and the predetermined section after the arrival timing of the trigger signal The series of data contained in the data can be clearly separated and each can be managed safely independently, and the sample-and-hold data string is finally stored on the secondary recording medium, so the next sample-and-hold standby operation Will not be disturbed.

このとき、前記一次記憶媒体がDRAM等の高速記憶に適する揮発性記憶媒体であり、かつ前記二次記憶媒体がフラッシュメモリ、ハードディスク等の不揮発性記憶媒体であれば、記憶速度の高速化と保存データの安全性とを共に満足させることができる。  At this time, if the primary storage medium is a volatile storage medium suitable for high-speed storage such as DRAM, and the secondary storage medium is a non-volatile storage medium such as flash memory or hard disk, the storage speed is increased and the storage is performed. Both data security and satisfaction can be satisfied.

なお、上述の2つの発明において、第1の記憶領域の記憶容量は第2の記憶領域の記憶容量の整数倍(より好ましくは2倍)とすることが好ましい。このようにすれば、フレーム単位に区分された画像データや音声データ等を対象とする場合、第1の記憶領域に保存されたデータと第2の記憶領域に保存されたデータとのデータ列(フレーム)同士の照合処理が容易となる。  In the two inventions described above, the storage capacity of the first storage area is preferably an integral multiple (more preferably twice) of the storage capacity of the second storage area. In this way, when image data, audio data, and the like divided into frame units are targeted, a data string of data stored in the first storage area and data stored in the second storage area ( Frame) can be easily compared.

ところで、連続的に到来する一連のデータのそれぞれが固定長データの場合と不定長データの場合とが想定される。前者は温度、湿度、速度等々の生データがこれに相当する。後者は、MPEG4等のフレーム毎にデータ長の異なる圧縮データがこれに相当する。不定長データをメモリアドレスと一対一に対応させて管理することは、メモリ容量節減の観点から好ましくない。このような場合には、第1及び第2のステップには、相前後して到来する個々の不定長データのデータ長を計測するステップと、計測されたデータ長を含むコントロールデータを、記憶領域に書き込まれるべき不定長データのそれぞれに付加するステップとが含まれていてもよい。このような構成によれば、コントロールデータにより不定長データの先頭と末尾とを特定できるから、メモリ内に不定長データをメモリアドレスとは無関係に密に詰め込むことができ、メモリ容量を節減できる。  By the way, it is assumed that each of a series of data that continuously arrives is fixed length data and indefinite length data. The former corresponds to raw data such as temperature, humidity, and speed. The latter corresponds to compressed data having a different data length for each frame such as MPEG4. It is not preferable to manage indefinite-length data in one-to-one correspondence with memory addresses from the viewpoint of saving memory capacity. In such a case, the first and second steps include a step of measuring the data length of individual indefinite length data that arrives in succession, and control data including the measured data length in the storage area. And adding to each of the indefinite length data to be written to. According to such a configuration, since the beginning and the end of the indefinite length data can be specified by the control data, the indefinite length data can be densely packed in the memory regardless of the memory address, and the memory capacity can be saved.

また、連続的に到来する一連のデータのそれぞれがフレーム単位に区画されたデータである場合も多いであろう。このようなフレーム形式のデータでは、フレームの末尾や先頭に当該データ再生に必要なコントロールデータが付加されているから、トリガ信号の到来タイミングを境にして、1個のフレームに属するデータを二分して別々のファイルとすると、再生に際しては両ファイルを結合することが不可欠となる。この種のサンプルホールド方法によりサンプルホールドされるデータファイルの用途としては、交通事故時の証拠として保険会社に提供する場合も想定されるため、事故の前後のファイルは完全に分離して別々に取り扱えることが要請される。このような場合には、第1のステップにおいて、到来する一連のデータを第1の記憶領域にアドレスを循環歩進させながら書き込む動作は、トリガ信号が到来した時点で書き込み中のフレームが終了するまで継続されるようにし、第2のステップにおいて、トリガ信号の到来以降に到来した一連のデータを第2の記憶領域に書き込む動作は、トリガ信号が到来した時点で書き込み中のフレームが終了したのちに開始されるようにしてもよい。このような構成によれば、分離された二つのファイルはフレームの切れ目で分離されているため、データ再生に際して両ファイルを結合する必要はなく、結果として、トリガタイミングを境にしてその前後の状況を記録したデータファイルを完全独立に管理することが可能となる。  In addition, there are many cases where each of a series of data that arrives continuously is divided into frames. In such frame format data, control data necessary for data reproduction is added to the end or the beginning of the frame, so the data belonging to one frame is divided into two at the timing of the arrival of the trigger signal. If they are separate files, it is essential to combine both files for playback. Data files sampled and held by this type of sample-and-hold method can be provided to insurance companies as evidence in the event of a traffic accident, so the files before and after the accident can be handled completely separately. Is required. In such a case, in the first step, in the operation of writing a series of incoming data in the first storage area while cyclically moving the address, the frame being written ends when the trigger signal arrives. In the second step, the operation of writing a series of data that has arrived after the arrival of the trigger signal in the second storage area in the second step is performed after the frame being written is terminated when the trigger signal arrives. May be started. According to such a configuration, since the two separated files are separated at a frame break, there is no need to combine both files at the time of data reproduction. As a result, the situation before and after the trigger timing is the boundary. Can be managed completely independently.

本発明のサンプルホールド装置は、連続的に到来する一連のデータの中で、所定のトリガ信号の到来タイミングの前後それぞれ所定区間内に存在する一連のデータのみをサンプルホールドするための装置である。この装置は、一次記憶媒体と、前記一次記憶媒体に前記トリガ信号の到来タイミングの前側区間に対応する第1の記憶領域と前記トリガ信号の到来タイミングの後側区間に対応する第2の記憶領域とを定義するための領域定義データを記憶するための領域定義データ記憶手段と、到来する一連のデータを前記領域定義データにより定義される前記第1の記憶領域にアドレスを循環歩進させながら書き込む動作を前記トリガ信号が到来するまで継続する第1の書き込み制御手段と、前記トリガ信号が到来するのを待って、前記第1の記憶領域へのデータ書き込みを停止する代わりに、前記トリガ信号の到来以降に到来した一連のデータを前記領域定義データにより定義される前記第2の記憶領域へと書き込む第2の書き込み制御手段と、を具備して構成される。  The sample hold device of the present invention is a device for sample-holding only a series of data existing within a predetermined section before and after the arrival timing of a predetermined trigger signal, among a series of data arriving continuously. The apparatus includes a primary storage medium, a first storage area corresponding to a preceding section of the arrival timing of the trigger signal in the primary storage medium, and a second storage area corresponding to a rear section of the arrival timing of the trigger signal. The area definition data storage means for storing the area definition data for defining the data and the incoming series of data are written in the first storage area defined by the area definition data while the address is cyclically incremented. Instead of stopping the writing of data to the first storage area after waiting for the trigger signal to arrive, the first write control means for continuing the operation until the trigger signal arrives. Second write control means for writing a series of data that has arrived since the arrival into the second storage area defined by the area definition data; Composed of Te.

このような構成によれば、トリガ信号の到来以前に到来した一連のデータは一次記録媒体の第1の記憶領域に保存され、トリガ信号の到来以降に到来した一連のデータは一次記録媒体の第2の記憶領域に保存される。したがって、この方法によれば、必要とされる記憶媒体の記憶容量を必要最小限に留め、かつトリガ信号の到来タイミング前の所定区間に含まれる一連のデータとトリガ信号の到来タイミング後の所定区間に含まれる一連のデータとを明確に分離してそれぞれを独立して管理できる。  According to such a configuration, a series of data that has arrived before the arrival of the trigger signal is stored in the first storage area of the primary recording medium, and a series of data that has arrived after the arrival of the trigger signal is stored in the first storage area of the primary recording medium. Is stored in the second storage area. Therefore, according to this method, the required storage capacity of the storage medium is kept to the minimum necessary, and the series of data included in the predetermined section before the arrival timing of the trigger signal and the predetermined section after the arrival timing of the trigger signal Can be managed independently by separating them clearly from the series of data contained in the.

このとき、前記一次記憶媒体がオプトメモリ等の高速記憶に適する不揮発性記憶媒体、又は電源バックアップされたDRAM等の揮発性記憶媒体であれば、トリガ信号の到来と共に電源が断たれるような自体が発生したとしても、トリガ信号の到来タイミングの前後それぞれ所定区間内に存在する一連のデータを確実にサンプルホールドさせることができる。  At this time, if the primary storage medium is a non-volatile storage medium suitable for high-speed storage such as an opto-memory, or a volatile storage medium such as a power-backed DRAM, the power is cut off upon arrival of a trigger signal. Even if this occurs, it is possible to reliably sample and hold a series of data existing in a predetermined section before and after the arrival timing of the trigger signal.

本発明の上記サンプルホールド装置は、二次記憶媒体と、前記一次記憶媒体の第1及び第2の記憶領域に書き込まれたデータを前記二次記憶媒体に転写するデータ転写制御手段とをさらに有するようにしてもよい。  The sample hold device of the present invention further includes a secondary storage medium and data transfer control means for transferring data written in the first and second storage areas of the primary storage medium to the secondary storage medium. You may do it.

このような構成によれば、一次記録媒体の第1の記憶領域に保存されたトリガ信号の到来以前に到来した一連のデータ及び一次記録媒体の第2の記憶領域に保存されたトリガ信号の到来以降に到来した一連のデータは、二次記録媒体に転写される。したがって、この方法によれば、必要とされる記憶媒体の記憶容量を必要最小限に留め、かつトリガ信号の到来タイミング前の所定区間に含まれる一連のデータとトリガ信号の到来タイミング後の所定区間に含まれる一連のデータとを明確に分離してそれぞれを独立して安全に管理でき、しかもサンプルホールドされたデータ列は最終的に二次記録媒体に保存されるから、次回のサンプルホールド待機動作に支障を与えることがない。  According to such a configuration, a series of data that arrived before the arrival of the trigger signal stored in the first storage area of the primary recording medium and the arrival of the trigger signal stored in the second storage area of the primary recording medium A series of data that has arrived thereafter is transferred to the secondary recording medium. Therefore, according to this method, the required storage capacity of the storage medium is kept to the minimum necessary, and the series of data included in the predetermined section before the arrival timing of the trigger signal and the predetermined section after the arrival timing of the trigger signal The series of data contained in the data can be clearly separated and each can be managed safely independently, and the sample-and-hold data string is finally stored on the secondary recording medium, so the next sample-and-hold standby operation Will not be disturbed.

このとき、前記一次記憶媒体がDRAM等の高速記憶に適する揮発性記憶媒体であり、かつ前記二次記憶媒体がフラッシュメモリ、ハードディスク等の不揮発性記憶媒体であれば、記憶速度の高速化と保存データの安全性とを共に満足させることができる。  At this time, if the primary storage medium is a volatile storage medium suitable for high-speed storage such as DRAM, and the secondary storage medium is a non-volatile storage medium such as flash memory or hard disk, the storage speed is increased and the storage is performed. Both data security and satisfaction can be satisfied.

本発明の上記サンプルホールド装置にあっては、外部からの入力データに基づいて領域定義データを内部生成する領域定義データ生成手段を有するようにしてもよい。ここで、「領域定義データ」とは、先に述べたように、前記一次記憶媒体に前記前側区間に対応する第1の記憶領域と前記後側区間に対応する第2の記憶領域とを定義するためのデータであり、例えば当該領域の先頭アドレスや末尾アドレス、先頭アドレスからの最大バイト数等のことを意味している。このような構成によれば、外部から入力データを与えることにより、領域定義データを適切に設定することができる。  The sample and hold device of the present invention may have region definition data generating means for internally generating region definition data based on externally input data. Here, as described above, the “area definition data” defines the first storage area corresponding to the front section and the second storage area corresponding to the rear section on the primary storage medium. For example, it means the top address and end address of the area, the maximum number of bytes from the start address, and the like. According to such a configuration, the area definition data can be appropriately set by providing input data from the outside.

このとき、前記外部からの入力データに第1の記憶領域の容量を示すデータと第2の記憶領域の容量を示すデータとの双方を含ませておき、前記領域定義データ生成手段はそれら2つのデータに基づいて領域定義データを生成するようにしてもよい。このような構成によれば、外部から入力データを与えることにより、第1の記憶領域の容量と第2の記憶領域の容量とを個別に任意の大きさに設定することができる。  At this time, both the data indicating the capacity of the first storage area and the data indicating the capacity of the second storage area are included in the input data from the outside, and the area definition data generating means The area definition data may be generated based on the data. According to such a configuration, the capacity of the first storage area and the capacity of the second storage area can be individually set to arbitrary sizes by giving input data from the outside.

また、前記外部からの入力データに第1の記憶領域の容量を示すデータは含ませるものの、第2の記憶領域の容量を示すデータは含ませないでおき、前記領域定義データ生成手段は第1の領域の容量を示すデータのみに基づいて領域定義データを生成するようにしてもよい。このような構成によれば、予め第1の記憶領域の容量と第2記憶領域の容量との間に適当な相関を設けておくことにより、第1の記憶領域の容量のみを示す入力データを与えるだけで、第1の記憶容量と第2の記憶容量とを適切に設定することができる。  Further, although the data indicating the capacity of the first storage area is included in the input data from the outside, the data indicating the capacity of the second storage area is not included. The area definition data may be generated based only on the data indicating the capacity of the area. According to such a configuration, by providing an appropriate correlation between the capacity of the first storage area and the capacity of the second storage area in advance, input data indicating only the capacity of the first storage area can be obtained. It is possible to appropriately set the first storage capacity and the second storage capacity simply by giving.

なお、上述の2つの発明において、第1の記憶領域の記憶容量は第2の記憶領域の記憶容量の整数倍(より好ましくは2倍)とすることが好ましい。このようにすれば、フレーム単位に区分された画像データや音声データ等を対象とする場合、第2の記憶領域の容量を例えばフレームの大きさに対応させておくことにより、第1の記憶領域に保存されたデータと第2の記憶領域に保存されたデータとのデータ列同士の照合処理が容易となる。  In the two inventions described above, the storage capacity of the first storage area is preferably an integral multiple (more preferably twice) of the storage capacity of the second storage area. In this way, when image data, audio data, or the like divided into frame units is targeted, the first storage area can be obtained by making the capacity of the second storage area correspond to the size of the frame, for example. The collation process between the data strings of the data stored in the data storage and the data stored in the second storage area is facilitated.

また、先に、サンプルホールド方法に関連して説明したように、連続的に到来する一連のデータのそれぞれが不定長データである場合に対応するためには、第1及び第2の書き込み制御手段には、相前後して到来する個々の不定長データのデータ長を計測する手段と、計測されたデータ長を含むコントロールデータを、記憶領域に書き込まれるべき不定長データのそれぞれに付加する手段とが含まれていてもよい。  Further, as described above in connection with the sample-and-hold method, the first and second write control means are used in order to cope with the case where each of a series of continuous data is indefinite length data. Includes means for measuring the data length of individual indefinite-length data that arrives before and after, means for adding control data including the measured data length to each of the indefinite-length data to be written in the storage area, and May be included.

さらに、連続的に到来する一連のデータのそれぞれがフレーム単位に区画されたデータである場合に対応するためには、第1の書き込み制御手段において、到来する一連のデータを第1の記憶領域にアドレスを循環歩進させながら書き込む動作は、トリガ信号が到来した時点で書き込み中のフレームが終了するまで継続されるものであり、第2の書き込み制御手段において、トリガ信号の到来以降に到来した一連のデータを第2の記憶領域に書き込む動作は、トリガ信号が到来した時点で書き込み中のフレームが終了したのちに開始されるものであってもよいであろう。  Furthermore, in order to cope with the case where each of a series of data that arrives continuously is data divided in units of frames, the first write control means stores the series of data that arrives in the first storage area. The operation of writing while cyclically incrementing the address is continued until the frame being written is completed when the trigger signal arrives, and the second write control means has a series of operations that have arrived since the arrival of the trigger signal. The operation of writing the data in the second storage area may be started after the frame being written ends when the trigger signal arrives.

別の一面から見た本発明は、上記の方法及び装置を実施するために好適な汎用性の高い半導体集積回路を提供する。この半導体集積回路は、サンプル対象となる一連のデータが入力される第1のポートと、所定のトリガ信号が入力される第2のポートと、所定の一次記憶媒体へと接続される第3のポートと、サンプルホールドされた一連のデータを出力するための第4のポートと、第3のポートに接続された一次記憶媒体に第1の記憶領域と第2の記憶領域とを定義する領域定義データを記憶するための領域定義データ記憶手段と、第1のポートから入力される一連のデータを第3のポートに接続された記憶媒体の第1の記憶領域にアドレスを循環歩進させながら書き込む動作を、第2のポートからトリガ信号が入力されるまで継続する第1の書き込み制御手段と、第2のポートからトリガ信号が入力されるのを待って、記憶媒体の第1の記憶領域へのデータ書き込みを停止する代わりに、トリガ信号の到来以降に到来した一連のデータを記憶媒体の第2の記憶領域へと書き込む第2の書き込み制御手段と、第3のポートに接続された一次記憶媒体の第1の記憶領域及び第2の記憶領域に記憶されたデータを第4のポートへと送り出すための制御を司るデータ読み出し制御手段と、を具備して構成される。  From another aspect, the present invention provides a highly versatile semiconductor integrated circuit suitable for carrying out the above method and apparatus. The semiconductor integrated circuit includes a first port to which a series of data to be sampled is input, a second port to which a predetermined trigger signal is input, and a third port connected to a predetermined primary storage medium. A port, a fourth port for outputting a series of sampled and held data, and an area definition for defining a first storage area and a second storage area in a primary storage medium connected to the third port Area definition data storage means for storing data and a series of data input from the first port are written to the first storage area of the storage medium connected to the third port while the address is cyclically incremented. The first write control means that continues the operation until the trigger signal is input from the second port, and waits for the trigger signal to be input from the second port, to the first storage area of the storage medium Day of A second write control means for writing a series of data that has arrived after the arrival of the trigger signal to the second storage area of the storage medium instead of stopping the writing; and a primary storage medium connected to the third port. Data read control means for controlling the data stored in the first storage area and the second storage area to be sent to the fourth port.

このような構成によれば、一次記憶媒体を第3のポートに接続した状態において、第1のポートにサンプル対象となる一連のデータを、又第2のポートに所定のトリガ信号をそれぞれ与えるだけで、一次記憶媒体には第1及び第2の記憶領域が適切に定義され、さらにトリガ信号の到来と共に、一次記憶媒体の第1の記憶領域にはトリガ信号到来直前一定区間のデータ列が保存され、一次記憶媒体の第2の記憶領域にはトリガ信号到来直後一定区間のデータ列が保存されることとなる。その後、一次記憶媒体に保存されたこれらのデータ列は、第4のポートから外部へと読み出されることとなる。  According to such a configuration, in a state where the primary storage medium is connected to the third port, only a series of data to be sampled is given to the first port, and a predetermined trigger signal is given to the second port. Thus, the first and second storage areas are appropriately defined in the primary storage medium, and when the trigger signal arrives, the first storage area of the primary storage medium stores a data string in a certain interval immediately before the trigger signal arrives. As a result, a data string in a certain interval immediately after the arrival of the trigger signal is stored in the second storage area of the primary storage medium. Thereafter, these data strings stored in the primary storage medium are read out from the fourth port.

このとき、前記一次記憶媒体がオプトメモリ等の高速記憶に適する不揮発性記憶媒体、又は電源バックアップされたDRAM等の揮発性記憶媒体であれば、トリガ信号の到来と共に電源が断たれるような事態(例えば、車両のデータロガーとして使用した場合における車両の衝突事故等)が発生したとしても、トリガ信号の到来タイミングの前後それぞれ所定区間内に存在する一連のデータを確実にサンプルホールドさせることができる。  At this time, if the primary storage medium is a non-volatile storage medium suitable for high-speed storage such as an opto-memory, or a volatile storage medium such as a power-backed DRAM, the power is cut off when the trigger signal arrives. Even if a vehicle collision accident (for example, when used as a data logger for a vehicle) occurs, a series of data existing in a predetermined section before and after the arrival timing of the trigger signal can be reliably sampled and held. .

なお、以上説明した第1乃至第4のポートは必ずしもそれぞれ独立したポートであることを意味するものではなく、1個のポートが2以上のポートの機能を実現するものであってもよい。例えば、物理的に1個のポートがサンプル対象となる一連のデータを入力するための第1のポートと所定のトリガ信号を入力するための第2のポートの機能に兼用されていてもよい。  Note that the first to fourth ports described above do not necessarily mean that they are independent ports, and one port may realize the function of two or more ports. For example, one port may be used as a function of a first port for inputting a series of data to be sampled and a second port for inputting a predetermined trigger signal.

本発明の上記半導体集積回路においては、当該半導体集積回路の内部のみならず、外部接続される記憶媒体並びに外部接続されて動作クロックを当該半導体集積回路に対して供給する発振器に対しても電源を供給する電源制御部を有するようにしてもよい。このような構成によれば、記憶媒体並びにクロック発振器の側では電源を用意する必要がないので、その分だけ設計の容易化が図られる。このとき、前記電源制御部から供給される電源を停電時に所定時間保持するためのスーパーキャパシタを接続するための外部端子を有するようにすれば、これに適当な容量を有するスパーキャパシタを外部接続することで、トリガ信号の到来と共に停電が生じたような場合であっても、動作クロック発振器並びに記憶媒体の機能を正常に維持することにより、サンプルホールド処理動作の確実性を保証することができる。  In the semiconductor integrated circuit of the present invention, power is supplied not only to the inside of the semiconductor integrated circuit but also to an externally connected storage medium and an externally connected oscillator that supplies an operation clock to the semiconductor integrated circuit. You may make it have a power supply control part to supply. According to such a configuration, it is not necessary to prepare a power source on the storage medium and the clock oscillator side, so that the design can be facilitated accordingly. At this time, if an external terminal for connecting a supercapacitor for holding the power supplied from the power supply control unit for a predetermined time in the event of a power failure is provided, a spar capacitor having an appropriate capacity is externally connected thereto. Thus, even if a power failure occurs with the arrival of the trigger signal, the reliability of the sample hold processing operation can be ensured by maintaining the functions of the operation clock oscillator and the storage medium normally.

本発明の上記半導体集積回路においては、制御用データが入力される第5のポートと、前記第5のポートから入力される制御用データに基づいて前記領域定義データを内部生成する領域定義データ生成手段をさらに含むようにしてもよい。このような構成によれば、適当な制御用データを外部から第5のポートに与えることで、様々なサンプリングデータに合わせて適切な記憶領域を容易に設定することができる。  In the semiconductor integrated circuit of the present invention, a fifth port to which control data is input, and region definition data generation for internally generating the region definition data based on the control data input from the fifth port Means may be further included. According to such a configuration, by providing appropriate control data to the fifth port from the outside, it is possible to easily set an appropriate storage area in accordance with various sampling data.

このとき、前記外部からの制御用データに第1の記憶領域の容量を示すデータと第2の記憶領域の容量を示すデータとの双方を含ませておき、前記領域定義データ生成手段はそれら2つのデータに基づいて領域定義データを生成するようにしてもよい。このような構成によれば、外部から制御用データを与えることにより、第1の記憶領域の容量と第2の記憶領域の容量とを個別に任意の大きさに設定することができる。  At this time, both the data indicating the capacity of the first storage area and the data indicating the capacity of the second storage area are included in the control data from the outside, and the area definition data generating means 2 The area definition data may be generated based on one data. According to such a configuration, the capacity of the first storage area and the capacity of the second storage area can be individually set to arbitrary sizes by giving control data from the outside.

また、前記外部からの制御用データに第1の記憶領域の容量を示すデータは含ませるものの、第2の記憶領域の容量を示すデータは含ませないでおき、前記領域定義データ生成手段は第1の領域の容量を示すデータのみに基づいて領域定義データを生成するようにしてもよい。このような構成によれば、予め第1の記憶領域の容量と第2記憶領域の容量との間に適当な相関を設けておくことにより、第1の記憶領域の容量のみを示す制御用データを与えるだけで、第1の記憶容量と第2の記憶容量とを適切に設定することができる。  The external control data includes the data indicating the capacity of the first storage area, but does not include the data indicating the capacity of the second storage area. The area definition data may be generated based only on data indicating the capacity of one area. According to such a configuration, by providing an appropriate correlation between the capacity of the first storage area and the capacity of the second storage area in advance, the control data indicating only the capacity of the first storage area It is possible to appropriately set the first storage capacity and the second storage capacity simply by giving.

別の一面から見た本発明の半導体集積回路は、サンプル対象となる一連のデータが入力される第1のポートと、所定のトリガ信号が入力される第2のポートと、所定の一次記憶媒体へと接続される第3のポートと、所定の二次記憶媒体へと接続される第4のポートと、サンプルホールドされたデータを読み出すための第5のポートと、第3のポートに接続された一次記憶媒体に第1の記憶領域と第2の記憶領域とを定義する領域定義データを記憶するための領域定義データ記憶手段と、第1のポートから入力される一連のデータを第3のポートに接続された一次記憶媒体の第1の記憶領域にアドレスを循環歩進させながら書き込む動作を、第2のポートからトリガ信号が入力されるまで継続する第1の書き込み制御手段と、第2のポートからトリガ信号が入力されるのを待って、一次記憶媒体の第1の記憶領域へのデータ書き込みを停止する代わりに、トリガ信号の到来以降に到来した一連のデータを一次記憶媒体の第2の記憶領域へと書き込む第2の書き込み制御手段と、第3のポートに接続された一次記憶媒体の第1及び第2の記憶領域に書き込まれたデータを第4のポートに接続された二次記憶媒体へと転写するデータ転写制御手段と、第4のポートに接続された二次記憶媒体に記憶されたデータを第5のポートへと送り出すための制御を司るデータ読み出し制御手段と、を具備して構成される。  A semiconductor integrated circuit according to another aspect of the present invention includes a first port to which a series of data to be sampled is input, a second port to which a predetermined trigger signal is input, and a predetermined primary storage medium A third port connected to, a fourth port connected to a predetermined secondary storage medium, a fifth port for reading sampled and held data, and a third port. In addition, an area definition data storage means for storing area definition data defining the first storage area and the second storage area in the primary storage medium, and a series of data input from the first port A first write control means for continuing the write operation while cyclically incrementing the address in the first storage area of the primary storage medium connected to the port until a trigger signal is input from the second port; From the port Instead of waiting for the input of the rigger signal and stopping the writing of data to the first storage area of the primary storage medium, a series of data that has arrived after the arrival of the trigger signal is stored in the second storage of the primary storage medium. Second write control means for writing to the area, and secondary storage medium connected to the fourth port for data written to the first and second storage areas of the primary storage medium connected to the third port Data transfer control means for transferring the data to the fifth port, and data read control means for controlling the data stored in the secondary storage medium connected to the fourth port to the fifth port. Composed.

このような構成によれば、一次記憶媒体を第3のポートに、二次記憶媒体を第4のポートにそれぞれ接続した状態において、第1のポートにサンプル対象となる一連のデータを、又第2のポートに所定のトリガ信号をそれぞれ与えるだけで、一次記憶媒体には第1及び第2の記憶領域が適切に定義され、さらにトリガ信号の到来と共に、一次記憶媒体の第1の記憶領域にはトリガ信号到来直前一定区間のデータ列が、一次記憶媒体の第2の記憶領域にはトリガ信号到来直後一定区間のデータ列がそれぞれ保存されると共に、それらのデータ列はさらに二次記憶媒体へと転写されることとなる。その後、二次記憶媒体に保存されたこれらのデータ列は、第4のポートから外部へと読み出されることとなる。  According to such a configuration, in a state where the primary storage medium is connected to the third port and the secondary storage medium is connected to the fourth port, a series of data to be sampled is stored in the first port. The first and second storage areas are appropriately defined in the primary storage medium only by giving predetermined trigger signals to the two ports, respectively. Further, when the trigger signal arrives, the first storage area of the primary storage medium is provided. Is stored in the second storage area of the primary storage medium, and in the second storage area of the primary storage medium, the data string in the predetermined section immediately after the arrival of the trigger signal is stored, and these data strings are further transferred to the secondary storage medium. Will be transferred. Thereafter, these data strings stored in the secondary storage medium are read out from the fourth port.

このとき、一次記憶媒体がDRAM等の高速記憶に適する揮発性記憶媒体であり、かつ二次記憶媒体がフラッシュメモリ、ハードディスク等の不揮発性記憶媒体であれば、記憶速度の高速化と保存データの安全性とを共に満足させることができる。  At this time, if the primary storage medium is a volatile storage medium suitable for high-speed storage such as DRAM, and the secondary storage medium is a non-volatile storage medium such as flash memory or hard disk, the storage speed is increased and the stored data is saved. Both safety and satisfaction can be satisfied.

本発明の上記半導体集積回路にあっては、当該半導体集積回路の内部のみならず、外部接続される一次及び二次記憶媒体、並びに、外部接続されて動作クロックを当該半導体集積回路に対して供給する発振器に対しても電源を供給する電源制御部を有するようにしてもよい。このような構成によれば、一次及び二次記憶媒体並びにクロック発振器の側では電源を用意する必要がないので、その分だけ設計の容易化が図られる。このとき、前記電源制御部から供給される電源を停電時に所定時間保持するためのスーパーキャパシタを接続するための外部端子を有するようにすれば、これに適当な容量を有するスパーキャパシタを外部接続することで、トリガ信号の到来と共に停電が生じたような場合であっても、動作クロック発振器並びに一次及び二次記憶媒体の機能を正常に維持することにより、サンプルホールド処理動作の確実性を保証することができる。例えば、トリガ信号の到来と共に電源が断たれるような事態(例えば、車両のデータロガーとして使用した場合における車両の衝突事故等)が発生したとしても、トリガ信号の到来タイミングの前後それぞれ所定区間内に存在する一連のデータを確実に一次記憶媒体にサンプルホールドさせ、さらにそれらのデータを二次記録媒体へと転写して待避させることができる。  In the semiconductor integrated circuit according to the present invention, not only the semiconductor integrated circuit but also externally connected primary and secondary storage media, and an externally connected operation clock supplied to the semiconductor integrated circuit. You may make it have a power supply control part which supplies power also to the oscillator to perform. According to such a configuration, since it is not necessary to prepare a power source on the primary and secondary storage media and the clock oscillator side, the design can be facilitated accordingly. At this time, if an external terminal for connecting a supercapacitor for holding the power supplied from the power supply control unit for a predetermined time in the event of a power failure is provided, a spar capacitor having an appropriate capacity is externally connected thereto. Thus, even if a power failure occurs with the arrival of the trigger signal, the function of the operation clock oscillator and the primary and secondary storage media are maintained normally, thereby guaranteeing the certainty of the sample hold processing operation. be able to. For example, even if a situation in which the power is cut off with the arrival of the trigger signal (for example, a vehicle collision accident when used as a data logger for a vehicle) occurs, within a predetermined interval before and after the arrival timing of the trigger signal. Thus, it is possible to reliably sample and hold a series of data existing in the primary storage medium, and to transfer the data to the secondary recording medium and save it.

本発明の上記半導体集積回路においては、制御用データが入力される第6のポートと、前記第6のポートから入力される制御用データに基づいて前記領域定義データを内部生成する領域定義データ生成手段をさらに含むようにしてもよい。このような構成によれば、適当な制御用データを外部から第6のポートに与えることで、様々なサンプリングデータに合わせて適切な記憶領域を容易に設定することができる。  In the semiconductor integrated circuit of the present invention, a sixth port to which control data is input, and region definition data generation for internally generating the region definition data based on the control data input from the sixth port Means may be further included. According to such a configuration, by providing appropriate control data to the sixth port from the outside, it is possible to easily set an appropriate storage area according to various sampling data.

このとき、前記外部からの制御用データに第1の記憶領域の容量を示すデータと第2の記憶領域の容量を示すデータとの双方を含ませておき、前記領域定義データ生成手段はそれら2つのデータに基づいて領域定義データを生成するようにしてもよい。このような構成によれば、外部から制御用データを与えることにより、第1の記憶領域の容量と第2の記憶領域の容量とを個別に任意の大きさに設定することができる。  At this time, both the data indicating the capacity of the first storage area and the data indicating the capacity of the second storage area are included in the control data from the outside, and the area definition data generating means 2 The area definition data may be generated based on one data. According to such a configuration, the capacity of the first storage area and the capacity of the second storage area can be individually set to arbitrary sizes by giving control data from the outside.

また、前記外部からの制御用データに第1の記憶領域の容量を示すデータは含ませるものの、第2の記憶領域の容量を示すデータは含ませないでおき、前記領域定義データ生成手段は第1の領域の容量を示すデータのみに基づいて領域定義データを生成するようにしてもよい。このような構成によれば、予め第1の記憶領域の容量と第2記憶領域の容量との間に適当な相関を設けておくことにより、第1の記憶領域の容量のみを示す制御用データを与えるだけで、第1の記憶容量と第2の記憶容量とを適切に設定することができる。  The external control data includes the data indicating the capacity of the first storage area, but does not include the data indicating the capacity of the second storage area. The area definition data may be generated based only on data indicating the capacity of one area. According to such a configuration, by providing an appropriate correlation between the capacity of the first storage area and the capacity of the second storage area in advance, the control data indicating only the capacity of the first storage area It is possible to appropriately set the first storage capacity and the second storage capacity simply by giving.

なお、上述の2つの発明において、第1の記憶領域の記憶容量は第2の記憶領域の記憶容量の整数倍(より好ましくは2倍)とすることが好ましい。このようにすれば、フレーム単位に区分された画像データや音声データ等を対象とする場合、第2の記憶領域の容量を例えばフレームの大きさに対応させておくことにより、第1の記憶領域に保存されたデータと第2の記憶領域に保存されたデータとのデータ列同士の照合処理が容易となる。  In the two inventions described above, the storage capacity of the first storage area is preferably an integral multiple (more preferably twice) of the storage capacity of the second storage area. In this way, when image data, audio data, or the like divided into frame units is targeted, the first storage area can be obtained by making the capacity of the second storage area correspond to the size of the frame, for example. The collation process between the data strings of the data stored in the data storage and the data stored in the second storage area is facilitated.

また、先に、サンプルホールド方法に関連して説明したように、連続的に到来する一連のデータのそれぞれが不定長データである場合に対応するためには、第1及び第2の書き込み制御手段には、相前後して到来する個々の不定長データのデータ長を計測する手段と、計測されたデータ長を含むコントロールデータを、記憶領域に書き込まれるべき不定長データのそれぞれに付加する手段とが含まれていてもよい。  Further, as described above in connection with the sample-and-hold method, the first and second write control means are used in order to cope with the case where each of a series of continuous data is indefinite length data. Includes means for measuring the data length of individual indefinite-length data that arrives before and after, means for adding control data including the measured data length to each of the indefinite-length data to be written in the storage area, and May be included.

さらに、連続的に到来する一連のデータのそれぞれがフレーム単位に区画されたデータである場合に対応するためには、第1の書き込み制御手段において、到来する一連のデータを第1の記憶領域にアドレスを循環歩進させながら書き込む動作は、トリガ信号が到来した時点で書き込み中のフレームが終了するまで継続されるものであり、第2の書き込み制御手段において、トリガ信号の到来以降に到来した一連のデータを第2の記憶領域に書き込む動作は、トリガ信号が到来した時点で書き込み中のフレームが終了したのちに開始されるものであってもよいであろう。  Furthermore, in order to cope with the case where each of a series of data that arrives continuously is data divided in units of frames, the first write control means stores the series of data that arrives in the first storage area. The operation of writing while cyclically incrementing the address is continued until the frame being written is completed when the trigger signal arrives, and the second write control means has a series of operations that have arrived since the arrival of the trigger signal. The operation of writing the data in the second storage area may be started after the frame being written ends when the trigger signal arrives.

本発明のサンプルホールド方法及び装置によれば、連続的に到来する一連のデータの中で、所定のトリガ信号の到来タイミングの前後それぞれ所定区間内に存在する一連のデータのみを確実にサンプルホールドさせることができる。  According to the sample and hold method and apparatus of the present invention, it is possible to reliably sample and hold only a series of data existing within a predetermined section before and after the arrival timing of a predetermined trigger signal, among a series of continuously arrived data. be able to.

また、本発明のサンプルホールド方法及び装置によれば、必要とされる記憶媒体の記憶容量を必要最小限に留め、かつトリガ信号の到来タイミング前の所定区間に含まれる一連のデータとトリガ信号の到来タイミング後の所定区間に含まれる一連のデータとを明確に分離してそれぞれを独立して管理することができる。  Further, according to the sample and hold method and apparatus of the present invention, the storage capacity of the required storage medium is kept to the minimum necessary, and a series of data and trigger signal included in a predetermined section before the arrival timing of the trigger signal is obtained. A series of data included in a predetermined section after the arrival timing can be clearly separated and managed independently.

さらに、本発明のサンプルホールド用の半導体集積回路によれば、一次記憶媒体及び/又は二次記憶媒体を所定のポートにそれぞれ接続した状態において、第1のポートにサンプル対象となる一連のデータを、又第2のポートに所定のトリガ信号をそれぞれ与えるだけで、一次記憶媒体には第1及び第2の記憶領域が適切に定義され、さらにトリガ信号の到来と共に、一次記憶媒体の第1の記憶領域にはトリガ信号到来直前一定区間のデータ列が、一次記憶媒体の第2の記憶領域にはトリガ信号到来直後一定区間のデータ列がそれぞれ保存されると共に、それらのデータ列は必要によりさらに二次記憶媒体へと転写されたのち、一次記憶媒体又は二次記憶媒体に保存されたこれらのデータ列は、所定のポートから外部へと読み出し可能となる。  Furthermore, according to the semiconductor integrated circuit for sample and hold of the present invention, in a state where the primary storage medium and / or the secondary storage medium are respectively connected to the predetermined ports, a series of data to be sampled is stored in the first port. In addition, the first and second storage areas are appropriately defined in the primary storage medium only by giving a predetermined trigger signal to the second port, respectively. A data string in a certain interval immediately before the arrival of the trigger signal is stored in the storage area, and a data string in a certain interval immediately after the arrival of the trigger signal is stored in the second storage area of the primary storage medium, respectively. After being transferred to the secondary storage medium, these data strings stored in the primary storage medium or the secondary storage medium can be read out from a predetermined port.

以下に、本発明の好適な実施の一形態を添付図面を参照しつつ詳細に説明する。尚、本発明の技術的範囲は以下の実施の形態により限定されるものではなく、特許請求の範囲の記載によってのみ特定されることは言うまでもない。  DESCRIPTION OF EMBODIMENTS Hereinafter, a preferred embodiment of the present invention will be described in detail with reference to the accompanying drawings. Needless to say, the technical scope of the present invention is not limited by the following embodiments, but only by the description of the scope of claims.

本発明に係るサンプルホールド装置の構成図が図1に示されている。同図に示されるように、このサンプルホールド装置は、サンプルホールド用に特別に設計された半導体集積回路1と、一次記憶媒体として機能するDRAM2と、二次記憶媒体として機能するフラッシュメモリ(FLASH)3と、この半導体集積回路1に対して動作用クロックを供給するためのクロック発振器4とを主体として構成されている。  A block diagram of a sample and hold device according to the present invention is shown in FIG. As shown in the figure, this sample and hold device includes a semiconductor integrated circuit 1 specially designed for sample and hold, a DRAM 2 that functions as a primary storage medium, and a flash memory (FLASH) that functions as a secondary storage medium. 3 and a clock oscillator 4 for supplying an operation clock to the semiconductor integrated circuit 1.

半導体集積回路1には複数の外部ポートが設けられている。ポートP11は、サンプル対象となる一連のデータがパラレルに入力されるポートである。図において、符号P−DATA(IN)と記されているのがパラレル入力データである。ポートP12は、サンプル対象となる一連のデータがシリアルに入力されるポートである。図において、S−DATA(IN)と記されているのがパラレル入力データである。このように、この半導体集積回路1にあっては、サンプル対象となる一連のデータを、パラレルデータとシリアルデータとの何れにおいても入力可能となされている。  The semiconductor integrated circuit 1 is provided with a plurality of external ports. The port P11 is a port to which a series of data to be sampled is input in parallel. In the figure, parallel input data is indicated by a symbol P-DATA (IN). The port P12 is a port to which a series of data to be sampled is input serially. In the figure, S-DATA (IN) is parallel input data. Thus, in this semiconductor integrated circuit 1, a series of data to be sampled can be input as both parallel data and serial data.

ポートP2は、所定のトリガ信号が入力されるポートである。図においてTRGと記されているのがトリガ信号である。後に詳細に説明するように、この半導体集積回路1にあっては、ポートP11又はポートP12の何れかから入力された一連のサンプル対象データ列の中で、トリガ信号TRGの到来前後所定期間内に存在するデータ列のみをサンプルホールド可能となされている。  The port P2 is a port to which a predetermined trigger signal is input. In the figure, TRG is a trigger signal. As will be described in detail later, in this semiconductor integrated circuit 1, within a predetermined period before and after arrival of the trigger signal TRG in a series of sample target data strings input from either the port P11 or the port P12. Only existing data strings can be sampled and held.

ポートP3は、一次記憶媒体であるDRAM2を接続するためのポートである。後に詳細に説明するように、サンプルホールド処理が実行される結果、トリガ信号TRGの到来前後一定期間内に存在するデータ列は、まず、この一次記憶媒体であるDRAM2に格納される。尚、このDRAM2に対する電源PW2は半導体集積回路1から供給される。  The port P3 is a port for connecting the DRAM 2 which is a primary storage medium. As will be described in detail later, as a result of executing the sample and hold process, a data string existing within a certain period before and after the arrival of the trigger signal TRG is first stored in the DRAM 2 as the primary storage medium. The power supply PW2 for the DRAM 2 is supplied from the semiconductor integrated circuit 1.

ポートP4は、二次記憶媒体であるフラッシュメモリ(FLASH)3を接続するためのポートである。後に詳細に説明するように、DRAM2に格納されたサンプルホールドデータは、サンプルホールド処理の完了と共に、このフラッシュメモリ(FLASH)3に転写保存される。尚、このフラッシュメモリ(FLASH)3の電源PW3についても半導体集積回路1から供給される。  The port P4 is a port for connecting a flash memory (FLASH) 3 that is a secondary storage medium. As will be described in detail later, the sample hold data stored in the DRAM 2 is transferred and stored in the flash memory (FLASH) 3 upon completion of the sample hold processing. The power supply PW3 of the flash memory (FLASH) 3 is also supplied from the semiconductor integrated circuit 1.

ポートP5は、ホールドデータを外部へと読み出すためのポートである。図において、H−DATA(OUT)と記されているのが読み出されたサンプルホールドデータである。この実施形態にあっては、サンプルホールドデータH−DATA(OUT)はフラッシュメモリ(FLASH)3から読み出され、ポートP5から外部へと出力される。  The port P5 is a port for reading hold data to the outside. In the figure, H-DATA (OUT) is the read sample hold data. In this embodiment, the sample hold data H-DATA (OUT) is read from the flash memory (FLASH) 3 and output from the port P5 to the outside.

ポートP6は、パソコン(PC)から半導体集積回路1に対して制御データ等を送り込むためのポートである。この実施形態にあっては、パソコン(PC)との通信方式としてUSBが利用されているが、通信方式等はこれに限定されるものではない。  The port P6 is a port for sending control data and the like from the personal computer (PC) to the semiconductor integrated circuit 1. In this embodiment, USB is used as a communication method with a personal computer (PC), but the communication method is not limited to this.

ポートP7は、クロック発振器4で生成される動作クロックCLK0を半導体集積回路1に対して供給するためのポートである。すなわち、半導体集積回路1は後に詳細に説明するように、クロック同期型のワイヤドロジック回路で構成されており、その動作に必要とされる動作クロックCLK0がポートP7を介してクロック発振器4から供給される。尚、クロック発振器4に対する電源PW4についても、半導体集積回路1側から供給される。  The port P 7 is a port for supplying the operation clock CLK 0 generated by the clock oscillator 4 to the semiconductor integrated circuit 1. That is, as will be described in detail later, the semiconductor integrated circuit 1 is composed of a clock synchronous wired logic circuit, and an operation clock CLK0 required for the operation is supplied from the clock oscillator 4 via the port P7. Is done. The power supply PW4 for the clock oscillator 4 is also supplied from the semiconductor integrated circuit 1 side.

次に、代表的な外部端子について説明する。外部端子T1は電源VDDを半導体集積回路1に供給するための端子である。外部端子T1から供給された電源VDDは、半導体集積回路1の内部の電源制御部180に供給される。電源制御部180では、こうして得られた電源VDDを基に、電圧安定化並びに電圧調整を行うことによって、4系統の電源PW1〜PW4を出力する。そのうち電源PW1は半導体集積回路1の内部の各回路に供給される。電源PW2は先に説明したようにポートP3に接続されたDRAM2へと供給される。電源PW3は先に説明したようにポートP4に接続されたフラッシュメモリ(FLASH)3へと供給される。電源PW4は先に説明したようにポートP7に接続されたクロック発振器4へと供給される。外部端子T2,T3はスーパーキャパシタ5を外部接続するための端子である。このスーパーキャパシタ5に蓄えられた電荷は、電源制御部180から出力される4系統の電源PW1〜PW4を停電時に所定時間保持するために利用される。この例にあっては、トリガ信号TRGが到来した後、直ちに電源VDDが断たれたとしても、少なくとも、サンプルホールド動作並びに転写動作が完了するまでの間は、電源PW1〜PW4が正常に保持されるように、スーパーキャパシタ5の容量が決定されている。  Next, typical external terminals will be described. The external terminal T1 is a terminal for supplying the power supply VDD to the semiconductor integrated circuit 1. The power supply VDD supplied from the external terminal T1 is supplied to the power supply control unit 180 inside the semiconductor integrated circuit 1. The power supply control unit 180 outputs four systems of power supplies PW1 to PW4 by performing voltage stabilization and voltage adjustment based on the power supply VDD thus obtained. Among them, the power supply PW1 is supplied to each circuit inside the semiconductor integrated circuit 1. The power supply PW2 is supplied to the DRAM 2 connected to the port P3 as described above. The power supply PW3 is supplied to the flash memory (FLASH) 3 connected to the port P4 as described above. The power source PW4 is supplied to the clock oscillator 4 connected to the port P7 as described above. External terminals T2 and T3 are terminals for externally connecting the supercapacitor 5. The electric charge stored in the supercapacitor 5 is used to hold the four power sources PW1 to PW4 output from the power supply control unit 180 for a predetermined time during a power failure. In this example, even if the power supply VDD is cut off immediately after the trigger signal TRG arrives, the power supplies PW1 to PW4 are normally held at least until the sample hold operation and the transfer operation are completed. Thus, the capacity of the supercapacitor 5 is determined.

次に、半導体集積回路1の内部構成を詳細に説明する。この半導体集積回路1の内部には、メモリ制御部110と、制御用CPU120と、ヘッダ付加制御部130と、データビット制御部140と、シリアル/パラレル変換部150と、シリアル/パラレル切替制御部160と、ORゲート170と、電源制御部180(先に説明済)とが含まれる他、先ほど説明した各ポートP12,P11,P2〜P7に対応して、インタフェース回路101〜105が含まれている。  Next, the internal configuration of the semiconductor integrated circuit 1 will be described in detail. The semiconductor integrated circuit 1 includes a memory control unit 110, a control CPU 120, a header addition control unit 130, a data bit control unit 140, a serial / parallel conversion unit 150, and a serial / parallel switching control unit 160. In addition, the OR gate 170 and the power supply control unit 180 (described above) are included, and the interface circuits 101 to 105 are included corresponding to the ports P12, P11, P2 to P7 described above. .

メモリ制御部110は、ポートP11からのパラレル入力データP−DATA(IN)又はポートP12からのシリアル入力データS−DATA(IN)をDRAM2の第1及び第2の記憶領域(詳細は後述)へとDMA転送するための制御機能、DRAM2の第1及び第2の記憶領域に格納されたデータをフラッシュメモリ(FLASH)3の所定領域にDMA転送(転写)するための制御機能、フラッシュメモリ(FLASH)3の所定領域に格納されたデータをポートP5から外部へと読み出すための制御機能等を実現するクロック同期型のワイヤドロジック回路で構成されている。このメモリ制御部110内には、DMAコントローラ(DMAC)110aとフラッシュメモリ(FALSH)110bとが内蔵されている。DMAコントローラ(DMAC)110aは上述の各種のデータ転送機能に利用される。フラッシュメモリ110bには、DRAM2内の第1及び第2の記憶領域を定義するための領域定義データや、フラッシュメモリ(FLASH)3内の記憶領域を定義するための領域定義データ等が格納される。これらの記憶領域定義データは、後に詳細に説明するように、制御用CPU120を介して、外部のパソコン(PC)から書き換え可能となされている。これにより、この半導体集積回路1は、任意のデータ列並びにサンプルホールド仕様に対応が可能な汎用性が付与されている。尚、メモリ制御部110の機能については、後に図5及び図6のフローチャートを参照してより詳細に説明する。  The memory control unit 110 transfers the parallel input data P-DATA (IN) from the port P11 or the serial input data S-DATA (IN) from the port P12 to the first and second storage areas of the DRAM 2 (details will be described later). A control function for DMA transfer, a control function for DMA transfer (transfer) of data stored in the first and second storage areas of the DRAM 2 to a predetermined area of the flash memory (FLASH) 3, a flash memory (FLASH) ) It is composed of a clock-synchronized wired logic circuit that realizes a control function for reading data stored in the predetermined area 3 from the port P5 to the outside. The memory controller 110 includes a DMA controller (DMAC) 110a and a flash memory (FALSH) 110b. The DMA controller (DMAC) 110a is used for the various data transfer functions described above. The flash memory 110b stores area definition data for defining first and second storage areas in the DRAM 2, area definition data for defining storage areas in the flash memory (FLASH) 3, and the like. . These storage area definition data can be rewritten from an external personal computer (PC) via the control CPU 120, as will be described in detail later. As a result, the semiconductor integrated circuit 1 is provided with versatility capable of supporting an arbitrary data string and sample hold specification. The function of the memory control unit 110 will be described in detail later with reference to the flowcharts of FIGS. 5 and 6.

制御用CPU120はマイクロプロセッサを主体として構成されており、(1)ポートP6に接続されたパソコン(PC)との間でUSBインタフェース105を介して通信を行いつつ、ユーザからの入力データに基づいて各種の設定処理を実行する機能、(2)メモリ制御部110,ヘッダ付加制御部130,データビット制御部140を統括管理することによって、各種のシステムサポート処理を実行する機能等を司るものである。この制御用CPU120の内部にはフラッシュメモリ(FLASH)120aが内蔵されている。このフラッシュメモリ(FLASH)120aには、パソコン(PC)を介してユーザから取り込まれた各種のデータが格納される。尚、この制御用CPU120の機能については、後に図2及び図3のフローチャートを参照して詳細に説明する。  The control CPU 120 is mainly composed of a microprocessor, and (1) based on input data from a user while communicating with a personal computer (PC) connected to the port P6 via the USB interface 105. Functions for executing various setting processes, (2) Centrally managing the memory control unit 110, the header addition control unit 130, and the data bit control unit 140, thereby controlling various system support processes. . A flash memory (FLASH) 120 a is built in the control CPU 120. The flash memory (FLASH) 120a stores various types of data captured from a user via a personal computer (PC). The function of the control CPU 120 will be described in detail later with reference to the flowcharts of FIGS.

ヘッダ付加制御部130は、ポートP11から供給されるパラレル入力データP−DATA(IN)又はポートP12から供給されるシリアル入力データS−DATA(IN)の各データに対してヘッダ情報を付加するためのワイヤドロジック回路で構成されている(図4(b)参照)。なお、図において、403はデータ部分、404はヘッダ部分である。ここで付加されるヘッダ情報には、到来する一連のデータの順番を示す数値情報が少なくとも含まれている。この数値情報は、所定の最小値と最大値との間で循環して付加されるようになっており、後にサンプルホールドデータを読み出して整頓する処理は、このデータ順番を示す数値情報に基づいて行われる。  The header addition control unit 130 adds header information to each data of the parallel input data P-DATA (IN) supplied from the port P11 or the serial input data S-DATA (IN) supplied from the port P12. (See FIG. 4B). In the figure, 403 is a data portion and 404 is a header portion. The header information added here includes at least numerical information indicating the order of a series of incoming data. The numerical information is cyclically added between a predetermined minimum value and a maximum value, and the process of later reading and organizing the sample hold data is based on the numerical information indicating the data order. Done.

データビット制御部140は、制御用CPU120の管理下にあって、ヘッダ付加制御部130,シリアル/パラレル変換部150,パラレルインタフェース101,シリアルインタフェース102に対するデータビット制御を実現する。これらのデータビット制御が実現されることによって、ヘッダ付加制御部130においてはヘッダ情報の付加が指定されたビットに対して行われ、シリアル/パレレル変換部150においてはデータビット列についてシリアル/パラレル変換が適切に行われ、インタフェース101,102においては入力データビットの認識が適切に行われる。  The data bit control unit 140 is under the control of the control CPU 120 and realizes data bit control for the header addition control unit 130, the serial / parallel conversion unit 150, the parallel interface 101, and the serial interface 102. By realizing these data bit controls, the header addition control unit 130 performs addition of header information on the designated bit, and the serial / parallel conversion unit 150 performs serial / parallel conversion on the data bit string. Appropriately, the interface 101, 102 properly recognizes the input data bits.

シリアル/パラレル変換部150は、ポートP12に供給され且つシリアルインタフェース102を介して取り込まれたシリアル入力データS−DATA(IN)をパラレルデータに変換する回路であり、こうして得られたパラレルデータはORゲート170を介して先ほど説明したヘッダ付加制御部130へと供給される。  The serial / parallel converter 150 is a circuit for converting serial input data S-DATA (IN) supplied to the port P12 and taken in via the serial interface 102 into parallel data. The parallel data thus obtained is ORed. The data is supplied to the header addition control unit 130 described above via the gate 170.

シリアル/パラレル切替制御部160は、データビット制御部140の制御下にあって、パラレルインタフェース101とシリアルインタフェース102との何れかを択一的に能動化する回路である。このシリアル/パラレル切替制御部160が適切に機能することによって、この半導体集積回路1が取り扱う入力データをシリアル又はパラレルの何れにも設定することが可能となる。  The serial / parallel switching control unit 160 is a circuit that selectively activates either the parallel interface 101 or the serial interface 102 under the control of the data bit control unit 140. When the serial / parallel switching control unit 160 functions appropriately, the input data handled by the semiconductor integrated circuit 1 can be set to either serial or parallel.

クロック制御部190は、ポートP7を介してクロック発振器4から供給される動作クロック(CLK0)と、パラレルインタフェース101から取り込まれたクロックCLK(P)と、シリアルインタフェース102から取り込まれたクロックCLK(S)とに基づいて、n系統の制御用クロックCLK1〜nを生成出力する。こうして得られた制御クロックCLK1〜nは、半導体集積回路1内の各回路に必要に応じて供給され、クロック同期型ワイヤドロジック回路の正常な動作に寄与することとなる。このクロック制御部190内にはフェーズロックドループ回路(PLL)190aが内蔵されている。このフェーズロックドループ回路(PLL)190aは各種クロック間の同期を取ったり、あるいは周波数合成作用に寄与するものである。  The clock control unit 190 receives the operation clock (CLK0) supplied from the clock oscillator 4 via the port P7, the clock CLK (P) fetched from the parallel interface 101, and the clock CLK (S) fetched from the serial interface 102. ) And generate and output n control clocks CLK1 to CLKn. Control clocks CLK1 to n obtained in this way are supplied to each circuit in the semiconductor integrated circuit 1 as necessary, and contribute to the normal operation of the clock synchronous wired logic circuit. The clock controller 190 includes a phase locked loop circuit (PLL) 190a. The phase-locked loop circuit (PLL) 190a synchronizes various clocks or contributes to the frequency synthesis operation.

次に、図2及び図3のフローチャートを参照して制御用CPU120の機能についてより詳細に説明する。先に説明したように、制御用CPU120はシステムサポート処理と各種設定処理とを主として実行するように仕組まれている。  Next, the function of the control CPU 120 will be described in more detail with reference to the flowcharts of FIGS. As described above, the control CPU 120 is configured to mainly execute system support processing and various setting processing.

制御用CPUの動作を示すゼネラルフローチャートが図2に示されている。同図において、電源投入(Power on)によって処理が開始されると、USBインタフェース105を介してポートP6に接続されたパソコン(PC)と通信を行い、パソコン(PC)から送られてきた情報を受信し、これをフラッシュメモリ120aに格納する(ステップ201)。この情報の中には、動作モードフラグの制御情報も含まれており、これにより、パソコン(PC)の側から制御用CPU120の動作モードを切替可能となされている。この受信処理(ステップ201)に続いて動作モード判定処理が実行され(ステップ202)、ここで動作モードが設定モードと判定されれば各種設定処理(ステップ203)が実行されるのに対し、運用モードと判定されればシステムサポート処理(ステップ204)が実行される。各種設定処理(ステップ203)においては、サンプル対象データの到来速度、データフォーマット、トリガ前ホールド期間、トリガ後ホールド期間、その他各種のサンプルホールド仕様に応じた設定処理が実行される。後に詳細に説明するように、この各種設定処理(ステップ203)には、第1の記憶領域及び第2の記憶領域に関する領域定義データ生成処理も含まれている。一方、システムサポート処理(ステップ204)では、先に説明したように、メモリ制御部110,ヘッダ付加制御部130,データビット制御部140を統括管理することによって、半導体集積回路1内のシステムをサポートする処理が実行される。  A general flowchart showing the operation of the control CPU is shown in FIG. In the same figure, when processing is started by turning on the power (Power on), it communicates with a personal computer (PC) connected to the port P6 via the USB interface 105, and information sent from the personal computer (PC) is displayed. This is received and stored in the flash memory 120a (step 201). This information also includes control information of the operation mode flag, which allows the operation mode of the control CPU 120 to be switched from the personal computer (PC) side. Subsequent to this reception process (step 201), an operation mode determination process is executed (step 202). If the operation mode is determined to be a setting mode, various setting processes (step 203) are executed. If the mode is determined, system support processing (step 204) is executed. In the various setting processes (step 203), setting processes according to the arrival speed of the sample target data, the data format, the pre-trigger hold period, the post-trigger hold period, and other various sample hold specifications are executed. As will be described in detail later, the various setting processing (step 203) includes region definition data generation processing relating to the first storage region and the second storage region. On the other hand, in the system support process (step 204), as described above, the system in the semiconductor integrated circuit 1 is supported by comprehensively managing the memory control unit 110, the header addition control unit 130, and the data bit control unit 140. Is executed.

各種設定処理(ステップ203)の詳細フローチャートが図3に示されている。このフローチャートは、各種設定処理の中で、記憶領域定義データの生成処理だけを取り出して示すものである。同図において処理が開始されると、パソコン(PC)からの受信データの中から命令語が読み出され、その解読が行われる(ステップ301)。ここで、解読された命令が記憶領域定義命令であると判定された場合に限り(ステップ302YES)、以下の処理が実行されるのに対し、その他の命令であると判定された場合には(ステップ302NO)、それぞれ該当する他の命令の処理が実行される。  A detailed flowchart of the various setting processes (step 203) is shown in FIG. This flowchart shows only the storage area definition data generation process in various setting processes. When the processing is started in the figure, the command word is read out from the received data from the personal computer (PC) and is decoded (step 301). Here, only when it is determined that the decoded instruction is a storage area definition instruction (YES in step 302), the following processing is executed, whereas when it is determined that it is another instruction (step 302). In step 302 NO), the processing of the corresponding other command is executed.

記憶領域定義命令であると判定されると(ステップ302YES)、続いて指定方法の種別が判定される。この実施形態にあっては、トリガタイミングの前後所定区間に存在するデータ列をサンプルホールドするについて、前側及び後側の双方の区間を個別に指定して記憶領域を定義する場合と、前側区間のみについて指定し、後側区間については予め設定されたアルゴリズムに従って、システムが自動的に設定する場合の、2つの指定方法を選択可能となされている。ここで、両側指定と判定されると(ステップ303)、続いて使用データの種別の判定が行われる(ステップ304)。この例にあっては、トリガタイミングの前側区間並びに後側区間のデータ列をサンプルするについて、これを『時間』で指定する場合と『データ数』で指定する場合との選択を可能としている。ここで、使用データの種別が『時間』と判定されると、時間からデータ数への変換処理が行われるのに対し(ステップ305)、使用データ種別が『データ数』と判定されれば、使用データはそのままの状態とされる。続いて、こうして得られた前側データ数に基づいてDRAM2内に第1の記憶領域が定義される(ステップ306)。この第1の記憶領域の定義は、図4(a)に示されるように、第1の記憶領域401の先頭アドレスAD11と末尾アドレスAD12とを算出することにより行われる。続いて、後側データ数に基づいてDRAM2内の第2の記憶領域が定義される。この第2の記憶領域の定義は、図4(a)に示されるように、DRAM2内の第2の記憶領域402の先頭アドレスAD21と末尾アドレスAD22とを求めることにより行われる。以上の処理(ステップ306,307)で得られた記憶領域定義データ(AD11,AD12,AD21,AD22)はメモリ制御部110へと送られ、メモリ制御部110内のフラッシュメモリ110bに保存される。以後、メモリ制御部110では、フラッシュメモリ110b内に格納された記憶領域定義データ(AD11,AD12,AD21,AD22)を適宜参照することにより、データ入力ポートP11,P12からDRAM2へのデータ転送処理、DRAM2からフラッシュメモリ(FLASH)3へのデータ転送処理、フラッシュメモリ(FLASH)3からデータ出力ポートP5へのデータ転送処理を実行することとなる。  If it is determined that the instruction is a storage area definition command (YES in step 302), then the type of designation method is determined. In this embodiment, with respect to sample-holding a data string existing in a predetermined section before and after the trigger timing, both the front and rear sections are individually specified to define a storage area, and only the front section For the rear section, it is possible to select two designation methods when the system automatically sets according to a preset algorithm. If it is determined that both sides are designated (step 303), then the type of use data is determined (step 304). In this example, it is possible to select whether to specify the data sequence of the front interval and the rear interval of the trigger timing by specifying “time” or “data count”. Here, when the type of use data is determined as “time”, conversion processing from time to the number of data is performed (step 305), whereas when the use data type is determined as “number of data”, The usage data is left as it is. Subsequently, a first storage area is defined in the DRAM 2 based on the number of front data obtained in this way (step 306). The definition of the first storage area is performed by calculating the start address AD11 and the end address AD12 of the first storage area 401, as shown in FIG. Subsequently, a second storage area in the DRAM 2 is defined based on the rear data number. The definition of the second storage area is performed by obtaining the start address AD21 and the end address AD22 of the second storage area 402 in the DRAM 2, as shown in FIG. The storage area definition data (AD11, AD12, AD21, AD22) obtained by the above processing (steps 306, 307) is sent to the memory control unit 110 and stored in the flash memory 110b in the memory control unit 110. Thereafter, the memory controller 110 appropriately refers to the storage area definition data (AD11, AD12, AD21, AD22) stored in the flash memory 110b, thereby transferring data from the data input ports P11, P12 to the DRAM 2, Data transfer processing from the DRAM 2 to the flash memory (FLASH) 3 and data transfer processing from the flash memory (FLASH) 3 to the data output port P5 are executed.

次に、メモリ制御部110の動作について説明する。メモリ制御部の動作を示すゼネラルフローチャートが図5に示されている。同図において、処理が開始されると、制御用CPU120からサンプルホールド指示が与えられたか(ステップ501)、読出指示が与えられたか(ステップ502)の判定が行われ、サンプルホールド指示が与えられた場合には(ステップ501YES)、サンプルホールド処理(ステップ503)が実行されるのに対し、読出指示が与えられた場合には(ステップ502YES)、ホールドデータ読出処理(ステップ504)が実行される。このホールドデータ読出処理(ステップ504)では、フラッシュメモリ3に格納されたホールドデータH−DATA(OUT)は、データ出力ポートP5へと転送される。  Next, the operation of the memory control unit 110 will be described. A general flowchart showing the operation of the memory control unit is shown in FIG. In the figure, when the process is started, it is determined whether a sample hold instruction is given from the control CPU 120 (step 501) or a read instruction is given (step 502), and a sample hold instruction is given. In this case (step 501 YES), sample hold processing (step 503) is executed, whereas when a read instruction is given (step 502 YES), hold data read processing (step 504) is executed. In the hold data reading process (step 504), the hold data H-DATA (OUT) stored in the flash memory 3 is transferred to the data output port P5.

サンプルホールド処理の詳細フローチャートが図6に示されている。同図において処理が開始されると、まずフォーマッティング処理が実行されて、DRAM2及びフラッシュメモリ(FLASH)3に対するフォーマッティングが行われる(ステップ601)。  A detailed flowchart of the sample and hold process is shown in FIG. When the process is started in the figure, a formatting process is first executed to format the DRAM 2 and the flash memory (FLASH) 3 (step 601).

続いて、DMAコントローラ(DMAC)110aに対して、第1の記憶領域の先頭アドレスAD11及び末尾アドレスAD12をセットした後、当該DMAコントローラ(DMAC)110aを起動することによって(ステップ603)、ヘッダ付加制御部130から取り込まれるデータ列をDRAM2内の第1の記憶領域401へとDMA転送する処理が開始される。このとき、S/P切替制御部160の作用によって、パラレルポートP11が選択されていれば、パラレル入力データP−DATA(IN)がDRAM2内の第1の記憶領域401へと転送される。逆に、シリアル入力ポートP12が選択されていれば、シリアル入力データS−DATA(IN)がDRAM2内の第1の記憶領域401へと転送される。このようにして、パラレル入力ポートP11又はシリアル入力ポートP12から到来する一連のデータ列は、図4(a)に示される第1の記憶領域401の先頭アドレスAD11から末尾アドレスAD12へ向けて順次書き込まれていく。一方、DMA転送処理の実行中、トリガ信号TRGの到来(ステップ604)及び転送アドレスADと末尾アドレスAD12との一致(ステップ605)の確認が常時行われており、転送アドレスADが第1記憶領域401の末尾アドレスAD12と一致するたびに(ステップ605YES)、DMAコントローラ(DMAC)110aの再起動が実行される(ステップ603)。その結果、第1の記憶領域401に対して、先頭アドレスAD11から末尾アドレスAD12までのデータ書き込みが一巡すると、再び書込アドレスは先頭アドレスAD11へ戻って第1の記憶領域401に対する上書き処理が繰り返し実行されることとなる。すなわち、データ入力ポートP11又はP12から到来するデータ列は、メモリ制御部110の作用によって、DRAM2内に定義された第1の記憶領域401に対して、書込アドレスADを循環歩進させつつ、書き込まれていき、いわゆるFIFO(First In First Out)処理がなされることとなる。  Subsequently, after setting the first address AD11 and the end address AD12 of the first storage area to the DMA controller (DMAC) 110a, the DMA controller (DMAC) 110a is started (step 603), and a header is added. Processing for DMA transfer of the data string fetched from the control unit 130 to the first storage area 401 in the DRAM 2 is started. At this time, if the parallel port P11 is selected by the operation of the S / P switching control unit 160, the parallel input data P-DATA (IN) is transferred to the first storage area 401 in the DRAM 2. Conversely, if the serial input port P12 is selected, the serial input data S-DATA (IN) is transferred to the first storage area 401 in the DRAM 2. In this way, a series of data strings coming from the parallel input port P11 or the serial input port P12 is sequentially written from the start address AD11 to the end address AD12 of the first storage area 401 shown in FIG. It will be. On the other hand, during the execution of the DMA transfer process, the arrival of the trigger signal TRG (step 604) and the confirmation of the coincidence between the transfer address AD and the end address AD12 (step 605) are always performed, and the transfer address AD is stored in the first storage area. Whenever it matches the tail address AD12 of 401 (YES in step 605), the DMA controller (DMAC) 110a is restarted (step 603). As a result, when data writing from the start address AD11 to the end address AD12 is completed in the first storage area 401, the write address returns to the start address AD11 again, and the overwrite process on the first storage area 401 is repeated. Will be executed. That is, the data string coming from the data input port P11 or P12 is cyclically incremented by the write address AD with respect to the first storage area 401 defined in the DRAM 2 by the action of the memory control unit 110. As the data is written, so-called FIFO (First In First Out) processing is performed.

この状態において、ポートP2に対してトリガ信号TRGが到来して、トリガ到来が確認されると(ステップ604YES),DMAコントローラ(DMAC)110aに第2の記憶領域402の先頭アドレスAD21及び末尾アドレスAD22をセットした後(ステップ606)、当該DMAコントローラ(DMAC)110aに対して起動をかけることによって(ステップ607)、第2の記憶領域402に対するDMA転送処理が開始される。これにより、データ入力ポートP11又はP12へと供給されるデータ列は、ヘッダ付加制御部130を経由した後、DRAM2内の第2の記憶領域402へと転送記憶される。以後、転送先アドレスADが第2の記憶領域402の末尾アドレスAD22と一致すると(ステップ608YES)、DRAM2内の第2の記憶領域402への転送処理は終了する。  In this state, when the trigger signal TRG comes to the port P2 and the arrival of the trigger is confirmed (step 604 YES), the start address AD21 and the end address AD22 of the second storage area 402 are sent to the DMA controller (DMAC) 110a. Is set (step 606), the DMA controller (DMAC) 110a is activated (step 607), and the DMA transfer processing for the second storage area 402 is started. Thus, the data string supplied to the data input port P11 or P12 is transferred and stored in the second storage area 402 in the DRAM 2 after passing through the header addition control unit 130. Thereafter, when the transfer destination address AD coincides with the end address AD22 of the second storage area 402 (YES in Step 608), the transfer process to the second storage area 402 in the DRAM 2 ends.

こうして、第1の記憶領域401には、トリガ信号TRGの到来前所定区間の一連のデータが格納されるのに対し、第2の記憶領域402には、トリガ信号TRGの到来後所定区間内のデータが格納されることとなる。  Thus, the first storage area 401 stores a series of data in a predetermined section before the arrival of the trigger signal TRG, whereas the second storage area 402 stores in the predetermined section after the arrival of the trigger signal TRG. Data will be stored.

続いて、DRAM2内の第1の記憶領域401及び第2の記憶領域402に格納されたトリガ到来前後所定区間の一連のデータは、フラッシュメモリ(FLASH)3内の所定エリアへと転送(転写)されて、待避保存される。以後、電源が断たれたとしても、フラッシュメモリ(FLASH)3内の一連のデータは確実に保存される。  Subsequently, a series of data in a predetermined section before and after the trigger arrival stored in the first storage area 401 and the second storage area 402 in the DRAM 2 is transferred (transferred) to a predetermined area in the flash memory (FLASH) 3. And saved. Thereafter, even if the power is turned off, a series of data in the flash memory (FLASH) 3 is surely stored.

その後、図5に戻って、パソコン(PC)等から読出指示が与えられれば(ステップ502YES)、ホールドデータ読出処理(ステップ504)が実行されて、フラッシュメモリ3内の所定のエリアに格納されたホールドデータH−DATA(OUT)は、出力ポートP5から外部へと読み出される。このとき、フラッシュメモリ3のデータをヘッダ情報(ヘッダ部分403)に基づいて到来順に並べ替えたのち、ホールドデータH−DATA(OUT)として出力ポート5から外部へと読み出されるようにすれば、その後のホールドデータの並べ替えの手間が省かれ、ホールドデータの取り扱いが容易となる。  Thereafter, returning to FIG. 5, if a read instruction is given from a personal computer (PC) or the like (YES in step 502), hold data read processing (step 504) is executed and stored in a predetermined area in the flash memory 3. The hold data H-DATA (OUT) is read out from the output port P5. At this time, if the data in the flash memory 3 is rearranged in the order of arrival based on the header information (header part 403) and then read out from the output port 5 as hold data H-DATA (OUT), then This eliminates the trouble of rearranging the hold data, and makes it easier to handle the hold data.

また、この実施形態においては、外部端子T2,T3間にはスーパーキャパシタ5が接続されているため、外部端子T1に供給された電源VDDが断たれたとしても、電源制御部から出力される4系統の電源PW1〜PW4は、少なくともトリガ信号が到来した後、第2の記憶領域402へのデータ書込及びDRAM2からフラッシュメモリ(FLASH)3へのデータ転写が完了するまで、正常に保持されるため、このサンプルホールド装置が例えば車両の事故記録装置等として採用されたような場合であっても、事故によりトリガが発生して同時に電源が断たれたとしても、事故時の各種データをトリガの前後所定期間にわたってサンプルホールドし、これをフラッシュメモリ3内へと転送保存して、事故の原因究明に役立たせることが可能となる。  In this embodiment, since the supercapacitor 5 is connected between the external terminals T2 and T3, even if the power supply VDD supplied to the external terminal T1 is cut off, 4 is output from the power supply control unit. The power supplies PW1 to PW4 of the system are normally held until at least after the trigger signal arrives, data writing to the second storage area 402 and data transfer from the DRAM 2 to the flash memory (FLASH) 3 are completed. Therefore, even if this sample hold device is used as a vehicle accident recording device, for example, even if a trigger occurs due to an accident and the power is cut off at the same time, various data at the time of the accident Sample and hold for a predetermined period before and after, and transfer and store this in the flash memory 3 to help investigate the cause of the accident The ability.

図7には本発明の作用説明図が示されている。いま仮に、同図(a)に示されるように、任意のアナログデータが時系列的に到来しているものと想定する。このとき同図(b)に示されるように、例えば入力データの値が所定の閾値THを越えたことによりトリガ信号が生成されると、同図(c)に示されるように、トリガ信号の到来直前T1秒及びトリガ直後T2秒の区間に存在するデータ列のみが、同図(c)に示されるようにサンプルホールドされる。尚、この例では、T1=2×T2の関係に設定されている。そのため、車両の事故記録装置等として採用すれば、事故と同時にエアバッグ起動信号によりトリガ信号を発生し、サンプルホールド装置を起動させれば、事故前T1秒及び事故後T2秒に関する一連のデータをサンプルホールドしてフラッシュメモリ(FLASH)3に保存できるため、同装置を比較的堅牢なケースに収容しておけば、事故後にフラッシュメモリ(FLASH)3の保存データを読み出すことによって、事故原因の究明に役立たせることができる。  FIG. 7 is a diagram for explaining the operation of the present invention. Assume that arbitrary analog data arrives in time series as shown in FIG. At this time, as shown in FIG. 5B, for example, when the trigger signal is generated when the value of the input data exceeds a predetermined threshold value TH, as shown in FIG. Only the data string existing in the section of T1 seconds immediately before arrival and T2 seconds immediately after the trigger is sampled and held as shown in FIG. In this example, the relationship of T1 = 2 × T2 is set. Therefore, if it is used as a vehicle accident recording device, etc., a trigger signal is generated by an airbag start signal simultaneously with the accident, and if a sample hold device is started, a series of data relating to T1 seconds before the accident and T2 seconds after the accident is obtained. Since the sample and hold can be stored in the flash memory (FLASH) 3, if the device is housed in a relatively robust case, the stored data in the flash memory (FLASH) 3 can be read after the accident to investigate the cause of the accident. Can be useful.

尚、以上の実施形態においては、二次記憶媒体としてフラッシュメモリ(FLASH)3を設けることによって、サンプルホールドデータの保存確実性を担保するようにしたが、例えばスーパーキャパシタ5の容量を増加させ、DRAM2の記憶データを例えば1週間〜1ヶ月程度保持可能とすれば、必ずしも二次記憶媒体を設ける必要はない。その場合には、図6に示されるサンプルホールド処理の詳細フローチャートにおいて、DRAM2からフラッシュメモリ(FLASH)3に対する転写処理(ステップ609)を省略することができる。  In the above embodiment, the flash memory (FLASH) 3 is provided as the secondary storage medium to ensure the storage reliability of the sample hold data. For example, the capacity of the supercapacitor 5 is increased, If the storage data of the DRAM 2 can be held, for example, for one week to one month, it is not always necessary to provide a secondary storage medium. In that case, the transfer process (step 609) from the DRAM 2 to the flash memory (FLASH) 3 can be omitted in the detailed flowchart of the sample hold process shown in FIG.

以上説明したように、この実施形態によれば、ポートP11又はP12にサンプル対象となるデータ列を、ポートP2にトリガ信号を、ポートP3にDRAM2を、ポートP4にフラッシュメモリ(FLASH)3を、ポートP7にクロック発振器4をそれぞれ接続しておくだけで、トリガ信号TRGの到来と共に、その前後所定区間内に存在する一連のデータ列のみをDRAM2内の第1の記憶領域401及び第2の記憶領域402へとサンプルホールドすると共に、その内容を直ちにフラッシュメモリ(FLASH)3へと待避させることができる。然る後、パソコン(PC)から読出指令を与えれば、フラッシュメモリ(FLASH)3に格納されたサンプルホールドデータは、メモリ制御部110の作用によってポートP5へと読み出すことができる。このとき読み出される各データには、ヘッダ付加制御部130の作用によってヘッダ情報が含まれると共に、そのヘッダ情報の中にはデータの順番を示す数値が付加されているため、この数値に基づいて読み出されたサンプルホールドデータを時系列的に容易に並べ替えることができる。  As described above, according to this embodiment, the data string to be sampled is port P11 or P12, the trigger signal is port P2, the DRAM 2 is port P3, the flash memory (FLASH) 3 is port P4, Only by connecting the clock oscillator 4 to the port P7, the first storage area 401 and the second storage in the DRAM 2 are transferred only to a series of data strings existing in a predetermined section before and after the arrival of the trigger signal TRG. It is possible to sample and hold the area 402 and immediately save the contents to the flash memory (FLASH) 3. Thereafter, if a read command is given from the personal computer (PC), the sample hold data stored in the flash memory (FLASH) 3 can be read out to the port P5 by the action of the memory control unit 110. Each piece of data read at this time includes header information by the action of the header addition control unit 130, and a numerical value indicating the order of the data is added to the header information. The output sample hold data can be easily rearranged in time series.

また、DRAM2、フラッシュメモリ(FLASH)3及びクロック発振器4は何れも半導体集積回路1内の電源制御部180から給電されると共に、電源制御部180には電源PW1〜PW4を停電後一定時間保持するためのスーパーキャパシタ5が接続されているため、このサンプルホールド装置を例えば車両の事故記録装置等に応用した場合にあっても、仮に事故によりトリガ信号を発生させてサンプルホールド処理を起動した後、電源VDDが断たれるような事態が発生しても、DRAM2、フラッシュメモリ(FLASH)3及びクロック発振器4の各動作は何れも正常に維持されるため、予定されたサンプルホールド動作を確実に実行させることができる。  The DRAM 2, the flash memory (FLASH) 3, and the clock oscillator 4 are all supplied with power from the power control unit 180 in the semiconductor integrated circuit 1, and the power control unit 180 holds the power sources PW1 to PW4 for a certain time after a power failure. Therefore, even when this sample and hold device is applied to, for example, a vehicle accident recording device, the trigger signal is generated by an accident and the sample and hold process is started. Even if the power supply VDD is interrupted, the operations of the DRAM 2, the flash memory (FLASH) 3, and the clock oscillator 4 are all maintained normally. Can be made.

しかも、半導体集積回路1内にはマイクロプロセッサを含む制御CPU120を内蔵して、パソコン(PC)との通信を可能としているため、入力ポート(P11,P12)の切替、データビット数の設定、記憶領域の設定等の各種の設定を、パソコン(PC)からの入力データに基づいて、容易に行うことができ、極めて汎用性の高い半導体集積回路を実現することができる。  Moreover, since the control CPU 120 including a microprocessor is built in the semiconductor integrated circuit 1 to enable communication with a personal computer (PC), switching of the input ports (P11, P12), setting of the number of data bits, and storage are performed. Various settings such as area setting can be easily performed based on input data from a personal computer (PC), and a highly versatile semiconductor integrated circuit can be realized.

殊に、この実施形態にあっては、図3に示されるように、制御用データが入力されるポートP6と、ポートP6から入力される制御用データに基づいて領域定義データを内部生成する領域定義データ生成手段としての制御用CPU120を有することから、適当な制御用データを外部から第6のポートに与えることで、様々なサンプリングデータに合わせて適切な記憶領域を容易に設定することができる。  In particular, in this embodiment, as shown in FIG. 3, a port P6 to which control data is input and a region in which region definition data is internally generated based on the control data input from the port P6. Since the control CPU 120 as the definition data generation means is provided, an appropriate storage area can be easily set in accordance with various sampling data by providing appropriate control data to the sixth port from the outside. .

すなわち、外部からの制御用データに第1の記憶領域の容量を示すデータと第2の記憶領域の容量を示すデータとの双方を含ませておき、前記領域定義データ生成手段はそれら2つのデータに基づいて領域定義データを生成するようにすれば(ステップ303「両側」)、外部から制御用データを与えることにより、第1の記憶領域の容量と第2の記憶領域の容量とを個別に任意の大きさに設定することができる。一方、外部からの制御用データに第1の記憶領域の容量を示すデータは含ませるものの、第2の記憶領域の容量を示すデータは含ませないでおき、前記領域定義データ生成手段は第1の領域の容量を示すデータのみに基づいて領域定義データを生成するようにすれば(ステップ303「前側」)、予め第1の記憶領域の容量と第2記憶領域の容量との間に適当な相関を設けておくことにより、第1の記憶領域の容量のみを示す制御用データを与えるだけで、第1の記憶容量と第2の記憶容量とを適切に設定することができる。さらに、使用データの種別としても、「時間」と「データ数」とを選択的に使用できるので、分析対象データの種類に応じて適切な使用データを選択させることができる。  That is, both the data indicating the capacity of the first storage area and the data indicating the capacity of the second storage area are included in the control data from the outside, and the area definition data generating means generates the two data. If the area definition data is generated based on (step 303 “both sides”), the capacity of the first storage area and the capacity of the second storage area can be individually set by giving control data from the outside. It can be set to any size. On the other hand, although the data indicating the capacity of the first storage area is included in the control data from the outside, the data indicating the capacity of the second storage area is not included. If the area definition data is generated based only on the data indicating the capacity of the area (step 303 “front side”), an appropriate value is previously set between the capacity of the first storage area and the capacity of the second storage area. By providing the correlation, the first storage capacity and the second storage capacity can be appropriately set only by giving control data indicating only the capacity of the first storage area. Furthermore, since “time” and “number of data” can be selectively used as types of use data, it is possible to select appropriate use data according to the type of analysis target data.

なお、図4において、第1の記憶領域401と第2の記憶領域402との容量関係については、第1の記憶領域401の記憶容量は第2の記憶領域402の記憶容量の整数倍(より好ましくは2倍)とすることが好ましい。このようにすれば、フレーム単位に区分された画像データや音声データ等を対象とする場合、第2の記憶領域の容量を例えばフレームの大きさに対応させておくことにより、第1の記憶領域に保存されたデータと第2の記憶領域に保存されたデータとのデータ列同士の照合処理が容易となる。  4, regarding the capacity relationship between the first storage area 401 and the second storage area 402, the storage capacity of the first storage area 401 is an integral multiple of the storage capacity of the second storage area 402 (from (Preferably twice). In this way, when image data, audio data, or the like divided into frame units is targeted, the first storage area can be obtained by making the capacity of the second storage area correspond to the size of the frame, for example. The collation process between the data strings of the data stored in the data storage and the data stored in the second storage area is facilitated.

次に、本発明に係るサンプルホールド装置の他の実施形態(第2実施形態)を図10〜図16を参照して説明する。本発明に係るサンプルホールド装置(半導体集積回路)の構成図(第2実施形態)が図10に示されている。この実施形態にあっては、サンプルホールド装置として機能は、CPUによってソフトウェア的に実現されている。  Next, another embodiment (second embodiment) of the sample hold device according to the present invention will be described with reference to FIGS. FIG. 10 shows a configuration diagram (second embodiment) of a sample hold device (semiconductor integrated circuit) according to the present invention. In this embodiment, the function as the sample and hold device is realized by software by the CPU.

図10に示されるように、この半導体集積回路1aは、マイクロプロセッサやシステムROM等を内蔵するCPU1001と、RAMで構成されるワーキングメモリ1002と、フラッシュメモリで構成される設定情報メモリ1003と、PC(パソコン)との通信のためにUSBをサポートする通信制御部1004と、シリアルデータを入力するためのデータ入力インタフェース1005と、パラレルデータを入力するためのデータ入力インタフェース1006と、サンプルホールドされたデータ列を外部へ出力させるためのデータ出力インタフェース1007と、外部からのトリガ信号TRGを入力するためのトリガ入力インタフェース1008と、外部のDRAM2との接続を行うための1次メモリインタフェース1009と、外部のFLASHメモリ3との接続を行うための2次メモリインタフェース1010とを有している。なお、1011はCPUバスである。  As shown in FIG. 10, the semiconductor integrated circuit 1a includes a CPU 1001 incorporating a microprocessor, a system ROM, etc., a working memory 1002 constituted by a RAM, a setting information memory 1003 constituted by a flash memory, a PC A communication control unit 1004 that supports USB for communication with a (personal computer), a data input interface 1005 for inputting serial data, a data input interface 1006 for inputting parallel data, and sampled and held data A data output interface 1007 for outputting a column to the outside, a trigger input interface 1008 for inputting an external trigger signal TRG, a primary memory interface 1009 for connecting to an external DRAM 2, an external And a secondary memory interface 1010 for connection with the LASH memory 3. Reference numeral 1011 denotes a CPU bus.

1次メモリであるDRAM2内には、図11(a)に示される一時記憶領域と図11(b)に示されるBEFORE(以下、単に「B」と称する)領域及びAFTER(以下、単に「A」と称する)領域とが設けられている。この例では、B領域対A領域対一時記憶領域の記憶容量の比は、2対1対0.5程度に設定されている。  In the DRAM 2 as the primary memory, a temporary storage area shown in FIG. 11A, a BEFORE (hereinafter simply referred to as “B”) area and an AFTER (hereinafter simply referred to as “A” shown in FIG. 11B). A region) is provided. In this example, the ratio of the storage capacity of the B area to the A area to the temporary storage area is set to about 2 to 1 to 0.5.

後に詳述するように、一時記憶領域には、図11(a)に示されるように、不定長の単位データ1101がその先頭から隙間を空けずに密に格納され、同様にして、B領域1103及びA領域1104には、不定長の単位データ1102がその先頭から隙間を空けずに密に格納されるようになっている。  As will be described in detail later, in the temporary storage area, as shown in FIG. 11 (a), unit data 1101 of indefinite length is densely stored without a gap from the beginning, and similarly, the B area The unit data 1102 of indefinite length is densely stored in the area 1103 and the area A 1104 without leaving a gap from the beginning.

一時記憶領域内の単位データ1101は、図12(a)に示されるように、スタートビット1101aとデータ1101bとエンドアドレス1101cとを順に配列するフォーマットを有する。B領域及びA領域内の単位データ1102は、図12(b)に示されるように、スタートビット1102aとデータ1102bとエンドアドレス1102cとコントロールデータ1102dとを順に配列するフォーマットを有する。コントロールデータ1102dには、当該単位長データのデータ長を示す符号、外部からトリガ信号TRGが入力されたことを示すトリガ符号、当該単位長データの到来順番等が含まれている。これらの符号を頼りとして、データの読み出し乃至再生制御が行われる。  As shown in FIG. 12A, the unit data 1101 in the temporary storage area has a format in which start bits 1101a, data 1101b, and end addresses 1101c are arranged in order. The unit data 1102 in the B area and the A area has a format in which a start bit 1102a, data 1102b, an end address 1102c, and control data 1102d are sequentially arranged as shown in FIG. The control data 1102d includes a code indicating the data length of the unit length data, a trigger code indicating that the trigger signal TRG is input from the outside, the arrival order of the unit length data, and the like. Relying on these codes, data reading or reproduction control is performed.

CPUが実行するサンプルホールド処理のゼネラルフローチャートが図13に示されている。同図において、電源投入(Power on)により処理が開始されると、プログラムロード処理(ステップ1301)及びイニシャライズ処理(ステップ1302)が順に実行され、これにより、設定情報メモリ1003からの制御プログラムの読み出し並びにワーキングメモリ1002上への展開処理、DRAM2並びにFLASHメモリ3のイニシャライズ処理等が行われる。  FIG. 13 shows a general flowchart of sample hold processing executed by the CPU. In the figure, when the process is started by turning on the power (Power on), a program load process (Step 1301) and an initialization process (Step 1302) are executed in sequence, thereby reading the control program from the setting information memory 1003. In addition, development processing on the working memory 1002, initialization processing of the DRAM 2 and the FLASH memory 3, and the like are performed.

続いて、内部トリガを参照しつつ(ステップ1304)、これがオン状態にないことを条件として(ステップ1305NO)、B領域処理(ステップ1303)が繰り返し実行される。この間に内部トリガのオンが確認されると(ステップ1305YES)、続いてA領域処理(ステップ1306)が所定時間だけ実行される。A領域処理(ステップ1306)が終了すると、続いて保存処理(ステップ1307)が実行されて、サンプルホールド処理は完了する。  Subsequently, referring to the internal trigger (step 1304), on condition that this is not in the ON state (step 1305 NO), the B area process (step 1303) is repeatedly executed. If it is confirmed that the internal trigger is turned on during this period (step 1305 YES), the area A process (step 1306) is executed for a predetermined time. When the A area process (step 1306) is completed, the storage process (step 1307) is subsequently executed, and the sample hold process is completed.

B領域処理(ステップ1303)の詳細が図14のフローチャートに示されている。同図において、処理が開始されると、サンプル対象となる入力データが到来するのを待って(ステップ1401,1402YES)、そのデータの種別(MPEG4,TCP/IP,CDMA等)が判定され(ステップ1403)、さらに判定されたデータ種別に応じた装置構成への自動設定処理(ステップ1404)が実行される。  Details of the B area process (step 1303) are shown in the flowchart of FIG. In this figure, when processing is started, the input data to be sampled is awaited (steps 1401, 1402 YES), and the type of the data (MPEG4, TCP / IP, CDMA, etc.) is determined (step). 1403) Further, automatic setting processing (step 1404) for the apparatus configuration corresponding to the determined data type is executed.

続いて、到来する入力データを監視しつつ(ステップ1405)、スタートポイントが到来したならば(ステップ1406YES)、入力データの取込処理(ステップ1407)、一時記憶領域(図11(a)参照)への保存処理(ステップ1408)を繰り返し実行しつつ、データ長の計測(カウント)処理(ステップ1409)を行う。その間に、エンドポイントの到来が確認されたならば(ステップ1410YES)、コントロールデータ(計測されたデータ長を含む)を生成するとともに(ステップ1411)、これを一時記憶領域に保存されたデータに対して付加して(ステップ1412)、B領域へFIFO処理により書き込む(ステップ1403)。以上の処理(ステップ1401〜1413)が、内部トリガがオン状態となるまで(ステップ1305YES)、繰り返し実行されることとなる。  Subsequently, while monitoring incoming input data (step 1405), if the start point has arrived (YES in step 1406), input data capture processing (step 1407), temporary storage area (see FIG. 11A) The data length measurement (count) process (step 1409) is performed while repeatedly executing the storage process (step 1408). In the meantime, if arrival of the endpoint is confirmed (step 1410 YES), control data (including the measured data length) is generated (step 1411), and this is stored in the temporary storage area. Is added (step 1412), and is written into area B by FIFO processing (step 1403). The above processing (steps 1401 to 1413) is repeatedly executed until the internal trigger is turned on (YES in step 1305).

外部トリガによる割込処理の詳細フローチャートが図15に示されている。例えば、上述のB領域処理の実行中に外部トリガ信号TRGがオンすると、割込処理によって入力データの監視が継続され(ステップ1501)、入力データが存在しなければ(ステップ1502NO)、直ちに内部トリガはオン状態とされるのに対して(ステップ1508)、入力データが存在する場合、すなわち1フレームデータの途中で外部トリガがオンした場合には(ステップ1502YES)、入力データの取込処理(ステップ1503)、一時記憶領域への保存処理(ステップ1504)、データ長のカウント(計測)処理(ステップ1505)が再開され、以後、それらの処理(ステップ1503〜1505)はエンドポイントが到来するまでの間(ステップ1506NO)、繰り返し実行される。そして、その間にエンドポイントの到来が確認されると(ステップ1506YES)、先程説明したB領域処理(図14)と同様にして、コントロールデータ生成処理(ステップ1507)、コントロールデータ付加処理(ステップ1508)、B領域へのFIFO処理(ステップ1509)が順に実行されて、そのフレームが終了するまで、到来したデータはすべてB領域へと書き込まれ、しかるのち、内部トリガフラグがオンされて処理は終了する。すなわち、B領域へのフレームデータの書き込み途中で外部トリガがオンした場合には、ただちにA領域へと書き込みを移行することなく、そのフレームが終了するまでB領域へのデータ書き込みを継続するのである。  A detailed flowchart of the interrupt processing by the external trigger is shown in FIG. For example, when the external trigger signal TRG is turned on during execution of the above-described B area processing, monitoring of input data is continued by the interrupt processing (step 1501), and if there is no input data (step 1502 NO), the internal trigger is immediately performed. Is turned on (step 1508), but when input data exists, that is, when an external trigger is turned on in the middle of one frame data (YES in step 1502), input data capture processing (step 1503), the process of saving to the temporary storage area (step 1504), and the data length counting (measurement) process (step 1505) are resumed. Thereafter, these processes (steps 1503 to 1505) are performed until the end point arrives. It is repeatedly executed during the period (NO in step 1506). If arrival of the endpoint is confirmed during that time (step 1506 YES), control data generation processing (step 1507) and control data addition processing (step 1508) are performed in the same manner as the B area processing (FIG. 14) described above. , FIFO processing to the B area (step 1509) is executed in sequence, and all the data that arrives is written into the B area until the frame is completed, and then the internal trigger flag is turned on and the processing ends. . That is, when the external trigger is turned on during the writing of the frame data to the B area, the data writing to the B area is continued until the end of the frame without immediately shifting to the A area. .

一方、このようにして、内部トリガフラグがオンされると、図13へ戻って、それが判定処理(ステップ1305)にて検出され、以後、A領域処理(ステップ1306)が実行されることとなる。  On the other hand, when the internal trigger flag is turned on in this way, the process returns to FIG. 13, which is detected by the determination process (step 1305), and thereafter, the area A process (step 1306) is executed. Become.

A領域処理の詳細フローチャートが図16に示されている。同図において、処理が開始されると、先ず、A領域処理の実行時間を監視するタイマを起動したのち(ステップ1601)、入力データの到来を監視しつつ(ステップ1602)、スタートポイントの到来が確認されるのを待って(ステップ1603YES)、入力データ取込処理(ステップ1604)、一時記憶領域への保存処理(ステップ1605)、データ長カウント(計測)処理(ステップ1606)を繰り返し実行する。その間に、エンドポイントの到来が確認されると(ステップ1607)、コントロールデータの生成処理(ステップ1608)、コントロールデータの付加処理(ステップ1609)、A領域への書込処理(ステップ1610)を順に実行する。以上の処理(ステップ1602〜1610)はタイマがタイムアップするまで繰り返し実行され、タイムがタイムアップすると(ステップ1611YES)、すべての処理は終了する。  A detailed flowchart of the A area processing is shown in FIG. In the figure, when the processing is started, first, a timer for monitoring the execution time of the area A processing is started (step 1601), then the arrival of input data is monitored (step 1602), and the arrival of the start point is detected. Waiting for confirmation (YES in step 1603), input data fetching processing (step 1604), saving processing in a temporary storage area (step 1605), and data length counting (measurement) processing (step 1606) are repeatedly executed. Meanwhile, when the arrival of the endpoint is confirmed (step 1607), the control data generation process (step 1608), the control data addition process (step 1609), and the writing process to the area A (step 1610) are sequentially performed. Execute. The above processes (steps 1602 to 1610) are repeatedly executed until the timer expires. When the time expires (YES in step 1611), all the processes are completed.

この第2実施形態によれば、サンプル対象データが不定長データ(例えば、ビデオカメラから到来するMPEG4データ等)であったとしても、個々のデータのデータ長が計測されて、その計測値がコントロールデータとして個々のデータに付されてメモリに記憶されるため、メモリ内にデータ列を密に詰め込んでも、その読み出し乃至再生に支障を来すこともなく、メモリ容量を有効に活用できる。加えて、1フレームの書込途中で、外部トリガ信号がオンしたとしても、そのとき書込中であったフレームのデータについては、そのフレームの終了に至るまで、書込は継続されるため、BEFORE領域の最後のデータとAFTER領域の最初のデータはいずれも完全な状態で記憶されることとなり、BEFORE領域のデータとAFTER領域のデータとを完全に別ファイルとすることが可能となり、交通事故の原因究明等に利用する場合に、事故前と事故後とのデータ解析の信頼性を保証することが可能となる。  According to the second embodiment, even if sample target data is indefinite length data (for example, MPEG4 data coming from a video camera), the data length of each data is measured and the measured value is controlled. Since the data is attached to each data and stored in the memory, the memory capacity can be effectively utilized without causing any trouble in reading or reproducing the data string even if the data string is densely packed in the memory. In addition, even if the external trigger signal is turned on during the writing of one frame, the writing of the data of the frame being written at that time is continued until the end of the frame. Both the last data in the BEFORE area and the first data in the AFTER area are stored in a complete state, and the data in the BEFORE area and the data in the AFTER area can be made completely separate files. When used for investigating the cause of the accident, it is possible to guarantee the reliability of data analysis before and after the accident.

最後に、本発明に係るサンプルホールドICの具体的ないくつかの適用例について説明する。本発明に係るサンプルホールドICが適用されたデータレコーダの構成図が図8に示されている。同図において、801は例えば、電圧、温度、圧力、流量等の測定対象特徴量を検出するプローブ、802はプローブから得られる信号に基づいて特徴量相当の電気信号を生成する入力回路、803は入力回路から得られるアナログ信号のデジタル化と、このデジタル化された信号のI2Sバスへの送出の機能を果たすAD/I2S変換回路、804は本発明に係るサンプルホールドIC、805は一次記憶媒体として機能するDRAM、806は同様に二次記憶媒体として機能するフラッシュメモリ、807はサンプルホールドIC804からI2Sバス上に送出されたサンプルホールドデータを受け取ってUSBバスへと送出するI2S/USB変換回路、808はサンプルホールドデータを受け取って処理するパーソナルコンピュータ、809は各種の状態信号(例えば、検出対象物周辺の温度、圧力、音量、振動等々を示す信号)S1〜Skが所定の条件を満足するときにトリガ信号TRGを生成するトリガ発生回路である。  Finally, some specific application examples of the sample hold IC according to the present invention will be described. FIG. 8 shows a configuration diagram of a data recorder to which the sample hold IC according to the present invention is applied. In the figure, for example, 801 is a probe that detects a feature quantity to be measured such as voltage, temperature, pressure, and flow rate, 802 is an input circuit that generates an electrical signal corresponding to the feature quantity based on a signal obtained from the probe, and 803 An AD / I2S conversion circuit that performs the function of digitizing an analog signal obtained from the input circuit and sending the digitized signal to the I2S bus, 804 is a sample hold IC according to the present invention, and 805 is a primary storage medium A functioning DRAM, 806 is a flash memory that also functions as a secondary storage medium, 807 is an I2S / USB conversion circuit that receives sample hold data sent from the sample hold IC 804 onto the I2S bus and sends it to the USB bus, 808 Is a personal computer that receives and processes sample and hold data 809 various status signals (e.g., detection target peripheral temperature, pressure, volume, vibration signal indicating the like) S1-Sk are trigger generation circuit which generates a trigger signal TRG at the time that satisfies the predetermined condition.

この適用例によれば、プローブ802で検出された特徴量データは、常時は、DRAM805の第1の記憶領域にアドレスを循環歩進させながら記憶される。状態信号S1〜Skが所定の条件を満たすと、トリガ発生回路809からトリガ信号TRGが生成されて、サンプルホールドICに供給される。すると、到来する一連の特徴量データは、第1の記憶領域ではなくて、第2の記憶領域に書き込まれていく。しかるのち、第1及び第2の記憶領域に格納されたデータ列は、二次記憶媒体であるフラッシュメモリ806に転写される。以後、フラッシュメモリ806内に保存されたデータ列(トリガ信号の到来タイミングの前後所定期間内のデータ列)は読み出されて、パーソナルコンピュータ808へと取り込まれる。このようなデータレコーダを車両に搭載すると共に、適宜なプローブを採用して、車両の速度、アクセル開度、エンジンの状態、ブレーキの状態等々を常時記録しておき、同時に、エアバッグ起動信号等の車両事故と相関の高い信号によりトリガ信号を生成するようにすれば、事故時における貴重なデータを保存することができる。  According to this application example, the feature amount data detected by the probe 802 is always stored in the first storage area of the DRAM 805 while cyclically increasing the address. When the state signals S1 to Sk satisfy a predetermined condition, a trigger signal TRG is generated from the trigger generation circuit 809 and supplied to the sample hold IC. Then, the incoming series of feature data is written not in the first storage area but in the second storage area. After that, the data strings stored in the first and second storage areas are transferred to the flash memory 806, which is a secondary storage medium. Thereafter, the data string stored in the flash memory 806 (data string within a predetermined period before and after the arrival timing of the trigger signal) is read out and taken into the personal computer 808. Such a data recorder is mounted on the vehicle and an appropriate probe is used to constantly record the vehicle speed, accelerator opening, engine state, brake state, etc. If the trigger signal is generated by a signal highly correlated with the vehicle accident, valuable data at the time of the accident can be stored.

次に、本発明に係るサンプルホールドICが適用された監視装置の構成図が図9に示されている。同図において、901は撮影用レンズ及びイメージセンサを含むカメラ、902はカメラからの映像信号を処理する信号処理回路、903は信号処理回路から得られる信号をデータ圧縮する圧縮回路(codec)、904は圧縮回路から得られるデータをI2Sバス上に送出するDATA/I2S変換回路、905は本発明に係るサンプルホールドIC、906は一次記憶媒体として機能するDRAM、907は同様に二次記憶媒体として機能するフラッシュメモリ、908はサンプルホールドICからI2Sバス上に送出されたサンプルホールドデータを受け取ってUSBバスへと送出するI2S/USB変換回路、909はサンプルホールドデータを受け取って処理するパーソナルコンピュータ、910は各種の状態信号(例えば、検出対象物周辺の温度、圧力、音量、振動等々を示す信号)S1〜Skが所定の条件を満足するときにトリガ信号TRGを生成するトリガ発生回路である。この例にあっては、状態信号としては、カメラ901から取得されるフォーカス誤差信号、監視対象領域に置かれて侵入者により操作されるスイッチ911からの信号、カメラに内蔵されてカメラ自体の動きを検出する加速度センサ(図示せず)からの信号、監視対象領域の音を集音するマイク(図示せず)からの信号、カメラからの映像信号それ自体等を挙げることができる。  Next, FIG. 9 shows a configuration diagram of a monitoring apparatus to which the sample hold IC according to the present invention is applied. In the figure, reference numeral 901 denotes a camera including a photographing lens and an image sensor, reference numeral 902 denotes a signal processing circuit for processing a video signal from the camera, reference numeral 903 denotes a compression circuit (codec) for compressing data obtained from the signal processing circuit, and reference numeral 904. Is a DATA / I2S conversion circuit for sending data obtained from the compression circuit onto the I2S bus, 905 is a sample hold IC according to the present invention, 906 is a DRAM functioning as a primary storage medium, and 907 is also functioning as a secondary storage medium A flash memory 908, an I2S / USB conversion circuit that receives sample hold data sent from the sample hold IC onto the I2S bus and sends it to the USB bus, 909 a personal computer that receives and processes the sample hold data, and 910 Various status signals (for example, detection Object near the temperature, pressure, volume, vibration signal indicating the like) S1-Sk are trigger generation circuit which generates a trigger signal TRG at the time that satisfies the predetermined condition. In this example, the status signal includes a focus error signal acquired from the camera 901, a signal from a switch 911 that is placed in the monitoring target area and operated by an intruder, and a movement of the camera itself built in the camera. A signal from an acceleration sensor (not shown) that detects the sound, a signal from a microphone (not shown) that collects sound in the monitoring target area, a video signal itself from the camera, and the like.

この適用例によれば、カメラ901で取得された画像データは、常時は、DRAM906の第1の記憶領域にアドレスを循環歩進させながら記憶される。監視対象領域に侵入者が現れたことにより状態信号S1〜Skが所定の条件を満たすと、トリガ発生回路910からトリガ信号TRGが生成されて、サンプルホールドIC905に供給される。すると、到来する一連の画像データは、第1の記憶領域ではなくて、第2の記憶領域に書き込まれていく。しかるのち、第1及び第2の記憶領域に格納された画像データ列は、二次記憶媒体であるフラッシュメモリ907に転写される。以後、フラッシュメモリ907に保存された画像データ列(トリガ信号の到来タイミングの前後所定期間内の画像データ列)は読み出されて、パーソナルコンピュータ9098へと取り込まれる。このような監視装置を例えば玄関の防犯用監視システムに適用すれば、侵入者が玄関の前に現れたとき、それまでの侵入者の挙動を含む一連の画像を保存することができる。  According to this application example, the image data acquired by the camera 901 is normally stored in the first storage area of the DRAM 906 while the address is cyclically incremented. When the state signals S1 to Sk satisfy a predetermined condition due to the appearance of an intruder in the monitoring target area, a trigger signal TRG is generated from the trigger generation circuit 910 and supplied to the sample hold IC 905. Then, a series of incoming image data is written not in the first storage area but in the second storage area. Thereafter, the image data strings stored in the first and second storage areas are transferred to the flash memory 907 which is a secondary storage medium. Thereafter, the image data sequence stored in the flash memory 907 (the image data sequence within a predetermined period before and after the arrival timing of the trigger signal) is read out and taken into the personal computer 9098. If such a monitoring device is applied to, for example, an entrance crime prevention surveillance system, when an intruder appears in front of the entrance, a series of images including the behavior of the intruder so far can be stored.

以上のように、本発明によれば、例えば、玄関に防犯カメラを取り付けて来訪者を監視するような場合、来訪者の到来を別途設けたセンサや映像そのものの変化等に基づいて検知し、検知後の一定期間分の映像データのみならず、検知前の一定期間分の映像データについても保存することができ、それら保存された両映像データに基づいて映像を再生することによって、来訪者の様子をより詳細に観察することができる。  As described above, according to the present invention, for example, when a security camera is attached to the entrance to monitor a visitor, the arrival of the visitor is detected based on a separately provided sensor or a change in the image itself, Not only video data for a certain period after detection, but also video data for a certain period before detection can be saved, and by reproducing the video based on both of these saved video data, The situation can be observed in more detail.

また、本発明によれば、複数の計測器からの計測データに基づいて対象物の状態を監視しつつ、それら計測データの示す特徴量が予め想定される事象発生時の特徴量と一致したことをトリガとして、トリガ発生後の一定期間分の計測データのみならず、トリガ発生前の一定期間分の計測データについても保存することができ、それら保存された両計測データを、事象発生検知精度の検証や事象発生の予測に有効活用できる。  Further, according to the present invention, while monitoring the state of the object based on measurement data from a plurality of measuring instruments, the feature values indicated by the measurement data coincide with the feature values at the time of occurrence of an event assumed in advance. As a trigger, you can save not only the measurement data for a certain period after the trigger occurs, but also the measurement data for a certain period before the trigger occurs. Effective use for verification and prediction of event occurrence.

さらに、本発明によれば、複数の計測器からの計測データに基づいて車両の状態を監視しつつ、それら計測データの示す特徴量が予め想定される事故発生時の特徴量と一致したことをトリガとして、トリガ発生後の一定期間分の計測データのみならず、トリガ発生前の一定期間分の計測データについても保存することができ、それら保存された両計測データを事故原因の究明に有効活用できる。  Furthermore, according to the present invention, while monitoring the state of the vehicle based on measurement data from a plurality of measuring instruments, it is confirmed that the feature values indicated by the measurement data match the feature values at the time of an accident that are assumed in advance. As a trigger, not only the measurement data for a certain period after the trigger occurs, but also the measurement data for a certain period before the trigger occurs can be saved, and both saved measurement data can be used effectively for investigation of the cause of the accident. it can.

本発明に係るサンプルホールド装置の構成図である。It is a block diagram of the sample hold device concerning the present invention. 制御用CPUの動作を示すゼネラルフローチャートである。It is a general flowchart which shows operation | movement of CPU for control. 各種設定処理の詳細フローチャートである。It is a detailed flowchart of various setting processes. 一次記憶媒体のメモリマップ並びに記憶データフォーマットを示す説明図である。It is explanatory drawing which shows the memory map and storage data format of a primary storage medium. メモリ制御部の動作を示すゼネラルフローチャートである。It is a general flowchart which shows operation | movement of a memory control part. サンプルホールド処理の詳細フローチャートである。It is a detailed flowchart of a sample hold process. 本発明の作用説明図である。It is operation | movement explanatory drawing of this invention. 本発明に係るサンプルホールドICが適用されたテープレコーダの構成図である。1 is a configuration diagram of a tape recorder to which a sample hold IC according to the present invention is applied. FIG. 本発明に係るサンプルホールドICが適用された監視装置の構成図である。It is a block diagram of the monitoring apparatus to which the sample hold IC which concerns on this invention was applied. 本発明に係るサンプルホールド装置の構成図(第2実施形態)である。It is a block diagram (2nd Embodiment) of the sample hold apparatus which concerns on this invention. 一次メモリのデータ配列の説明図である。It is explanatory drawing of the data arrangement | sequence of a primary memory. 単位データフォーマットの説明図である。It is explanatory drawing of a unit data format. サンプルホールド処理のゼネラルフローチャートである。It is a general flowchart of a sample hold process. B(BEFORE)領域処理の詳細フローチャートである。It is a detailed flowchart of a B (BEFORE) area process. 外部トリガによる割込処理の詳細フローチャートである。It is a detailed flowchart of the interruption process by an external trigger. A(AFTER)領域処理の詳細フローチャートである。It is a detailed flowchart of A (AFTER) area processing.

符号の説明Explanation of symbols

1,1a 半導体集積回路
2 DRAM
3 フラッシュメモリ(FLASH)
4 クロック発振器
5 スーパーキャパシタ
101〜105 インタフェース
110 メモリ制御部
110a DAMコントローラ(DAMC)
110b フラッシュメモリ(FLASH)
120 制御用CPU
120a フラッシュメモリ(FLASH)
130 ヘッダ付加制御部
140 データビット制御部
150 シリアル/パラレル変換部
160 シリアル/パラレル切替制御部
170 ORゲート
180 電源制御部
401 第1の記憶領域
402 第2の記憶領域
403 データ部分
404 ヘッダ部分
CLK0 動作クロック
CLK1〜n 制御用クロック
H−DATA(OUT) サンプルホールドデータ
P11,P12,P2〜P7 ポート
PW1 本体用電源
PW2 DRAM用電源
PW3 フラッシュメモリ(FLASH)用電源
PW4 発振器用電源
P−DATA(IN) パラレル入力データ
S−DATA(IN) シリアル入力データ
T1 電源VDD用外部端子
T2,T3 スーパーキャパシタ用外部端子
TRG トリガ信号
801 プローブ
802 入力回路
803 AD/I2S変換回路
804 サンプルホールドIC
805 DRAM
806 フラッシュメモリ
807 I2S/USB変換回路
808 パーソナルコンピュータ
809 トリガ発生回路
S1〜Sk 状態信号
901 カメラ(含む、レンズ及びイメージセンサ)
902 信号処理回路
903 codec
904 DATA/I2S変換回路
905 サンプルホールドIC
906 DRAM
907 フラッシュメモリ
908 I2S/USB変換回路
909 パーソナルコンピュータ
910 トリガ発生回路
1001 CPU
1002 ワーキングメモリ
1003 設定情報メモリ
1004 通信制御部
1005 シリアルデータ入力インタフェース
1006 パラレルデータ入力インタフェース
1007 データ出力インタフェース
1008 トリガ入力インタフェース
1009 1次メモリインタフェース
1010 2次メモリインタフェース
1101,1102 単位データ
1101a,1102a スタートビット
1101b,1102b データ
1101c,1102c エンドアドレス
1102d コントロールデータ
1103 BEFORE領域
1104 AFTER領域
1,1a Semiconductor integrated circuit 2 DRAM
3 Flash memory (FLASH)
4 clock oscillator 5 super capacitor 101-105 interface 110 memory control unit 110a DAM controller (DAMC)
110b Flash memory (FLASH)
120 CPU for control
120a Flash memory (FLASH)
DESCRIPTION OF SYMBOLS 130 Header addition control part 140 Data bit control part 150 Serial / parallel conversion part 160 Serial / parallel switching control part 170 OR gate 180 Power supply control part 401 1st storage area 402 2nd storage area 403 Data part 404 Header part CLK0 Operation Clock CLK1 to n Control clock H-DATA (OUT) Sample hold data P11, P12, P2 to P7 Port PW1 Power supply for main unit PW2 Power supply for DRAM PW3 Power supply for flash memory (FLASH) PW4 Power supply for oscillator P-DATA (IN) Parallel input data S-DATA (IN) Serial input data T1 Power supply VDD external terminal T2, T3 Supercapacitor external terminal TRG Trigger signal 801 Probe 802 Input circuit 803 AD / I2S Circuit 804 sample-and-hold IC
805 DRAM
806 Flash memory 807 I2S / USB conversion circuit 808 Personal computer 809 Trigger generation circuit S1 to Sk Status signal 901 Camera (including lens and image sensor)
902 signal processing circuit 903 codec
904 DATA / I2S conversion circuit 905 Sample hold IC
906 DRAM
907 Flash memory 908 I2S / USB conversion circuit 909 Personal computer 910 Trigger generation circuit 1001 CPU
1002 Working memory 1003 Setting information memory 1004 Communication control unit 1005 Serial data input interface 1006 Parallel data input interface 1007 Data output interface 1008 Trigger input interface 1009 Primary memory interface 1010 Secondary memory interface 1101, 1102 Unit data 1101a, 1102a Start bit 1101b , 1102b Data 1101c, 1102c End address 1102d Control data 1103 BEFORE area 1104 AFTER area

Claims (33)

連続的に到来する一連のデータの中で、所定のトリガ信号の到来タイミングの前後それぞれ所定区間内に存在する一連のデータのみをサンプルホールドするための方法であって、
前記トリガ信号の到来タイミングの前側区間に対応する第1の記憶領域と前記トリガ信号の到来タイミングの後側区間に対応する第2の記憶領域とが定義された一次記憶媒体を用意する第1のステップと、
到来する一連のデータを第1の記憶領域にアドレスを循環歩進させながら書き込む動作を前記トリガ信号が到来するまで継続する第2のステップと、
前記トリガ信号が到来するのを待って、前記第1の記憶領域へのデータ書き込みを停止する代わりに、前記トリガ信号の到来以降に到来した一連のデータを第2の記憶領域へと書き込む第3のステップと、
を具備することを特徴とするデータ列のサンプルホールド方法。
A method for sample-holding only a series of data existing in a predetermined section before and after the arrival timing of a predetermined trigger signal among a series of data that continuously arrives,
A first storage medium is provided in which a first storage area corresponding to a front section of the trigger signal arrival timing and a second storage area corresponding to a rear section of the trigger signal arrival timing are defined. Steps,
A second step of continuing an operation of writing a series of incoming data in the first storage area while cyclically incrementing addresses until the trigger signal arrives;
Instead of waiting for the trigger signal to arrive and stopping writing data to the first storage area, a third series of data written after the arrival of the trigger signal is written to the second storage area. And the steps
A method for sample-holding a data string, comprising:
前記第3のステップが完了するのを待って、前記一次記憶媒体の第1及び第2の記憶領域に書き込まれたデータを二次記憶媒体へと転写する第4のステップをさらに有することを特徴とする請求項1に記載のデータ列のサンプルホールド方法。Waiting for the completion of the third step, further comprising a fourth step of transferring the data written in the first and second storage areas of the primary storage medium to the secondary storage medium. The data string sample and hold method according to claim 1. 前記一次記憶媒体がオプトメモリ等の高速記憶に適する不揮発性記憶媒体、又は電源バックアップされたDRAM等の揮発性記憶媒体であることを特徴とする請求項1に記載のデータ列のサンプルホールド方法。2. The data string sample and hold method according to claim 1, wherein the primary storage medium is a non-volatile storage medium suitable for high-speed storage such as an opto-memory, or a volatile storage medium such as a power-backed DRAM. 前記一次記憶媒体がDRAM等の高速記憶に適する揮発性記憶媒体であり、かつ前記二次記憶媒体がフラッシュメモリ、ハードディスク等の不揮発性記憶媒体であることを特徴とする請求項2に記載のデータ列のサンプルホールド方法。The data according to claim 2, wherein the primary storage medium is a volatile storage medium suitable for high-speed storage such as a DRAM, and the secondary storage medium is a nonvolatile storage medium such as a flash memory or a hard disk. Sample hold method for the column. 第1の記憶領域の記憶容量は第2の記憶領域の記憶容量の整数倍とされることを特徴とする請求項1〜4のいずかに記載のデータ列のサンプルホールド方法。5. The data string sample and hold method according to claim 1, wherein the storage capacity of the first storage area is an integral multiple of the storage capacity of the second storage area. 第1の記憶領域の記憶容量は第2の記憶領域の記憶容量の2倍とされることを特徴とする請求項5に記載のデータ列のサンプルホールド方法。6. The data string sample and hold method according to claim 5, wherein the storage capacity of the first storage area is twice the storage capacity of the second storage area. 連続的に到来する一連のデータのそれぞれが不定長データであり、かつ
第1及び第2のステップには、
相前後して到来する個々の不定長データのデータ長を計測するステップと、
計測されたデータ長を含むコントロールデータを、記憶領域に書き込まれるべき不定長データのそれぞれに付加するステップとが含まれている、ことを特徴とする請求項1に記載のサンプルホールド方法。
Each of a series of data that arrives continuously is indefinite length data, and the first and second steps include:
Measuring the data length of individual indefinite-length data that arrives one after the other,
The sample hold method according to claim 1, further comprising: adding control data including the measured data length to each of the indefinite length data to be written in the storage area.
連続的に到来する一連のデータのそれぞれがフレーム単位に区画されたデータであり、かつ
第1のステップにおいて、到来する一連のデータを第1の記憶領域にアドレスを循環歩進させながら書き込む動作は、トリガ信号が到来した時点で書き込み中のフレームが終了するまで継続されるものであり、
第2のステップにおいて、トリガ信号の到来以降に到来した一連のデータを第2の記憶領域に書き込む動作は、トリガ信号が到来した時点で書き込み中のフレームが終了したのちに開始されるものである、ことを特徴とする請求項1に記載のサンプルホールド方法。
Each of a series of data that arrives continuously is data divided in units of frames, and in the first step, the operation of writing the series of data that arrives in the first storage area while cyclically incrementing the address is , Which continues until the frame being written ends when the trigger signal arrives,
In the second step, the operation of writing a series of data that has arrived after the arrival of the trigger signal to the second storage area is started after the frame being written ends when the trigger signal arrives. The sample and hold method according to claim 1, wherein:
連続的に到来する一連のデータの中で、所定のトリガ信号の到来タイミングの前後それぞれ所定区間内に存在する一連のデータのみをサンプルホールドするための装置であって、
一次記憶媒体と、
前記一次記憶媒体に前記トリガ信号の到来タイミングの前側区間に対応する第1の記憶領域と前記トリガ信号の到来タイミングの後側区間に対応する第2の記憶領域とを定義するための領域定義データを記憶するための領域定義データ記憶手段と、
到来する一連のデータを前記領域定義データにより定義される前記第1の記憶領域にアドレスを循環歩進させながら書き込む動作を前記トリガ信号が到来するまで継続する第1の書き込み制御手段と、
前記トリガ信号が到来するのを待って、前記第1の記憶領域へのデータ書き込みを停止する代わりに、前記トリガ信号の到来以降に到来した一連のデータを前記領域定義データにより定義される前記第2の記憶領域へと書き込む第2の書き込み制御手段と、
を具備することを特徴とするデータ列のサンプルホールド装置。
An apparatus for sample-holding only a series of data existing in a predetermined section before and after the arrival timing of a predetermined trigger signal among a series of data that continuously arrives,
A primary storage medium;
Area definition data for defining, in the primary storage medium, a first storage area corresponding to a front section of the trigger signal arrival timing and a second storage area corresponding to a rear section of the trigger signal arrival timing. Area definition data storage means for storing
First write control means for continuing an operation of writing a series of incoming data into the first storage area defined by the area definition data while cyclically incrementing an address until the trigger signal arrives;
Instead of waiting for the trigger signal to arrive and stopping writing data to the first storage area, a series of data that has arrived after the arrival of the trigger signal is defined by the area definition data. Second write control means for writing to two storage areas;
A sample-and-hold apparatus for a data string, comprising:
二次記憶媒体と、
前記一次記憶媒体の第1及び第2の記憶領域に書き込まれたデータを前記二次記憶媒体に転写するデータ転写制御手段とをさらに有することを特徴とする請求項9に記載のデータ列のサンプルホールド装置。
A secondary storage medium;
10. The data string sample according to claim 9, further comprising data transfer control means for transferring data written in the first and second storage areas of the primary storage medium to the secondary storage medium. Hold device.
前記一次記憶媒体がオプトメモリ等の高速記憶に適する不揮発性記憶媒体、又は電源バックアップされたDRAM等の揮発性記憶媒体であることを特徴とする請求項9に記載のデータ列のサンプルホールド装置。10. The data string sample and hold device according to claim 9, wherein the primary storage medium is a non-volatile storage medium suitable for high-speed storage such as an opto-memory, or a volatile storage medium such as DRAM backed up by a power source. 前記一次記憶媒体がDRAM等の高速記憶に適する揮発性記憶媒体であり、かつ前記二次記憶媒体がフラッシュメモリ、ハードディスク等の不揮発性記憶媒体であることを特徴とする請求項10に記載のデータ列のサンプルホールド装置。The data according to claim 10, wherein the primary storage medium is a volatile storage medium suitable for high-speed storage such as a DRAM, and the secondary storage medium is a nonvolatile storage medium such as a flash memory or a hard disk. Row sample hold device. 外部からの入力データに基づいて領域定義データを内部生成する領域定義データ生成手段を有することを特徴とする請求項9〜12のいずれかに記載のデータ列のサンプルホールド装置。13. The data string sample and hold device according to claim 9, further comprising region definition data generating means for generating region definition data internally based on external input data. 前記外部からの入力データには第1の記憶領域の容量を示すデータと第2の記憶領域の容量を示すデータとの双方が含まれており、前記領域定義データ生成手段はそれら2つのデータに基づいて領域定義データを生成することを特徴とする請求項13に記載のデータ列のサンプルホールド装置。The input data from the outside includes both data indicating the capacity of the first storage area and data indicating the capacity of the second storage area, and the area definition data generation means includes the two data. 14. The data string sample and hold device according to claim 13, wherein region definition data is generated based on the data. 前記外部からの入力データには第1の記憶領域の容量を示すデータは含まれているが、第2の記憶領域の容量を示すデータは含まれておらず、前記領域定義データ生成手段は第1の領域の容量を示すデータのみに基づいて領域定義データを生成することを特徴とする請求項13に記載のデータ列のサンプルホールド装置。The input data from the outside includes data indicating the capacity of the first storage area, but does not include data indicating the capacity of the second storage area. 14. The data string sample and hold device according to claim 13, wherein region definition data is generated based only on data indicating the capacity of one region. 第1の記憶領域の記憶容量は第2の記憶領域の記憶容量の整数倍とされることを特徴とする請求項9〜15のいずかに記載のデータ列のサンプルホールド装置。16. The data string sample-and-hold apparatus according to claim 9, wherein the storage capacity of the first storage area is an integral multiple of the storage capacity of the second storage area. 第1の記憶領域の記憶容量は第2の記憶領域の記憶容量の2倍とされることを特徴とする請求項16に記載のデータ列のサンプルホールド装置。17. The data string sample and hold device according to claim 16, wherein the storage capacity of the first storage area is twice the storage capacity of the second storage area. 連続的に到来する一連のデータのそれぞれが不定長データであり、かつ
第1及び第2の書き込み制御手段には、
相前後して到来する個々の不定長データのデータ長を計測する手段と、
計測されたデータ長を含むコントロールデータを、記憶領域に書き込まれるべき不定長データのそれぞれに付加する手段とが含まれている、ことを特徴とする請求項9に記載のサンプルホールド装置。
Each of a series of data that arrives continuously is indefinite length data, and the first and second write control means include:
Means for measuring the data length of individual indefinite length data that arrives one after the other,
10. The sample hold device according to claim 9, further comprising means for adding control data including the measured data length to each of the indefinite length data to be written in the storage area.
連続的に到来する一連のデータのそれぞれがフレーム単位に区画されたデータであり、かつ
第1の書き込み制御手段において、到来する一連のデータを第1の記憶領域にアドレスを循環歩進させながら書き込む動作は、トリガ信号が到来した時点で書き込み中のフレームが終了するまで継続されるものであり、
第2の書き込み制御手段において、トリガ信号の到来以降に到来した一連のデータを第2の記憶領域に書き込む動作は、トリガ信号が到来した時点で書き込み中のフレームが終了したのちに開始されるものである、ことを特徴とする請求項9に記載のサンプルホールド装置。
Each of a series of data that arrives continuously is data divided in units of frames, and in the first write control means, a series of data that arrives is written into the first storage area while cyclically increasing the address. The operation continues until the frame being written ends when the trigger signal arrives.
In the second write control means, the operation of writing a series of data that has arrived after the arrival of the trigger signal into the second storage area is started after the frame being written is completed when the trigger signal arrives. The sample hold device according to claim 9, wherein
サンプル対象となる一連のデータが入力される第1のポートと、
所定のトリガ信号が入力される第2のポートと、
所定の記憶媒体へと接続される第3のポートと、
サンプルホールドされた一連のデータを出力するための第4のポートと、
第3のポートに接続された記憶媒体に第1の記憶領域と第2の記憶領域とを定義する領域定義データを記憶するための領域定義データ記憶手段と、
第1のポートから入力される一連のデータを第3のポートに接続された記憶媒体の第1の記憶領域にアドレスを循環歩進させながら書き込む動作を、第2のポートからトリガ信号が入力されるまで継続する第1の書き込み制御手段と、
第2のポートからトリガ信号が入力されるのを待って、記憶媒体の第1の記憶領域へのデータ書き込みを停止する代わりに、トリガ信号の到来以降に到来した一連のデータを記憶媒体の第2の記憶領域へと書き込む第2の書き込み制御手段と、
第3のポートに接続された一次記憶媒体の第1の記憶領域及び第2の記憶領域に記憶されたデータを第4のポートへと送り出すための制御を司るデータ読み出し制御手段と、
を具備することを特徴とする半導体集積回路。
A first port into which a series of data to be sampled is input;
A second port to which a predetermined trigger signal is input;
A third port connected to a predetermined storage medium;
A fourth port for outputting a series of sampled and held data;
Area definition data storage means for storing area definition data defining the first storage area and the second storage area in a storage medium connected to the third port;
A trigger signal is input from the second port to write a series of data input from the first port to the first storage area of the storage medium connected to the third port while cyclically moving the address. First writing control means that continues until
Instead of waiting for the trigger signal to be input from the second port and stopping the data writing to the first storage area of the storage medium, a series of data that has arrived since the arrival of the trigger signal is stored. Second write control means for writing to two storage areas;
Data read control means for controlling the data stored in the first storage area and the second storage area of the primary storage medium connected to the third port to the fourth port;
A semiconductor integrated circuit comprising:
前記記憶媒体がオプトメモリ等の高速記憶に適する不揮発性記憶媒体、又は電源バックアップされたDRAM等の揮発性記憶媒体であることを特徴とする請求項20に記載の半導体集積回路。21. The semiconductor integrated circuit according to claim 20, wherein the storage medium is a non-volatile storage medium suitable for high-speed storage such as an opto-memory, or a volatile storage medium such as a power-backed DRAM. 当該半導体集積回路の内部のみならず、外部接続される記憶媒体並びに外部接続されて動作クロックを当該半導体集積回路に対して供給する発振器に対しても電源を供給する電源制御部を有することを特徴とする請求項20に記載の半導体集積回路。In addition to the inside of the semiconductor integrated circuit, a storage medium connected externally and a power supply controller that supplies power to an externally connected oscillator that supplies an operation clock to the semiconductor integrated circuit The semiconductor integrated circuit according to claim 20. 前記電源制御部から供給される電源を停電時に所定時間保持するためのスーパーキャパシタを接続するための外部端子を有することを特徴とする請求項22に記載の半導体集積回路。23. The semiconductor integrated circuit according to claim 22, further comprising an external terminal for connecting a super capacitor for holding the power supplied from the power control unit for a predetermined time during a power failure. 制御用データが入力される第5のポートと、
前記第5のポートから入力される制御用データに基づいて前記領域定義データを内部生成する領域定義データ生成手段をさらに含むことを特徴とする請求項20〜23のいずれかに記載の半導体集積回路。
A fifth port to which control data is input;
24. The semiconductor integrated circuit according to claim 20, further comprising region definition data generation means for internally generating the region definition data based on control data input from the fifth port. .
サンプル対象となる一連のデータが入力される第1のポートと、
所定のトリガ信号が入力される第2のポートと、
所定の一次記憶媒体へと接続される第3のポートと、
所定の二次記憶媒体へと接続される第4のポートと、
サンプルホールドされたデータを読み出すための第5のポートと、
第3のポートに接続された一次記憶媒体に第1の記憶領域と第2の記憶領域とを定義する領域定義データを記憶するための領域定義データ記憶手段と、
第1のポートから入力される一連のデータを第3のポートに接続された一次記憶媒体の第1の記憶領域にアドレスを循環歩進させながら書き込む動作を、第2のポートからトリガ信号が入力されるまで継続する第1の書き込み制御手段と、
第2のポートからトリガ信号が入力されるのを待って、一次記憶媒体の第1の記憶領域へのデータ書き込みを停止する代わりに、トリガ信号の到来以降に到来した一連のデータを一次記憶媒体の第2の記憶領域へと書き込む第2の書き込み制御手段と、
第3のポートに接続された一次記憶媒体の第1及び第2の記憶領域に書き込まれたデータを第4のポートに接続された二次記憶媒体へと転写するデータ転写制御手段と、
第4のポートに接続された二次記憶媒体に記憶されたデータを第5のポートへと送り出すための制御を司るデータ読み出し制御手段と、
を具備することを特徴とする半導体集積回路。
A first port into which a series of data to be sampled is input;
A second port to which a predetermined trigger signal is input;
A third port connected to a predetermined primary storage medium;
A fourth port connected to a predetermined secondary storage medium;
A fifth port for reading sampled and held data;
Area definition data storage means for storing area definition data defining the first storage area and the second storage area in a primary storage medium connected to the third port;
A trigger signal is input from the second port to write a series of data input from the first port to the first storage area of the primary storage medium connected to the third port while cyclically moving the address. First write control means that continues until
Instead of waiting for a trigger signal to be input from the second port and stopping writing data to the first storage area of the primary storage medium, a series of data that has arrived after the arrival of the trigger signal is stored in the primary storage medium. Second write control means for writing to the second storage area of
Data transfer control means for transferring data written in the first and second storage areas of the primary storage medium connected to the third port to the secondary storage medium connected to the fourth port;
Data read control means for controlling the data stored in the secondary storage medium connected to the fourth port to the fifth port;
A semiconductor integrated circuit comprising:
一次記憶媒体がDRAM等の高速記憶に適する揮発性記憶媒体であり、かつ二次記憶媒体がフラッシュメモリ、ハードディスク等の不揮発性記憶媒体であることを特徴とする請求項25に記載の半導体集積回路。26. The semiconductor integrated circuit according to claim 25, wherein the primary storage medium is a volatile storage medium suitable for high-speed storage such as DRAM, and the secondary storage medium is a nonvolatile storage medium such as flash memory or hard disk. . 当該半導体集積回路の内部のみならず、外部接続される一次及び二次記憶媒体、並びに、外部接続されて動作クロックを当該半導体集積回路に対して供給する発振器に対しても電源を供給する電源制御部を有することを特徴とする請求項25に記載の半導体集積回路。Power supply control for supplying power not only to the inside of the semiconductor integrated circuit but also to externally connected primary and secondary storage media and an externally connected oscillator that supplies an operation clock to the semiconductor integrated circuit 26. The semiconductor integrated circuit according to claim 25, further comprising a portion. 前記電源制御部から供給される電源を停電時に所定時間保持するためのスーパーキャパシタを接続するための外部端子を有することを特徴とする請求項27(23)に記載の半導体集積回路。28. The semiconductor integrated circuit according to claim 27, further comprising an external terminal for connecting a super capacitor for holding the power supplied from the power control unit for a predetermined time during a power failure. 第1の記憶領域の記憶容量は第2の記憶領域の記憶容量の整数倍とされることを特徴とする請求項24〜28のいずかに記載の半導体集積回路。29. The semiconductor integrated circuit according to claim 24, wherein the storage capacity of the first storage area is an integral multiple of the storage capacity of the second storage area. 第1の記憶領域の記憶容量は第2の記憶領域の記憶容量の2倍とされることを特徴とする請求項29に記載の半導体集積回路。30. The semiconductor integrated circuit according to claim 29, wherein the storage capacity of the first storage area is twice the storage capacity of the second storage area. 制御用データが入力される第6のポートと、
前記第6のポートから入力される制御用データに基づいて前記領域定義データを内部生成する領域定義データ生成手段をさらに含むことを特徴とする請求項24〜30のいずれかに記載の半導体集積回路。
A sixth port to which control data is input;
31. The semiconductor integrated circuit according to claim 24, further comprising region definition data generation means for internally generating the region definition data based on control data input from the sixth port. .
連続的に到来する一連のデータのそれぞれが不定長データであり、かつ
第1及び第2の書き込み制御手段には、
相前後して到来する個々の不定長データのデータ長を計測する手段と、
計測されたデータ長を含むコントロールデータを、記憶領域に書き込まれるべき不定長データのそれぞれに付加する手段とが含まれている、ことを特徴とする請求項のいずれかに記載の半導体集積回路。
Each of a series of data that arrives continuously is indefinite length data, and the first and second write control means include:
Means for measuring the data length of individual indefinite length data that arrives one after the other,
The semiconductor integrated circuit according to claim 1, further comprising means for adding control data including the measured data length to each of the indefinite length data to be written in the storage area.
連続的に到来する一連のデータのそれぞれがフレーム単位に区画されたデータであり、かつ
第1の書き込み制御手段において、到来する一連のデータを第1の記憶領域にアドレスを循環歩進させながら書き込む動作は、トリガ信号が到来した時点で書き込み中のフレームが終了するまで継続されるものであり、
第2の書き込み制御手段において、トリガ信号の到来以降に到来した一連のデータを第2の記憶領域に書き込む動作は、トリガ信号が到来した時点で書き込み中のフレームが終了したのちに開始されるものである、ことを特徴とする請求項20又は25に記載の半導体集積回路。
Each of a series of data that arrives continuously is data divided in units of frames, and in the first write control means, a series of data that arrives is written into the first storage area while cyclically increasing the address. The operation continues until the frame being written ends when the trigger signal arrives.
In the second write control means, the operation of writing a series of data that has arrived after the arrival of the trigger signal into the second storage area is started after the frame being written is completed when the trigger signal arrives. The semiconductor integrated circuit according to claim 20 or 25, wherein:
JP2005513359A 2003-08-26 2004-08-26 Data string sample and hold method, apparatus, and semiconductor integrated circuit Pending JPWO2005020573A1 (en)

Applications Claiming Priority (5)

Application Number Priority Date Filing Date Title
JP2003301728 2003-08-26
JP2003301728 2003-08-26
JP2003377508 2003-11-06
JP2003377508 2003-11-06
PCT/JP2004/012267 WO2005020573A1 (en) 2003-08-26 2004-08-26 Data sequence sample hold method, apparatus and semiconductor integrated circuit

Publications (1)

Publication Number Publication Date
JPWO2005020573A1 true JPWO2005020573A1 (en) 2007-11-01

Family

ID=34220743

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005513359A Pending JPWO2005020573A1 (en) 2003-08-26 2004-08-26 Data string sample and hold method, apparatus, and semiconductor integrated circuit

Country Status (5)

Country Link
US (2) US20050086274A1 (en)
JP (1) JPWO2005020573A1 (en)
CN (1) CN1591355A (en)
TW (2) TW200509000A (en)
WO (1) WO2005020573A1 (en)

Families Citing this family (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6728848B2 (en) * 2001-06-11 2004-04-27 Hitachi, Ltd. Method and system for backing up storage system data
US7873200B1 (en) 2006-10-31 2011-01-18 United Services Automobile Association (Usaa) Systems and methods for remote deposit of checks
US8708227B1 (en) 2006-10-31 2014-04-29 United Services Automobile Association (Usaa) Systems and methods for remote deposit of checks
CN101802561B (en) * 2007-09-11 2012-03-21 日本电气株式会社 Data logger, data saving method and program
US9058512B1 (en) 2007-09-28 2015-06-16 United Services Automobile Association (Usaa) Systems and methods for digital signature detection
US20090135951A1 (en) * 2007-11-28 2009-05-28 Legend Silicon Corp Method and apparatus for power control techniques in an ofdm based receiver
US10380562B1 (en) 2008-02-07 2019-08-13 United Services Automobile Association (Usaa) Systems and methods for mobile deposit of negotiable instruments
US10504185B1 (en) 2008-09-08 2019-12-10 United Services Automobile Association (Usaa) Systems and methods for live video financial deposit
US8452689B1 (en) 2009-02-18 2013-05-28 United Services Automobile Association (Usaa) Systems and methods of check detection
US10956728B1 (en) 2009-03-04 2021-03-23 United Services Automobile Association (Usaa) Systems and methods of check processing with background removal
US9779392B1 (en) 2009-08-19 2017-10-03 United Services Automobile Association (Usaa) Apparatuses, methods and systems for a publishing and subscribing platform of depositing negotiable instruments
US9129340B1 (en) 2010-06-08 2015-09-08 United Services Automobile Association (Usaa) Apparatuses, methods and systems for remote deposit capture with enhanced image detection
CN109068154B (en) * 2011-09-23 2021-01-26 韩国电子通信研究院 Method for transmitting media data and method for receiving media data
US10380565B1 (en) 2012-01-05 2019-08-13 United Services Automobile Association (Usaa) System and method for storefront bank deposits
US9224096B2 (en) 2012-01-08 2015-12-29 Imagistar Llc System and method for item self-assessment as being extant or displaced
US9485985B2 (en) * 2013-07-31 2016-11-08 Elwha Llc Triggerable support package for seeds
US9286514B1 (en) 2013-10-17 2016-03-15 United Services Automobile Association (Usaa) Character count determination for a digital image
US9460566B2 (en) * 2014-05-20 2016-10-04 Wabtec Holding Corp. Data recorder system and unit for a vehicle
US10506281B1 (en) * 2015-12-22 2019-12-10 United Services Automobile Association (Usaa) System and method for capturing audio or video data
US10325420B1 (en) 2016-03-10 2019-06-18 United Services Automobile Association (Usaa) VIN scan recall notification
US11961341B2 (en) 2016-04-19 2024-04-16 Mitchell International, Inc. Systems and methods for determining likelihood of incident relatedness for diagnostic trouble codes
US10152836B2 (en) 2016-04-19 2018-12-11 Mitchell International, Inc. Systems and methods for use of diagnostic scan tool in automotive collision repair
CN105868131B (en) * 2016-04-20 2019-10-15 京东方科技集团股份有限公司 Delays time to control equipment, delay control method and electronic device
US11030752B1 (en) 2018-04-27 2021-06-08 United Services Automobile Association (Usaa) System, computing device, and method for document detection
US11900755B1 (en) 2020-11-30 2024-02-13 United Services Automobile Association (Usaa) System, computing device, and method for document detection and deposit processing

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000350163A (en) * 1999-06-04 2000-12-15 System Art:Kk Event recorder
US6925180B2 (en) * 2001-09-27 2005-08-02 Sony Corporation PC card recorder

Also Published As

Publication number Publication date
CN1591355A (en) 2005-03-09
US20050086274A1 (en) 2005-04-21
US20080250196A1 (en) 2008-10-09
TW200509000A (en) 2005-03-01
TW200513956A (en) 2005-04-16
WO2005020573A1 (en) 2005-03-03

Similar Documents

Publication Publication Date Title
JPWO2005020573A1 (en) Data string sample and hold method, apparatus, and semiconductor integrated circuit
KR100951420B1 (en) Semiconductor storage apparatus and electronic device
JP2005258598A (en) Running history recording device and method of vehicle, and computer program
JP4821628B2 (en) Packet buffer FIFO memory device
JP2005051663A (en) Recording regenerating method of monitoring video signal and recording reproducing apparatus of device monitoring video signal
JP2010147970A (en) Data recording apparatus, data recording method and recording medium
JP7069864B2 (en) Data storage and programs
JP2008245070A (en) Image data recording system, drive recorder and image data tampering judgment method
CN103165154A (en) Recording apparatus
US20240152273A1 (en) Memory management method for continuously recording digital content and circuit system thereof
JP4384565B2 (en) MPEG-TS playback device
JP4212486B2 (en) Information recording device
JP2007194837A (en) Monitor camera device
KR101379878B1 (en) Control method within recording apparatus and recording apparatus using the same
US10789989B2 (en) Video recording apparatus and video recording method
JP5264528B2 (en) Logging system
JP2007234124A (en) Content data recorder, content data recording method, and program for recording content data
JP4901375B2 (en) Video recording / playback device
JP2007096451A (en) Ip phone and buffer control method
JP3416576B2 (en) Management and security systems
JPH11275510A (en) Digital camera
JP2008219309A (en) Duplication processing apparatus
JPH11112930A (en) Video information recorder
JP2001101395A (en) Circuit and method for switching operation modes
JP2002344950A (en) Monitored image recorder

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090114

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090203

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090819

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20091209