JP5298185B2 - I2C monitoring sequential read data storage device - Google Patents
I2C monitoring sequential read data storage device Download PDFInfo
- Publication number
- JP5298185B2 JP5298185B2 JP2011501345A JP2011501345A JP5298185B2 JP 5298185 B2 JP5298185 B2 JP 5298185B2 JP 2011501345 A JP2011501345 A JP 2011501345A JP 2011501345 A JP2011501345 A JP 2011501345A JP 5298185 B2 JP5298185 B2 JP 5298185B2
- Authority
- JP
- Japan
- Prior art keywords
- read data
- data storage
- storage device
- address
- sequential read
- 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.)
- Expired - Fee Related
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3466—Performance evaluation by tracing or monitoring
- G06F11/349—Performance evaluation by tracing or monitoring for interfaces, buses
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3466—Performance evaluation by tracing or monitoring
- G06F11/3471—Address tracing
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Systems (AREA)
- Debugging And Monitoring (AREA)
Abstract
Description
本発明は、複数の読み出し方式に対応可能なI2C監視シーケンシャルリードデータ記憶装置に関する。 The present invention relates to an I2C monitoring sequential read data storage device capable of supporting a plurality of reading methods.
光モジュールやLSIなどI2Cインターフェースを用いて監視したり制御する伝送装置は複数のユニットで構成されており、各ユニットは各ユニットのフィジカルインベントリ情報(以下、適宜PI情報と称する)が格納されたEEPROMを備える。伝送装置は、各ユニットのEEPROMからI2Cインターフェースを介してPI情報を読み出す。 A transmission device that monitors and controls using an I2C interface such as an optical module or LSI is composed of a plurality of units, and each unit is an EEPROM in which physical inventory information (hereinafter referred to as PI information) of each unit is stored. Is provided. The transmission apparatus reads PI information from the EEPROM of each unit via the I2C interface.
ユニットが伝送装置に実装された場合に、伝送装置はI2Cインターフェースを介してユニットのEEPROMに予め格納されているPI情報を読み出し制御して、PI情報を取得する。PI情報は、例えばユニットがトランスポンダである場合には、そのトランスポンダが担当する波長情報等ユニット固有の情報等である。 When the unit is mounted on the transmission apparatus, the transmission apparatus reads and controls PI information stored in advance in the EEPROM of the unit via the I2C interface, and acquires the PI information. For example, when the unit is a transponder, the PI information is information unique to the unit such as wavelength information handled by the transponder.
また、ユニットをバージョンアップするために差し替えた場合には、差し替えられたユニットのPI情報を伝送装置がI2Cインターフェースにより読み出す。この際、I2Cインターフェースに接続されたI2C監視シーケンシャルリードデータ記憶装置は、伝送装置とユニットとの間の必要なI2C通信データ(典型的にはPI情報)を取得して記憶する。I2C監視シーケンシャルリードデータ記憶装置に記憶されたPI情報等は、他のユニット等で必要となった場合に利用される。 When the unit is replaced to upgrade the version, the transmission apparatus reads the PI information of the replaced unit through the I2C interface. At this time, the I2C monitoring sequential read data storage device connected to the I2C interface acquires and stores necessary I2C communication data (typically PI information) between the transmission device and the unit. The PI information and the like stored in the I2C monitoring sequential read data storage device is used when required by other units.
また、伝送装置をマスタ側としてユニットのEEPROMをスレーブ側とすれば、その間のI2Cインターフェースによる読み出し方式は、読み出し時間が比較的短いシーケンシャルリード方式や番地情報を指定したランダムリード方式やシーケンシャルランダムリード方式等が用いられる。 If the transmission device is the master side and the unit's EEPROM is the slave side, the read method using the I2C interface between them is a sequential read method with a relatively short read time, a random read method specifying address information, or a sequential random read method. Etc. are used.
システムの初期設定などに要する時間の短縮を可能とし、通信処理手段の柔軟性を持たせるために、番地情報を指定したリード方式に加えて伝送時間の短いリード方式も実現する通信処理手段が、例えば下記特許文献1に開示されている。
Communication processing means that realizes a read method with a short transmission time in addition to a read method that specifies address information in order to shorten the time required for initial setting of the system and to provide flexibility of the communication processing means, For example, it is disclosed in
I2C監視シーケンシャルリードデータ記憶装置が、単一のI2C読み出し方式にしか対応していなければ、例えば伝送装置とユニットとの間のI2Cインターフェースによる読み出し方式が異なる場合には通信データの読み出しができず、ユニット内のEEPROM等が有する所望の情報を取得できなくなる。 If the I2C monitoring sequential read data storage device only supports a single I2C read method, for example, if the read method using the I2C interface between the transmission device and the unit is different, the communication data cannot be read, It becomes impossible to acquire desired information held in the EEPROM or the like in the unit.
そこで、マスタ回路側とスレーブ回路側との間のI2Cインターフェースによる様々な読み出し方式に対して、汎用性高く対応できるI2C監視シーケンシャルリードデータ記憶装置が期待される。 Therefore, an I2C monitoring sequential read data storage device that can cope with various read methods using an I2C interface between the master circuit side and the slave circuit side with high versatility is expected.
本発明は、上述の問題点に鑑み為されたものであり、マスタ回路側とスレーブ回路側との間のI2Cインターフェースによる様々な読み出し方式に対して、汎用性高く対応できるI2C監視シーケンシャルリードデータ記憶装置を提供することを目的とする。 The present invention has been made in view of the above-described problems. I2C monitoring sequential read data storage that can cope with various read methods using an I2C interface between a master circuit side and a slave circuit side with high versatility. An object is to provide an apparatus.
本発明にかかるI2C監視シーケンシャルリードデータ記憶装置は、マスタ回路とスレーブ回路とのI2Cインターフェースを介した通信データを取得するI2C監視シーケンシャルリードデータ記憶装置であって、スレーブ回路のアドレス相当数をカウントするアドレスカウンタを備え、スレーブ回路の所定領域を指定するバイトアドレスを取得した場合に、取得したバイトアドレスを、アドレスカウンタの初期値とする。 An I2C monitoring sequential read data storage device according to the present invention is an I2C monitoring sequential read data storage device that acquires communication data via an I2C interface between a master circuit and a slave circuit, and counts the address equivalent number of the slave circuit. When an address counter is provided and a byte address specifying a predetermined area of the slave circuit is acquired, the acquired byte address is set as an initial value of the address counter.
また、本発明にかかるI2C監視シーケンシャルリードデータ記憶装置は、好ましくは取得したバイトアドレスを一時記憶するバイトアドレスレジスタを備え、スレーブ回路がバイトアドレスの受信に対する正常信号を返信した場合に、バイトアドレスレジスタに一時記憶したバイトアドレスを、アドレスカウンタの初期値としてもよい。 The I2C monitoring sequential read data storage device according to the present invention preferably includes a byte address register for temporarily storing the acquired byte address, and when the slave circuit returns a normal signal for reception of the byte address, the byte address register The byte address temporarily stored in may be used as the initial value of the address counter.
また、本発明にかかるI2C監視シーケンシャルリードデータ記憶装置は、さらに好ましくはスレーブ回路を特定するデバイスアドレスまたはバイトアドレスを受信したスレーブ回路が、異常信号を返信した場合に、取得した通信データを記憶しなくてもよい。 The I2C monitoring sequential read data storage device according to the present invention more preferably stores the acquired communication data when the slave circuit that has received the device address or byte address specifying the slave circuit returns an abnormal signal. It does not have to be.
また、本発明にかかるI2C監視シーケンシャルリードデータ記憶装置は、さらに好ましくはスレーブ回路を特定するデバイスアドレスまたはバイトアドレスを受信したスレーブ回路の返信信号を一時記憶するアックナックレジスタと、アドレスカウンタのカウンタ値をデコードして取得した通信データを記憶するタイミングを出力するデコーダ部と、を備え、アックナックレジスタから入力された返信信号が異常信号である場合に、取得した通信データを記憶しないように、デコーダ部は、通信データを記憶するタイミングを出力しなくてもよい。 The I2C monitoring sequential read data storage device according to the present invention preferably further includes an acknowledge register for temporarily storing a reply signal of a slave circuit that has received a device address or byte address for specifying the slave circuit, and a counter value of the address counter. And a decoder unit that outputs timing for storing communication data acquired by decoding the data, and when the return signal input from the ACK register is an abnormal signal, the decoder does not store the acquired communication data The unit may not output the timing for storing the communication data.
また、本発明にかかるI2C監視シーケンシャルリードデータ記憶装置は、さらに好ましくはスレーブ回路を特定するデバイスアドレスの受信またはバイトアドレスを受信したスレーブ回路が、異常信号を返信した場合に、初期化されてもよい。 Further, the I2C monitoring sequential read data storage device according to the present invention is more preferably initialized even when the slave circuit receiving the device address or the byte address specifying the slave circuit returns an abnormal signal. Good.
また、本発明にかかるI2C監視シーケンシャルリードデータ記憶装置は、さらに好ましくはマスタ回路とスレーブ回路との間の通信を終了する終了信号を検出すると、I2C監視シーケンシャルリードデータ記憶装置を初期化するナック検出部を備え、ナック検出部は、アックナックレジスタから入力された返信信号が異常信号である場合に、I2C監視シーケンシャルリードデータ記憶装置を初期化してもよい。 Further, the I2C monitoring sequential read data storage device according to the present invention preferably further detects a termination signal for ending the communication between the master circuit and the slave circuit, and detects the N2 detection that initializes the I2C monitoring sequential read data storage device. The Nac detection unit may initialize the I2C monitoring sequential read data storage device when the return signal input from the acknack register is an abnormal signal.
また、本発明にかかるI2C監視シーケンシャルリードデータ記憶装置は、さらに好ましくは複数のスレーブ回路がI2Cインターフェースを介して接続され、I2C監視シーケンシャルリードデータ記憶装置は、情報取得対象となるスレーブ回路を特定するデバイスアドレス期待値を予め設定され、デバイスアドレス期待値に対応するスレーブ回路の通信データを記憶してもよい。 In the I2C monitoring sequential read data storage device according to the present invention, more preferably, a plurality of slave circuits are connected via an I2C interface, and the I2C monitoring sequential read data storage device specifies a slave circuit that is an information acquisition target. An expected device address value may be set in advance, and communication data of the slave circuit corresponding to the expected device address value may be stored.
また、本発明にかかるI2C監視シーケンシャルリードデータ記憶装置は、さらに好ましくはI2C監視シーケンシャルリードデータ記憶装置は、情報取得対象となるスレーブ回路を特定するデバイスアドレス期待値を予め記憶する期待値記憶部と、期待値記憶部が記憶するデバイスアドレス期待値と、取得したデバイスアドレスと、を比較するデバイスアドレス期待値比較部とを備え、デバイスアドレス期待値比較部は、デバイスアドレス期待値と取得したデバイスアドレスとが異なる場合に、I2C監視シーケンシャルリードデータ記憶装置の初期化信号を出力してもよい。 Further, the I2C monitoring sequential read data storage device according to the present invention is more preferably an I2C monitoring sequential read data storage device, wherein an expected value storage unit that stores in advance a device address expected value that specifies a slave circuit that is an information acquisition target; A device address expected value stored in the expected value storage unit and a device address expected value comparing unit that compares the acquired device address, and the device address expected value comparing unit includes the device address expected value and the acquired device address. May be output from the initialization signal of the I2C monitoring sequential read data storage device.
また、本発明にかかるI2C監視シーケンシャルリードデータ記憶装置は、さらに好ましくはアドレスカウンタとスレーブ回路のアドレスカウントとは合致するように、I2C監視シーケンシャルリードデータ記憶装置の電源投入時のみにアドレスカウンタを初期化してもよい。 The I2C monitoring sequential read data storage device according to the present invention preferably initializes the address counter only when the I2C monitoring sequential read data storage device is turned on so that the address counter matches the address count of the slave circuit. May be used.
また、本発明にかかるI2C監視シーケンシャルリードデータ記憶装置は、さらに好ましくはアドレスカウンタが、マスタ回路からスレーブ回路に送信されるスタート信号を取得した場合も、マスタ回路からスレーブ回路に送信されるリスタート信号を取得した場合も、いずれの場合にも初期化されなくてもよい。 Further, in the I2C monitoring sequential read data storage device according to the present invention, it is more preferable that the restart is transmitted from the master circuit to the slave circuit even when the address counter acquires the start signal transmitted from the master circuit to the slave circuit. Even if the signal is acquired, it may not be initialized in either case.
また、本発明にかかるI2C監視シーケンシャルリードデータ記憶装置は、さらに好ましくはスレーブ回路がEEPROMであり、I2C監視シーケンシャルリードデータ記憶装置は、マスタ回路がI2Cインターフェースを介して読み出したEEPROMの所定領域に記憶されたデータを取得して記憶する記憶部を備えてもよい。 In the I2C monitoring sequential read data storage device according to the present invention, the slave circuit is preferably an EEPROM, and the I2C monitoring sequential read data storage device is stored in a predetermined area of the EEPROM read by the master circuit via the I2C interface. A storage unit that acquires and stores the processed data may be provided.
また、本発明にかかるI2C監視シーケンシャルリードデータ記憶装置は、さらに好ましくはI2Cインターフェースの読み出し方式が、ランダムリード方式またはシーケンシャルリード方式またはシーケンシャルランダムリード方式のいずれか一つ以上の方式であってもよい。 In the I2C monitoring sequential read data storage device according to the present invention, more preferably, the read method of the I2C interface may be any one or more of a random read method, a sequential read method, and a sequential random read method. .
様々な読み出し方式に対して、汎用性高く対応できるI2C監視シーケンシャルリードデータ記憶装置を提供できる。 It is possible to provide an I2C monitoring sequential read data storage device that can cope with various read methods with high versatility.
100・・マスタ回路−スレーブ回路間通信装置、110・・マスタ回路、120・・スレーブ回路、130・・I2C監視シーケンシャルリードデータ記憶装置、140・・I2Cインターフェース、150・・通信ユニット。 100..Master circuit-slave circuit communication device 110.Master circuit 120.Slave circuit 130.I2C monitoring sequential read data storage device 140.I2C interface 150.Communication unit.
I2Cを制御する側の回路をマスタ回路とし、I2Cにより制御される側の回路をスレーブ回路とする。スレーブ回路は、典型的にはEEPROM等のメモリである。I2Cインターフェースにより接続されたマスタ回路とスレーブ回路とは、スレーブ回路に書き込まれているデータを、マスタ回路以外のユニット内で必要とされる場合がある。 A circuit that controls I2C is a master circuit, and a circuit that is controlled by I2C is a slave circuit. The slave circuit is typically a memory such as an EEPROM. The master circuit and slave circuit connected by the I2C interface may require data written in the slave circuit in a unit other than the master circuit.
このような場合には、既存のマスタ回路とスレーブ回路とに影響を及ぼすことなく、I2Cインターフェースを監視して必要なデータを取得することが好ましい。I2C監視リードデータ記憶装置は、マスタ回路がスレーブ回路に対してI2Cインターフェースを介して読み出し制御をする際に、読み出されたデータ(リードデータとも称する)を取り出す。そこで、以下シーケンシャルリード方式等のI2C読み出し方式について詳細に説明した上で、各実施形態について説明をすることとする。 In such a case, it is preferable to acquire necessary data by monitoring the I2C interface without affecting the existing master circuit and slave circuit. The I2C monitoring read data storage device retrieves read data (also referred to as read data) when the master circuit performs read control on the slave circuit via the I2C interface. Accordingly, each embodiment will be described after the I2C reading method such as the sequential read method is described in detail.
図1は、マスタ回路−スレーブ回路間通信装置100の構成を例示する概念図である。図1に示すように、スレーブ回路120とマスタ回路110との間は、I2Cインターフェース140を介して接続される。また、I2Cインターフェース140は、シリアルデータ(適宜SDAまたはsdaとも称する)接続線140aと、シリアルクロック(適宜SCLまたはsclとも称する)接続線140bとがあり、各々双方向通信が可能なように接続される。
FIG. 1 is a conceptual diagram illustrating the configuration of a master circuit-slave
また、I2C監視シーケンシャルリードデータ記憶装置130は、シリアルデータ接続線140aとシリアルクロック接続線140bとの通信データを各々分岐入力されるように、シリアルデータ接続線140aとシリアルクロック接続線140bとに接続される。シリアルデータ接続線140aは、典型的にはスレーブ回路120から読み出されたPI情報等の各種情報を通信データとして伝送する。また、シリアルクロック接続線140bは、典型的にはスレーブ回路120とマスタ回路110との間で同期させるためのクロック信号を伝送する。
Further, the I2C monitoring sequential read
図1に示すマスタ回路−スレーブ回路間通信装置100においては、上述した接続構成により、I2C監視シーケンシャルリードデータ記憶装置130が、スレーブ回路120とマスタ回路110との間の通信データを必要に応じて取得できる。
In the master circuit-slave
典型的には、スレーブ回路100が予めPI情報を格納されたEEPROMであれば、マスタ回路110がEEPROMのPI情報を読み出し制御する際に、I2C監視シーケンシャルリードデータ記憶装置130が、I2Cインターフェースを経由する読み出されたPI情報を取得し記憶することができる。
Typically, if the
I2C監視シーケンシャルリードデータ記憶装置130は、シーケンシャルリード方式で読み出すことで、スレーブ回路120内の全てのPI情報等の全データを一回の読み出し制御により一括して比較的短時間で読み出すことが可能である。シーケンシャルリード方式に対応する読み出し回路は、回路規模を比較的シンプルかつ小さくすることが可能であり、安価にできるので多用される傾向にある。
The I2C monitoring sequential read
なお、図1においては、マスタ回路110とI2C監視シーケンシャルリードデータ記憶装置130とが、通信ユニット150内に備えられる構成として記載したが、I2C監視シーケンシャルリードデータ記憶装置130の配置位置はこれに限定されるものではない。例えば、スレーブ回路120が配置されたユニットがその機能を有するように、スレーブ回路120とI2C監視シーケンシャルリードデータ記憶装置130とを同一ユニットに構成してもよい。
In FIG. 1, the
ここで、シーケンシャルリード方式に対応したI2C監視シーケンシャルリードデータ記憶装置130(1)の構成概要について説明する。図2は、シーケンシャルリード方式のみに対応したI2C監視シーケンシャルリードデータ記憶装置130(1)の構成概要を例示する図である。 Here, an outline of the configuration of the I2C monitoring sequential read data storage device 130 (1) corresponding to the sequential read method will be described. FIG. 2 is a diagram illustrating an outline of the configuration of the I2C monitoring sequential read data storage device 130 (1) that supports only the sequential read method.
図2に示すようにI2C監視シーケンシャルリードデータ記憶装置130(1)は、マスタ回路110とスレーブ回路120との間の通信スタート信号が、シリアルデータ接続線140aから入力されたことを検出するスタート検出部210を備える。また、I2C監視シーケンシャルリードデータ記憶装置130(1)は、マスタ回路110とスレーブ回路120との間の通信終了信号(ナック「Nack」とも称する)が、シリアルデータ接続線140aから入力されたことを検出するナック(「Nack」とも称する)検出部220を備える。
As shown in FIG. 2, the I2C monitoring sequential read data storage device 130 (1) detects that the communication start signal between the
セットリセット部230は、スタート検出部210がスタート信号を検出すると、「enable」信号をビットカウンタ240に出力し、「enable」信号により初期化されたビットカウンタ240がカウントアップを開始する。また、セットリセット部230は、Nack検出部220が通信終了信号を検出すると、ビットカウンタ240をディスエーブルとする。次の「Start」検出時に、I2C監視シーケンシャルデータ記憶装置130全体を初期化する。I2C監視シーケンシャルリードデータ記憶装置130(1)全体を初期化すると、I2C監視シーケンシャルリードデータ記憶装置130(1)が備える各種カウンタのカウンタ値は典型的にはゼロにリセットされることとなる。
When the
ビットカウンタ240が0乃至8ビットの計9ビットをカウントすると、バイトカウンタ250が初期値ゼロから1バイトずつカウントアップする。典型的には、ビットカウンタ240がカウントする計9ビットのうち8ビット相当分が読み出しデータ等であり、ビットカウンタ240がカウントする計9ビットのうち1ビット相当分が読み出しデータの受信に対するマスタ回路110からの返信であるアック(「Ack」とも称する)信号またはナック信号となる。なお、バイトカウンタ250は、通信スタート「Start」または通信再スタート「Re Start」により、ゼロにリセットされる。
When the bit counter 240 counts a total of 9 bits from 0 to 8, the
また、第一デコーダ部260は、バイトカウンタ250のカウンタ値等から、マスタ回路110がスレーブ回路120へ読み出し指示する「read bit」のタイミングを検知する。
Further, the
第二デコーダ部270は、バイトカウンタ250のカウンタ値等に基づいて、スレーブ回路120から読み出されたデータ(「read data」とも称する)を受信したマスタ回路110が、スレーブ回路120にアック信号を通知するタイミングを検知する。
The
第二デコーダ部270が、「read data」後のアック信号のタイミングを検知すると「enable」信号がアドレスカウンタ290へと出力されて、アドレスカウンタ290がカウントアップを開始する。第三デコーダ部2a0は、アドレスカウンタ290のカウンタ値から、読み出されたデータを記憶部2bに記憶させるタイミングを検知する。なお、アドレスカウンタ290は、スレーブ回路120のアドレス相当数をカウントアップする。
When the
シリアル/パラレル変換部280は、シリアルデータ接続線140aから入力された通信データ(典型的にはEEPROMから読み出されたデータ)をパラレル変換する。また、記憶部2bは、シリアル/パラレル変換部280によりパラレル変換されたデータを、第三デコーダ部2a0が検知したタイミングで記憶する。
The serial /
記憶部2bは、典型的には8ビット毎に順次取得される「read data0」、「read data1」、・・、「read datan」をそれぞれ、順次レジスタ2b0、レジスタ2b1、・・レジスタ2bn(nは任意の自然数であり、典型的には255である)に、第三デコーダ部2a0からのトリガ入力により記憶する。
The
ビットカウンタ240とバイトカウンタ250とシリアル/パラレル変換部280とアドレスカウンタ290とには、各々シリアルクロック接続線140bからクロック信号が入力される。すなわち、I2C監視シーケンシャルリードデータ記憶装置130(1)は、マスタ回路110とスレーブ回路120とに同期して動作処理する。
A clock signal is input to the
図3は、I2C監視シーケンシャルリードデータ記憶装置130(1)の動作処理の概要を示すタイミングチャート概念図である。図3においては、スレーブ回路120のメモリ容量が256バイトである場合のチャートを例示したものである。
FIG. 3 is a timing chart conceptual diagram showing an outline of operation processing of the I2C monitoring sequential read data storage device 130 (1). FIG. 3 illustrates a chart when the memory capacity of the
図3において、スタート検出部210が通信スタート信号を検出すると、セットリセット部230が「enable」信号を出力する。ビットカウンタ240は、「enable」信号によりゼロにリセットされてカウントアップを開始する。また、シリアルデータ接続線140aから入力された「read data0」は、第三デコーダ部2a0が指示するタイミングでレジスタ2b0に記憶される。
In FIG. 3, when the
一方、第二デコーダ部270が、「read data0」の後のAck信号タイミングを検出すると、アドレスカウンタ290が順次カウントアップを開始する。なお、シーケンシャル方式においては、アドレスカウンタ290は、その後バイトカウンタ250のカウント値に対して1バイト遅れるように255バイトまで順次カウントアップする。すなわち、アドレスカウンタ290のカウント値が1の場合には、「read data1」がレジスタ2b1に、第三デコーダ部2a0が指示するタイミングで格納される。また、アドレスカウンタ290のカウント値が255の場合には、「read data255」がレジスタ2b255に、第三デコーダ部2a0が指示するタイミングで格納される。
On the other hand, when the
また、Nack検出部220が通信終了を指示するNack信号を検出すると、セットリセット部230の「enable」出力が停止されて、ビットカウンタ240のカウントアップが停止する。ビットカウンタ240のカウントアップが停止すると、I2C監視シーケンシャルリードデータ記憶装置130(1)の動作処理が停止する。
Further, when the
図4は、3種類のI2C通信方式について説明する概念図である。図4(a)はランダムリード方式についてマスタ回路110とスレーブ回路120との間のI2C通信を説明する概念図である。また、図4(b)はシーケンシャルリード方式についてマスタ回路110とスレーブ回路120との間のI2C通信を説明する概念図である。また、図4(c)はシーケンシャルランダムリード方式についてマスタ回路110とスレーブ回路120との間のI2C通信を説明する概念図である。
FIG. 4 is a conceptual diagram illustrating three types of I2C communication methods. FIG. 4A is a conceptual diagram illustrating I2C communication between the
図4(a)に示すように、ランダムリード方式においては、マスタ回路110から通信スタート信号「Start」と、スレーブ回路120を特定するデバイスアドレスに書き込み信号を加えた「Device add+Write」と、が送信される。
As shown in FIG. 4A, in the random read method, the
スレーブ回路120は、「Device add+Write」を正しく受信すると、マスタ回路110に「Ack」を返信する。また、スレーブ回路120は、「Device add+Write」を正しく受信しなければ、マスタ回路110に「Nack」を返信する。「Device add+Write」を正しく受信しない場合とは、例えば指示されたデバイスアドレスに該当するスレーブ回路120が存在しない場合等がある。
When the
なお、ここでスレーブ回路120から返信される「Nack」は通信終了信号とは異なるので、Nack検出部220が検出することはなく、I2C監視シーケンシャルリードデータ記憶装置130(1)の動作と処理とが終了することはない。
Here, since “Nack” returned from the
次に、マスタ回路110が、スレーブ回路120の特定領域を指定するバイトアドレス「Byte add」を送信する。バイトアドレスは、典型的にはEEPROMの読み出し対象情報が格納されているアドレスとなる。
Next, the
スレーブ回路120は、「Byte add」を正しく受信すると、マスタ回路110にAckを返信する。また、スレーブ回路120は、「Byte add」を正しく受信しなければ、マスタ回路110にNackを返信する。「Byte add」を正しく受信しない場合とは、例えば指示されたバイトアドレスに該当するメモリ領域が存在しない場合等がある。
When the
次に、マスタ回路110から通信再スタート信号「Re Start」と、スレーブ回路120を特定するデバイスアドレスに読み出し信号を加えた「Device add+Read」と、が送信される。
Next, a communication restart signal “Re Start” and “Device add + Read” obtained by adding a read signal to the device address that identifies the
スレーブ回路120は、「Device add+Read」を正しく受信すると、マスタ回路110にAckを返信する。また、スレーブ回路120は、「Device add+Read」を正しく受信しなければ、マスタ回路110にNackを返信する。また、スレーブ回路120は、指定されたバイトアドレスに格納されている情報を読み出した「Read data」をマスタ回路110に送信する。
When the
最後に、マスタ回路110は、通信終了を指示する「Nack」をスレーブ回路120に送信してマスタ回路110とスレーブ回路120との通信が終了する。ランダムリード方式においては、読み出し対象となる情報ごとに、読み出し対象となる情報が格納されているスレーブ回路120を特定する情報(「Device add」に対応)と、格納場所を特定する情報(「Byte add」)とをマスタ回路110が指示することとなる。これにより、マスタ回路110は、所望の情報を任意の順序で読み出すことができる。以上が、ランダムリード方式のI2C通信の概要説明となる。
Finally, the
また、図4(b)に示すように、シーケンシャルリード方式においては、マスタ回路110から通信スタート信号「Start」と、スレーブ回路120を特定するデバイスアドレスに読み出し信号を加えた「Device add+Read」と、が送信される。
Also, as shown in FIG. 4B, in the sequential read method, the communication start signal “Start” from the
スレーブ回路120は、「Device add+Read」を正しく受信すると、マスタ回路110に「Ack」を返信する。また、スレーブ回路120は、「Device add+Read」を正しく受信しなければ、マスタ回路110に「Nack」を返信する。「Device add+Read」を正しく受信しない場合とは、例えば指示されたデバイスアドレスに該当するスレーブ回路120が存在しない場合等がある。
When the
シーケンシャルリード方式においては、マスタ回路110が、スレーブ回路120の特定領域を指定するバイトアドレス「Byte add」を送信する必要はない。マスタ回路110は、典型的にはEEPROMに格納されている情報を、最初のアドレスから順次全て読み出すこととなる。
In the sequential read method, the
指定されたスレーブ回路120は、格納されている情報を読み出した「Read data」をマスタ回路110に送信する。マスタ回路110は、「Read data」を正しく受信すれば、スレーブ回路120に「Ack」を返信する。その後、スレーブ回路120は、格納されている情報を順次読み出した「Read data」をマスタ回路110に順次送信する。また、マスタ回路110は、「Read data」を正しく受信する毎に、スレーブ回路120に「Ack」を返信する。
The designated
最後に、マスタ回路110は、通信終了を指示する「Nack」をスレーブ回路120に送信してマスタ回路110とスレーブ回路120との通信が終了する。シーケンシャルリード方式においては、読み出し対象となる情報ごとに、格納場所を特定する情報(「Byte add」に対応)とをマスタ回路110が指示する必要がない。これにより、マスタ回路110は、所望の情報を比較的迅速に読み出すことができる。以上が、シーケンシャルリード方式のI2C通信の概要説明となる。
Finally, the
また、図4(c)に示すように、シーケンシャルランダムリード方式においては、前段部がランダムリード方式であり後段部がシーケンシャルリード方式である。すなわち、両者を連続的に繋げた読み出し方式となるので、説明の重複を避けるためにここでは詳述を避ける。 Further, as shown in FIG. 4C, in the sequential random read system, the front stage is a random read system and the rear stage is a sequential read system. That is, since the reading method is a continuous connection of both, detailed description is avoided here in order to avoid duplication of explanation.
シーケンシャルランダムリード方式においては、ランダムリード方式が終了した時点での最後に読み出されたバイトアドレスに対応する特定領域から、シーケンシャルリード方式により順次読み出されることとなる。 In the sequential random read method, the sequential read method sequentially reads from the specific area corresponding to the byte address read last when the random read method is completed.
(第一の実施形態)
図5は、第一の実施形態にかかるI2C監視シーケンシャルリードデータ記憶装置130(2)の構成を説明する概念図である。I2C監視シーケンシャルリードデータ記憶装置130(2)は、スレーブ回路120の特定領域を指定するバイトアドレス「Byte add」を、アドレスカウンタ290(2)の初期値としてロードする。これにより、シーケンシャルリード方式とランダムリード方式とシーケンシャルランダムリード方式とのいずれのI2C読み出し方式に対しても対応可能である。(First embodiment)
FIG. 5 is a conceptual diagram illustrating the configuration of the I2C monitoring sequential read data storage device 130 (2) according to the first embodiment. The I2C monitoring sequential read data storage device 130 (2) loads the byte address “Byte add” designating a specific area of the
なお、図5においては、図2において既に説明した構成と同一の部位には対応する符号を付して、説明の重複を避けるためにここでは説明を避けることとし、I2C監視シーケンシャルリードデータ記憶装置130(1)と相違する構成等について説明する。 In FIG. 5, the same parts as those already described in FIG. 2 are denoted by the same reference numerals, and the description is avoided here to avoid duplication of explanation, and the I2C monitoring sequential read data storage device The structure etc. which differ from 130 (1) are demonstrated.
I2C監視シーケンシャルリードデータ記憶装置130(2)は、マスタ回路110からバイトアドレスが送信されるタイミングを検出するバイトアドレスデコーダ部510を備える。また、I2C監視シーケンシャルリードデータ記憶装置130(2)は、スレーブ回路120から、バイトアドレス受信に対する「Ack」が送信されるタイミングを検出するバイトアドレスアックデコーダ部520を備える。
The I2C monitoring sequential read data storage device 130 (2) includes a byte
バイトアドレスデコーダ部510とバイトアドレスアックデコーダ部520とは、各々ビットカウンタ240(2)とバイトカウンタ250(2)とのカウント値が共に入力され、ビットカウンタ240(2)とバイトカウンタ250(2)とのカウント値に基づいて各々タイミングを検出する。
The byte
また、I2C監視シーケンシャルリードデータ記憶装置130(2)は、マスタ回路110から送信されるバイトアドレス「Byte add」を、一時記憶するバイトアドレスレジスタ530を備える。バイトアドレスレジスタ530は、シリアル/パラレル変換部280(2)でパラレル変換されたバイトアドレス「Byte add」を、バイトアドレスデコーダ部510が検出したタイミングで取得して記憶する。
The I2C monitoring sequential read data storage device 130 (2) includes a
アドレスカウンタ290(2)は、バイトアドレスレジスタ530が記憶するバイトアドレス「Byte add」を、バイトアドレスアックデコーダ部520が検出したタイミングで初期値としてロード(取得ともいう)する。その後、アドレスカウンタ290(2)は、第二デコーダ部270(2)が、「read data」の後の「Ack」信号タイミングを検出すると、ロードしたバイトアドレス「Byte add」から順次カウントアップを開始する。
The address counter 290 (2) loads (also referred to as acquisition) the byte address “Byte add” stored in the
なお、I2C監視シーケンシャルリードデータ記憶装置130(2)は、I2C監視シーケンシャルリードデータ記憶装置130(1)の構成を備えているので、シーケンシャル方式に対応可能である。 Since the I2C monitoring sequential read data storage device 130 (2) has the configuration of the I2C monitoring sequential read data storage device 130 (1), the I2C monitoring sequential read data storage device 130 (2) can support the sequential method.
図6は、ランダム方式である場合のI2C監視シーケンシャルリードデータ記憶装置130(2)の動作と処理との概要を説明するチャート図である。また、図6は、マスタ回路110から指示されたバイトアドレス「Byte add」が、「7」である場合の例である。
FIG. 6 is a chart for explaining the outline of the operation and processing of the I2C monitoring sequential read data storage device 130 (2) in the case of the random method. FIG. 6 shows an example in which the byte address “Byte add” instructed from the
図6において、スタート検出部210(2)が、マスタ回路110からの通信スタート信号「Start」を検出すると、セットリセット部230(2)が「enable」信号をビットカウンタ240(2)に出力し、「enable」信号によりビットカウンタ240(2)が初期化されてカウントアップを開始する。
In FIG. 6, when the start detection unit 210 (2) detects the communication start signal “Start” from the
また、バイトアドレス受信に対する「Ack」がスレーブ回路120から送信されるタイミングをバイトアドレスアックデコーダ部520が検出すると、バイトアドレスレジスタ530に一時記憶されたバイトアドレス「Byte add=7」は、アドレスカウンタ290(2)に初期値としてロードされる。
When the byte
また、スレーブ回路120のバイトアドレス「Byte add=7」から読み出された読み出しデータ「Read data」は、シリアル/パラレル変換部280(2)でパラレル変換された後に、第三デコーダ部2a0(2)がアドレスカウンタ290(2)のカウンタ値から読み出されたデータを記憶部2b(2)に記憶させるタイミングを検知すると、バイトアドレス「Byte add=7」に対応するレジスタ2b7(2)に記憶される。
The read data “Read data” read from the byte address “Byte add = 7” of the
また図7は、シーケンシャルランダム方式である場合のI2C監視シーケンシャルリードデータ記憶装置130(2)の動作と処理との概要を説明するチャート図である。図7においては、バイトアドレス「Byte add」が、「7」から10バイト相当分を読み出す例を示す。 FIG. 7 is a chart for explaining the outline of the operation and processing of the I2C monitoring sequential read data storage device 130 (2) in the case of the sequential random method. FIG. 7 shows an example in which the byte address “Byte add” reads the equivalent of 10 bytes from “7”.
図7において、スタート検出部210(2)が、マスタ回路110からの通信スタート信号「Start」を検出すると、セットリセット部230(2)が「enable」信号をビットカウンタ240(2)に出力し、「enable」信号によりビットカウンタ240(2)がゼロに初期化されて、クロック「scl」の立ち上がりでカウントアップを開始する。なお、バイトカウンタ250(2)は、通信スタート「Start」または通信再スタート「Re Start」により、ゼロにリセットされる。
In FIG. 7, when the start detection unit 210 (2) detects the communication start signal “Start” from the
また、バイトアドレス受信に対する「Ack」がスレーブ回路120から送信されるタイミングをバイトアドレスアックデコーダ部520が検出すると、バイトアドレスレジスタ530に一時記憶されたバイトアドレス「Byte add=7」は、アドレスカウンタ290(2)に初期値「7」としてロードされる。
When the byte
また、スレーブ回路120のバイトアドレス「Byte add=7」から読み出された読み出しデータ「Read data」は、シリアル/パラレル変換部280(2)でパラレル変換された後に、第三デコーダ部2a0(2)がアドレスカウンタ290(2)のカウンタ値から読み出されたデータを記憶部2b(2)に記憶させるタイミングを検知すると、バイトアドレス「Byte add=7」に対応するレジスタ2b7(2)に記憶される。ここまでが、シーケンシャルランダム方式におけるランダム方式に対応するチャートである。これ以降、シーケンシャルランダム方式におけるシーケンシャル方式に対応するチャートとなる。
The read data “Read data” read from the byte address “Byte add = 7” of the
第二デコーダ部270(2)がバイトアドレス「Byte add=7」から読み出された「read data」の後の「Ack」信号タイミングを検出すると、第二デコーダ部270(2)がアドレスカウンタ290(2)に「enable」を出力する。「enable」を入力されたアドレスカウンタ290(2)は、既にロードされている初期値7から16まで順次カウントアップを開始する。
When the second decoder unit 270 (2) detects the “Ack” signal timing after “read data” read from the byte address “Byte add = 7”, the second decoder unit 270 (2) detects the
以降、I2C監視シーケンシャルリードデータ記憶装置130(2)は、シーケンシャル方式で説明したように、順次取得される「read data8」、「read data9」、・・、「read data16」をそれぞれ、順次レジスタ2b8、レジスタ2b9、・・レジスタ2b16に、第三デコーダ部2a0(2)からのトリガ入力により記憶する。なお、アドレスカウンタ290は、スレーブ回路120のアドレス相当数をカウントアップする。
Thereafter, as described in the sequential method, the I2C monitoring sequential read data storage device 130 (2) sequentially acquires “read data8”, “read data9”,..., “Read data16” sequentially in the register 2b8. , Registers 2b9,... Are stored in the register 2b16 by a trigger input from the third decoder unit 2a0 (2). The
そして、Nack検出部220(2)が、マスタ回路110からスレーブ回路120へ送信された通信終了を指示する「Nack」を検出すると、I2C監視シーケンシャルリードデータ記憶装置130(2)の動作と処理とが終了する。
When the Nack detection unit 220 (2) detects “Nack” instructing the end of communication transmitted from the
(第二の実施形態)
第二の実施形態にかかるI2C監視シーケンシャルリードデータ記憶装置130(3)は、デバイスアドレス「Device add」またはバイトアドレス「Byte add」受信後のスレーブ回路120からの返信「Ack」「Nack」を監視する。(Second embodiment)
The I2C monitoring sequential read data storage device 130 (3) according to the second embodiment monitors the responses “Ack” and “Nack” from the
そして、デバイスアドレス「Device add」受信後のスレーブ回路120からの返信、またはバイトアドレス「Byte add」受信後のスレーブ回路120からの返信、のいずれか一方が「Nack」であれば、I2C監視シーケンシャルリードデータ記憶装置130(3)は、スレーブ回路120から読み出された「Read data」を記憶しない。
If either of the reply from the
デバイスアドレス「Device add」受信後のスレーブ回路120からの返信、またはバイトアドレス「Byte add」受信後のスレーブ回路120からの返信、のいずれか一方が「Nack」であれば、デバイスアドレス「Device add」受信後のスレーブ回路120からの返信、またはバイトアドレス「Byte add」受信後のスレーブ回路120からの返信、の少なくともいずれか一方が正常に受信されていないと考えられるので、当該バイトアドレス「Byte add」から読み出された読み出しデータ「Read data」の信頼度は低下すると考えられる。
If either the reply from the
これにより、I2C監視シーケンシャルリードデータ記憶装置130(3)は、信頼性の高い読み出しデータ「Read data」のみを記憶することになるので、記憶された「Read data」の信頼性を向上させることができる。 As a result, the I2C monitoring sequential read data storage device 130 (3) stores only the read data “Read data” with high reliability, so that the reliability of the stored “Read data” can be improved. it can.
図8と図14とは、I2C監視シーケンシャルリードデータ記憶装置130(3)の構成を例示する概念図である。図8に示すI2C監視シーケンシャルリードデータ記憶装置130(3)は、バイトアドレス「Byte add」受信後のスレーブ回路120からの返信が「Nack」であれば、スレーブ回路120から読み出された「Read data」を記憶しない構成例である。
FIGS. 8 and 14 are conceptual diagrams illustrating the configuration of the I2C monitoring sequential read data storage device 130 (3). If the reply from the
図8においては、既に説明したI2C監視シーケンシャルリードデータ記憶装置130(2)と同一の構成部位については対応する符号を付して、説明の重複を避けるためにここでは詳述を避けることとする。 In FIG. 8, the same components as those of the already described I2C monitoring sequential read data storage device 130 (2) are denoted by corresponding reference numerals, and detailed description is avoided here in order to avoid duplication of explanation. .
図8に示すように、I2C監視シーケンシャルリードデータ記憶装置130(3)は、バイトアドレス「Byte add」受信後の「Ack」または「Nack」を一時記憶するアックナックレジスタ810を備える。
As shown in FIG. 8, the I2C monitoring sequential read data storage device 130 (3) includes an
アックナックレジスタ810は、バイトアドレス受信に対する「Ack」または「Nack」がスレーブ回路120から送信されるタイミングを検出するバイトアドレスアックデコーダ部520(2)からのトリガ入力により、シリアル/パラレル変換部280(3)でパラレル変換された「Ack」または「Nack」を、一時記憶する。
The ACK register 810 receives the trigger from the byte address ACK decoder unit 520 (2) that detects the timing at which “Ack” or “Nack” is transmitted from the
また、アックナックレジスタ810は、一時記憶した情報が「Nack」であれば、第三デコーダ部2a0(3)のトリガ出力をマスクする。第三デコーダ部2a0(3)のトリガ出力がマスクされると、取得された「Read data」を記憶するタイミングが与えられないので、記憶部2b(3)は「Read data」を記憶しない。
Further, if the temporarily stored information is “Nack”, the
なお、I2C監視シーケンシャルリードデータ記憶装置130(3)は、バイトアドレス受信に対する「Ack」または「Nack」がスレーブ回路120から送信されるタイミングを検出するバイトアドレスアックデコーダ部520(2)に替えて、またはバイトアドレスアックデコーダ部520(2)と共にデバイスアドレス受信に対する「Ack」または「Nack」がスレーブ回路120から送信されるタイミングを検出するデバイスアドレスアックデコーダ部を備えてもよい。
The I2C monitoring sequential read data storage device 130 (3) is replaced with a byte address ack decoder unit 520 (2) that detects the timing at which “Ack” or “Nack” for byte address reception is transmitted from the
また、図14に示すI2C監視シーケンシャルリードデータ記憶装置130(6)は、デバイスアドレス「Device add」受信後のスレーブ回路120からの返信、またはバイトアドレス「Byte add」受信後のスレーブ回路120からの返信、の少なくともいずれか一方が「Nack」であれば、スレーブ回路120から読み出された「Read data」を記憶しない構成例である。これにより、I2C監視シーケンシャルリードデータ記憶装置130(6)は、さらに信頼性の高い記憶データを保持することができる。
Further, the I2C monitoring sequential read data storage device 130 (6) shown in FIG. 14 returns a response from the
I2C監視シーケンシャルリードデータ記憶装置130(6)は、I2C監視シーケンシャルリードデータ記憶装置130(3)が備えるバイトアドレスアックデコーダ部520(2)に替えて、バイトアドレスデバイスアドレスアックデコーダ部520(5)を備える。 The I2C monitoring sequential read data storage device 130 (6) replaces the byte address ack decoder unit 520 (2) included in the I2C monitoring sequential read data storage device 130 (3), and a byte address device address ack decoder unit 520 (5). Is provided.
バイトアドレスデバイスアドレスアックデコーダ部520(5)は、バイトアドレス受信に対する「Ack」または「Nack」がスレーブ回路120から送信されるタイミングと、デバイスアドレス受信に対する「Ack」または「Nack」がスレーブ回路120から送信されるタイミングと、を検出する。
The byte address device address ack decoder unit 520 (5) has a timing at which “Ack” or “Nack” for byte address reception is transmitted from the
アックナックレジスタ810は、上述のタイミングを検出したバイトアドレスデバイスアドレスアックデコーダ部520(5)からのトリガ入力により、シリアル/パラレル変換部280(3)でパラレル変換された「Ack」または「Nack」を、一時記憶する。
The
また、I2C監視シーケンシャルリードデータ記憶装置130(6)において、アックナックレジスタ810は、一時記憶した情報が「Nack」であれば、第三デコーダ部2a0(3)のトリガ出力をマスクする。第三デコーダ部2a0(3)のトリガ出力がマスクされると、取得された「Read data」を記憶するタイミングが与えられないので、記憶部2b(3)は「Read data」を記憶しない。
Further, in the I2C monitoring sequential read data storage device 130 (6), the
図9は、ランダムリード方式でバイトアドレスが「7」である場合のI2C監視シーケンシャルリードデータ記憶装置130(6)の動作及び処理の概要を説明するチャート図である。図9に示すように、I2C監視シーケンシャルリードデータ記憶装置130(6)は、スレーブ回路120を特定するデバイスアドレスに書き込み信号を加えた「Device add+Write」の受信後の返信が「Nack」であれば、アックナックレジスタ810が第三デコーダ部2a0(3)をマスクする。
FIG. 9 is a chart for explaining the outline of the operation and processing of the I2C monitoring sequential read data storage device 130 (6) when the byte address is “7” in the random read method. As illustrated in FIG. 9, the I2C monitoring sequential read data storage device 130 (6) receives “Device add + Write” in which the write signal is added to the device address that specifies the
アックナックレジスタ810が第三デコーダ部2a0(3)をマスクすると、記憶部2b(3)は読み出された「Read data7」を記憶するタイミングが与えられないので、「Read data7」はレジスタ2b7(3)に記憶されないこととなる。
When the acknowledge
なお、図9におけるI2C監視シーケンシャルリードデータ記憶装置130(6)のその余の動作と処理とは、I2C監視シーケンシャルリードデータ記憶装置130(2)の動作と処理と、として図6で既に説明しているので、説明の重複を避けるためにここでは詳述をしないこととする。 The remaining operations and processing of the I2C monitoring sequential read data storage device 130 (6) in FIG. 9 are already described in FIG. 6 as operations and processing of the I2C monitoring sequential read data storage device 130 (2). Therefore, in order to avoid duplication of explanation, it will not be described in detail here.
また、I2C監視シーケンシャルリードデータ記憶装置130(6)は、スレーブ回路120を特定するデバイスアドレスに読み出し信号を加えた「Device add+Read」の受信後の返信が「Nack」であれば、アックナックレジスタ810が第三デコーダ部2a0(3)をマスクする。すなわち、第二の実施形態における「Device add」は、「Device add+Read」である場合も「Device add+Write」である場合もいずれの場合においても含まれるものとする。
Further, the I2C monitoring sequential read data storage device 130 (6), if the reply after receiving “Device add + Read” obtained by adding a read signal to the device address specifying the
(第三の実施形態)
第三の実施形態で説明するI2C監視シーケンシャルリードデータ記憶装置130(4)は、第二の実施形態で説明したI2C監視シーケンシャルリードデータ記憶装置130(3),130(6)等において、アックナックレジスタ810(2)が第三デコーダ部2a0(4)をマスクすることに替えて、アックナックレジスタ810(2)がNack検出部220(4)にI2C監視シーケンシャルリードデータ記憶装置130(4)全体の動作と制御とを終了させる。(Third embodiment)
The I2C monitoring sequential read data storage device 130 (4) described in the third embodiment is the same as the I2C monitoring sequential read data storage device 130 (3), 130 (6) described in the second embodiment. Instead of the register 810 (2) masking the third decoder unit 2a0 (4), the ACKNACK register 810 (2) adds the I2C monitoring sequential read data storage device 130 (4) to the Nack detection unit 220 (4) End the operation and control.
すなわち、アックナックレジスタ810(2)が「Nack」を一時記憶した場合には、Nack検出部220(4)は、通信終了信号「Nack」を検出した場合と同じリセット動作をセットリセット部230(4)に指示し、I2C通信監視動作が終了する。 That is, when the Nack register 810 (2) temporarily stores “Nack”, the Nack detection unit 220 (4) performs the same reset operation as when the communication end signal “Nack” is detected. 4), and the I2C communication monitoring operation ends.
これにより、I2C監視シーケンシャルリードデータ記憶装置130(4)は、監視するI2C通信に異常があるかもしれない状況においては、「Read data」の取得自体を停止するので、信頼性の低いデータは取得もされず記憶もされないので好ましい。換言すれば、I2C監視シーケンシャルリードデータ記憶装置130(4)に記憶される例えばPI情報等は、極めて信頼性の高い情報のみとなる。 As a result, the I2C monitoring sequential read data storage device 130 (4) stops acquiring “Read data” in a situation where there may be an abnormality in the monitored I2C communication, so that data with low reliability is acquired. It is preferable because it is neither stored nor stored. In other words, for example, PI information stored in the I2C monitoring sequential read data storage device 130 (4) is only extremely reliable information.
デバイスアドレス「Device add」受信後のスレーブ回路120からの返信、またはバイトアドレス「Byte add」受信後のスレーブ回路120からの返信、のいずれか一方が「Nack」であれば、デバイスアドレス「Device add」受信後のスレーブ回路120からの返信、またはバイトアドレス「Byte add」受信後のスレーブ回路120からの返信、の少なくともいずれか一方が正常に受信されていないと考えられるところ、I2C監視シーケンシャルリードデータ記憶装置130(4)は、信頼性の高い読み出しデータ「Read data」のみを記憶することになるので、記憶された「Read data」の信頼性を向上させることができる。
If either the reply from the
図10と図15とは、I2C監視シーケンシャルリードデータ記憶装置130(4)の構成例を概念的に説明するブロック図である。図10に示すI2C監視シーケンシャルリードデータ記憶装置130(3)は、バイトアドレス「Byte add」受信後のスレーブ回路120からの返信が「Nack」であれば、I2C監視動作を停止して通信スタート信号「Start」待ちとなる構成例である。
FIGS. 10 and 15 are block diagrams conceptually illustrating a configuration example of the I2C monitoring sequential read data storage device 130 (4). If the reply from the
図10においては、既に説明したI2C監視シーケンシャルリードデータ記憶装置130(3)と同一の構成部位については対応する符号を付して、説明の重複を避けるためにここでは詳述を避けることとする。 In FIG. 10, the same components as those of the already described I2C monitoring sequential read data storage device 130 (3) are denoted by the corresponding reference numerals, and detailed description is avoided here to avoid duplication of explanation. .
図10に示すように、I2C監視シーケンシャルリードデータ記憶装置130(4)は、バイトアドレス「Byte add」受信後の「Ack」または「Nack」を一時記憶するアックナックレジスタ810(2)を備える。 As illustrated in FIG. 10, the I2C monitoring sequential read data storage device 130 (4) includes an acknowledgment register 810 (2) that temporarily stores “Ack” or “Nack” after receiving the byte address “Byte add”.
アックナックレジスタ810(2)は、バイトアドレス受信に対する「Ack」または「Nack」がスレーブ回路120から送信されるタイミングを検出するバイトアドレスアックデコーダ部520(3)からのトリガ入力により、シリアル/パラレル変換部280(4)でパラレル変換された「Ack」または「Nack」を、一時記憶する。
The ACKNACK register 810 (2) receives serial or parallel data in response to a trigger input from the byte address ACK decoder unit 520 (3) that detects the timing at which “Ack” or “Nack” is transmitted from the
また、アックナックレジスタ810(2)は、一時記憶した情報が「Nack」であれば、Nack検出部220(4)に信号出力する。信号出力を受けたNack検出部220(4)は、セットリセット部230(4)に初期化信号を出力させる。セットリセット部230(4)の初期化信号を入力されたビットカウンタ240(4)は、カウントアップを停止する。 Further, if the temporarily stored information is “Nack”, the acknowledge register 810 (2) outputs a signal to the Nack detection unit 220 (4). Receiving the signal output, the Nack detector 220 (4) causes the set / reset unit 230 (4) to output an initialization signal. The bit counter 240 (4) to which the initialization signal of the set / reset unit 230 (4) is input stops counting up.
なお、I2C監視シーケンシャルリードデータ記憶装置130(4)は、バイトアドレス受信に対する「Ack」または「Nack」がスレーブ回路120から送信されるタイミングを検出するバイトアドレスアックデコーダ部520(3)に替えて、またはバイトアドレスアックデコーダ部520(3)と共にデバイスアドレス受信に対する「Ack」または「Nack」がスレーブ回路120から送信されるタイミングを検出するデバイスアドレスアックデコーダ部を備えてもよい。
Note that the I2C monitoring sequential read data storage device 130 (4) is replaced with a byte address ack decoder unit 520 (3) that detects the timing at which “Ack” or “Nack” for byte address reception is transmitted from the
また、図15に示すI2C監視シーケンシャルリードデータ記憶装置130(7)は、デバイスアドレス「Device add」受信後のスレーブ回路120からの返信、またはバイトアドレス「Byte add」受信後のスレーブ回路120からの返信、の少なくともいずれか一方が「Nack」であれば、I2C監視動作を停止して通信スタート信号「Start」待ちとなる構成例である。これにより、I2C監視シーケンシャルリードデータ記憶装置130(7)は、さらに信頼性の高い記憶データを保持することができる。
Further, the I2C monitoring sequential read data storage device 130 (7) shown in FIG. 15 receives a reply from the
I2C監視シーケンシャルリードデータ記憶装置130(7)は、I2C監視シーケンシャルリードデータ記憶装置130(4)が備えるバイトアドレスアックデコーダ部520(3)に替えて、バイトアドレスデバイスアドレスアックデコーダ部520(6)を備える。 The I2C monitoring sequential read data storage device 130 (7) replaces the byte address ack decoder unit 520 (3) provided in the I2C monitoring sequential read data storage device 130 (4), and a byte address device address ack decoder unit 520 (6). Is provided.
バイトアドレスデバイスアドレスアックデコーダ部520(6)は、バイトアドレス受信に対する「Ack」または「Nack」がスレーブ回路120から送信されるタイミングと、デバイスアドレス受信に対する「Ack」または「Nack」がスレーブ回路120から送信されるタイミングと、を検出する。
The byte address device address ack decoder unit 520 (6) has a timing at which “Ack” or “Nack” for byte address reception is transmitted from the
アックナックレジスタ810(2)は、上述のタイミングを検出したバイトアドレスデバイスアドレスアックデコーダ部520(6)からのトリガ入力により、シリアル/パラレル変換部280(4)でパラレル変換された「Ack」または「Nack」を、一時記憶する。 The ACK register 810 (2) receives “Ack” converted in parallel by the serial / parallel conversion unit 280 (4) in response to a trigger input from the byte address device address ACK decoder unit 520 (6) that has detected the timing described above. “Nack” is temporarily stored.
また、I2C監視シーケンシャルリードデータ記憶装置130(7)は、アックナックレジスタ810(2)が一時記憶した情報が「Nack」であれば、I2C監視動作を終了して「Start」待ちとなる。 If the information temporarily stored in the ACKNACK register 810 (2) is “Nack”, the I2C monitoring sequential read data storage device 130 (7) ends the I2C monitoring operation and waits for “Start”.
図11は、ランダムリード方式でバイトアドレスが「7」である場合のI2C監視シーケンシャルリードデータ記憶装置130(7)の動作及び処理の概要を説明するチャート図である。図11に示すように、I2C監視シーケンシャルリードデータ記憶装置130(7)は、スレーブ回路120を特定するデバイスアドレス「Device add」の受信後の返信が「Nack」であれば、アックナックレジスタ810(2)がNack検出部220(4)に通信終了信号「Nack」を検出した場合と同様の出力をセットリセット部230(4)にさせる。
FIG. 11 is a chart for explaining the outline of the operation and processing of the I2C monitoring sequential read data storage device 130 (7) when the byte address is “7” in the random read method. As shown in FIG. 11, the I2C monitoring sequential read data storage device 130 (7), if the reply after receiving the device address “Device add” specifying the
すなわち、Nack検出部220(4)はセットリセット部230(4)に「enable」信号の出力を停止させてビットカウンタ240(4)のカウントアップを停止させる。 That is, the Nack detection unit 220 (4) causes the set / reset unit 230 (4) to stop outputting the “enable” signal to stop the count up of the bit counter 240 (4).
なお、図11におけるI2C監視シーケンシャルリードデータ記憶装置130(7)のその余の動作と処理とは、I2C監視シーケンシャルリードデータ記憶装置130(2)の動作と処理と、として図6で既に説明しているので、説明の重複を避けるためにここでは詳述をしないこととする。 The remaining operations and processing of the I2C monitoring sequential read data storage device 130 (7) in FIG. 11 are already described in FIG. 6 as operations and processing of the I2C monitoring sequential read data storage device 130 (2). Therefore, in order to avoid duplication of explanation, it will not be described in detail here.
また、I2C監視シーケンシャルリードデータ記憶装置130(7)は、スレーブ回路120を特定するデバイスアドレスに読み出し信号を加えた「Device add+Read」の受信後の返信が「Nack」であれば、I2C監視制御動作を停止する。すなわち、第三の実施形態における「Device add」は、「Device add+Read」である場合も「Device add+Write」である場合もいずれの場合においても含まれるものとする。
Further, the I2C monitoring sequential read data storage device 130 (7) performs the I2C monitoring control operation if the reply after receiving “Device add + Read” obtained by adding a read signal to the device address specifying the
(第四の実施形態)
第四の実施形態にかかるI2C監視シーケンシャルリードデータ記憶装置130(5)は、単一のマスタ回路110に複数のスレーブ回路120がI2C接続されている場合に、情報取得対象となるスレーブ回路120を特定する期待値と、取得したデバイスアドレス「Device add」とを比較する。(Fourth embodiment)
The I2C monitoring sequential read data storage device 130 (5) according to the fourth embodiment includes a
そして、I2C監視シーケンシャルリードデータ記憶装置130(5)は、情報取得対象となるスレーブ回路120を特定する期待値と、取得したデバイスアドレス「Device add」とが一致した場合のみ、情報取得対象となる特定のスレーブ回路120のPI情報等を取得する。
The I2C monitoring sequential read data storage device 130 (5) becomes an information acquisition target only when the expected value for specifying the
これにより、I2C監視シーケンシャルリードデータ記憶装置130(5)は、接続されているI2Cインターフェース140に複数のスレーブ回路120が存在する場合においても、所望のスレーブ回路120のPI情報等を取得することが可能となる。
As a result, the I2C monitoring sequential read data storage device 130 (5) can acquire PI information and the like of the desired
図12は、I2C監視シーケンシャルリードデータ記憶装置130(5)の構成概要を概念的に説明する図である。図12においては、上述した実施形態で既に説明した構成部位と同一の部位には対応する符号を付して、説明の重複を避けるためにここでは詳述を避けることとする。 FIG. 12 is a diagram conceptually illustrating a configuration outline of the I2C monitoring sequential read data storage device 130 (5). In FIG. 12, the same parts as those already described in the above-described embodiment are denoted by the corresponding reference numerals, and detailed description is avoided here in order to avoid duplication of explanation.
図12に示すように、I2C監視シーケンシャルリードデータ記憶装置130(5)は、デバイスアドレス「Device add」がマスタ回路110から送信されるタイミングを検出するデバイスアドレスデコーダ部1210を備える。デバイスアドレスデコーダ部1210は、ビットカウンタ240(5)とバイトカウンタ250(5)とのカウンタ値に基づいて、デバイスアドレス「Device add」がマスタ回路110から送信されるタイミングを検出する。
As illustrated in FIG. 12, the I2C monitoring sequential read data storage device 130 (5) includes a device
また、I2C監視シーケンシャルリードデータ記憶装置130(5)は、デバイスアドレスデコーダ部1210が検出したタイミングをトリガとして、シリアルデータ接続線140aから入力されたデバイスアドレス「Device add」を一時記憶するデバイスアドレスレジスタ1220を備える。デバイスアドレスレジスタ1220が一時記憶するデバイスアドレス「Device add」は、シリアル/パラレル変換部280(5)がパラレルに変換したデータである。
The I2C monitoring sequential read data storage device 130 (5) is a device address register that temporarily stores the device address “Device add” input from the serial
また、I2C監視シーケンシャルリードデータ記憶装置130(5)は、デバイスアドレスレジスタ1220に一時記憶されたデバイスアドレス「Device add」と、予め設定されている期待値と、を比較するデバイスアドレス期待値比較部1230を備える。
The I2C monitoring sequential read data storage device 130 (5) also compares a device address “Device add” temporarily stored in the
デバイスアドレス期待値比較部1230は、情報取得対象である特定のスレーブ回路120に対応するデバイスアドレス「Device add」を期待値として記憶する期待値記憶部1231を備える。期待値記憶部1231が記憶する期待値は、オペレータ等により予め設定されていてもよい。
The expected device
デバイスアドレス期待値比較部1230がデバイスアドレス「Device add」と期待値とを比較した結果、一致する場合には、I2C監視シーケンシャルリードデータ記憶装置130(5)は、処理を継続して「Read data」の取得と記憶とをする。
If the device address expected
また、デバイスアドレス期待値比較部1230がデバイスアドレス「Device add」と期待値とを比較した結果、一致しない場合には、デバイスアドレス期待値比較部1230は、Nack検出部220(5)に不一致信号出力する。Nack検出部220(5)は、デバイスアドレス期待値比較部1230から不一致信号を入力されると、通信終了信号「Nack」を検出した場合と同様に、I2C監視シーケンシャルリードデータ記憶装置130(5)の監視動作を停止させる処理をする。
When the device address expected
図12において、不一致信号を受けたNack検出部220(5)は、セットリセット部230(5)に初期化信号を出力させる。セットリセット部230(5)の初期化信号を入力されたビットカウンタ240(5)は、カウントアップを停止する。なお、セットリセット部230(5)の初期化信号とは、典型的にはビットカウンタ240(5)に対する「enable」フラグを下げる処理に対応する。 In FIG. 12, the Nack detection unit 220 (5) that has received the mismatch signal causes the set / reset unit 230 (5) to output an initialization signal. The bit counter 240 (5) to which the initialization signal of the set / reset unit 230 (5) is input stops counting up. The initialization signal of the set / reset unit 230 (5) typically corresponds to a process of lowering the “enable” flag for the bit counter 240 (5).
図13は、I2C監視シーケンシャルリードデータ記憶装置130(5)の動作と処理との概要を説明するチャート図である。図13においては、バイトアドレス「Byte add」が、「7」である場合の例を示している。 FIG. 13 is a chart for explaining the outline of the operation and processing of the I2C monitoring sequential read data storage device 130 (5). FIG. 13 shows an example in which the byte address “Byte add” is “7”.
図13に示すように、期待値記憶部1230は、予め情報取得対象となるスレーブ回路120のデバイスアドレスに対応する期待値「A0h」を記憶している。I2C監視シーケンシャルリードデータ記憶装置130(5)が、シリアルデータ接続線140aから取得したデバイスアドレス「Device add」は「C0h」であり、デバイスアドレスデコーダ部1210からのトリガにより、デバイスアドレスレジスタ1220に「C0h」が一時記憶される。
As illustrated in FIG. 13, the expected
また、デバイスアドレス期待値比較部1230は、デバイスアドレスレジスタ1220に記憶された「C0h」と、期待値記憶部1230が予め記憶する期待値「A0h」と、比較する。デバイスアドレス期待値比較部1230は、比較結果が不一致であるので不一致信号をNack検出部220(5)に出力する。
The device address expected
Nack検出部220(5)は、セットリセット部230(5)のリセットにトリガを送出し、セットリセット部230(5)は、ビットカウンタ240(5)へ出力する「enable」フラグを下げる。これにより、ビットカウンタ240(5)は、カウントアップを停止して通信スタート「Start」待ち状態となる。この場合には、I2C監視シーケンシャルリードデータ記憶装置130(5)は、次の通信スタート信号「Start」が取得されるまで動作しない。 The Nack detection unit 220 (5) sends a trigger to reset the set reset unit 230 (5), and the set reset unit 230 (5) lowers the “enable” flag output to the bit counter 240 (5). As a result, the bit counter 240 (5) stops counting up and enters a communication start “Start” waiting state. In this case, the I2C monitoring sequential read data storage device 130 (5) does not operate until the next communication start signal “Start” is acquired.
これにより、I2C監視シーケンシャルリードデータ記憶装置130(5)は、複数のスレーブ回路120が接続されている場合においても、正常な読み出しデータを取り出すことが可能となる。
Thus, the I2C monitoring sequential read data storage device 130 (5) can extract normal read data even when a plurality of
(第五の実施形態)
第五の実施形態で説明するI2C監視シーケンシャルリードデータ記憶装置130(8)は、第一の実施形態で説明した図5に示すI2C監視シーケンシャルリードデータ記憶装置130(2)の構成と同じ構成となる。(Fifth embodiment)
The I2C monitoring sequential read data storage device 130 (8) described in the fifth embodiment has the same configuration as the configuration of the I2C monitoring sequential read data storage device 130 (2) illustrated in FIG. 5 described in the first embodiment. Become.
但し、I2C監視シーケンシャルリードデータ記憶装置130(8)は、アドレスカウンタ290(2)がゼロにリセットされるのは、I2C監視シーケンシャルリードデータ記憶装置130(8)の電源投入(パワーオン)時のみとする。 However, in the I2C monitoring sequential read data storage device 130 (8), the address counter 290 (2) is reset to zero only when the I2C monitoring sequential read data storage device 130 (8) is powered on (powered on). And
I2C監視シーケンシャルリードデータ記憶装置130(8)は、アドレスカウンタ290(2)が電源投入時を除いてリセットされないので、I2C監視動作中は常にアドレスカウンタ290(2)のカウンタ値が保持されて、スレーブ回路120のバイトアドレス「Byte add」と一致した値となる。
Since the address counter 290 (2) is not reset except when the power is turned on, the I2C monitoring sequential read data storage device 130 (8) always holds the counter value of the address counter 290 (2) during the I2C monitoring operation. The value coincides with the byte address “Byte add” of the
このため、I2C監視シーケンシャルリードデータ記憶装置130(8)は、様々な読み出し方式で交互にアクセスされた場合においても、常にスレーブ回路120と同一の読み出しアドレスを保持し、正常な読み出しデータを取得して記憶できる。
Therefore, the I2C monitoring sequential read data storage device 130 (8) always holds the same read address as that of the
I2C監視シーケンシャルリードデータ記憶装置130(8)は、典型的にはランダムリード方式の後にシーケンシャルリード方式で読み出し処理があった場合に好適である。ランダム方式によるマスタ回路110とスレーブ回路120との通信終了後は、スレーブ回路120側にランダム方式による最後の読み出しバイトアドレスが保持される。スレーブ回路120は、その電源投入時に読み出しアドレスがゼロに初期化されるのみで、電源が投入されている限り最後の読み出しアドレスが残留する。
The I2C monitoring sequential read data storage device 130 (8) is typically suitable when a read process is performed by the sequential read method after the random read method. After the communication between the
一方、I2C監視シーケンシャルリードデータ記憶装置130(8)は、ランダム方式による読み出しが終了した時点の通信終了信号「Nack」により、初期化されることはなく、アドレスカウンタ290(2)がランダム方式による読み出しが終了した時点の読み出しアドレスを保持する。 On the other hand, the I2C monitoring sequential read data storage device 130 (8) is not initialized by the communication end signal “Nack” at the time when reading by the random method is completed, and the address counter 290 (2) is based on the random method. Holds the read address at the end of the read.
これにより、スレーブ回路120が保持する読み出しアドレスと、I2C監視シーケンシャルリードデータ記憶装置130(8)が保持する読み出しアドレスとが、合致することとなり、その後シーケンシャル方式に移行した場合でも、双方が保持するアドレスから順次読み出し処理できることとなる。
As a result, the read address held by the
ここで仮に、I2C監視シーケンシャルリードデータ記憶装置130(8)が、ランダム方式による読み出しが終了した時点の通信終了信号「Nack」により、初期化されるとすれば、アドレスカウンタ290(2)がランダム方式による読み出しが終了した時点の読み出しアドレスを保持せずにカウンタ値がゼロとなる。この場合に、スレーブ回路120が保持する読み出しアドレスは、ランダム方式による読み出しが終了した時点の最後のアドレスである。すなわち、この状態でシーケンシャルリード方式に移行すれば、読み出しアドレスの初期値が、I2C監視シーケンシャルリードデータ記憶装置130(8)とスレーブ回路120とで異なることとなるので、I2C監視シーケンシャルリードデータ記憶装置130(8)は、正確な情報を取得できないこととなる。
Here, if the I2C monitoring sequential read data storage device 130 (8) is initialized by the communication end signal “Nack” at the time when reading by the random method is completed, the address counter 290 (2) is randomly set. The counter value becomes zero without holding the read address at the time when reading by the method is completed. In this case, the read address held by the
第五の実施形態で説明したI2C監視シーケンシャルリードデータ記憶装置130(8)は、アドレスカウンタ290(2)をパワーオンリセット、またはI2C監視シーケンシャルリードデータ記憶装置130(8)が組み込まれたユニットのリセット時のみ(但し、ユニットのリセットにより読み出し対象スレーブ回路120はリセットされないものとする)とするので、様々な方式のI2C通信が継続してされた場合においても、正確に所望の情報を取得して記憶できるので好ましい。
The I2C monitoring sequential read data storage device 130 (8) described in the fifth embodiment includes a power-on reset of the address counter 290 (2) or a unit in which the I2C monitoring sequential read data storage device 130 (8) is incorporated. Since it is only at reset (however, the read
第一の実施形態乃至第五の実施形態で例示したI2C監視シーケンシャルリードデータ記憶装置130(1)乃至I2C監視シーケンシャルリードデータ記憶装置130(8)の構成は、各々、各実施形態での説明に限定されるものではなく、自明な範囲で適宜その構成を変更することができる。 The configurations of the I2C monitoring sequential read data storage device 130 (1) to the I2C monitoring sequential read data storage device 130 (8) illustrated in the first to fifth embodiments will be described in each embodiment. The configuration is not limited, and the configuration can be changed as appropriate within the obvious range.
また、第一の実施形態乃至第五の実施形態で例示したI2C監視シーケンシャルリードデータ記憶装置130(1)乃至I2C監視シーケンシャルリードデータ記憶装置130(8)の動作と処理とは、各々、各実施形態での説明に限定されるものではなく、自明な範囲で適宜その動作と処理とを変更することができる。 The operations and processes of the I2C monitoring sequential read data storage device 130 (1) to the I2C monitoring sequential read data storage device 130 (8) illustrated in the first to fifth embodiments are respectively performed. It is not limited to the description in the form, and its operation and processing can be changed as appropriate within the obvious range.
この発明は、I2Cインターフェースを介して通信するマスタ回路とスレーブ回路との通信データを監視する装置等に利用できる。 The present invention can be used for an apparatus for monitoring communication data between a master circuit and a slave circuit that communicate via an I2C interface.
Claims (12)
前記スレーブ回路のアドレス相当数をカウントするアドレスカウンタを備え、
前記スレーブ回路の所定領域を指定するバイトアドレスを取得した場合に、取得した前記バイトアドレスを、前記アドレスカウンタの初期値とする
ことを特徴とするI2C監視シーケンシャルリードデータ記憶装置。In an I2C monitoring sequential read data storage device for acquiring communication data between a master circuit and a slave circuit via an I2C interface,
An address counter for counting the number of addresses corresponding to the slave circuit;
An I2C monitoring sequential read data storage device characterized in that, when a byte address specifying a predetermined area of the slave circuit is acquired, the acquired byte address is used as an initial value of the address counter.
取得した前記バイトアドレスを一時記憶するバイトアドレスレジスタを備え、
前記スレーブ回路が前記バイトアドレスの受信に対する正常信号を返信した場合に、前記バイトアドレスレジスタに一時記憶した前記バイトアドレスを、前記アドレスカウンタの初期値とする
ことを特徴とするI2C監視シーケンシャルリードデータ記憶装置。The I2C monitoring sequential read data storage device according to claim 1,
A byte address register for temporarily storing the acquired byte address;
When the slave circuit returns a normal signal for reception of the byte address, the byte address temporarily stored in the byte address register is used as an initial value of the address counter. I2C monitoring sequential read data storage apparatus.
前記スレーブ回路を特定するデバイスアドレスまたは前記バイトアドレスを受信した前記スレーブ回路が、異常信号を返信した場合に、
取得した前記通信データを記憶しない
ことを特徴とするI2C監視シーケンシャルリードデータ記憶装置。In the I2C monitoring sequential read data storage device according to claim 1 or 2,
When the slave circuit that has received the device address or the byte address specifying the slave circuit has returned an abnormal signal,
An I2C monitoring sequential read data storage device characterized by not storing the acquired communication data.
前記スレーブ回路を特定するデバイスアドレスまたは前記バイトアドレスを受信した前記スレーブ回路の返信信号を一時記憶するアックナックレジスタと、前記アドレスカウンタのカウンタ値をデコードして前記取得した通信データを記憶するタイミングを出力するデコーダ部と、を備え、
前記アックナックレジスタから入力された前記返信信号が異常信号である場合に、前記取得した通信データを記憶しないように、前記デコーダ部は、前記通信データを記憶するタイミングを出力しない
ことを特徴とするI2C監視シーケンシャルリードデータ記憶装置。The I2C monitoring sequential read data storage device according to any one of claims 1 to 3,
An acknowledge register that temporarily stores a reply signal of the slave circuit that has received the device address or the byte address that identifies the slave circuit, and a timing for storing the acquired communication data by decoding the counter value of the address counter An output decoder unit,
The decoder unit does not output a timing for storing the communication data so as not to store the acquired communication data when the reply signal input from the acknack register is an abnormal signal. I2C monitoring sequential read data storage device.
前記スレーブ回路を特定する前記デバイスアドレスの受信または前記バイトアドレスを受信した前記スレーブ回路が、前記異常信号を返信した場合に、
初期化される
ことを特徴とするI2C監視シーケンシャルリードデータ記憶装置。In the I2C monitoring sequential read data storage device according to claim 3 or 4,
When the slave circuit that has received the device address or the byte address specifying the slave circuit has returned the abnormal signal,
An I2C monitoring sequential read data storage device characterized by being initialized.
前記マスタ回路と前記スレーブ回路との間の通信を終了する終了信号を検出すると、前記I2C監視シーケンシャルリードデータ記憶装置を初期化するナック検出部を備え、
前記ナック検出部は、前記アックナックレジスタから入力された前記返信信号が異常信号である場合に、前記I2C監視シーケンシャルリードデータ記憶装置を初期化する
ことを特徴とするI2C監視シーケンシャルリードデータ記憶装置。The I2C monitoring sequential read data storage device according to claim 4,
A detection unit that initializes the I2C monitoring sequential read data storage device when detecting an end signal for ending communication between the master circuit and the slave circuit;
The I2C monitoring sequential read data storage device, wherein the Nack detection unit initializes the I2C monitoring sequential read data storage device when the reply signal input from the acknack register is an abnormal signal.
複数の前記スレーブ回路が前記I2Cインターフェースを介して接続され、
I2C監視シーケンシャルリードデータ記憶装置は、情報取得対象となる前記スレーブ回路を特定するデバイスアドレス期待値を予め設定され、前記デバイスアドレス期待値に対応する前記スレーブ回路の通信データを記憶する
ことを特徴とするI2C監視シーケンシャルリードデータ記憶装置。In the I2C monitoring sequential read data storage device according to claim 1 or 2,
A plurality of the slave circuits are connected via the I2C interface;
An I2C monitoring sequential read data storage device is characterized in that a device address expected value for specifying the slave circuit to be acquired information is preset, and communication data of the slave circuit corresponding to the device address expected value is stored. I2C monitoring sequential read data storage device.
I2C監視シーケンシャルリードデータ記憶装置は、情報取得対象となる前記スレーブ回路を特定するデバイスアドレス期待値を予め記憶する期待値記憶部と、
前記期待値記憶部が記憶する前記デバイスアドレス期待値と、取得した前記デバイスアドレスと、を比較するデバイスアドレス期待値比較部と、を備え、
前記デバイスアドレス期待値比較部は、前記デバイスアドレス期待値と取得した前記デバイスアドレスとが異なる場合に、I2C監視シーケンシャルリードデータ記憶装置の初期化信号を出力する
ことを特徴とするI2C監視シーケンシャルリードデータ記憶装置。The I2C monitoring sequential read data storage device according to claim 7,
An I2C monitoring sequential read data storage device includes an expected value storage unit that stores in advance a device address expected value that identifies the slave circuit that is an information acquisition target;
A device address expected value comparison unit that compares the expected device address value stored in the expected value storage unit with the acquired device address; and
The device address expected value comparison unit outputs an initialization signal of an I2C monitoring sequential read data storage device when the device address expected value is different from the acquired device address. I2C monitoring sequential read data Storage device.
前記アドレスカウンタと前記スレーブ回路のアドレスカウントとは合致するように、前記I2C監視シーケンシャルリードデータ記憶装置の電源投入時のみに前記アドレスカウンタを初期化する
ことを特徴とするI2C監視シーケンシャルリードデータ記憶装置。In the I2C monitoring sequential read data storage device according to claim 1 or 2,
The I2C monitoring sequential read data storage device, wherein the address counter is initialized only when the I2C monitoring sequential read data storage device is turned on so that the address counter matches the address count of the slave circuit. .
前記アドレスカウンタは、前記マスタ回路から前記スレーブ回路に送信されるスタート信号を取得した場合も、前記マスタ回路から前記スレーブ回路に送信されるリスタート信号を取得した場合も、いずれの場合にも初期化されない
ことを特徴とするI2C監視シーケンシャルリードデータ記憶装置。The I2C monitoring sequential read data storage device according to claim 9,
The address counter is initial in both cases when a start signal transmitted from the master circuit to the slave circuit is acquired and when a restart signal transmitted from the master circuit to the slave circuit is acquired. An I2C monitoring sequential read data storage device, characterized in that:
前記スレーブ回路はEEPROMであり、
前記I2C監視シーケンシャルリードデータ記憶装置は、前記マスタ回路が前記I2Cインターフェースを介して読み出した前記EEPROMの前記所定領域に記憶されたデータを取得して記憶する記憶部を備える
ことを特徴とするI2C監視シーケンシャルリードデータ記憶装置。The I2C monitoring sequential read data storage device according to any one of claims 1 to 10,
The slave circuit is an EEPROM;
The I2C monitoring sequential read data storage device includes a storage unit that acquires and stores data stored in the predetermined area of the EEPROM read by the master circuit via the I2C interface. Sequential read data storage device.
前記I2Cインターフェースの読み出し方式は、ランダムリード方式またはシーケンシャルリード方式またはシーケンシャルランダムリード方式のいずれか一つ以上の方式である
ことを特徴とするI2C監視シーケンシャルリードデータ記憶装置。The I2C monitoring sequential read data storage device according to any one of claims 1 to 11,
The I2C monitoring sequential read data storage device is characterized in that the read method of the I2C interface is at least one of a random read method, a sequential read method, and a sequential random read method.
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/JP2009/000809 WO2010097831A1 (en) | 2009-02-24 | 2009-02-24 | I2c monitor sequential read data storage device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPWO2010097831A1 JPWO2010097831A1 (en) | 2012-08-30 |
| JP5298185B2 true JP5298185B2 (en) | 2013-09-25 |
Family
ID=42665062
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2011501345A Expired - Fee Related JP5298185B2 (en) | 2009-02-24 | 2009-02-24 | I2C monitoring sequential read data storage device |
Country Status (2)
| Country | Link |
|---|---|
| JP (1) | JP5298185B2 (en) |
| WO (1) | WO2010097831A1 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109213718A (en) * | 2018-11-12 | 2019-01-15 | 上海艾为电子技术股份有限公司 | A kind of I2C communication device and I2C communication equipment |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9778971B2 (en) * | 2011-09-27 | 2017-10-03 | Mitsubishi Electric Corporation | Slave device, master device, and communication method |
| JP6166053B2 (en) * | 2013-02-06 | 2017-07-19 | ローム株式会社 | Semiconductor device, communication system, camera shake correction controller, imaging device, electronic equipment |
| US11210260B1 (en) | 2020-07-29 | 2021-12-28 | Astec International Limited | Systems and methods for monitoring serial communication between devices |
| CN115658409B (en) | 2022-11-11 | 2023-03-14 | 苏州浪潮智能科技有限公司 | An anomaly detection method, device, host device, system, and storage medium |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2000231539A (en) * | 1999-02-12 | 2000-08-22 | Ricoh Co Ltd | Data transfer system and data transfer method |
| JP2002175269A (en) * | 2000-09-29 | 2002-06-21 | Lucent Technol Inc | Extended bridge device for i2c bus and method |
| JP2005006306A (en) * | 2003-06-12 | 2005-01-06 | Hewlett-Packard Development Co Lp | Inter-integrated circuit router error management system and method |
| JP2005004745A (en) * | 2003-06-12 | 2005-01-06 | Hewlett-Packard Development Co Lp | Bus router between integrated circuits |
| JP2005250681A (en) * | 2004-03-02 | 2005-09-15 | Sanyo Electric Co Ltd | Data transfer memory and module |
| JP2005310154A (en) * | 2004-04-19 | 2005-11-04 | Intersil Americas Inc | 2-wire interface between chips |
| JP2008197752A (en) * | 2007-02-08 | 2008-08-28 | Sharp Corp | Data communication malfunction prevention device, electronic apparatus, data communication malfunction prevention device control method, data communication malfunction prevention device control program, and recording medium recording the program |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH08316973A (en) * | 1995-05-23 | 1996-11-29 | Hitachi Ltd | Communication processing means |
-
2009
- 2009-02-24 WO PCT/JP2009/000809 patent/WO2010097831A1/en not_active Ceased
- 2009-02-24 JP JP2011501345A patent/JP5298185B2/en not_active Expired - Fee Related
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2000231539A (en) * | 1999-02-12 | 2000-08-22 | Ricoh Co Ltd | Data transfer system and data transfer method |
| JP2002175269A (en) * | 2000-09-29 | 2002-06-21 | Lucent Technol Inc | Extended bridge device for i2c bus and method |
| JP2005006306A (en) * | 2003-06-12 | 2005-01-06 | Hewlett-Packard Development Co Lp | Inter-integrated circuit router error management system and method |
| JP2005004745A (en) * | 2003-06-12 | 2005-01-06 | Hewlett-Packard Development Co Lp | Bus router between integrated circuits |
| JP2005250681A (en) * | 2004-03-02 | 2005-09-15 | Sanyo Electric Co Ltd | Data transfer memory and module |
| JP2005310154A (en) * | 2004-04-19 | 2005-11-04 | Intersil Americas Inc | 2-wire interface between chips |
| JP2008197752A (en) * | 2007-02-08 | 2008-08-28 | Sharp Corp | Data communication malfunction prevention device, electronic apparatus, data communication malfunction prevention device control method, data communication malfunction prevention device control program, and recording medium recording the program |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109213718A (en) * | 2018-11-12 | 2019-01-15 | 上海艾为电子技术股份有限公司 | A kind of I2C communication device and I2C communication equipment |
| CN109213718B (en) * | 2018-11-12 | 2024-01-26 | 上海艾为电子技术股份有限公司 | I2C communication device and I2C communication equipment |
Also Published As
| Publication number | Publication date |
|---|---|
| JPWO2010097831A1 (en) | 2012-08-30 |
| WO2010097831A1 (en) | 2010-09-02 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN112579509B (en) | Single-wire communication method, single-wire communication device, electronic equipment and readable storage medium | |
| JP5298185B2 (en) | I2C monitoring sequential read data storage device | |
| US7685325B2 (en) | Synchronous bus controller system | |
| EP3537307A1 (en) | Method for handling i2c bus deadlock, electronic device, and communication system | |
| US8364872B2 (en) | Slave and communicating method between a master and the same | |
| US9645898B2 (en) | Storage control device and control device for detecting abnormality of signal line | |
| CN110580235B (en) | SAS expander communication method and device | |
| JP5082580B2 (en) | Memory system, memory controller, control method, and control program | |
| CN107357595B (en) | Bus-based multi-driver firmware online updating system | |
| US10721022B2 (en) | Communication apparatus, communication method, program, and communication system | |
| US9934117B2 (en) | Apparatus and method for fault detection to ensure device independence on a bus | |
| US20150237145A1 (en) | Information processing system and method | |
| US8391162B2 (en) | Apparatus and method for testing SMNP cards | |
| CN113946480B (en) | I2C bus detection device and method | |
| US9258475B2 (en) | Wireless imaging system, method of controlling wireless imaging system, wireless communication apparatus, and storage medium | |
| EP3316523A1 (en) | Host-side transceiver device and transceiver system | |
| CN117519735A (en) | Single-line programming method and device, and computer readable storage medium | |
| KR20150110860A (en) | Apparatus and method for firmware updating of vehicle | |
| US7992012B2 (en) | Power source control circuit, power source control device, power source control system, and information processing device | |
| KR102174456B1 (en) | Apparatus for synchronizing in serial communication interface and method thereof | |
| US11012195B2 (en) | Method, sensor, and controller for transmitting a data packet from a sensor to a controller | |
| US8291143B1 (en) | Single line communication | |
| US9606857B2 (en) | Electronic control unit | |
| CN108541307B (en) | Programmable controller and synchronous control method | |
| JP5801330B2 (en) | Device status monitoring method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20130604 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20130617 |
|
| R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| LAPS | Cancellation because of no payment of annual fees |