JP3534915B2 - Parallel input / output port - Google Patents

Parallel input / output port

Info

Publication number
JP3534915B2
JP3534915B2 JP28290795A JP28290795A JP3534915B2 JP 3534915 B2 JP3534915 B2 JP 3534915B2 JP 28290795 A JP28290795 A JP 28290795A JP 28290795 A JP28290795 A JP 28290795A JP 3534915 B2 JP3534915 B2 JP 3534915B2
Authority
JP
Japan
Prior art keywords
register
data
signal
input
level
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
JP28290795A
Other languages
Japanese (ja)
Other versions
JPH09128318A (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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry Co Ltd
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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP28290795A priority Critical patent/JP3534915B2/en
Publication of JPH09128318A publication Critical patent/JPH09128318A/en
Application granted granted Critical
Publication of JP3534915B2 publication Critical patent/JP3534915B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Control By Computers (AREA)

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、パラレル入出力ポ
ートに関し、特に複数の制御装置に対して各々の仕事を
シーケンシャルに行わせる際の制御に用いて好適なパラ
レル入出力ポートに関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a parallel input / output port, and more particularly to a parallel input / output port suitable for use in controlling a plurality of control devices to sequentially perform their respective jobs.

【0002】[0002]

【従来の技術】図12は、出力ポートに設定されたパラ
レル入出力ポートの従来例を示すブロック図である。図
12において、レジスタ1011 は、リセット付きDタ
イプフリップフロップ(以下、D‐FFと称する)によ
って構成されている。このレジスタ1011 において、
そのクロック(C)入力としてシステムクロック信号C
LKが与えられ、リセット(R)入力としてシステムリ
セット信号RSTが与えられる。
2. Description of the Related Art FIG. 12 is a block diagram showing a conventional example of a parallel input / output port set as an output port. 12, the register 101 1 is reset with D-type flip-flop is constituted by (hereinafter referred to as D-FF). In this register 101 1 ,
System clock signal C as its clock (C) input
LK is provided, and the system reset signal RST is provided as a reset (R) input.

【0003】レジスタ1011 はさらに、内部データバ
ス102からのデータ信号DATAをデータ(D)入力
とし、ライトイネーブル信号ENBLをイネーブル
(E)入力とする。レジスタ1011 のデータ出力Q
は、出力信号線1031 を介して出力バッファ1041
に供給され、さらに外部ポート1051 を介して外部に
出力される。外部ポート1051 には、制御装置106
1 が接続されている。制御装置1061 は仕事を終了す
ると、割り込み信号int1を発生し、ORゲート10
7を介してCPU(図示せず)に供給する。以上と同じ
構成の回路が、n個の制御装置に対してn段並列に配さ
れている。
[0003] Register 101 1 further a data signal DATA data (D) input from the internal data bus 102, and enable (E) input of the write enable signal ENBL. Data output Q of register 101 1
Is output via the output signal lines 103 1 buffer 104 1
And is output to the outside through the external port 105 1 . The external port 105 1 has a control device 106
1 is connected. When the controller 106 1 finishes its work, it generates an interrupt signal int1 and the OR gate 10
7 to the CPU (not shown). A circuit having the same configuration as described above is arranged in parallel in n stages with respect to n control devices.

【0004】次に、上記構成の回路動作について図13
の波形図を用いて説明する。先ず、システムリセット信
号RSTが高レベル(以下、“H”レベルと称する)に
なると、レジスタ1011 は、システムクロック信号C
LKの立ち上がりに同期してリセットされ、低レベル
(以下、“L”レベルと称する)のデータが書き込まれ
る(動作)。これにより、レジスタ1011 のデータ
出力Qは“L”レベルとなる。
Next, the circuit operation of the above configuration will be described with reference to FIG.
This will be described with reference to the waveform chart of. First, the system reset signal RST is at a high level becomes a (hereinafter, "H" referred level), the register 101 1, the system clock signal C
It is reset in synchronization with the rising edge of LK, and low-level (hereinafter referred to as “L” level) data is written (operation). Thus, the register 101 1 of the data output Q becomes "L" level.

【0005】続いて、レジスタ1011 に対して内部デ
ータバス102から“H”レベルのデータ信号DATA
が入力され、ライトイネーブル信号ENBLが“H”レ
ベルになると、レジスタ1011 に“H”レベルのデー
タがシステムクロック信号CLKの立ち上がりに同期し
て書き込まれるため、レジスタ1011 のデータ出力Q
が“H”レベルとなる。これにより、外部ポート105
1 が“H”レベルとなり、外部ポート1051 に接続さ
れている制御装置1061 が動作(ON)し、仕事を始
める(動作)。制御装置1061 は、仕事を終了(O
FF)すると、割り込み信号int1を発生する(動作
)。
Then, an "H" level data signal DATA is sent from the internal data bus 102 to the register 101 1 .
There is input, the write enable signal ENBL changes to "H" level, the "H" level data to the register 101 1 is written in synchronization with the rising edge of the system clock signal CLK, the register 101 1 of the data output Q
Becomes "H" level. This allows the external port 105
1 becomes “H” level, the control device 106 1 connected to the external port 105 1 operates (ON), and starts work (operation). The control device 106 1 finishes the work (O
Then, the interrupt signal int1 is generated (operation).

【0006】すると、この割り込み信号int1に応答
してCPUが所定の割り込み処理を開始する。この割り
込み処理の終了後、内部データバス102から“L”レ
ベルのデータ信号DATAが入力され、ライトイネーブ
ル信号ENBLが“H”レベルになると、レジスタ10
1 に“L”レベルのデータがシステムクロック信号C
LKの立ち上がりに同期して書き込まれ、レジスタ10
1 のデータ出力Qが“L”レベルとなる(動作)。
これにより、外部ポート1051 が“L”レベルとな
る。上記の動作,,を2段目以降の回路が順次行
うことにより、各外部ポート1052 〜105n に接続
されている複数の制御装置1062 〜106n をシーケ
ンシャルに駆動し、仕事をさせていく。
Then, in response to the interrupt signal int1, the CPU starts a predetermined interrupt process. After the completion of the interrupt process, when the data signal DATA of “L” level is input from the internal data bus 102 and the write enable signal ENBL becomes “H” level, the register 10
" 1 " level data is the system clock signal C 1
It is written in synchronization with the rising edge of LK, and the register 10
The data output Q of 1 1 becomes "L" level (operation).
As a result, the external port 105 1 becomes "L" level. By sequentially performing the above operations, and the circuits of the second and subsequent stages, a plurality of control devices 106 2 to 106 n connected to the external ports 105 2 to 105 n are sequentially driven to perform work. Go.

【0007】[0007]

【発明が解決しようとする課題】しかしながら、上記構
成の従来のパラレル入出力ポートでは、各外部ポート1
051 〜105n に接続されている複数の制御装置10
1 〜106n をシーケンシャルに駆動し、仕事をさせ
る場合、複数の制御装置1061 〜106n の仕事が終
了し割り込みが発生すると、CPUは所定の割り込み処
理を行い、その処理が終了した後に、次のレジスタにデ
ータを書き込む動作を行わせるようにしていることか
ら、CPUの割り込み処理が終了するのを待ってから、
次の制御装置を動作させることになるため、シーケンシ
ャル処理に時間がかかるという問題があった。
However, in the conventional parallel input / output port having the above structure, each external port 1
A plurality of control devices 10 connected to 05 1 to 105 n
When 6 1 to 106 n are driven sequentially to perform work, when the work of the plurality of control devices 106 1 to 106 n ends and an interrupt occurs, the CPU performs a predetermined interrupt process, and after the process is completed, Since the operation to write data to the next register is performed, wait until the interrupt processing of the CPU is completed, and then
Since the next control device is operated, there is a problem that the sequential processing takes time.

【0008】[0008]

【課題を解決するための手段】本発明では、複数の外部
ポートに接続されかつ各々仕事が終了したときに割り込
み信号を発生する複数の制御装置を駆動制御するパラレ
ル入出力ポートにおいて、データバスからデータ入力と
して与えられるデータ信号を格納する初段のレジスタお
よび初段のレジスタに対して並列に配された2段目以降
の複数のレジスタからなるレジスタ群と、システムリセ
ット信号および初段のレジスタのデータ出力信号を2入
力とし、所定の制御信号に応じていずれか一方を選択し
て初段のレジスタのリセット入力とする第1のセレクタ
回路と、複数の制御装置の各割り込み信号を入力とする
ORゲートと、システムクロック信号およびORゲート
の出力信号を2入力とし、上記制御信号に応じていずれ
か一方を選択して初段のレジスタおよび複数のレジスタ
の各クロック入力とする第2のセレクタ回路と、データ
信号およびレジスタ群における前段のレジスタのデータ
出力信号を2入力とし、上記制御信号に応じていずれか
一方を複数のレジスタのうち対応するレジスタのデータ
入力とする複数の第3のセレクタ回路とを設けた構成と
なっている。
According to the present invention, in a parallel input / output port for driving and controlling a plurality of control units which are connected to a plurality of external ports and generate an interrupt signal when each work is completed, a parallel input / output port from a data bus is used. A register group consisting of a first-stage register for storing a data signal given as a data input and a plurality of registers of the second and subsequent stages arranged in parallel to the first-stage register, a system reset signal, and a data output signal of the first-stage register A first selector circuit which has two inputs, selects one of them as a reset input of the register in the first stage according to a predetermined control signal, and an OR gate which receives each interrupt signal of a plurality of control devices as input. The system clock signal and the output signal of the OR gate are two inputs, and either one is selected according to the control signal. A second selector circuit that receives the clocks of the register of the stage and a plurality of registers, and a data signal and a data output signal of the register of the previous stage in the register group are two inputs, and one of the plurality of registers outputs a plurality of signals depending on the control signal. Among the registers, a plurality of third selector circuits that receive data from corresponding registers are provided.

【0009】上記構成のパラレル入出力ポートにおい
て、先ず、データバスから与えられるデータ信号が初段
のレジスタに格納される。そして、この初段のレジスタ
のデータ出力信号によって初段の制御装置の駆動が行わ
れる。これにより、初段の制御装置が仕事を開始する。
その後、制御信号が与えられ、これに応じて第2のセレ
クタ回路がORゲートの出力信号を選択し、第3の複数
のセレクタ回路が前段のレジスタのデータ出力信号を選
択する。初段の制御装置は仕事を終了すると、割り込み
信号を発生する。この割り込み信号は、ORゲートおよ
び第2のセレクタ回路を介して2段目のレジスタのクロ
ック入力となる。すると、この割り込み信号に同期して
2段目のレジスタには初段のレジスタのデータ出力信号
が格納される。そして、この2段目のレジスタのデータ
出力信号によって2段目の制御装置の駆動が行われる。
以降、各段の制御装置から割り込み信号が発生される度
に、前段のレジスタからデータ出力信号がシフトされる
ことで、各外部ポートに接続されている制御装置をシー
ケンシャルに駆動し、仕事をさせていく。
In the parallel input / output port having the above structure, first, the data signal supplied from the data bus is stored in the register in the first stage. Then, the data output signal of the register of the first stage drives the control device of the first stage. This causes the first-stage control device to start work.
Thereafter, a control signal is applied, and in response to this, the second selector circuit selects the output signal of the OR gate, and the third plurality of selector circuits selects the data output signal of the register in the preceding stage. When the control device at the first stage finishes its work, it generates an interrupt signal. This interrupt signal becomes a clock input to the register in the second stage via the OR gate and the second selector circuit. Then, in synchronization with this interrupt signal, the data output signal of the first-stage register is stored in the second-stage register. Then, the data output signal of the register of the second stage drives the control device of the second stage.
After that, each time an interrupt signal is generated from the control device of each stage, the data output signal is shifted from the register of the previous stage, so that the control device connected to each external port is driven sequentially to perform work. To go.

【0010】本発明ではさらに、複数の外部ポートに接
続された複数の制御装置を駆動制御するパラレル入出力
ポートにおいて、データバスからデータ入力として与え
られるデータ信号を格納する初段のレジスタおよび初段
のレジスタに対して並列に配された2段目以降の複数の
レジスタからなるレジスタ群と、システムリセット信号
および初段のレジスタのデータ出力信号を2入力とし、
所定の制御信号に応じていずれか一方を選択して初段の
レジスタのリセット入力とする第1のセレクタ回路と、
一定時間ごとに割り込み信号を発生する割り込み信号発
生回路と、システムクロック信号および上記割り込み信
号を2入力とし、上記制御信号に応じていずれか一方を
選択して初段のレジスタおよび複数のレジスタの各クロ
ック入力とする第2のセレクタ回路と、データ信号およ
びレジスタ群における前段のレジスタのデータ出力信号
を2入力とし、上記制御信号に応じていずれか一方を複
数のレジスタのうち対応するレジスタのデータ入力とす
る複数の第3のセレクタ回路とを設けた構成となってい
る。
Further, according to the present invention, in a parallel input / output port for driving and controlling a plurality of control devices connected to a plurality of external ports, a first stage register and a first stage register for storing a data signal provided as a data input from a data bus. A register group consisting of a plurality of registers of the second and subsequent stages arranged in parallel with each other, a system reset signal and a data output signal of the register of the first stage as two inputs,
A first selector circuit that selects either one of them according to a predetermined control signal and uses it as a reset input of the register in the first stage;
An interrupt signal generation circuit that generates an interrupt signal at regular time intervals, a system clock signal and the above interrupt signal as two inputs, and select either one in accordance with the above control signal to select each clock of the first stage register and a plurality of registers. A second selector circuit which is an input, and a data signal and a data output signal of a register in the preceding stage of the register group are two inputs, and one of them is used as a data input of a corresponding register among a plurality of registers according to the control signal. And a plurality of third selector circuits that operate.

【0011】上記構成のパラレル入出力ポートにおい
て、先ず、データバスから与えられるデータ信号が初段
のレジスタに格納される。そして、この初段のレジスタ
のデータ出力信号によって初段の制御装置の駆動が行わ
れる。これにより、初段の制御装置が仕事を開始する。
その後、制御信号が与えられ、これに応じて第2のセレ
クタ回路が割り込み信号発生回路の出力信号を選択し、
第3の複数のセレクタ回路が前段のレジスタのデータ出
力信号を選択する。また、割り込み信号発生回路が一定
時間ごとに割り込み信号を発生する。この割り込み信号
は、第2のセレクタ回路を介して2段目のレジスタのク
ロック入力となる。すると、この割り込み信号に同期し
て2段目のレジスタには初段のレジスタのデータ出力信
号が格納される。そして、この2段目のレジスタのデー
タ出力信号によって2段目の制御装置の駆動が行われ
る。以降、割り込み信号発生回路から割り込み信号が発
生されるごとに、前段のレジスタからデータ出力信号が
シフトされることで、各外部ポートに接続されている制
御装置をシーケンシャルに駆動し、仕事をさせていく。
In the parallel input / output port having the above structure, first, the data signal supplied from the data bus is stored in the first stage register. Then, the data output signal of the register of the first stage drives the control device of the first stage. This causes the first-stage control device to start work.
After that, a control signal is given, and in response to this, the second selector circuit selects the output signal of the interrupt signal generation circuit,
The third plurality of selector circuits select the data output signal of the previous register. Also, the interrupt signal generation circuit generates an interrupt signal at regular time intervals. This interrupt signal becomes a clock input to the register in the second stage via the second selector circuit. Then, in synchronization with this interrupt signal, the data output signal of the first-stage register is stored in the second-stage register. Then, the data output signal of the register of the second stage drives the control device of the second stage. After that, each time the interrupt signal is generated from the interrupt signal generation circuit, the data output signal is shifted from the register in the previous stage, so that the control device connected to each external port is driven sequentially to perform work. Go.

【0012】[0012]

【発明の実施の形態】以下、本発明の実施の形態につい
て図面を参照しつつ詳細に説明する。図1は、本発明の
第1の実施形態を示すブロック図である。図1におい
て、1段目のレジスタ111 は、リセット付きD‐FF
によって構成されている。このレジスタ111 におい
て、そのクロック(C)入力としてセレクタ回路12の
出力信号OUT1が与えられ、リセット(R)入力とし
てセレクタ回路13の出力信号OUT2が与えられる。
セレクタ回路12は、システムクロック信号CLKとO
Rゲート14の出力信号OUT3とを2入力とし、制御
信号CONTによって2入力の一方を選択して出力信号
OUT1とする。セレクタ回路13は、システムリセッ
ト信号RSTとレジスタ111 のデータ出力Q1とを2
入力とし、制御信号CONTによって2入力の一方を選
択して出力信号OUT2とする。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described below in detail with reference to the drawings. FIG. 1 is a block diagram showing a first embodiment of the present invention. In Figure 1, the register 11 1 in the first stage is reset with D-FF
It is composed by. In the register 11 1 , the output signal OUT1 of the selector circuit 12 is given as its clock (C) input, and the output signal OUT2 of the selector circuit 13 is given as its reset (R) input.
The selector circuit 12 receives the system clock signals CLK and O.
The output signal OUT3 of the R gate 14 is used as two inputs, and one of the two inputs is selected as the output signal OUT1 by the control signal CONT. The selector circuit 13 outputs the system reset signal RST and the data output Q1 of the register 11 1 to 2
One of the two inputs is selected as an input and is used as an output signal OUT2 by the control signal CONT.

【0013】レジスタ111 はさらに、内部データバス
15からのデータ信号DATAをデータ(D)入力と
し、ライトイネーブル信号ENBLをイネーブル(E)
入力とする。レジスタ111 のデータ出力Q1は、出力
信号線161 を介して出力バッファ171 に供給され、
さらに外部ポート181 を介して外部に出力される。外
部ポート181 には、制御装置191 が接続されてい
る。なお、システムクロック信号CLK、制御信号CO
NT、システムリセット信号RSTおよびライトイネー
ブル信号ENBLの各信号については、CPU(図示せ
ず)から与えるようにしても良いし、又外部のハードウ
ェア回路から与えるようにしても良い。
The register 11 1 further receives the data signal DATA from the internal data bus 15 as data (D) input and enables the write enable signal ENBL (E).
Input it. The data output Q1 of the register 11 1 is supplied to the output buffer 17 1 via the output signal line 16 1 ,
Further, it is output to the outside through the external port 18 1 . The control device 19 1 is connected to the external port 18 1 . The system clock signal CLK and the control signal CO
Each of NT, the system reset signal RST, and the write enable signal ENBL may be given from a CPU (not shown) or may be given from an external hardware circuit.

【0014】2段目のレジスタ112 においても、1段
目のレジスタ111 と同様に、リセット付きD‐FFに
よって構成され、そのクロック(C)入力としてセレク
タ回路12の出力信号OUT1が与えられる。また、リ
セット(R)入力としては、システムリセット信号RS
Tが直接与えられる。レジスタ112 はさらに、セレク
タ回路202 の出力信号OUT4をデータ(D)入力と
し、ORゲート212の出力信号OUT5をイネーブル
(E)入力とする。セレクタ回路202 は、内部データ
バス15からのデータ信号DATAと1段目のレジスタ
111 のデータ出力Q1とを2入力とし、先の制御信号
CONTによって2入力の一方を選択して出力信号OU
T4とする。ORゲート212 は、先の制御信号CON
Tとライトイネーブル信号ENBLとを2入力としてい
る。
Similarly to the register 11 1 of the first stage, the register 11 2 of the second stage is also constituted by a D-FF with reset, and the output signal OUT1 of the selector circuit 12 is given as its clock (C) input. . Further, the system reset signal RS is used as the reset (R) input.
T is given directly. The register 11 2 further receives the output signal OUT4 of the selector circuit 20 2 as a data (D) input and the output signal OUT5 of the OR gate 21 2 as an enable (E) input. The selector circuit 20 2 has the data signal DATA from the internal data bus 15 and the data output Q1 of the register 11 1 of the first stage as two inputs, selects one of the two inputs according to the control signal CONT, and outputs the output signal OU.
T4. The OR gate 21 2 has the above-mentioned control signal CON.
T and the write enable signal ENBL are two inputs.

【0015】レジスタ112 のデータ出力Q2は、出力
信号線162 を介して出力バッファ172 に供給される
とともに、3段目のレジスタ113 のデータ(D)入力
となる。出力バッファ172 を経たデータ出力Q2は、
外部ポート182 を介して制御装置192 に供給され
る。この2段目のレジスタ112 およびその周辺回路と
同じ構成の回路が複数段並列に配されている。これら各
段の制御装置191 ,192 ,……は、各々の仕事が終
了すると割り込み信号int1,int2,……を発生
する。この割り込み信号int1,int2,……は、
ORゲート14を介して出力信号OUT3としてセレク
タ回路12に供給される。
The data output Q2 of the register 11 2 is supplied to the output buffer 17 2 via the output signal line 16 2 and becomes the data (D) input of the register 11 3 in the third stage. The data output Q2 passing through the output buffer 17 2 is
It is supplied to the control device 19 2 via the external port 18 2 . Circuits having the same configuration as the register 11 2 and its peripheral circuit of the second stage are arranged in a plurality of stages parallel. The control devices 19 1 , 19 2 , ... Of these stages generate interrupt signals int1, int2 ,. These interrupt signals int1, int2, ...
The output signal OUT3 is supplied to the selector circuit 12 via the OR gate 14.

【0016】次に、上記構成の第1の実施形態に係る回
路動作について、図2の波形図を用いて説明する。な
お、制御信号CONTは、制御装置191 ,192 ,…
…の駆動を指令する例えば1ビットのデータ(“H”/
“L”レベル)である。
Next, the circuit operation according to the first embodiment having the above configuration will be described with reference to the waveform chart of FIG. The control signal CONT is the control device 19 1 , 19 2 , ...
For example, 1-bit data (“H” /
"L" level).

【0017】先ず、制御信号CONTが“L”レベルの
ときには、セレクタ回路12はシステムクロック信号C
LKを選択し、セレクタ回路13はシステムリセット信
号RSTを選択し、またセレクタ回路202 は内部デー
タバス15からのデータ信号DATAを選択すること
で、従来のパラレル入出力ポートと同じ動作をする。す
なわち、制御信号CONTが“L”レベルのときに、シ
ステムリセット信号RSTが“H”レベルになると、レ
ジスタ111 ,112 ,……がシステムクロック信号C
LKの立ち上がりに同期してリセットされ、各レジスタ
111 ,112 ,……に“L”レベルのデータが書き込
まれ、各々のデータ出力Q1,Q2,……が“L”レベ
ルとなる(動作)。
First, when the control signal CONT is at the "L" level, the selector circuit 12 causes the system clock signal C.
By selecting LK, the selector circuit 13 selecting the system reset signal RST, and the selector circuit 20 2 selecting the data signal DATA from the internal data bus 15, the same operation as the conventional parallel input / output port is performed. That is, when the system reset signal RST goes to "H" level while the control signal CONT is at "L" level, the registers 11 1 , 11 2 , ...
It is reset in synchronization with the rising edge of LK, "L" level data is written in each register 11 1 , 11 2 , ..., and each data output Q1, Q2, ... becomes "L" level (operation. ).

【0018】続いて、内部データバス15から“H”レ
ベルのデータ信号DATAが入力され、ライトイネーブ
ル信号ENBLが“H”レベルになると、レジスタ11
1 に“H”レベルのデータがシステムクロック信号CL
Kの立ち上がりに同期して書き込まれるため、レジスタ
111 のデータ出力Q1が“H”レベルとなる。これに
より、外部ポート181 が“H”レベルとなり、外部ポ
ート181 に接続されている制御装置191 が動作(O
N)し、仕事を始める(動作)。
Subsequently, when the "H" level data signal DATA is input from the internal data bus 15 and the write enable signal ENBL becomes "H" level, the register 11
"H" level data in one system clock signal CL
Since the data is written in synchronization with the rising edge of K, the data output Q1 of the register 11 1 becomes "H" level. As a result, the external port 18 1 becomes “H” level, and the control device 19 1 connected to the external port 18 1 operates (O
N) and start work (operation).

【0019】次に、制御信号CONTが“H”レベルに
なると、セレクタ回路12はORゲート14の出力信号
OUT3を選択し、セレクタ回路13はレジスタ111
のデータ出力Q1を選択し、セレクタ回路202 はレジ
スタ111 のデータ出力Q1を選択する(動作)。そ
して、制御装置191 の仕事が終了(OFF)し、制御
装置191 から割り込み信号int1が発生されると、
この割り込み信号int1に同期してレジスタ111
リセットされ、レジスタ111 に“L”レベルのデータ
が書き込まれるため、レジスタ111 のデータ出力Q1
が“L”レベルとなる。これにより、外部ポート181
が“L”レベルとなる。
Next, when the control signal CONT goes to "H" level, the selector circuit 12 selects the output signal OUT3 of the OR gate 14, and the selector circuit 13 selects the register 11 1.
Data output Q1 of the register 11 1 and the selector circuit 20 2 selects the data output Q1 of the register 11 1 (operation). When the work of the control device 19 1 is finished (OFF) and the interrupt signal int1 is generated from the control device 19 1 ,
The interrupt signal int1 registers 11 1 in synchronization with the reset, since the register 11 1 "L" level data is written, the register 11 1 of the data output Q1
Becomes "L" level. This allows the external port 18 1
Becomes "L" level.

【0020】制御信号CONTが“H”レベルにあるこ
とから、ORゲート212 の出力信号OUT5が“H”
レベルになるため、レジスタ112 のイネーブル(E)
入力も“H”レベルとなる。このレジスタ112 のデー
タ(D)入力には、レジスタ111 のデータ出力Q1が
与えられることから、割り込み信号int1に同期して
レジスタ111 に保持されていた“H”レベルのデータ
がレジスタ112 に書き込まれるため、このレジスタ1
2 のデータ出力Q2が“H”レベルとなる。これによ
り、外部ポート182 が“H”レベルとなり、外部ポー
ト182 に接続されている制御装置192 が動作し(O
N)、仕事を開始する(動作)。
Since the control signal CONT is at "H" level, the output signal OUT5 of the OR gate 21 2 is "H".
Enables (E) register 11 2 to reach level
The input also becomes "H" level. Since the data output Q1 of the register 11 1 is given to the data (D) input of the register 11 2 , the “H” level data held in the register 11 1 in synchronization with the interrupt signal int1 is transferred to the register 11 1. This register 1 is written to 2
The data output Q2 of 1 2 becomes "H" level. As a result, the external port 18 2 becomes “H” level, and the control device 19 2 connected to the external port 18 2 operates (O
N), start work (operation).

【0021】制御装置192 は、仕事が終了(OFF)
すると、割り込み信号int2を発生する。このとき、
制御信号CONTが“H”レベルにあるので、ORゲー
ト212 の出力信号OUT5も“H”レベルにあり、し
たがってレジスタ112 のイネーブル(E)入力も
“H”レベルにある。レジスタ112 のデータ(D)入
力には、レジスタ111 のデータ出力Q1が与えられる
ことから、割り込み信号int2に同期してレジスタ1
1 に保持されていた“L”レベルのデータがレジスタ
112 に書き込まれ、このレジスタ112 のデータ出力
Q2が“L”レベルとなる(動作)。
The control device 19 2 finishes its work (OFF).
Then, the interrupt signal int2 is generated. At this time,
Since the control signal CONT is at "H" level, the output signal OUT5 of the OR gate 21 2 is also at "H" level, and therefore the enable (E) input of the register 11 2 is also at "H" level. Since the data output Q1 of the register 11 1 is given to the data (D) input of the register 11 2 , the register 1 1 is synchronized with the interrupt signal int2.
1 1 data retention that had been "L" level is written into the register 11 2, the data output Q2 of the register 11 2 is "L" level (operation).

【0022】上記の動作,を3段目以降の回路が順
次行うことにより、割り込み信号intが発生するごと
に各外部ポート181 ,182 ,……に接続されている
複数の制御装置191 ,192 ,……をシーケンシャル
に駆動(ON)し、仕事をさせていく。
The above operations are sequentially performed by the circuits of the third and subsequent stages, so that each time an interrupt signal int is generated, a plurality of control devices 19 1 connected to the external ports 18 1 , 18 2 ,. , 19 2 , ... Sequentially drive (ON) to get the work done.

【0023】上述したように、第1の実施形態に係るパ
ラレル入出力ポートにおいては、2段目以降のレジスタ
のデータ(D)入力に接続されているセレクタ回路20
2 ,203 ,……が1段前のレジスタのデータ出力Qを
選択することで、各制御装置191 ,192 ,……が各
々の仕事の終了時に発生する割り込み信号int1,i
nt2,……により、前段のレジスタに保持されている
データが次段のレジスタに書き込まれ、各レジスタのデ
ータが割り込みによって次段のレジスタにシフトされる
ので、各制御装置191 ,192 ,……をシーケンシャ
ルに駆動し仕事をさせる場合、CPUを介在させずに、
次の制御装置を駆動できる。
As described above, in the parallel input / output port according to the first embodiment, the selector circuit 20 connected to the data (D) input of the second and subsequent registers.
2, 20 3, ... is by selecting the data output Q of the previous register one stage, the control device 19 1, 19 2, ... are generated at the end of each work interruption signal int1, i
By nt2, ..., the data held in the register of the previous stage is written in the register of the next stage, and the data of each register is shifted to the register of the next stage by an interrupt, so that each control device 19 1 , 19 2 , When driving ... in order to perform work, without interposing a CPU,
The following control devices can be driven.

【0024】図3は、本発明の第2の実施形態を示すブ
ロック図であり、図中、図1と同等部分には同一符号を
付して示している。この第2の実施形態では、1段目の
レジスタ111 において、そのデータ(D)入力として
セレクタ回路22の出力信号OUT6が与えられ、イネ
ーブル(E)入力としてORゲート23の出力信号OU
T7が与えられる。セレクタ回路22は、内部データバ
ス15からのデータ信号DATAと最終段のレジスタ1
n のデータ出力Qn とを2入力とし、制御信号CON
Tによって2入力の一方を選択して出力信号OUT6と
する。ORゲート23は、ライトイネーブル信号ENB
Lと制御信号CONTとを2入力としている。それ以外
の構成は、第1の実施形態のそれと同じである。
FIG. 3 is a block diagram showing a second embodiment of the present invention. In the figure, the same parts as those in FIG. 1 are designated by the same reference numerals. In the second embodiment, the output signal OUT6 of the selector circuit 22 is given to the register 11 1 of the first stage as its data (D) input, and the output signal OU of the OR gate 23 as its enable (E) input.
T7 is given. The selector circuit 22 receives the data signal DATA from the internal data bus 15 and the final stage register 1
1 n and a data output Q n of the two inputs, the control signal CON
One of the two inputs is selected by T and used as the output signal OUT6. The OR gate 23 has a write enable signal ENB.
Two inputs are provided for L and the control signal CONT. The other configuration is the same as that of the first embodiment.

【0025】すなわち、第1の実施形態では、1段目の
レジスタ111 のデータ(D)入力として内部データバ
ス15からのデータ信号DATAのみが与えられ、また
レジスタ111 のイネーブル(E)入力としてライトイ
ネーブル信号ENBLのみが与えられるようになってい
たのに対し、第2の実施形態では、内部データバス15
からのデータ信号DATA又は最終段のレジスタ11n
のデータ出力Qn をデータ(D)入力とし、ライトイネ
ーブル信号ENBL又は制御信号CONTをイネーブル
(E)入力としている。
That is, in the first embodiment, only the data signal DATA from the internal data bus 15 is given as the data (D) input of the register 11 1 of the first stage, and the enable (E) input of the register 11 1 is applied. While only the write enable signal ENBL is applied as the above, the internal data bus 15 is used in the second embodiment.
From the data signal DATA or the final stage register 11 n
The data output Q n is used as the data (D) input, and the write enable signal ENBL or the control signal CONT is used as the enable (E) input.

【0026】次に、上記構成の第2の実施形態に係る回
路動作について、図4の波形図を用いて説明する。
Next, the circuit operation according to the second embodiment having the above configuration will be described with reference to the waveform chart of FIG.

【0027】先ず、制御信号CONTが“L”レベルの
ときには、セレクタ回路22は、内部データバス15か
らのデータ信号DATAを選択する。また、セレクタ回
路13はシステムリセット信号RSTを選択し、セレク
タ回路12はシステムクロック信号CLKを選択し、セ
レクタ回路20は内部データバス15からのデータ信号
DATAを選択することで、従来のパラレル入出力ポー
トと同じ動作をする。すなわち、制御信号CONTが
“L”レベルのときに、システムリセット信号RSTが
“H”レベルになると、レジスタ111 ,112 ,…
…,11n がシステムクロック信号CLKの立ち上がり
に同期してリセットされ、レジスタ111 ,112 ,…
…,11n に“L”レベルのデータが書き込まれ、各々
のデータ出力Q1,Q2,……,Qnが“L”レベルと
なる(動作)。
First, when the control signal CONT is at "L" level, the selector circuit 22 selects the data signal DATA from the internal data bus 15. Further, the selector circuit 13 selects the system reset signal RST, the selector circuit 12 selects the system clock signal CLK, and the selector circuit 20 selects the data signal DATA from the internal data bus 15. Operates the same as a port. That is, when the system reset signal RST becomes "H" level while the control signal CONT is "L" level, the registers 11 1 , 11 2 , ...
, 11 n are reset in synchronization with the rising of the system clock signal CLK, and registers 11 1 , 11 2 ,.
, 11 n are written with "L" level data, and the respective data outputs Q1, Q2, ..., Qn are set to "L" level (operation).

【0028】続いて、内部データバス15から“H”レ
ベルのデータ信号DATAが入力され、ライトイネーブ
ル信号ENBLが“H”レベルになると、レジスタ11
1 に“H”レベルのデータがシステムクロック信号CL
Kの立ち上がりに同期して書き込まれ、レジスタ111
のデータ出力Qが“H”レベルとなる。これにより、外
部ポート181 が“H”レベルとなるため、外部ポート
181 に接続されている制御装置191 が動作(ON)
し、仕事を始める(動作)。
Then, when the "H" level data signal DATA is input from the internal data bus 15 and the write enable signal ENBL becomes "H" level, the register 11
"H" level data in one system clock signal CL
Written in synchronization with the rising edge of K, register 11 1
Data output Q becomes "H" level. As a result, the external port 18 1 becomes "H" level, and the control device 19 1 connected to the external port 18 1 operates (ON).
And start work (motion).

【0029】次に、制御信号CONTが“H”レベルに
なると、セレクタ回路22は、最終段のレジスタ11n
のデータ出力Qn を選択する。また、セレクタ回路12
はORゲート14の出力信号OUT3を選択し、セレク
タ回路13はレジスタ111のデータ出力Q1を選択
し、セレクタ回路20はレジスタ111 のデータ出力Q
1を選択する(動作)。そして、制御装置191 の仕
事が終了(OFF)し、制御装置191 から割り込み信
号int1が発生されると、この割り込み信号int1
に同期してレジスタ111 がリセットされ、レジスタ1
1 に“L”レベルのデータが書き込まれ、データ出力
Q1が“L”レベルとなる。これにより、外部ポート1
1 が“L”レベルとなる。
Next, when the control signal CONT becomes "H" level, the selector circuit 22 causes the final stage register 11 n.
The data output Q n of is selected. In addition, the selector circuit 12
Selects the output signal OUT3 of the OR gate 14, the selector circuit 13 selects the data output Q1 of the register 11 1 , and the selector circuit 20 selects the data output Q of the register 11 1.
Select 1 (operation). When the work of the control device 19 1 is completed (OFF) and the interrupt signal int1 is generated from the control device 19 1 , the interrupt signal int1
Register 11 1 is reset in synchronization with
1 1 to the "L" level data is written, the data output Q1 becomes "L" level. This allows the external port 1
8 1 becomes "L" level.

【0030】制御信号CONTが“H”レベルにあるこ
とから、ORゲート212 の出力信号OUT5が“H”
レベルになるため、レジスタ112 のイネーブル(E)
入力も“H”レベルとなる。このレジスタ112 のデー
タ(D)入力には、レジスタ111 のデータ出力Q1が
与えられることから、割り込み信号int1に同期して
レジスタ111 に保持されていた“H”レベルのデータ
がレジスタ112 に書き込まれ、このレジスタ112
データ出力Q2が“H”レベルとなる。これにより、外
部ポート182 が“H”レベルとなり、外部ポート18
2 に接続されている制御装置192 が動作し(ON)、
仕事を開始する(動作)。
Since the control signal CONT is at "H" level, the output signal OUT5 of the OR gate 21 2 is "H".
Enables (E) register 11 2 to reach level
The input also becomes "H" level. Since the data output Q1 of the register 11 1 is given to the data (D) input of the register 11 2 , the “H” level data held in the register 11 1 in synchronization with the interrupt signal int1 is transferred to the register 11 1. written in the 2, the data output Q2 of the register 11 2 is set to the "H" level. As a result, the external port 18 2 becomes “H” level, and the external port 18 2
The control device 19 2 connected to 2 operates (ON),
Start work (motion).

【0031】制御装置192 は、仕事が終了(OFF)
すると、割り込み信号int2を発生する。このとき、
制御信号CONTが“H”レベルにあるので、ORゲー
ト21の出力信号OUT5も“H”レベルにあり、よっ
てレジスタ112 のイネーブル(E)入力も“H”レベ
ルにある。レジスタ112 のデータ(D)入力には、レ
ジスタ111 のデータ出力Q1が与えられることから、
割り込み信号int2に同期してレジスタ111 に保持
されていた“L”レベルのデータがレジスタ112 に書
き込まれ、このレジスタ112 のデータ出力Q2が
“L”レベルとなる(動作)。
The control device 19 2 finishes its work (OFF).
Then, the interrupt signal int2 is generated. At this time,
Since the control signal CONT is at "H" level, the output signal OUT5 of the OR gate 21 is also at "H" level, and the enable (E) input of the register 11 2 is also at "H" level. Since the data (D) input of the register 11 2 is given the data output Q1 of the register 11 1 ,
Data of the interrupt signal int2 synchronously held in the register 11 1 to the "L" level is written to the register 11 2, the data output Q2 of the register 11 2 is "L" level (operation).

【0032】上記の動作,を3段目以降の回路が順
次行うことにより、割り込み信号intが発生するごと
に各外部ポート181 ,182 ,……,18n に接続さ
れている複数の制御装置191 ,192 ,……,19n
をシーケンシャルに駆動(ON)し、仕事をさせてい
く。そして、最終段の外部ポート18n に接続された制
御装置19n の仕事が終了(OFF)すると、この制御
装置19n から割り込み信号intnが発生される。こ
のとき、制御信号CONTが“H”レベルにあるので、
ORゲート23の出力信号OUT7も“H”レベルにあ
り、よって1段目のレジスタ111 のイネーブル(E)
入力も“H”レベルにある。
The above operations are sequentially performed by the circuits of the third and subsequent stages, so that each time an interrupt signal int is generated, a plurality of controls connected to the external ports 18 1 , 18 2 , ..., 18 n are controlled. Device 19 1 , 19 2 , ..., 19 n
Sequentially drive (ON) and let work. When the work of the control device 19 n connected to the final stage external port 18 n is completed (OFF), an interrupt signal intn is generated from this control device 19 n . At this time, since the control signal CONT is at "H" level,
The output signal OUT7 of the OR gate 23 is also at the "H" level, so that the first-stage register 11 1 is enabled (E).
The input is also at "H" level.

【0033】1段目のレジスタ111 のデータ(D)入
力には、最終段のレジスタ11n のデータ出力Qnがセ
レクタ回路22によって選択されて与えられることか
ら、最終段のレジスタ11n に保持されていた“H”レ
ベルのデータが割り込み信号intnに同期してレジス
タ111 に書き込まれるため、このレジスタ111 のデ
ータ出力Q1が“H”レベルとなる。これにより、外部
ポート181 が“H”レベルとなるため、この外部ポー
ト181 に接続されている制御装置191 が再び動作
(ON)し、仕事を始める(動作)。そして、上記の
動作,を行うことによって、再び各外部ポートに接
続されている制御装置をシーケンシャルに駆動し、仕事
をさせていく。
Since the data output Qn of the register 11 n at the final stage is selected and given to the data (D) input of the register 11 1 at the first stage by the selector circuit 22, it is held in the register 11 n at the final stage. Since the "H" level data that has been written is written in the register 11 1 in synchronization with the interrupt signal intn, the data output Q1 of the register 11 1 becomes "H" level. As a result, the external port 18 1 is set to the “H” level, so that the control device 19 1 connected to the external port 18 1 operates again (ON) and starts work (operation). Then, by performing the above operation, the control device connected to each external port is sequentially driven again to perform work.

【0034】上述したように、第2の実施形態に係るパ
ラレル入出力ポートにおいては、制御信号CONTが
“H”レベルのときに、最終段のレジスタ11n のデー
タ出力Qnを1段目のレジスタ111 のデータ(D)入
力とするとともに、制御信号CONTそのものをイネー
ブル(E)入力とするようにしたことにより、第1の実
施形態の効果に加え、最終段の制御装置19n の仕事が
終了(OFF)し、割り込み信号intnが発生する
と、1段目の制御装置191 が再び動作(ON)して仕
事を始めるので、各制御装置191 ,192 ,……,1
n を再びシーケンシャルに駆動し仕事をさせることが
できるという効果が得られる。
As described above, in the parallel input / output port according to the second embodiment, when the control signal CONT is at "H" level, the data output Qn of the register 11 n at the final stage is changed to the register at the first stage. By inputting the data (D) of 11 1 and the control signal CONT itself as the enable (E) input, in addition to the effect of the first embodiment, the work of the control device 19 n in the final stage is performed. When the interrupt signal intn is generated after the end (OFF), the control device 19 1 of the first stage operates (ON) again to start the work. Therefore, each control device 19 1 , 19 2 , ..., 1
It is possible to obtain the effect that 9 n can be driven again sequentially to perform work.

【0035】図5は、本発明の第3の実施形態を示すブ
ロック図であり、図中、図1と同等部分には同一符号を
付して示している。この第3の実施形態では、一例とし
て、4個の制御装置191 〜194 を駆動対象としてい
る。4個の制御装置191 〜194 に対し、これらをシ
ーケンシャルに駆動する際の順番を切り換えるためのリ
セット付きD‐FFからなる制御レジスタ24が設けら
れている。この制御レジスタ24は、システムリセット
信号RSTをリセット(R)入力とし、内部データバス
15からのデータ信号DATAをデータ(D)入力と
し、ライトイネーブル信号ENBLをイネーブル(E)
入力とし、システムクロック信号CLKをクロック
(C)入力とし、データ信号DATAの内容に応じて例
えば2ビットのデータ出力Qa,Qbを発生する。
FIG. 5 is a block diagram showing a third embodiment of the present invention. In the figure, the same parts as those in FIG. 1 are designated by the same reference numerals. In the third embodiment, as an example, four control devices 19 1 to 19 4 are driven. A control register 24 composed of a D-FF with a reset is provided for the four control devices 19 1 to 19 4 to switch the order in which they are sequentially driven. The control register 24 receives the system reset signal RST as a reset (R) input, the data signal DATA from the internal data bus 15 as a data (D) input, and enables the write enable signal ENBL (E).
The system clock signal CLK is used as an input and the system clock signal CLK is used as a clock (C) input, and for example, 2-bit data outputs Qa and Qb are generated according to the content of the data signal DATA.

【0036】制御レジスタ24のデータ出力Qa,Qb
は、制御信号CONT1,CONT2として、セレクタ
回路12、セレクタ回路13、セレクタ回路202 〜2
4、ORゲート212 〜214 にそれぞれ供給され
る。制御信号CONT1,CONT2は、その制御形態
として、(0,0),(1,0),(0,1),(1,
1)の4つのパターンを設定する。ここに、論理“1”
は“H”レベルであり、論理“0”は“L”レベルであ
る。
Data output Qa, Qb of the control register 24
Are the control signals CONT1 and CONT2, the selector circuit 12, the selector circuit 13, and the selector circuits 20 2 to 20 2.
0 4 and OR gates 21 2 to 21 4 , respectively. The control signals CONT1 and CONT2 are (0,0), (1,0), (0,1), (1,
Set the four patterns of 1). Here, logic "1"
Is at "H" level, and logic "0" is at "L" level.

【0037】セレクタ回路12は、システムクロック信
号CLKとORゲート14の出力信号OUT3とを2入
力とし、制御信号CONT1,CONT2が(0,0)
のときにシステムクロック信号CLKを、それ以外では
ORゲート14の出力信号OUT3をそれぞれ選択して
出力信号OUT1とする。セレクタ回路13は、システ
ムリセット信号RSTとレジスタ111 のデータ出力Q
1とを2入力とし、制御信号CONT1,CONT2が
(0,0)のときにシステムリセット信号RSTを、そ
れ以外ではレジスタ111 のデータ出力Q1をそれぞれ
選択して出力信号OUT2とする。
The selector circuit 12 receives the system clock signal CLK and the output signal OUT3 of the OR gate 14 as two inputs, and the control signals CONT1 and CONT2 are (0, 0).
At that time, the system clock signal CLK is selected, and otherwise, the output signal OUT3 of the OR gate 14 is selected to be the output signal OUT1. The selector circuit 13 receives the system reset signal RST and the data output Q of the register 11 1.
1 and 2 are input, the system reset signal RST is selected when the control signals CONT1 and CONT2 are (0, 0), and the data output Q1 of the register 11 1 is selected as the output signal OUT2 otherwise.

【0038】2段目のセレクタ回路202 は、内部デー
タバス15からのデータ信号DATAと、1段目,3段
目,4段目のレジスタ111 ,113 ,114 の各デー
タ出力Q1,Q3,Q4とを4入力とし、制御信号CO
NT1,CONT2が(0,0)のときにデータ信号D
ATAを、(1,0)のときに1段目のレジスタ11 1
のデータ出力Q1を、(0,1)のときに3段目のレジ
スタ113 のデータ出力Q3を、(1,1)のときに4
段目のレジスタ114 のデータ出力Q4をそれぞれ選択
する。
Second stage selector circuit 202Is an internal day
Data signal DATA from Tabus 15 and the first and third stages
Register 11 of the first and fourth stages1, 113, 11FourEach day of
Data output Q1, Q3, Q4 as four inputs and control signal CO
Data signal D when NT1 and CONT2 are (0,0)
When ATA is (1,0), the first-stage register 11 1
Of the data output Q1 of the third stage when (0, 1)
Star 113Data output Q3 of 4 when (1, 1)
Stage register 11FourData output Q4 of each is selected
To do.

【0039】3段目のセレクタ回路203 は、内部デー
タバス15からのデータ信号DATAと、1段目,2段
目,4段目のレジスタ111 ,112 ,114 の各デー
タ出力Q1,Q2,Q4とを4入力とし、制御信号CO
NT1,CONT2が(0,0)のときにデータ信号D
ATAを、(1,0)のときに2段目のレジスタ11 2
のデータ出力Q2を、(0,1)のときに1段目のレジ
スタ111 のデータ出力Q1を、(1,1)のときに2
段目のレジスタ112 のデータ出力Q2をそれぞれ選択
する。
Third stage selector circuit 203Is an internal day
Data signal DATA from Tabus 15 and first and second stages
Register 11 of the first and fourth stages1, 112, 11FourEach day of
Control signals CO1, Q2, Q4 as four inputs, and control signal CO
Data signal D when NT1 and CONT2 are (0,0)
When ATA is (1,0), the second-stage register 11 2
Of the data output Q2 of the first register when (0, 1)
Star 111The data output Q1 of 2 is 2 when (1, 1)
Stage register 112Select each data output Q2
To do.

【0040】4段目のセレクタ回路204 は、内部デー
タバス15からのデータ信号DATAと、1段目,2段
目,3段目のレジスタ111 ,112 ,113 の各デー
タ出力Q1,Q2,Q3とを4入力とし、制御信号CO
NT1,CONT2が(0,0)のときにデータ信号D
ATAを、(1,0)のときに3段目のレジスタ11 3
のデータ出力Q2を、(0,1)のときに2段目のレジ
スタ112 のデータ出力Q2を、(1,1)のときに1
段目のレジスタ111 のデータ出力Q1をそれぞれ選択
する。
Fourth stage selector circuit 20FourIs an internal day
Data signal DATA from Tabus 15 and first and second stages
1st and 3rd stage register 111, 112, 113Each day of
Control outputs CO1, Q2, and Q3 as four inputs.
Data signal D when NT1 and CONT2 are (0,0)
When ATA is (1,0), the third-stage register 11 3
Data output Q2 of the second stage when (0, 1)
Star 112Data output Q2 of 1 when (1, 1)
Stage register 111Select each data output Q1
To do.

【0041】次に、上記構成の第3の実施形態に係る回
路動作について説明する。なお、制御レジスタ24は、
内部データバス15を介して与えられるデータ信号DA
TAの内容(データ値)に基づいて制御信号CONT
1,CONT2によって制御形態として4パターン
(0,0),(1,0),(0,1),(1,1)を設
定する。
Next, the circuit operation according to the third embodiment having the above configuration will be described. The control register 24 is
Data signal DA provided via internal data bus 15
Control signal CONT based on the content (data value) of TA
1, CONT2 sets four patterns (0,0), (1,0), (0,1), (1,1) as a control mode.

【0042】先ず、制御信号CONT1,CONT2が
(0,0)のときには、セレクタ回路12がシステムク
ロック信号CLKを選択し、セレクタ回路13がシステ
ムリセット信号RSTを選択し、またセレクタ回路20
2 〜204 は共に内部データバス15からのデータ信号
DATAを選択することで、従来のパラレル入出力ポー
トと同じ動作をする。また、制御信号CONT1,CO
NT2が(1,0)のときには、セレクタ回路12がO
Rゲート14の出力信号OUT3を選択し、セレクタ回
路13およびセレクタ回路202 が共にレジスタ111
のデータ出力Q1を選択し、セレクタ回路203 がレジ
スタ112 のデータ出力Q2を選択し、セレクタ回路2
4 がレジスタ113 のデータ出力Q3を選択すること
で、第1の実施形態と同じ動作をする。すなわち、制御
装置191 →制御装置192 →制御装置193 →制御装
置194 の順に駆動される。
First, when the control signals CONT1 and CONT2 are (0, 0), the selector circuit 12 selects the system clock signal CLK, the selector circuit 13 selects the system reset signal RST, and the selector circuit 20.
2 to 20 4 select the data signal DATA from the internal data bus 15 to perform the same operation as the conventional parallel input / output port. In addition, the control signals CONT1, CO
When NT2 is (1,0), the selector circuit 12 is O
The output signal OUT3 of the R gate 14 is selected, and the selector circuit 13 and the selector circuit 20 2 both register 11 1
Data output Q1 of the selector circuit 2 and the selector circuit 20 3 selects the data output Q2 of the register 11 2.
When 0 4 selects the data output Q3 of the register 11 3 , the same operation as in the first embodiment is performed. That is, the control device 19 1 → the control device 19 2 → the control device 19 3 → the control device 19 4 are driven in this order.

【0043】次に、制御信号CONT1,CONT2が
(0,1)のときの動作について、図6の波形図を用い
て説明する。なお、本実施形態においては、内部データ
バス15から“H”レベルのデータ信号DATAが入力
され、ライトイネーブル信号ENBLが“H”レベルに
なると、先ず1段目のレジスタ111 に“H”レベルの
データが書き込まれ、これにより必ず1段目の制御装置
191 が1番目に動作(ON)し、仕事を開始する構成
となっている。
Next, the operation when the control signals CONT1 and CONT2 are (0, 1) will be described with reference to the waveform chart of FIG. In this embodiment, when the "H" level data signal DATA is input from the internal data bus 15 and the write enable signal ENBL becomes "H" level, first, the register 11 1 of the first stage is set to "H" level. The data is written so that the first-stage control device 19 1 always operates (ON) first and starts the work.

【0044】制御信号CONT1,CONT2が(0,
1)になると、セレクタ回路12はORゲート14の出
力信号OUT3を選択し、セレクタ回路13はレジスタ
11 1 のデータ出力Q1を選択する。また、セレクタ回
路202 がレジスタ113 のデータ出力Q3を、セレク
タ回路203 がレジスタ111 のデータ出力Q1を、セ
レクタ回路204 がレジスタ112 のデータ出力Q2を
それぞれ選択する(動作)。そして、制御装置191
の仕事が終了(OFF)し、割り込み信号int1が発
生すると、この割り込み信号int1に同期してレジス
タ111 がリセットされ、レジスタ111 に“L”レベ
ルのデータが書き込まれ、レジスタ11 1 のデータ出力
Q1が“L”レベルとなる。よって、外部ポート181
が“L”レベルとなる。
The control signals CONT1 and CONT2 are (0,
1), the selector circuit 12 outputs the output of the OR gate 14.
Output signal OUT3, and the selector circuit 13 is a register
11 1Data output Q1 is selected. Also, selector times
Road 202Is register 113Select the data output Q3 of
Circuit 203Is register 111Data output Q1 of
Rector circuit 20FourIs register 112Data output of Q2
Select each (action). Then, the control device 191
Job is completed (OFF), interrupt signal int1 is issued
When it occurs, the register is registered in synchronization with this interrupt signal int1.
Type 111Is reset, register 111"L" level
Data is written to the register 11 1Data output
Q1 becomes "L" level. Therefore, the external port 181
Becomes "L" level.

【0045】ここで、制御信号CONT1,CONT2
の一方が“H”レベルにあることから、ORゲート21
2 〜214 の出力信号OUT52 〜OUT54 が“H”
レベルにあるため、レジスタ112 〜114 のイネーブ
ル(E)入力も“H”レベルとなる。レジスタ113
データ(D)入力には、セレクタ回路203 を介してレ
ジスタ111 のデータ出力Q1が与えられることから、
レジスタ111 にそれまで保持されていた“H”レベル
のデータが割り込み信号int1に同期してレジスタ1
3 に書き込まれ、レジスタ113 のデータ出力Q3が
“H”レベルとなる。よって、外部ポート183
“H”レベルとなり、外部ポート183 に接続されてい
る制御装置193 が動作し(ON)、仕事を開始する
(動作)。
Here, the control signals CONT1 and CONT2
Since one of them is at the “H” level, the OR gate 21
2 to 21 4 output signals OUT5 2 to OUT5 4 are "H"
Since it is at the level, the enable (E) inputs of the registers 11 2 to 11 4 also become the “H” level. Since the data (D) input of the register 11 3 is given the data output Q1 of the register 11 1 via the selector circuit 20 3 ,
The “H” level data held in the register 11 1 until then is synchronized with the register 1 in synchronization with the interrupt signal int1.
Written in the 1 3, data output Q3 of register 11 3 becomes "H" level. Therefore, the external port 18 3 becomes “H” level, the control device 19 3 connected to the external port 18 3 operates (ON), and starts work (operation).

【0046】制御装置193 は仕事が終了(OFF)す
ると、割り込み信号int3を発生する。このとき、レ
ジスタ112 〜114 のイネーブル(E)入力が“H”
レベルにあり、レジスタ113 のデータ(D)入力に
は、セレクタ回路203 を介してレジスタ111 のデー
タ出力Q1が与えられることから、レジスタ111 に保
持されていた“L”レベルのデータが割り込み信号in
t3に同期してレジスタ113 に書き込まれる。したが
って、レジスタ113 のデータ出力Q3が“L”レベル
となる。これにより、外部ポート183 が“L”レベル
となる。
When the work is completed (OFF), the control device 19 3 generates the interrupt signal int3. At this time, the enable (E) inputs of the registers 11 2 to 11 4 are “H”.
Are at level, the data (D) input of the register 11 3, since the register 11 1 of the data output Q1 via the selector circuit 20 3 is provided, held in the register 11 1 at the "L" level data Is the interrupt signal in
It is written in the register 11 3 in synchronization with t3. Therefore, the data output Q3 of the register 11 3 becomes "L" level. As a result, the external port 18 3 becomes "L" level.

【0047】同時に、レジスタ112 のデータ(D)入
力には、セレクタ回路202 を介してレジスタ113
データ出力Q3が与えられることから、レジスタ113
にそれまで保持されていた“H”レベルのデータが割り
込み信号int3に同期してレジスタ112 に書き込ま
れるため、レジスタ112 のデータ出力Q2が“H”レ
ベルとなる。よって、外部ポート182 が“H”レベル
となり、外部ポート182 に接続されている制御装置1
2 が動作し(ON)、仕事を開始する(動作)。
[0047] At the same time, the register 11 and second data (D) input, since the register 11 3 data output Q3 via the selector circuit 20 2 is supplied, the register 11 3
Since the "H" level data held until then is written to the register 11 2 in synchronization with the interrupt signal int3, the data output Q2 of the register 11 2 becomes "H" level. Therefore, the external port 18 2 becomes “H” level and the control device 1 connected to the external port 18 2
9 2 operates (ON) and starts work (operation).

【0048】さらに、制御装置192 の仕事が終了(O
FF)し、割り込み信号int2が発生すると、レジス
タ112 のデータ(D)入力には、セレクタ回路202
を介してレジスタ113 のデータ出力Q3が与えられる
ことから、レジスタ113 に保持されていた“L”レベ
ルのデータが割り込み信号int2に同期してレジスタ
112 に書き込まれ、このレジスタ112 のデータ出力
Q2が“L”レベルとなる。これにより、外部ポート1
2 が“L”レベルとなる。
Further, the work of the control device 19 2 is completed (O
FF), and the interrupt signal int2 is generated, the register 11 and second data (D) input, the selector circuit 20 2
Since the data output Q3 of register 11 3 is supplied through the, held in the register 11 3 "L" level data is written in synchronism with the register 11 2 to the interrupt signal int2, the register 11 2 The data output Q2 becomes "L" level. This allows the external port 1
8 2 becomes “L” level.

【0049】同時に、レジスタ114 のデータ(D)入
力には、セレクタ回路204 を介してレジスタ112
データ出力Q2が与えられることから、レジスタ112
にそれまで保持されていた“H”レベルのデータが割り
込み信号int2に同期してレジスタ114 に書き込ま
れ、このレジスタ114 のデータ出力Q4が“H”レベ
ルとなる。これにより、外部ポート184 が“H”レベ
ルとなり、外部ポート184 に接続されている制御装置
194 が動作し(ON)、仕事を開始する(動作)。
[0049] At the same time, the data (D) input of the register 11 4, since the register 11 2 data output Q2 via the selector circuit 20 4 is supplied, the register 11 2
Then, the "H" level data that has been held until then is written to the register 11 4 in synchronization with the interrupt signal int2, and the data output Q4 of the register 11 4 becomes the "H" level. As a result, the external port 18 4 becomes “H” level, the control device 19 4 connected to the external port 18 4 operates (ON), and starts work (operation).

【0050】そして、制御装置194 の仕事が終了(O
FF)し、割り込み信号int4が発生すると、レジス
タ114 のデータ(D)入力には、セレクタ回路204
を介してレジスタ112 のデータ出力Q2が与えられる
ことから、レジスタ112 に保持されていた“L”レベ
ルのデータが割り込み信号int4に同期してレジスタ
114 に書き込まれ、このレジスタ114 のデータ出力
Q4が“L”レベルとなる。これにより、外部ポート1
4 が“L”レベルとなる(動作)。
Then, the work of the control device 19 4 is completed (O
FF), and the interrupt signal int4 is generated, the data (D) input of the register 11 4, a selector circuit 20 4
Since the register 11 2 data output Q2 is provided via, held in the register 11 2 "L" level data is written in synchronism with the register 11 4 to the interrupt signal int4, the register 11 4 The data output Q4 becomes "L" level. This allows the external port 1
8 4 becomes the "L" level (operation).

【0051】以上の一連の動作により、制御信号CON
T1,CONT2が(0,1)のときには、制御装置1
1 →制御装置193 →制御装置192 →制御装置19
4 の順に駆動されることになる。
Through the above series of operations, the control signal CON
When T1 and CONT2 are (0, 1), the control device 1
9 1 → control device 19 3 → control device 19 2 → control device 19
It will be driven in the order of 4 .

【0052】次に、制御信号CONT1,CONT2が
(1,1)のときの動作について、図7の波形図を用い
て説明する。先の制御形態の場合と同様に、1段目のレ
ジスタ111 に“H”レベルのデータが書き込まれ、1
段目の制御装置191 が1番目に動作(ON)し、仕事
を行っている状態において、制御信号CONT1,CO
NT2が(1,1)になると、セレクタ回路13はレジ
スタ111 のデータ出力Q1を選択し、セレクタ回路1
2はORゲート14の出力信号OUT3を選択する。
Next, the operation when the control signals CONT1 and CONT2 are (1,1) will be described with reference to the waveform chart of FIG. As in the case of the previous control mode, "H" level data is written in the first-stage register 11 1 and
In the state where the control device 19 1 in the second stage operates (ON) first and is performing work, the control signals CONT1, CO
When NT2 becomes (1, 1), the selector circuit 13 selects the data output Q1 of the register 11 1 , and the selector circuit 1
2 selects the output signal OUT3 of the OR gate 14.

【0053】また、セレクタ回路202 がレジスタ11
4 のデータ出力Q4を、セレクタ回路203 がレジスタ
112 のデータ出力Q2を、セレクタ回路204 がレジ
スタ111 のデータ出力Q1をそれぞれ選択する(動作
)。そして、制御装置19 1 の仕事が終了(OFF)
し、割り込み信号int1が発生すると、この割り込み
信号int1に同期してレジスタ111 がリセットさ
れ、レジスタ111 に“L”レベルのデータが書き込ま
れ、レジスタ111 のデータ出力Q1が“L”レベルと
なる。これにより、外部ポート181 が“L”レベルと
なる。
Further, the selector circuit 202Is register 11
FourData output Q4 of the selector circuit 203Is a register
112Data output Q2 of the selector circuit 20FourCash register
Star 111Data output Q1 of each (operation
). Then, the control device 19 1Work ends (OFF)
Then, when the interrupt signal int1 is generated, this interrupt
Register 11 in synchronization with signal int11Is reset
Register 111"L" level data is written to
Register 111Data output Q1 of "L" level
Become. This allows the external port 181Is "L" level
Become.

【0054】ここで、制御信号CONT1,CONT2
が“H”レベルにあることから、ORゲート212 〜2
4 の出力信号OUT52 〜OUT54 が“H”レベル
にあるため、レジスタ112 〜114 のイネーブル
(E)入力も“H”レベルとなる。レジスタ114 のデ
ータ(D)入力には、セレクタ回路204 を介してレジ
スタ111 のデータ出力Q1が与えられることから、レ
ジスタ111 にそれまで保持されていた“H”レベルの
データが割り込み信号int1に同期してレジスタ11
4 に書き込まれ、レジスタ114 のデータ出力Q4が
“H”レベルとなる。これにより、外部ポート184
“H”レベルとなり、外部ポート184 に接続されてい
る制御装置194 が動作し(ON)、仕事を開始する
(動作)。
Here, the control signals CONT1 and CONT2
Is at the "H" level, the OR gates 21 2 to 2
Because of the 1 fourth output signal OUT5 2 ~OUT5 4 "H" level, the register 11 2 to 11 4 enable (E) is also input becomes "H" level. The register 11 fourth data (D) input, since the register 11 1 of the data output Q1 via the selector circuit 20 4 is applied, has been held so far in the register 11 1 "H" level data interrupt Register 11 in synchronization with signal int1
4 to be written, data output Q4 of the register 11 4 becomes "H" level. As a result, the external port 18 4 becomes “H” level, the control device 19 4 connected to the external port 18 4 operates (ON), and starts work (operation).

【0055】制御装置194 は仕事が終了(OFF)す
ると、割り込み信号int4を発生する。このとき、レ
ジスタ112 〜114 のイネーブル(E)入力が“H”
レベルにあり、レジスタ114 のデータ(D)入力に
は、セレクタ回路204 を介してレジスタ111 のデー
タ出力Q1が与えられることから、レジスタ111 に保
持されていた“L”レベルのデータが割り込み信号in
t4に同期してレジスタ114 に書き込まれる。したが
って、レジスタ114 のデータ出力Q4が“L”レベル
となる。これにより、外部ポート184 が“L”レベル
となる。
When the work is completed (OFF), the control device 19 4 generates the interrupt signal int4. At this time, the enable (E) inputs of the registers 11 2 to 11 4 are “H”.
Are at level, the register 11 4 data (D) input, since the register 11 1 of the data output Q1 via the selector circuit 20 4 is provided, held in the register 11 1 at the "L" level data Is the interrupt signal in
It is written in the register 11 4 in synchronization with t4. Therefore, the data output Q4 of the register 11 4 is "L" level. As a result, the external port 18 4 becomes "L" level.

【0056】同時に、レジスタ112 のデータ(D)入
力には、セレクタ回路202 を介してレジスタ114
データ出力Q4が与えられることから、レジスタ114
にそれまで保持されていた“H”レベルのデータが割り
込み信号int4に同期してレジスタ112 に書き込ま
れ、このレジスタ112 のデータ出力Q2が“H”レベ
ルとなる。これにより、外部ポート182 が“H”レベ
ルとなり、外部ポート182 に接続されている制御装置
192 が動作し(ON)、仕事を開始する(動作)。
[0056] At the same time, the register 11 and second data (D) input, since the data output Q4 of the register 11 4 via the selector circuit 20 2 is supplied, the register 11 4
Then, the "H" level data that has been held until then is written to the register 11 2 in synchronization with the interrupt signal int4, and the data output Q2 of this register 11 2 becomes "H" level. As a result, the external port 18 2 becomes “H” level, the control device 19 2 connected to the external port 18 2 operates (ON), and starts work (operation).

【0057】さらに、制御装置192 の仕事が終了(O
FF)し、割り込み信号int2が発生すると、レジス
タ112 のデータ(D)入力には、セレクタ回路202
を介してレジスタ114 のデータ出力Q4が与えられる
ことから、レジスタ114 に保持されていた“L”レベ
ルのデータが割り込み信号int2に同期してレジスタ
112 に書き込まれ、このレジスタ112 のデータ出力
Q2が“L”レベルとなる。これにより、外部ポート1
2 が“L”レベルとなる。
Further, the work of the control device 19 2 is completed (O
FF), and the interrupt signal int2 is generated, the register 11 and second data (D) input, the selector circuit 20 2
Since the data output Q4 of the register 11 4 is supplied via a register 11 4 has been held in the "L" level data is written in synchronism with the register 11 2 to the interrupt signal int2, the register 11 2 The data output Q2 becomes "L" level. This allows the external port 1
8 2 becomes “L” level.

【0058】同時に、レジスタ113 のデータ(D)入
力には、セレクタ回路203 を介してレジスタ112
データ出力Q2が与えられることから、レジスタ112
にそれまで保持されていた“H”レベルのデータが割り
込み信号int2に同期してレジスタ113 に書き込ま
れ、このレジスタ113 のデータ出力Q3が“H”レベ
ルとなる。これにより、外部ポート183 が“H”レベ
ルとなり、外部ポート183 に接続されている制御装置
193 が動作し(ON)、仕事を開始する(動作)。
[0058] At the same time, the data (D) input of the register 11 3, since the register 11 2 data output Q2 via the selector circuit 20 3 is supplied, the register 11 2
Then, the "H" level data that has been held until then is written to the register 11 3 in synchronization with the interrupt signal int2, and the data output Q3 of the register 11 3 becomes the "H" level. As a result, the external port 18 3 becomes "H" level, the control device 19 3 connected to the external port 18 3 operates (ON), and starts work (operation).

【0059】そして、制御装置193 の仕事が終了(O
FF)し、割り込み信号int3が発生すると、レジス
タ113 のデータ(D)入力には、セレクタ回路203
を介してレジスタ112 のデータ出力Q2が与えられる
ことから、レジスタ112 に保持されていた“L”レベ
ルのデータが割り込み信号int3に同期してレジスタ
113 に書き込まれ、このレジスタ113 のデータ出力
Q3が“L”レベルとなる。これにより、外部ポート1
3 の“L”レベルとなる(動作)。
Then, the work of the control device 19 3 is completed (O
FF), and the interrupt signal int3 is generated, the data (D) input of the register 11 3, the selector circuit 20 3
Since the register 11 2 data output Q2 is provided via, held in the register 11 2 "L" level data is written in synchronism with the register 11 3 to the interrupt signal int3, the register 11 3 The data output Q3 becomes "L" level. This allows the external port 1
8 3 becomes "L" level (operation).

【0060】以上の一連の動作により、制御信号CON
T1,CONT2が(1,1)のときには、制御装置1
1 →制御装置194 →制御装置192 →制御装置19
3 の順に駆動されることになる。
By the above series of operations, the control signal CON
When T1 and CONT2 are (1,1), the control device 1
9 1 → control device 19 4 → control device 19 2 → control device 19
It will be driven in the order of 3 .

【0061】上述したように、第3の実施形態に係るパ
ラレル入出力ポートにおいては、セレクタ回路12、セ
レクタ回路13、セレクタ回路202 〜204 を制御す
る制御信号CONT1,CONT2を生成する制御レジ
スタ24を設けるとともに、セレクタ回路202 〜20
4 には他の段のレジスタのデータ出力を与えるようにし
たことにより、第1の実施形態の効果に加え、制御レジ
スタ24のデータ出力Qa,Qbをプログラマブルに変
更することによって各外部ポートに接続されている制御
装置を駆動する順序を任意に変更できるという効果が得
られる。
As described above, in the parallel input / output port according to the third embodiment, the control register that generates the control signals CONT1 and CONT2 for controlling the selector circuit 12, the selector circuit 13, and the selector circuits 20 2 to 20 4. 24 is provided, and selector circuits 20 2 to 20
Since the data output of the register of the other stage is given to 4, the data output Qa and Qb of the control register 24 is connected to each external port by being programmable in addition to the effect of the first embodiment. It is possible to obtain the effect that the order in which the control devices are driven can be arbitrarily changed.

【0062】なお、第3の実施形態においては、制御装
置191 →制御装置192 →制御装置193 →制御装置
194 の順序の外に、制御装置191 →制御装置193
→制御装置192 →制御装置194 および制御装置19
1 →制御装置194 →制御装置192 →制御装置193
の2通りのパターンを設定したが、セレクタ回路20 2
〜204 の構成を変更することにより、制御装置191
→制御装置194 →制御装置193 →制御装置192
ど他のパターンも設定できる。
In the third embodiment, the control device is
Setting 191→ Control device 192→ Control device 193→ Control device
19FourOut of the order of the control device 191→ Control device 193
→ Control device 192→ Control device 19FourAnd control device 19
1→ Control device 19Four→ Control device 192→ Control device 193
2 patterns are set, the selector circuit 20 2
~ 20FourBy changing the configuration of the control device 191
→ Control device 19Four→ Control device 193→ Control device 192Na
Any other pattern can be set.

【0063】また、制御レジスタ24として2ビット構
成のものを用いて4(=22 )パターンの制御形態を設
定できるようにしたが、これに限定されるものではな
く、制御レジスタ24として例えば3ビット構成のもの
を用いることで、8(=23 )パターンの制御形態を設
定することが可能となる。
Further, although the control register 24 having a 2-bit structure can be used to set the control pattern of 4 (= 2 2 ) patterns, the control register 24 is not limited to this, and the control register 24 may have, for example, 3 bits. By using the bit configuration, it is possible to set the control form of 8 (= 2 3 ) patterns.

【0064】さらに、第3の実施形態では、順序として
初段の制御装置191 を必ず1番目に駆動する構成とし
たが、初段のレジスタ111 のデータ(D)入力にもセ
レクタ回路を設けるとともに、このセレクタ回路には内
部データバス15からのデータ信号DATAの外に、2
〜4段目のレジスタ112 〜114 の各データ出力Q2
〜Q4を与えることで、1段目の制御装置191 をも含
めて任意に駆動順序を設定することが可能となる。
Further, in the third embodiment, the control device 19 1 in the first stage is always driven first in order, but a selector circuit is also provided at the data (D) input of the register 11 1 in the first stage. , In addition to the data signal DATA from the internal data bus 15, 2
To each data output Q2 of the registers 11 2 to 11 4 of the fourth stage
By giving ~ Q4, it becomes possible to arbitrarily set the driving order including the control device 19 1 of the first stage.

【0065】図8は、本発明の第4の実施形態を示すブ
ロック図であり、図中、図1と同等部分には同一符号を
付して示している。この第4の実施形態では、レジスタ
11 1 ,112 ,……の各々にクロックを与えるセレク
タ回路25が、システムクロック信号CLKと割り込み
信号発生回路であるタイマーカウンタ回路26からの割
り込み信号UDFとを2入力とし、制御信号CONTに
よって2入力の一方を選択し、レジスタ111 ,1
2 ,……の各々にクロック(C)入力として与える構
成となっている。
FIG. 8 is a block diagram showing a fourth embodiment of the present invention.
It is a lock diagram, and in FIG.
It is attached. In this fourth embodiment, the register
11 1, 112, Select to give a clock to each of
Circuit circuit 25 interrupts the system clock signal CLK
The interrupt from the timer counter circuit 26, which is a signal generation circuit,
The input signal UDF and 2 inputs, and the control signal CONT
Therefore, one of the two inputs is selected and the register 111, 1
12, ... Each clock is supplied as a clock (C) input.
It has become successful.

【0066】タイマーカウンタ回路26は、カウント動
作を制御する制御信号CONTをイネーブル(E)入
力、外部クロック信号ECLKをクロック(C)入力、
固定値をデータ(D)入力とし、ダウンカウントのアン
ダーフロー発生時に割り込み信号UDFを出力する。こ
の割り込み信号UDFは、上述したようにセレクタ回路
25の一方の入力になるとともに、ORゲート27の一
方の入力ともなる。ORゲート27は、システムリセッ
ト信号RSTを他方の入力とし、その出力をタイマーカ
ウンタ回路26のセット(S)入力とする。
The timer counter circuit 26 has a control signal CONT for controlling the counting operation enabled (E) input, an external clock signal ECLK input as a clock (C),
A fixed value is used as data (D) input, and an interrupt signal UDF is output when a down count underflow occurs. The interrupt signal UDF serves as one input of the selector circuit 25 as described above and also serves as one input of the OR gate 27. The OR gate 27 receives the system reset signal RST as the other input, and its output as the set (S) input of the timer counter circuit 26.

【0067】次に、上記構成の第4の実施形態に係る回
路動作について、図9の波形図を用いて説明する。
Next, the circuit operation according to the fourth embodiment having the above configuration will be described with reference to the waveform chart of FIG.

【0068】先ず、制御信号CONTが“L”レベルの
ときには、セレクタ回路13はシステムリセット信号R
STを選択し、セレクタ回路25はシステムクロック信
号CLKを選択し、またセレクタ回路202 は内部デー
タバス15からのデータ信号DATAを選択すること
で、従来のパラレル入出力ポートと同じ動作をする。す
なわち、制御信号CONTが“L”レベルのときに、シ
ステムリセット信号RSTが“H”レベルになると、レ
ジスタ111 ,112 ,……がシステムクロック信号C
LKの立ち上がりに同期してリセットされ、各レジスタ
111 ,112 ,……に“L”レベルのデータが書き込
まれ、各々のデータ出力Q1,Q2,……が“L”レベ
ルとなる(動作)。
First, when the control signal CONT is at "L" level, the selector circuit 13 outputs the system reset signal R.
By selecting ST, the selector circuit 25 selects the system clock signal CLK, and the selector circuit 20 2 selects the data signal DATA from the internal data bus 15 to perform the same operation as the conventional parallel input / output port. That is, when the system reset signal RST goes to "H" level while the control signal CONT is at "L" level, the registers 11 1 , 11 2 , ...
It is reset in synchronization with the rising edge of LK, "L" level data is written in each register 11 1 , 11 2 , ..., and each data output Q1, Q2, ... becomes "L" level (operation. ).

【0069】続いて、内部データバス15から“H”レ
ベルのデータ信号DATAが入力され、ライトイネーブ
ル信号ENBLが“H”レベルになると、レジスタ11
1 に“H”レベルのデータがシステムクロック信号CL
Kの立ち上がりに同期して書き込まれ、レジスタ111
のデータ出力Qが“H”レベルとなる。これにより、外
部ポート181 が“H”レベルとなるため、外部ポート
181 に接続されている制御装置191 が動作(ON)
し、仕事を始める(動作)。
Subsequently, when the "H" level data signal DATA is input from the internal data bus 15 and the write enable signal ENBL becomes "H" level, the register 11
"H" level data in one system clock signal CL
Written in synchronization with the rising edge of K, register 11 1
Data output Q becomes "H" level. As a result, the external port 18 1 becomes "H" level, and the control device 19 1 connected to the external port 18 1 operates (ON).
And start work (motion).

【0070】次に、制御信号CONTが“H”レベルに
なると、タイマーカウンタ回路26が外部クロック信号
ECLKに同期してダウンカウントを開始し、セレクタ
回路25はこのタイマーカウンタ回路26のダウンカウ
ントのアンダーフロー発生時の割り込み信号UDFを選
択する。また、セレクタ回路13はレジスタ111 のデ
ータ出力Q1を選択し、セレクタ回路202 はレジスタ
111 のデータ出力Q1を選択する(動作)。
Next, when the control signal CONT goes to "H" level, the timer counter circuit 26 starts down counting in synchronization with the external clock signal ECLK, and the selector circuit 25 causes the down counting of the timer counter circuit 26 to be under. Select the interrupt signal UDF when a flow occurs. Further, the selector circuit 13 selects the data output Q1 of the register 11 1 , and the selector circuit 20 2 selects the data output Q1 of the register 11 1 (operation).

【0071】タイマーカウンタ回路26において、アン
ダーフローが発生したときに、その割り込み信号UDF
がORゲート27を経てタイマーカウンタ回路26のセ
ット(S)入力ともなる。すると、タイマーカウンタ回
路26にはこのセット(S)入力によって固定値がセッ
トされ、タイマーカウンタ回路26は再びダウンカウン
トを始める。そして、レジスタ111 のデータ出力Q1
により、割り込み信号UDFに同期してレジスタ111
がリセットされ、レジスタ111 に“L”レベルのデー
タが書き込まれ、データ出力Q1が“L”レベルとな
る。これにより、外部ポート181 が“L”レベルとな
る。
When an underflow occurs in the timer counter circuit 26, its interrupt signal UDF
Also serves as a set (S) input to the timer counter circuit 26 via the OR gate 27. Then, a fixed value is set in the timer counter circuit 26 by this set (S) input, and the timer counter circuit 26 starts counting down again. Then, the data output Q1 of the register 11 1
Causes the register 11 1 to synchronize with the interrupt signal UDF.
Are reset, the data of "L" level is written in the register 11 1 , and the data output Q1 becomes "L" level. As a result, the external port 18 1 becomes "L" level.

【0072】制御信号CONTが“H”レベルにあるこ
とから、ORゲート212 の出力信号OUT5が“H”
レベルになるため、レジスタ112 のイネーブル(E)
入力も“H”レベルとなる。このレジスタ112 のデー
タ(D)入力には、レジスタ111 のデータ出力Q1が
与えられることから、割り込み信号int1に同期して
レジスタ111 に保持されていた“H”レベルのデータ
がレジスタ112 に書き込まれ、このレジスタ112
データ出力Q2が“H”レベルとなる。これにより、外
部ポート182 が“H”レベルとなり、外部ポート18
2 に接続されている制御装置192 が動作し(ON)、
仕事を開始する(動作)。
Since the control signal CONT is at "H" level, the output signal OUT5 of the OR gate 21 2 is "H".
Enables (E) register 11 2 to reach level
The input also becomes "H" level. Since the data output Q1 of the register 11 1 is given to the data (D) input of the register 11 2 , the “H” level data held in the register 11 1 in synchronization with the interrupt signal int1 is transferred to the register 11 1. written in the 2, the data output Q2 of the register 11 2 is set to the "H" level. As a result, the external port 18 2 becomes “H” level, and the external port 18 2
The control device 19 2 connected to 2 operates (ON),
Start work (motion).

【0073】再びタイマーカウンタ回路26がアンダー
フローを発生すると、制御信号CONTが“H”レベル
にあることから、ORゲート212 の出力信号OUT5
も“H”レベルにあり、したがってレジスタ112 のイ
ネーブル(E)入力も“H”レベルにある。レジスタ1
2 のデータ(D)入力には、レジスタ111 のデータ
出力Q1が与えられることから、アンダーフローによる
割り込み信号UDFに同期してレジスタ111 に保持さ
れていた“L”レベルのデータがレジスタ11 2 に書き
込まれるため、このレジスタ112 のデータ出力Q2が
“L”レベルとなる(動作)。
Again, the timer counter circuit 26 is under
When a flow is generated, the control signal CONT is at "H" level
Therefore, the OR gate 212Output signal OUT5
Is also at the “H” level, and therefore register 112Noi
The enable (E) input is also at "H" level. Register 1
12The data (D) input of1data from
Since output Q1 is given, underflow causes
Register 11 in synchronization with interrupt signal UDF1Held in
The “L” level data stored in the register 11 2Write on
This register 112Data output of Q2
It becomes "L" level (operation).

【0074】そして、上記の動作,を3段目以降の
回路が順次行うことにより、割り込み信号intが発生
するごとに各外部ポート181 ,182 ,……に接続さ
れている複数の制御装置191 ,192 ,……をシーケ
ンシャルに駆動(ON)し、仕事をさせていく。
The above operations are sequentially performed by the circuits of the third and subsequent stages, so that a plurality of control devices connected to the external ports 18 1 , 18 2 , ... Each time the interrupt signal int is generated. Sequentially drive (ON) 19 1 , 19 2 , ... to let them do their work.

【0075】上述したように、第4の実施形態に係るパ
ラレル入出力ポートにおいては、外部クロック信号EC
LKに同期してダウンカウントを行い、アンダーフロー
が発生すると固定値がセットされるタイマーカウンタ回
路26を設け、制御信号CONTが“H”レベルのと
き、ダウンカウントのアンダーフロー発生時の割り込み
信号UDFによって次段の制御装置が動作(ON)し、
仕事を開始するようにしたことにより、各制御装置をあ
る一定時間でシーケンシャルに駆動し仕事を行わせる場
合において、ある一定時間ごとに発生する割り込みをC
PUが処理し、次の制御装置を駆動するものに比べて、
CPUの割り込み処理時間を待たずに、各制御装置をタ
イマーカウンタ回路26にセットされる固定値ごとにシ
ーケンシャルに駆動し仕事を行わせることができる。
As described above, in the parallel input / output port according to the fourth embodiment, the external clock signal EC
A timer counter circuit 26 is provided which counts down in synchronization with LK and sets a fixed value when an underflow occurs. When the control signal CONT is at the "H" level, an interrupt signal UDF when the downcount underflow occurs. Causes the control device of the next stage to operate (ON),
By starting the work, when the control devices are sequentially driven for a certain fixed time to perform the work, an interrupt generated at a certain fixed time is interrupted by C
Compared to what the PU processes and drives the next controller,
It is possible to sequentially drive each control device for each fixed value set in the timer counter circuit 26 to perform work without waiting for the interrupt processing time of the CPU.

【0076】なお、第4の実施形態では、一定時間ごと
に割り込み信号を発生する割り込み信号発生回路とし
て、ダウンカウンタからなるタイマーカウンタ回路26
を用いたが、アップカウンタからなるタイマーカウンタ
回路であっても良く、またカウンタ回路に限らず、一定
時間ごとに割り込み信号を発生し得る回路構成のもので
あれば良い。
In the fourth embodiment, a timer counter circuit 26 including a down counter is used as an interrupt signal generating circuit for generating an interrupt signal at regular time intervals.
However, a timer counter circuit including an up counter may be used, and the counter circuit is not limited to the counter circuit, and may be any circuit having a circuit configuration capable of generating an interrupt signal at regular time intervals.

【0077】図10は、本発明の第5の実施形態を示す
ブロック図であり、図中、図8と同等部分には同一符号
を付して示している。この第5の実施形態では、タイマ
ーカウンタ回路26でアンダーフローが発生したとき、
任意の設定値をタイマーカウンタ回路26のデータ
(D)入力に与える時間設定回路であるタイマーリロー
ドデータレジスタ回路28を設け、このタイマーリロー
ドデータレジスタ回路28には、システムリセット信号
RSTをリセット(R)入力として、システムクロック
信号CLKをクロック(C)入力として、ライトイネー
ブル信号ENBLをイネーブル(E)入力としてそれぞ
れ与えるとともに、内部データバス15からのデータ信
号DATAをデータ(D)入力として与える構成となっ
ている。
FIG. 10 is a block diagram showing a fifth embodiment of the present invention. In the figure, the same parts as those in FIG. 8 are designated by the same reference numerals. In the fifth embodiment, when an underflow occurs in the timer counter circuit 26,
A timer reload data register circuit 28, which is a time setting circuit for giving an arbitrary set value to the data (D) input of the timer counter circuit 26, is provided. The timer reload data register circuit 28 resets the system reset signal RST (R). The system clock signal CLK is supplied as a clock (C) input, the write enable signal ENBL is supplied as an enable (E) input, and the data signal DATA from the internal data bus 15 is supplied as a data (D) input. ing.

【0078】すなわち、タイマーカウンタ回路26でア
ンダーフローが発生したときに、第4の実施形態では、
タイマーカウンタ回路26に予め設定された固定値を設
定するようにしていたのに対し、第5の実施形態では、
内部データバス15からのデータ信号DATAによって
タイマーリロードデータレジスタ回路28に設定される
任意の設定値を設定するようにしている。
That is, when an underflow occurs in the timer counter circuit 26, in the fourth embodiment,
While a preset fixed value is set in the timer counter circuit 26, in the fifth embodiment,
An arbitrary set value set in the timer reload data register circuit 28 is set by the data signal DATA from the internal data bus 15.

【0079】次に、上記構成の第5の実施形態に係る回
路動作について、図11の波形図を用いて説明する。
Next, the circuit operation according to the fifth embodiment having the above configuration will be described with reference to the waveform chart of FIG.

【0080】先ず、制御信号CONTが“L”レベルの
ときには、セレクタ回路13はシステムリセット信号R
STを選択し、セレクタ回路25はシステムクロック信
号CLKを選択し、またセレクタ回路202 は内部デー
タバス15からのデータ信号DATAを選択すること
で、従来のパラレル入出力ポートと同じ動作をする。す
なわち、制御信号CONTが“L”レベルのときに、シ
ステムリセット信号RSTが“H”レベルになると、レ
ジスタ111 ,112 ,……がシステムクロック信号C
LKの立ち上がりに同期してリセットされ、各レジスタ
111 ,112 ,……に“L”レベルのデータが書き込
まれ、各々のデータ出力Q1,Q2,……が“L”レベ
ルとなる(動作)。
First, when the control signal CONT is at "L" level, the selector circuit 13 causes the system reset signal R
By selecting ST, the selector circuit 25 selects the system clock signal CLK, and the selector circuit 20 2 selects the data signal DATA from the internal data bus 15 to perform the same operation as the conventional parallel input / output port. That is, when the system reset signal RST goes to "H" level while the control signal CONT is at "L" level, the registers 11 1 , 11 2 , ...
It is reset in synchronization with the rising edge of LK, "L" level data is written in each register 11 1 , 11 2 , ..., and each data output Q1, Q2, ... becomes "L" level (operation. ).

【0081】続いて、内部データバス15から“H”レ
ベルのデータ信号DATAが入力され、ライトイネーブ
ル信号ENBLが“H”レベルになると、レジスタ11
1 に“H”レベルのデータがシステムクロック信号CL
Kの立ち上がりに同期して書き込まれ、レジスタ111
のデータ出力Qが“H”レベルとなる。これにより、外
部ポート181 が“H”レベルとなるため、外部ポート
181 に接続されている制御装置191 が動作(ON)
し、仕事を始める(動作)。
Subsequently, when the data signal DATA of "H" level is input from the internal data bus 15 and the write enable signal ENBL becomes "H" level, the register 11
"H" level data in one system clock signal CL
Written in synchronization with the rising edge of K, register 11 1
Data output Q becomes "H" level. As a result, the external port 18 1 becomes "H" level, and the control device 19 1 connected to the external port 18 1 operates (ON).
And start work (motion).

【0082】次に、制御信号CONTが“H”レベルに
なると、タイマーカウンタ回路26が外部クロック信号
ECLKに同期してダウンカウントを開始し、セレクタ
回路25はこのタイマーカウンタ回路26のダウンカウ
ントのアンダーフロー発生時の割り込み信号UDFを選
択する。また、セレクタ回路13はレジスタ111 のデ
ータ出力Q1を選択し、セレクタ回路202 はレジスタ
111 のデータ出力Q1を選択する(動作)。
Next, when the control signal CONT becomes the "H" level, the timer counter circuit 26 starts down counting in synchronization with the external clock signal ECLK, and the selector circuit 25 causes the down counting of the timer counter circuit 26 to be under. Select the interrupt signal UDF when a flow occurs. Further, the selector circuit 13 selects the data output Q1 of the register 11 1 , and the selector circuit 20 2 selects the data output Q1 of the register 11 1 (operation).

【0083】タイマーカウンタ回路26において、アン
ダーフローが発生したときに、その割り込み信号UDF
がORゲート27を経てタイマーカウンタ回路26のセ
ット(S)入力ともなる。すると、タイマーカウンタ回
路26にはこのセット(S)入力によってタイマーリロ
ードレジスタ回路28の任意の設定値がセットされ、タ
イマーカウンタ回路26は再びダウンカウントを始め
る。なお、タイマーリロードレジスタ回路28には、内
部データバス15からのデータ信号DATAによって任
意の値が設定される。
When an underflow occurs in the timer counter circuit 26, the interrupt signal UDF for the underflow occurs.
Also serves as a set (S) input to the timer counter circuit 26 via the OR gate 27. Then, the timer counter circuit 26 sets an arbitrary set value of the timer reload register circuit 28 by this set (S) input, and the timer counter circuit 26 starts down counting again. An arbitrary value is set in the timer reload register circuit 28 by the data signal DATA from the internal data bus 15.

【0084】そして、レジスタ111 のデータ出力Q1
により、割り込み信号UDFに同期してレジスタ111
がリセットされ、レジスタ111 に“L”レベルのデー
タが書き込まれ、データ出力Q1が“L”レベルとな
る。これにより、外部ポート181 が“L”レベルとな
る。制御信号CONTが“H”レベルにあることから、
ORゲート21の出力信号OUT5が“H”レベルにな
るため、レジスタ112のイネーブル(E)入力も
“H”レベルとなる。
Then, the data output Q1 of the register 11 1
Causes the register 11 1 to synchronize with the interrupt signal UDF.
Are reset, the data of "L" level is written in the register 11 1 , and the data output Q1 becomes "L" level. As a result, the external port 18 1 becomes "L" level. Since the control signal CONT is at "H" level,
Since the output signal OUT5 of the OR gate 21 becomes "H" level, the enable (E) input of the register 11 2 also becomes "H" level.

【0085】このレジスタ112 のデータ(D)入力に
は、レジスタ111 のデータ出力Q1が与えられること
から、割り込み信号int1に同期してレジスタ111
に保持されていた“H”レベルのデータがレジスタ11
2 に書き込まれ、このレジスタ112 のデータ出力Q2
が“H”レベルとなる。これにより、外部ポート18 2
が“H”レベルとなり、外部ポート182 に接続されて
いる制御装置192 が動作し(ON)、仕事を開始する
(動作)。
This register 112Input data (D)
Is register 111Data output Q1 of
From the register 11 in synchronization with the interrupt signal int11
“H” level data held in the register 11
2Written to this register 112Data output Q2
Becomes "H" level. This allows the external port 18 2
Goes to "H" level and the external port 182Connected to
Control device 192Works (ON) and starts work
(motion).

【0086】再びタイマーカウンタ回路26がアンダー
フローを発生すると、制御信号CONTが“H”レベル
にあることから、ORゲート212 の出力信号OUT5
も“H”レベルにあり、したがってレジスタ112 のイ
ネーブル(E)入力も“H”レベルにある。レジスタ1
2 のデータ(D)入力には、レジスタ111 のデータ
出力Q1が与えられることから、アンダーフローによる
割り込み信号UDFに同期してレジスタ111 に保持さ
れていた“L”レベルのデータがレジスタ11 2 に書き
込まれるため、このレジスタ112 のデータ出力Q2が
“L”レベルとなる(動作)。
Again, the timer counter circuit 26 is under
When a flow is generated, the control signal CONT is at "H" level
Therefore, the OR gate 212Output signal OUT5
Is also at the “H” level, and therefore register 112Noi
The enable (E) input is also at "H" level. Register 1
12The data (D) input of1data from
Since output Q1 is given, underflow causes
Register 11 in synchronization with interrupt signal UDF1Held in
The “L” level data stored in the register 11 2Write on
This register 112Data output of Q2
It becomes "L" level (operation).

【0087】そして、上記の動作,を3段目以降の
回路が順次行うことにより、割り込み信号intが発生
するごとに各外部ポート181 ,182 ,……に接続さ
れている複数の制御装置191 ,192 ,……をシーケ
ンシャルに駆動(ON)し、仕事をさせていく。
The above operations are sequentially performed by the circuits of the third and subsequent stages, so that a plurality of control devices connected to the external ports 18 1 , 18 2 , ... Each time the interrupt signal int is generated. Sequentially drive (ON) 19 1 , 19 2 , ... to let them do their work.

【0088】上述したように、第5の実施形態に係るパ
ラレル入出力ポートにおいては、内部データバス15か
らのデータ信号DATAによって任意の値が設定される
タイマーリロードデータレジスタ回路28を設けるとと
もに、外部クロック信号ECLKに同期してダウンカウ
ントを行い、アンダーフローが発生するとタイマーリロ
ードデータレジスタ回路28の設定値がセットされるタ
イマーカウンタ回路26を設け、制御信号CONTが
“H”レベルのとき、ダウンカウントのアンダーフロー
発生時の割り込み信号UDFによって次段の制御装置が
動作(ON)し、仕事を開始するようにしたことによ
り、第4の実施形態の効果に加え、タイマーリロードデ
ータレジスタ回路28によってタイマーカウンタ回路2
6にセットされる任意の設定値ごとに各制御装置をシー
ケンシャルに駆動し、仕事を行わせることができるとい
う効果が得られる。
As described above, in the parallel input / output port according to the fifth embodiment, the timer reload data register circuit 28 in which an arbitrary value is set by the data signal DATA from the internal data bus 15 is provided and external A timer counter circuit 26 is provided which counts down in synchronization with the clock signal ECLK, and when an underflow occurs, the set value of the timer reload data register circuit 28 is set. When the control signal CONT is at "H" level, the counter counts down. The control signal of the next stage is activated (ON) by the interrupt signal UDF when the underflow occurs to start the work. In addition to the effect of the fourth embodiment, the timer reload data register circuit 28 causes the timer to reload. Counter circuit 2
There is an effect that each control device can be driven sequentially for each arbitrary set value set to 6 to perform work.

【0089】[0089]

【発明の効果】以上詳細に説明したように、本発明によ
れば、2段目以降のレジスタのデータ入力に接続されて
いるセレクタ回路が前段のレジスタのデータ出力を選択
するとともに、各制御装置が各々の仕事の終了時に発生
する割り込み信号により、前段のレジスタに保持されて
いるデータを次段のレジスタに書き込むようにしたこと
により、各制御装置から割り込み信号が発生されるごと
に前段のレジスタのデータ出力が次段のレジスタに順に
シフトされるため、CPUを介在させなくても処理でき
る。よって、各制御装置をシーケンシャルに駆動し仕事
をさせる場合、CPUの割り込み処理に要する時間だけ
シーケンシャル処理に要する時間を短縮できる。
As described above in detail, according to the present invention, the selector circuit connected to the data input of the register of the second and subsequent stages selects the data output of the register of the previous stage and each control device. By writing the data held in the register of the previous stage to the register of the next stage by the interrupt signal generated at the end of each work, the register of the previous stage is generated each time an interrupt signal is generated from each control device. Since the data output of 1 is sequentially shifted to the register of the next stage, it can be processed without intervention of the CPU. Therefore, when each control device is driven sequentially to perform work, the time required for the sequential processing can be shortened by the time required for the interrupt processing of the CPU.

【0090】また、本発明によれば、2段目以降のレジ
スタのデータ入力に接続されているセレクタ回路が前段
のレジスタのデータ出力を選択するとともに、一定時間
ごとに発生する割り込み信号により、前段のレジスタに
保持されているデータを次段のレジスタに書き込むよう
にしたことにより、一定の周期で前段のレジスタのデー
タ出力が次段のレジスタに順にシフトされるため、CP
Uを介在させなくても処理できる。よって、各制御装置
をシーケンシャルに駆動し仕事をさせる場合、CPUの
割り込み処理に要する時間だけシーケンシャル処理に要
する時間を短縮できる。
Further, according to the present invention, the selector circuit connected to the data input of the register of the second and subsequent stages selects the data output of the register of the preceding stage, and the interrupt signal generated at a constant time causes the preceding stage to generate data. By writing the data held in the register of the next stage to the register of the next stage, the data output of the register of the previous stage is sequentially shifted to the register of the next stage at a constant cycle.
It can be processed without U. Therefore, when each control device is driven sequentially to perform work, the time required for the sequential processing can be shortened by the time required for the interrupt processing of the CPU.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の第1の実施形態を示すブロック図であ
る。
FIG. 1 is a block diagram showing a first embodiment of the present invention.

【図2】第1の実施形態に係る波形図である。FIG. 2 is a waveform diagram according to the first embodiment.

【図3】本発明の第2の実施形態を示すブロック図であ
る。
FIG. 3 is a block diagram showing a second embodiment of the present invention.

【図4】第2の実施形態に係る波形図である。FIG. 4 is a waveform diagram according to the second embodiment.

【図5】本発明の第3の実施形態を示すブロック図であ
る。
FIG. 5 is a block diagram showing a third embodiment of the present invention.

【図6】第3の実施形態に係る波形図(その1)であ
る。
FIG. 6 is a waveform diagram (part 1) according to the third embodiment.

【図7】第3の実施形態に係る波形図(その2)であ
る。
FIG. 7 is a waveform diagram (No. 2) according to the third embodiment.

【図8】本発明の第4の実施形態を示すブロック図であ
る。
FIG. 8 is a block diagram showing a fourth embodiment of the present invention.

【図9】第4の実施形態に係る波形図である。FIG. 9 is a waveform diagram according to the fourth embodiment.

【図10】本発明の第5の実施形態を示すブロック図で
ある。
FIG. 10 is a block diagram showing a fifth embodiment of the present invention.

【図11】第5の実施形態に係る波形図である。FIG. 11 is a waveform diagram according to the fifth embodiment.

【図12】従来例を示すブロック図である。FIG. 12 is a block diagram showing a conventional example.

【図13】従来例に係る波形図である。FIG. 13 is a waveform diagram according to a conventional example.

【符号の説明】[Explanation of symbols]

111 ,112 ,……,11n レジスタ 12,13,22,25 セレクタ回路 171 ,172 ,……,17n 出力バッファ 181 ,182 ,……,18n 外部ポート 191 ,192 ,……,19n 制御装置 201 ,202 ,……,20n セレクタ回路 24 制御レジスタ 26 タイマーカウンタ回路 28 タイマーリロードデータレジスタ回路11 1 , 11 2 , ..., 11 n registers 12, 13, 22, 25 Selector circuits 17 1 , 17 2 , ..., 17 n output buffers 18 1 , 18 2 , ..., 18 n External port 19 1 , 19 2 , ..., 19 n Control device 20 1 , 20 2 , ..., 20 n Selector circuit 24 Control register 26 Timer counter circuit 28 Timer reload data register circuit

Claims (5)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 複数の外部ポートに接続されかつ各々仕
事が終了したときに割り込み信号を発生する複数の制御
装置を駆動制御するパラレル入出力ポートであって、 データバスからデータ入力として与えられるデータ信号
を格納する初段のレジスタおよび初段のレジスタに対し
て並列に配された2段目以降の複数のレジスタからなる
レジスタ群と、 システムリセット信号および前記初段のレジスタのデー
タ出力信号を2入力とし、所定の制御信号に応じていず
れか一方を選択して前記初段のレジスタのリセット入力
とする第1のセレクタ回路と、 前記複数の制御装置の各割り込み信号を入力とするOR
ゲートと、 システムクロック信号および前記ORゲートの出力信号
を2入力とし、前記制御信号に応じていずれか一方を選
択して前記初段のレジスタおよび前記複数のレジスタの
各クロック入力とする第2のセレクタ回路と、 前記データ信号および前記レジスタ群における前段のレ
ジスタのデータ出力信号を2入力とし、前記制御信号に
応じていずれか一方を前記複数のレジスタのうち対応す
るレジスタのデータ入力とする複数の第3のセレクタ回
路とを備えたことを特徴とするパラレル入出力ポート。
1. A parallel input / output port, which is connected to a plurality of external ports and drives and controls a plurality of control devices that generate an interrupt signal when each work is completed, and data supplied from a data bus as a data input. A register group including a first-stage register for storing signals and a plurality of registers of the second and subsequent stages arranged in parallel to the first-stage register, a system reset signal, and a data output signal of the first-stage register as two inputs, A first selector circuit that selects either one of them according to a predetermined control signal and uses it as a reset input of the register in the first stage, and an OR that inputs each interrupt signal of the plurality of control devices
A gate, a system clock signal, and an output signal of the OR gate as two inputs, and a second selector that selects one of them as a clock input of the register of the first stage and the plurality of registers according to the control signal. A circuit, and the data signal and the data output signal of the previous register in the register group are two inputs, and one of them corresponds to one of the plurality of registers according to the control signal .
Parallel input / output port, comprising: a plurality of third selector circuits that are used as data inputs to registers .
【請求項2】 前記データ信号および前記レジスタ群に
おける最終段のレジスタのデータ出力信号を2入力と
し、前記制御信号に応じていずれか一方を前記初段のレ
ジスタのデータ入力とする第4のセレクタ回路を備えた
ことを特徴とする請求項1記載のパラレル入出力ポー
ト。
2. A fourth selector circuit in which the data signal and the data output signal of the final stage register in the register group are two inputs, and one of them is the data input of the first stage register in accordance with the control signal. The parallel input / output port according to claim 1, further comprising:
【請求項3】 データ入力に基づいて前記複数の制御装
置に対する制御形態を示す複数ビットのデータを出力す
る制御レジスタを備え、 前記複数の第3のセレクタ回路は、前記データ信号およ
び前記レジスタ群における他の段のレジスタのデータ出
力信号を入力とし、前記制御レジスタのデータ出力信号
に基づいて複数入力のうちの1つを選択して前記複数の
レジスタの各データ入力とすることを特徴とする請求項
1記載のパラレル入出力ポート。
3. A control register for outputting a plurality of bits of data indicating a control mode for the plurality of control devices based on a data input, wherein the plurality of third selector circuits include the data signal and the register group. The data output signal of the register of another stage is input, and one of the plurality of inputs is selected based on the data output signal of the control register to be each data input of the plurality of registers. claim 1 Symbol placement of the parallel input and output ports.
【請求項4】 複数の外部ポートに接続された複数の制
御装置を駆動制御するパラレル入出力ポートであって、 データバスからデータ入力として与えられるデータ信号
を格納する初段のレジスタおよび初段のレジスタに対し
て並列に配された2段目以降の複数のレジスタからなる
レジスタ群と、 システムリセット信号および前記初段のレジスタのデー
タ出力信号を2入力とし、所定の制御信号に応じていず
れか一方を選択して前記初段のレジスタのリセット入力
とする第1のセレクタ回路と、 一定時間ごとに割り込み信号を発生する割り込み信号発
生回路と、 システムクロック信号および前記割り込み信号を2入力
とし、前記制御信号に応じていずれか一方を選択して前
記初段のレジスタおよび前記複数のレジスタの各クロッ
ク入力とする第2のセレクタ回路と、 前記データ信号および前記レジスタ群における前段のレ
ジスタのデータ出力信号を2入力とし、前記制御信号に
応じていずれか一方を前記複数のレジスタのうち対応す
るレジスタのデータ入力とする複数の第3のセレクタ回
路とを備えたことを特徴とするパラレル入出力ポート。
4. A parallel input / output port for driving and controlling a plurality of control devices connected to a plurality of external ports, wherein a first-stage register and a first-stage register for storing a data signal supplied as a data input from a data bus are provided. On the other hand, a register group consisting of a plurality of registers of the second and subsequent stages arranged in parallel with each other, a system reset signal and a data output signal of the register of the first stage are set as two inputs, and one of them is selected according to a predetermined control signal. Then, a first selector circuit which is used as a reset input of the register of the first stage, an interrupt signal generation circuit which generates an interrupt signal at regular time intervals, a system clock signal and the interrupt signal are input as two inputs, and depending on the control signal. One of them to be used as each clock input of the register in the first stage and the plurality of registers. And second selector circuit, wherein the 2 inputs the data output signal of the previous register in the data signal and the register group corresponding to one of either one of said plurality registers in response to said control signal
Parallel input / output port, comprising: a plurality of third selector circuits that are used as data inputs to registers .
【請求項5】 前記割り込み信号発生回路における一定
時間を任意の時間に設定する時間設定回路を備えたこと
を特徴とする請求項4記載のパラレル入出力ポート。
5. The parallel input / output port according to claim 4, further comprising a time setting circuit that sets a fixed time in the interrupt signal generation circuit to an arbitrary time.
JP28290795A 1995-10-31 1995-10-31 Parallel input / output port Expired - Fee Related JP3534915B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP28290795A JP3534915B2 (en) 1995-10-31 1995-10-31 Parallel input / output port

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP28290795A JP3534915B2 (en) 1995-10-31 1995-10-31 Parallel input / output port

Publications (2)

Publication Number Publication Date
JPH09128318A JPH09128318A (en) 1997-05-16
JP3534915B2 true JP3534915B2 (en) 2004-06-07

Family

ID=17658661

Family Applications (1)

Application Number Title Priority Date Filing Date
JP28290795A Expired - Fee Related JP3534915B2 (en) 1995-10-31 1995-10-31 Parallel input / output port

Country Status (1)

Country Link
JP (1) JP3534915B2 (en)

Also Published As

Publication number Publication date
JPH09128318A (en) 1997-05-16

Similar Documents

Publication Publication Date Title
TW200830769A (en) Packet based ID generation for serially interconnected devices
JPH0573697A (en) Microcomputer
JPH08137430A (en) Semiconductor integrated circuit
JPH1083303A (en) Electronic circuit and method for using coprocessor
JP3534915B2 (en) Parallel input / output port
JPH0552989B2 (en)
JP2003281074A (en) Direct access memory device
JP2009505302A (en) Waveform generation method and apparatus using a microcontroller
JPS60128505A (en) Programmable controller
JPS60160461A (en) Data transfer control circuit
JPS5935533B2 (en) Asynchronous numerical control counter
US5826063A (en) Apparatus and method for programming the setup, command and recovery time periods within a transaction cycle
JPH02226454A (en) Computer system and transfer of data
JPS59178667A (en) Memory device
JPH0675902A (en) Dma transfer circuit
JP2004110705A (en) Data transfer device
JPS628214A (en) System clock controller
JPH02140852A (en) Dma transfer controller
JPH0560136B2 (en)
JPH07249983A (en) Loading system for gate array capable of field programming
JP2645462B2 (en) Data processing system
JP2661741B2 (en) Semiconductor memory circuit
JPH0254621A (en) Ring counter
JPH0370060A (en) Data transfer device
JPH0720091B2 (en) Data buffer circuit

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20031216

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040216

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040310

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

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20090319

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20090319

Year of fee payment: 5

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

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

Free format text: PAYMENT UNTIL: 20100319

Year of fee payment: 6

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees