JP7086027B2 - Bidirectional serial bus switch - Google Patents
Bidirectional serial bus switch Download PDFInfo
- 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
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).
しかしながら、特許文献1に記載されたバススイッチは、両端の電圧が同時にドライブレベルになると、両端側のマスク信号の論理が切り替わり、双方向シリアル信号の制御ができなくなる。そのため、複数のデバイスが同時に通信をした場合に、いずれのデバイスも通信をすることができないという課題があった。
However, in the bus switch described in
本発明では、両端の電圧が同時にドライブレベルになっても、双方向シリアル信号を制御することができる双方向シリアルバススイッチを提供することを目的とする。 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.
以下、本実施の形態について、図面を参照しながら詳細に説明する。なお、各図中、同一符号は同一又は相当部分を示す。
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
As shown in this figure, the bidirectional
ステータス監視部501は、ステータス監視回路10から構成される。
The status monitoring unit 501 is composed of a
制御部502は、バスドライバ回路20と、出力バッファ回路112と、出力バッファ回路113とから構成される。制御部502は、ステータス監視部501の監視結果に従って、デバイスA2と、デバイスB3との双方向信号を制御する。
The
プルアップ抵抗302は、A側双方向信号12の電圧を制御する。
プルアップ抵抗303は、プルアップ抵抗302と同様である。
The pull-up resistor 302 controls the voltage of the A-side
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
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
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
A側双方向信号12は、入力バッファ102、出力バッファ回路112、プルアップ抵抗302とを経由し、電源402に到達することができる。
The A-side
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
It is one of the logic H, the logic L, and the value corresponding to NACK (negative response).
When the bidirectional
The value corresponding to NACK is a value indicating that the bidirectional signal cannot be received.
The value of the A-side
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
When the value of the
When the value of the A-side
The B-side
入力バッファ102は、
A側双方向信号12を入力とし、
ステータス監視回路10へA側論理信号202を出力する。
入力バッファ103は、入力バッファ102と同様である。
The
A side
The
The
A側論理信号202は、
入力バッファ102からステータス監視回路10への信号であり、
論理Hと、論理Lと、NACKに対応する値とのいずれかの値をとる。
A側論理信号202がとる値は、電圧によって表現される。
B側論理信号203は、A側論理信号202と同様である。
The A
It is a signal from the
It takes one of the values of the logic H, the logic L, and the value corresponding to NACK.
The value taken by the
The B-
ステータス監視回路10は、
A側論理信号202の値と、B側論理信号203の値とを監視し、即ち、デバイスA2と、デバイスB3との間の双方向信号のステータスを監視し、
A側論理信号202の値と、B側論理信号203の値とに基づいてステータス信号210を生成し、
生成したステータス信号210をバスドライバ回路20へ出力する。
The
The value of the
A
The generated
ステータス監視回路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
"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
"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
"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
ステータス監視回路10は、通信が競合する通信競合が起きた場合、バッファ11の値(論理値)に従って、ステータス信号210の値を、「A_NACK」と、「B_NACK」とのいずれにするか決定する。ここで、通信競合が起きた場合とは、デバイスA2がデバイスB3へ送信する双方向信号と、デバイスB3がデバイスA2へ送信する双方向信号とが同時に発生した場合である、即ち、A側双方向信号12と、B側双方向信号13とが同時にドライブレベルになった場合である。
The
ステータス信号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
Corresponds to selecting a bidirectional signal to be transmitted by either device A2 or device B3.
Sending the
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
バスドライバ回路20は、
ステータス信号210を入力とし、
イネーブル信号212を生成し、
生成したイネーブル信号212を出力バッファ回路112へ出力し、
イネーブル信号213を生成し、
生成したイネーブル信号213を出力バッファ回路113へ出力し、
ステータス信号210の値に応じて、イネーブル信号212と、イネーブル信号213との値を制御する。
The
The
Generates enable signal 212 and
The generated enable signal 212 is output to the
Generates enable
The generated enable
The values of the enable signal 212 and the enable signal 213 are controlled according to the value of the
イネーブル信号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
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
The
***動作の説明***
本実施の形態に係る双方向シリアルバススイッチ1の動作について、図を参照しながら説明する。
*** Explanation of operation ***
The operation of the bidirectional
***基本動作の説明***
図2は、本実施の形態に係る双方向シリアルバススイッチ1の、通信競合が起きていない場合における動作を示すタイムチャートである。図4は、本実施の形態に係るステータス監視回路10が生成するステータス信号210を示すステートマシン図である。以下、通信競合が起きていない場合における動作を基本動作と呼び、基本動作について、図2及び図4に基づいて説明する。
*** Explanation of basic operation ***
FIG. 2 is a time chart showing the operation of the bidirectional
図2は、ステータス信号210の値が「IDLE」と、「A_OUT」と、「B_OUT」とである場合における、A側双方向信号12の値と、イネーブル信号212の値と、ステータス信号210の値と、イネーブル信号213の値と、B側双方向信号13の値とを示すタイムチャートである。
FIG. 2 shows the value of the A-side
図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
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
<時刻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
At time T0
The value of the
The values of the enable signal 212 and the enable signal 213 are logical L, and are
The values of the A-side
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
The value of the A-side
At time T1
The
In the
The
As a result, the value of the B-side
The change at time T1 corresponds to S2 in FIG.
A側双方向信号12の値が論理Lである状態が続くと、図4のS3の遷移をする。また、B側双方向信号13の値は、論理Lを維持する。
If the value of the
<時刻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
The value of the A-side
At time T2
The
In the
The
As a result, the value of the B-side
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
The voltage of the B-side
At time T3
The
The
The
As a result, the value of the A-side
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
<時刻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
The voltage of the B-side
At time T4
The
The
The
As a result, the value of the
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
<時刻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
Device B3 starts transmitting a bidirectional signal to the bidirectional
The value of the A-side
At time T5
In the
The
The
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
At time T6
The value of the
The
As a result, the value of the B-side
That is, the
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
The
The
As a result, the voltage of the B-side
That is, the
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
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
In the
The
As a result, the value of the B-side
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
Device B3 starts transmitting a bidirectional signal to the bidirectional
The value of the A-side
At time T9
In the
In the
The
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
At time T10
The value of the B-side
The
As a result, the value of the A-side
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
The
The
As a result, the value of the A-side
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
The
The
As a result, the value of the
The change at time T12 corresponds to S17 in FIG.
***実施の形態1の効果の説明***
本実施の形態の双方向シリアルバススイッチは、2のデバイスが同時に信号を送信した場合に、いずれか一方のデバイスを選択し、選択したデバイスの送信した信号を、他方のデバイスに信号を送信する。
*** Explanation of the effect of
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.
<
In the present embodiment, the bidirectional
本変形例において、コンピュータにより実現されている双方向シリアルバススイッチ1の一部又は全部の各機能は、ソフトウェアである双方向シリアルバススイッチプログラムにより実現される。
***他の実施の形態***
前述した各実施の形態の自由な組み合わせ、あるいは各実施の形態の任意の構成要素の変形、もしくは各実施の形態において任意の構成要素の省略が可能である。
In this modification, each function of a part or all of the bidirectional
*** 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)
第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 .
第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 .
論理値に対応する値を保持するバッファを有し、 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デバイスの前記双方向信号の送信を制御するイネーブル信号である第1イネーブル信号と、前記第2デバイスの前記双方向信号の送信を制御する前記イネーブル信号である第2イネーブル信号とを生成し、
前記イネーブル信号は、前記双方向信号の送信が不可能であることを示す値と、前記双方向信号の送信が可能であることを示す値と、前記否定応答であることを示す値とをとり、
前記第1デバイスと、前記第2デバイスとが前記双方向信号を出力していない場合に、前記第1イネーブル信号と、前記第2イネーブル信号とを、前記双方向信号の送信が可能であることを示す値とし、
前記通信競合が起きた場合に、前記ステータス監視部が選択していない前記双方向信号を送信する前記第1デバイスの前記第1イネーブル信号を前記否定応答であることを示す値とすることによって、前記第1デバイスに前記否定応答の出力をさせ、
前記制御部は、前記否定応答の出力が完了した場合に、
前記第1イネーブル信号を前記双方向信号の送信が不可能であることを示す値とし、
前記第2デバイスが送信した前記双方向信号を、前記第1デバイスに送信させる請求項2から6のいずれか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.
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)
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)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP6054006B2 (en) * | 2014-12-25 | 2016-12-27 | オリンパス株式会社 | Communications system |
-
2019
- 2019-04-03 JP JP2019071297A patent/JP7086027B2/en active Active
Patent Citations (5)
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 |