Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP3636276B2 - Programmable controller and control system - Google Patents
[go: Go Back, main page]

JP3636276B2 - Programmable controller and control system - Google Patents

Programmable controller and control system Download PDF

Info

Publication number
JP3636276B2
JP3636276B2 JP13297898A JP13297898A JP3636276B2 JP 3636276 B2 JP3636276 B2 JP 3636276B2 JP 13297898 A JP13297898 A JP 13297898A JP 13297898 A JP13297898 A JP 13297898A JP 3636276 B2 JP3636276 B2 JP 3636276B2
Authority
JP
Japan
Prior art keywords
bus
synchronous
signal
clock
slave
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP13297898A
Other languages
Japanese (ja)
Other versions
JPH11328108A (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.)
Omron Corp
Original Assignee
Omron Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Omron Corp filed Critical Omron Corp
Priority to JP13297898A priority Critical patent/JP3636276B2/en
Publication of JPH11328108A publication Critical patent/JPH11328108A/en
Application granted granted Critical
Publication of JP3636276B2 publication Critical patent/JP3636276B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Small-Scale Networks (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)
  • Information Transfer Systems (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、プログラマブルコントローラ、および制御システムに関する。
【0002】
【従来の技術】
例えば、プログラマブルコントローラのマスタ(メインユニット基板)とスレーブ(サブユニット基板)間をバスで結んでデータを伝送するには、マスタまたはスレーブから供給される正確なクロック信号に同期してアドレス、データ、コントロール信号が伝送される同期バスを使用する場合と、マスタまたはスレーブから供給されるクロックには同期しないでアドレス、データ、コントロール信号が伝送される非同期バスを使用する場合とがある。
【0003】
プログラマブルコントローラ等に使用されるASIC等の専用半導体装置(以下、ASICという)は、同期バスにも非同期バスにも共用で使用できるように作られており、同期バスか非同期バスかをASICの外部の回路に設定するようになっている。そして、従来は、ASIC側が、この設定を判別して、それぞれの状況に応じた作動をするようになっている。
【0004】
すなわち、従来の、バスの使用状態が同期か非同期かを判定する使用状態判定回路は、図4に示ように、ASIC10のピンのひとつP1に、マスタまたはスレーブからの同期バス用のクロック信号線CLKが接続され、ASICの他のひとつのピンP2に、同期/非同期設定線Sが接続されていて、上記のふたつのピンP1およびP2は、ASIC内のマルチプレクサ20の入力端に接続されている。上記同期/非同期設定線Sは、同期バスの場合、ハイレベルの定電圧電源VDDに、非同期バスの場合、ローレベルの定電圧電源VSSに接続を切り換えるようにしてある。
【0005】
そして、マルチプレクサ20は、ピンP2からの入力がローレベルのVSSの場合、非同期バスと判定して、内部バスコントロール部30へVSSを出力することにより、内部バスを非同期で作動するように制御する。逆に、ピンP2からの入力がハイレベルのVDDの場合には、同期バスと判定して、内部バスコントロール部30へピンP1からの同期クロックを出力することにより、内部バスを同期クロックにより作動するように制御する。
【0006】
このように、バスの同期/非同期に応じて、ASIC内部のバスの制御も切り換える理由は、もし、同期バスに接続されているにもかかわらず、ASICが非同期の動作をすると、クロックに同期していないウエィト信号をバス側に送ることになり、同期がずれるので、マスタまたはスレーブがこのウエィト信号を受けるのは次のクロックの時となってしまうからである。
【0007】
【発明が解決しようとする課題】
ところで、ASICには、用途に応じて外部に突出する配線接続用の多数のピンが備えられていて、これらのピンをプリント回路基板側のリセプタクルの孔に差し込んで、プリント回路基板と接続するようになっている。ピン数は、ASICのサイズ、用途に応じ、規格に合わせて準備されるのであるが、ASICが多機能化するに伴い、その必要とするピン数は多くなり、設計時のピンの割り当てが困難になることがある。このような場合、バスの同期/非同期の判定のために、上述した使用状態判定回路(図4参照)のように、ピンを2本使ってしまうのは、設計上の障害となるという課題があった。
【0008】
この発明は、上述の課題を解決し、同期クロック入力用にASICのピン1本のみを使用するだけで足りるプログラマブルコントローラ、および制御システムを提供するものである。
【0009】
【課題を解決するための手段】
上述の課題を解決するために、本発明は、MPUをそれぞれ持ったマスタとスレーブとの間でバスを介してデータを伝送するのにあたり、前記マスタが、前記スレーブと同期をとらずに処理をする場合と、前記バスのクロック信号線を利用して前記スレーブと同期をとって処理をする場合とを選択する、プログラマブルコントローラにおいて、前記マスタは、前記バスに接続される半導体装置と、該半導体装置の外に設けられ、当該マスタが前記スレーブと同期をとって処理をする場合は前記バスのクロック信号線のクロック信号を出力し、当該マスタが前記スレーブと同期をとらずに処理をする場合は一定レベル信号を生成して出力するクロック・定電圧ゲートと、を具備し、前記半導体装置は、基板接続用のピンを複数持っていてそのうち1つのピンが同期バス信号入力ピンとして前記クロック・定電圧ゲートの出力端に接続されその出力端から前記クロック信号または一定レベル信号を入力するものであり、所定のタイムアップ時間が設定されて起動信号により起動するタイマと、該タイマの作動中に前記同期バス信号入力ピンが入力した信号のクロックを計数するカウンタと、該カウンタによりクロックが計数された場合は同期バス、計数されなかった場合は非同期バスと判定するバス使用状態判定部と、を具備したことを特徴とする。
【0010】
また、本発明は、MPUをそれぞれ持ったマスタとスレーブからなり、クロック信号線とデータ線とを含むバスによりマスタとスレーブとの間を結んでデータを伝送する制御システムにおいて、前記マスタは、前記スレーブと同期をとらずに処理をする場合と前記バスのクロック信号線を利用して前記スレーブと同期をとって処理をする場合とを選択できるものであって、基板接続用のピンを複数持つとともに前記バスに接続される半導体装置と、該半導体装置の外に設けられ、当該マスタが前記スレーブと同期して処理をするか同期せずに処理をするかに応じた信号を出力する同期/非同期設定部と、を備え、前記半導体装置は、前記複数のピンに同期バス信号入力ピンを含みその同期バス信号入力ピンを介して前記同期/非同期設定部から出力された信号を入力するものであって、前記バスを同期バスとして使用するか非同期バスとして使用するかを選択制御するバスコントロール部と、前記同期バス信号入力ピンの入力信号に基づいて前記同期/非同期設定部の設定を判定し、その判定結果を前記バスコントロール部に通知する判定部と、を備え、前記同期/非同期設定部は、前記バスのクロック信号線からクロック信号を取り込むことができるものであって、同期バスの場合には前記バスのクロック信号を前記同期バス信号入力ピンへ出力し、非同期バスの場合には一定レベル信号を生成して前記同期バス信号入力ピンへ出力するものであり、前記判定部は、前記同期バス信号入力ピンを介して同期/非同期設定部から入力した信号がクロック信号であることを確認できれば同期バスであると判定し、一定レベル信号であることを確認できれば非同期バスであると判定するものであることを特徴とする。
【0011】
【発明の実施の形態】
この発明の実施の形態を、以下、図面を参照して説明する。図1は、この発明のプログラマブルコントローラの一実施の形態を示すブロック図であって、図1において、PCB1は、プログラマブルコントローラの全体の制御を受け持つメインユニット(マスタ)を構成するマスタ・プリント回路基板、PCB2は、上記マスタ・プリント回路基板PCB1に制御されて作動するサブユニット(スレーブ)を構成するスレーブ・プリント回路基板である。上記マスタ・プリント回路基板PCB1とスレーブ・プリント回路基板PCB2とは、ローカルバスLocal Busで接続され、相互に送受信を行うようになっている。
【0012】
マスタ・プリント回路基板PCB1には、MPU、RAM、ASIC等が設けられ、相互にMPUバス等を介して接続されている。一方のASIC(ASIC1)10は、上記スレーブ・プリント回路基板PCB2に設けられたMPU(Slave)とローカルバスLocal Busで直接接続され、MPU(Slave)からのクロック信号をローカルバスLocal Busのクロック信号線経由で受けるようになっている。
【0013】
なお、マスタ・プリント回路基板PCB1のもう一方のASIC(ASIC2)は、I/Oバスを介して外部の機器と接続され、外部の機器と相互に通信するようになっており、また、スレーブ・プリント回路基板PCB2にも、MPU以外のRAM等が設けられているが、これらは、この発明と直接の関係がないので詳細な説明は省略する。
【0014】
上記ローカルバスLocal Busには、クロック信号線の他にコントロール信号線、データ線等が備えられ、使用される制御システムに応じて、スレーブ・プリント回路基板PCB2に設けられたMPU(Slave)のクロックと同期を取って、スレーブ・プリント回路基板PCB2からのデータをマスタ・プリント回路基板PCB1で処理する場合と、同期を取らずに処理する場合とがある。
【0015】
図2は、図1におけるバスの使用状態判定装置を示すブロック図で、図2において、10はASIC(図1のASIC1)で、このASIC10には、所定のタイムアップ時間が設定され、起動信号により起動するタイマ1と、上記タイマ1の作動中、同期バス信号入力ピンPの入力信号のクロックを計数するカウンタ2と、このカウンタ2が計数したクロックの計数値からバスの同期/非同期を判定する同期/非同期判定部(バス使用状態判定部)3と、この同期/非同期判定部3の判定結果を受けて、ASIC10の内部のバスを同期または非同期として制御する内部バスコントロール部30とが備えられている。
【0016】
4は、ASIC10外のプリント回路基板PCB側に設けられたアンドゲート(クロック・定電圧ゲート)で、このアンドゲート4の入力端には、同期バス用のクロック信号線CLKと同期/非同期設定線Sとが接続され、また、アンドゲート4の出力端は、上記同期バス信号入力ピンPに接続されている。上記同期/非同期設定線Sは、同期バスの場合は、ハイレベルの定電圧電源(ハイレベル電源)VDDに、非同期バスの場合は、ローレベルの定電圧電源(ローレベル電源)VSSに接続を切り換えるようにしてある。
【0017】
上記のクロック・定電圧ゲート4と、このクロック・定電圧ゲート4の出力端に接続された半導体装置10の同期バス信号入力ピンPと、所定のタイムアップ時間が設定され、起動信号により起動するタイマ1と、上記タイマ1の作動中、上記同期バス信号入力ピンPの入力信号のクロックを計数するカウンタ2とで、バス使用状態判定部を構成する。
【0018】
以上の構成により、同期バスの場合は、アンドゲート4の同期/非同期設定線S側の入力端には、図3の(b)に示すように、常にハイレベルのVDDが加えられるので、その出力は、同期用クロックCLKと等しくなって、このクロックがピンPに送られる。タイマ1の起動信号は、通常、システムのリセット時にタイマ1に送られるようになっている。タイマ1が起動して、数クロック分のごく短時間のタイムアップ時間まで、カウンタ2がピンPからのクロックを計数し、この計数値を同期/非同期判定部3に送る。同期/非同期判定部3では、クロックの計数が確認できたから、バスは同期であると判定し、内部バスコントロール部30に通知する。
【0019】
一方、非同期バスの場合は、アンドゲート4の同期/非同期設定線S側の入力端には、図3の(c)に示すように、常にローレベルのVSSが加えられるので、その出力は、常にローレベルとなり、これがピンPに送られる。タイマ1が起動して、タイムアップ時間まで、カウンタ2が作動しても、ピンPからのクロックはないので、計数値は0のままである。カウンタ2はこの結果を同期/非同期判定部3に送る。同期/非同期判定部3では、クロックの計数が確認できなかったから、バスは非同期であると判定し、内部バスコントロール部30に通知する。
【0020】
このように、この発明のバスの使用状態判定装置においては、ASIC10のピンを同期用クロック入力用の1本のみ使用するだけで、同期バスか非同期バスかを自動判定することができる。
【0021】
なお、上述の実施の形態においては、アンドゲート4を用いて、ローレベルのVSSが同期/非同期設定線S側に印加されたとき、その出力を常にローレベルにしてクロックを遮るようにしたが、クロック・定電圧ゲートとして、例えば、アンドゲート4の代わりにオアゲート(OR−Gate)を用いて、ハイレベルのVDDが同期/非同期設定線S側に印加されたとき、その出力を常にハイレベルにしてクロックを遮るようにしてもよい。
【0022】
【発明の効果】
以上の説明から理解されるように、この発明のバスの使用状態判定装置によれば、同期バスの場合にバスのクロック信号線からのクロック信号が入力され、非同期バスの場合に一定レベルの信号が入力される同期バス信号入力ピンと、所定のタイムアップ時間が設定され、起動信号により起動するタイマと、上記タイマの作動中、上記同期バス信号入力ピンの入力信号のクロックを計数するカウンタと、上記カウンタによりクロックが計数された場合は同期バス、計数されなかった場合は非同期バスと判定するバス使用状態判定部とを具備したから、同期/非同期バスの判別用の特別のピンを用いることなく、同期用クロック入力用の1本のピンのみを使用するだけで、バスの同期/非同期を判別することができるから、ASICのピン割り当てに余裕を与え、ASIC設計の自由度を増すことができ、実用的価値が大である。
【0023】
また、この発明のプログラマブルコントローラによれば、バスのクロック信号線と、ハイレベル電源とローレベル電源との選択されたいずれか一方とに入力端が接続されたクロック・定電圧ゲートと、上記クロック・定電圧ゲートの出力端に接続された半導体装置の同期バス信号入力ピンと、所定のタイムアップ時間が設定され、起動信号により起動するタイマと、上記タイマの作動中、上記同期バス信号入力ピンの入力信号のクロックを計数するカウンタと、上記カウンタによりクロックが計数された場合は同期バス、計数されなかった場合は非同期バスと判定するバス使用状態判定部を具備したから、ウエイトリリースのタイミングが最適化できて、プログラマブルコントローラの処理の著しい効率化が実現される。
【図面の簡単な説明】
【図1】この発明の一実施の形態を示すブロック図。
【図2】図1におけるバスの使用状態判定装置を示すブロック図。
【図3】図2におけるアンドゲートのタイミングチャートで、(a)はクロック入力端、(b)は同期バスの場合の同期/非同期設定線入力端および出力端、(b)は非同期バスの場合の同期/非同期設定線入力端および出力端のタイミングチャートを、それぞれ示す。
【図4】従来のバスの使用状態判定回路を示すブロック図。
【符号の説明】
1 タイマ
2 カウンタ
3 同期/非同期判定部(バス使用状態判定部)
4 アンドゲート(クロック・定電圧ゲート)
10 ASIC
30 内部バスコントロール部
P 同期バス信号入力ピン
S 同期/非同期設定線
CLK クロック信号線
PCB1 マスタ・プリント回路基板(マスタ)
PCB2 スレーブ・プリント回路基板(スレーブ)
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a programmable controller and a control system .
[0002]
[Prior art]
For example, in order to transmit data by connecting the master (main unit board) and slave (subunit board) of the programmable controller with a bus, the address, data, There are cases where a synchronous bus through which a control signal is transmitted is used and cases where an asynchronous bus through which an address, data, and control signals are transmitted without being synchronized with a clock supplied from a master or a slave is used.
[0003]
Dedicated semiconductor devices such as ASICs (hereinafter referred to as ASICs) used for programmable controllers, etc., are designed to be used for both synchronous and asynchronous buses. Is set to the circuit. Conventionally, the ASIC side discriminates this setting and operates according to each situation.
[0004]
That is, the conventional use state determination circuit for determining whether the use state of the bus is synchronous or asynchronous, as shown in FIG. 4, the clock signal line for the synchronous bus from the master or slave is connected to one pin P1 of the ASIC 10. CLK is connected, and the other pin P2 of the ASIC is connected to the synchronous / asynchronous setting line S. The above two pins P1 and P2 are connected to the input terminal of the multiplexer 20 in the ASIC. . The synchronous / asynchronous setting line S is switched to a high level constant voltage power supply V DD in the case of a synchronous bus and to a low level constant voltage power supply V SS in the case of an asynchronous bus.
[0005]
When the input from the pin P2 is a low level V SS , the multiplexer 20 determines that the bus is an asynchronous bus and outputs V SS to the internal bus control unit 30 so that the internal bus operates asynchronously. Control. On the contrary, when the input from the pin P2 is the high level V DD , it is determined as a synchronous bus and the synchronous clock from the pin P1 is output to the internal bus control unit 30, thereby causing the internal bus to be synchronized with the synchronous clock. Control to operate.
[0006]
As described above, the reason why the control of the bus inside the ASIC is also switched according to the synchronization / asynchronization of the bus is that if the ASIC operates asynchronously even though it is connected to the synchronization bus, it is synchronized with the clock. This is because an unwaited wait signal is sent to the bus side and synchronization is lost, so that the master or slave receives this wait signal at the next clock.
[0007]
[Problems to be solved by the invention]
By the way, the ASIC is provided with a large number of pins for wiring connection projecting to the outside depending on the application, and these pins are inserted into the holes of the receptacle on the printed circuit board side so as to be connected to the printed circuit board. It has become. The number of pins is prepared according to the standard according to the size and application of the ASIC. However, as the ASIC becomes more multifunctional, the number of pins required increases, making it difficult to assign pins at the time of design. May be. In such a case, the use of two pins as in the above-described use state determination circuit (see FIG. 4) to determine whether the bus is synchronous or asynchronous causes a problem in design. there were.
[0008]
The present invention solves the above-described problems and provides a programmable controller and a control system that require only one ASIC pin for inputting a synchronous clock.
[0009]
[Means for Solving the Problems]
In order to solve the above-described problems, the present invention provides a process in which the master performs processing without synchronizing with the slave when transmitting data between the master and the slave each having an MPU via a bus. A programmable controller that selects a case where processing is performed in synchronization with the slave using the clock signal line of the bus, wherein the master is a semiconductor device connected to the bus, and the semiconductor Provided outside the device, when the master processes in synchronization with the slave, outputs a clock signal on the clock signal line of the bus, and the master processes without synchronizing with the slave Includes a clock and a constant voltage gate for generating and outputting a constant level signal, and the semiconductor device has a plurality of pins for connecting the substrate. One pin is connected to the output terminal of the clock / constant voltage gate as a synchronous bus signal input pin, and the clock signal or a constant level signal is input from the output terminal, and a predetermined time-up time is set and activated. A timer that is started by a signal, a counter that counts a clock of a signal that is input to the synchronous bus signal input pin during operation of the timer, a synchronous bus if the counter is counted, and a counter that is not counted A bus use state determination unit that determines an asynchronous bus .
[0010]
Further, the present invention is a control system that includes a master and a slave each having an MPU, and transmits data by connecting the master and the slave via a bus including a clock signal line and a data line. A case where processing is performed without synchronizing with the slave and a case where processing is performed in synchronization with the slave using the clock signal line of the bus can be selected and has a plurality of pins for board connection And a semiconductor device connected to the bus, and a synchronization / output device that is provided outside the semiconductor device and outputs a signal according to whether the master performs processing in synchronization with the slave or processing without synchronization. An asynchronous setting unit, and the semiconductor device includes a synchronous bus signal input pin in the plurality of pins, and the synchronous / asynchronous setting unit via the synchronous bus signal input pin. An output signal is input, and a bus control unit that selectively controls whether the bus is used as a synchronous bus or an asynchronous bus; and the synchronization based on an input signal of the synchronous bus signal input pin A determination unit that determines the setting of the asynchronous setting unit and notifies the determination result to the bus control unit, and the synchronous / asynchronous setting unit can capture the clock signal from the clock signal line of the bus In the case of a synchronous bus, the bus clock signal is output to the synchronous bus signal input pin. In the case of an asynchronous bus, a constant level signal is generated and output to the synchronous bus signal input pin. The determination unit can confirm that the signal input from the synchronous / asynchronous setting unit via the synchronous bus signal input pin is a clock signal. Determines that the synchronous bus, and characterized in that to determine that an asynchronous bus if it can be confirmed that a constant level signal.
[0011]
DETAILED DESCRIPTION OF THE INVENTION
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing an embodiment of a programmable controller according to the present invention. In FIG. 1, PCB 1 is a master printed circuit board constituting a main unit (master) that is responsible for overall control of the programmable controller. PCB2 is a slave printed circuit board that constitutes a subunit (slave) that operates under the control of the master printed circuit board PCB1. The master printed circuit board PCB1 and the slave printed circuit board PCB2 are connected by a local bus Local Bus so as to transmit and receive each other.
[0012]
The master printed circuit board PCB1 is provided with an MPU, a RAM, an ASIC, and the like, and is connected to each other via an MPU bus or the like. One ASIC (ASIC1) 10 is directly connected to the MPU (Slave) provided on the slave printed circuit board PCB2 by a local bus Local Bus, and a clock signal from the MPU (Slave) is a clock signal of the local bus Local Bus. Received via the line.
[0013]
Note that the other ASIC (ASIC 2) of the master printed circuit board PCB1 is connected to an external device via an I / O bus, and communicates with the external device. The printed circuit board PCB2 is also provided with RAM and the like other than the MPU, but these are not directly related to the present invention, and thus detailed description thereof is omitted.
[0014]
The local bus Local Bus is provided with a control signal line, a data line, etc. in addition to the clock signal line, and an MPU (Slave) clock provided on the slave printed circuit board PCB2 according to the control system used. The data from the slave printed circuit board PCB2 is processed by the master printed circuit board PCB1 and the data is processed without being synchronized.
[0015]
FIG. 2 is a block diagram illustrating the bus use state determination apparatus in FIG. 1. In FIG. 2, reference numeral 10 denotes an ASIC (ASIC 1 in FIG. 1). A predetermined time-up time is set in the ASIC 10, and a start signal The timer 1 that is started by the above, the counter 2 that counts the clock of the input signal of the synchronous bus signal input pin P during the operation of the timer 1, and the bus synchronization / asynchronism is determined from the count value of the clock counted by the counter 2 A synchronous / asynchronous determination unit (bus use state determination unit) 3 that performs the determination, and an internal bus control unit 30 that receives the determination result of the synchronous / asynchronous determination unit 3 and controls the internal bus of the ASIC 10 as synchronous or asynchronous. It has been.
[0016]
Reference numeral 4 denotes an AND gate (clock / constant voltage gate) provided on the printed circuit board PCB side outside the ASIC 10. The input terminal of the AND gate 4 has a clock signal line CLK for synchronous bus and a synchronous / asynchronous setting line. S and the output terminal of the AND gate 4 are connected to the synchronous bus signal input pin P. The synchronous / asynchronous setting line S is connected to a high level constant voltage power supply (high level power supply) V DD in the case of a synchronous bus, and to a low level constant voltage power supply (low level power supply) V SS in the case of an asynchronous bus. The connection is switched.
[0017]
The clock / constant voltage gate 4 and the synchronous bus signal input pin P of the semiconductor device 10 connected to the output terminal of the clock / constant voltage gate 4 and a predetermined time-up time are set and activated by an activation signal. The timer 1 and the counter 2 that counts the clock of the input signal of the synchronous bus signal input pin P during the operation of the timer 1 constitute a bus use state determination unit.
[0018]
With the above configuration, in the case of a synchronous bus, high level V DD is always applied to the input end of the AND gate 4 on the side of the synchronous / asynchronous setting line S, as shown in FIG. Its output is equal to the synchronization clock CLK and this clock is sent to pin P. The start signal for timer 1 is normally sent to timer 1 when the system is reset. The timer 1 is activated, and the counter 2 counts the clock from the pin P until a very short time-up time corresponding to several clocks, and sends the count value to the synchronous / asynchronous determination unit 3. The synchronous / asynchronous determination unit 3 determines that the bus is synchronous because the clock count has been confirmed, and notifies the internal bus control unit 30 of the determination.
[0019]
On the other hand, in the case of an asynchronous bus, a low level V SS is always applied to the input terminal of the AND gate 4 on the synchronous / asynchronous setting line S side, as shown in FIG. , Always low and this is sent to pin P. Even if the counter 2 operates until the time-up time after the timer 1 starts, the count value remains 0 because there is no clock from the pin P. The counter 2 sends this result to the synchronous / asynchronous determination unit 3. The synchronous / asynchronous determination unit 3 determines that the bus is asynchronous because the clock count cannot be confirmed, and notifies the internal bus control unit 30 of the determination.
[0020]
As described above, in the bus use state determination apparatus according to the present invention, it is possible to automatically determine whether the bus is a synchronous bus or an asynchronous bus by using only one pin of the ASIC 10 for inputting a clock for synchronization.
[0021]
In the above embodiment, when the low level V SS is applied to the synchronous / asynchronous setting line S side using the AND gate 4, the output is always set to the low level to block the clock. However, when a high level V DD is applied to the synchronous / asynchronous setting line S side using, for example, an OR gate (OR-Gate) instead of the AND gate 4 as a clock / constant voltage gate, the output is always output. The clock may be blocked by setting it to a high level.
[0022]
【The invention's effect】
As can be understood from the above description, according to the bus use state determining apparatus of the present invention, a clock signal from the clock signal line of the bus is input in the case of a synchronous bus, and a signal at a constant level in the case of an asynchronous bus. A synchronous bus signal input pin to which a predetermined time-up time is set, a timer that is started by a start signal, a counter that counts the clock of the input signal of the synchronous bus signal input pin during operation of the timer, Since the counter has a bus usage state determination unit that determines the synchronous bus when the clock is counted and the asynchronous bus when the clock is not counted, there is no need to use a special pin for determining the synchronous / asynchronous bus. Since the synchronization / asynchronization of the bus can be determined by using only one pin for clock input for synchronization, ASIC pin assignment Giving a margin to hand, it is possible to increase the degree of freedom of ASIC design, practical value is large.
[0023]
According to the programmable controller of the present invention, the clock / constant voltage gate having the input terminal connected to the clock signal line of the bus and one of the high-level power supply and the low-level power supply, and the clock A synchronous bus signal input pin of a semiconductor device connected to the output terminal of the constant voltage gate, a timer set with a predetermined time-up time and started by a start signal, and the synchronous bus signal input pin of the synchronous bus signal input pin during operation of the timer The wait release timing is optimal because it has a counter that counts the clock of the input signal and a bus usage state determination unit that determines that the clock is counted by the counter as a synchronous bus, and if it is not counted as an asynchronous bus And the efficiency of the processing of the programmable controller is significantly improved.
[Brief description of the drawings]
FIG. 1 is a block diagram showing an embodiment of the present invention.
FIG. 2 is a block diagram showing a bus use state determination device in FIG. 1;
3 is a timing chart of the AND gate in FIG. 2, where (a) is a clock input terminal, (b) is a synchronous / asynchronous setting line input terminal and output terminal in the case of a synchronous bus, and (b) is a case of an asynchronous bus. The timing charts of the synchronous / asynchronous setting line input end and output end are shown.
FIG. 4 is a block diagram showing a conventional bus use state determination circuit;
[Explanation of symbols]
1 Timer 2 Counter 3 Synchronous / Asynchronous Judgment Unit (Bus Usage Status Judgment Unit)
4 AND Gate (Clock / Constant Voltage Gate)
10 ASIC
30 Internal bus control section P Synchronous bus signal input pin S Synchronous / asynchronous setting line CLK Clock signal line PCB1 Master printed circuit board (master)
PCB2 Slave printed circuit board (slave)

Claims (2)

MPUをそれぞれ持ったマスタとスレーブとの間でバスを介してデータを伝送するのにあたり、前記マスタが、前記スレーブと同期をとらずに処理をする場合と、前記バスのクロック信号線を利用して前記スレーブと同期をとって処理をする場合とを選択する、プログラマブルコントローラにおいて、
前記マスタは、前記バスに接続される半導体装置と、該半導体装置の外に設けられ、当該マスタが前記スレーブと同期をとって処理をする場合は前記バスのクロック信号線のクロック信号を出力し、当該マスタが前記スレーブと同期をとらずに処理をする場合は一定レベル信号を生成して出力するクロック・定電圧ゲートと、を具備し、
前記半導体装置は、基板接続用のピンを複数持っていてそのうち1つのピンが同期バス信号入力ピンとして前記クロック・定電圧ゲートの出力端に接続されその出力端から前記クロック信号または一定レベル信号を入力するものであり、所定のタイムアップ時間が設定されて起動信号により起動するタイマと、該タイマの作動中に前記同期バス信号入力ピンが入力した信号のクロックを計数するカウンタと、該カウンタによりクロックが計数された場合は同期バス、計数されなかった場合は非同期バスと判定するバス使用状態判定部と、を具備した
ことを特徴とするプログラマブルコントローラ
When transmitting data between a master and a slave each having an MPU via a bus, the master performs processing without synchronizing with the slave, and uses the clock signal line of the bus. In the programmable controller that selects when processing in synchronization with the slave,
The master is provided outside the semiconductor device connected to the bus and the semiconductor device, and outputs a clock signal on a clock signal line of the bus when the master performs processing in synchronization with the slave. A clock and a constant voltage gate for generating and outputting a constant level signal when the master performs processing without synchronizing with the slave; and
The semiconductor device has a plurality of pins for board connection, and one of the pins is connected to the output terminal of the clock / constant voltage gate as a synchronous bus signal input pin, and the clock signal or the constant level signal is output from the output terminal. A timer that is set by a start signal after a predetermined time-up time is set, a counter that counts a clock of a signal input by the synchronous bus signal input pin during operation of the timer, and the counter A bus usage state determination unit that determines a synchronous bus when the clock is counted and an asynchronous bus when the clock is not counted
A programmable controller characterized by that .
MPUをそれぞれ持ったマスタとスレーブからなり、クロック信号線とデータ線とを含むバスによりマスタとスレーブとの間を結んでデータを伝送する制御システムにおいて、In a control system consisting of a master and a slave each having an MPU, and transmitting data by connecting the master and slave by a bus including a clock signal line and a data line,
前記マスタは、前記スレーブと同期をとらずに処理をする場合と前記バスのクロック信号線を利用して前記スレーブと同期をとって処理をする場合とを選択できるものであって、基板接続用のピンを複数持つとともに前記バスに接続される半導体装置と、該半導体装置の外に設けられ、当該マスタが前記スレーブと同期して処理をするか同期せずに処理をするかに応じた信号を出力する同期/非同期設定部と、を備え、The master can select a case where processing is performed without synchronizing with the slave and a case where processing is performed in synchronization with the slave using the clock signal line of the bus. A semiconductor device having a plurality of pins and connected to the bus, and a signal provided outside the semiconductor device, depending on whether the master performs processing in synchronization with the slave or not. A synchronous / asynchronous setting unit that outputs
前記半導体装置は、前記複数のピンに同期バス信号入力ピンを含みその同期バス信号入力ピンを介して前記同期/非同期設定部から出力された信号を入力するものであって、前記バスを同期バスとして使用するか非同期バスとして使用するかを選択制御するバスコントロール部と、前記同期バス信号入力ピンの入力信号に基づいて前記同期/非同期設定部の設定を判定し、その判定結果を前記バスコントロール部に通知する判定部と、を備え、The semiconductor device includes a synchronous bus signal input pin in the plurality of pins, and inputs a signal output from the synchronous / asynchronous setting unit via the synchronous bus signal input pin, and the bus is connected to the synchronous bus A bus control unit that selectively controls whether to use as an asynchronous bus or an asynchronous bus, and determines the setting of the synchronous / asynchronous setting unit based on an input signal of the synchronous bus signal input pin, and the determination result is the bus control A determination unit for notifying the unit,
前記同期/非同期設定部は、前記バスのクロック信号線からクロック信号を取り込むことができるものであって、同期バスの場合には前記バスのクロック信号を前記同期バス信号入力ピンへ出力し、非同期バスの場合には一定レベル信号を生成して前記同期バス信号入力ピンへ出力するものであり、The synchronous / asynchronous setting unit can take in a clock signal from the clock signal line of the bus, and outputs the clock signal of the bus to the synchronous bus signal input pin in the case of a synchronous bus. In the case of a bus, a constant level signal is generated and output to the synchronous bus signal input pin.
前記判定部は、前記同期バス信号入力ピンを介して同期/非同期設定部から入力した信号がクロック信号であることを確認できれば同期バスであると判定し、一定レベル信号であることを確認できれば非同期バスであると判定するものであるThe determination unit determines that the signal input from the synchronous / asynchronous setting unit via the synchronous bus signal input pin is a clock signal, and determines that the signal is a synchronous bus. If the signal is confirmed to be a constant level signal, the determination unit is asynchronous. It is determined to be a bus
ことを特徴とする制御システム。A control system characterized by that.
JP13297898A 1998-05-15 1998-05-15 Programmable controller and control system Expired - Fee Related JP3636276B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP13297898A JP3636276B2 (en) 1998-05-15 1998-05-15 Programmable controller and control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP13297898A JP3636276B2 (en) 1998-05-15 1998-05-15 Programmable controller and control system

Publications (2)

Publication Number Publication Date
JPH11328108A JPH11328108A (en) 1999-11-30
JP3636276B2 true JP3636276B2 (en) 2005-04-06

Family

ID=15093942

Family Applications (1)

Application Number Title Priority Date Filing Date
JP13297898A Expired - Fee Related JP3636276B2 (en) 1998-05-15 1998-05-15 Programmable controller and control system

Country Status (1)

Country Link
JP (1) JP3636276B2 (en)

Also Published As

Publication number Publication date
JPH11328108A (en) 1999-11-30

Similar Documents

Publication Publication Date Title
EP0262429B1 (en) Data processor having a high speed data transfer function
US8205017B2 (en) Systems and methods for addressing and synchronizing multiple devices
US6763413B2 (en) Method for the serial transfer of data between two electronic bus stations and bus station for use in said method
CN115766332B (en) Serial communication device, serial communication system, and serial communication method
JP3636276B2 (en) Programmable controller and control system
RU2328819C2 (en) Delayed pulses generator
US11995012B2 (en) High speed interface for multi image sensor device
JP3023397B2 (en) Synchronous control method for hot insertion and removal
US5453983A (en) Port controller
CN101627375A (en) Method and system for I2C clock generation
US6738830B2 (en) Universal controller expansion module system, method and apparatus
KR100242591B1 (en) Apparatus having skew compensation circuit and control method therefor
EP1128272B1 (en) Method for the serial transfer of data between two electronic bus stations and bus station for use in said method
JP3228413B2 (en) Serial data communication device and communication method
JP7547079B2 (en) Master-slave communication system and control method thereof
KR100369685B1 (en) A method and a device of synchronization reference clock for exchanger
JP2502030B2 (en) Synchronizer for a synchronous data processing system.
KR200178427Y1 (en) State machine bus controller
KR100202489B1 (en) How to Synchronize Clock on IIC Bus
CN119360765A (en) Driving system and driving circuit thereof
JPS63208109A (en) Electronic circuit board
JP2000132506A (en) Communication device
JP2508487B2 (en) Data transmission system
JP2001051026A (en) Electronic-circuit monitoring apparatus
JP2000105641A (en) Branched serial interface circuit

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20040916

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040922

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20041122

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20041228

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090114

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090114

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100114

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100114

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110114

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110114

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120114

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130114

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140114

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees