JPH0150939B2 - - Google Patents
Info
- Publication number
- JPH0150939B2 JPH0150939B2 JP9199985A JP9199985A JPH0150939B2 JP H0150939 B2 JPH0150939 B2 JP H0150939B2 JP 9199985 A JP9199985 A JP 9199985A JP 9199985 A JP9199985 A JP 9199985A JP H0150939 B2 JPH0150939 B2 JP H0150939B2
- Authority
- JP
- Japan
- Prior art keywords
- peripheral device
- processor
- interrupt
- line
- connection
- 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
Links
- 230000002093 peripheral effect Effects 0.000 claims description 52
- 238000000034 method Methods 0.000 claims description 11
- 238000012790 confirmation Methods 0.000 claims description 7
- 238000010586 diagram Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 5
- 230000005540 biological transmission Effects 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 238000007796 conventional method Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000007257 malfunction Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
Description
【発明の詳細な説明】
〔概要〕
プロセツサからアクセス可能な周辺装置を有す
る計算機システムにおいては、通常上記プロセツ
サからのシステムリセツト信号(電源投入、操作
卓のキー操作等による)によつて、システム全体
をクリアするインターフエース線と、該周辺装置
側からプロセツサに対して割り込みを行う為のイ
ンタフエース線があることに着目し、該周辺装置
側に、上記システムリセツト信号によつてセツト
されるフラグビツトと、該信号によつて起動され
る割り込み発生回路とを設けることにより、プロ
セツサ側では、上記割り込み発生回路からの割り
込み信号によつて起動された割り込み処理で、上
記フラグビツトをアクセスして、当該周辺装置の
接続を認識できるようにしたものである。[Detailed Description of the Invention] [Summary] In a computer system that has peripheral devices that can be accessed from a processor, a system reset signal from the processor (by turning on the power, operating a key on a console, etc.) normally resets the entire system. Focusing on the fact that there is an interface line for clearing the system reset signal and an interface line for interrupting the processor from the peripheral device side, it is possible to set the flag bit set by the system reset signal on the peripheral device side. , and an interrupt generation circuit that is activated by the signal, the processor side can access the flag bit in the interrupt processing that is activated by the interrupt signal from the interrupt generation circuit and output the peripheral device. It is designed to recognize the connections between
本発明は、プロセツサからアクセス可能な周辺
装置を有する計算機システムにおいて、該周辺装
置がプロセツサに接続されているかどうかを確認
する為の装置接続確認方式に関する。
The present invention relates to a device connection confirmation method for confirming whether a peripheral device is connected to a processor in a computer system having a peripheral device accessible from a processor.
例えば、マイクロプロセツサシステム等の計算
機システムにおいては、最近の計算機システムの
高性能化、高機能化に伴い、周辺のハードウエア
とプロセツサとのインタフエース信号が増加する
動向にある。 For example, in computer systems such as microprocessor systems, the number of interface signals between peripheral hardware and processors is increasing as computer systems have become more sophisticated and functional.
具体例を挙げると、データバスの並列伝送化、
制御信号線、或いは割り込み信号線の個別伝送化
等によるインタフエース線の増加がある。 Specific examples include parallel data bus transmission,
The number of interface lines has increased due to individual transmission of control signal lines or interrupt signal lines.
このようなプロセツサと周辺装置とのインタフ
エース線の増加は、該伝送路の線長等を考えると
雑音対策や、コスト面でデメリツトをもたらす要
因となり、該計算機システムのパフオーマンスを
低下させる危険がある。 This increase in the number of interface lines between processors and peripheral devices has disadvantages in terms of noise countermeasures and costs, considering the line length of the transmission path, and there is a risk of reducing the performance of the computer system. .
然して、計算機システムにおいては、1つのプ
ロセツサに対して、複数個の周辺装置が接続され
るのが普通であり、これらの周辺装置の接続を確
認す場合には、上記のような事情から、プロセツ
サと周辺装置との間のインタフエース線を増加さ
せないで確認することが必要となる。 However, in computer systems, it is common for multiple peripheral devices to be connected to one processor, and when checking the connections of these peripheral devices, it is necessary to It is necessary to confirm without increasing the number of interface lines between the device and peripheral devices.
第3図は、計算機システム、例えばマイクロプ
ロセツサシステムの一般的な構成例をブロツク図
で示したもので、周辺装置2は本体装置1内のプ
ロセツサ11からデータバス12を通して接続さ
れている。
FIG. 3 is a block diagram showing a typical configuration of a computer system, such as a microprocessor system, in which a peripheral device 2 is connected to a processor 11 in the main device 1 through a data bus 12.
ここで、は本体装置1での電源投入等によつ
て起動されるリセツト回路14からのシステムリ
セツト信号線で、該信号線が付勢されることによ
り、該計算機システム全体のリセツトが行われ
る。又、は周辺装置2から本体装置1に割に込
みを行う為の割り込み信号線である。 Here, is a system reset signal line from the reset circuit 14 that is activated when the main unit 1 is powered on, etc. When this signal line is energized, the entire computer system is reset. Also, is an interrupt signal line for interrupting the main device 1 from the peripheral device 2.
このような構成の計算機システムにおいて、本
体装置1が周辺装置2の接続を確認する方法とし
て、従来取られていた方法には、例えば、
(1) 周辺装置2から本体装置1に対して、接続指
示線を設け、周辺装置2側において、該信号
線を論理“0”、又は論理“1”に設定するこ
とにより、本体装置1においては、該周辺装置
2が接続されると、本体装置1側の制御レジス
タ14が“0”、又は“1”に設定されること
を、プロセツサ11がデータバス12を通して
認識することによつて、当該周辺装置2の接続
を確認する方法。 In a computer system with such a configuration, conventional methods for the main device 1 to check the connection of the peripheral device 2 include (1) the connection from the peripheral device 2 to the main device 1; By providing an instruction line and setting the signal line to logic "0" or logic "1" on the peripheral device 2 side, when the peripheral device 2 is connected to the main device 1, the main device 1 A method of confirming the connection of the peripheral device 2 by having the processor 11 recognize through the data bus 12 that the control register 14 on the side is set to "0" or "1".
(2) 周辺装置2側に設けられているメモリ23に
対して、本体装置1側のプロセツサ11からデ
ータバス12を通して、特定のデータをライト
した後リードし、該リード結果をライトデータ
と比較することによつて、当該周辺装置2の接
続を確認する方法。(2) After writing specific data to the memory 23 provided on the peripheral device 2 side through the data bus 12 from the processor 11 on the main device 1 side, the read result is compared with the write data. A method of confirming the connection of the peripheral device 2, particularly by:
がある。There is.
このような従来の装置接続確認方式において
は、(1)の方式では、周辺装置2と本体装置1との
間に、専用の接続確認の為のインターフエース線
を設ける必要があり、前述のような雑音対策等
を考慮すると、当該インターフエース線に対す
るハードウエアの増加と、制御が複雑となる問題
があつた。
In such conventional device connection confirmation methods, in method (1), it is necessary to provide a dedicated interface line between the peripheral device 2 and the main device 1 for connection confirmation, as described above. Considering noise countermeasures, etc., there is a problem in that the hardware for the interface line increases and the control becomes complicated.
又、(2)のデータバス12を通して、周辺装置2
内のメモリに特定のデータをライト、リードする
方式においては、当該周辺装置2が接続されてい
ない状態では、該データバスライン12が不安定
となる為、ライト、リードすると誤動作する危険
があり、プルアツプ抵抗の付加等のハードウエア
が増加する問題があつた。 Also, through the data bus 12 in (2), the peripheral device 2
In the method of writing and reading specific data in the internal memory, if the peripheral device 2 is not connected, the data bus line 12 becomes unstable, so there is a risk of malfunction when writing or reading. There was a problem with the increase in hardware such as the addition of pull-up resistors.
本発明は上記従来の欠点に鑑み、本体装置1と
周辺装置2との間には、従来からシステムリセツ
ト線と割り込み線と、データバス12と言た
データ授受機能が備えられていることに着目し、
新たなインタフエース線を設けることなく、又デ
ータバス12にプルアツプ抵抗を付加することな
く、本体装置1から周辺装置2の接続を確認でき
る方法を提供することを目的とするものである。 In view of the above conventional drawbacks, the present invention focuses on the fact that data exchange functions such as a system reset line, an interrupt line, and a data bus 12 are conventionally provided between the main unit 1 and the peripheral device 2. death,
The purpose of this invention is to provide a method that allows the connection of the peripheral device 2 from the main device 1 to be confirmed without providing a new interface line or adding a pull-up resistor to the data bus 12.
第1図は本発明の周辺装置確認方式の原理ブロ
ツク図であつて、当該計算機システムの本体装置
1側で、電源投入等によつて生成されるシステム
リセツト信号によつて、アクセスされる割込み
発生回路22とフラグビツト21とを、周辺装置
2側に設け、該周辺装置2からの割り込み信号
によつて起動された本体装置1側での割り込み処
理によつて、上記フラグビツト21が“オン”に
なつていることを認識することにより、当該周辺
装置2の接続を確認できるように構成する。
FIG. 1 is a principle block diagram of the peripheral device confirmation method of the present invention, in which an interrupt is accessed on the main unit 1 side of the computer system by a system reset signal generated when the power is turned on, etc. A circuit 22 and a flag bit 21 are provided on the peripheral device 2 side, and the flag bit 21 is turned "on" by interrupt processing on the main device 1 side activated by an interrupt signal from the peripheral device 2. The configuration is such that the connection of the peripheral device 2 can be confirmed by recognizing that the peripheral device 2 is connected.
即ち、本発明によれば、プロセツサからアクセ
ス可能な周辺装置を有する計算機システムにおい
ては、通常上記プロセツサからのシステムリセツ
ト信号(電源投入、操作卓のキー操作等による)
によつて、システム全体をクリアするインタフエ
ース線と、該周辺装置側からプロセツサに対して
割り込みを行う為のインタフエース線があること
に着目し、該周辺装置側に、上記システムリセツ
ト信号によつてセツトされるフラグビツトと、該
信号によつて起動される割り込み発生回路とを設
けることにより、プロセツサ側では、上記割り込
み発生回路からの割り込み信号によつて起動され
た割り込み処理で、上記フラグビツトをアクセス
して、当該周辺装置の接続を認識できるようにし
たものであるので、新たに装置接続確認の為のイ
ンタフエース線や、割り込み要求線を設けること
なく、当該計算機システムが本来備えているシス
テムリセツト、割り込み機能をその侭使用するだ
けで、該周辺装置の接続が確認できる効果があ
る。
That is, according to the present invention, in a computer system having a peripheral device that can be accessed from a processor, a system reset signal (by turning on the power, operating a key on a console, etc.) from the processor is normally used.
By focusing on the fact that there is an interface line for clearing the entire system and an interface line for interrupting the processor from the peripheral device side, it is possible to make the system reset signal on the peripheral device side. By providing a flag bit that is set by the processor and an interrupt generation circuit that is activated by the signal, the processor side can access the flag bit in the interrupt processing that is activated by the interrupt signal from the interrupt generation circuit. This allows the connection of the peripheral device to be recognized, so there is no need to install a new interface line or interrupt request line to confirm the connection of the device, and the system reset function that the computer system is originally equipped with can be used. , the connection of the peripheral device can be confirmed simply by using the interrupt function.
以下本発明の実施例を図面によつて詳述する。
第2図は本発明の一実施例をブロツク図で示した
ものであつて、第1図、第3図と同じ符号は同じ
対象物を示しており、周辺装置2内に設けられて
いる割り込み発生回路22と、フラグビツト21
が本発明を実施するのに必要な機能ブロツクであ
る。
Embodiments of the present invention will be described in detail below with reference to the drawings.
FIG. 2 is a block diagram showing one embodiment of the present invention, in which the same reference numerals as in FIGS. 1 and 3 indicate the same objects. Generation circuit 22 and flag bit 21
are the functional blocks necessary to implement the present invention.
先ず、本計算機システムの本体装置1側におい
て、電源投入、或いは、図示していない操作卓の
特定キーの操作等によつて、システムリセツト動
作が行われると、リセツト回路14が起動され、
システムリセツト線が付勢されることにより、
本体装置1、及び周辺装置2に対する初期リセツ
トが行われる。 First, when a system reset operation is performed on the main unit 1 side of the computer system by turning on the power or operating a specific key on an operation console (not shown), the reset circuit 14 is activated.
By energizing the system reset line,
An initial reset is performed on the main unit 1 and the peripheral device 2.
以後、プロセツサ11はデータバス12を通し
て読み取り専用メモリ(ROM)13からプログ
ラム、データを読み取り、実行することにより、
種々のデータ処理が行われる。 Thereafter, the processor 11 reads programs and data from the read-only memory (ROM) 13 through the data bus 12 and executes them.
Various data processing is performed.
本発明を実施して、本体装置1が周辺装置2の
接続を確認する場合、本体装置1からの上記シス
テムリセツト信号を受信した周辺装置2におい
ては、フラグビツト21がセツトされると共に、
該計算機システム全体のセツトアツプ時間経過
後、割り込み発生回路22から、本体装置1に対
して、既存の割り込み要求線を通して、割り込
み信号を発行する。 When the present invention is implemented and the main device 1 confirms the connection of the peripheral device 2, the flag bit 21 is set in the peripheral device 2 that has received the system reset signal from the main device 1, and
After the setup time for the entire computer system has elapsed, the interrupt generation circuit 22 issues an interrupt signal to the main unit 1 through the existing interrupt request line.
プロセツサ11は、該割り込み要求線からの
割り込み信号によつて、割り込み処理ルーチンを
実行し、該ルーチンによつて、データバス12を
通して、上記フラグビツト21の内容を読り取
り、該フラグビツト21が“オン”にセツトされ
ていれば、当該周辺装置2が本体装置1に接続さ
れているものと認識した後、必要に応じて当該フ
ラグビツト21をリセツトするように動作する。 The processor 11 executes an interrupt processing routine in response to an interrupt signal from the interrupt request line, reads the contents of the flag bit 21 through the data bus 12, and sets the flag bit 21 to "on". ", the peripheral device 2 is recognized as being connected to the main device 1, and then the flag bit 21 is reset as necessary.
上記割り込み処理で、該フラグビツト21が、
“オフ”の侭であると、周辺装置2からの通常の
割り込み要求と認識され、当該割り込み処理を実
行する。 In the above interrupt processing, the flag bit 21 becomes
If it is in the "off" state, it is recognized as a normal interrupt request from the peripheral device 2, and the corresponding interrupt processing is executed.
上記、システムリセツト、及び割り込み要求
線は、当該計算機システムが本来持つているイ
ンタフエース線であつて、本発明は、該既存のイ
ンタフエース機能をその侭用いて、該周辺装置2
の接続を確認できるようにした所に特徴がある。 The system reset and interrupt request lines mentioned above are interface lines that the computer system originally has, and the present invention utilizes the existing interface functions to connect the peripheral device 2.
The feature is that the connection can be confirmed.
以上、詳細に説明したように、本発明の装置接
続確認方式は、プロセツサからアクセス可能な周
辺装置を有する計算機システムにおいては、通常
上記プロセツサからのシステムリセツト信号(電
源投入、操作卓のキー操作等による)によつて、
システム全体をクリアするインタフエース線と、
該周辺装置側からプロセツサに対して割り込みを
行う為のインタフエース線があることに着目し、
該周辺装置側に、上記システムリセツト信号によ
つてセツトされるフラグビツトと、該信号によつ
て起動される割り込み発生回路とを設けることに
より、プロセツサ側では、上記割り込み発生回路
からの割り込み信号によつて起動された割り込み
処理で、上記フラグビツトをアクセスして、当該
周辺装置の接続を認識できるようにしたものであ
るので、新たに装置接続確認の為のインターフエ
ース線や、割り込み要求線を設けることなく、当
該計算機システムが本来備えているシステムリセ
ツト、割り込み機能をその侭使用するだけで、該
周辺装置の接続が確認できる効果がある。
As explained above in detail, the device connection confirmation method of the present invention normally uses a system reset signal (power-on, key operation on a console, etc.) from the processor in a computer system that has peripheral devices that can be accessed from the processor. ) by
An interface line that clears the entire system,
Focusing on the fact that there is an interface line for interrupting the processor from the peripheral device side,
By providing the peripheral device with a flag bit that is set by the system reset signal and an interrupt generation circuit that is activated by the signal, the processor side can receive the interrupt signal from the interrupt generation circuit. The flag bits mentioned above are accessed in the interrupt processing started by the CPU, so that the connection of the peripheral device can be recognized. Therefore, it is necessary to provide a new interface line and interrupt request line to confirm the device connection. Instead, the connection of the peripheral device can be confirmed simply by using the system reset and interrupt functions that the computer system is originally provided with.
第1図は本発明の周辺装置確認方式の原理ブロ
ツク図、第2図は本発明の一実施例をブロツク図
で示した図、第3図はマイクロプロセツサシステ
ムの一般的な構成例を示した図、である。
図面において、1は本体装置、11はプロセツ
サ、12はデータバス、13は読み取り専用メモ
リ(ROM)、14はリセツト回路、15は制御
レジスタ、2は周辺装置、21はフラグビツト、
22は割り込み発生回路、23はメモリ、はシ
ステムリセツト線、は割り込み要求線、は装
置接続確認の為のインタフエース線、をそれぞれ
示す。
FIG. 1 is a block diagram of the principle of the peripheral device confirmation method of the present invention, FIG. 2 is a block diagram of an embodiment of the present invention, and FIG. 3 is a general configuration example of a microprocessor system. This is a diagram. In the drawing, 1 is a main unit, 11 is a processor, 12 is a data bus, 13 is a read-only memory (ROM), 14 is a reset circuit, 15 is a control register, 2 is a peripheral device, 21 is a flag bit,
22 is an interrupt generation circuit, 23 is a memory, 2 is a system reset line, 2 is an interrupt request line, and 2 is an interface line for confirming device connection.
Claims (1)
線、割り込み線、データバス12を通して接
続され、該プロセツサからアクセス可能な複数個
の周辺装置2とからなる計算機システムにおい
て、 該周辺装置2内に、少なくとも上記プロセツサ
11からのシステムリセツト線が付勢されるこ
とによつてセツトされるフラグビツト21と、該
システムリセツト線が付勢されることによつ
て、上記プロセツサ11に対する割り込み信号を
生成する割り込み発生回路22とを設け、 該プロセツサ11は、上記割り込み信号によ
つて起動された割り込み処理によつて、上記周辺
装置2のフラグビツト21を読み取り、当該周辺
装置2の接続を認識できるようにしたことを特徴
とする装置接続確認方式。[Scope of Claims] 1. In a computer system comprising one processor 11 and a plurality of peripheral devices 2 connected through a system reset line, an interrupt line, and a data bus 12 and accessible from the processor, the peripheral devices 2 A flag bit 21 is set when at least the system reset line from the processor 11 is activated, and an interrupt signal for the processor 11 is generated when the system reset line is activated. The processor 11 reads the flag bit 21 of the peripheral device 2 and recognizes the connection of the peripheral device 2 by the interrupt processing activated by the interrupt signal. A device connection confirmation method characterized by:
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP9199985A JPS61249160A (en) | 1985-04-27 | 1985-04-27 | Device connecting confirming system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP9199985A JPS61249160A (en) | 1985-04-27 | 1985-04-27 | Device connecting confirming system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS61249160A JPS61249160A (en) | 1986-11-06 |
| JPH0150939B2 true JPH0150939B2 (en) | 1989-11-01 |
Family
ID=14042114
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP9199985A Granted JPS61249160A (en) | 1985-04-27 | 1985-04-27 | Device connecting confirming system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS61249160A (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH06348537A (en) * | 1993-06-11 | 1994-12-22 | Nec Corp | Diagnostic system for input/output device |
-
1985
- 1985-04-27 JP JP9199985A patent/JPS61249160A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS61249160A (en) | 1986-11-06 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5802269A (en) | Method and apparatus for power management of distributed direct memory access (DDMA) devices | |
| US6381665B2 (en) | Mechanisms for converting interrupt request signals on address and data lines to interrupt message signals | |
| US4890219A (en) | Mode conversion of computer commands | |
| US5293384A (en) | Microprocessor bus interface protocol analyzer | |
| EP0104545A2 (en) | Input and output port control unit | |
| JPH0150939B2 (en) | ||
| JPH0644209B2 (en) | Bus converter | |
| JP2640139B2 (en) | Memory card | |
| JP2725680B2 (en) | Bus error detection circuit | |
| JP2560968B2 (en) | Computer system | |
| JPS61121146A (en) | Memory protection method | |
| JPH03171332A (en) | Abnormal access detecting system | |
| JPS62172439A (en) | Detecting system for unmounted printed board | |
| JPS624746B2 (en) | ||
| JPS6299846A (en) | Collecting system for sense data on input and output device | |
| JPS61220054A (en) | Confirmation system for constitution of information processing system | |
| JPH03209552A (en) | Inter-cpu interface device | |
| JPS6359181B2 (en) | ||
| JPS61184645A (en) | Interruption control system | |
| JPS63220345A (en) | input/output device | |
| JPH05216806A (en) | Input device control device | |
| JPS63163942A (en) | Memory protecting circuit | |
| JPS5829062A (en) | Microcomputer system | |
| JPH02238547A (en) | Interruption control system | |
| JPH01261759A (en) | Computer system |