JP2835220B2 - Personal computer - Google Patents

Personal computer

Info

Publication number
JP2835220B2
JP2835220B2 JP3270723A JP27072391A JP2835220B2 JP 2835220 B2 JP2835220 B2 JP 2835220B2 JP 3270723 A JP3270723 A JP 3270723A JP 27072391 A JP27072391 A JP 27072391A JP 2835220 B2 JP2835220 B2 JP 2835220B2
Authority
JP
Japan
Prior art keywords
interrupt
personal computer
clock
processing routine
routine
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
JP3270723A
Other languages
Japanese (ja)
Other versions
JPH05108192A (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.)
Kyocera Corp
Original Assignee
Kyocera Corp
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 Kyocera Corp filed Critical Kyocera Corp
Priority to JP3270723A priority Critical patent/JP2835220B2/en
Publication of JPH05108192A publication Critical patent/JPH05108192A/en
Application granted granted Critical
Publication of JP2835220B2 publication Critical patent/JP2835220B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、クロックのオンまたは
オフ動作を効率的に行うことによりプログラム容量が節
減できるパーソナルコンピュータに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a personal computer capable of saving program capacity by efficiently turning on or off a clock.

【0002】[0002]

【従来の技術】従来のパーソナルコンピュータにおける
クロックのオンまたはオフ動作は図4と図5に示されて
いる。割込み処理以外の通常処理ルーチンでは、図4で
示されるようにアプリケーションプログラムがK/Bま
たはマウス等のデバイス入力待ち状態(ステップ3)に
入る前に動作クロックを低速に動作させ、割り込みをイ
ネーブルにする。それに対して割込み処理ルーチンで
は、図5で示されるように動作クロックを高速に動作さ
せ(ステップ4)、それぞれのデバイス処理を行う(ス
テップ5)。通常処理ルーチンと割込み処理ルーチンの
デバイス入力待ち状態ではデバイスに対する処理が行わ
れると、割込み処理ルーチンのほうが通常処理ルーチン
よりも優先的に制御が渡されるために常に動作クロック
を高速に動作させるルーチンが駆動される。
2. Description of the Related Art Clock on / off operations in a conventional personal computer are shown in FIGS. In the normal processing routine other than the interrupt processing, as shown in FIG. 4, before the application program enters a state of waiting for input of a device such as a K / B or a mouse (step 3), the operation clock is operated at a low speed to enable the interrupt. I do. On the other hand, in the interrupt processing routine, as shown in FIG. 5, the operation clock is operated at high speed (step 4), and each device processing is performed (step 5). In the device input waiting state of the normal processing routine and the interrupt processing routine, when processing is performed on the device, the interrupt processing routine is given control over the normal processing routine, so that a routine that always operates the operation clock at a high speed is provided. Driven.

【0003】[0003]

【発明が解決しようとする課題】従来のパーソナルコン
ピュータにおいては、割込み処理ルーチンで動作クロッ
クを高速にさせているために割込み処理の数が増えるほ
どそれぞれの割込み処理ルーチンで動作クロックを高速
にさせる処理をしなければならないためにプログラム容
量が増加するという問題点があった。
In a conventional personal computer, the operating clock is increased in the interrupt processing routine. Therefore, as the number of interrupt processes increases, the operating clock is increased in each interrupt processing routine. Therefore, there is a problem that the program capacity is increased due to the necessity of performing.

【0004】[0004]

【課題を解決するための手段】本発明はこれらの課題を
解決するためのものであり、入力手段、タイマーおよび
出力手段等のデバイスが駆動されると割込みが発生し通
常処理ルーチンから一時的に割込み処理ルーチンによっ
てこのようなデバイス処理が実行され、このデバイス処
理が終了するとまたこの通常処理ルーチンに復帰するよ
うに中央制御装置によって制御されるパーソナルコンピ
ュータにおいて、通常処理ルーチンは割込みを禁止する
割込み禁止手段と、この割込み禁止手段が作動すると動
作クロックを低速にする低速クロック手段と、デバイス
が入力されるまで中央制御装置を一時的に停止するホー
ルト命令と、このデバイス入力によって割込みが発生す
るとこのホールト命令を解除し動作クロックを高速にす
る高速クロック手段と、前記割込み禁止状態をイネーブ
ルにする割込み許可手段とを有し、前記割込み許可手段
で割込み禁止がイネーブルされると割込み処理ルーチン
でホールト命令後に発生した割込み処理が実行されるパ
ーソナルコンピュータを提供する。
SUMMARY OF THE INVENTION The present invention has been made to solve these problems. When a device such as an input means, a timer and an output means is driven, an interrupt is generated and the normal processing routine temporarily stops. In a personal computer controlled by the central controller so that the device processing is executed by the interrupt processing routine, and when the device processing ends, the normal processing routine is prohibited. Means, a low-speed clock means for lowering the operation clock when the interrupt prohibiting means operates, a halt instruction for temporarily stopping the central controller until a device is input, and a halt instruction when an interrupt is generated by the device input. A high-speed clock that releases instructions and increases the operating clock speed And a personal computer having interrupt permitting means for enabling the interrupt disabled state, wherein when the interrupt prohibiting is enabled by the interrupt permitting means, an interrupt processing routine executes an interrupt process that occurs after a halt instruction. .

【0005】[0005]

【作用】以上のように構成されたパーソナルコンピュー
タによれば割込み処理以外の処理ルーチンで割込みを禁
止し、動作クロックを低速にし、デバイス入力待ちでホ
ールト命令を実行し、その後、動作クロックを高速にし
た後、割込みをイネーブルにしている構成のために割込
みが発生すると常に、動作クロックを高速にする処理が
行われた後、割込み処理ルーチンであるそれぞれのデバ
イス処理が行われるためにプログラム容量が削減でき
る。
According to the personal computer constructed as described above, interrupts are prohibited in processing routines other than the interrupt processing, the operation clock is reduced, the halt instruction is executed while waiting for device input, and then the operation clock is increased. After that, whenever an interrupt is generated due to the configuration that enables the interrupt, the processing speed is increased and then the device processing, which is the interrupt processing routine, is performed. it can.

【0006】[0006]

【実施例】以下、本発明を図に示した実施例を用いて詳
細に説明する。図1は本発明の一実施例を示すパーソナ
ルコンピュータのクレーム対応図であり、図2は本発明
の一実施例を示すパーソナルコンピュータの通常処理の
制御を行うフローチャートであり、図3は本発明の一実
施例を示すパーソナルコンピュータの割込み処理の制御
を行うフローチャートであり、図4は従来のパーソナル
コンピュータの通常処理の制御を行うフローチャートで
あり、図5は従来のパーソナルコンピュータの割込み処
理の制御を行うフローチャートである。図1において、
本発明のパーソナルコンピュータはデータが入力される
入力手段50と入力されたデータが格納されるRAM4
0と、プログラムが格納されているROM30と、RO
M30に格納されているプログラム命令に従って制御を
行う中央処理装置60と、本発明のパーソナルコンピュ
ータを駆動させるためのクロック80と、そのクロック
スピードを低速にさせるための低速クロック手段10
と、反対にクロックスピードを高速にさせるための高速
クロック手段20と、処理結果が出力される出力手段7
0と、時刻をリアルタイムにカウントするタイマー95
と、他の計算機とのデータの送受信を行う送/受信手段
110とから構成されている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, the present invention will be described in detail with reference to the embodiments shown in the drawings. FIG. 1 is a diagram corresponding to claims of a personal computer showing one embodiment of the present invention, FIG. 2 is a flowchart for controlling a normal process of the personal computer showing one embodiment of the present invention, and FIG. FIG. 4 is a flow chart for controlling a normal processing of a conventional personal computer, and FIG. 5 is a flow chart for controlling an interrupt processing of a conventional personal computer. It is a flowchart. In FIG.
The personal computer of the present invention has an input means 50 for inputting data and a RAM 4 for storing the input data.
0, the ROM 30 storing the program, and the RO
A central processing unit 60 for controlling according to the program instructions stored in M30, a clock 80 for driving the personal computer of the present invention, and a low-speed clock means 10 for lowering the clock speed;
Conversely, high-speed clock means 20 for increasing the clock speed, and output means 7 for outputting the processing result
0 and a timer 95 that counts time in real time
And transmission / reception means 110 for transmitting / receiving data to / from another computer.

【0007】図1と図2および図3にもとずいて動作説
明を行う。本発明の一実施例であるパーソナルコンピュ
ータではデータ処理の効率化を図るためにタイマー割込
み、K/B割込み,送信割込み,受信割込み機能を有し
ているために、タイマー割込みでは図1で示すタイマー
95によってカウントされる一定時間毎に割込みが発生
するし、K/B割込みではキー入力が行われるとK/B
割込みが発生するし、送信割込みではデータを送信する
と送信割込みが発生するし、受信割込みではデータを受
信すると受信割込みが発生する。このようにデバイス入
力待ちの状態でそれぞれの割込みが発生するようになっ
ている。したがって、各デバイス毎に割込み処理ルーチ
ンが必要であるためにこの場合には4種類の割込み処理
ルーチンが必要になる。
The operation will be described with reference to FIGS. 1, 2 and 3. The personal computer according to the embodiment of the present invention has a timer interrupt, a K / B interrupt, a transmission interrupt, and a reception interrupt function for improving the efficiency of data processing. An interrupt is generated at regular time intervals counted by 95, and a K / B interrupt causes a K / B
An interrupt occurs, a transmission interrupt generates a transmission interrupt when data is transmitted, and a reception interrupt generates a reception interrupt when data is received. As described above, respective interrupts are generated in a state of waiting for device input. Therefore, since an interrupt processing routine is required for each device, four types of interrupt processing routines are required in this case.

【0008】本発明は割込み処理ルーチン以外の通常の
処理において、中央処理装置60に備えられたホールト
命令を利用して、割込みが禁止された状態で割込みが発
生するとホールト命令の次の命令を実行するこの中央処
理装置60の特有な機能を利用したことに特徴を有して
いる。
The present invention utilizes a halt instruction provided in the central processing unit 60 to execute an instruction next to the halt instruction when an interrupt occurs in a state where the interrupt is disabled in a normal processing other than the interrupt processing routine. This is characterized by utilizing a unique function of the central processing unit 60.

【0009】図2と図3はデバイス入力待ちの動作が説
明されており、、割込み処理ルーチン以外の通常の処理
ルーチンでは、図1で示す割込み禁止手段90によって
割込み処理が禁止され(ステップ10)、この割込みが
禁止された状態で図1で示す低速クロック手段10によ
ってクロック80のスピードを低速にする(ステップ2
0)。この後、デバイス入力待ちの状態でホールト命令
を実行し(ステップ30)、図1で示す高速クロック手
段20によってクロック80のスピードを高速にする
(ステップ40)。さらに、図1で示す割込み許可手段
100によって割込みをイネーブルにする(ステップ5
0)。図3で示される割込み処理ルーチンでは、上述の
タイマー割込み、K/B割込み,送信割込み,受信割込
み処理を行う(ステップ60)。
FIGS. 2 and 3 illustrate the operation of waiting for device input. In a normal processing routine other than the interrupt processing routine, the interrupt processing is prohibited by the interrupt prohibiting means 90 shown in FIG. 1 (step 10). In the state where the interrupt is prohibited, the speed of the clock 80 is reduced by the low-speed clock means 10 shown in FIG. 1 (step 2).
0). Thereafter, the halt instruction is executed in a state of waiting for device input (step 30), and the speed of the clock 80 is increased by the high-speed clock means 20 shown in FIG. 1 (step 40). Further, the interrupt is enabled by the interrupt permitting means 100 shown in FIG. 1 (step 5).
0). In the interrupt processing routine shown in FIG. 3, the above-described timer interrupt, K / B interrupt, transmission interrupt, and reception interrupt processing are performed (step 60).

【0010】このようなデバイス入力待ち状態で割込み
が発生すると、割込み処理ルーチンへの処理がすぐに行
われずにホールト命令の次の命令である高速クロック手
段20によるクロック80のスピードを高速(ステップ
40)にした後、割込み処理ルーチンが行われる。した
がって、それぞれの割込み処理ルーチンでクロック80
のスピードを高速にする処理が必要がなくなったので、
プログラムがシンプルになるとともに容量も削減でき
る。
If an interrupt occurs in such a device input wait state, the interrupt processing routine is not immediately processed, and the speed of the clock 80 by the high-speed clock means 20, which is the instruction following the halt instruction, is increased (step 40). ), An interrupt processing routine is performed. Therefore, in each interrupt processing routine, the clock 80
Since it is no longer necessary to increase the speed of
The program can be simplified and the capacity can be reduced.

【0011】また、従来のパーソナルコンピュータにお
いては、デバイス入力待ちでない状態で割込みが発生す
ると割込み処理ルーチン以外の通常の処理ルーチンと割
込み処理ルーチン双方でクロック80のスピードを高速
にする処理が行われている。本発明のパーソナルコンピ
ュータにおいては、双方でクロック80のスピードを高
速にする処理が行われないために処理スピードが向上す
る。
In a conventional personal computer, when an interrupt occurs in a state where the device is not waiting for a device input, a process for increasing the speed of the clock 80 is performed in both the normal processing routine other than the interrupt processing routine and the interrupt processing routine. I have. In the personal computer of the present invention, the processing speed is increased because the processing for increasing the speed of the clock 80 is not performed on both sides.

【0012】[0012]

【発明の効果】以上説明したように、本発明は中央処理
装置に備えられたホールト命令を利用して、割込みが禁
止された状態で割込みが発生するとホールト命令の次の
命令を実行するこの中央処理装置の特有な機能を利用す
ることによりプログラムがシンプルになるとともに容量
も削減できる。
As described above, the present invention utilizes the halt instruction provided in the central processing unit to execute the instruction following the halt instruction when an interrupt occurs while the interrupt is disabled. By using the specific functions of the processing device, the program can be simplified and the capacity can be reduced.

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

【図1】本発明の一実施例を示すパーソナルコンピュー
タのクレーム対応図である。
FIG. 1 is a diagram corresponding to a claim of a personal computer showing one embodiment of the present invention.

【図2】本発明の一実施例を示すパーソナルコンピュー
タの通常処理の制御を行うフローチャートである。
FIG. 2 is a flowchart illustrating control of normal processing of a personal computer according to an embodiment of the present invention.

【図3】本発明の一実施例を示すパーソナルコンピュー
タの割込み処理の制御を行うフローチャートである。
FIG. 3 is a flowchart illustrating control of interrupt processing of a personal computer according to an embodiment of the present invention.

【図4】従来のパーソナルコンピュータの通常処理の制
御を行うフローチャートである。
FIG. 4 is a flowchart illustrating control of normal processing of a conventional personal computer.

【図5】従来のパーソナルコンピュータの割込み処理の
制御を行うフローチャートである。
And FIG. 5 is a flowchart for controlling interrupt processing of a conventional personal computer.

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

10 低速クロック手段 20 高速クロック手段 30 ROM 40 RAM 50 入力手段 60 中央処理装置 70 出力手段 80 クロック 90 割込み禁止手段 95 タイマー 100 割込み許可手段 110 送/受信手段 DESCRIPTION OF SYMBOLS 10 Low-speed clock means 20 High-speed clock means 30 ROM 40 RAM 50 Input means 60 Central processing unit 70 Output means 80 Clock 90 Interrupt prohibition means 95 Timer 100 Interrupt permission means 110 Transmission / reception means

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】入力手段、タイマーおよび出力手段等のデ
バイスが駆動されると割込みが発生し通常処理ルーチン
から一時的に割込み処理ルーチンによってこのようなデ
バイス処理が実行され、このデバイス処理が終了すると
またこの通常処理ルーチンに復帰するように中央制御装
置によって制御されるパーソナルコンピュータにおい
て、通常処理ルーチンは割込みを禁止する割込み禁止手
段と、この割込み禁止手段が作動すると動作クロックを
低速にする低速クロック手段と、デバイスが入力される
まで中央制御装置を一時的に停止するホールト命令と、
このデバイス入力によって割込みが発生するとこのホー
ルト命令を解除し動作クロックを高速にする高速クロッ
ク手段と、前記割込み禁止状態をイネーブルにする割込
み許可手段とを有し、前記割込み許可手段で割込み禁止
がイネーブルされると割込み処理ルーチンでホールト命
令後に発生した割込み処理が実行されることを特徴とす
るパーソナルコンピュータ。
1. An input means, a timer and an output means.
When the device is driven, an interrupt occurs and the normal processing routine
From an interrupt handling routine.
Device processing is executed, and when this device processing ends,
Also, the central control unit is set to return to the normal processing routine.
Smell controlled by a personal computer
In the normal processing routine, the interrupt disabling procedure
And the operation clock is activated when the interrupt inhibiting means is activated.
Slow clock means to slow down and device input
Halt command to temporarily stop the central control unit until
When an interrupt is generated by this device input, this home
High-speed clock to release the
Interrupt means for enabling the interrupt disabled state.
And interrupt prohibition by the interrupt permitting means.
Halt instruction in the interrupt handling routine when
A personal computer characterized by executing an interrupt process that has occurred after a command .
JP3270723A 1991-10-18 1991-10-18 Personal computer Expired - Fee Related JP2835220B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3270723A JP2835220B2 (en) 1991-10-18 1991-10-18 Personal computer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3270723A JP2835220B2 (en) 1991-10-18 1991-10-18 Personal computer

Publications (2)

Publication Number Publication Date
JPH05108192A JPH05108192A (en) 1993-04-30
JP2835220B2 true JP2835220B2 (en) 1998-12-14

Family

ID=17490065

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3270723A Expired - Fee Related JP2835220B2 (en) 1991-10-18 1991-10-18 Personal computer

Country Status (1)

Country Link
JP (1) JP2835220B2 (en)

Also Published As

Publication number Publication date
JPH05108192A (en) 1993-04-30

Similar Documents

Publication Publication Date Title
US5081577A (en) State controlled device driver for a real time computer control system
KR960035262A (en) Method and apparatus for selective control of interrupt wait in data processing system
JP2001202258A (en) Rear time processor
JP2835220B2 (en) Personal computer
JPS6336443A (en) Interruption processing system
JPH01100604A (en) Programmable controller and its performing system
JPH06309180A (en) Interrupt controller for computer system
JP2975094B2 (en) Control device for I / O device
KR970049513A (en) I / O scheduler driving method and apparatus thereof for high speed medium computer
JPH03276359A (en) Information processor
JPS63153635A (en) Specification system for data transfer speed
JPH03218531A (en) High speed interruption processor
JPH01154234A (en) Interruption controller
JPH064306A (en) Method for dividing interruption processing
JPS6063662A (en) Multiprocessor system
JPH06250964A (en) Controller
JPH0520096A (en) Interruption control system of interactive processing system
JPS6252900B2 (en)
JPS61288232A (en) Output instruction control system
JPH01154236A (en) Executing device for time-division task
JPH0421148A (en) Control system for issue of input/output instruction and interruption acknowledge
JPH07210490A (en) Input/output control system
JPS63163526A (en) Magnetic tape controller
JPH0365746A (en) Input/output controller
JPS61223968A (en) Data controller for multi-microprocessor

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees