JP7086027B2 - Bidirectional serial bus switch - Google Patents

Bidirectional serial bus switch Download PDF

Info

Publication number
JP7086027B2
JP7086027B2 JP2019071297A JP2019071297A JP7086027B2 JP 7086027 B2 JP7086027 B2 JP 7086027B2 JP 2019071297 A JP2019071297 A JP 2019071297A JP 2019071297 A JP2019071297 A JP 2019071297A JP 7086027 B2 JP7086027 B2 JP 7086027B2
Authority
JP
Japan
Prior art keywords
signal
bidirectional
value
transmitted
bidirectional signal
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
Application number
JP2019071297A
Other languages
Japanese (ja)
Other versions
JP2020170336A (en
Inventor
祐太 伊藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2019071297A priority Critical patent/JP7086027B2/en
Publication of JP2020170336A publication Critical patent/JP2020170336A/en
Application granted granted Critical
Publication of JP7086027B2 publication Critical patent/JP7086027B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、双方向シリアルバススイッチに関する。 The present invention relates to a bidirectional serial bus switch.

双方向シリアル信号を単方向信号に変換し、所定のタイミングで方向を切り替えることができる双方向シリアルバスの通信制御方法及び双方向シリアルバススイッチが提供されている(例えば、特許文献1参照)。 A bidirectional serial bus communication control method and a bidirectional serial bus switch capable of converting a bidirectional serial signal into a unidirectional signal and switching the direction at a predetermined timing are provided (see, for example, Patent Document 1).

特開2000-174765号公報Japanese Unexamined Patent Publication No. 2000-174765

しかしながら、特許文献1に記載されたバススイッチは、両端の電圧が同時にドライブレベルになると、両端側のマスク信号の論理が切り替わり、双方向シリアル信号の制御ができなくなる。そのため、複数のデバイスが同時に通信をした場合に、いずれのデバイスも通信をすることができないという課題があった。 However, in the bus switch described in Patent Document 1, when the voltage at both ends reaches the drive level at the same time, the logic of the mask signal on both ends is switched, and the bidirectional serial signal cannot be controlled. Therefore, when a plurality of devices communicate with each other at the same time, there is a problem that none of the devices can communicate with each other.

本発明では、両端の電圧が同時にドライブレベルになっても、双方向シリアル信号を制御することができる双方向シリアルバススイッチを提供することを目的とする。 An object of the present invention is to provide a bidirectional serial bus switch capable of controlling a bidirectional serial signal even if the voltages across the ends reach the drive level at the same time.

この発明の双方向シリアルバススイッチは、
2のデバイスを双方向シリアル通信可能に接続する双方向シリアルバススイッチであって、
第1デバイスと第2デバイスとの間の双方向信号のステータスを監視するステータス監視部と、
前記ステータス監視部の監視結果に従って前記第1デバイスと前記第2デバイスとの前記双方向信号を制御する制御部と
を備え、
前記ステータス監視部は、前記第1デバイスが前記第2デバイスへ送信する前記双方向信号と、前記第2デバイスが前記第1デバイスへ送信する前記双方向信号とが同時に発生する通信競合が起きた場合に、前記第1デバイスと前記第2デバイスとのいずれか一方の送信する前記双方向信号を選択し、選択した前記双方向信号を他方へ送信するよう指示する指示信号を前記制御部に送信する。
The bidirectional serial bus switch of the present invention
A bidirectional serial bus switch that connects two devices for bidirectional serial communication.
A status monitoring unit that monitors the status of bidirectional signals between the first device and the second device,
A control unit for controlling the bidirectional signal between the first device and the second device according to the monitoring result of the status monitoring unit is provided.
In the status monitoring unit, a communication conflict has occurred in which the bidirectional signal transmitted by the first device to the second device and the bidirectional signal transmitted by the second device to the first device occur at the same time. In this case, the bidirectional signal to be transmitted by either the first device or the second device is selected, and an instruction signal instructing the bidirectional signal to be transmitted to the other is transmitted to the control unit. do.

本発明の双方向シリアルバススイッチによれば、複数のデバイスが同時に通信をしても、双方向シリアル信号を制御することができる。 According to the bidirectional serial bus switch of the present invention, the bidirectional serial signal can be controlled even when a plurality of devices communicate with each other at the same time.

実施の形態1に係る双方向シリアルバススイッチ1の構成図。The block diagram of the bidirectional serial bus switch 1 which concerns on Embodiment 1. FIG. 実施の形態1に係る双方向シリアルバススイッチ1の基本的な動作を示すタイムチャート。A time chart showing the basic operation of the bidirectional serial bus switch 1 according to the first embodiment. 実施の形態1に係る双方向シリアルバススイッチ1の通信競合発生時の動作を示すタイムチャート。A time chart showing an operation of the bidirectional serial bus switch 1 according to the first embodiment when a communication conflict occurs. 実施の形態1に係るステータス信号210の値を示すステートマシン図。The state machine figure which shows the value of the status signal 210 which concerns on Embodiment 1. FIG.

実施の形態1.
以下、本実施の形態について、図面を参照しながら詳細に説明する。なお、各図中、同一符号は同一又は相当部分を示す。
Embodiment 1.
Hereinafter, the present embodiment will be described in detail with reference to the drawings. In each figure, the same reference numerals indicate the same or corresponding parts.

***構成の説明***
図1は、実施の形態1に係る双方向シリアルバススイッチ1の構成の、等価回路を示した図である。実施の形態1に係る双方向シリアルバススイッチ1は、2のデバイス(デバイスA2及びデバイスB3)を双方向シリアル通信可能に接続する双方向シリアルバススイッチである。デバイスA2を第1デバイス又は第2デバイスと呼んでも良く、デバイスB3を第1デバイス又は第2デバイスと呼んでも良い。デバイスA2を第1デバイスと呼ぶ場合、デバイスB3を第2デバイスと呼ぶ。デバイスA2を第2デバイスと呼ぶ場合、デバイスB3を第1デバイスと呼ぶ。
本図に示されるように、双方向シリアルバススイッチ1は、バッファ11を有するステータス監視回路10と、バスドライバ回路20と、ステータス監視回路10に接続する入力バッファ102と入力バッファ103と、バスドライバ回路20に接続する出力バッファ回路112と出力バッファ回路113とを備える。
*** Explanation of configuration ***
FIG. 1 is a diagram showing an equivalent circuit of the configuration of the bidirectional serial bus switch 1 according to the first embodiment. The bidirectional serial bus switch 1 according to the first embodiment is a bidirectional serial bus switch that connects two devices (device A2 and device B3) so as to be capable of bidirectional serial communication. The device A2 may be referred to as a first device or a second device, and the device B3 may be referred to as a first device or a second device. When the device A2 is referred to as a first device, the device B3 is referred to as a second device. When the device A2 is referred to as a second device, the device B3 is referred to as a first device.
As shown in this figure, the bidirectional serial bus switch 1 includes a status monitoring circuit 10 having a buffer 11, a bus driver circuit 20, an input buffer 102 and an input buffer 103 connected to the status monitoring circuit 10, and a bus driver. It includes an output buffer circuit 112 and an output buffer circuit 113 connected to the circuit 20.

ステータス監視部501は、ステータス監視回路10から構成される。 The status monitoring unit 501 is composed of a status monitoring circuit 10.

制御部502は、バスドライバ回路20と、出力バッファ回路112と、出力バッファ回路113とから構成される。制御部502は、ステータス監視部501の監視結果に従って、デバイスA2と、デバイスB3との双方向信号を制御する。 The control unit 502 includes a bus driver circuit 20, an output buffer circuit 112, and an output buffer circuit 113. The control unit 502 controls the bidirectional signal between the device A2 and the device B3 according to the monitoring result of the status monitoring unit 501.

プルアップ抵抗302は、A側双方向信号12の電圧を制御する。
プルアップ抵抗303は、プルアップ抵抗302と同様である。
The pull-up resistor 302 controls the voltage of the A-side bidirectional signal 12.
The pull-up resistor 303 is the same as the pull-up resistor 302.

電源402は、A側双方向信号12に電圧Aを供給する。
電源403は、電源402と同様である。
The power supply 402 supplies the voltage A to the A-side bidirectional signal 12.
The power supply 403 is the same as the power supply 402.

A側双方向信号12は、双方向シリアルバススイッチ1と、デバイスA2との間の信号である。
なお、1方向への信号であっても双方向信号と呼ぶことにする。デバイスA2は、デバイスB3へ双方向信号を送信する。デバイスB3は、デバイスA2へ双方向信号を送信する。双方向シリアルバススイッチ1と、デバイスA2とが信号を送信していない場合に、双方向シリアルバススイッチ1と、デバイスA2とを結ぶ電線に生じる電磁気学的現象も、A側双方向信号12に含める。
The A-side bidirectional signal 12 is a signal between the bidirectional serial bus switch 1 and the device A2.
Even if the signal is in one direction, it is called a bidirectional signal. The device A2 transmits a bidirectional signal to the device B3. Device B3 transmits a bidirectional signal to device A2. When the bidirectional serial bus switch 1 and the device A2 do not transmit a signal, the electromagnetic phenomenon that occurs in the electric wire connecting the bidirectional serial bus switch 1 and the device A2 is also transmitted to the A side bidirectional signal 12. include.

A側双方向信号12は、入力バッファ102、出力バッファ回路112、プルアップ抵抗302とを経由し、電源402に到達することができる。 The A-side bidirectional signal 12 can reach the power supply 402 via the input buffer 102, the output buffer circuit 112, and the pull-up resistor 302.

A側双方向信号12の値は、
論理Hと、論理Lと、NACK(否定応答)に対応する値とのいずれかであり、
双方向シリアルバススイッチ1と、デバイスA2とが信号を送信していない場合、プルアップ抵抗302によって、論理Hとなる。
NACKに対応する値は、双方向信号を受信できないことを示す値である。
A側双方向信号12の値は、電圧によって表現される。
論理Hに対応する電圧は、相対的に高い電圧である。論理Lに対応する電圧は、相対的に低い電圧である。NACKに対応する値に対応する電圧は、具体例としては、中間電圧(論理Lに対応する電圧と、論理Hに対応する電圧との中間程度の電圧)である。NACKに対応する値に対応する電圧として、別の電圧を用意しても良い。
A側双方向信号12は、
A側双方向信号12の値が論理Hである場合、アイドルレベルであり、
A側双方向信号12の値が論理Lである場合、ドライブレベルである。
B側双方向信号13は、A側双方向信号12と同様である。
The value of the A-side bidirectional signal 12 is
It is one of the logic H, the logic L, and the value corresponding to NACK (negative response).
When the bidirectional serial bus switch 1 and the device A2 do not transmit a signal, the pull-up resistor 302 causes logic H.
The value corresponding to NACK is a value indicating that the bidirectional signal cannot be received.
The value of the A-side bidirectional signal 12 is represented by a voltage.
The voltage corresponding to the logic H is a relatively high voltage. The voltage corresponding to the logic L is a relatively low voltage. The voltage corresponding to the value corresponding to NACK is, as a specific example, an intermediate voltage (a voltage about halfway between the voltage corresponding to the logic L and the voltage corresponding to the logic H). Another voltage may be prepared as the voltage corresponding to the value corresponding to NACK.
The A-side bidirectional signal 12 is
When the value of the bidirectional signal 12 on the A side is logic H, it is an idle level.
When the value of the A-side bidirectional signal 12 is the logic L, it is the drive level.
The B-side bidirectional signal 13 is the same as the A-side bidirectional signal 12.

入力バッファ102は、
A側双方向信号12を入力とし、
ステータス監視回路10へA側論理信号202を出力する。
入力バッファ103は、入力バッファ102と同様である。
The input buffer 102 is
A side bidirectional signal 12 is used as an input.
The A-side logic signal 202 is output to the status monitoring circuit 10.
The input buffer 103 is the same as the input buffer 102.

A側論理信号202は、
入力バッファ102からステータス監視回路10への信号であり、
論理Hと、論理Lと、NACKに対応する値とのいずれかの値をとる。
A側論理信号202がとる値は、電圧によって表現される。
B側論理信号203は、A側論理信号202と同様である。
The A side logic signal 202 is
It is a signal from the input buffer 102 to the status monitoring circuit 10.
It takes one of the values of the logic H, the logic L, and the value corresponding to NACK.
The value taken by the A-side logic signal 202 is represented by a voltage.
The B-side logic signal 203 is the same as the A-side logic signal 202.

ステータス監視回路10は、
A側論理信号202の値と、B側論理信号203の値とを監視し、即ち、デバイスA2と、デバイスB3との間の双方向信号のステータスを監視し、
A側論理信号202の値と、B側論理信号203の値とに基づいてステータス信号210を生成し、
生成したステータス信号210をバスドライバ回路20へ出力する。
The status monitoring circuit 10 is
The value of the A-side logic signal 202 and the value of the B-side logic signal 203 are monitored, that is, the status of the bidirectional signal between the device A2 and the device B3 is monitored.
A status signal 210 is generated based on the value of the A-side logic signal 202 and the value of the B-side logic signal 203.
The generated status signal 210 is output to the bus driver circuit 20.

ステータス監視回路10は、ステータス信号210の値を、
デバイスA2と、デバイスB3とが、双方向信号を送信していないアイドル状態に対応する「IDLE」と、
デバイスA2が、双方向信号を出力している状態に対応する「A_OUT」と、
デバイスB3が、双方向信号を出力している状態に対応する「B_OUT」と、
デバイスA2が、デバイスB3が送信した信号の受信に成功せず、双方向シリアルバススイッチ1がデバイスA2の否定応答を出力している否定応答出力状態に対応する「A_NACK」と、
デバイスB3が、デバイスA2が送信した信号の受信に成功せず、双方向シリアルバススイッチ1がデバイスB3の否定応答を出力している否定応答出力状態に対応する「B_NACK」と、
デバイスA2が、一定期間論理Lを出力する信号出力状態に対応する「A_OUT2」と、
デバイスB3が、一定期間論理Lを出力する信号出力状態に対応する「B_OUT2」とのいずれかとする。
The status monitoring circuit 10 sets the value of the status signal 210.
"IDLE" corresponding to an idle state in which device A2 and device B3 are not transmitting bidirectional signals, and
"A_OUT" corresponding to the state where the device A2 is outputting a bidirectional signal,
"B_OUT" corresponding to the state where the device B3 is outputting a bidirectional signal,
"A_NACK" corresponding to the negative response output state in which the device A2 does not succeed in receiving the signal transmitted by the device B3 and the bidirectional serial bus switch 1 outputs the negative response of the device A2.
"B_NACK" corresponding to the negative response output state in which the device B3 does not succeed in receiving the signal transmitted by the device A2 and the bidirectional serial bus switch 1 outputs the negative response of the device B3.
"A_OUT2" corresponding to the signal output state in which the device A2 outputs the logic L for a certain period of time,
It is one of "B_OUT2" corresponding to the signal output state in which the device B3 outputs the logic L for a certain period of time.

バッファ11は、論理Hと、論理Lとのいずれかの値を保持する。論理Hと、論理Lとは、論理値に対応する値である。バッファ11が保持する値は、電圧によって表現される。 The buffer 11 holds one of the values of the logic H and the logic L. The logic H and the logic L are values corresponding to the logic values. The value held by the buffer 11 is represented by a voltage.

ステータス監視回路10は、通信が競合する通信競合が起きた場合、バッファ11の値(論理値)に従って、ステータス信号210の値を、「A_NACK」と、「B_NACK」とのいずれにするか決定する。ここで、通信競合が起きた場合とは、デバイスA2がデバイスB3へ送信する双方向信号と、デバイスB3がデバイスA2へ送信する双方向信号とが同時に発生した場合である、即ち、A側双方向信号12と、B側双方向信号13とが同時にドライブレベルになった場合である。 The status monitoring circuit 10 determines whether the value of the status signal 210 is set to "A_NACK" or "B_NACK" according to the value (logical value) of the buffer 11 when a communication conflict occurs. .. Here, the case where the communication conflict occurs is the case where the bidirectional signal transmitted by the device A2 to the device B3 and the bidirectional signal transmitted by the device B3 to the device A2 are simultaneously generated, that is, both on the A side. This is the case where the forward signal 12 and the B-side bidirectional signal 13 simultaneously reach the drive level.

ステータス信号210の値を「A_NACK」と、「B_NACK」とのいずれにするか決定することは、
デバイスA2とデバイスB3とのいずれか一方の送信する双方向信号を選択することに対応する。
ステータス監視回路10が、ステータス信号210の値を「A_NACK」又は「B_NACK」として、ステータス信号210をバスドライバ回路20に送信することは、選択した双方向信号を他方のデバイスへ送信するよう指示する指示信号を制御部502に送信することに対応する。
即ち、ステータス監視部501は、通信競合が起きた場合に、バッファ11の前記論理値に従って、第1デバイスと第2デバイスとのいずれか一方の送信する双方向信号を選択し、選択した前記双方向信号を他方へ送信するよう指示する指示信号を制御部502に送信する。
Determining whether the value of the status signal 210 is "A_NACK" or "B_NACK" can be determined.
Corresponds to selecting a bidirectional signal to be transmitted by either device A2 or device B3.
Sending the status signal 210 to the bus driver circuit 20 with the value of the status signal 210 as "A_NACK" or "B_NACK" instructing the status monitoring circuit 10 to send the selected bidirectional signal to the other device. Corresponds to transmitting the instruction signal to the control unit 502.
That is, when a communication conflict occurs, the status monitoring unit 501 selects a bidirectional signal to be transmitted by either the first device or the second device according to the logical value of the buffer 11, and both of them are selected. An instruction signal instructing the other to transmit the direction signal is transmitted to the control unit 502.

バスドライバ回路20は、
ステータス信号210を入力とし、
イネーブル信号212を生成し、
生成したイネーブル信号212を出力バッファ回路112へ出力し、
イネーブル信号213を生成し、
生成したイネーブル信号213を出力バッファ回路113へ出力し、
ステータス信号210の値に応じて、イネーブル信号212と、イネーブル信号213との値を制御する。
The bus driver circuit 20
The status signal 210 is used as an input.
Generates enable signal 212 and
The generated enable signal 212 is output to the output buffer circuit 112, and the generated enable signal 212 is output to the output buffer circuit 112.
Generates enable signal 213 and
The generated enable signal 213 is output to the output buffer circuit 113, and the generated enable signal 213 is output to the output buffer circuit 113.
The values of the enable signal 212 and the enable signal 213 are controlled according to the value of the status signal 210.

イネーブル信号212は、
デバイスA2からデバイスB3への双方向信号の送信を制御する信号であり、
論理Hと、論理Lと、NACKに対応する値とのいずれかの値をとる。
イネーブル信号212がとる値において、
論理Hは、双方向信号の送信が不可能であることを示す値であり、
論理Lは、双方向信号の送信が可能であることを示す値であり、
NACKに対応する値は、デバイスB3からデバイスA2への双方向信号の送信が成功していないことを示す値である。
イネーブル信号212がとる値は、電圧によって表現される。
イネーブル信号213は、イネーブル信号212と同様である。
第1デバイスの双方向信号の送信を制御するイネーブル信号を第1イネーブル信号と呼んでも良く、第2デバイスの双方向信号の送信を制御するイネーブル信号を第2イネーブル信号と呼んでも良い。
The enable signal 212 is
It is a signal that controls the transmission of a bidirectional signal from the device A2 to the device B3.
It takes one of the values of the logic H, the logic L, and the value corresponding to NACK.
At the value taken by the enable signal 212,
Logic H is a value indicating that bidirectional signal transmission is impossible, and is a value.
Logic L is a value indicating that bidirectional signals can be transmitted, and is a value indicating that bidirectional signals can be transmitted.
The value corresponding to NACK is a value indicating that the bidirectional signal transmission from the device B3 to the device A2 has not been successful.
The value taken by the enable signal 212 is represented by the voltage.
The enable signal 213 is the same as the enable signal 212.
The enable signal that controls the transmission of the bidirectional signal of the first device may be referred to as a first enable signal, and the enable signal that controls the transmission of the bidirectional signal of the second device may be referred to as a second enable signal.

出力バッファ回路112は、イネーブル信号212の値に応じて、A側双方向信号12に値を出力する、即ち、A側双方向信号12の電圧を制御する。
出力バッファ回路113は、出力バッファ回路112と同様である。
The output buffer circuit 112 outputs a value to the A-side bidirectional signal 12 according to the value of the enable signal 212, that is, controls the voltage of the A-side bidirectional signal 12.
The output buffer circuit 113 is similar to the output buffer circuit 112.

***動作の説明***
本実施の形態に係る双方向シリアルバススイッチ1の動作について、図を参照しながら説明する。
*** Explanation of operation ***
The operation of the bidirectional serial bus switch 1 according to the present embodiment will be described with reference to the drawings.

***基本動作の説明***
図2は、本実施の形態に係る双方向シリアルバススイッチ1の、通信競合が起きていない場合における動作を示すタイムチャートである。図4は、本実施の形態に係るステータス監視回路10が生成するステータス信号210を示すステートマシン図である。以下、通信競合が起きていない場合における動作を基本動作と呼び、基本動作について、図2及び図4に基づいて説明する。
*** Explanation of basic operation ***
FIG. 2 is a time chart showing the operation of the bidirectional serial bus switch 1 according to the present embodiment when no communication conflict occurs. FIG. 4 is a state machine diagram showing a status signal 210 generated by the status monitoring circuit 10 according to the present embodiment. Hereinafter, the operation when no communication conflict has occurred is referred to as a basic operation, and the basic operation will be described with reference to FIGS. 2 and 4.

図2は、ステータス信号210の値が「IDLE」と、「A_OUT」と、「B_OUT」とである場合における、A側双方向信号12の値と、イネーブル信号212の値と、ステータス信号210の値と、イネーブル信号213の値と、B側双方向信号13の値とを示すタイムチャートである。 FIG. 2 shows the value of the A-side bidirectional signal 12, the value of the enable signal 212, and the status signal 210 when the values of the status signal 210 are “IDLE”, “A_OUT”, and “B_OUT”. It is a time chart which shows the value, the value of the enable signal 213, and the value of the B side bidirectional signal 13.

図4は、ステータス監視回路10に実装されたステートマシンを示す。前記ステートマシンの各ステータスは、ステータス信号210の各値に対応する。前記ステートマシンは、A側双方向信号12の値と、B側双方向信号13の値と、バッファ11の値とに基づいて遷移する。
図4において、信号を信号の符号のみによって表しており、各信号の値を等号により表している。具体例としては、「12 = 論理L」は、A側双方向信号12の値が論理Lであることを表す。また、状態遷移を、Sn(nは自然数)により表しており、状態遷移の条件を、Snの下に表記している。
FIG. 4 shows a state machine mounted on the status monitoring circuit 10. Each status of the state machine corresponds to each value of the status signal 210. The state machine makes a transition based on the value of the A-side bidirectional signal 12, the value of the B-side bidirectional signal 13, and the value of the buffer 11.
In FIG. 4, the signals are represented only by the sign of the signal, and the value of each signal is represented by an equal sign. As a specific example, "12 = logic L" indicates that the value of the A-side bidirectional signal 12 is logic L. Further, the state transition is represented by Sn (n is a natural number), and the condition of the state transition is described under Sn.

<時刻T0の説明>
時刻T0において、双方向シリアルバススイッチ1と、デバイスA2と、デバイスB3とは、信号を送信していない。
時刻T0において、
ステータス信号210の値は、「IDLE」であり、
イネーブル信号212と、イネーブル信号213との値は、論理Lであり、
A側双方向信号12と、B側双方向信号13との値は、論理Hである。
なお、時刻T0から時刻T1までは、図4のS1に対応する。
<Explanation of time T0>
At time T0, the bidirectional serial bus switch 1, the device A2, and the device B3 do not transmit a signal.
At time T0
The value of the status signal 210 is "IDLE".
The values of the enable signal 212 and the enable signal 213 are logical L, and are
The values of the A-side bidirectional signal 12 and the B-side bidirectional signal 13 are logic H.
It should be noted that the time from time T0 to time T1 corresponds to S1 in FIG.

<時刻T1の説明>
時刻T1において、
デバイスA2が、双方向シリアルバススイッチ1への双方向信号の送信を開始し、
A側双方向信号12の値が、論理Hから論理Lに変化する。
時刻T1において、
ステータス監視回路10は、ステータス信号210の値を「A_OUT」とし、
バスドライバ回路20は、ステータス信号210の値が「A_OUT」になると同時に、イネーブル信号213の値を論理Hとし、
出力バッファ回路113は、イネーブル信号213の値が論理Hになると同時に、論理Lを出力し、
これにより、B側双方向信号13の値は、論理Lになる。
なお、時刻T1における変化は、図4のS2に対応する。
<Explanation of time T1>
At time T1
Device A2 starts transmitting a bidirectional signal to the bidirectional serial bus switch 1.
The value of the A-side bidirectional signal 12 changes from logic H to logic L.
At time T1
The status monitoring circuit 10 sets the value of the status signal 210 to "A_OUT" and sets it to "A_OUT".
In the bus driver circuit 20, the value of the status signal 210 becomes "A_OUT", and at the same time, the value of the enable signal 213 is set to the logic H.
The output buffer circuit 113 outputs the logic L at the same time when the value of the enable signal 213 becomes the logic H.
As a result, the value of the B-side bidirectional signal 13 becomes the logic L.
The change at time T1 corresponds to S2 in FIG.

A側双方向信号12の値が論理Lである状態が続くと、図4のS3の遷移をする。また、B側双方向信号13の値は、論理Lを維持する。 If the value of the bidirectional signal 12 on the A side continues to be the logic L, the transition of S3 in FIG. 4 is performed. Further, the value of the B-side bidirectional signal 13 maintains the logic L.

<時刻T2の説明>
時刻T2において、
デバイスA2が、双方向シリアルバススイッチ1への双方向信号の送信を完了し、
A側双方向信号12の値が、論理Lから論理Hに変化する。
時刻T2において、
ステータス監視回路10は、ステータス信号210の値を「IDLE」とし、
バスドライバ回路20は、ステータス信号210の値が「IDLE」になると同時に、イネーブル信号213の値を論理Lとし、
出力バッファ回路113は、イネーブル信号213の値を論理Lになると同時に、論理Hを出力し、
これにより、B側双方向信号13の値は、論理Hになる。
なお、時刻T2における変化は、図4のS4に対応する。
<Explanation of time T2>
At time T2
Device A2 completes the transmission of the bidirectional signal to the bidirectional serial bus switch 1.
The value of the A-side bidirectional signal 12 changes from logic L to logic H.
At time T2
The status monitoring circuit 10 sets the value of the status signal 210 to "IDLE" and sets it to "IDLE".
In the bus driver circuit 20, the value of the status signal 210 becomes "IDLE", and at the same time, the value of the enable signal 213 is set to the logic L.
The output buffer circuit 113 outputs the logic H at the same time as the value of the enable signal 213 becomes the logic L, and outputs the logic H.
As a result, the value of the B-side bidirectional signal 13 becomes the logic H.
The change at time T2 corresponds to S4 in FIG.

<時刻T3の説明>
時刻T3において、
デバイスB3が、双方向シリアルバススイッチ1への双方向信号の送信を開始し、
B側双方向信号13の電圧が、論理Hから論理Lに変化する。
時刻T3において、
ステータス監視回路10は、ステータス信号210の値を「B_OUT」とし、
バスドライバ回路20は、ステータス信号210の値が「B_OUT」になると同時に、イネーブル信号212の値を論理Hにし、
出力バッファ回路112は、イネーブル信号212の値が論理Hになると同時に、論理Lを出力し、
これにより、A側双方向信号12の値は、論理Lになる。
なお、時刻T3における変化は、図4のS5に対応する。
<Explanation of time T3>
At time T3
Device B3 starts transmitting a bidirectional signal to the bidirectional serial bus switch 1.
The voltage of the B-side bidirectional signal 13 changes from logic H to logic L.
At time T3
The status monitoring circuit 10 sets the value of the status signal 210 to "B_OUT" and sets it to "B_OUT".
The bus driver circuit 20 sets the value of the status signal 210 to "B_OUT" and at the same time sets the value of the enable signal 212 to logical H.
The output buffer circuit 112 outputs the logic L at the same time when the value of the enable signal 212 becomes the logic H.
As a result, the value of the A-side bidirectional signal 12 becomes the logic L.
The change at time T3 corresponds to S5 in FIG.

B側双方向信号13の値が論理Lである状態が続くと、図4のS6の遷移をする。また、A側双方向信号12の値は、論理Lを維持する。 When the state in which the value of the B-side bidirectional signal 13 is the logic L continues, the transition of S6 in FIG. 4 is performed. Further, the value of the bidirectional signal 12 on the A side maintains the logic L.

<時刻T4の説明>
時刻T4において、
デバイスB3が、双方向シリアルバススイッチ1への双方向信号の送信を完了し、
B側双方向信号13の電圧が、論理Lから論理Hに変化する。
時刻T4において、
ステータス監視回路10は、ステータス信号210の値を「IDLE」とし、
バスドライバ回路20は、ステータス信号210の値が「IDLE」になると同時に、イネーブル信号212の値を論理Lにし、
出力バッファ回路112は、イネーブル信号212の値が論理Lになると同時に、論理Hを出力し、
これにより、A側双方向信号12の値は、論理Hになる。
なお、時刻T4における変化は、図4のS7に対応する。
<Explanation of time T4>
At time T4
Device B3 completes the transmission of the bidirectional signal to the bidirectional serial bus switch 1.
The voltage of the B-side bidirectional signal 13 changes from logic L to logic H.
At time T4
The status monitoring circuit 10 sets the value of the status signal 210 to "IDLE" and sets it to "IDLE".
The bus driver circuit 20 sets the value of the enable signal 212 to logical L at the same time that the value of the status signal 210 becomes “IDLE”.
The output buffer circuit 112 outputs the logic H at the same time when the value of the enable signal 212 becomes the logic L.
As a result, the value of the bidirectional signal 12 on the A side becomes the logic H.
The change at time T4 corresponds to S7 in FIG.

***通信競合が起きた場合の動作の説明***
次に、通信競合が起きた場合の動作について説明する。
*** Explanation of operation when communication conflict occurs ***
Next, the operation when a communication conflict occurs will be described.

図3は、ステータス信号210の値が「IDLE」と、「A_OUT2」と、「B_OUT2」と、「A_NACK」と、「B_NACK」とである場合における、A側双方向信号12の値と、イネーブル信号212の値と、ステータス信号210の値と、バッファ11の値と、イネーブル信号213の値と、B側双方向信号13の値とを示すタイムチャートである。なお、バッファ11の初期値を論理Hとする。 FIG. 3 shows the values of the A-side bidirectional signal 12 and the enable when the values of the status signal 210 are “IDLE”, “A_OUT2”, “B_OUT2”, “A_NACK”, and “B_NACK”. 6 is a time chart showing the value of the signal 212, the value of the status signal 210, the value of the buffer 11, the value of the enable signal 213, and the value of the B-side bidirectional signal 13. The initial value of the buffer 11 is logical H.

<時刻T0’の説明>
時刻T0’における状態は、時刻T0における状態と同様であるため、説明を省略する。
<Explanation of time T0'>
Since the state at time T0'is the same as the state at time T0, the description thereof will be omitted.

<時刻T5の説明>
時刻T5において、
デバイスA2が、双方向シリアルバススイッチ1への双方向信号の送信を開始し、
デバイスB3が、双方向シリアルバススイッチ1への双方向信号の送信を開始し、
A側双方向信号12の値と、B側双方向信号13の値とが、論理Hから論理Lに変化する。
時刻T5において、
ステータス監視回路10は、バッファ11の値が論理Hであるため、ステータス信号210の値を「A_NACK」とし、
バスドライバ回路20は、ステータス信号210の値が「A_NACK」になると同時に、イネーブル信号213の値をNACKに対応する値とし、
出力バッファ回路113は、イネーブル信号213の値がNACKに対応する値になると同時に、NACKに対応する値を出力する。しかし、デバイスB3が論理Lを出力しているため、B側双方向信号13の値は、論理Lのままである。
なお、時刻T5における変化は、図4のS8に対応する。図3中の破線は、NACKに対応する値を、中間電圧によって表現していることを表す。
<Explanation of time T5>
At time T5
Device A2 starts transmitting a bidirectional signal to the bidirectional serial bus switch 1.
Device B3 starts transmitting a bidirectional signal to the bidirectional serial bus switch 1.
The value of the A-side bidirectional signal 12 and the value of the B-side bidirectional signal 13 change from logic H to logic L.
At time T5
In the status monitoring circuit 10, since the value of the buffer 11 is logical H, the value of the status signal 210 is set to "A_NACK".
The bus driver circuit 20 sets the value of the status signal 210 to "A_NACK" and at the same time sets the value of the enable signal 213 to the value corresponding to NACK.
The output buffer circuit 113 outputs the value corresponding to NACK at the same time as the value of the enable signal 213 becomes the value corresponding to NACK. However, since the device B3 outputs the logic L, the value of the B-side bidirectional signal 13 remains the logic L.
The change at time T5 corresponds to S8 in FIG. The broken line in FIG. 3 indicates that the value corresponding to NACK is represented by an intermediate voltage.

<時刻T6の説明>
時刻T6において、
デバイスA2と、デバイスB3とが、双方向シリアルバススイッチ1への双方向信号の送信をやめる。
時刻T6において、
A側双方向信号12の値は、論理Hになり、
出力バッファ回路113は、NACKに対応する値を出力し続けており、
これにより、B側双方向信号13の値は、NACKに対応する値になる。
即ち、制御部502は、ステータス監視部501が選択していない双方向信号を送信する第1デバイス(デバイスB3)の第1イネーブル信号(イネーブル信号213)を否定応答(NACK)であることを示す値とすることによって、第1デバイス(デバイスB3)に否定応答の出力をさせる。
なお、時刻T6における変化は、図4のS9に対応する。
<Explanation of time T6>
At time T6
The device A2 and the device B3 stop transmitting the bidirectional signal to the bidirectional serial bus switch 1.
At time T6
The value of the bidirectional signal 12 on the A side becomes logic H, and becomes
The output buffer circuit 113 continues to output the value corresponding to NACK, and the output buffer circuit 113 continues to output the value corresponding to NACK.
As a result, the value of the B-side bidirectional signal 13 becomes a value corresponding to NACK.
That is, the control unit 502 indicates that the first enable signal (enable signal 213) of the first device (device B3) that transmits the bidirectional signal not selected by the status monitoring unit 501 is a negative response (NACK). By setting it as a value, the first device (device B3) is made to output a negative response.
The change at time T6 corresponds to S9 in FIG.

<時刻T7の説明>
時刻T7において、デバイスB3へのNACKの出力が完了する。NACKの出力が完了する条件等は、任意であって良い。
時刻T7において、
ステータス監視回路10は、ステータス信号210の値を「A_OUT2」にし、バッファ11の値を論理Lにし、
バスドライバ回路20は、ステータス信号210の値が「A_OUT2」になると同時に、イネーブル信号213の値を論理Hにし、
出力バッファ回路113は、イネーブル信号213の値が論理Hになると同時に、論理Lを出力し、
これにより、B側双方向信号13の電圧が論理Lになる。
即ち、制御部502は、第1デバイス(デバイスB3)への否定応答(NACK)の出力が完了した場合に、
第1イネーブル信号(イネーブル信号213)を双方向信号の送信が不可能であることを示す値とし、
第2デバイス(デバイスA2)が送信した双方向信号を第1デバイス(デバイスB3)に送信させる。
なお、ステータス監視回路10は、バッファ11の値を論理Lに変更しなくても良い。
時刻T7における変化は、図4のS10に対応する。時刻T7から時刻T8は、図4のS11に対応する。
<Explanation of time T7>
At time T7, the output of NACK to the device B3 is completed. The conditions for completing the output of NACK may be arbitrary.
At time T7
The status monitoring circuit 10 sets the value of the status signal 210 to "A_OUT2", sets the value of the buffer 11 to logical L, and sets the value to logical L.
The bus driver circuit 20 sets the value of the status signal 210 to "A_OUT2" and at the same time sets the value of the enable signal 213 to logical H.
The output buffer circuit 113 outputs the logic L at the same time when the value of the enable signal 213 becomes the logic H.
As a result, the voltage of the B-side bidirectional signal 13 becomes the logic L.
That is, the control unit 502 receives when the output of the negative response (NACK) to the first device (device B3) is completed.
The first enable signal (enable signal 213) is set as a value indicating that bidirectional signal transmission is impossible.
The bidirectional signal transmitted by the second device (device A2) is transmitted to the first device (device B3).
The status monitoring circuit 10 does not have to change the value of the buffer 11 to the logical L.
The change at time T7 corresponds to S10 in FIG. Time T7 to time T8 correspond to S11 in FIG.

<時刻T8の説明>
時刻T8において、デバイスB3への双方向信号の出力が完了する。
時刻T8において、
ステータス監視回路10は、ステータス信号210の値を「IDLE」とし、
バスドライバ回路20は、ステータス信号210の値が「IDLE」になると同時に、イネーブル信号213の値を論理Lとし、
出力バッファ回路113は、イネーブル信号213の値が論理Lになると同時に、論理Hを出力し、
これにより、B側双方向信号13の値は、論理Hになる。
なお、時刻T8における変化は、図4のS12に対応する。
<Explanation of time T8>
At time T8, the output of the bidirectional signal to the device B3 is completed.
At time T8
The status monitoring circuit 10 sets the value of the status signal 210 to "IDLE" and sets it to "IDLE".
In the bus driver circuit 20, the value of the status signal 210 becomes "IDLE", and at the same time, the value of the enable signal 213 is set to the logic L.
The output buffer circuit 113 outputs the logic H at the same time when the value of the enable signal 213 becomes the logic L.
As a result, the value of the B-side bidirectional signal 13 becomes the logic H.
The change at time T8 corresponds to S12 in FIG.

<時刻T9の説明>
時刻T9において、
デバイスA2が、双方向シリアルバススイッチ1への双方向信号の送信を開始し、
デバイスB3が、双方向シリアルバススイッチ1への双方向信号の送信を開始し、
A側双方向信号12の値と、B側双方向信号13の値とが、論理Hから論理Lに変化する。
時刻T9において、
ステータス監視回路10は、バッファ11の値が論理Lであるため、ステータス信号210の値を「B_NACK」とし、
バスドライバ回路20は、ステータス信号210の値が「B_NACK」になると同時に、イネーブル信号212の値をNACKに対応する値とし、
出力バッファ回路112は、イネーブル信号212の値をNACKに対応する値になると同時に、NACKに対応する値を出力する。しかし、デバイスA2が論理Lを出力しているため、A側双方向信号12の値は、論理Lのままである。
なお、時刻T9における変化は、図4のS13に対応する。
<Explanation of time T9>
At time T9
Device A2 starts transmitting a bidirectional signal to the bidirectional serial bus switch 1.
Device B3 starts transmitting a bidirectional signal to the bidirectional serial bus switch 1.
The value of the A-side bidirectional signal 12 and the value of the B-side bidirectional signal 13 change from logic H to logic L.
At time T9
In the status monitoring circuit 10, since the value of the buffer 11 is logical L, the value of the status signal 210 is set to "B_NACK".
In the bus driver circuit 20, the value of the status signal 210 becomes "B_NACK", and at the same time, the value of the enable signal 212 is set to the value corresponding to NACK.
The output buffer circuit 112 outputs the value corresponding to NACK at the same time as the value of the enable signal 212 becomes the value corresponding to NACK. However, since the device A2 outputs the logic L, the value of the bidirectional signal 12 on the A side remains the logic L.
The change at time T9 corresponds to S13 in FIG.

<時刻T10の説明>
時刻T10において、デバイスA2と、デバイスB3とが、双方向シリアルバススイッチ1への双方向信号の送信をやめる。
時刻T10において、
B側双方向信号13の値は、論理Hになり、
出力バッファ回路112は、NACKに対応する値を出力し続けており、
これにより、A側双方向信号12の値は、NACKに対応する値になる。
なお、時刻T10における変化は、図4のS14に対応する。
<Explanation of time T10>
At time T10, the device A2 and the device B3 stop transmitting the bidirectional signal to the bidirectional serial bus switch 1.
At time T10
The value of the B-side bidirectional signal 13 becomes logic H, and becomes
The output buffer circuit 112 continues to output the value corresponding to NACK.
As a result, the value of the A-side bidirectional signal 12 becomes a value corresponding to NACK.
The change at time T10 corresponds to S14 in FIG.

<時刻T11の説明>
時刻T11において、デバイスA2へのNACKの出力が完了する。
時刻T11において、
ステータス監視回路10は、ステータス信号210の値を「B_OUT2」にし、バッファ11の値を論理Hにし、
バスドライバ回路20は、ステータス信号210の値が「B_OUT2」になると同時に、イネーブル信号212の値を論理Hにし、
出力バッファ回路112は、イネーブル信号212の値が論理Hになると同時に、論理Lを出力し、
これにより、A側双方向信号12の値は論理Lとなる。なお、ステータス監視回路10は、バッファ11の値を変更しなくても良い。
なお、時刻T11における変化は、図4のS15に対応する。時刻T11から時刻T12は、図4のS16に対応する。
<Explanation of time T11>
At time T11, the output of NACK to the device A2 is completed.
At time T11
The status monitoring circuit 10 sets the value of the status signal 210 to "B_OUT2", sets the value of the buffer 11 to logical H, and sets the value to logical H.
The bus driver circuit 20 sets the value of the status signal 210 to "B_OUT2" and at the same time sets the value of the enable signal 212 to logical H.
The output buffer circuit 112 outputs the logic L at the same time when the value of the enable signal 212 becomes the logic H.
As a result, the value of the A-side bidirectional signal 12 becomes logic L. The status monitoring circuit 10 does not have to change the value of the buffer 11.
The change at time T11 corresponds to S15 in FIG. Time T11 to time T12 correspond to S16 in FIG.

<時刻T12の説明>
時刻T12において、デバイスA2への双方向信号の出力が完了する。
時刻T12において、
ステータス監視回路10は、ステータス信号210の値を「IDLE」にし、
バスドライバ回路20は、ステータス信号210の値が「IDLE」になると同時に、イネーブル信号212の値を論理Lにし、
出力バッファ回路112は、イネーブル信号212の値が論理Lになると同時に、論理Hを出力し、
これにより、A側双方向信号12の値は、論理Hとなる。
なお、時刻T12における変化は、図4のS17に対応する。
<Explanation of time T12>
At time T12, the bidirectional signal output to the device A2 is completed.
At time T12
The status monitoring circuit 10 sets the value of the status signal 210 to "IDLE" and sets it to "IDLE".
The bus driver circuit 20 sets the value of the enable signal 212 to logical L at the same time that the value of the status signal 210 becomes “IDLE”.
The output buffer circuit 112 outputs the logic H at the same time when the value of the enable signal 212 becomes the logic L.
As a result, the value of the bidirectional signal 12 on the A side becomes logic H.
The change at time T12 corresponds to S17 in FIG.

***実施の形態1の効果の説明***
本実施の形態の双方向シリアルバススイッチは、2のデバイスが同時に信号を送信した場合に、いずれか一方のデバイスを選択し、選択したデバイスの送信した信号を、他方のデバイスに信号を送信する。
*** Explanation of the effect of Embodiment 1 ***
When two devices transmit signals at the same time, the bidirectional serial bus switch of the present embodiment selects one of the devices and transmits the transmitted signal of the selected device to the other device. ..

また、本実施の形態の双方向シリアルバススイッチは、かかる場合に、信号を送信するデバイスとして選択しなかったデバイスに対してNACKを送信する。そのため、前記双方向シリアルバススイッチに選択されなかったデバイスは、NACKを受信することによって、双方向信号の送信が成功していないことを認識できる。
<変形例1>
本実施の形態において、双方向シリアルバススイッチ1は、回路により実現されている。しかし、双方向シリアルバススイッチ1の一部又は全部は、コンピュータにより実現されても良い。ここで、コンピュータは、CPU(Central Processing Unit)、メモリ、及び、記憶装置等から構成される。なお、コンピュータには、マイクロコンピュータが含まれる。
Further, the bidirectional serial bus switch of the present embodiment transmits NACK to a device not selected as a device for transmitting a signal in such a case. Therefore, the device not selected for the bidirectional serial bus switch can recognize that the bidirectional signal transmission has not been successful by receiving the NACK.
<Modification 1>
In the present embodiment, the bidirectional serial bus switch 1 is realized by a circuit. However, some or all of the bidirectional serial bus switch 1 may be realized by a computer. Here, the computer is composed of a CPU (Central Processing Unit), a memory, a storage device, and the like. The computer includes a microcomputer.

本変形例において、コンピュータにより実現されている双方向シリアルバススイッチ1の一部又は全部の各機能は、ソフトウェアである双方向シリアルバススイッチプログラムにより実現される。
***他の実施の形態***
前述した各実施の形態の自由な組み合わせ、あるいは各実施の形態の任意の構成要素の変形、もしくは各実施の形態において任意の構成要素の省略が可能である。
In this modification, each function of a part or all of the bidirectional serial bus switch 1 realized by the computer is realized by the bidirectional serial bus switch program which is software.
*** Other embodiments ***
It is possible to freely combine the above-described embodiments, modify any component of each embodiment, or omit any component in each embodiment.

また、実施の形態は、実施の形態1で示したものに限定されるものではなく、必要に応じて種々の変更が可能である。 Further, the embodiment is not limited to that shown in the first embodiment, and various changes can be made as needed.

1 双方向シリアルバススイッチ、2 デバイスA、3 デバイスB、10 ステータス監視回路、11 バッファ、12 A側双方向信号、13 B側双方向信号、20 バスドライバ回路、102 入力バッファ、103 入力バッファ、112 出力バッファ回路、113 出力バッファ回路、202 A側論理信号、203 B側論理信号、210 ステータス信号、212 イネーブル信号、213 イネーブル信号、302 プルアップ抵抗、303 プルアップ抵抗、402 電源、403 電源、501 ステータス監視部、502 制御部。 1 bidirectional serial bus switch, 2 device A, 3 device B, 10 status monitoring circuit, 11 buffer, 12 A side bidirectional signal, 13 B side bidirectional signal, 20 bus driver circuit, 102 input buffer, 103 input buffer, 112 output buffer circuit, 113 output buffer circuit, 202 A side logic signal, 203 B side logic signal, 210 status signal, 212 enable signal, 213 enable signal, 302 pull-up resistor, 303 pull-up resistor, 402 power supply, 403 power supply, 501 status monitoring unit, 502 control unit.

Claims (7)

2のデバイスを双方向シリアル通信可能に接続する双方向シリアルバススイッチであって、
第1デバイスと第2デバイスとの間の双方向信号のステータスを監視するステータス監視部と、
前記ステータス監視部の監視結果に従って前記第1デバイスと前記第2デバイスとの前記双方向信号を制御する制御部と
を備え、
前記ステータス監視部は、前記第1デバイスが前記第2デバイスへ送信する前記双方向信号と、前記第2デバイスが前記第1デバイスへ送信する前記双方向信号とが同時に発生する通信競合が起きた場合に、前記第1デバイスと前記第2デバイスとのいずれか一方の送信する前記双方向信号を選択し、選択した前記双方向信号を他方へ送信するよう指示する指示信号を前記制御部に送信し、
前記ステータス監視部は、
論理値に対応する値を保持するバッファを有し、
前記通信競合が起きた場合に、前記バッファの前記論理値に従って、前記第1デバイスと前記第2デバイスとのいずれか一方の送信する前記双方向信号を選択する双方向シリアルバススイッチ
A bidirectional serial bus switch that connects two devices for bidirectional serial communication.
A status monitoring unit that monitors the status of bidirectional signals between the first device and the second device,
A control unit for controlling the bidirectional signal between the first device and the second device according to the monitoring result of the status monitoring unit is provided.
In the status monitoring unit, a communication conflict has occurred in which the bidirectional signal transmitted by the first device to the second device and the bidirectional signal transmitted by the second device to the first device occur at the same time. In this case, the bidirectional signal to be transmitted by either the first device or the second device is selected, and an instruction signal instructing the bidirectional signal to be transmitted to the other is transmitted to the control unit. death,
The status monitoring unit
It has a buffer that holds the value corresponding to the logical value,
A bidirectional serial bus switch that selects the bidirectional signal to be transmitted by either the first device or the second device according to the logical value of the buffer when the communication conflict occurs .
前記制御部は、前記通信競合が起きた場合に、前記ステータス監視部が選択した前記双方向信号を送信する前記デバイスが、前記ステータス監視部が選択していない前記双方向信号を送信する前記デバイスから前記双方向信号を受信できないことを示す否定応答を出力する請求項に記載の双方向シリアルバススイッチ。 The control unit transmits the bidirectional signal selected by the status monitoring unit when the communication conflict occurs, and the device transmitting the bidirectional signal not selected by the status monitoring unit. The bidirectional serial bus switch according to claim 1 , wherein a negative response indicating that the bidirectional signal cannot be received from the switch is output. 前記制御部は、ステートマシンに従って制御する請求項に記載の双方向シリアルバススイッチ。 The bidirectional serial bus switch according to claim 2 , wherein the control unit is controlled according to a state machine. 2のデバイスを双方向シリアル通信可能に接続する双方向シリアルバススイッチであって、
第1デバイスと第2デバイスとの間の双方向信号のステータスを監視するステータス監視部と、
前記ステータス監視部の監視結果に従って前記第1デバイスと前記第2デバイスとの前記双方向信号を制御する制御部と
を備え、
前記ステータス監視部は、前記第1デバイスが前記第2デバイスへ送信する前記双方向信号と、前記第2デバイスが前記第1デバイスへ送信する前記双方向信号とが同時に発生する通信競合が起きた場合に、前記第1デバイスと前記第2デバイスとのいずれか一方の送信する前記双方向信号を選択し、選択した前記双方向信号を他方へ送信するよう指示する指示信号を前記制御部に送信し、
前記制御部は、前記通信競合が起きた場合に、前記ステータス監視部が選択した前記双方向信号を送信する前記デバイスが、前記ステータス監視部が選択していない前記双方向信号を送信する前記デバイスから前記双方向信号を受信できないことを示す否定応答を出力し、
前記制御部は、ステートマシンに従って制御する双方向シリアルバススイッチ
A bidirectional serial bus switch that connects two devices for bidirectional serial communication.
A status monitoring unit that monitors the status of bidirectional signals between the first device and the second device,
A control unit for controlling the bidirectional signal between the first device and the second device according to the monitoring result of the status monitoring unit is provided.
In the status monitoring unit, a communication conflict has occurred in which the bidirectional signal transmitted by the first device to the second device and the bidirectional signal transmitted by the second device to the first device occur at the same time. In this case, the bidirectional signal to be transmitted by either the first device or the second device is selected, and an instruction signal instructing the bidirectional signal to be transmitted to the other is transmitted to the control unit. death,
The control unit transmits the bidirectional signal selected by the status monitoring unit when the communication conflict occurs, and the device transmitting the bidirectional signal not selected by the status monitoring unit. Outputs a negative response indicating that the bidirectional signal cannot be received from
The control unit is a bidirectional serial bus switch that controls according to a state machine .
前記ステータス監視部は、The status monitoring unit
論理値に対応する値を保持するバッファを有し、 It has a buffer that holds the value corresponding to the logical value,
前記通信競合が起きた場合に、前記バッファの前記論理値に従って、前記第1デバイスと前記第2デバイスとのいずれか一方の送信する前記双方向信号を選択する請求項4に記載の双方向シリアルバススイッチ。 The bidirectional serial according to claim 4, wherein when the communication conflict occurs, the bidirectional signal to be transmitted by either the first device or the second device is selected according to the logical value of the buffer. Bus switch.
前記制御部は、前記第1デバイス及び前記第2デバイスが前記双方向信号を送信していないアイドル状態から、前記制御部が前記第1デバイスと前記第2デバイスとのいずれか一方の前記否定応答を出力している否定応答出力状態への遷移と、前記否定応答出力状態から、前記否定応答に対応する、前記双方向信号を送信する前記デバイスの前記双方向信号を出力する信号出力状態への遷移とを含むステートマシンに従って制御する請求項3から5のいずれか1項に記載の双方向シリアルバススイッチ。 The control unit receives the negative response from either the first device or the second device from the idle state in which the first device and the second device do not transmit the bidirectional signal. The transition to the negative response output state that outputs the negative response and the signal output state that outputs the bidirectional signal of the device that transmits the bidirectional signal corresponding to the negative response. The bidirectional serial bus switch according to any one of claims 3 to 5, which is controlled according to a state machine including a transition. 前記制御部は、
前記第1デバイスの前記双方向信号の送信を制御するイネーブル信号である第1イネーブル信号と、前記第2デバイスの前記双方向信号の送信を制御する前記イネーブル信号である第2イネーブル信号とを生成し、
前記イネーブル信号は、前記双方向信号の送信が不可能であることを示す値と、前記双方向信号の送信が可能であることを示す値と、前記否定応答であることを示す値とをとり、
前記第1デバイスと、前記第2デバイスとが前記双方向信号を出力していない場合に、前記第1イネーブル信号と、前記第2イネーブル信号とを、前記双方向信号の送信が可能であることを示す値とし、
前記通信競合が起きた場合に、前記ステータス監視部が選択していない前記双方向信号を送信する前記第1デバイスの前記第1イネーブル信号を前記否定応答であることを示す値とすることによって、前記第1デバイスに前記否定応答の出力をさせ、
前記制御部は、前記否定応答の出力が完了した場合に、
前記第1イネーブル信号を前記双方向信号の送信が不可能であることを示す値とし、
前記第2デバイスが送信した前記双方向信号を、前記第1デバイスに送信させる請求項からのいずれか1項に記載の双方向シリアルバススイッチ。
The control unit
A first enable signal, which is an enable signal for controlling the transmission of the bidirectional signal of the first device, and a second enable signal, which is the enable signal for controlling the transmission of the bidirectional signal of the second device, are generated. death,
The enable signal has a value indicating that the bidirectional signal cannot be transmitted, a value indicating that the bidirectional signal can be transmitted, and a value indicating that the response is negative. ,
When the first device and the second device do not output the bidirectional signal, the bidirectional signal can be transmitted between the first enable signal and the second enable signal. As a value indicating
When the communication conflict occurs, the first enable signal of the first device that transmits the bidirectional signal not selected by the status monitoring unit is set to a value indicating that the response is negative. The first device is made to output the negative response, and the first device is made to output the negative response.
The control unit receives when the output of the negative response is completed.
The first enable signal is set as a value indicating that the bidirectional signal cannot be transmitted.
The bidirectional serial bus switch according to any one of claims 2 to 6 , wherein the bidirectional signal transmitted by the second device is transmitted to the first device.
JP2019071297A 2019-04-03 2019-04-03 Bidirectional serial bus switch Active JP7086027B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019071297A JP7086027B2 (en) 2019-04-03 2019-04-03 Bidirectional serial bus switch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019071297A JP7086027B2 (en) 2019-04-03 2019-04-03 Bidirectional serial bus switch

Publications (2)

Publication Number Publication Date
JP2020170336A JP2020170336A (en) 2020-10-15
JP7086027B2 true JP7086027B2 (en) 2022-06-17

Family

ID=72746137

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019071297A Active JP7086027B2 (en) 2019-04-03 2019-04-03 Bidirectional serial bus switch

Country Status (1)

Country Link
JP (1) JP7086027B2 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040225812A1 (en) 2001-05-29 2004-11-11 Ervin Joseph J. Method and apparatus for interconnecting wired-AND buses
JP2008066951A (en) 2006-09-06 2008-03-21 Sony Corp Bus driver circuit, data transmission control device, and bus driving method
US20080183919A1 (en) 2006-12-21 2008-07-31 Hendon Semiconductors Pty. Ltd. Simple Bus Buffer
JP2016104369A (en) 2016-03-07 2016-06-09 株式会社コナミデジタルエンタテインメント Game machine, game control method, and computer program
WO2018204682A1 (en) 2017-05-03 2018-11-08 Texas Instruments Incorporated Repeater for an open-drain communication system using a current detector and a control logic circuit

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6054006B2 (en) * 2014-12-25 2016-12-27 オリンパス株式会社 Communications system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040225812A1 (en) 2001-05-29 2004-11-11 Ervin Joseph J. Method and apparatus for interconnecting wired-AND buses
JP2008066951A (en) 2006-09-06 2008-03-21 Sony Corp Bus driver circuit, data transmission control device, and bus driving method
US20080183919A1 (en) 2006-12-21 2008-07-31 Hendon Semiconductors Pty. Ltd. Simple Bus Buffer
JP2016104369A (en) 2016-03-07 2016-06-09 株式会社コナミデジタルエンタテインメント Game machine, game control method, and computer program
WO2018204682A1 (en) 2017-05-03 2018-11-08 Texas Instruments Incorporated Repeater for an open-drain communication system using a current detector and a control logic circuit

Also Published As

Publication number Publication date
JP2020170336A (en) 2020-10-15

Similar Documents

Publication Publication Date Title
KR100445493B1 (en) One-chip microcomputer with analog-to-digital converter
US20190361833A1 (en) Bus system
US10013374B2 (en) Bidirectional communication method between a master terminal and a slave terminal on a single transmission line
JP5082515B2 (en) Interface circuit and signal output adjustment method
JP7086027B2 (en) Bidirectional serial bus switch
JP5332428B2 (en) Level shift circuit and method thereof
US6874050B2 (en) Circuit and method for expanding a serial bus
CA1324690C (en) Optical fiber bus controller
WO2023208161A1 (en) Communication link switching control circuit, communication link and server
US11947475B2 (en) Synchronized processing of process data and delayed transmission
US8082377B2 (en) Data transmission and reception system, master device, and slave device
EP0298747A2 (en) Register
IT202100003542A1 (en) SYSTEM AND METHOD FOR SELECTING AN OPERATING MODE, SUCH AS A START MODE, OF A MICRO-CONTROLLER UNIT
JP2021060870A (en) Electronic control device
US11880332B2 (en) Bus system with controllable communication priority
JP2020145602A (en) Output control device, and control method of output control device
JPH07170172A (en) Programmable logic device
JP7091456B2 (en) In-vehicle electronic control device
JP2022119366A (en) Electronic instrument
JP2665070B2 (en) Bus circuit
JPH01151844A (en) Input signal switching controller
JP3238537B2 (en) Bus control circuit with multiprocessor configuration
JPS59191647A (en) Serial i/o of data processing system
JP2005094186A (en) D/a converter and data transmission method for use therein
JP2006140710A (en) Device and system for communication, and arbitrating method for communication

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20210408

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20211130

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20211221

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220107

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: 20220510

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20220607

R150 Certificate of patent or registration of utility model

Ref document number: 7086027

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150