JPH07122814B2 - Sequence controller - Google Patents
Sequence controllerInfo
- Publication number
- JPH07122814B2 JPH07122814B2 JP22525486A JP22525486A JPH07122814B2 JP H07122814 B2 JPH07122814 B2 JP H07122814B2 JP 22525486 A JP22525486 A JP 22525486A JP 22525486 A JP22525486 A JP 22525486A JP H07122814 B2 JPH07122814 B2 JP H07122814B2
- Authority
- JP
- Japan
- Prior art keywords
- output
- data
- bit processor
- memory
- bit
- 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 - Lifetime
Links
Landscapes
- Programmable Controllers (AREA)
Description
【発明の詳細な説明】 産業上の利用分野 本発明は1ビットプロセッサとマルチビットプロセッサ
(一般には8ビットプロセッサ又は16ビットプロセッ
サ)とを組合わせてなるシーケンスコントローラに関す
るものである。TECHNICAL FIELD The present invention relates to a sequence controller which is a combination of a 1-bit processor and a multi-bit processor (generally an 8-bit processor or a 16-bit processor).
従来の技術 1ビットプロセッサを用いたシーケンスコントローラ
は、演算命令の処理や複雑な判断を苦手とする一方、マ
ルチビットプロセッサを用いたシーケンスコントローラ
は、シーケンス命令実行のためのステップ数が1ビット
プロセッサの場合の2〜3倍となり、処理時間が長くか
かるという問題がある。2. Description of the Related Art A sequence controller using a 1-bit processor is not good at processing arithmetic instructions and making complicated decisions, whereas a sequence controller using a multi-bit processor has a step number for executing a sequence instruction of a 1-bit processor. This is 2 to 3 times the case, and there is a problem that the processing time is long.
そこで両者の長所を併せ持つように、1ビットプロセッ
サとマルチビットプロセッサとを組合わせてシーケンス
コントローラを構成することが試みられている。第2図
はこのようなシーケンスコントローラの従来例を示す。Therefore, it has been attempted to configure a sequence controller by combining a 1-bit processor and a multi-bit processor so as to have the advantages of both. FIG. 2 shows a conventional example of such a sequence controller.
この従来例は、1ビットプロセッサaと8ビットプロセ
ッサとを組合わせ、1ビットプロセッサaの出力部と8
ビットプロセッサのデータバスbとの間に、1ワード1
ビットのI/OメモリM0,…,M7を8個配している。各I/Oメ
モリM0,…,M7はOOH〜FFHの番地を持ち、1ビットプロセ
ッサaからの出力データはアドレッシングされたI/Oメ
モリの所定番地に書き込まれ、次いで各I/Oメモリの相
対応する番地のデータ(8個のI/Oメモリに記憶された
データで、前記出力データも含まれる。)が同時にデー
タバスbに出力される。In this conventional example, a 1-bit processor a and an 8-bit processor are combined, and an output section of the 1-bit processor a and an 8-bit processor are combined.
1 word 1 between data bus b of bit processor
Eight bit I / O memories M 0 , ..., M 7 are arranged. Each I / O memory M 0 , ..., M 7 has an address of OOH to FFH, and the output data from the 1-bit processor a is written to a predetermined address of the addressed I / O memory, and then each I / O memory Data corresponding to the corresponding addresses (data stored in eight I / O memories, including the output data) are simultaneously output to the data bus b.
発明が解決しようとする問題点 ところで上記従来例によると、1つのシーケンス命令を
実行するときに、1ビットプロセッサからの出力データ
をアドレッシングされたI/Oメモリに書き込むためのア
クセスタイムと、各I/Oメモリのデータをパラレルにデ
ータバスに出力するためのアクセスタイムとが必要であ
って、命令実行時間が1ビットプロセッサを用いたシー
ケンスコントローラに比較して長くなるという問題があ
った。Problems to be Solved by the Invention According to the above conventional example, when executing one sequence instruction, the access time for writing the output data from the 1-bit processor to the addressed I / O memory and the I / O memory There is a problem that the access time for outputting the data of the / O memory to the data bus in parallel is required, and the instruction execution time becomes longer than that of the sequence controller using the 1-bit processor.
問題点を解決するための手段 本発明は上記問題点を解決するため、1ビットプロセッ
サとマルチビットプロセッサとを組合わせてなるシーケ
ンスコントローラにおいて、1ビットプロセッサの出力
部とマルチビットプロセッサのデータバスとの間に、デ
ータバスのビット数に相当する個数の1ワード1ビット
のI/Oメモリ及び同数の出力制御ゲート回路を配し、1
ビットプロセッサの出力部を各I/Oメモリ及び各出力制
御ゲート回路に接続する一方、各I/Oメモリのデータ出
力部を各出力制御ゲート回路に接続し、且つ各出力制御
ゲート回路の出力部をデータバスに接続し、1ビットプ
ロセッサからの出力データをアドレッシングされたI/O
メモリの所定番地に書き込み、これと同時に前記出力デ
ータを他のI/Oメモリの前記所定番地に対応する番地に
記憶されているデータと共に前記データバスに出力する
ように構成したことを特徴とする。Means for Solving the Problems In order to solve the above problems, the present invention relates to a sequence controller including a combination of a 1-bit processor and a multi-bit processor, and an output unit of the 1-bit processor and a data bus of the multi-bit processor. 1 word 1 bit I / O memory corresponding to the number of bits of the data bus and the same number of output control gate circuits are arranged between
The output section of the bit processor is connected to each I / O memory and each output control gate circuit, while the data output section of each I / O memory is connected to each output control gate circuit, and the output section of each output control gate circuit is connected. Is connected to the data bus, and the output data from the 1-bit processor is addressed by I / O
It is characterized in that the data is written in a predetermined address of the memory, and at the same time, the output data is output to the data bus together with the data stored in the address corresponding to the predetermined address of another I / O memory. .
作用 上記構成によれば、1ビットプロセッサからの出力デー
タをアドレッシングされたI/Oメモリに書き込むこと
と、この出力データを含むパラレルデータをデータバス
に出力することとを同時に実行できるので、従来例に比
較して、シーケンス命令の実行時間を半減することがで
きる。Operation According to the above configuration, it is possible to simultaneously write the output data from the 1-bit processor to the addressed I / O memory and output the parallel data including the output data to the data bus. It is possible to reduce the execution time of the sequence instruction by half as compared with.
実施例 図示する実施例は8ビットプロセッサを備えた汎用のマ
イコン1と1ビットプロセッサ2とを組合わせてシーケ
ンスコントローラを主構成している。Embodiment In the illustrated embodiment, a general-purpose microcomputer 1 equipped with an 8-bit processor and a 1-bit processor 2 are combined to mainly constitute a sequence controller.
1ビットプロセッサ2の出力部とマイコン1のデータバ
ス3との間には8個のI/OメモリM0,M1,…,M7及び夫々の
I/Oメモリに対応する出力制御ゲート回路G0,G1,…,G7が
配設されている。前記I/Oメモリは1ワード1ビットタ
イプのもので夫々OOH〜FFHの番地を有し、例えば256ビ
ットランダムアクセスメモリを用いればよい。このI/O
メモリはデコーダ回路を含んでいる。Eight of the I / O memory M 0 between the 1-bit output unit and the data bus 3 of the microcomputer 1 of the processor 2, M 1, ..., M 7 and the respective
Output control gate circuits G 0 , G 1 , ..., G 7 corresponding to the I / O memory are arranged. The I / O memory is of a 1-bit 1-bit type and has addresses OOH to FFH, and a 256-bit random access memory may be used, for example. This I / O
The memory includes a decoder circuit.
前記出力制御ゲート回路G0,G1,…,G7は、第1図に示す
ように、第1アンドゲートAND I、第2アンドゲートAND
II及びオワゲードORから構成されている。The output control gate circuits G 0 , G 1 , ..., G 7 have a first AND gate AND I and a second AND gate AND I, as shown in FIG.
It is composed of II and Owaged OR.
前記1ビットプロセッサ2は、入出力が1ビットのもの
で、1ビット・アキュムレータであるリザルト・レジス
タを備えている。The 1-bit processor 2 has 1-bit input / output and includes a result register which is a 1-bit accumulator.
マイコン1側のプログラム4から1ビットプロセッサ2
にはオペレーションコード5が与えられ、これに基き1
ビットプロセッサ2が命令を実行する。又前記プログラ
ム4から11ビットのアドレスデータ6が1ビットプロセ
ッサ2の出力制御部に与えられる。アドレスデータ6の
下位3ビットA0、A1、A2はアドレスデコーダ7でY0,…,
Y7にデコーダされ、8個のI/OメモリM0,M1,…,M7の内の
1つをアドレッシングする。アドレスデータ6の上位8
ビットA3,…,A10は各I/OメモリM0,M1,…,M7に対し、夫
々の相対応する番地を指定する。1-bit processor 2 from program 4 on the microcomputer 1 side
Is given an operation code of 5 and is based on this 1
The bit processor 2 executes the instruction. Further, 11-bit address data 6 from the program 4 is given to the output control section of the 1-bit processor 2. The lower 3 bits A0, A1, A2 of the address data 6 are Y 0 , ...,
Decoded by Y 7 , it addresses one of the eight I / O memories M 0 , M 1 , ..., M 7 . Upper 8 of address data 6
Bits A 3 , ..., A 10 specify corresponding addresses for each I / O memory M 0 , M 1 , ..., M 7 .
1ビットプロセッサ2の出力は各I/OメモリM0,M1,…,M7
のデータインプット端子DINに入力されると共に、各出
力制御ゲート回路G0,G1,…,G7の第1アンドゲートAND I
に入力される。他方、I/OメモリM0,M1,…,M7からの出力
データはデータアウトプット端子DOUTより各出力制御ゲ
ート回路G0,G1,…,G7の第2アンドゲートAND IIに入力
される。第1アンドゲートAND Iと第2アンドゲートAND
IIとはオワゲートORを介してデータバス3に接続され
ている。The output of the 1-bit processor 2 is the I / O memory M 0 , M 1 , ..., M 7
Of the output control gate circuits G 0 , G 1 , ..., G 7 while being input to the data input terminal DIN of
Entered in. On the other hand, I / O memory M 0, M 1, ..., output data data output terminal DOUT than the output control gate circuit G 0, G 1 from M 7, ..., the second AND gate the AND II of G 7 Is entered. 1st AND gate AND I and 2nd AND gate AND
II is connected to the data bus 3 through the OR gate.
アドレスコーダ7でデコーダされたアドレッシング信号
Y0,Y1,…,Y7は、ノットゲートNOTを介して、各I/Oメモ
リM0,M1,…,M7のアウトプットイネーブル端子OE及び各
第1アンドゲートAND Iに入力される一方、直接、各I/O
メモリM0,M1,…,M7のライトイネーブル端子WE及び各第
2アンドゲートAND IIに入力される。Addressing signal decoded by the address coder 7
Y 0 , Y 1 , ..., Y 7 are input to the output enable terminal OE of each I / O memory M 0 , M 1 , ..., M 7 and each first AND gate AND I via the NOT gate NOT. Meanwhile, each I / O directly
The write enable terminals WE of the memories M 0 , M 1 , ..., M 7 and the respective second AND gates AND II are input.
従って、例えば前記プログラム4からデータ出力命令
(ストア命令)のオペレーションコード5と所定のアド
レスデータ6が与えられ、そのアドレスデータ6が2進
データで(00000011110)であるとすると、1ビットプ
ロセッサ2から出力データ(0又は1)が出力され、ア
ドレッシングされたI/OメモリM6の03F番地に前記出力デ
ータが書き込まれると同時に、この出力データと共に、
I/OメモリM6を除いた他のI/OメモリM0,…M5,M7の03H番
地に記憶されているデータがパラレルに、前記データバ
ス3に出力される。Therefore, for example, if the program 4 gives an operation code 5 of a data output instruction (store instruction) and predetermined address data 6 and the address data 6 is binary data (00000011110), the 1-bit processor 2 output data (0 or 1) is outputted, when the output data is written to the addressed 03F addresses of I / O memory M 6 simultaneously, together with the output data,
The data stored at the address 03H of the other I / O memories M 0 , ... M 5 , M 7 excluding the I / O memory M 6 are output to the data bus 3 in parallel.
この場合について具体的に説明すると、アドレスデータ
6の下位3ビット(110)がアドレスデコータ7によっ
てデコーダされ、Y6のみを(0)とし、I/OメモリM6を
書き込み可能、データ出力不可とすると共に、1ビット
プロセッサ2からの出力データが第1アンドゲートAND
Iから直接出力されることを可能とし、更に第2アンド
ゲートAND IIを閉じる。他方、Y0,…Y5,Y7は(1)とな
り、他のI/OメモリM0,…M5,M7を書き込み不可、データ
出力可能とすると共に、第1アンドゲートAND Iを閉
じ、更に第2アンドゲートAND IIから各I/OメモリM0,…
M5,M7に記憶されているデータの出力を可能とする。This case will be specifically described. The lower 3 bits (110) of the address data 6 are decoded by the address decoder 7, and only Y 6 is set to (0), and the I / O memory M 6 can be written and the data cannot be output. And the output data from the 1-bit processor 2 is the first AND gate AND
It is possible to output directly from I and further close the second AND gate AND II. On the other hand, Y 0 , ... Y 5 , Y 7 becomes (1), which makes other I / O memories M 0 , ... M 5 , M 7 unwritable and data output possible, and the first AND gate AND I Closed, and then from the second AND gate AND II to each I / O memory M 0 , ...
The data stored in M 5 and M 7 can be output.
そしてアドレスデータ6の上位8ビット((00000011)
によって各I/OメモリM0,M1,…,M7の03H番地が選択され
る。そしてI/OメモリM6の03H番地に前記出力データが書
き込まれると共に、この出力データが出力制御ゲート回
路G6の第1アンドゲートAND I、オワゲートORを経てデ
ータバス3に出力される。これと同時に、他のI/Oメモ
リM0,…M5,M7の03H番地に記憶されているデータが、夫
々に対応する出力制御ゲート回路G0,…G5,G7の第2アン
ドゲートAND II、オワゲートORを経てデータバス3に出
力される。And the upper 8 bits of the address data 6 ((00000011)
By this, the 03H address of each I / O memory M 0 , M 1 , ..., M 7 is selected. Then, the output data is written to the address 03H of the I / O memory M 6, and the output data is output to the data bus 3 via the first AND gate AND I and the OR gate OR of the output control gate circuit G 6 . At the same time, other I / O memory M 0, ... M 5, data stored in 03H address of M 7 is, the output control gate circuit G 0 corresponding to respective: second G 5, G 7 The data is output to the data bus 3 via the AND gate AND II and the OR gate OR.
このように本発明によれば、1ビットプロセッサ2から
の出力データをアドレッシングされたI/Oメモリに書き
込むことと同じタイミングで、この出力データを含むパ
ラレルデータをデータバスに出力することができる。そ
して本発明は1ビットプロセッサと8ビットプロセッサ
とを組合わせてなるシーケンスコントローラのみなら
ず、1ビットプロセッサと16ビットプロセッサなどの他
のマルチビットプロセッサとを組合わせてなるシーケン
スコントローラに適用することができる。As described above, according to the present invention, the parallel data including the output data from the 1-bit processor 2 can be output to the data bus at the same timing as writing the output data to the addressed I / O memory. The present invention can be applied not only to a sequence controller including a combination of a 1-bit processor and an 8-bit processor, but also to a sequence controller including a combination of a 1-bit processor and another multi-bit processor such as a 16-bit processor. it can.
発明の効果 本発明は上記構成、作用を有するので、演算命令の処理
や複雑な判断が可能であり、且つ処理時間も1ビットプ
ロセッサを用いて構成されたものと同様に短くできるシ
ーケンスコントローラを提供することができる。EFFECTS OF THE INVENTION Since the present invention has the above-described configuration and operation, it provides a sequence controller capable of processing arithmetic instructions and making complex judgments and shortening the processing time similarly to the one configured using a 1-bit processor. can do.
第1図は本発明の一実施例を示す回路図、第2図は従来
例を示す回路図である。 1……マルチビットプロセッサを備えたマイコン 2……1ビットプロセッサ 3……データバス G0,G1,…,G7……出力制御ゲート回路 M0,M1,…,M7……1ワード1ビットのI/Oメモリ。FIG. 1 is a circuit diagram showing an embodiment of the present invention, and FIG. 2 is a circuit diagram showing a conventional example. 1 ... Microcomputer equipped with multi-bit processor 2 ... 1-bit processor 3 ... Data bus G 0 , G 1 , ..., G 7 ...... Output control gate circuit M 0 , M 1 , ..., M 7 ...... 1 Word 1-bit I / O memory.
Claims (1)
ッサとを組合わせてなるシーケンスコントローラにおい
て、1ビットプロセッサの出力部とマルチビットプロセ
ッサのデータバスとの間に、データバスのビット数に相
当する個数の1ワード1ビットのI/Oメモリ及び同数の
出力制御ゲート回路を配し、1ビットプロセッサの出力
部を各I/Oメモリ及び各出力制御ゲート回路に接続する
一方、各I/Oメモリのデータ出力部を各出力制御ゲート
回路に接続し、且つ各出力制御ゲート回路の出力部をデ
ータバスに接続し、1ビットプロセッサからの出力デー
タをアドレッシングされたI/Oメモリの所定番地に書き
込み、これと同時に前記出力データを他のI/Oメモリの
前記所定番地に対応する番地に記憶されているデータと
共に前記データバスに出力するように構成したことを特
徴とするシーケンスコントローラ。1. A sequence controller comprising a combination of a 1-bit processor and a multi-bit processor, wherein a number corresponding to the number of bits of the data bus is provided between the output section of the 1-bit processor and the data bus of the multi-bit processor. 1-word 1-bit I / O memory and the same number of output control gate circuits are arranged, and the output part of the 1-bit processor is connected to each I / O memory and each output control gate circuit, while the data of each I / O memory is connected. The output part is connected to each output control gate circuit, the output part of each output control gate circuit is connected to the data bus, and the output data from the 1-bit processor is written to a predetermined address of the addressed I / O memory. At the same time, the output data is output to the data bus together with the data stored in the address corresponding to the predetermined address of another I / O memory. Sequence controller characterized by being configured so.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP22525486A JPH07122814B2 (en) | 1986-09-24 | 1986-09-24 | Sequence controller |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP22525486A JPH07122814B2 (en) | 1986-09-24 | 1986-09-24 | Sequence controller |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS6380302A JPS6380302A (en) | 1988-04-11 |
| JPH07122814B2 true JPH07122814B2 (en) | 1995-12-25 |
Family
ID=16826426
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP22525486A Expired - Lifetime JPH07122814B2 (en) | 1986-09-24 | 1986-09-24 | Sequence controller |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH07122814B2 (en) |
-
1986
- 1986-09-24 JP JP22525486A patent/JPH07122814B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPS6380302A (en) | 1988-04-11 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH0248931B2 (en) | ||
| EP0358773B1 (en) | Microcomputer | |
| JPS6041769B2 (en) | Addressing method | |
| US4879678A (en) | Programmable sequence controller with operation codes partially supplying jump to addresses of machine language instruction | |
| JPH07122814B2 (en) | Sequence controller | |
| JPS62279598A (en) | Read only memory | |
| JP2874230B2 (en) | Memory addressing method of microcomputer | |
| JPH0798990A (en) | Read switching circuit for rom | |
| JPH07122813B2 (en) | Sequence controller | |
| US6507884B1 (en) | Microcomputer with multiple memories for storing data | |
| JPS642177Y2 (en) | ||
| JP2922963B2 (en) | Sequence controller | |
| JPS6057604B2 (en) | Register selection control method | |
| JP3251265B2 (en) | Memory output control circuit | |
| JPS5927937B2 (en) | information processing circuit | |
| JPS61246997A (en) | Electrically erasable and rewritable read only memory | |
| JPS6246493A (en) | Semiconductor integrated circuit device | |
| JPH0226252B2 (en) | ||
| JPH0810443B2 (en) | Memory control circuit | |
| JPS6329295B2 (en) | ||
| JPS5844252B2 (en) | terminal control device | |
| JPH02136921A (en) | Register access method | |
| JPH08221322A (en) | Device and method for controlling memory | |
| JPH0635691A (en) | Program data writing controller | |
| JPH0564361B2 (en) |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| EXPY | Cancellation because of completion of term |