JP7231490B2 - Data transmission method and data transfer device - Google Patents

Data transmission method and data transfer device Download PDF

Info

Publication number
JP7231490B2
JP7231490B2 JP2019106972A JP2019106972A JP7231490B2 JP 7231490 B2 JP7231490 B2 JP 7231490B2 JP 2019106972 A JP2019106972 A JP 2019106972A JP 2019106972 A JP2019106972 A JP 2019106972A JP 7231490 B2 JP7231490 B2 JP 7231490B2
Authority
JP
Japan
Prior art keywords
port
input
start signal
output
impedance
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
JP2019106972A
Other languages
Japanese (ja)
Other versions
JP2020202451A (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.)
Nisshinbo Micro Devices Inc
Original Assignee
Nisshinbo Micro Devices Inc
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 Nisshinbo Micro Devices Inc filed Critical Nisshinbo Micro Devices Inc
Priority to JP2019106972A priority Critical patent/JP7231490B2/en
Publication of JP2020202451A publication Critical patent/JP2020202451A/en
Application granted granted Critical
Publication of JP7231490B2 publication Critical patent/JP7231490B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Bus Control (AREA)
  • Information Transfer Systems (AREA)
  • Small-Scale Networks (AREA)

Description

本発明は、ディジーチェーン接続されたN段(Nは2以上の正の整数)のスレーブデバイスで生成されたそれぞれのデータ信号を時系列的に順次マスターデバイスに取り込むデータ伝送方法及びデータ伝送装置に関する。 The present invention relates to a data transmission method and a data transmission apparatus for sequentially acquiring data signals generated by slave devices in N stages (N is a positive integer equal to or greater than 2) connected in a daisy chain to a master device in chronological order.

一般的に、マスターデバイスとスレーブデバイスは、SPI(Serial Peripheral Interface)やI2C等のインターフェースによって接続される。スレーブデバイスはマスターデバイスからのコマンドを受け取るためにチップセレクトポートやデバイスアドレスを有しており、マスターデバイスに対して複数個のスレーブデバイスを並列に接続することが可能になっている。これらのマスターデバイスと複数個のスレーブデバイスからなるデータ転送装置は特定のスレーブバイスを選択して直接制御することができるが、配線数が多くなる。 Generally, a master device and a slave device are connected by interfaces such as SPI (Serial Peripheral Interface) and I2C. A slave device has a chip select port and a device address for receiving commands from a master device, and it is possible to connect a plurality of slave devices in parallel to the master device. A data transfer device consisting of a master device and a plurality of slave devices can select a specific slave device and directly control it, but the number of wires increases.

一方、ディジーチェーンを利用したデータ伝送装置は、N個のスレーブデバイスをデイジーチェーン接続してマスターデバイスの入力側と出力側の間に接続することにより、配線数の削減と構成の簡素化が可能となっている。マスターデバイスからスタート信号が出力されると、1段目のスレーブデバイスが当該のスレーブデバイスに割り当てられた対象の温度等の物理量を計測したデータ信号を生成する。2段目のスレーブデバイスは、1段目のスレーブデバイスで生成されたデータ信号を入力してそのまま3段目のスレーブデバイスに送る。3段目のスレーブデバイスは2段目のスレーブデバイスから入力したデータ信号をそのまま4段目のスレーブデバイスに送る。それ以降のスレーブデバイスも同様に動作することで、1段目のスレーブデバイスで生成されたデータ信号が最終のN段目のスレーブデバイスからマスターデバイスへ出力される。 On the other hand, data transmission equipment using a daisy chain can reduce the number of wires and simplify the configuration by connecting N slave devices in a daisy chain and connecting them between the input side and the output side of the master device. It's becoming When a start signal is output from the master device, the first-stage slave device generates a data signal that measures a physical quantity such as the temperature of the object assigned to the slave device. The slave device in the second stage receives the data signal generated by the slave device in the first stage and sends it as it is to the slave device in the third stage. The slave device in the third stage sends the data signal input from the slave device in the second stage as it is to the slave device in the fourth stage. Subsequent slave devices operate in the same manner, so that the data signal generated by the first-stage slave device is output from the final N-stage slave device to the master device.

1段目のスレーブデバイスがデータ信号の出力を完了すると、1段目のスレーブデバイスは2段目のスレーブデバイスを動作させるためのスタート信号を出力する。これにより、2段目のスレーブデバイスが温度等の物理量を計測したデータ信号を生成する。3段目のスレーブデバイスは、2段目のスレーブデバイスで生成されたデータ信号を入力してそのまま4段目のスレーブデバイスに通過させる。更に後段のスレーブデバイスも同様に動作することで、2段目のスレーブデバイスの出力信号が最終のN段目のスレーブデバイスからマスターデバイスへ出力される。 When the first-stage slave device finishes outputting the data signal, the first-stage slave device outputs a start signal for operating the second-stage slave device. As a result, the second-stage slave device generates a data signal obtained by measuring a physical quantity such as temperature. The slave device in the third stage inputs the data signal generated by the slave device in the second stage and passes it to the slave device in the fourth stage as it is. Furthermore, the slave device in the latter stage also operates in the same way, so that the output signal of the slave device in the second stage is output from the slave device in the final Nth stage to the master device.

以上のデータ信号の生成とスタート信号の生成の動作が各段のスレーブデバイスにおいて繰り返されることで、N個のスレーブデバイスで生成されたN個のデータ信号が時系列的に順次マスターデバイスへ出力される。ディジーチェーン装置については、例えば特許文献1に記載がある。 By repeating the operation of generating the data signal and generating the start signal in each stage of the slave device, the N data signals generated by the N slave devices are sequentially output to the master device in time series. . A daisy chain device is described in Patent Document 1, for example.

特開2017-126858号公報JP 2017-126858 A

ところが、ディジーチェーンを利用したデータ伝送装置では、1段目のスレーブデバイスから最終のN段目のスレーブデバイスにかけて順次データ信号を生成するため、スレーブデバイスが数百乃至数千段にも接続された場合には、マスターデバイスからスタート信号が出力してからスレーブデバイスがデータ信号を出力するまでの待ち時間が、後段のスレーブデバイスほど長くなってしまうという課題がある。 However, in a data transmission apparatus using a daisy chain, slave devices are connected in hundreds to thousands of stages in order to generate data signals sequentially from the slave device in the first stage to the final slave device in the Nth stage. In this case, there is a problem that the waiting time from the output of the start signal from the master device to the output of the data signal from the slave device becomes longer in the later slave devices.

本発明の目的は、スレーブデバイスが数百乃至数千段接続された場合でも、所望の段のスレーブデバイスで生成されたデータ信号の取り込みの待ち時間を少なくできるようにしたデータ伝送装置を提供することである。 SUMMARY OF THE INVENTION An object of the present invention is to provide a data transmission apparatus capable of reducing the waiting time for fetching a data signal generated by a slave device in a desired stage even when slave devices are connected in hundreds to thousands of stages. That is.

上記目的を達成するために、請求項1にかかる発明は、一方がスタート信号出力用となり他方がデータ信号入力用となる第1ポート及び第2ポートを備えるマスターデバイスの前記第1ポートと前記第2ポートの間に、データ信号入出力用の第3ポート及び第4ポートを有するスレーブデバイスの前記第3ポートと前記第4ポートをN段(Nは2以上の正の整数)にわたってディジーチェーン接続し、1段目のスレーブデバイスの前記第3ポートを前記マスターデバイスの前記第1ポートに接続し、N段目のスレーブデバイスの前記第4ポートを前記マスターデバイスの前記第2ポートに接続し、前記スレーブデバイスは、前記第3ポートが低インピーダンスで前記第4ポートが高インピーダンスのとき、前記第3ポートに入力するスタート信号が検出されるまでは前記第3ポートに入力するデータ信号を前記第4ポートにそのまま通過させ、前記第3ポートに入力するスタート信号が検出されると前記第3ポートと前記第4ポートの間を遮断し、且つ所望のデータ信号を生成して前記第4ポートから出力すると共に続けて新たなスタート信号を生成して前記第4ポートから出力し、前記スレーブデバイスは、前記第3ポートが高インピーダンスで前記第4ポートが低インピーダンスのとき、前記第4ポートに入力するスタート信号が検出されるまでは前記第4ポートに入力するデータ信号を前記第3ポートにそのまま通過させ、前記第4ポートに入力するスタート信号が検出されると前記第3ポートと前記第4ポートの間を遮断し、且つ所望のデータ信号を生成して前記第3ポートから出力すると共に続けて新たなスタート信号を生成して前記第3ポートから出力する、ことを特徴とする。 In order to achieve the above object, the invention according to claim 1 is a master device comprising a first port and a second port, one for outputting a start signal and the other for inputting a data signal. Between the ports, the third port and the fourth port of the slave device having the third port and the fourth port for data signal input/output are daisy-chained over N stages (N is a positive integer equal to or greater than 2). , connecting the third port of the first stage slave device to the first port of the master device, connecting the fourth port of the Nth stage slave device to the second port of the master device, and is, when the third port has a low impedance and the fourth port has a high impedance, the data signal input to the third port is transmitted to the fourth port until a start signal input to the third port is detected; When the start signal input to the third port is detected, the signal is cut off between the third port and the fourth port, and a desired data signal is generated and output from the fourth port. Subsequently, a new start signal is generated and output from the fourth port, and the slave device inputs the start signal to the fourth port when the third port has high impedance and the fourth port has low impedance. is detected, the data signal input to the fourth port is passed through the third port as it is, and when the start signal input to the fourth port is detected, between the third port and the fourth port is cut off, a desired data signal is generated and output from the third port, and a new start signal is generated and output from the third port.

請求項2にかかる発明は、一方がスタート信号出力用となり他方がデータ信号入力用となる第1ポート及び第2ポートを備えるマスターデバイスと、データ信号入出力用の第3ポート及び第4ポートを有し、且つ前記マスターデバイスの前記第1ポートと前記第2ポートの間に前記第3ポートと前記第4ポートを介してディジーチェーン接続されたN個(Nは2以上の正の整数)のスレーブデバイスと、を備えたデータ転送装置であって、前記スレーブデバイスは、前記第3ポートが低インピーダンスで前記第4ポートが高インピーダンスのとき、前記第3ポートに入力するスタート信号が検出されるまでは前記第3ポートに入力するデータ信号を前記第4ポートにそのまま通過させ、前記第3ポートに入力するスタート信号が検出されると前記第3ポートと前記第4ポートの間を遮断し、且つ所望のデータ信号を生成して前記第4ポートから出力すると共に続けて新たなスタート信号を生成して前記第4ポートから出力し、前記第3ポートが高インピーダンスで前記第4ポートが低インピーダンスのとき、前記第4ポートに入力するスタート信号が検出されるまでは前記第4ポートに入力するデータ信号を前記第3ポートにそのまま通過させ、前記第4ポートに入力するスタート信号が検出されると前記第3ポートと前記第4ポートの間を遮断し、且つ所望のデータ信号を生成して前記第3ポートから出力すると共に続けて新たなスタート信号を生成して前記第3ポートから出力する、ことを特徴とする。 The invention according to claim 2 has a master device comprising a first port and a second port, one for outputting a start signal and the other for inputting a data signal, and a third port and a fourth port for inputting and outputting a data signal. and N (N is a positive integer equal to or greater than 2) slave devices daisy-chained between the first port and the second port of the master device via the third port and the fourth port. and, wherein the slave device, when the third port has a low impedance and the fourth port has a high impedance, until a start signal input to the third port is detected A data signal input to the third port is passed through the fourth port as it is, and when a start signal input to the third port is detected, communication between the third port and the fourth port is cut off, and a desired signal is transmitted. is generated and output from the fourth port, and subsequently a new start signal is generated and output from the fourth port, and when the third port has high impedance and the fourth port has low impedance , until the start signal input to the fourth port is detected, the data signal input to the fourth port is passed through the third port as it is, and when the start signal input to the fourth port is detected, the disconnecting between the third port and the fourth port, generating a desired data signal and outputting it from the third port, and continuously generating a new start signal and outputting it from the third port; characterized by

請求項3にかかる発明は、請求項2に記載のデータ転送装置において、前記スレーブデバイスは、前記第3ポートのインピーダンスの高低を判定する第1インピーダンス判定回路と、前記第4ポートのインピーダンスの高低を判定する第2インピーダンス判定回路と、入力ポートと出力ポートを有し、前記入力ポートに前記スタート信号が入力するとそれを検出した後にデータ信号を生成して前記出力ポートから出力しその後に新たなスタート信号を生成して前記出力ポートから出力するデータ信号生成回路と、前記第3ポートが低インピーダンスで前記第4ポートが高インピーダンスのとき、前記第3ポートを前記入力ポートに接続するとともに前記第4ポートを出力ポートに接続し、前記第3ポートが高インピーダンスで前記第4ポートが低インピーダンスのとき、前記第4ポートを前記入力ポートに接続するとともに前記第3ポートを出力ポートに接続し、前記第3ポートと前記第4ポートと共に高インピーダンスのとき前記第3ポート及び前記第4ポートの前記入力ポートと前記出力ポートへの接続を遮断する入出力替回路と、前記第3ポートに接続され前記スタート信号のパルス幅より長い遅延時間が設定された第1遅延回路と、前記第4ポートに接続され前記スタート信号のパルス幅より長い遅延時間が設定された第2遅延回路と、前記第1遅延回路と前記第2遅延回路の間に接続され、電源投入後に前記第1及び第2インピーダンス判定回路がインピーダンスの判定動作をするときはOFFし、前記第1及び第2インピーダンス判定回路がインピーダンスの判定動作を完了するとONし、前記スタート信号を検出するとOFFする第7スイッチと、を備えることを特徴とする。 The invention according to claim 3 is the data transfer apparatus according to claim 2, wherein the slave device includes a first impedance determination circuit that determines whether the impedance of the third port is high or low; an input port and an output port, and when the start signal is input to the input port, a data signal is generated after detecting it, output from the output port, and then a new a data signal generation circuit for generating a start signal and outputting it from the output port; and when the third port has a low impedance and the fourth port has a high impedance, the third port is connected to the input port and the 4 ports are connected to output ports, and when the third port is high impedance and the fourth port is low impedance, connecting the fourth port to the input port and connecting the third port to the output port; an input/output switching circuit that cuts off the connection of the third port and the fourth port to the input port and the output port when both the third port and the fourth port are in high impedance, the input/output switching circuit being connected to the third port; a first delay circuit having a delay time longer than the pulse width of the start signal; a second delay circuit connected to the fourth port and having a delay time longer than the pulse width of the start signal; is connected between the delay circuit and the second delay circuit, is turned off when the first and second impedance determination circuits perform impedance determination operation after power-on, and the first and second impedance determination circuits are connected to the impedance determination circuit; and a seventh switch that is turned on when the determination operation is completed and turned off when the start signal is detected.

本発明によれば、1段目のスレーブデバイスからN段目のスレーブデバイスにかけて順次データ信号を生成する正順モードと、N段目のスレーブデバイスから1段目のスレーブデバイスにかけて順次データ信号を生成する逆順モードの一方を、選択することができるので、スレーブデバイスが数百乃至数千段にわたって接続された場合でも、所望の段のスレーブデバイスで生成されたデータ信号の取り込みの待ち時間を少なくできる。 According to the present invention, there is a forward mode in which data signals are generated sequentially from the slave device in the first stage to the slave device in the Nth stage, and a data signal is generated in sequence from the slave device in the Nth stage to the slave device in the first stage. Since one of the reverse order modes can be selected, even if the slave devices are connected in hundreds to thousands of stages, the waiting time for fetching the data signal generated by the slave device in the desired stage can be reduced. .

本実施例のデータ伝送装置の正順モードの信号の流れを示すブロック図である。3 is a block diagram showing the flow of signals in the forward mode of the data transmission device of the embodiment; FIG. 図1のデータ伝送装置の正順モードの動作波形図である。FIG. 2 is an operational waveform diagram of the forward mode of the data transmission device of FIG. 1; 図1のデータ伝送装置のスレーブデバイスの回路図である。2 is a circuit diagram of a slave device of the data transmission apparatus of FIG. 1; FIG. 図1のデータ伝送装置のスレーブデバイスの動作のフローチャートである。2 is a flow chart of the operation of a slave device of the data transmission apparatus of FIG. 1; 図3のスレーブデバイスの温度センサの温度計測回路の回路図である。4 is a circuit diagram of a temperature measurement circuit of a temperature sensor of the slave device of FIG. 3; FIG. 図5の温度計測回路の動作波形図である。6 is an operation waveform diagram of the temperature measurement circuit of FIG. 5; FIG. 図3のスレーブデバイスの温度センサのスタート信号検出回路の回路図である。4 is a circuit diagram of a start signal detection circuit of the temperature sensor of the slave device of FIG. 3; FIG. 図7のスタート信号検出回路の動作波形図である。8 is an operation waveform diagram of the start signal detection circuit of FIG. 7; FIG. 本実施例のデータ伝送装置の逆順モードの信号の流れを示すブロック図である。3 is a block diagram showing the flow of signals in the reverse mode of the data transmission device of the embodiment; FIG. 図9のデータ伝送装置の逆順モードの動作波形図である。FIG. 10 is an operation waveform diagram of the data transmission device of FIG. 9 in a reverse order mode;

<実施例>
図1にディジーチェーンを利用したデータ伝送装置の接続構成を示す。10はマスターデバイスであり、一方がスタート信号STARTを出力し他方がデータ信号DATAの入力を行うポートP1,P2を備える。20-1、20-2、・・・、20-NはN段(Nは2以上の正の整数)に縦続接続されたスレーブデバイスであり、スタート信号STARTやデータ信号DATAの入出力を行う入出力ポートP3,P4を介して縦続接続されている。
<Example>
FIG. 1 shows a connection configuration of a data transmission device using a daisy chain. A master device 10 has ports P1 and P2, one of which outputs a start signal START and the other of which inputs a data signal DATA. 20-1, 20-2, . . . , 20-N are slave devices cascaded in N stages (N is a positive integer equal to or greater than 2) and input/output a start signal START and a data signal DATA. They are cascade-connected via input/output ports P3 and P4.

1段目のスレーブデバイス20-1は、ポートP3がマスターデバイス10のポートP1に接続され、ポートP4が2段目のスレーブデバイス20-2のポートP3に接続されている。スレーブデバイス20-2、20-3、・・・、20-N-1は、ポートP3が前段のスレーブデバイスのポートP4に接続され、ポートP4が後段のスレーブデバイスのポートP3に接続されている。N段目のスレーブデバイス20-Nは、ポートP4がマスターデバイス10のポートP2に接続されている。 The first-stage slave device 20-1 has a port P3 connected to the port P1 of the master device 10, and a port P4 connected to the port P3 of the second-stage slave device 20-2. The port P3 of the slave devices 20-2, 20-3, . . The port P4 of the N-th slave device 20-N is connected to the port P2 of the master device 10. FIG.

図3に、上記したスレーブデバイス20-1、20-2、・・・、20-Nとして共通使用されるスレーブデバイス20の内部構成を示す。21はデータ信号生成回路としての温度センサであり、入力ポートINにスタート信号STARTが入力したことを検出すると対象物の温度計測を開始し、その計測が完了すると生成したデータ信号DATAを出力ポートOUTから出力し、続けて次段のスレーブデバイスのためのスタート信号STARTを生成して出力ポートOUTから出力する。 FIG. 3 shows the internal configuration of the slave device 20 commonly used as the above slave devices 20-1, 20-2, . . . , 20-N. Reference numeral 21 denotes a temperature sensor as a data signal generation circuit, which starts measuring the temperature of an object when it detects that a start signal START is input to an input port IN, and outputs the generated data signal DATA to an output port OUT when the measurement is completed. , and subsequently generates a start signal START for the next-stage slave device and outputs it from the output port OUT.

22は入出力切替回路であり、ポートP5が“H”になり、ポートP6が“L”になると、スイッチSW1,SW2の接点をa側に切り替えて、ポートP3から入力する信号を温度センサ21の入力ポートINに入力させ、温度センサ21の出力ポートOUTから出力する信号をポートP4に出力する。また、ポートP5が“L”になり、ポートP6が“H”になると、スイッチSW1,SW2の接点をb側に切り替えて、ポートP4から入力する信号を温度センサ21の入力ポートINに入力させ、温度センサ21の出力ポートOUTから出力する信号をポートP3に出力する。ポートP5,P6が共に“L”のときは、スイッチSW1,SW2の接点をcに接続して、ポートP3,P4と温度センサ21の入力ポートIN、出力ポートOUTの間を遮断する。23はポートP3のインピーダンスの高低を判定する第1インピーダンス判定回路、24はポートP4のインピーダンスの高低を判定する第2インピーダンス判定回路である。 An input/output switching circuit 22 switches the contacts of the switches SW1 and SW2 to the a side when the port P5 becomes "H" and the port P6 becomes "L", and the signal input from the port P3 is sent to the temperature sensor 21. , and a signal output from the output port OUT of the temperature sensor 21 is output to the port P4. Further, when the port P5 becomes "L" and the port P6 becomes "H", the contacts of the switches SW1 and SW2 are switched to the "b" side so that the signal input from the port P4 is input to the input port IN of the temperature sensor 21. , the signal output from the output port OUT of the temperature sensor 21 is output to the port P3. When the ports P5 and P6 are both at "L", the contacts of the switches SW1 and SW2 are connected to c to disconnect the ports P3 and P4 from the input port IN and the output port OUT of the temperature sensor 21. FIG. Reference numeral 23 denotes a first impedance determination circuit for determining whether the impedance of the port P3 is high or low, and 24 is a second impedance determination circuit which determines whether the impedance of the port P4 is high or low.

第1インピーダンス判定回路23は、電流源I1、スイッチSW3,SW4、閾値電圧Vth1が設定されたコンパレータCP1、反転バッファ回路B1、制御回路231を備える。そして、電源が投入されたとき、スイッチSW3をOFFし、スイッチSW4をONして、電流源I1の電流I1をスイッチSW4を経由してポートP3に流す。ポートP3のインピーダンスが低いときは、コンパレータCP1の電圧が閾値電圧Vth1よりも低くなり、その出力が“L”となり、反転バッファ回路B1で“H”となって、制御回路231からポートP5に“H”の信号が出力して、入出力切替回路22のスイッチSW1,SW2を接点aに切り替える。ポートP3のインピーダンスが高いときは、コンパレータCP1の電圧が閾値電圧Vth1よりも高くなり、その出力が“H”となり、反転バッファ回路B1で“L”となって、制御回路231からポートP5に“L”の信号が出力する。インピーダンス判定が完了すると、スイッチSW3はONし、スイッチSW4はOFFする。 The first impedance determination circuit 23 includes a current source I1, switches SW3 and SW4, a comparator CP1 in which a threshold voltage Vth1 is set, an inverting buffer circuit B1, and a control circuit 231. FIG. Then, when the power is turned on, the switch SW3 is turned off, the switch SW4 is turned on, and the current I1 of the current source I1 flows to the port P3 via the switch SW4. When the impedance of the port P3 is low, the voltage of the comparator CP1 becomes lower than the threshold voltage Vth1, the output thereof becomes "L", the inverting buffer circuit B1 becomes "H", and the control circuit 231 outputs "H" to the port P5. A signal of "H" is output to switch the switches SW1 and SW2 of the input/output switching circuit 22 to the contact a. When the impedance of the port P3 is high, the voltage of the comparator CP1 becomes higher than the threshold voltage Vth1, the output thereof becomes "H", the output of the inverting buffer circuit B1 becomes "L", and the control circuit 231 outputs "L" to the port P5. A signal of "L" is output. When the impedance determination is completed, the switch SW3 is turned ON and the switch SW4 is turned OFF.

第2インピーダンス判定回路24は、電流源I2、スイッチSW5,SW6、閾値電圧Vth2が設定されたコンパレータCP2、反転バッファ回路B2、制御回路241を備える。そして、電源が投入されたとき、スイッチSW5をOFFし、スイッチSW6をONして、電流源I2の電流I2をスイッチSW6を経由してポートP4に流す。ポートP4のインピーダンスが低いときは、コンパレータCP2の電圧が閾値電圧Vth2よりも低くなり、その出力が“L”となり、反転バッファ回路B2で“H”となって、制御回路241からポートP6に“H”の信号が出力して、入出力切替回路22のスイッチSW1,SW2を接点bに切り替える。ポートP4のインピーダンスが高いときは、コンパレータCP2の電圧が閾値電圧Vth2よりも高くなり、その出力が“H”となり、反転バッファ回路B2で“L”となって、制御回路241からポートP6に“L”の信号が出力する。インピーダンス判定が完了すると、スイッチSW5はONし、スイッチSW6はOFFする。 The second impedance determination circuit 24 includes a current source I2, switches SW5 and SW6, a comparator CP2 in which a threshold voltage Vth2 is set, an inverting buffer circuit B2, and a control circuit 241. Then, when the power is turned on, the switch SW5 is turned off, the switch SW6 is turned on, and the current I2 of the current source I2 flows to the port P4 via the switch SW6. When the impedance of the port P4 is low, the voltage of the comparator CP2 becomes lower than the threshold voltage Vth2, the output thereof becomes "L", the inverting buffer circuit B2 becomes "H", and the control circuit 241 outputs "H" to the port P6. A signal of "H" is output to switch the switches SW1 and SW2 of the input/output switching circuit 22 to the contact b. When the impedance of the port P4 is high, the voltage of the comparator CP2 becomes higher than the threshold voltage Vth2, the output thereof becomes "H", the output of the inverting buffer circuit B2 becomes "L", and the control circuit 241 outputs "L" to the port P6. A signal of "L" is output. When the impedance determination is completed, the switch SW5 is turned ON and the switch SW6 is turned OFF.

25はポートP3に接続された遅延回路、26はポートP4に接続された遅延回路であり、それら遅延回路25,26は双方向に同じ遅延時間が設定されている。そしてそれら遅延回路25,26の間にはスイッチSW7が接続されている。このスイッチSW7は電源投入時にはOFFに設定され、ポートP3,P4のインピーダンスの高低の判定が確定されるとONし、スタート信号STARTが検出されるとOFFする。 25 is a delay circuit connected to the port P3, 26 is a delay circuit connected to the port P4, and the delay circuits 25 and 26 are set to have the same delay time in both directions. A switch SW7 is connected between the delay circuits 25 and 26. FIG. The switch SW7 is turned off when the power is turned on, turned on when the impedance level of the ports P3 and P4 is determined, and turned off when the start signal START is detected.

図4に温度センサ21の動作のフローチャートを示す。温度センサ21は、入力ポートINに入力したスタート信号STARTが検出される(S1-Y)と温度計測を開始し(S2)、その温度計測が完了する(S3-Y)と出力ポートOUTから計測した値を示すデータ信号DATAを出力し(S4)、続けて次段のスレーブデバイスのためのスタート信号STARTをワンショットマルチ等により生成して、同じ出力ポートOUTから出力する(S5)。 FIG. 4 shows a flow chart of the operation of the temperature sensor 21. As shown in FIG. When the start signal START inputted to the input port IN is detected (S1-Y), the temperature sensor 21 starts temperature measurement (S2), and when the temperature measurement is completed (S3-Y), it measures from the output port OUT. A data signal DATA indicating the value obtained is output (S4), and subsequently a start signal START for the slave device in the next stage is generated by one-shot multi or the like and output from the same output port OUT (S5).

図5に温度センサ21の温度計測部211の構成を示す。2111は基準値生成回路であり、固定抵抗R1、キャパシタC1、リセットスイッチSW8、電流がI3の電流源I3、閾値電圧Vth3が設定されたコンパレータCP3、及び反転バッファ回路B3を備える。 FIG. 5 shows the configuration of the temperature measuring section 211 of the temperature sensor 21. As shown in FIG. A reference value generating circuit 2111 includes a fixed resistor R1, a capacitor C1, a reset switch SW8, a current source I3 with a current of I3, a comparator CP3 in which a threshold voltage Vth3 is set, and an inverting buffer circuit B3.

この基準値生成回路2111では、スタート信号STARTが検出されるとスイッチSW8がON→OFFに切り替わり、電流源I3の電流I3によってキャパシタC1の充電が開始し、その充電電圧Vrが時間経過とともに上昇する。そして、その充電電圧Vrが閾値電圧Vth3を超えると、コンパレータCP1の出力電圧が“H”→“L”に変化し、反転バッファ回路B3の出力電圧Vrrが“L”→“H”に変化する。スイッチSW8は出力電圧Vrrが“H”になった後にONしてキャパシタC1の電荷を放電する。 In the reference value generation circuit 2111, when the start signal START is detected, the switch SW8 is switched from ON to OFF, the capacitor C1 starts to be charged by the current I3 of the current source I3, and the charging voltage Vr increases with time. . When the charging voltage Vr exceeds the threshold voltage Vth3, the output voltage of the comparator CP1 changes from "H" to "L", and the output voltage Vrr of the inverting buffer circuit B3 changes from "L" to "H". . The switch SW8 is turned on after the output voltage Vrr becomes "H" to discharge the capacitor C1.

2112は計測信号生成回路であり、温度が高くなるほど抵抗値が小さくなる温度抵抗R2、キャパシタC2(=C1)、リセットスイッチSW9、電流I4の電流源I4(=I3)、閾値電圧Vth4(=Vth3)が設定されたコンパレータCP4、反転バッファ回路B4を備える。 Reference numeral 2112 denotes a measurement signal generation circuit, which includes a temperature resistor R2 whose resistance value decreases as the temperature rises, a capacitor C2 (=C1), a reset switch SW9, a current source I4 (=I3) of the current I4, and a threshold voltage Vth4 (=Vth3). ) is set, and an inverting buffer circuit B4.

この計測値生成回路2112では、スタート信号STARTが検出されるとスイッチSW9がON→OFFに切り替わり、電流源I4の電流I4によってキャパシタC2の充電が開始し、その充電電圧Vsが時間経過とともに上昇する。そして、その充電電圧Vsが閾値電圧Vth4を超えると、コンパレータCP2の出力電圧が“H”→“L”に変化し、反転バッファ回路B4の出力電圧Vssが“L”→“H”に変化する。スイッチSW9は出力電圧Vssが“H”になった後にONしてキャパシタC2の電荷を放電する。 In this measured value generation circuit 2112, when the start signal START is detected, the switch SW9 is switched from ON to OFF, the capacitor C2 starts to be charged by the current I4 of the current source I4, and the charging voltage Vs increases with time. . When the charging voltage Vs exceeds the threshold voltage Vth4, the output voltage of the comparator CP2 changes from "H" to "L", and the output voltage Vss of the inverting buffer circuit B4 changes from "L" to "H". . The switch SW9 is turned on after the output voltage Vss becomes "H" to discharge the charge of the capacitor C2.

2113はTDC(Time to Digital Converter)回路であり、反転バッファ回路B3の出力電圧Vrrの立上りタイミングから反転バッファ回路B4の出力電圧Vssの立上りタイミングまでの時間を高分解能のデジタルシリアル信号に変換した温度計測結果のデータ信号DATAを作成する。 Reference numeral 2113 denotes a TDC (Time to Digital Converter) circuit, which converts the time from the rising timing of the output voltage Vrr of the inverting buffer circuit B3 to the rising timing of the output voltage Vss of the inverting buffer circuit B4 into a high-resolution digital serial signal. A data signal DATA of the measurement result is created.

図6に図5で説明した温度センサ21の温度計測回路211の動作波形を示す。スタート信号STARTが時刻taにおいて検出されると、スイッチSW8,SW9は同時にON→OFFに切り替わり、同時に電流I3,I4によるキャパシタC1,C2への充電が開始される。 FIG. 6 shows operating waveforms of the temperature measurement circuit 211 of the temperature sensor 21 described in FIG. When the start signal START is detected at time ta, the switches SW8 and SW9 are simultaneously switched from ON to OFF, and charging of the capacitors C1 and C2 by the currents I3 and I4 is started at the same time.

固定抵抗R1の抵抗値は温度抵抗R2の抵抗値に比べて高い値に設定されている。このため、キャパシタC1への充電電流がキャパシタC2への充電電流よりも多くなって、電圧Vrは電圧Vsよりも立上り傾斜が大きくなり、時刻tbで電圧Vrが閾値電圧Vth3を超える。このため、電圧Vrrはその時刻tbで“L”→“H”に変化する。 The resistance value of the fixed resistor R1 is set higher than the resistance value of the temperature resistor R2. Therefore, the charging current to capacitor C1 becomes larger than the charging current to capacitor C2, voltage Vr rises more steeply than voltage Vs, and voltage Vr exceeds threshold voltage Vth3 at time tb. Therefore, the voltage Vrr changes from "L" to "H" at the time tb.

一方、電圧Vsは、温度が低いときは温度抵抗R2の抵抗値が大きくなるので、キャパシタC2への充電電流が多くなり、例えば時刻tcで閾値電圧Vth42を超えて電圧Vssが“L”→“H”に変化する。温度が高いときは温度抵抗R2の抵抗値が小さくなるので、キャパシタC2への充電電流が少なくなり、例えば時刻tdで閾値電圧Vth4を超えて電圧Vssが“L”→“H”に変化する。 On the other hand, when the temperature is low, the voltage Vs has a large resistance value of the temperature resistor R2, so that the charging current to the capacitor C2 increases. H”. When the temperature is high, the resistance value of the temperature resistor R2 becomes small, so the charging current to the capacitor C2 becomes small.

したがって、温度が低いときは時刻tb~tcまでの時間T1がTDC回路2113によってデータ信号DATAに変換され、温度が高いときは時刻tb~tdまでの時間T2がデータ信号DATAに変換されることになる。このようにして温度センサ21は計測したシリアルのデータ信号DATAを出力ポートOUTから出力する。 Therefore, when the temperature is low, the time T1 from time tb to tc is converted into the data signal DATA by the TDC circuit 2113, and when the temperature is high, the time T2 from time tb to td is converted into the data signal DATA. Become. Thus, the temperature sensor 21 outputs the measured serial data signal DATA from the output port OUT.

図7にスタート信号検出回路212を示す。入力ポートINAは温度センサ21の入力ポートINに接続され、出力ポートTRGの信号は図5で説明した温度計測回路211のスイッチSW8,SW9の制御用となる。B5~B12は反転バッファ回路、2121は抵抗R3とキャパシタC3で構成される積分回路、2122はDFF回路、2123はORゲートである。 The start signal detection circuit 212 is shown in FIG. The input port INA is connected to the input port IN of the temperature sensor 21, and the signal of the output port TRG is used for controlling the switches SW8 and SW9 of the temperature measuring circuit 211 described with reference to FIG. B5 to B12 are inverting buffer circuits, 2121 is an integrating circuit composed of a resistor R3 and a capacitor C3, 2122 is a DFF circuit, and 2123 is an OR gate.

このスタート信号検出回路212は、入力ポートINAにスタート信号STARTが入力すると、積分回路2121で積分されたノードN1の電圧を反転した電圧が、反転インバータB12から出力する。 When the start signal START is input to the input port INA of the start signal detection circuit 212, the voltage obtained by inverting the voltage of the node N1 integrated by the integration circuit 2121 is output from the inverting inverter B12.

このとき、スタート信号STARTが図8(a)に示すように規定のパルス幅の場合は、ノードN1の電圧が反転バッファ回路B12の閾値VTh12に到達しないので、反転バッファ回路B12の出力電圧は“L”のままであり、スタート信号STARTが立ち下がるとき、反転バッファ回路B11の出力電圧でCK端子が“H”になっても、DFF回路2122のQ端子の電圧STOPは“L”のままとなる。ORゲート2123には、スタート信号STARTを反転バッファ回路B5~B10によりΔtだけ遅延した信号INBが“L”として入力するので、ORゲート2123の出力ポートTRGの信号が“L”になる。TRG=“L”は、スタート信号STARTを検出した信号であり、温度計測回路211のスイッチSW8,SW9をOFFさせる。 At this time, when the start signal START has a prescribed pulse width as shown in FIG. When the start signal START falls, the voltage STOP of the Q terminal of the DFF circuit 2122 remains "L" even if the CK terminal becomes "H" due to the output voltage of the inverting buffer circuit B11. Become. Since the signal INB obtained by delaying the start signal START by .DELTA.t by the inverting buffer circuits B5 to B10 is inputted to the OR gate 2123 as "L", the signal at the output port TRG of the OR gate 2123 becomes "L". TRG="L" is a signal that detects the start signal START, and turns off the switches SW8 and SW9 of the temperature measurement circuit 211. FIG.

一方、スタート信号STARTが図8(b)に示すように規定のパルス幅よりも長い場合は、ノードN1の電圧が反転バッファ回路B12の閾値電圧Vth12よりも低下するので、反転バッファ回路B12の出力電圧は“H”になり、反転バッファ回路B11の出力電圧でCK端子が“H”になったとき、DFF回路2122のQ端子の電圧STOPは“H”になる。ORゲート2123には、スタート信号STARTを反転バッファ回路B5~B10によりΔtだけ遅延した信号INBが“L”として入力するが、ORゲート2123の出力ポートTRGの信号は“H”から変化しない。つまり、正規のスタート信号STARTは検出されない。 On the other hand, when the start signal START is longer than the prescribed pulse width as shown in FIG. The voltage becomes "H", and when the CK terminal becomes "H" by the output voltage of the inverting buffer circuit B11, the voltage STOP of the Q terminal of the DFF circuit 2122 becomes "H". A signal INB obtained by delaying the start signal START by .DELTA.t by the inverting buffer circuits B5 to B10 is input to the OR gate 2123 as "L", but the signal at the output port TRG of the OR gate 2123 does not change from "H". That is, the normal start signal START is not detected.

以上説明したスレーブデバイス20-1、20-2、・・・、20-Nは、電源投入時にスイッチSW3,SW5,SW7がOFFとなり、スイッチSW4,SW6がONとなる。インピーダンス判定回路23がノードP3が低ンピーダンスであると判定し且つインピーダンス判定回路24がノードP4が高インピーダンスであると判定したときは、入出力切替回路22のスイッチSW1,SW2が接点aに切り替わるとともにスイッチSW7がONとなる。また、インピーダンス判定回路23がポートP3が高インピーダンスであると判定し且つインピーダンス判定回路24がポートP4が低インピーダンスであると判定したときは、入出力切替回路22のスイッチSW1,SW2が接点bに切り替わるとともにスイッチSW7がONとなる。さらに、インピーダンス判定回路23がポートP3、P4が共に高インピーダンスであるとして判定したときは、入出力切替回路22のスイッチSW1,SW2が接点cに切り替わるとともにスイッチSW7がONとなる。さらに、スイッチSW7は、温度センサ21内のスタート信号検出回路212によってスタート信号STARTが検出されたときはOFFになる。 In the slave devices 20-1, 20-2, . When the impedance determination circuit 23 determines that the node P3 has a low impedance and the impedance determination circuit 24 determines that the node P4 has a high impedance, the switches SW1 and SW2 of the input/output switching circuit 22 are switched to the contact a. The switch SW7 is turned ON. When the impedance determination circuit 23 determines that the port P3 has a high impedance and the impedance determination circuit 24 determines that the port P4 has a low impedance, the switches SW1 and SW2 of the input/output switching circuit 22 are connected to the contact b. As soon as it is switched, the switch SW7 is turned ON. Further, when the impedance determination circuit 23 determines that both the ports P3 and P4 have high impedance, the switches SW1 and SW2 of the input/output switching circuit 22 are switched to the contact c and the switch SW7 is turned ON. Furthermore, the switch SW7 is turned OFF when the start signal START is detected by the start signal detection circuit 212 in the temperature sensor 21 .

マスターデバイス10は、ポートP1を低インピーダンスに設定しポートP2を高インピーダンスに設定する正順モードと、ポートP1を高インピーダンスに設定しポートP2を低インピーダンスに設定する逆順モードの一方に設定される。正順モードのときは、ポートP1からスタート信号STARTを出力するとともにデータ信号DATAをポートP2から取り込む。また、逆順モードのときは、ポートP2からスタート信号STARTを出力するとともにデータ信号DATAをポートP1から取り込む。 The master device 10 is set to either a forward mode in which port P1 is set to low impedance and port P2 to high impedance, or a reverse mode in which port P1 is set to high impedance and port P2 is set to low impedance. In forward mode, the start signal START is output from the port P1 and the data signal DATA is taken in from the port P2. In reverse mode, the start signal START is output from the port P2 and the data signal DATA is received from the port P1.

さて、本実施例のデータ転送装置に電源が投入された直後は、マスタ装置10のポートP1,P2が共に高インピーダンスである。また、各スレーブデバイス10-1、10-2、・・・、20-NのスイッチSW7がOFFである。よって、各スレーブデバイス10-1、10-2、・・・、20-NのポートP3,P4は共に高インピーダンスと判定される。この判定によってSW7がONとなる。 Immediately after the data transfer device of this embodiment is powered on, both ports P1 and P2 of the master device 10 are at high impedance. Also, the switch SW7 of each slave device 10-1, 10-2, . . . , 20-N is OFF. Therefore, ports P3 and P4 of slave devices 10-1, 10-2, . SW7 is turned ON by this determination.

次に、マスターデバイス10が正順モードに設定されたときは、ポートP1が低インピーダンスに設定されるので、1段目のスレーブデバイス20-1のポートP3は低インピーダンスの判定に変更される。ポートP4は高インピーダンスであるとの判定のままである。よって、入出力切替回路SW1,SW2は接点aに切り替わり、温度センサ21の入力ポートINがポートP3に、出力ポートOUTがポートP4に接続される。このときは、図1のような信号の流れとなり、その動作波形は図2に示すようになる。 Next, when the master device 10 is set to the forward mode, the port P1 is set to low impedance, so the port P3 of the slave device 20-1 in the first stage is changed to low impedance determination. Port P4 remains determined to be high impedance. Therefore, the input/output switching circuits SW1 and SW2 are switched to the contact a, the input port IN of the temperature sensor 21 is connected to the port P3, and the output port OUT is connected to the port P4. At this time, the signal flows as shown in FIG. 1, and the operation waveforms thereof are shown in FIG.

次に、マスターデバイス10のポートP1からスタート信号STARTが出力すると、1段目のスレーブデバイス20-1の温度センサ21内のスタート信号検出回路212によってそのスタート信号STARTが検出される。これにより、スイッチSW7がOFFするとともに、時刻t2(=ta)で温度計測が開始する。そして、時刻t3で温度計測が終了すると、測定したデータ信号DATA1が出力ポートOUTから入出力切替回路22のスイッチSW2の接点aを介してポートP4に出力する。このデータ信号DATA1は、スレーブデバイス20-2、・・・、20-NのONしているスイッチSW7を経由して、そのままマスターデバイス10のポートP2に取り込まれる。 Next, when the start signal START is output from the port P1 of the master device 10, the start signal START is detected by the start signal detection circuit 212 in the temperature sensor 21 of the first-stage slave device 20-1. As a result, the switch SW7 is turned off, and temperature measurement starts at time t2 (=ta). When the temperature measurement ends at time t3, the measured data signal DATA1 is output from the output port OUT to the port P4 via the contact a of the switch SW2 of the input/output switching circuit 22. FIG. This data signal DATA1 is directly taken into the port P2 of the master device 10 via the switches SW7 of the slave devices 20-2, .

ポートP3に入力していたスタート信号STARTは遅延回路25にも入力するが、その遅延回路25の遅延時間を正規のスタート信号STARTのパルス幅の時間(t1~t2)よりも長く設定しておけば、スタート信号検出回路212でスタート信号STARTの検出が完了したタイミングではスイッチSW7がOFFしているので、ポートP3に入力したスタート信号STARTがポートP4にスルーすることはない。 The start signal START input to the port P3 is also input to the delay circuit 25, but the delay time of the delay circuit 25 must be set longer than the normal pulse width time (t1 to t2) of the start signal START. For example, when the start signal detection circuit 212 completes the detection of the start signal START, the switch SW7 is turned off, so the start signal START input to the port P3 does not pass through to the port P4.

このとき、2段目のスレーブデバイス20-1では、1段目のスレーブデバイス20-1のポートP4がスイッチSW2が接点aに接続されていることによって低インピーダンスとなるので、その2段目のスレーブデバイス20-2のポートP3は低インピーダンスの判定に変更される。また、2段目のスレーブデバイス20-2のポートP4は高インピーダンスの判定のままとなっている。 At this time, in the second-stage slave device 20-1, the port P4 of the first-stage slave device 20-1 has a low impedance because the switch SW2 is connected to the contact a. The port P3 of the slave device 20-2 is changed to low impedance determination. Further, the port P4 of the slave device 20-2 in the second stage is still judged to be high impedance.

1段目のスレーブデバイス20-1において、温度センサ21からデータ信号DATA1の出力が完了すると、続けて新たなスタート信号STARTがその温度センサ21で生成されて出力して、スイッチSW2を経由してポートP4から、2段目のスレーブデバイス20-2のポートP3に入力する。この2段目のスレーブデバイス20-2も1段目のスレーブデバイス20-1と同様に動作して、温度センサ21で計測されたデータ信号DATA2がポートP4から出力し、スレーブデバイス20-3、・・・、20-NのONしているスイッチSW7を経由して、そのままマスターデバイス10のポートP2に取り込まれる。また、データ信号DATA2に続いて、新たなスタート信号START信号が生成されて、ポートP4から3段目のスレーブデバイス20-3に出力する。 In the slave device 20-1 at the first stage, when the output of the data signal DATA1 from the temperature sensor 21 is completed, a new start signal START is subsequently generated by the temperature sensor 21 and output via the switch SW2. Input from port P4 to port P3 of slave device 20-2 in the second stage. This second-stage slave device 20-2 also operates in the same manner as the first-stage slave device 20-1, and the data signal DATA2 measured by the temperature sensor 21 is output from the port P4. . . , and taken into the port P2 of the master device 10 as it is via the ON switch SW7 of the 20-N. Further, following the data signal DATA2, a new start signal START signal is generated and output from the port P4 to the third-stage slave device 20-3.

以下、3段目~N段目のスレーブデバイス20-3、・・・、20-Nにかけて同じ動作が繰り返されて、順次温度の計測結果を示すデータ信号DATA3、・・・、DATANが生成されて、マスターデバイス10のポートP2に入力することで、N段のスレーブデバイス20-1、20-2、・・・、20-Nで計測されたN個の温度計測データ信号DATA1、・・・、DATANが順次マスターデバイス10に取り込まれる。最終段のスレーブデバイス20-Nから出力してマスターデバイス10のポートP2に入力するスタート信号STARTは、マスターデバイス10で無視される。 . . , 20-N in the third stage to the N-th stage to sequentially generate data signals DATA3, . are input to the port P2 of the master device 10, N temperature measurement data signals DATA1, . . . DATAN is sequentially taken into the master device 10 . A start signal START that is output from the slave device 20-N at the final stage and is input to the port P2 of the master device 10 is ignored by the master device 10. FIG.

以上から、スレーブデバイス20-1、20-2、・・・、20-Nを伸ばして、例えば人体の所要の体内に挿入しておけば、当該所要の体内の温度分布を得ることができる。 From the above, if the slave devices 20-1, 20-2, .

一方、電源投入の後にマスターデバイス10が逆順モードに設定されたときは、ポートP1が高インピーダンスに設定され、ポートP2が低インピーダンスに設定される。このときは、図9のような信号の流れとなり、その動作波形図は図10に示すようになる。このときは、N段目のスレーブデバイス20-Nは、そのポートP4が低インピーダンスの判定に変更される。ポートP3は高インピーダンスであるとの判定のままである。よって、入出力切替回路SW1,SW2は接点bに切り替わり、温度センサ21の入力ポートINがポートP4に、出力ポートOUTがポートP3に接続される。 On the other hand, when the master device 10 is set to the reverse mode after power-on, the port P1 is set to high impedance and the port P2 is set to low impedance. At this time, the signal flows as shown in FIG. 9, and the operation waveform diagram thereof is shown in FIG. At this time, the port P4 of the slave device 20-N of the Nth stage is changed to the low impedance determination. Port P3 remains determined to be high impedance. Therefore, the input/output switching circuits SW1 and SW2 are switched to the contact b, the input port IN of the temperature sensor 21 is connected to the port P4, and the output port OUT is connected to the port P3.

次に、時刻t21でマスターデバイス10のポートP2からスタート信号STARTが出力すると、N段目のスレーブデバイス20-Nの温度センサ21内のスタート信号検出回路212によってそのスタート信号STARTが検出される。これにより、スイッチSW7がOFFするとともに、時刻t22(=ta)で温度計測が開始する。そして、時刻t23で温度計測が終了すると、測定したデータ信号DATANが出力ポートOUTから入出力切替回路22のスイッチSW1の接点bを介してポートP3に出力する。このデータ信号DATANは、スレーブデバイス20-N-1、・・・、20-1のONしているスイッチSW7を経由して、そのままマスターデバイス10のポートP1に取り込まれる。 Next, when the start signal START is output from the port P2 of the master device 10 at time t21, the start signal START is detected by the start signal detection circuit 212 in the temperature sensor 21 of the N-th slave device 20-N. As a result, the switch SW7 is turned off, and temperature measurement starts at time t22 (=ta). When the temperature measurement ends at time t23, the measured data signal DATAN is output from the output port OUT to the port P3 via the contact b of the switch SW1 of the input/output switching circuit 22. FIG. This data signal DATAN is directly taken into the port P1 of the master device 10 via the ON switches SW7 of the slave devices 20-N-1, . . . , 20-1.

ポートP4に入力していたスタート信号STARTは遅延回路26にも入力するが、その遅延回路26の遅延時間を正規のスタート信号STARTのパルス幅の時間(t21~t22)よりも長く設定しておけば、スタート信号検出回路212でスタート信号STARTの検出が完了したタイミングではスイッチSW7がOFFしているので、ポートP4に入力したスタート信号STARTがポートP3にスルーすることはない。 The start signal START input to the port P4 is also input to the delay circuit 26, but the delay time of the delay circuit 26 should be set longer than the normal pulse width time (t21 to t22) of the start signal START. For example, when the start signal detection circuit 212 completes the detection of the start signal START, the switch SW7 is turned off, so the start signal START input to the port P4 does not pass through to the port P3.

このとき、N-1段目のスレーブデバイス20-N-1では、N段目のスレーブデバイス20-NのポートP3がスイッチSW1の接点bに接続されていることによって、そのN-1段目のスレーブデバイス20-N-1のポートP4は低インピーダンスの判定に変更される。また、N-1段目のスレーブデバイス20-N-1のポートP3は高インピーダンスの判定のままとなっている。 At this time, in the N-1th stage slave device 20-N-1, the port P3 of the N-th slave device 20-N is connected to the contact b of the switch SW1. port P4 of slave device 20-N-1 is changed to low impedance determination. Further, the port P3 of the slave device 20-N-1 of the N-1th stage remains judged to be high impedance.

N段目のスレーブデバイス20-Nにおいて、温度センサ21からデータ信号DATA1の出力が完了すると、続けて新たなスタート信号STARTがその温度センサ21から出力して、スイッチSW1を経由してポートP3から、N-1段目のスレーブデバイス20-N-1のポートP4に入力する。このN-1段目のスレーブデバイス20-N-1もN段目のスレーブデバイス20-Nと同様に動作して、温度センサ21で計測されたデータ信号DATAN-1がポートP3から出力し、スレーブデバイス20-N-2、・・・、20-1のONしているスイッチSW7を経由して、そのままマスターデバイス10のポートP1に取り込まれる。また、データ信号DATAN-1に続いて、新たなスタート信号STARTが生成されて、ポートP3からN-2段目のスレーブデバイス20-N-2に出力する。 In the N-th slave device 20-N, when the output of the data signal DATA1 from the temperature sensor 21 is completed, a new start signal START is subsequently output from the temperature sensor 21, and sent from the port P3 via the switch SW1. , to the port P4 of the slave device 20-N-1 at the N-1th stage. This N−1th stage slave device 20-N−1 also operates in the same manner as the Nth stage slave device 20-N, and the data signal DATAN-1 measured by the temperature sensor 21 is output from the port P3, , 20-1 through the ON switch SW7 of the slave device 20-N-2, . . . Further, following the data signal DATAN-1, a new start signal START is generated and output from the port P3 to the slave device 20-N-2 at the N-2th stage.

同様の動作が、N-2段目から1段目のスレーブデバイス20-N-2、・・・、20-1にかけて繰り返されて、順次温度の計測結果を示すデータ信号DATAN-2、・・・、DATA1が生成されて、マスターデバイス10のポートP1に入力することで、N段のスレーブデバイス20-N、20-N-1、・・・、20-1で計測されたN個の温度計測データ信号DATAN、・・・、DATA1が順次マスターデバイス10に取り込まれる。1段目のスレーブデバイス20-1から出力してマスターデバイス10のポートP1に入力するスタート信号STARTは、マスターデバイス10で無視される。 A similar operation is repeated from the N-2 stage to the first stage slave devices 20-N-2, . , DATA1 is generated and input to the port P1 of the master device 10, N temperature measurements measured by the slave devices 20-N, 20-N-1, . Data signals DATAN, . The master device 10 ignores the start signal START that is output from the slave device 20-1 in the first stage and is input to the port P1 of the master device 10. FIG.

以上から、スレーブデバイス20-1、20-2、・・・、20-Nを伸ばして、例えば人体の所要の体内に挿入しておけば、当該所要の体内の温度分布を得ることができる。 From the above, if the slave devices 20-1, 20-2, .

以上のように、マスターデバイス10を正順モードに設定したときは、スレーブデバイス20-1、20-2、・・・、20-Nの正順で計測した温度のデータ信号DATA1、DATA2、・・・、DATANがマスターデバイス10のポートP2に順次取り込まれる。また、マスターデバイス10を逆順モードに設定すれば、スレーブデバイス20-N、20-N-1、・・・、20-1の逆順で計測した温度のデータ信号DATAN、DATAN-1、・・・、DATA1がマスターデバイス10のポートP1に順次取り込まれる。 As described above, when the master device 10 is set to the normal mode, the temperature data signals DATA1, DATA2, . , DATAN are sequentially taken into the port P2 of the master device 10; Also, if the master device 10 is set to the reverse order mode, the temperature data signals DATAN, DATAN-1, . DATA1 is sequentially taken into port P1 of master device 10 .

したがって、初段から中段にかけてのスレーブデバイスで計測したデータ信号を早期に取り込む必要があるときは、マスターデバイス10を正順モードに設定すればよく、終段から中段にかけてのスレーブデバイスで計測したデータ信号を早期に取り込む必要があるときは、マスターデバイス10を逆順モードに設定すればよい。以上から、スレーブデバイスが数百乃至数千段接続された場合でも、所望の段で計測されたデータ信号を取得するまでの待ち時間を少なくできる利点がある。 Therefore, when it is necessary to quickly capture the data signals measured by the slave devices in the first to middle stages, the master device 10 can be set to forward mode, and the data signals measured by the slave devices in the last to middle stages can be read. If early capture is required, the master device 10 can be set to reverse order mode. From the above, even when slave devices are connected in hundreds to thousands of stages, there is an advantage that the waiting time until acquiring a data signal measured in a desired stage can be reduced.

10:マスターデバイス
20,20-1,・・・,20-N:スレーブデバイス
21:温度センサ、211:温度計測回路、2111:基準値生成回路、2112:計測値生成回路、2113:TDC回路、212:スタート信号検出回路
22:入出力切替回路、23,24:インピーダンス判定回路、25,26:遅延回路
10: Master device 20, 20-1, . : start signal detection circuit 22: input/output switching circuit 23, 24: impedance determination circuit 25, 26: delay circuit

Claims (3)

一方がスタート信号出力用となり他方がデータ信号入力用となる第1ポート及び第2ポートを備えるマスターデバイスの前記第1ポートと前記第2ポートの間に、データ信号入出力用の第3ポート及び第4ポートを有するスレーブデバイスの前記第3ポートと前記第4ポートをN段(Nは2以上の正の整数)にわたってディジーチェーン接続し、1段目のスレーブデバイスの前記第3ポートを前記マスターデバイスの前記第1ポートに接続し、N段目のスレーブデバイスの前記第4ポートを前記マスターデバイスの前記第2ポートに接続し、
前記スレーブデバイスは、前記第3ポートが低インピーダンスで前記第4ポートが高インピーダンスのとき、前記第3ポートに入力するスタート信号が検出されるまでは前記第3ポートに入力するデータ信号を前記第4ポートにそのまま通過させ、前記第3ポートに入力するスタート信号が検出されると前記第3ポートと前記第4ポートの間を遮断し、且つ所望のデータ信号を生成して前記第4ポートから出力すると共に続けて新たなスタート信号を生成して前記第4ポートから出力し、
前記スレーブデバイスは、前記第3ポートが高インピーダンスで前記第4ポートが低インピーダンスのとき、前記第4ポートに入力するスタート信号が検出されるまでは前記第4ポートに入力するデータ信号を前記第3ポートにそのまま通過させ、前記第4ポートに入力するスタート信号が検出されると前記第3ポートと前記第4ポートの間を遮断し、且つ所望のデータ信号を生成して前記第3ポートから出力すると共に続けて新たなスタート信号を生成して前記第3ポートから出力する、
ことを特徴とするデータ転送方法。
Between the first and second ports of a master device having a first port and a second port, one for outputting a start signal and the other for inputting a data signal, a third port for inputting and outputting a data signal and a third port for inputting a data signal are provided. The third port and the fourth port of a slave device having four ports are daisy-chained over N stages (N is a positive integer equal to or greater than 2), and the third port of the first stage slave device is connected to the master device. connecting to the first port, connecting the fourth port of the N-th slave device to the second port of the master device;
When the third port has a low impedance and the fourth port has a high impedance, the slave device keeps the data signal to be input to the third port until a start signal to be input to the third port is detected. 4 port as it is, and when the start signal input to the 3rd port is detected, the communication between the 3rd port and the 4th port is interrupted, and a desired data signal is generated to be sent from the 4th port. while outputting, continuously generating a new start signal and outputting it from the fourth port;
When the third port has a high impedance and the fourth port has a low impedance, the slave device keeps the data signal to be input to the fourth port until the start signal to be input to the fourth port is detected. 3 port as it is, and when the start signal input to the 4th port is detected, the communication between the 3rd port and the 4th port is interrupted, and a desired data signal is generated to be sent from the 3rd port. outputting and continuously generating a new start signal and outputting it from the third port;
A data transfer method characterized by:
一方がスタート信号出力用となり他方がデータ信号入力用となる第1ポート及び第2ポートを備えるマスターデバイスと、データ信号入出力用の第3ポート及び第4ポートを有し、且つ前記マスターデバイスの前記第1ポートと前記第2ポートの間に前記第3ポートと前記第4ポートを介してディジーチェーン接続されたN個(Nは2以上の正の整数)のスレーブデバイスと、を備えたデータ転送装置であって、
前記スレーブデバイスは、
前記第3ポートが低インピーダンスで前記第4ポートが高インピーダンスのとき、前記第3ポートに入力するスタート信号が検出されるまでは前記第3ポートに入力するデータ信号を前記第4ポートにそのまま通過させ、前記第3ポートに入力するスタート信号が検出されると前記第3ポートと前記第4ポートの間を遮断し、且つ所望のデータ信号を生成して前記第4ポートから出力すると共に続けて新たなスタート信号を生成して前記第4ポートから出力し、
前記第3ポートが高インピーダンスで前記第4ポートが低インピーダンスのとき、前記第4ポートに入力するスタート信号が検出されるまでは前記第4ポートに入力するデータ信号を前記第3ポートにそのまま通過させ、前記第4ポートに入力するスタート信号が検出されると前記第3ポートと前記第4ポートの間を遮断し、且つ所望のデータ信号を生成して前記第3ポートから出力すると共に続けて新たなスタート信号を生成して前記第3ポートから出力する、
ことを特徴とするデータ転送装置。
a master device comprising a first port and a second port, one for outputting a start signal and the other for inputting a data signal; a third port and a fourth port for inputting and outputting a data signal; N (N is a positive integer equal to or greater than 2) slave devices daisy-chained between the 1st port and the 2nd port via the 3rd port and the 4th port. and
The slave device is
When the third port has low impedance and the fourth port has high impedance, the data signal input to the third port is passed through the fourth port as it is until the start signal input to the third port is detected. and when a start signal input to the third port is detected, the connection between the third port and the fourth port is cut off, and a desired data signal is generated and output from the fourth port while continuously generating a new start signal and outputting it from the fourth port;
When the third port has high impedance and the fourth port has low impedance, the data signal input to the fourth port is passed through the third port as it is until the start signal input to the fourth port is detected. and when a start signal input to the fourth port is detected, the connection between the third port and the fourth port is cut off, and a desired data signal is generated and output from the third port, and continuously generating a new start signal and outputting it from the third port;
A data transfer device characterized by:
請求項2に記載のデータ転送装置において、前記スレーブデバイスは、
前記第3ポートのインピーダンスの高低を判定する第1インピーダンス判定回路と、
前記第4ポートのインピーダンスの高低を判定する第2インピーダンス判定回路と、
入力ポートと出力ポートを有し、前記入力ポートに前記スタート信号が入力するとそれを検出した後にデータ信号を生成して前記出力ポートから出力しその後に新たなスタート信号を生成して前記出力ポートから出力するデータ信号生成回路と、
前記第3ポートが低インピーダンスで前記第4ポートが高インピーダンスのとき、前記第3ポートを前記入力ポートに接続するとともに前記第4ポートを出力ポートに接続し、前記第3ポートが高インピーダンスで前記第4ポートが低インピーダンスのとき、前記第4ポートを前記入力ポートに接続するとともに前記第3ポートを出力ポートに接続し、前記第3ポートと前記第4ポートと共に高インピーダンスのとき前記第3ポート及び前記第4ポートの前記入力ポートと前記出力ポートへの接続を遮断する入出力替回路と、
前記第3ポートに接続され前記スタート信号のパルス幅より長い遅延時間が設定された第1遅延回路と、
前記第4ポートに接続され前記スタート信号のパルス幅より長い遅延時間が設定された第2遅延回路と、
前記第1遅延回路と前記第2遅延回路の間に接続され、電源投入後に前記第1及び第2インピーダンス判定回路がインピーダンスの判定動作をするときはOFFし、前記第1及び第2インピーダンス判定回路がインピーダンスの判定動作を完了するとONし、前記スタート信号を検出するとOFFする第7スイッチと、
を備えることを特徴とするデータ転送装置。
3. The data transfer apparatus according to claim 2, wherein said slave device
a first impedance determination circuit that determines whether the impedance of the third port is high or low;
a second impedance determination circuit that determines whether the impedance of the fourth port is high or low;
It has an input port and an output port, and when the start signal is input to the input port, after detecting it, a data signal is generated and output from the output port, and then a new start signal is generated and output from the output port. a data signal generation circuit for output;
When the third port is low impedance and the fourth port is high impedance, the third port is connected to the input port and the fourth port is connected to the output port, and the third port is high impedance and the when the fourth port is low impedance, connecting the fourth port to the input port and connecting the third port to the output port; when both the third port and the fourth port are high impedance, the third port; and an input/output switching circuit that cuts off connection of the fourth port to the input port and the output port;
a first delay circuit connected to the third port and having a delay time longer than the pulse width of the start signal;
a second delay circuit connected to the fourth port and having a delay time longer than the pulse width of the start signal;
It is connected between the first delay circuit and the second delay circuit, is turned off when the first and second impedance determination circuits perform impedance determination operation after power-on, and the first and second impedance determination circuits are turned off. a seventh switch that turns ON when completes the impedance determination operation and turns OFF when the start signal is detected;
A data transfer device comprising:
JP2019106972A 2019-06-07 2019-06-07 Data transmission method and data transfer device Active JP7231490B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019106972A JP7231490B2 (en) 2019-06-07 2019-06-07 Data transmission method and data transfer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019106972A JP7231490B2 (en) 2019-06-07 2019-06-07 Data transmission method and data transfer device

Publications (2)

Publication Number Publication Date
JP2020202451A JP2020202451A (en) 2020-12-17
JP7231490B2 true JP7231490B2 (en) 2023-03-01

Family

ID=73742181

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019106972A Active JP7231490B2 (en) 2019-06-07 2019-06-07 Data transmission method and data transfer device

Country Status (1)

Country Link
JP (1) JP7231490B2 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005117134A (en) 2003-10-03 2005-04-28 Sony Corp Data transmission system, terminal device, data transmission method, recording medium and program
JP2017108280A (en) 2015-12-09 2017-06-15 オークマ株式会社 Timer synchronization system for ring communication path
WO2017169756A1 (en) 2016-03-29 2017-10-05 ソニー株式会社 Electronic device, drive method, and slave element
JP2018201096A (en) 2017-05-26 2018-12-20 キヤノン株式会社 Electronic apparatus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005117134A (en) 2003-10-03 2005-04-28 Sony Corp Data transmission system, terminal device, data transmission method, recording medium and program
JP2017108280A (en) 2015-12-09 2017-06-15 オークマ株式会社 Timer synchronization system for ring communication path
WO2017169756A1 (en) 2016-03-29 2017-10-05 ソニー株式会社 Electronic device, drive method, and slave element
JP2018201096A (en) 2017-05-26 2018-12-20 キヤノン株式会社 Electronic apparatus

Also Published As

Publication number Publication date
JP2020202451A (en) 2020-12-17

Similar Documents

Publication Publication Date Title
WO2007038537A1 (en) Selectable real time sample triggering for a plurality of inputs of an analog-to-digital converter
US7049993B2 (en) Analog-to-digital converter and microcomputer in which the same is installed
US9143151B2 (en) Pulse generator and analog-digital converter including the same
US20190222222A1 (en) Analog-to-digital converter
JP2001201522A (en) Cell voltage detecting circuit of multi-cell series battery and battery pack by using it
JP2008082731A (en) Laminated voltage detection device
JP2003258639A (en) Analog-to-digital converter
JP2003198372A (en) A/d converter
JP7231490B2 (en) Data transmission method and data transfer device
JP4238095B2 (en) Voltage detection device for battery pack
US7477179B2 (en) Successive approximation A/D converter comparing analog input voltage to reference voltages
JP7231489B2 (en) Data transmission method and data transfer device
JPS6318725A (en) Low level voltage-pulse converter
KR101441324B1 (en) Slope type analog-to-digital converter
JP2000338159A (en) Analog input device, and method for detecting its disconnection
RU2649244C1 (en) Device for determining the output capability of microcircuits
JP2000209090A (en) A/d converter
JP2008107256A (en) Semiconductor tester
JP2011122840A (en) Analog signal processing circuit, and distance and strength measurement system using the same
JP2006064391A (en) Temperature sensor and analogue/digital converter
JPH0431771A (en) Peak detector
JP3568938B2 (en) Digital-to-analog conversion circuit
JP6455052B2 (en) Semiconductor device
JPH07202701A (en) Integration circuit and battery charger using it
JPH0795690B2 (en) A / D converter

Legal Events

Date Code Title Description
RD05 Notification of revocation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7425

Effective date: 20200220

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20200408

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20220506

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20230113

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20230216

R150 Certificate of patent or registration of utility model

Ref document number: 7231490

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150