JPS6075938A - Dispatching system during timer interruption - Google Patents

Dispatching system during timer interruption

Info

Publication number
JPS6075938A
JPS6075938A JP18304783A JP18304783A JPS6075938A JP S6075938 A JPS6075938 A JP S6075938A JP 18304783 A JP18304783 A JP 18304783A JP 18304783 A JP18304783 A JP 18304783A JP S6075938 A JPS6075938 A JP S6075938A
Authority
JP
Japan
Prior art keywords
task
timer
time
instruction
group
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
JP18304783A
Other languages
Japanese (ja)
Inventor
Heitaro Ishihara
石原 平太郎
Toshiaki Suzuki
俊明 鈴木
Tadashi Koizumi
小泉 正
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.)
NEC Corp
Nippon Telegraph and Telephone Corp
Oki Electric Industry Co Ltd
Original Assignee
NEC Corp
Nippon Telegraph and Telephone Corp
Oki Electric Industry Co Ltd
Nippon Electric 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 NEC Corp, Nippon Telegraph and Telephone Corp, Oki Electric Industry Co Ltd, Nippon Electric Co Ltd filed Critical NEC Corp
Priority to JP18304783A priority Critical patent/JPS6075938A/en
Publication of JPS6075938A publication Critical patent/JPS6075938A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4812Task transfer initiation or dispatching by interrupt, e.g. masked
    • G06F9/4825Interrupt from clock, e.g. time of day

Landscapes

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

Abstract

PURPOSE:To simplify the programming operation by using a timer corresponding to the cycle of a task group and a memory which stores the address of said timer and using an instruction which divides the timer interruption and starts a dispatching circuit of said task group. CONSTITUTION:A time table 16, a task act table 17, a task vector table 18 and a time table length register 14 showing the size l of the table 18 are connected to a dispatching circuit 13 to which an interval timer 11 having interruption with unit time (e) is connected via a machine word instruction 12. Furthermore a dividing register 15 which holds the entry relative value (n) of each table group is connected to the circuit 13 together with tasks A11-. The table 16 is formed with the cycle setting value alpha which is equal to a multiple of the time (e) and the timer value beta which is updated every time (e). While the table 18 is formed with a pointer to a task address table 19 which holds the head address 1B of a task group 1A. Thus the number of instruction positions is decreased.

Description

【発明の詳細な説明】 本発明はインターバルタイマー割込み(以下単にタイマ
割込みと称す)を分周し、効率よく周期起動プログラム
(以下単にタスクと称す)をディス・ぐッチする情報処
理装置の時分割制御に関するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention provides an information processing device that divides the frequency of interval timer interrupts (hereinafter simply referred to as timer interrupts) and efficiently disables and disables periodically activated programs (hereinafter simply referred to as tasks). This relates to split control.

従来、タイマー割込みを分周し、タスクをテ゛イス・ξ
ノチするためj(は、プログラムによる制御が必要なこ
とが一般的であった。この場合、プログラム起動のだめ
のオーバーへ、ド時間が大きくなることと制御プログラ
ムの作成が繁雑になる欠点があった。
Conventionally, the frequency of timer interrupts is divided and tasks are divided into
Generally, control by a program was required for the control.In this case, the disadvantage was that it took a long time to start the program, and the creation of the control program was complicated. .

本発明の目的物:、とれらの欠点を除去するだめ、メモ
リ装置上に格納されたデータを参照することにより、タ
イマー割込みの分周及びタスクのディス・ξ7チを1命
令で行えるようにしだものである。
OBJECT OF THE INVENTION: In order to eliminate these drawbacks, it is possible to perform timer interrupt frequency division and task dispatch with a single instruction by referring to data stored in a memory device. It is something.

以下本発明の一実施例を図面により詳細に説明する。An embodiment of the present invention will be described in detail below with reference to the drawings.

第1図は本発明の一実施例の構成を示すブロック図であ
り、第2図(dその動作を説明するだめの制御フロー図
である。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention, and FIG. 2 (d) is a control flow diagram for explaining its operation.

第1図において11は単位時間eで別色むインターバル
タイマ、12はタイマ割込みディスフ9ツチ回路13に
制御を渡すだめの機械語命令である。
In FIG. 1, numeral 11 is an interval timer with a unit time e, and numeral 12 is a machine language instruction for passing control to the timer interrupt dispatch circuit 13.

14はタイムテーブル長しノスタでタイムテーブル16
、タスクアクトテーブル1?、タスクベクターテーブル
18の大きさ4を示している。15は分周レジスタで、
タイマー割込みディスノ8ッチ回路13が該テーブル群
の1個のエントリーを単位時間e以内で参照するだめの
もので、タスク起動動作実行中のデータが格納されてい
る該テーブルiffの工/トリー相対値nを保持する。
14 is the timetable long and timetable 16 in Nosta
, task act table 1? , indicates the size 4 of the task vector table 18. 15 is a frequency division register,
The timer interrupt display 8 latch circuit 13 is designed to refer to one entry of the table group within a unit time e, and is a process/tree relative of the table iff in which data during execution of the task activation operation is stored. Holds the value n.

16はタイムデープルで、単位時間eのタイマー割込み
を分周するだめのデータで1エントリーが周期を示す周
期設定値αとタイマー値βとから構成され、本情報処理
装置起動時にプログラムで初期設定される。周期設定値
αは単位時間eの倍数で、タイマー値βは単位時間e毎
に更新(1だけ加算)される。そしてα−βの場合は値
” o ”が設定され、該周期に起動すべきタスクが存
在することを示ず。
Reference numeral 16 denotes a time table, which is data for dividing a timer interrupt of unit time e. Each entry consists of a cycle setting value α indicating a cycle and a timer value β, and is initialized by a program when this information processing device is started. be done. The cycle setting value α is a multiple of the unit time e, and the timer value β is updated (added by 1) every unit time e. In the case of α-β, the value "o" is set, which does not indicate that there is a task to be activated in the period.

17はタスクアクトテーブルでタイムテーブルJ6の設
定周期に起動すべきタスクの有無を表示するだめのテー
ブル、18はタスクベクターテーブルで該タスク群IA
の先頭アドレスlBを保持するタスクアドレステーブル
19へのポインター、即ちタスクアドレステーブルポイ
ンタIcよす構成される。タスクアドレステーブル19
のエントリー数jはタスクアクトテーブル17のタスク
アクトビットIDが1″の数と等しい。またタスクアク
トビットIDのビット位置はタスクアドレステーブル1
9のエントリー相対値1に格納されるタスクが対応して
いる。タスクアウトピットレジスタIEはタスクアクト
テーブル17のタスクアクトビットlDを保持するため
のンノスタである。RETURN−TO−DISPAT
CHER命令IFはタスクの実行終了時にタイマー割込
みディスパッチ回路1.ノに制御を戻すための機械語命
令である。
Reference numeral 17 indicates a task act table, which is a table for displaying the presence or absence of tasks that should be activated in the period set in timetable J6, and reference numeral 18 indicates a task vector table, which indicates the task group IA of the task group.
A pointer to the task address table 19 that holds the start address IB of , that is, a task address table pointer Ic is configured. Task address table 19
The number of entries j is equal to the number of task act bit IDs of 1'' in the task act table 17. Also, the bit position of the task act bit ID is
The task stored in entry relative value 1 of 9 corresponds. The task output register IE is a register for holding the task act bit ID of the task act table 17. RETURN-TO-DISPAT
The CHER instruction IF is executed by the timer interrupt dispatch circuit 1. This is a machine language instruction to return control to the computer.

次に、この様に構成されたタイマー割込みディス・ぐッ
チ回路13の動作を第2図を用いて説明する。捷ずタイ
マー割込み時CALL−DI 5PATCHER命令1
2によりタイマー割込みテ゛イス・ぐッチ回路I3に制
御が渡される。ステップ″21では割込み起動か否か、
即ちCALL−DISPATCHER命令12により起
動されたか、又はRETURN−To−D I 5PA
TCHER命令IFにより起動されたかを判別する。も
し割込み起動であればステ、フ022に於いて分周レノ
スフ15の値nを“0″とする。割込み起動でなければ
ステ、f27f実行する。ステ、フ023に於いてはタ
イムテーブル16のn番目のタイマー値βを1だけ加算
する。その結果タイムテーブル16のn番目のタイマー
値βが周期設定値α以上か判定しくステップ24)、も
しβ≧αならばステ、ゾ25、β〈αならばステラ7°
29を実行する。ステップ25に於いてタイムテーブル
16のn番目のタイマー値βを10″にクリアし、更に
タスクアクトテーブル17のn番目のタスクアクトビッ
トIDをタスクアウトピットレジスタIEに格納スル。
Next, the operation of the timer interrupt disconnect circuit 13 configured as described above will be explained with reference to FIG. CALL-DI 5PATCHER instruction 1 at unswitched timer interrupt
2, control is passed to the timer interrupt device/Gucci circuit I3. In step ``21'', it is determined whether the interrupt is activated or not.
i.e. initiated by a CALL-DISPATCHER instruction 12 or RETURN-To-DI 5PA
Determine whether it has been activated by the TCHER instruction IF. If the interrupt is activated, the value n of the frequency dividing ratio 15 is set to "0" in step 022. If the interrupt is not activated, step f27f is executed. In step 023, the nth timer value β of the time table 16 is incremented by 1. As a result, it is determined whether the n-th timer value β of the time table 16 is greater than or equal to the cycle setting value α (step 24). If β≧α, then ST is 25; if β<α, Stella is 7°.
Execute 29. In step 25, the nth timer value β of the time table 16 is cleared to 10'', and the nth task act bit ID of the task act table 17 is stored in the task output register IE.

更にステツノ27に於いてタスクアドレスク7gでビッ
ト位置Oから1″であるビ。
Furthermore, in step 27, task address 7g indicates bit position 0 to bit 1''.

1・位置をサーチし、もしあれば該ピノ14−”0”と
し、該ビット位置−を÷色層する。もしタスクアクトビ
、トレノスタlEがすべて゛′0″ビ、トであればステ
、プ29を実行し、もしそうでなければ、即ち実行する
タスクがあればステ、プ2Cを実行する。ステ、7’2
9に於いては分周レノスフJ5の値n f 1だけ加算
し、その結果ステップ02Aに於いてnがタイムテーブ
ル長レジスタ14の値4以上であれば単位周期eでのす
べてのタスクのディスパッチ処理が終了したことにな9
次命令に制御を渡す(ステップ2B)。ステ、ゾ2Aで
n (13ならばステップ23より再度実行することに
なる。ステップ2Cに於いてはタスクごフタ(−〜−ノ ーチーゾル18のn番目のタスクアドレス目?インク−
ICが示すタスクアドレステーブル19の1番目のタス
クアドレスを読出し、該タスクに制領を渡す(ステップ
2D)。制御後渡されたタスクは処理終了時RpTuR
N−ToLDr 5pATcx]ER命令IFによって
再度タイマー割込みディス/′9.チ回路13を起動さ
ぜる。
1. Search the position, and if it exists, set the pin 14 to "0" and divide the bit position by the color layer. If the task activity and Torenostar IE are all ``'0'' bits, execute step 29. If not, that is, if there is a task to be executed, execute step 2C. Step 7' 2
In step 9, the value n f 1 of the frequency division Renosph J5 is added, and as a result, in step 02A, if n is greater than or equal to the value 4 of the time table length register 14, all tasks are dispatched in the unit period e. 9 has ended
Control is passed to the next instruction (step 2B). Step 2A, n
The first task address of the task address table 19 indicated by the IC is read and control is given to the task (step 2D). The task passed after control is RpTuR at the end of processing.
N-ToLDr 5pATcx] Disable timer interrupt again by ER command IF/'9. Activate the circuit 13.

このように、タイマー割込みを分周し、タスクをディス
パッチするのにあらかじめタイムテーブル長しノスタ1
4、タイムテーブル16、タスクアクトテーブル17、
タスクベクターテーブル18及びタスクアドレステーブ
ル群19を設定しておけば、CALL−DISPATC
HFR命令12及びRETURN−To−DISPAT
CHER命令lFを使用するだけでよいため、プログラ
ミングが簡単化し、命令位置の数が減少する。また、各
タスクの処理時間によつてタイムテーブル16の周期設
定値α及びタイマ値βの初期値やタスクアドレステーブ
ル19に収容するタスクを考慮すれば、プロセッサの負
荷を効率」:<分散できるよう融通性に富んだ構成にす
ることが可能である。
In this way, the timer interrupt is divided and the time table length is set in advance to dispatch the task.
4, time table 16, task act table 17,
If the task vector table 18 and task address table group 19 are set, CALL-DISPATC
HFR Instruction 12 and RETURN-To-DISPAT
Since only the CHER instruction IF needs to be used, programming is simplified and the number of instruction locations is reduced. In addition, if the initial values of the cycle setting value α and timer value β of the time table 16 and the tasks accommodated in the task address table 19 are taken into consideration depending on the processing time of each task, the load on the processor can be distributed efficiently. It is possible to have a highly flexible configuration.

なお、前記実施例において、タスクアクトビットレノス
タIE、タイムテーブル長しノスク14、分周レジスタ
15は記憶装置上としたがプロセッサの汎用レジスタを
使用してもよい。また、タイムテーブル16、タスクア
クトテーブル17、タスクベクターテーブル18を示す
レジスタをそれぞれ具備すれば上記テーブルは特定番地
を使用する必要はない。
In the embodiment described above, the task act bit renostar IE, timetable length nosk 14, and frequency division register 15 are provided on the storage device, but general-purpose registers of the processor may also be used. Furthermore, if registers indicating the time table 16, task act table 17, and task vector table 18 are provided, the above tables do not need to use specific addresses.

以上詳細に説明したように本発明は自動的にタイマ割込
みを分周し、タスクの起動する回路と命令を有している
のでプログラミングが簡単化し、命令位置の数が減少し
、しかもテーブル群の初期値を変えるだけで起動するタ
スクの種類や周期を変えることができるので7ステムに
応じて効率のよい時分割処理を実現できる利点がある。
As explained in detail above, the present invention automatically divides timer interrupts and has a circuit and an instruction for activating a task, which simplifies programming, reduces the number of instruction locations, and furthermore, Since the type and cycle of activated tasks can be changed simply by changing the initial values, there is an advantage that efficient time-sharing processing can be realized according to the 7 stems.

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

第1図は本発明の実施例のプロ、り図、第2図はその制
御フロー図である。 1ノ・・インターバルタイマ、12・・・CALL−D
ISPATCHER命令、13・・・タイマー割込みデ
ィスパッチ回路、14 ・タイムテーブル長しノスタ、
15 分周レジスタ、16・・タイムテーブル、17・
・・タスクアクトテーブル、18・タスクベクターテー
ブル、J9・・・タスクアドレステーブル、IA・・・
タスク、IB・・−タスクアi・ゝレス、7C・・・タ
スクアドレステーブルポインタ、lD・・タスクアクト
ピッl−1lE・・・タスクアクトビットレノスタ、I
F・・・RETURN−TO−DI 5PATCHER
命令。 特許出願人 沖電気工業株式会社 日本電信電話公社
FIG. 1 is a schematic diagram of an embodiment of the present invention, and FIG. 2 is a control flow diagram thereof. 1...Interval timer, 12...CALL-D
ISPATCHER instruction, 13... Timer interrupt dispatch circuit, 14 - Time table length nostar,
15 Frequency division register, 16...Time table, 17...
...Task act table, 18.Task vector table, J9...Task address table, IA...
Task, IB...-Task address, 7C...Task address table pointer, ID...Task act bit recorder, I
F...RETURN-TO-DI 5PATCHER
order. Patent applicant Oki Electric Industry Co., Ltd. Nippon Telegraph and Telephone Public Corporation

Claims (1)

【特許請求の範囲】[Claims] イック−パルタイマー割込みを用いて時分割処理を行え
る情報処理装置において量刑起動プログラム群の周期に
対応したタイマーと該周期起動フ0ログラl、群のアド
レスを記憶しプCメモリ装置を設け、インターバルタイ
マ割込みを分周し、該周期起動プログラム、群をディス
ノPツチする回路とこれを起動する命令を有することを
特徴とするタイマー割込み時のディスツク、チ方式。
In an information processing device that can perform time-sharing processing using IC-PAL timer interrupts, a timer corresponding to the period of the sentencing activation program group and a program memory device for storing the addresses of the periodic activation program group and the periodic activation program group are provided. 1. A disk and check system at the time of a timer interrupt, characterized in that the frequency of the timer interrupt is divided and the periodic activation program is provided, a circuit for disabling the group, and an instruction for activating the circuit.
JP18304783A 1983-10-03 1983-10-03 Dispatching system during timer interruption Pending JPS6075938A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18304783A JPS6075938A (en) 1983-10-03 1983-10-03 Dispatching system during timer interruption

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18304783A JPS6075938A (en) 1983-10-03 1983-10-03 Dispatching system during timer interruption

Publications (1)

Publication Number Publication Date
JPS6075938A true JPS6075938A (en) 1985-04-30

Family

ID=16128809

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18304783A Pending JPS6075938A (en) 1983-10-03 1983-10-03 Dispatching system during timer interruption

Country Status (1)

Country Link
JP (1) JPS6075938A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62266625A (en) * 1986-05-15 1987-11-19 Mitsubishi Electric Corp Programmable controller
JPH01181130A (en) * 1988-01-13 1989-07-19 Nec Corp Task start system for real time os
JPH01270146A (en) * 1988-04-21 1989-10-27 Toshiba Corp Program progress control system
JPH03177932A (en) * 1989-12-06 1991-08-01 Fuji Electric Co Ltd Periodical task control system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62266625A (en) * 1986-05-15 1987-11-19 Mitsubishi Electric Corp Programmable controller
JPH01181130A (en) * 1988-01-13 1989-07-19 Nec Corp Task start system for real time os
JPH01270146A (en) * 1988-04-21 1989-10-27 Toshiba Corp Program progress control system
JPH03177932A (en) * 1989-12-06 1991-08-01 Fuji Electric Co Ltd Periodical task control system

Similar Documents

Publication Publication Date Title
US3686641A (en) Multiprogram digital processing system with interprogram communication
US3720920A (en) Open-ended computer with selectable 1/0 control
US4937780A (en) Single instruction updating of processing time field using software invisible working registers
US5148542A (en) Multitask processing apparatus utilizing a central processing unit equipped with a micro-program memory which contains no software instructions
JPS6075938A (en) Dispatching system during timer interruption
JPS6334490B2 (en)
GB1424105A (en) Programmed digital data processing system
EP0223463A2 (en) Multiprocessor data processing system
TW345637B (en) Data processor with branch target address cache and method of operation a data processor has a BTAC storing a number of recently encountered fetch address-target address pairs.
JPS61184643A (en) Starting control system for virtual computer
GB1348171A (en) Status marking of variables
SU907551A1 (en) Multi-microprocessor system
SU590745A1 (en) Data multiprocessor
JPH0764802A (en) Simulation device for real-time system
JP2847729B2 (en) Information processing device
JP2876629B2 (en) Data processing device
JPS5614351A (en) Data processing system
JPS6232500B2 (en)
JPS6491241A (en) Data processor
Neumann Disk-based program swapping in 8080-based microcomputers
JPS63155338A (en) Control system for record of program executing history
JPS61165163A (en) Channel selecting system
JPS62209650A (en) Memory access system
JP2000056991A (en) Micro computer programmable controller provided with multi-task function and its control method
JPS5549745A (en) Microprogram control system