JP7786759B1 - Slave device, processing system, processing method, and program - Google Patents
Slave device, processing system, processing method, and programInfo
- Publication number
- JP7786759B1 JP7786759B1 JP2024113226A JP2024113226A JP7786759B1 JP 7786759 B1 JP7786759 B1 JP 7786759B1 JP 2024113226 A JP2024113226 A JP 2024113226A JP 2024113226 A JP2024113226 A JP 2024113226A JP 7786759 B1 JP7786759 B1 JP 7786759B1
- Authority
- JP
- Japan
- Prior art keywords
- slave device
- slave
- data
- read request
- master device
- 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.)
- Active
Links
Landscapes
- Information Transfer Systems (AREA)
Abstract
【課題】システムにおいて、同一のI2Cアドレスを有するスレーブデバイスが複数存在可能であり、マスターデバイスからリード要求があった場合であっても、適切なタイミングでデータを送信するスレーブデバイス、処理システム、処理方法及びプログラムを提供する。
【解決手段】処理システムにおいて、Inter-Integrated Circuit通信方式を用いて通信を行う複数のスレーブデバイス20は、マスターデバイスからリード要求を受信する受信手段と、前記受信手段が前記リード要求を受信した場合に、設定された識別子に応じたタイミングでデータを出力する出力手段と、を備える。
【選択図】図10
A system allows multiple slave devices with the same I2C address to exist, and provides a slave device, processing system, processing method, and program that transmits data at an appropriate timing even when a read request is made from a master device.
[Solution] In a processing system, a plurality of slave devices 20 that communicate using an Inter-Integrated Circuit communication method include a receiving means that receives a read request from a master device, and an output means that, when the receiving means receives the read request, outputs data at a timing according to a set identifier.
[Selected Figure] Figure 10
Description
本開示は、スレーブデバイス、処理システム、処理方法、およびプログラムに関する。 This disclosure relates to a slave device, a processing system, a processing method, and a program.
Inter-Integrated Circuit通信方式を用いた通信(I2C方式の通信)は、さまざまな分野で利用されている。特許文献1には、関連する技術として、マスターとスレーブとの関係にあるデバイス間の通信に関する技術が開示されている。 Communication using the Inter-Integrated Circuit (I2C) communication method is used in a variety of fields. Patent Document 1 discloses a related technology for communication between devices in a master-slave relationship.
特許文献1に関連するI2Cの通信の分野では、システムにおいて、同一のI2Cアドレスを有するスレーブデバイスが複数存在可能であり、マスターデバイスからリード要求があった場合であっても、適切なタイミングでデータを送信することのできる技術が求められている。 In the field of I2C communications related to Patent Document 1, multiple slave devices with the same I2C address can exist in a system, and there is a demand for technology that can transmit data at the appropriate time even when a read request is made by a master device.
本開示の各態様は、上記の課題を解決することのできるスレーブデバイス、処理システム、処理方法、およびプログラムを提供することを目的の1つとしている。 One of the objectives of each aspect of the present disclosure is to provide a slave device, processing system, processing method, and program that can solve the above-mentioned problems.
本開示の一態様によれば、スレーブデバイスは、Inter-Integrated Circuit通信方式を用いて通信を行うスレーブデバイスであって、マスターデバイスからリード要求を受信する受信手段と、前記受信手段が前記リード要求を受信した場合に、設定された識別子に応じたタイミングでデータを出力する出力手段と、を備える。 According to one aspect of the present disclosure, the slave device is a slave device that communicates using an Inter-Integrated Circuit communication method, and includes a receiving means that receives a read request from a master device, and an output means that, when the receiving means receives the read request, outputs data at a timing according to a set identifier.
本開示の別の態様によれば、処理システムは、上記のスレーブデバイスと、前記スレーブデバイスにリード要求を送信するマスターデバイスと、を備える。 According to another aspect of the present disclosure, a processing system includes the above-mentioned slave device and a master device that sends a read request to the slave device.
本開示の別の態様によれば、処理方法は、Inter-Integrated Circuit通信方式を用いて通信を行うスレーブデバイスが実行する処理方法であって、マスターデバイスからリード要求を受信することと、前記リード要求を受信した場合に、設定された識別子に応じたタイミングでデータを出力することと、を含む。 According to another aspect of the present disclosure, a processing method is executed by a slave device that communicates using an Inter-Integrated Circuit communication method, and includes receiving a read request from a master device, and, upon receiving the read request, outputting data at a timing according to a set identifier.
本開示の別の態様によれば、プログラムは、Inter-Integrated Circuit通信方式を用いて通信を行うスレーブデバイスのコンピュータに、マスターデバイスからリード要求を受信することと、前記リード要求を受信した場合に、設定された識別子に応じたタイミングでデータを出力することと、を実行させる。 According to another aspect of the present disclosure, a program causes a computer of a slave device that communicates using an Inter-Integrated Circuit communication method to receive a read request from a master device, and, upon receiving the read request, output data at a timing according to a set identifier.
本開示の各態様によれば、システムにおいて、同一のI2Cアドレスを有するスレーブデバイスが複数存在可能であり、マスターデバイスからリード要求があった場合であっても、適切なタイミングでデータを送信することができる。 According to each aspect of the present disclosure, multiple slave devices with the same I2C address can exist in a system, and even when a read request is received from a master device, data can be transmitted at the appropriate time.
以下、図面を参照しながら実施形態について詳しく説明する。
<実施形態>
本開示の一実施形態にかかる処理システム1について図面を参照して説明する。処理システム1は、同一のInter-Integrated Circuit(以下、「I2C」と記載)アドレスに対する同時アクセスを可能にするシステムである。具体的には、処理システム1は、I2CバスのI2Cアドレスを7ビットのままとし、I2Cアドレスとは別にデバイスの識別子(IDentifier、以下、「ID」と記載)を有することにより、I2Cバスに接続可能なデバイスの数を増加させ、同時アクセスが可能となる。以下、このことが明確になるよう処理システム1について説明する。
Hereinafter, the embodiments will be described in detail with reference to the drawings.
<Embodiment>
A processing system 1 according to an embodiment of the present disclosure will be described with reference to the drawings. The processing system 1 is a system that enables simultaneous access to the same Inter-Integrated Circuit (hereinafter referred to as "I2C") address. Specifically, the processing system 1 keeps the I2C address of the I2C bus at 7 bits and has a device identifier (IDentifier, hereinafter referred to as "ID") separate from the I2C address, thereby increasing the number of devices that can be connected to the I2C bus and enabling simultaneous access. The processing system 1 will be described below to clarify this point.
(処理システムの構成)
図1は、本開示のいくつかの実施形態にかかる処理システム1の構成の一例を示す図である。本開示の一実施形態にかかる処理システム1は、図1に示すように、マスターデバイス10、スレーブデバイス20a1、20a2、20a3、20a4、20a5、20a6、20a7、20a8、20a9、20a10、20a11、20a12、20a13、20a14、20a15、20a16、およびI2Cバス30を備える。スレーブデバイス20a1、20a2、20a3、20a4、20a5、20a6、20a7、20a8、20a9、20a10、20a11、20a12、20a13、20a14、20a15、20a16を総称して、スレーブデバイス20aということがある。
(Configuration of processing system)
1 is a diagram illustrating an example of a configuration of a processing system 1 according to some embodiments of the present disclosure. As shown in FIG. 1 , the processing system 1 according to one embodiment of the present disclosure includes a master device 10, slave devices 20a1, 20a2, 20a3, 20a4, 20a5, 20a6, 20a7, 20a8, 20a9, 20a10, 20a11, 20a12, 20a13, 20a14, 20a15, and 20a16, and an I2C bus 30. The slave devices 20a1, 20a2, 20a3, 20a4, 20a5, 20a6, 20a7, 20a8, 20a9, 20a10, 20a11, 20a12, 20a13, 20a14, 20a15, and 20a16 may be collectively referred to as slave devices 20a.
マスターデバイス10は、同一のI2Cアドレスを有するスレーブデバイス20aにデータを同時に書き込む。図2は、本開示のいくつかの実施形態にかかるマスターデバイス10が行う書き込み処理を説明するための図である。図2は、マスターデバイス10が、I2Cアドレスx1のスレーブデバイス20a5、20a6、20a7、20a8に16ビット(2バイト)のデータを同時に書き込む場合のI2Cバスのライトサイクルの一例を示している。図2に示すように、マスターデバイス10は、I2Cの規格を逸脱することなく、同じI2Cアドレスx1を有するスレーブデバイス20aにライトサイクルに示す書き込みを実行することができる。 The master device 10 simultaneously writes data to the slave devices 20a having the same I2C address. Figure 2 is a diagram illustrating a write process performed by the master device 10 according to some embodiments of the present disclosure. Figure 2 shows an example of a write cycle of the I2C bus when the master device 10 simultaneously writes 16 bits (2 bytes) of data to the slave devices 20a5, 20a6, 20a7, and 20a8 at I2C address x1. As shown in Figure 2, the master device 10 can execute the write indicated in the write cycle to the slave device 20a having the same I2C address x1 without violating the I2C standard.
また、マスターデバイス10は、同一のI2Cアドレスを有するスレーブデバイス20aからデータを読み出す。なお、マスターデバイス10は、同一のI2Cアドレスを有するスレーブデバイス20aを予め登録しており、スレーブデバイス20aを予め知っている。または、マスターデバイス10の上位制御部(不図示)がスレーブデバイス20aを予め登録しており、マスターデバイス10は、その上位制御部からスレーブデバイス20aの情報を取得することによりスレーブデバイス20aを予め知ることができる。マスターデバイス10が行う処理の詳細については後述する。 The master device 10 also reads data from the slave device 20a having the same I2C address. The master device 10 has pre-registered the slave device 20a having the same I2C address, and is therefore aware of the slave device 20a. Alternatively, the master device 10's upper control unit (not shown) may have pre-registered the slave device 20a, and the master device 10 may obtain information about the slave device 20a from the upper control unit, thereby becoming aware of the slave device 20a. Details of the processing performed by the master device 10 will be described later.
スレーブデバイス20a1、20a2、20a3、20a4のそれぞれは、同一のI2Cアドレスを示すアドレス値x0を有する。スレーブデバイス20a5、20a6、20a7、20a8のそれぞれは、同一のI2Cアドレスを示すアドレス値x1を有する。スレーブデバイス20a9、20a10、20a11、20a12のそれぞれは、同一のI2Cアドレスを示すアドレス値x2を有する。スレーブデバイス20a13、20a14、20a15、20a16のそれぞれは、同一のI2Cアドレスを示すアドレス値x3を有する。 Slave devices 20a1, 20a2, 20a3, and 20a4 each have an address value x0 indicating the same I2C address. Slave devices 20a5, 20a6, 20a7, and 20a8 each have an address value x1 indicating the same I2C address. Slave devices 20a9, 20a10, 20a11, and 20a12 each have an address value x2 indicating the same I2C address. Slave devices 20a13, 20a14, 20a15, and 20a16 each have an address value x3 indicating the same I2C address.
また、スレーブデバイス20a1、20a5、20a9、20a13のそれぞれは、IDの値としてID0を有する。スレーブデバイス20a2、20a6、20a10、20a14のそれぞれは、IDの値としてID1を有する。スレーブデバイス20a3、20a7、20a11、20a15のそれぞれは、IDの値としてID2を有する。スレーブデバイス20a4、20a8、20a12、20a16のそれぞれは、IDの値としてID3を有する。 Furthermore, slave devices 20a1, 20a5, 20a9, and 20a13 each have an ID value of ID0. Slave devices 20a2, 20a6, 20a10, and 20a14 each have an ID value of ID1. Slave devices 20a3, 20a7, 20a11, and 20a15 each have an ID value of ID2. Slave devices 20a4, 20a8, 20a12, and 20a16 each have an ID value of ID3.
図3は、本開示のいくつかの実施形態にかかるスレーブデバイス20aのパッケージングの一例を示す図である。例えば、スレーブデバイス20aのそれぞれは、図3に示すように、端子T1、T2、T3、T4、T5、T6、T7、T8を備える。例えば、端子T1は、グラウンド端子である。また、例えば、端子T2は、I2Cアドレス7ビットにおける下位2ビットのうちの上位1ビットに対応する端子である。また、例えば、端子T3は、I2Cアドレス7ビットにおける下位2ビットのうちの下位1ビットに対応する端子である。また、例えば、端子T4は、IDを設定する2つの端子のうちの一方である。また、例えば、端子T5は、電源端子である。また、例えば、端子T6は、IDを設定する2つの端子のうちの他方である。また、例えば、端子T7は、クロック用端子である。このクロック用端子は、SCL(Serial CLock)端子と呼ばれることがある。また、例えば、端子T8は、データ用端子である。このデータ用端子は、SDA(Serial DAta)端子と呼ばれることがある。 Figure 3 is a diagram illustrating an example of packaging for a slave device 20a according to some embodiments of the present disclosure. For example, each of the slave devices 20a includes terminals T1, T2, T3, T4, T5, T6, T7, and T8, as shown in Figure 3. For example, terminal T1 is a ground terminal. For example, terminal T2 is a terminal corresponding to the most significant bit of the two least significant bits in a seven-bit I2C address. For example, terminal T3 is a terminal corresponding to the least significant bit of the two least significant bits in a seven-bit I2C address. For example, terminal T4 is one of two terminals for setting an ID. For example, terminal T5 is a power supply terminal. For example, terminal T6 is the other of two terminals for setting an ID. For example, terminal T7 is a clock terminal. This clock terminal is sometimes referred to as an SCL (Serial Clock) terminal. For example, terminal T8 is a data terminal. This data terminal is sometimes called an SDA (Serial DATA) terminal.
図4は、本開示のいくつかの実施形態にかかるI2Cアドレスの設定の一例を示す図である。例えば、I2Cアドレス7ビットのうちの上位5ビットがデバイス固有の値となり、下位2ビットにより4通りのアドレスを設定できる。この下位2ビットは、端子T2および端子T3の状態により設定可能である。 Figure 4 shows an example of I2C address settings according to some embodiments of the present disclosure. For example, the upper five bits of the seven-bit I2C address are device-specific, and the lower two bits allow four different addresses to be set. These lower two bits can be set depending on the state of terminals T2 and T3.
例えば、図4に示すように、端子T2をプルアップ抵抗を介してHighレベルの電位の配線(例えば、電源端子に接続されている配線)に接続し、端子T3をプルアップ抵抗を介してHighレベルの電位の配線に接続することにより、スレーブデバイス20aのアドレス値をx3に設定することができる。また、例えば、図4に示すように、端子T2をプルアップ抵抗を介してHighレベルの電位の配線に接続し、端子T3をプルダウン抵抗を介してLowレベルの電位の配線(例えば、グラウンド端子に接続されている配線)に接続することにより、スレーブデバイス20aのアドレス値をx2に設定することができる。また、例えば、図4に示すように、端子T2をプルダウン抵抗を介してLowレベルの電位の配線に接続し、端子T3をプルアップ抵抗を介してHighレベルの電位の配線に接続することにより、スレーブデバイス20aのアドレス値をx1に設定することができる。また、例えば、図4に示すように、端子T2をプルダウン抵抗を介してLowレベルの電位の配線に接続し、端子T3をプルダウン抵抗を介してLowレベルの電位の配線に接続することにより、スレーブデバイス20aのアドレス値をx0に設定することができる。 For example, as shown in FIG. 4, by connecting terminal T2 to a wiring with a high potential (e.g., a wiring connected to a power supply terminal) via a pull-up resistor and connecting terminal T3 to a wiring with a high potential via a pull-up resistor, the address value of slave device 20a can be set to x3. Also, as shown in FIG. 4, by connecting terminal T2 to a wiring with a high potential via a pull-up resistor and connecting terminal T3 to a wiring with a low potential (e.g., a wiring connected to a ground terminal) via a pull-down resistor, the address value of slave device 20a can be set to x2. Also, as shown in FIG. 4, by connecting terminal T2 to a wiring with a low potential via a pull-down resistor and connecting terminal T3 to a wiring with a high potential via a pull-up resistor, the address value of slave device 20a can be set to x1. Also, for example, as shown in FIG. 4, by connecting terminal T2 to a wiring with a low-level potential via a pull-down resistor and connecting terminal T3 to a wiring with a low-level potential via a pull-down resistor, the address value of slave device 20a can be set to x0.
図5は、本開示のいくつかの実施形態にかかるIDの設定の一例を示す図である。例えば、図5に示すように、端子T4をプルアップ抵抗を介してHighレベルの電位の配線に接続し、端子T6をプルアップ抵抗を介してHighレベルの電位の配線に接続することにより、スレーブデバイス20aのID値をID3に設定することができる。また、例えば、図5に示すように、端子T4をプルアップ抵抗を介してHighレベルの電位の配線に接続し、端子T6をプルダウン抵抗を介してLowレベルの電位の配線に接続することにより、スレーブデバイス20aのID値をID2に設定することができる。また、例えば、図5に示すように、端子T4をプルダウン抵抗を介してLowレベルの電位の配線に接続し、端子T6をHighレベルの電位の配線に接続することにより、スレーブデバイス20aのID値をID1に設定することができる。また、例えば、図5に示すように、端子T4をプルダウン抵抗を介しLowレベルの電位の配線に接続し、端子T6をプルダウン抵抗を介してLowレベルの電位の配線に接続することにより、スレーブデバイス20aのID値をID0に設定することができる。 FIG. 5 illustrates an example of ID setting according to some embodiments of the present disclosure. For example, as shown in FIG. 5, the ID value of the slave device 20a can be set to ID3 by connecting terminal T4 to a wiring having a high potential via a pull-up resistor and terminal T6 to a wiring having a high potential via a pull-up resistor. Alternatively, as shown in FIG. 5, the ID value of the slave device 20a can be set to ID2 by connecting terminal T4 to a wiring having a high potential via a pull-up resistor and terminal T6 to a wiring having a low potential via a pull-down resistor. Alternatively, as shown in FIG. 5, the ID value of the slave device 20a can be set to ID1 by connecting terminal T4 to a wiring having a low potential via a pull-down resistor and terminal T6 to a wiring having a high potential. Alternatively, as shown in FIG. 5, the ID value of the slave device 20a can be set to ID0 by connecting terminal T4 to a wiring having a low potential via a pull-down resistor and terminal T6 to a wiring having a low potential via a pull-down resistor.
図6は、本開示のいくつかの実施形態にかかるマスターデバイス10が行う読み出し処理を説明するための図である。図6は、マスターデバイス10がI2Cアドレスx2のスレーブデバイス20a9、20a10、20a11、20a12のそれぞれから2バイトずつ合計8バイトのデータを読み出す場合のI2Cのリードサイクルの一例を示している。図6に示すように、マスターデバイス10は、リードサイクル170を開始する。マスターデバイス10によるリードサイクル170に応じて、IDの値がID0であるスレーブデバイス20a9は、データ171、172の合計2バイトのデータを出力する。続いて、マスターデバイス10によるリードサイクル170に応じて、IDの値がID1であるスレーブデバイス20a10は、データ173、174の合計2バイトのデータを出力する。続いて、マスターデバイス10によるリードサイクル170に応じて、IDの値がID2であるスレーブデバイス20a11は、データ175、176の合計2バイトのデータを出力する。続いて、マスターデバイス10によるリードサイクル170に応じて、IDの値がID3であるスレーブデバイス20a12は、データ177、178の合計2バイトのデータを出力する。このように、同じI2Cアドレスを有するスレーブデバイス20aは、マスターデバイス10が出力するA(acknowledge)信号に応じて、IDの値の所定の順(例えば、小さい順)にデータを出力する(つまり、自身のIDの値に応じたタイミングでデータを出力する)ことにより、所望の読み出しを実現することが可能となる。スレーブデバイス20aが行う処理の詳細については後述する。 Figure 6 is a diagram illustrating a read process performed by the master device 10 according to some embodiments of the present disclosure. Figure 6 shows an example of an I2C read cycle in which the master device 10 reads a total of eight bytes of data, two bytes each, from the slave devices 20a9, 20a10, 20a11, and 20a12 at I2C address x2. As shown in Figure 6, the master device 10 initiates a read cycle 170. In response to the read cycle 170 by the master device 10, the slave device 20a9, whose ID value is ID0, outputs a total of two bytes of data, data 171 and 172. Subsequently, in response to the read cycle 170 by the master device 10, the slave device 20a10, whose ID value is ID1, outputs a total of two bytes of data, data 173 and 174. Subsequently, in response to the read cycle 170 by the master device 10, the slave device 20a11, whose ID value is ID2, outputs a total of two bytes of data, data 175 and 176. Next, in response to read cycle 170 by master device 10, slave device 20a12, whose ID value is ID3, outputs a total of two bytes of data, data 177 and 178. In this way, slave device 20a with the same I2C address outputs data in a predetermined order of ID values (e.g., ascending order) in response to the A (acknowledge) signal output by master device 10 (i.e., outputs data at a timing according to its own ID value), thereby achieving the desired read. Details of the processing performed by slave device 20a will be described later.
I2Cバスは、マスターデバイス10とスレーブデバイス20aのそれぞれとを接続する。I2Cバスは、マスターデバイス10とスレーブデバイス20aとの間で行われる通信におけるデータを伝播させる。 The I2C bus connects the master device 10 and the slave device 20a. The I2C bus transmits data during communication between the master device 10 and the slave device 20a.
なお、本開示の一実施形態にかかる処理システム1が行う上述の処理は、一例であって、上述の処理に限定されない。例えば、処理システム1は、以下で説明する処理を行うものであってもよい。 Note that the above-described processing performed by the processing system 1 according to one embodiment of the present disclosure is merely an example, and is not limited to the above-described processing. For example, the processing system 1 may perform the processing described below.
(処理システムが行う処理)
処理システム1が行う処理について説明する。図7は、本開示のいくつかの実施形態にかかる処理システム1の構成の一例を示す図である。ここで説明する処理システム1は、図7に示すように、マスターデバイス10、スレーブデバイス20a21、20a22、20a23、20a24、およびプルアップ抵抗180、181を備えるものとする。プルアップ抵抗180は、SCL信号線をプルアップする抵抗である。プルアップ抵抗181は、SDA信号線をプルアップする抵抗である。
(Processing performed by the processing system)
The following describes processing performed by the processing system 1. FIG. 7 is a diagram illustrating an example of the configuration of the processing system 1 according to some embodiments of the present disclosure. As shown in FIG. 7, the processing system 1 described here includes a master device 10, slave devices 20a21, 20a22, 20a23, and 20a24, and pull-up resistors 180 and 181. The pull-up resistor 180 is a resistor that pulls up the SCL signal line. The pull-up resistor 181 is a resistor that pulls up the SDA signal line.
なお、プルアップ抵抗またはプルダウン抵抗の少なくとも一方を用いて、端子T2および端子T3それぞれの電位を設定することにより、スレーブデバイス20a21、20a22、20a23、20a24のそれぞれは、同じI2CアドレスxNに設定されているものとする。なお、I2CアドレスxNは、I2Cアドレスx0、x1、x2、x3の何れかである。 Note that by using at least one of a pull-up resistor and a pull-down resistor to set the potential of terminals T2 and T3, each of slave devices 20a21, 20a22, 20a23, and 20a24 is set to the same I2C address xN. Note that I2C address xN is one of I2C addresses x0, x1, x2, or x3.
また、スレーブデバイス20a21は、プルダウン抵抗を用いて端子T4および端子T6のそれぞれがLowレベルの電位となることにより、IDの値としてID0が設定されているものとする。また、スレーブデバイス20a22は、プルダウン抵抗を用いて端子T4がLowレベルの電位となり、プルアップ抵抗を用いて端子T6がHighレベルの電位となることにより、IDの値としてID1が設定されているものとする。また、スレーブデバイス20a23は、プルアップ抵抗を用いて端子T4がHighレベルの電位となり、プルダウン抵抗を用いて端子T6がLowレベルの電位となることにより、IDの値としてID2が設定されているものとする。また、スレーブデバイス20a24は、プルアップ抵抗を用いて端子T4および端子T6のそれぞれがHighレベルの電位となることにより、IDの値としてID3が設定されているものとする。 Slave device 20a21 has its ID value set to ID0 by using a pull-down resistor to set terminals T4 and T6 to low potential. Slave device 20a22 has its ID value set to ID1 by using a pull-down resistor to set terminal T4 to low potential and a pull-up resistor to set terminal T6 to high potential. Slave device 20a23 has its ID value set to ID2 by using a pull-up resistor to set terminal T4 to high potential and a pull-down resistor to set terminal T6 to low potential. Slave device 20a24 has its ID value set to ID3 by using a pull-up resistor to set terminals T4 and T6 to high potential.
また、マスターデバイス10およびスレーブデバイス20a21、20a22、20a23、20a24それぞれのクロック用端子は、I2CバスのSCL信号線に接続されているものとする。また、マスターデバイス10およびスレーブデバイス20a21、20a22、20a23、20a24それぞれのデータ用端子は、I2CバスのSDA信号線に接続されているものとする。また、マスターデバイス10およびスレーブデバイス20a21、20a22、20a23、20a24それぞれのクロック用端子およびデータ用端子は、オープンドレインであるものとする。すなわち、マスターデバイス10およびスレーブデバイス20a21、20a22、20a23、20a24それぞれのクロック用端子およびデータ用端子は、I2CバスをLowレベルとするタイミングにのみLowレベルの信号を出力するものとする。そして、I2CバスのHighレベルは、I2CバスのSCL信号線およびSDA信号線それぞれがプルアップ抵抗により電源電圧VCCにプルアップされることにより実現されるものとする。なお、I2CバスのSCL信号線およびSDA信号線には、スレーブデバイス20a21、20a22、20a23、20a24と異なるI2Cアドレスを有するスレーブデバイス20aが接続されるものであってもよい。 The clock terminals of the master device 10 and slave devices 20a21, 20a22, 20a23, and 20a24 are connected to the SCL signal line of the I2C bus. The data terminals of the master device 10 and slave devices 20a21, 20a22, 20a23, and 20a24 are connected to the SDA signal line of the I2C bus. The clock and data terminals of the master device 10 and slave devices 20a21, 20a22, 20a23, and 20a24 are open drain. In other words, the clock and data terminals of the master device 10 and slave devices 20a21, 20a22, 20a23, and 20a24 output low-level signals only when the I2C bus is set to low. The high level of the I2C bus is achieved by pulling up the SCL and SDA signal lines of the I2C bus to the power supply voltage VCC using pull-up resistors. Note that a slave device 20a having an I2C address different from slave devices 20a21, 20a22, 20a23, and 20a24 may be connected to the SCL and SDA signal lines of the I2C bus.
(書き込み処理)
まず、処理システム1が行う書き込み処理について説明する。図8は、本開示のいくつかの実施形態にかかる処理システム1のライトサイクルにおけるタイミングの一例を示す図である。図8は、マスターデバイス10が、ライトサイクルコマンドを発行し、8ビットのデータを書き込む例を示している。図8における(a)の部分は、I2CバスのSCL信号線を伝播するクロック信号を示している。図8における(b)の部分は、I2CバスのSDA信号線を伝播するデータ信号を示している。図8における(c)の部分は、マスターデバイス10が出力するデータ信号を示している。図8における(d)の部分は、スレーブデバイス20a21が出力するデータ信号を示している。図8における(e)の部分は、スレーブデバイス20a22が出力するデータ信号を示している。図8における(f)の部分は、スレーブデバイス20a23が出力するデータ信号を示している。図8における(g)の部分は、スレーブデバイス20a24が出力するデータ信号を示している。
(Write process)
First, the write process performed by the processing system 1 will be described. FIG. 8 is a diagram illustrating an example of the timing of a write cycle in the processing system 1 according to some embodiments of the present disclosure. FIG. 8 illustrates an example in which the master device 10 issues a write cycle command and writes 8-bit data. Part (a) of FIG. 8 illustrates a clock signal propagating through the SCL signal line of the I2C bus. Part (b) of FIG. 8 illustrates a data signal propagating through the SDA signal line of the I2C bus. Part (c) of FIG. 8 illustrates a data signal output by the master device 10. Part (d) of FIG. 8 illustrates a data signal output by the slave device 20a21. Part (e) of FIG. 8 illustrates a data signal output by the slave device 20a22. Part (f) of FIG. 8 illustrates a data signal output by the slave device 20a23. Part (g) of FIG. 8 illustrates a data signal output by the slave device 20a24.
図8における(b)の部分に示すデータ信号は、I2CバスのSDA信号線に接続されているすべてのデバイス(すなわち、マスターデバイス10、スレーブデバイス20a21、20a22、20a23、20a24)が出力するデータ信号を統合したものである。図8における点線は、マスターデバイス10、およびスレーブデバイス20a21、20a22、20a23、20a24によるデータ信号の出力がオフであり、I2CバスのSDA信号線に接続されているプルアップ抵抗181により、Highレベルの電位となっていることを示している。 The data signal shown in part (b) of Figure 8 is a combination of the data signals output by all devices connected to the SDA signal line of the I2C bus (i.e., master device 10 and slave devices 20a21, 20a22, 20a23, and 20a24). The dotted lines in Figure 8 indicate that the data signal output by master device 10 and slave devices 20a21, 20a22, 20a23, and 20a24 is off, and is at a high level potential due to pull-up resistor 181 connected to the SDA signal line of the I2C bus.
マスターデバイス10は、ライトサイクルを開始する合図であるStart Conditionを表すLowレベルのデータ信号201を出力する。次に、マスターデバイス10は、7ビットのI2Cアドレス202を出力する。そして、マスターデバイス10は、ライトアクセスを示すLowレベルのデータ信号203を出力する。I2Cアドレスが同一であるスレーブデバイス20a21、20a22、20a23、20a24のそれぞれは、一斉に肯定応答を示すA信号204を出力する。 The master device 10 outputs a low-level data signal 201 indicating a Start Condition, which is a signal to start a write cycle. Next, the master device 10 outputs a 7-bit I2C address 202. The master device 10 then outputs a low-level data signal 203 indicating a write access. Slave devices 20a21, 20a22, 20a23, and 20a24, which have the same I2C address, simultaneously output an A signal 204 indicating a positive response.
マスターデバイス10は、A信号204に応じて、8ビットの書き込みを行うデータ信号であるライトデータ信号205を出力する。スレーブデバイス20a21、20a22、20a23、20a24のそれぞれは、ライトデータ信号205を受信すると、一斉に肯定応答A信号206を出力する。マスターデバイス10は、ライトサイクルを終了する合図であるStop Conditionを表すLowレベルのデータ信号207を出力する。このようにライトサイクルを終了する。 In response to the A signal 204, the master device 10 outputs a write data signal 205, which is a data signal for writing 8 bits. Upon receiving the write data signal 205, each of the slave devices 20a21, 20a22, 20a23, and 20a24 simultaneously outputs an acknowledgement A signal 206. The master device 10 outputs a low-level data signal 207, which indicates a stop condition, signaling the end of the write cycle. This is how the write cycle ends.
(読み出し処理)
次に、処理システム1が行う読み出し処理について説明する。図9は、本開示のいくつかの実施形態にかかる処理システム1のリードサイクルにおけるタイミングの一例を示す図である。図9は、マスターデバイス10が、リードサイクルコマンドを発行し、スレーブデバイス20a21、20a22、20a23、20a24のそれぞれから8ビットずつ合計32ビットのデータを読み出す例を示している。図9における(a)の部分は、I2CバスのSCL信号線を伝播するクロック信号を示している。図9における(b)の部分は、I2CバスのSDA信号線を伝播するデータ信号を示している。図9における(c)の部分は、マスターデバイス10が出力するデータ信号を示している。図9における(d)の部分は、スレーブデバイス20a21が出力するデータ信号を示している。図9における(e)の部分は、スレーブデバイス20a22が出力するデータ信号を示している。図9における(f)の部分は、スレーブデバイス20a23が出力するデータ信号を示している。図9における(g)の部分は、スレーブデバイス20a24が出力するデータ信号を示している。
(Reading process)
Next, a read process performed by the processing system 1 will be described. FIG. 9 is a diagram illustrating an example of timing in a read cycle of the processing system 1 according to some embodiments of the present disclosure. FIG. 9 illustrates an example in which the master device 10 issues a read cycle command and reads a total of 32 bits of data, 8 bits each, from each of the slave devices 20a21, 20a22, 20a23, and 20a24. Part (a) in FIG. 9 illustrates a clock signal propagating through the SCL signal line of the I2C bus. Part (b) in FIG. 9 illustrates a data signal propagating through the SDA signal line of the I2C bus. Part (c) in FIG. 9 illustrates a data signal output by the master device 10. Part (d) in FIG. 9 illustrates a data signal output by the slave device 20a21. Part (e) in FIG. 9 illustrates a data signal output by the slave device 20a22. Part (f) in FIG. 9 illustrates a data signal output by the slave device 20a23. Part (g) in FIG. 9 shows the data signal output by the slave device 20a24.
マスターデバイス10は、リードサイクルを開始する合図であるStart Conditionを表すLowレベルのデータ信号301を出力する。次に、マスターデバイス10は、7ビットのI2Cアドレス302を出力する。そして、マスターデバイス10は、リードアクセスを示すHighレベルのデータ信号303を出力する。 The master device 10 outputs a low-level data signal 301 indicating a Start Condition, which is a signal to start a read cycle. Next, the master device 10 outputs a 7-bit I2C address 302. Then, the master device 10 outputs a high-level data signal 303 indicating a read access.
マスターデバイス10が出力した7ビットのI2Cアドレス302の下位2ビットが示す情報に対応するスレーブデバイス20a21、20a22、20a23、20a24のそれぞれは、一斉に肯定応答を示すA信号304を出力する。マスターデバイス10は、A信号304を受けて8ビット×4の合計32ビットのデータの読み出しを開始する。 Slave devices 20a21, 20a22, 20a23, and 20a24, which correspond to the information indicated by the lowest two bits of the 7-bit I2C address 302 output by master device 10, simultaneously output an A signal 304 indicating an affirmative response. Upon receiving the A signal 304, master device 10 begins reading four 8-bit data bits, for a total of 32 bits.
例えば、スレーブデバイス20a21は、8ビットのデータ305を出力する。そして、スレーブデバイス20a21は、Stop Conditionを表すLowレベルのデータ信号207待ちとなり出力を停止する。このスレーブデバイス20a21が8ビットのデータ305を出力する期間中、スレーブデバイス20a22、20a23、20a24のそれぞれは、待機状態である。マスターデバイス10は、8ビットのデータ305を受信する。そして、マスターデバイス10は、肯定応答を示すA信号306を出力する。 For example, slave device 20a21 outputs 8-bit data 305. Slave device 20a21 then waits for a low-level data signal 207, which indicates a Stop Condition, and stops output. While slave device 20a21 is outputting 8-bit data 305, slave devices 20a22, 20a23, and 20a24 are each in a standby state. Master device 10 receives 8-bit data 305. Master device 10 then outputs an A signal 306, indicating an affirmative response.
スレーブデバイス20a22、20a23、20a24のそれぞれは、A信号306を確認する。そして、スレーブデバイス20a22は、8ビットのデータ307を出力する。スレーブデバイス20a22は、Stop Conditionを表すLowレベルのデータ信号207待ちとなり出力を停止する。このスレーブデバイス20a22が8ビットのデータ307を出力する期間中、スレーブデバイス20a21、20a23、20a24のそれぞれは、待機状態である。マスターデバイス10は、8ビットのデータ307を受信する。そして、マスターデバイス10は、肯定応答を示すA信号308を出力する。 Slave devices 20a22, 20a23, and 20a24 each confirm the A signal 306. Slave device 20a22 then outputs 8-bit data 307. Slave device 20a22 then waits for a low-level data signal 207, indicating a Stop Condition, and stops output. While slave device 20a22 is outputting 8-bit data 307, each of slave devices 20a21, 20a23, and 20a24 is in a standby state. Master device 10 receives the 8-bit data 307. Master device 10 then outputs an A signal 308, indicating an acknowledgment.
スレーブデバイス20a23、20a24のそれぞれは、A信号308を確認する。そして、スレーブデバイス20a23は、8ビットのデータ309を出力する。スレーブデバイス20a23は、Stop Conditionを表すLowレベルのデータ信号207待ちとなり出力を停止する。このスレーブデバイス20a23が8ビットのデータ309を出力する期間中、スレーブデバイス20a21、20a22、20a24のそれぞれは、待機状態である。マスターデバイス10は、8ビットのデータ309を受信する。そして、マスターデバイス10は、肯定応答を示すA信号310を出力する。 Slave devices 20a23 and 20a24 each confirm the A signal 308. Slave device 20a23 then outputs 8-bit data 309. Slave device 20a23 then waits for a low-level data signal 207, which indicates a Stop Condition, and stops output. While slave device 20a23 is outputting 8-bit data 309, each of slave devices 20a21, 20a22, and 20a24 is in a standby state. Master device 10 receives 8-bit data 309. Master device 10 then outputs an A signal 310, indicating an acknowledgment.
スレーブデバイス20a24は、A信号310を確認する。そして、スレーブデバイス20a24は、8ビットのデータ311を出力する。スレーブデバイス20a24は、Stop Conditionを表すLowレベルのデータ信号207待ちとなり出力を停止する。このスレーブデバイス20a24が8ビットのデータ311を出力する期間中、スレーブデバイス20a21、20a22、20a23のそれぞれは、待機状態である。マスターデバイス10は、8ビットのデータ311を受信する。そして、マスターデバイス10は、否定応答を示すAb信号312を出力する。マスターデバイス10は、Stop Conditionを表すLowレベルのデータ信号207を出力する。このようにリードサイクルを終了する。 The slave device 20a24 confirms the A signal 310. Then, the slave device 20a24 outputs 8-bit data 311. The slave device 20a24 waits for a low-level data signal 207, which indicates a stop condition, and stops output. While the slave device 20a24 is outputting the 8-bit data 311, each of the slave devices 20a21, 20a22, and 20a23 is in a standby state. The master device 10 receives the 8-bit data 311. Then, the master device 10 outputs an Ab signal 312, which indicates a negative response. The master device 10 outputs a low-level data signal 207, which indicates a stop condition. This completes the read cycle.
(利点) (Advantages)
以上、本開示のいくつかの実施形態にかかる処理システム1について説明した。処理システム1において、スレーブデバイス20aは、Inter-Integrated Circuit通信方式を用いて通信を行うスレーブデバイスである。スレーブデバイス20aは、マスターデバイス10からリード要求を受信する。スレーブデバイス20aは、前記リード要求を受信した場合に、設定された識別子に応じたタイミングでデータを出力する。 The processing system 1 according to some embodiments of the present disclosure has been described above. In the processing system 1, the slave device 20a is a slave device that communicates using the Inter-Integrated Circuit communication method. The slave device 20a receives a read request from the master device 10. When the slave device 20a receives the read request, it outputs data at a timing according to the set identifier.
このスレーブデバイス20aにより、処理システム1において、同一のI2Cアドレスを有するスレーブデバイス20aが複数存在可能であり、マスターデバイスからリード要求があった場合であっても、適切なタイミングでデータを送信することができる。 This slave device 20a allows multiple slave devices 20a with the same I2C address to exist in the processing system 1, and even when a read request is received from the master device, data can be transmitted at the appropriate time.
次に、本開示のいくつかの実施形態にかかるスレーブデバイス20について説明する。図10は、本開示のいくつかの実施形態にかかるスレーブデバイス20の構成の一例を示す図である。スレーブデバイス20は、Inter-Integrated Circuit通信方式を用いて通信を行うスレーブデバイスである。スレーブデバイス20は、図10に示すように、受信手段801、および出力手段802を備える。 Next, a slave device 20 according to some embodiments of the present disclosure will be described. Figure 10 is a diagram showing an example of the configuration of a slave device 20 according to some embodiments of the present disclosure. The slave device 20 is a slave device that communicates using an Inter-Integrated Circuit communication method. As shown in Figure 10, the slave device 20 includes a receiving means 801 and an output means 802.
受信手段801は、マスターデバイスからリード要求を受信する。出力手段802は、前記受信手段801が前記リード要求を受信した場合に、設定された識別子に応じたタイミングでデータを出力する。 The receiving means 801 receives a read request from the master device. When the receiving means 801 receives the read request, the output means 802 outputs data at a timing according to the set identifier.
スレーブデバイス20は、例えば、図1に記載のスレーブデバイス20a、20a1、20a2、20a3、20a4、20a5、20a6、20a7、20a8、20a9、20a10、20a11、20a12、20a13、20a14、20a15、20a16、図7に記載のスレーブデバイス20a21、20a22、20a23、20a24が有する機能を用いて実現することができる。すなわち、受信手段801、および出力手段802は、例えば、図1に記載のスレーブデバイス20a、20a1、20a2、20a3、20a4、20a5、20a6、20a7、20a8、20a9、20a10、20a11、20a12、20a13、20a14、20a15、20a16、図7に記載のスレーブデバイス20a21、20a22、20a23、20a24が有する機能を用いて実現することができる。 The slave device 20 can be realized, for example, using the functions possessed by slave devices 20a, 20a1, 20a2, 20a3, 20a4, 20a5, 20a6, 20a7, 20a8, 20a9, 20a10, 20a11, 20a12, 20a13, 20a14, 20a15, and 20a16 described in Figure 1, and slave devices 20a21, 20a22, 20a23, and 20a24 described in Figure 7. That is, the receiving means 801 and the output means 802 can be realized using, for example, the functions of the slave devices 20a, 20a1, 20a2, 20a3, 20a4, 20a5, 20a6, 20a7, 20a8, 20a9, 20a10, 20a11, 20a12, 20a13, 20a14, 20a15, and 20a16 shown in FIG. 1 and the slave devices 20a21, 20a22, 20a23, and 20a24 shown in FIG. 7.
次に、本開示のいくつかの実施形態にかかるスレーブデバイス20が行う処理について説明する。図11は、本開示のいくつかの実施形態にかかるスレーブデバイス20の処理フローの一例を示す図である。ここでは、図11を参照してスレーブデバイス20の処理について説明する。 Next, processing performed by the slave device 20 according to some embodiments of the present disclosure will be described. Figure 11 is a diagram showing an example of the processing flow of the slave device 20 according to some embodiments of the present disclosure. Here, processing by the slave device 20 will be described with reference to Figure 11.
スレーブデバイス20において、受信手段801は、マスターデバイスからリード要求を受信する(ステップS101)。出力手段802は、前記受信手段801が前記リード要求を受信した場合に、設定された識別子に応じたタイミングでデータを出力する(ステップS102)。 In the slave device 20, the receiving means 801 receives a read request from the master device (step S101). When the receiving means 801 receives the read request, the output means 802 outputs data at a timing according to the set identifier (step S102).
以上、本開示のいくつかの実施形態にかかるスレーブデバイス20について説明した。このスレーブデバイス20によれば、システムにおいて、同一のI2Cアドレスを有するスレーブデバイスが複数存在可能であり、マスターデバイスからリード要求があった場合であっても、適切なタイミングでデータを送信することができる。 The above describes the slave device 20 according to some embodiments of the present disclosure. This slave device 20 allows multiple slave devices with the same I2C address to exist in the system, and can transmit data at the appropriate time even when a read request is received from the master device.
なお、本開示の各実施形態における処理は、適切な処理が行われる範囲において、処理の順番が入れ替わってもよい。 Note that the order of the processes in each embodiment of the present disclosure may be changed as long as appropriate processing is performed.
本開示の各実施形態について説明したが、上述の処理システム1、マスターデバイス10、スレーブデバイス20a、20a1、20a2、20a3、20a4、20a5、20a6、20a7、20a8、20a9、20a10、20a11、20a12、20a13、20a14、20a15、20a16、20a21、20a22、20a23、20a24、その他の制御装置は内部に、コンピュータシステムを有していてもよい。そして、上述した処理の過程は、プログラムの形式でコンピュータ読み取り可能な記録媒体に記憶されており、このプログラムをコンピュータが読み出して実行することによって、上記処理が行われる。コンピュータの具体例を以下に示す。 Each embodiment of the present disclosure has been described. However, the processing system 1, master device 10, slave devices 20a, 20a1, 20a2, 20a3, 20a4, 20a5, 20a6, 20a7, 20a8, 20a9, 20a10, 20a11, 20a12, 20a13, 20a14, 20a15, 20a16, 20a21, 20a22, 20a23, 20a24, and other control devices may have an internal computer system. The above-described processing steps are stored in the form of a program on a computer-readable recording medium, and the above processing is performed by reading and executing this program by a computer. Specific examples of computers are shown below.
図12は、少なくとも1つの実施形態に係るコンピュータの構成を示す概略ブロック図である。コンピュータ5は、図12に示すように、CPU(Central Processing Unit)6、メインメモリ7、ストレージ8、インターフェース9を備える。 Figure 12 is a schematic block diagram showing the configuration of a computer according to at least one embodiment. As shown in Figure 12, the computer 5 includes a CPU (Central Processing Unit) 6, main memory 7, storage 8, and an interface 9.
例えば、上述の処理システム1、マスターデバイス10、スレーブデバイス20a、20a1、20a2、20a3、20a4、20a5、20a6、20a7、20a8、20a9、20a10、20a11、20a12、20a13、20a14、20a15、20a16、20a21、20a22、20a23、20a24、その他の制御装置のそれぞれは、コンピュータ5に実装される。そして、上述した各処理部の動作は、プログラムの形式でストレージ8に記憶されている。CPU6は、プログラムをストレージ8から読み出してメインメモリ7に展開し、当該プログラムに従って上記処理を実行する。また、CPU6は、プログラムに従って、上述した各記憶部に対応する記憶領域をメインメモリ7に確保する。 For example, the above-mentioned processing system 1, master device 10, slave devices 20a, 20a1, 20a2, 20a3, 20a4, 20a5, 20a6, 20a7, 20a8, 20a9, 20a10, 20a11, 20a12, 20a13, 20a14, 20a15, 20a16, 20a21, 20a22, 20a23, 20a24, and other control devices are each implemented in computer 5. The operation of each of the above-mentioned processing units is stored in the form of a program in storage 8. CPU 6 reads the program from storage 8, expands it in main memory 7, and executes the above-mentioned processing in accordance with the program. Furthermore, CPU 6 allocates storage areas in main memory 7 corresponding to each of the above-mentioned storage units in accordance with the program.
ストレージ8の例としては、HDD(Hard Disk Drive)、SSD(Solid State Drive)、磁気ディスク、光磁気ディスク、CD-ROM(Compact Disc Read Only Memory)、DVD-ROM(Digital Versatile Disc Read Only Memory)、半導体メモリ等が挙げられる。ストレージ8は、コンピュータ5のバスに直接接続された内部メディアであってもよいし、インターフェース9または通信回線を介してコンピュータ5に接続される外部メディアであってもよい。また、このプログラムが通信回線によってコンピュータ5に配信される場合、配信を受けたコンピュータ5が当該プログラムをメインメモリ7に展開し、上記処理を実行してもよい。少なくとも1つの実施形態において、ストレージ8は、一時的でない有形の記憶媒体である。 Examples of storage 8 include HDD (Hard Disk Drive), SSD (Solid State Drive), magnetic disk, magneto-optical disk, CD-ROM (Compact Disc Read Only Memory), DVD-ROM (Digital Versatile Disc Read Only Memory), semiconductor memory, etc. Storage 8 may be internal media directly connected to the bus of computer 5, or external media connected to computer 5 via interface 9 or a communication line. Furthermore, if this program is distributed to computer 5 via a communication line, the computer 5 that receives the program may expand the program into main memory 7 and execute the above-mentioned processing. In at least one embodiment, storage 8 is a non-transitory, tangible storage medium.
また、上記プログラムは、前述した機能の一部を実現してもよい。さらに、上記プログラムは、前述した機能をコンピュータシステムにすでに記録されているプログラムとの組み合わせで実現できるファイル、いわゆる差分ファイル(差分プログラム)であってもよい。 The program may also implement some of the functions described above. Furthermore, the program may be a file that can implement the functions described above in combination with a program already recorded on the computer system, a so-called differential file (differential program).
本開示のいくつかの実施形態を説明したが、これらの実施形態は、例であり、開示の範囲を限定しない。これらの実施形態は、開示の要旨を逸脱しない範囲で、種々の追加、省略、置き換え、変更を行ってよい。 Several embodiments of the present disclosure have been described, but these embodiments are merely examples and do not limit the scope of the disclosure. Various additions, omissions, substitutions, and modifications may be made to these embodiments without departing from the spirit of the disclosure.
なお、上記の実施形態の一部又は全部は、以下の付記のようにも記載されうるが、以下には限られない。 Note that some or all of the above embodiments can also be described as, but are not limited to, the following notes.
(付記1)
Inter-Integrated Circuit通信方式を用いて通信を行うスレーブデバイスであって、
マスターデバイスからリード要求を受信する受信手段と、
前記受信手段が前記リード要求を受信した場合に、設定された識別子に応じたタイミングでデータを出力する出力手段と、
を備えるスレーブデバイス。
(Appendix 1)
A slave device that communicates using an Inter-Integrated Circuit communication method,
receiving means for receiving a read request from a master device;
an output means for outputting data at a timing according to a set identifier when the receiving means receives the read request;
a slave device comprising:
(付記2)
前記識別子は、番号により設定され、
前記出力手段は、
前記番号が小さい順に定められたタイミング、または、前記番号が大きい順に定められたタイミングで前記データを出力する、
付記1に記載のスレーブデバイス。
(Appendix 2)
The identifier is set by a number,
The output means
outputting the data at a timing determined in ascending order of the number or at a timing determined in ascending order of the number;
2. The slave device of claim 1.
(付記3)
前記Inter-Integrated Circuit通信方式における同一のアドレスが付与された複数のスレーブデバイスのうちの1つであって、
前記出力手段は、
前記同一のアドレスが付与された前記複数のスレーブデバイスにおいて、前記受信手段が前記リード要求を受信した場合に、前記設定された識別子に応じたタイミングで前記データを出力する、
付記1または付記2に記載のスレーブデバイス。
(Appendix 3)
One of a plurality of slave devices assigned the same address in the Inter-Integrated Circuit communication system,
The output means
When the receiving means receives the read request in the plurality of slave devices assigned the same address, the data is output at a timing according to the set identifier.
3. The slave device of claim 1 or 2.
(付記4)
前記Inter-Integrated Circuit通信方式における同一のアドレスが付与された複数のスレーブデバイスのうちの1つであって、
前記出力手段は、
前記受信手段が前記リード要求を受信した場合に、前記複数のスレーブデバイスのうち自身のスレーブデバイス以外のスレーブデバイスがデータを出力している間、待機状態となる、
付記1から付記3の何れか1つに記載のスレーブデバイス。
(Appendix 4)
One of a plurality of slave devices assigned the same address in the Inter-Integrated Circuit communication system,
The output means
When the receiving means receives the read request, the receiving means enters a standby state while a slave device other than the receiving means itself among the plurality of slave devices outputs data.
4. The slave device of claim 1.
(付記5)
付記1から付記4の何れか1つに記載のスレーブデバイスと、
前記スレーブデバイスにリード要求を送信するマスターデバイスと、
を備える処理システム。
(Appendix 5)
a slave device according to any one of Supplementary Note 1 to Supplementary Note 4;
a master device that transmits a read request to the slave device;
A processing system comprising:
(付記6)
Inter-Integrated Circuit通信方式を用いて通信を行うスレーブデバイスが実行する処理方法であって、
マスターデバイスからリード要求を受信することと、
前記リード要求を受信した場合に、設定された識別子に応じたタイミングでデータを出力することと、
を含む処理方法。
(Appendix 6)
A processing method executed by a slave device that communicates using an Inter-Integrated Circuit communication method, comprising:
receiving a read request from a master device;
When the read request is received, outputting the data at a timing according to the set identifier;
A processing method comprising:
(付記7)
前記識別子は、番号により設定され、
前記番号が小さい順に定められたタイミング、または、前記番号が大きい順に定められたタイミングで前記データを出力すること、
を含む付記6に記載の処理方法。
(Appendix 7)
The identifier is set by a number,
outputting the data at a timing determined in ascending order of the numbers or at a timing determined in ascending order of the numbers;
7. The method of claim 6, comprising:
(付記8)
前記Inter-Integrated Circuit通信方式における同一のアドレスが付与された複数のスレーブデバイスのうちの1つが実行する処理方法であって、
前記同一のアドレスが付与された前記複数のスレーブデバイスにおいて、前記リード要求を受信した場合に、前記設定された識別子に応じたタイミングで前記データを出力すること、
を含む付記6または付記7に記載の処理方法。
(Appendix 8)
A processing method executed by one of a plurality of slave devices assigned the same address in the Inter-Integrated Circuit communication system, comprising:
When the read request is received, the plurality of slave devices assigned the same address output the data at a timing according to the set identifier;
8. The method of claim 6 or 7, comprising:
(付記9)
前記Inter-Integrated Circuit通信方式における同一のアドレスが付与された複数のスレーブデバイスのうちの1つが実行する処理方法であって、
前記リード要求を受信した場合に、前記複数のスレーブデバイスのうち自身のスレーブデバイス以外のスレーブデバイスがデータを出力している間、待機状態となること、
を含む付記6から付記8の何れか1つに記載の処理方法。
(Appendix 9)
A processing method executed by one of a plurality of slave devices assigned the same address in the Inter-Integrated Circuit communication system, comprising:
When the read request is received, the device enters a standby state while a slave device other than the device itself among the plurality of slave devices outputs data;
9. The processing method according to any one of claims 6 to 8, comprising:
(付記10)
Inter-Integrated Circuit通信方式を用いて通信を行うスレーブデバイスのコンピュータに、
マスターデバイスからリード要求を受信することと、
前記リード要求を受信した場合に、設定された識別子に応じたタイミングでデータを出力することと、
を実行させるプログラム。
(Appendix 10)
A slave device computer that communicates using the Inter-Integrated Circuit communication method,
receiving a read request from a master device;
When the read request is received, outputting the data at a timing according to the set identifier;
A program that executes the following.
(付記11)
前記識別子は、番号により設定され、
前記番号が小さい順に定められたタイミング、または、前記番号が大きい順に定められたタイミングで前記データを出力すること、
を前記コンピュータに実行させる付記10に記載のプログラム。
(Appendix 11)
The identifier is set by a number,
outputting the data at a timing determined in ascending order of the numbers or at a timing determined in ascending order of the numbers;
11. The program according to claim 10, which causes the computer to execute the above steps.
(付記12)
前記Inter-Integrated Circuit通信方式における同一のアドレスが付与された複数のスレーブデバイスのうちの1つのスレーブデバイスのコンピュータに、
前記同一のアドレスが付与された前記複数のスレーブデバイスにおいて、前記リード要求を受信した場合に、前記設定された識別子に応じたタイミングで前記データを出力すること、
を実行させる付記10または付記11に記載のプログラム。
(Appendix 12)
In the Inter-Integrated Circuit communication system, a computer of one of a plurality of slave devices assigned the same address is
When the read request is received, the plurality of slave devices assigned the same address output the data at a timing according to the set identifier;
12. The program according to claim 10 or 11, which causes the program to execute the above steps.
(付記13)
前記Inter-Integrated Circuit通信方式における同一のアドレスが付与された複数のスレーブデバイスのうちの1つのスレーブデバイスのコンピュータに、
前記リード要求を受信した場合に、前記複数のスレーブデバイスのうち自身のスレーブデバイス以外のスレーブデバイスがデータを出力している間、待機状態となること、
を実行させる付記10から付記12の何れか1つに記載のプログラム。
(Appendix 13)
In the Inter-Integrated Circuit communication system, a computer of one of a plurality of slave devices assigned the same address is
When the read request is received, the device enters a standby state while a slave device other than the device itself among the plurality of slave devices outputs data;
13. The program according to any one of claims 10 to 12,
1・・・処理システム
5・・・コンピュータ
6・・・CPU
7・・・メインメモリ
8・・・ストレージ
9・・・インターフェース
10・・・マスターデバイス
20、20a、20a1、20a2、20a3、20a4、20a5、20a6、20a7、20a8、20a9、20a10、20a11、20a12、20a13、20a14、20a15、20a16、20a21、20a22、20a23、20a24・・・スレーブデバイス
180、181・・・プルアップ抵抗
801・・・受信手段
802・・・出力手段
T1、T2、T3、T4、T5、T6、T7、T8・・・端子
1... Processing system 5... Computer 6... CPU
7... Main memory 8... Storage 9... Interface 10... Master device 20, 20a, 20a1, 20a2, 20a3, 20a4, 20a5, 20a6, 20a7, 20a8, 20a9, 20a10, 20a11, 20a12, 20a13, 20a14, 20a15, 20a16, 20a21, 20a22, 20a23, 20a24... Slave device 180, 181... Pull-up resistor 801... Receiving means 802... Output means T1, T2, T3, T4, T5, T6, T7, T8... Terminal
Claims (7)
マスターデバイスからリード要求を受信する受信手段と、
前記受信手段が前記リード要求を受信した場合に、設定された識別子に応じたタイミングでデータを出力する出力手段と、
を備えるスレーブデバイス。 A slave device that communicates using an Inter-Integrated Circuit communication method,
receiving means for receiving a read request from a master device;
an output means for outputting data at a timing according to a set identifier when the receiving means receives the read request;
a slave device comprising:
前記出力手段は、
前記番号が小さい順に定められたタイミング、または、前記番号が大きい順に定められたタイミングで前記データを出力する、
請求項1に記載のスレーブデバイス。 The identifier is set by a number,
The output means
outputting the data at a timing determined in ascending order of the number or at a timing determined in ascending order of the number;
2. The slave device of claim 1.
前記出力手段は、
前記同一のアドレスが付与された前記複数のスレーブデバイスにおいて、前記受信手段が前記リード要求を受信した場合に、前記設定された識別子に応じたタイミングで前記データを出力する、
請求項1に記載のスレーブデバイス。 One of a plurality of slave devices assigned the same address in the Inter-Integrated Circuit communication system,
The output means
When the receiving means receives the read request in the plurality of slave devices assigned the same address, the data is output at a timing according to the set identifier.
2. The slave device of claim 1.
前記出力手段は、
前記受信手段が前記リード要求を受信した場合に、前記複数のスレーブデバイスのうち自身のスレーブデバイス以外のスレーブデバイスがデータを出力している間、待機状態となる、
請求項1に記載のスレーブデバイス。 One of a plurality of slave devices assigned the same address in the Inter-Integrated Circuit communication system,
The output means
When the receiving means receives the read request, the receiving means enters a standby state while a slave device other than the receiving means itself among the plurality of slave devices outputs data.
2. The slave device of claim 1.
前記スレーブデバイスにリード要求を送信するマスターデバイスと、
を備える処理システム。 A slave device according to any one of claims 1 to 4;
a master device that transmits a read request to the slave device;
A processing system comprising:
マスターデバイスからリード要求を受信することと、
前記リード要求を受信した場合に、設定された識別子に応じたタイミングでデータを出力することと、
を含む処理方法。 A processing method executed by a slave device that communicates using an Inter-Integrated Circuit communication method, comprising:
receiving a read request from a master device;
When the read request is received, outputting the data at a timing according to the set identifier;
A processing method comprising:
マスターデバイスからリード要求を受信することと、
前記リード要求を受信した場合に、設定された識別子に応じたタイミングでデータを出力することと、
を実行させるプログラム。 A slave device computer that communicates using the Inter-Integrated Circuit communication method,
receiving a read request from a master device;
When the read request is received, outputting the data at a timing according to the set identifier;
A program that executes the following.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2024113226A JP7786759B1 (en) | 2024-07-16 | 2024-07-16 | Slave device, processing system, processing method, and program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2024113226A JP7786759B1 (en) | 2024-07-16 | 2024-07-16 | Slave device, processing system, processing method, and program |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP7786759B1 true JP7786759B1 (en) | 2025-12-16 |
| JP2026013065A JP2026013065A (en) | 2026-01-28 |
Family
ID=98027558
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2024113226A Active JP7786759B1 (en) | 2024-07-16 | 2024-07-16 | Slave device, processing system, processing method, and program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP7786759B1 (en) |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH11232207A (en) * | 1998-02-09 | 1999-08-27 | Nec Eng Ltd | Iic bus control system and its control circuit |
| JP2000286872A (en) * | 1999-03-30 | 2000-10-13 | Kawasaki Steel Corp | Serial data transfer device |
| JP2017500631A (en) * | 2013-10-31 | 2017-01-05 | クアルコム,インコーポレイテッド | Camera control slave device having multiple slave device identifiers |
| CN113010463A (en) * | 2019-12-20 | 2021-06-22 | 林德(中国)叉车有限公司 | IIC communication method and system for lithium battery management |
-
2024
- 2024-07-16 JP JP2024113226A patent/JP7786759B1/en active Active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH11232207A (en) * | 1998-02-09 | 1999-08-27 | Nec Eng Ltd | Iic bus control system and its control circuit |
| JP2000286872A (en) * | 1999-03-30 | 2000-10-13 | Kawasaki Steel Corp | Serial data transfer device |
| JP2017500631A (en) * | 2013-10-31 | 2017-01-05 | クアルコム,インコーポレイテッド | Camera control slave device having multiple slave device identifiers |
| CN113010463A (en) * | 2019-12-20 | 2021-06-22 | 林德(中国)叉车有限公司 | IIC communication method and system for lithium battery management |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2026013065A (en) | 2026-01-28 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP4896450B2 (en) | Storage device | |
| JP2009176136A (en) | Semiconductor memory device | |
| CN113722261A (en) | Method for expanding chip selection number and enhancing flexibility of read-write response time by SPI | |
| CN100416536C (en) | Method of 10-bit addressing mode I2C controller accessing large-capacity memory | |
| CN1983230A (en) | Serial Peripheral Interface Device | |
| JP4505195B2 (en) | Method and apparatus for inverting data in a memory device | |
| CN101697283B (en) | A method and system for enhancing reading performance of sequence peripheral interface | |
| US9298378B2 (en) | Logic device | |
| JP7786759B1 (en) | Slave device, processing system, processing method, and program | |
| CN115048330B (en) | Communication on the I2C bus | |
| EP1963977B1 (en) | Memory systems with memory chips down and up | |
| JP2008009817A (en) | Semiconductor device and data transfer method | |
| US11144305B2 (en) | Method for updating IC firmware | |
| TW202031039A (en) | Data communicating and processing method of master device and slave device, and data processing method of slave device | |
| CN110720126B (en) | Method for transmitting data mask, memory controller, memory chip and computer system | |
| JP3477306B2 (en) | Extended input / output interface | |
| US20230341887A1 (en) | Device and method for selecting clock frequency in master device of bus system | |
| CN106371773A (en) | SSD unit, SSD device and data processing method based on SSD device | |
| US11301410B1 (en) | Tags for request packets on a network communication link | |
| JP2001290764A (en) | Data transfer system device and data transfer method thereof | |
| CN118151838A (en) | Memory device, flash memory controller and control method thereof | |
| US20140229641A1 (en) | Method and apparatus for latency reduction | |
| CN115617272B (en) | Management methods and servers for multiple NVMe hard drives | |
| CN101266583B (en) | Memory card bus operation method | |
| US20250245185A1 (en) | Control chip, operating circuit, and interface simulation method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20240716 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20250909 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20251016 |
|
| 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: 20251104 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20251127 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 7786759 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |