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

JPS589458B2 - Timer control method in data processing system - Google Patents

Timer control method in data processing system

Info

Publication number
JPS589458B2
JPS589458B2 JP53078272A JP7827278A JPS589458B2 JP S589458 B2 JPS589458 B2 JP S589458B2 JP 53078272 A JP53078272 A JP 53078272A JP 7827278 A JP7827278 A JP 7827278A JP S589458 B2 JPS589458 B2 JP S589458B2
Authority
JP
Japan
Prior art keywords
timer
processing
processing unit
predetermined time
information
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
Application number
JP53078272A
Other languages
Japanese (ja)
Other versions
JPS554676A (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.)
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 JP53078272A priority Critical patent/JPS589458B2/en
Publication of JPS554676A publication Critical patent/JPS554676A/en
Publication of JPS589458B2 publication Critical patent/JPS589458B2/en
Expired legal-status Critical Current

Links

Landscapes

  • Multi Processors (AREA)

Description

【発明の詳細な説明】 本発明は、複数台のマイクロプロセッサで1涸のタイマ
・サブルーチンを共用できるようになったタイマ制御方
式に関するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a timer control system that allows multiple microprocessors to share one timer subroutine.

銀行端末装置においては、プリンタや通帳吸入装置、キ
ーボート、プラズマ・ディスプレイ、カード・リーグな
ど多種類の入出力装置を使用している。
Bank terminal equipment uses many types of input/output devices, such as printers, bankbook inhalers, keyboards, plasma displays, and card leagues.

上記のような入出力装置を制御するため、複数台のマイ
クロプロセッサが設置されているが、従来技術において
は各マイクロプロセッサは独立して動作しており、各マ
イクロプロセッサ間に通信手段は設けられていなかった
Multiple microprocessors are installed to control the input/output devices mentioned above, but in conventional technology, each microprocessor operates independently and no communication means is provided between each microprocessor. It wasn't.

このため、各マイクロプロセッサには同一のプログラム
が装備され、システム全体から見れば同一のプログラム
を複数個有していることになる。
Therefore, each microprocessor is equipped with the same program, and the entire system has a plurality of the same programs.

この種のプログラムの中の1つにタイマ・サブルーチン
がある。
One such program is a timer subroutine.

タイマ・サブルーチンは、要求に応じてメモリの所定の
エリアにタイマ値をセットし、一定時間間隔毎にタイマ
値を1ずつ減算し、上記エリアの内容が零となると、タ
イマ・アップを通知するルーチンである。
The timer subroutine is a routine that sets a timer value in a predetermined area of memory in response to a request, decrements the timer value by 1 at regular time intervals, and notifies that the timer is up when the content of the area becomes zero. It is.

このタイマは例えば次のように使用されるものである。This timer is used, for example, as follows.

通帳吸引装置に通帳をセットするとき、タイマをセット
して動作を開始させ、タイム・アップが通知されると、
通帳が所定位置に位置しているか否かを検出し、所定位
置に存在すれば、これに対応した処理例えば、印字処理
等を行い、所定位置に存在しなければ、これに対応した
他の処理例えばアラーム表示等の処理を行う。
When setting a passbook in the passbook suction device, set the timer to start the operation, and when the time is up,
Detects whether or not the passbook is located in a predetermined position. If it is in a predetermined position, performs corresponding processing, such as printing processing, etc.; if it is not in a predetermined position, performs other corresponding processing. For example, it performs processing such as displaying an alarm.

上記の銀行端末装置内の各マイクロプロセッサは、時間
監視を行うため常に複数個のタイマを使用しているもの
である。
Each microprocessor in the bank terminal device mentioned above always uses a plurality of timers for time monitoring.

タイマ・サブルーチンは、例えば300バイト程度の容
量を有しており、もし銀行端末装置で3台のマイクロプ
ロセッサを使用しでいるとすると、従来技術ではタイマ
・サブルーチンのために、1Kバイト程度のメモリ容量
を必要とする。
The timer subroutine has a capacity of, for example, about 300 bytes, and if three microprocessors are used in a bank terminal, the conventional technology requires about 1K byte of memory for the timer subroutine. Requires capacity.

1個の装置に同一のタイマ・サブルーチンを複数個準備
して置くことは全く無駄であり、このため1個のタイマ
・サブルーチンを複数台のマイクロプロセッサで共用す
ることが望まれる。
It is completely wasteful to prepare a plurality of identical timer subroutines in one device, and therefore it is desirable that one timer subroutine be shared by a plurality of microprocessors.

本発明は、上記の考察に基づくものであって、複数台の
マイクロプロセノサが存在するシステムにおいて、1個
のタイマ・サブルーチンを複数台のマイクロプロセッサ
で共用できるようになったタイマ・サブルーチン共用方
式を提供することを目的としている。
The present invention is based on the above considerations, and provides a timer subroutine sharing method that allows one timer subroutine to be shared by multiple microprocessors in a system where multiple microprocessors exist. is intended to provide.

そしてそのため、本発明のデータ処理システムにおける
タイマ制御方式は所定の処理手段を記憶するプログラム
メモリを備えた複数の処理ユニットを有し、該処理ユニ
ットは、所定の時刻から所定時間経過した場合に次の処
理ステップに移行するよう構成されたデータ処理システ
ムにおいて、指定された該所定時間を計時するタイマ手
段と、該所定時間を指定した処理ユニットを識別rるた
めの情報を記臆するメモリ手段とを1又は複数の処理ユ
ニットに設けるとともに、該各処理ユニットに、当該処
理ユニットが他の処理ユニットのタイマ手段を指定する
事を示す識別情報と該所定時間を指定する時間情報とを
発生する情報発生手段と、該識別情報に対応して該次の
処理ステップを示すステップ指定情報を記憶するテーブ
ル手段と、他の処理ユニットに接続され該情報発生手段
の発生した情報を該他の処理ユニットに受渡す入出力手
段とを設け、処理ユニットは池の処理ユニットのタイマ
手段に該所定時間を計時させたことを特徴としている。
Therefore, the timer control method in the data processing system of the present invention has a plurality of processing units equipped with program memories storing predetermined processing means, and the processing units are configured to perform the following processing when a predetermined time elapses from a predetermined time. In a data processing system configured to move to a processing step, a timer means for counting the specified predetermined time; a memory means for storing information for identifying a processing unit that has specified the predetermined time; is provided in one or more processing units, and information that generates in each processing unit identification information indicating that the processing unit specifies the timer means of other processing units and time information specifying the predetermined time. a generating means, a table means for storing step designation information indicating the next processing step in correspondence with the identification information, and a table means connected to another processing unit to transmit information generated by the information generating means to the other processing unit. The processing unit is characterized in that a timer means of the processing unit is configured to measure the predetermined time.

以下、本発明を図面を参照しつつ説明する。Hereinafter, the present invention will be explained with reference to the drawings.

第1図a,bは本発明の1実施例のブロック図及び説明
用ブロック図であって、AとBはマイクロプロセッサ、
1ないし4は出力レジスタ、5ないし8は入カレジスタ
、9はジャンプ・テーブル10と11はインクフエイス
信号線をそれぞれ示している。
1a and 1b are block diagrams and explanatory block diagrams of one embodiment of the present invention, in which A and B are microprocessors;
1 to 4 are output registers, 5 to 8 are input registers, 9 is a jump table, and 10 and 11 are ink face signal lines, respectively.

また、CM1,CM2はコントロールメモリであり処理
手順例えば、タイマ・サブルーチンその他の処理プログ
ラムが記憶されるもの、PU1,PU2は命令実行ユニ
ットであり、コントロールメモリCM1,CM2に記憶
される命令を所定順序で読出し実行するもの、IP1〜
5は入出力ポートであり、命令実行ユニツトPUに割込
みを所定タイミングで出力するもの、CG(13)はク
ロツクジエネレータであり例えば、4msec毎に入出
力ポートIP4に出力し、割込みを上げるものである。
Further, CM1 and CM2 are control memories in which processing procedures such as timer subroutines and other processing programs are stored, and PU1 and PU2 are instruction execution units that execute instructions stored in the control memories CM1 and CM2 in a predetermined order. What is read and executed with IP1~
5 is an input/output port that outputs an interrupt to the instruction execution unit PU at a predetermined timing, and CG (13) is a clock generator that outputs to the input/output port IP4 every 4 msec to raise an interrupt. It is.

更に、各入出力ポート■P5,■P6は、種種の入出力
機器に接続され、出力データに応じて各入出力機器を動
作させるための制御信号を発生ずるものである。
Further, each input/output port (P5, (2)P6 is connected to various types of input/output devices, and generates control signals for operating each input/output device in accordance with output data.

次に本発明の実癩列の動作を説明する。Next, the operation of the real leprosy train of the present invention will be explained.

マイクロプロセッサAの命令実行ユニツI−PUがコン
トロールメモリCMのプログラムの内一般処理ルーチン
を実行しているとき、処理ルーチンがタイマ・サブルー
チンを要求すると、ジャンプ・サブルーチン・タイマと
いう命令が行われる。
When the instruction execution unit I-PU of the microprocessor A is executing a general processing routine among the programs in the control memory CM, when the processing routine requests a timer subroutine, an instruction called jump subroutine timer is executed.

この命令の中で、命令実行ユニットはジャンプ・テーブ
ル9より使用されていないタイマを検索し、使用されて
いないタイマ番号を出力する。
In this instruction, the instruction execution unit searches the jump table 9 for an unused timer and outputs the unused timer number.

これにより、タイマ番号が入出力ポート■P1の出力レ
ジスタ1にセットされ、タイマ値がマイクロプロセッサ
Aの入出力ポートIP1の他のレジスタ2ヘセットされ
、これらのレジスタ1,2の内容がインタフエイス10
を経由してマイクロプロセッサBの入出力ポート■P2
内にある入カレジスタ5,6に送られる。
As a result, the timer number is set to the output register 1 of the input/output port P1, the timer value is set to the other register 2 of the input/output port IP1 of the microprocessor A, and the contents of these registers 1 and 2 are transferred to the interface 10.
Microprocessor B input/output port ■P2 via
The data is sent to input registers 5 and 6 located inside.

タイマ番号は例えば“71”,“72”,“73”と付
けられて、ジャンプ・テーブル9に記憶されでいる。
The timer numbers are stored in the jump table 9 with "71,""72," and "73," for example.

尚、“7”は自己プロセッサのアドレスとタイマサービ
ス要求を示すものであり、“1”はタイマを識別するた
めのものである。
Note that "7" indicates the address of the own processor and a timer service request, and "1" indicates the timer identification.

2番目のタイマ・サービス要求であれば、タイマ番号は
例えば“72”とされる。
If it is the second timer service request, the timer number is, for example, "72".

入カレジスタ5,6にデータがセットされると、入出力
ポートIP2から命令実行ユニットPU2に割込みが生
じ、マイクロプロセッサBの命令実行ユニットPU2は
レジスタ5,6の状態をセンスする。
When data is set in the input registers 5 and 6, an interrupt is generated from the input/output port IP2 to the instruction execution unit PU2, and the instruction execution unit PU2 of the microprocessor B senses the states of the registers 5 and 6.

そして、タイマ番号“71”を見てタイマ・サービス要
求であることを知り、タイマ・サブルーチンを実行する
Then, seeing the timer number "71", it knows that it is a timer service request, and executes the timer subroutine.

即ち、タイマ番号“71”をタイマ・テーブルメモ潟1
2に保存すると共に、タイマ番号“71”のタイマ値を
メモリ12の所定のエリアにセットし、クロツクジエネ
レータ13から発生されるタイミングクロツクにより作
成される人出力ポート■P4の割込み発生毎、すなわち
単位時間毎に上記エリアの内容を1ずつ減算する。
In other words, set the timer number "71" to the timer table memo 1.
At the same time, the timer value of timer number "71" is set in a predetermined area of the memory 12, and the output port ■P4 generated by the timing clock generated from the clock generator 13 is saved every time an interrupt occurs. That is, the contents of the area are subtracted by 1 every unit time.

尚、マイクロプロセッサBのメモリ12におけるタイマ
領域がn個のタイマ分あるとすると、例えばタイマ番号
の下位ビット、例えばタイマ番号“71”の内番号″1
″がマイクロプロセッサB内のタイマ領域の1つのタイ
マエリアとして判別されるようにする。
Incidentally, assuming that the timer area in the memory 12 of microprocessor B is for n timers, for example, the lower bit of the timer number, for example, the number "1" in the timer number "71"
'' is determined as one of the timer areas in microprocessor B.

上記エリアの内容が零になると、命令実行ユニットPU
2はこれを判別し次にタイマ番号“71”であることを
見てこのタイマ要求がマイクロプロセッサAからのもの
であることを認識し、タイマ番号“71”を入出力ポー
ト■P2の出力レジスタ3にセットする。
When the contents of the above area become zero, the instruction execution unit PU
2 determines this and then sees the timer number "71" and recognizes that this timer request is from microprocessor A, and sends the timer number "71" to the output register of input/output port ■P2. Set to 3.

出力レジスタ3の内容は、インタフェイス信号11を介
して入力レジスタ7に送られる。
The contents of the output register 3 are sent to the input register 7 via an interface signal 11.

入出カポートIP1の入カレジスタ7にデータがセット
されると、命令実行ユニットPU1に割込みが生じ、入
力レジスタ7,8の内容がセンスされ、割込み処理が行
われる。
When data is set in the input register 7 of the input/output port IP1, an interrupt occurs in the instruction execution unit PU1, the contents of the input registers 7 and 8 are sensed, and interrupt processing is performed.

入力レジスタ7に“71”がセットされているので、割
込み処理ルーチンはタイマ・サービス要求のタイム・ア
ップ応答であることを知り、ジャンプ・テーブル9をタ
イマ番号の下位桁で索引する。
Since "71" is set in the input register 7, the interrupt processing routine knows that this is a time-up response to a timer service request, and indexes the jump table 9 using the lower digits of the timer number.

この結果、ジャンプ先アドレ,スH1,L2が読出され
る。
As a result, the jump destination addresses H1 and L2 are read out.

ジャンプ先アドレスH1,L2は、タイマ番号“71”
がタイム・アップしたときに行うべきタイム・アップ処
理ルーチンの先頭アドレスを示すものである。
Jump destination address H1, L2 is timer number “71”
This indicates the start address of the time-up processing routine to be executed when the time-up occurs.

先頭アドレスH1,L1が指定されると、タイマ番号に
対応したタイム・アップ処理が行われる。
When the first addresses H1 and L1 are designated, time-up processing corresponding to the timer number is performed.

入方レジスタTにセットされるタイマ番号が例えば“7
2”であれば、ジャンプ・アドレス・テーブル9がらH
2,L2が読出される。
For example, the timer number set in the input register T is “7”.
2”, jump address table 9 H
2, L2 is read.

なお、マイクロプロセッサAがマイクロプロセッサBに
タイマ・サービスを要求するとき、ジャンプ・テーブル
9にタイマ番号とジャンプ先アドレスH,Lが記入され
る。
Note that when microprocessor A requests timer service from microprocessor B, the timer number and jump destination addresses H and L are entered in the jump table 9.

以上の説明から明らかなように、本発明によれば、複数
台のマイクロプロセッサでタイマ・サブルーチンを共用
することが出来、これによりメモリ容量を節減すること
が出来る。
As is clear from the above description, according to the present invention, a timer subroutine can be shared by a plurality of microprocessors, thereby reducing memory capacity.

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

第1図a,bは本発明の1実症例のブロック図及び説明
図である。 AとB・・・・・・マイクロプロセッサ、1ないし4・
・・・・・出力レジスタ、5ないし8・・・・・・入カ
レジスタ、9・・・・・・ジャンプ・アドレス・テーブ
ル、10と11・・・・・・インクフエイス信号線。
FIGS. 1a and 1b are a block diagram and an explanatory diagram of one actual case of the present invention. A and B...Microprocessor, 1 to 4.
...Output register, 5 to 8...Input register, 9...Jump address table, 10 and 11...Ink face signal line.

Claims (1)

【特許請求の範囲】[Claims] 1 所定の処理手段を記憶するプログラムメモリを備え
た複数の処理ユニットを有し、該処理ユニットは、所定
の時刻から所定時間経過した場合に次の処理ステップに
移行するよう構成されたデータ処理システムにおいて、
指定された該所定時間を計時するタイマ手段と、該所定
時間を指定した処理ユニットを識別するための情報を記
憶するメモリ手段とを1又は複数の処理ユニットに設け
るとともに、該各処理ユニットに、当該処理ユニットが
他の処理ユニットのタイマ手段を指定する事を示す識別
情報と該所定時間を指定する時間情報とを発生する情報
発生手段と、該識別情報に対応して該次の処理ステップ
を示すステップ指定情報を記憶するテーブル手段と、他
の処理ユニットに接続され該情報発生手段の発生した情
報を該他の処理ユニットに受渡す入出力手段とを設け、
処理ユニットは他の処理ユニットのタイマ手段に該所定
時間を計時させたことを特徴とするデータ処理システム
におけるタイマ制御方式。
1 A data processing system having a plurality of processing units equipped with a program memory storing predetermined processing means, and the processing units are configured to move to the next processing step when a predetermined time has elapsed from a predetermined time. In,
One or more processing units are provided with timer means for counting the specified predetermined time and memory means for storing information for identifying the processing unit that has specified the predetermined time, and each processing unit is provided with: information generating means for generating identification information indicating that the processing unit designates the timer means of another processing unit and time information specifying the predetermined time; and information generation means for generating the next processing step in response to the identification information. and input/output means connected to another processing unit to transfer information generated by the information generation means to the other processing unit,
1. A timer control method in a data processing system, characterized in that a processing unit causes a timer means of another processing unit to measure the predetermined time.
JP53078272A 1978-06-28 1978-06-28 Timer control method in data processing system Expired JPS589458B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP53078272A JPS589458B2 (en) 1978-06-28 1978-06-28 Timer control method in data processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP53078272A JPS589458B2 (en) 1978-06-28 1978-06-28 Timer control method in data processing system

Publications (2)

Publication Number Publication Date
JPS554676A JPS554676A (en) 1980-01-14
JPS589458B2 true JPS589458B2 (en) 1983-02-21

Family

ID=13657337

Family Applications (1)

Application Number Title Priority Date Filing Date
JP53078272A Expired JPS589458B2 (en) 1978-06-28 1978-06-28 Timer control method in data processing system

Country Status (1)

Country Link
JP (1) JPS589458B2 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6134573U (en) * 1984-07-31 1986-03-03 邦明 小俣 lifting clamp
JPS61267684A (en) * 1985-05-20 1986-11-27 萬平産業株式会社 Clamp for lifting
JPS6253291U (en) * 1985-09-21 1987-04-02
JPH06101012B2 (en) * 1986-08-27 1994-12-12 株式会社東芝 Read / write device for portable media
JPS63228369A (en) * 1987-03-18 1988-09-22 Nec Corp Information processor

Also Published As

Publication number Publication date
JPS554676A (en) 1980-01-14

Similar Documents

Publication Publication Date Title
EP0230664B1 (en) Master slave microprocessor system with virtual memory
US4418382A (en) Information exchange processor
JPS57105879A (en) Control system for storage device
US4371926A (en) Input/output information indication system
JPH11259383A (en) RAS information acquisition circuit and information processing system having the same
JPS589458B2 (en) Timer control method in data processing system
EP0139254A2 (en) Apparatus and method for direct memory to peripheral and peripheral to memory data transfer
EP0290942B1 (en) Guest machine execution control system for virtual machine system
JPS63268035A (en) Remote terminal control system via local terminal simulator
JP2966966B2 (en) Redundant device for programmable controller
JPS62135038A (en) Data communications system for slave processor
JPS5489455A (en) Control system
JPH0114616B2 (en)
SU1541623A1 (en) Device for interfacing computer with peripheral device
JPS61166666A (en) Information processing system
KR930011203B1 (en) I / O equipment matching device of redundant processor system
JPH01233651A (en) Communication control system
JPS6257048A (en) Decentralized processor system
KR940001591B1 (en) Switching module system
JPH04148344A (en) Rom emulator
JP2567833B2 (en) Interrupt detection method
JPS6415853A (en) Memory access processing system
JPH02181550A (en) Communication control equipment and atm exchange provided with the same
JPH05181568A (en) Computer controller
JPH0359708A (en) connection control device