JPS58114118A - Device controlling system - Google Patents

Device controlling system

Info

Publication number
JPS58114118A
JPS58114118A JP21401081A JP21401081A JPS58114118A JP S58114118 A JPS58114118 A JP S58114118A JP 21401081 A JP21401081 A JP 21401081A JP 21401081 A JP21401081 A JP 21401081A JP S58114118 A JPS58114118 A JP S58114118A
Authority
JP
Japan
Prior art keywords
register
processing
status
timer
mpu
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.)
Pending
Application number
JP21401081A
Other languages
Japanese (ja)
Inventor
Toshiaki Ii
俊明 井比
Noboru Yamamoto
昇 山本
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP21401081A priority Critical patent/JPS58114118A/en
Publication of JPS58114118A publication Critical patent/JPS58114118A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/10Program control for peripheral devices
    • G06F13/12Program control for peripheral devices using hardware independent of the central processor, e.g. channel or peripheral processor
    • G06F13/122Program control for peripheral devices using hardware independent of the central processor, e.g. channel or peripheral processor where hardware performs an I/O function other than control of data transfer

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)

Abstract

PURPOSE:To reduce the number of steps to monitor a device efficiently, by providing a register, where different status data are set in accordance with processing conditions of the device, and a timer which monitors the time when a bit of this register has a prescribed polarity. CONSTITUTION:Status data stored in status registers REG of channels #0-#n are read through a bus (b) by a processing device MPU. Different processing states of each of channels #0-#n are indicated by respective bits constituting the register REG. The status signal read by the device MPU is set to a monitor register REG2, and respective bits of the register REG2 are monitored by timers T1-Ti. Polarities of the register REG2 are monitored by timers Tl-Ti to discriminate whether data indicates the ready state or not; and if the device is not ready, the device is restarted, and an overflow signal is set to an allocation register REG3 when a prescribed value is counted.

Description

【発明の詳細な説明】 く技術分野〉 本発明は、デバイスの処理状況を監視し、デバイスが空
状態所謂レディー状態になりた場合に、コマンドをデバ
イスに与えたり、デバイスに接続されるバスの占有(グ
を解除する咎デバイス制御方弐に関するものである。
[Detailed Description of the Invention] [Technical Field] The present invention monitors the processing status of a device, and when the device is in an empty state, a so-called ready state, a command is given to the device, and a bus connected to the device is This is related to device control methods for releasing occupancy.

〈従来技術〉 ラインで接続されたシステムにおいてバス制御装置、或
はMPUがチャ゛ネルに処理を依頼し、チャネルから発
生されるビジー信号、或は、終了応答を監視し、処理終
了時点で、次の処理を依頼するというデバイス制御手法
が知られている。
<Prior art> In a line-connected system, a bus control device or MPU requests processing from a channel, monitors a busy signal or termination response generated from the channel, and at the end of processing, A device control method that requests the next process is known.

しかるにこうした手法においては、MPUがデバイスの
ステータスを読込み、(以下リードと称す)デバイスが
空状態所謂レディ状態にあるか否か判定し、レディ状態
でなけれに再度ループして、デバイスのステータスをリ
ードしていると、デバイスに障害が生じた場合、MPU
′のプ瞠グラムは無限ループに落ちる。
However, in such a method, the MPU reads the device status (hereinafter referred to as reading), determines whether the device is in an empty state, so-called ready state, and if it is not in the ready state, loops again and reads the device status. If the device fails, the MPU
′ program falls into an infinite loop.

このために一般にデバイスに対し、処理を依頼した時点
で、特定のタイマをセットし、以後デバイスのステータ
スを判定するルーチン中で、タイムアウトか否か判定し
、レディ状態に遷移し九時、タイマをオフにする手法を
採用し無限ループに落ちるのを防止するようkしている
To do this, generally, when a device is requested to perform a process, a specific timer is set, and in the routine that determines the status of the device, it is determined whether or not it has timed out, the device transitions to the ready state, and at 9 o'clock, the timer is set. A method of turning it off is adopted to prevent it from falling into an infinite loop.

或は、ステータスをリードした日数をカウントするソフ
トウェアカウンタを用意し、処理依頼時当該カウンタを
クリアしておき、ステータスをり値 一ドする毎に歩進させ、所定−を超えた際にエラーとし
て工2−処理を行う手法も知られている。
Alternatively, prepare a software counter that counts the number of days that the status has been read, clear the counter when requesting processing, increment the status every time the status is incremented, and issue an error when the status exceeds a predetermined value. Technique 2-Processing techniques are also known.

しかしながら、上述し九従来の手法においては、プログ
ラムによシ、タイマ、或はカウンタの制御をする必要が
あ)、プログラムのステップし、が多いという欠点を有
している。
However, the nine conventional methods described above have the disadvantage that they require a program to control a clock, timer, or counter, and require many steps in the program.

〈本発明の目的〉 本発明の目的は上述した従来の欠点を解消するべく、ス
テップ数を少なくし、効率良く、デバイスを監視し得る
デバイス制御方式を提供するにある0 〈発明の構成〉 上記目的を達成する丸めに、本発明においては、デバイ
スのステータスデータが一旦セットされるだけで、自動
的にタイマ監視が始まるハードウェアのタイマを設けた
ものであシ、以下実施例により詳述する。
<Object of the present invention> An object of the present invention is to provide a device control method that can reduce the number of steps and efficiently monitor devices in order to eliminate the above-mentioned conventional drawbacks. To achieve this purpose, the present invention provides a hardware timer that automatically starts timer monitoring once the status data of the device is set. .

〈実施例〉 第1図は、本発明の一実施例のブロック区、第2図はそ
の動作フローチャートである。
<Embodiment> FIG. 1 is a block diagram of an embodiment of the present invention, and FIG. 2 is an operation flowchart thereof.

図中MPUは処吉装&、bはバス、 CH:#O〜CH
#nはチャネル、REGIはステータスレジスタ、DE
Cはデコーダ、REG2は監視レジスタ+T1〜Tiは
タイマ、■はインバーダ、REG3は割込みレジスタ。
In the figure, MPU is Tokoyoshiso&, b is bus, CH: #O~CH
#n is the channel, REGI is the status register, DE
C is a decoder, REG2 is a monitoring register + T1 to Ti are timers, ■ is an inverter, and REG3 is an interrupt register.

0はオアゲートである。0 is an or gate.

第2区を参照しつつ、第1図の動作を説明する。The operation in FIG. 1 will be explained with reference to the second section.

MPUはバスbを介し、チャネルCH#Oのステータス
レジスタREG1に格納されるステータスを読取もステ
ータスレジスタREG1は、レジスタREG iを構成
する各ビットが、チャネルCH$0内の各々異る処理状
態に対応し、チャネルCH#0の全ての機能回路の状態
を表示するものでめる0例えと1チヤネルCH$Oが処
理を実行中である事を示すビジーピッ)、MPUからの
依頼に対する応答を発生する心安が有るか否かを示すレ
スポンスビット、或はチャネルCH$0が回線等に接続
されているものである場合、送信中を示すビット。
The MPU reads the status stored in status register REG1 of channel CH#O via bus b. Status register REG1 indicates that each bit configuring register REGi is in a different processing state in channel CH$0. Correspondingly, it displays the status of all functional circuits of channel CH#0 (e.g. 0 and 1 (busy beep indicating that channel CH$O is executing processing), and generates a response to a request from the MPU. A response bit indicating whether or not there is a sense of security, or a bit indicating that transmission is in progress if channel CH$0 is connected to a line or the like.

受信中を示すビット等が、レジスタREG1の各ビff
)K割付けられ表示される。
The bit indicating that reception is in progress is set to each bit ff of register REG1.
) K is assigned and displayed.

MPUは読み取られ九ステータスデータを、監視レジス
タREG2にセットする。
The MPU reads the nine status data and sets it in the monitoring register REG2.

タイマT1〜Tnは、監視レジスタREG2の各ビット
に対応して設けられ、各々レジスタRF、G 2の各ビ
ットの出力が、接続されている0 また、各タイマはレジスタREG2の対応するビットが
極性−1〃の時、時間監視をスタートする、スタート端
子3を及び、対応ビット出力が%0〃にある時、インパ
ータエによシ反転されたb・性のデータ肌ち、レベル%
1’C)(m号によシリセットされるリセット端子Pを
有する。
Timers T1 to Tn are provided corresponding to each bit of the monitoring register REG2, and the outputs of each bit of the registers RF and G2 are connected to each other. -1, start time monitoring. When the start terminal 3 is connected and the corresponding bit output is at %0, the data level of b, which is inverted by the inverter, is level %.
1'C) (It has a reset terminal P that is reset by serial number m.

従ってレジスタREGIにセットするステータスデータ
として、チャネルCH$0が処理中にあるもののビット
をレベル1とするよう構成すると、監視レジスタREG
2にステータスデータがセットされれげ、その処理中に
あるものに対応するタイマTjのみ動作し、他のタイマ
はリセット状11におかれることとなる。
Therefore, if the status data to be set in the register REGI is configured so that the bit of the channel CH$0 that is being processed is set to level 1, the status data set in the monitor register REGI will be set to level 1.
When the status data is set to 11, only the timer Tj corresponding to the timer Tj that is being processed operates, and the other timers are placed in the reset state 11.

MPUは監視レジスタREG2にステータスデータをセ
クト後、当該ステータスデータがレディ状態を示すか否
か判定し、レディー態にない条件、(第2図中No%1
)で、デバイスステータスを再度リードするステップに
戻シ以下同様にして繰返す0チャネルCM井0内で、全
ての処理が完了し、レディ状態、即ち処理を受付けるこ
とが可能な状態になると、その処理に対応するビットの
データケレベルXX1#からレベル%Olとする。
After sectoring the status data into the monitoring register REG2, the MPU determines whether or not the status data indicates a ready state.
), return to the step of reading the device status again, and repeat in the same manner. When all processing is completed in 0 channel CM well 0 and the state is ready, that is, a state in which processing can be accepted, that processing is completed. The data of the bit corresponding to level XX1# is set to level %Ol.

1’1llPUは前述の如く、第2図図示のルーチンに
従りて、動作しており、当該ビットがレベル%Olとな
り良状態を読込み、監視レジスタREG2にマットする
。これによシ、レベル%INとなっていた処理状況をタ
イマ監視しているタイマTjは、自4ノ的にリセットさ
れタイマ監視を終了する〇一方、タイマが所定値、例え
ば装置全体の勤fy開始時点で、図示されない系路を介
し、MPUよりセットされた所定値を計数した時点で、
オーバ7p−し、その信号が割込レジスタREG 3に
セットされる。割付レジスタREG3の各ビット出力は
オアゲートOを介しそミ’MP Uに対し割付信号とし
て供給される。
As described above, 1'1llPU operates according to the routine shown in FIG. 2, and the relevant bit becomes level %Ol, which indicates a good state and is matted in the monitoring register REG2. As a result, the timer Tj, which monitors the processing status at the level %IN, is automatically reset and ends the timer monitoring. Meanwhile, the timer reaches a predetermined value, for example, the overall performance of the device. At the start of fy, when a predetermined value set by the MPU is counted via a path not shown,
7p-, and the signal is set in interrupt register REG3. Each bit output of the allocation register REG3 is supplied to the SOMI'MPU via an OR gate O as an allocation signal.

これ忙よfiMPUは、公知の割込処理手法によって、
レジスタREG3を読取り、割込原因を解析し、本実施
例の場合にはエラー処理を行うようにされる。
The fiMPU uses a known interrupt processing method to
The register REG3 is read, the cause of the interrupt is analyzed, and in the case of this embodiment, error handling is performed.

以上の実施例においては、デバイスの1つとしてチャネ
ルCH$Oについてのみ説明したが、他のチャネル或は
、デバイスについてもMPUが、処理を依頼しようとす
るデバイスであれば同様である。
In the above embodiment, only the channel CH$O was described as one of the devices, but the same applies to other channels or devices as long as the MPU requests processing.

またMPUは、1つの処理についてチャネルに依頼する
様説明したが、1つの処理について実行中に他の処理に
ついても依頼するようKしても良い。
Furthermore, although the MPU has been described as requesting one process to a channel, it may also request other processes while one process is being executed.

この場合は2つのタイiが動作されることとなる0更に
1タイマの計時する所定値は装置全体の動作が開始した
際セットされると説明したが、任意の時点で、1つその
時点の処理に対応し九各所定値をセットするようにして
も良い。
In this case, two timers will be operated.In addition, it was explained that the predetermined value of one timer is set when the operation of the entire device starts, but at any given time, one timer is set at that time. Nine predetermined values may be set corresponding to the processing.

これより、タイマ自体に汎用性が持たせられることとな
シ、装置を大型化させないという効果を奏し得る。
As a result, the timer itself can be provided with versatility, and it is possible to achieve the effect of not increasing the size of the device.

〈効果〉 以上説明したように、本発明によれは、監視レジスタへ
誉込むだけでタイマ監視が1象・酌に行われることにな
るから処理装置のプログラムは、特にタイマを意識する
ことなく、処理終了のみを判断するステップのみで艮い
。即ち、処理効果が上がるという効果を奏することがで
きる0
<Effects> As explained above, according to the present invention, timer monitoring is performed in one step by simply writing to the monitoring register, so the program of the processing device does not need to be particularly aware of the timer. Only the step that determines whether processing is complete is required. In other words, the processing effect can be improved.

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

第1図、第2図は、本発明の一実施例のブロック図及び
フローチャートである0 図中、MPUは処理装置、CH#O〜CB  はチャネ
ル、REG−IUステータスレジスタ、REG2は監視
4;1) レジスタ、T1′〜πiはタイマ、REG3は割込みレ
ジスタ、0はオψ゛ゲートである0
1 and 2 are a block diagram and a flowchart of an embodiment of the present invention. In the figures, MPU is a processing unit, CH#O to CB are channels, REG-IU status register, and REG2 is a monitor 4; 1) Registers, T1' to πi are timers, REG3 is an interrupt register, and 0 is an open ψ゛ gate.

Claims (1)

【特許請求の範囲】[Claims] 処理装置、及び処理装置と、連けいして処理を行う、デ
バイスを備え、該デバイスの処理状況を監視し、該デバ
イスが空き状態にある時、処理を依頼するデバイス制御
方式において、該デバイスの処理状況に対応して異るス
テータスデータのセットされるレジスターと、該レジス
タの各ビット位置の出力に接続され、レジスタの対応す
るビットが所定極性Klる時間を監視するタイマとを設
け、デバイスの処理を該ステータスデータに対応して、
蚊タイマを起動し、監視することを特徴とするデバイス
制御方式0
A device control method that includes a processing device and a device that performs processing in conjunction with the processing device, monitors the processing status of the device, and requests processing when the device is in an idle state. A register in which different status data is set depending on the situation, and a timer connected to the output of each bit position of the register to monitor the time when the corresponding bit of the register reaches a predetermined polarity Kl are provided, and the device processing corresponding to the status data,
Device control method 0 characterized by starting and monitoring a mosquito timer
JP21401081A 1981-12-26 1981-12-26 Device controlling system Pending JPS58114118A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP21401081A JPS58114118A (en) 1981-12-26 1981-12-26 Device controlling system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP21401081A JPS58114118A (en) 1981-12-26 1981-12-26 Device controlling system

Publications (1)

Publication Number Publication Date
JPS58114118A true JPS58114118A (en) 1983-07-07

Family

ID=16648766

Family Applications (1)

Application Number Title Priority Date Filing Date
JP21401081A Pending JPS58114118A (en) 1981-12-26 1981-12-26 Device controlling system

Country Status (1)

Country Link
JP (1) JPS58114118A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62256154A (en) * 1986-04-30 1987-11-07 Fujitsu Ltd Channel path control system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62256154A (en) * 1986-04-30 1987-11-07 Fujitsu Ltd Channel path control system
JPH0572617B2 (en) * 1986-04-30 1993-10-12 Fujitsu Ltd

Similar Documents

Publication Publication Date Title
US4779195A (en) Interrupt system using masking register in processor for selectively establishing device eligibility to interrupt a particular processor
US6260162B1 (en) Test mode programmable reset for a watchdog timer
EP0106879A1 (en) Method and apparatus for limiting bus utilization.
US5948094A (en) Method and apparatus for executing multiple transactions within a single arbitration cycle
JPS58114118A (en) Device controlling system
JP2762817B2 (en) Application program loop / stall monitoring device
JPS58223849A (en) Detecting circuit of address access
JPH0318962Y2 (en)
JPH09261784A (en) Control equipment control system
JPH0443302B2 (en)
JPS6051141B2 (en) Program runaway detection method
JP2000201161A (en) Arbitration control circuit
JPH0462093B2 (en)
JPH0531773B2 (en)
JPH0736820A (en) I/o controller
KR19980017637A (en) How to Prioritize IIC Bus Recruitment Systems
JPH04344551A (en) Receiving propriety identifying method in information processor
JPS6214235A (en) Information processor
JPH11212902A (en) Interrupt control circuit
JPH03210629A (en) Multiplying/dividing device
JPH0786792B2 (en) Information processing equipment
JP2003167842A (en) Pci bus bridge circuit and transaction control method
JPS62243031A (en) Information processor
JPH08123742A (en) Retrial controller
JPS63265349A (en) Data transfer controller