JPH07248865A - Activity detection system of device controller - Google Patents

Activity detection system of device controller

Info

Publication number
JPH07248865A
JPH07248865A JP6041343A JP4134394A JPH07248865A JP H07248865 A JPH07248865 A JP H07248865A JP 6041343 A JP6041343 A JP 6041343A JP 4134394 A JP4134394 A JP 4134394A JP H07248865 A JPH07248865 A JP H07248865A
Authority
JP
Japan
Prior art keywords
signal
cpu
activity
level
command
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
JP6041343A
Other languages
Japanese (ja)
Inventor
Mitsunaga Okamoto
充永 岡本
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.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo 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 Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP6041343A priority Critical patent/JPH07248865A/en
Publication of JPH07248865A publication Critical patent/JPH07248865A/en
Pending legal-status Critical Current

Links

Landscapes

  • Input From Keyboards Or The Like (AREA)

Abstract

PURPOSE:To prevent the processing of a device controller from being interrupted even if an interruption request with high priority is generated by generating the activity signal of a first level when a command is received from a CPU and inhibiting the output of an interruption signal to a CPU at the time of the first level. CONSTITUTION:A device controller 3 is provided with an activity signal generation part 30 generating an activity signal of a first level according to the reception of a command from a CPU 5 and making the signal into a second level according to the termination of a processing. Further, the controller is provided with an activity monitoring part 7 monitoring an interruption request and the activity signal, inhibiting the output of an interruption signal to the CPU 5 when the activity signal becomes the first level when the activity signal becomes the first level and outputting the signal when the activity signal becomes a second level. Therefore, while a device controller 3 executes the processing for the received command, the interruption signal is not inputted in the CPU 5.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、パソコン等の情報処理
装置において、キーボードコントローラ等のデバイスコ
ントローラが動作状態にあること(以下、アクティビテ
ィと呼ぶ)を検出する検出方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a detection method for detecting that a device controller such as a keyboard controller is in an operating state (hereinafter referred to as activity) in an information processing apparatus such as a personal computer.

【0002】[0002]

【従来の技術】パソコン等の情報処理装置においては、
キーボードやマウス等の周辺デバイスを制御するため
に、キーボードコントローラと呼ばれるデバイスコント
ローラが用いられており、このキーボードコントローラ
はバスによりCPUと接続され、CPUからコマンドを
受け取り、対応する処理を実行する。
2. Description of the Related Art In information processing devices such as personal computers,
A device controller called a keyboard controller is used to control peripheral devices such as a keyboard and a mouse. The keyboard controller is connected to the CPU via a bus, receives commands from the CPU, and executes corresponding processing.

【0003】通常、キーボードコントローラの処理は、
比較的優先度の高い割り込み処理であるので、キーボー
ドコントローラが処理を行っている際に、他の割り込み
が発生しても影響を与えることがない。
Normally, the processing of the keyboard controller is
Since the interrupt processing has a relatively high priority, even if another interrupt occurs during the processing by the keyboard controller, it has no effect.

【0004】ところで、近年、ノートパソコンのように
バッテリー駆動型の機器では、電力消費を極力押さえる
ために、サスペンドスイッチが押されるか、もしくは、
一定時間以上キーボードから入力がない場合、HDDや
バックライトなどへの電力の供給をカットし、サスペン
ド状態へ移行することが行われるようになってきた。そ
して、この処理において、SMI(SYSTEM MA
NAGEMENTINTERRUPT)と呼ばれる優先
度が最上位の割り込みが利用されるようになってきた。
By the way, in recent years, in a battery-operated device such as a notebook computer, a suspend switch is pressed in order to suppress power consumption as much as possible, or
When there is no input from the keyboard for a certain period of time, power supply to the HDD, backlight, etc. is cut off, and a transition to the suspend state has been performed. Then, in this process, SMI (SYSTEM MA
An interrupt with the highest priority called NAGEMENT INTERRUPT) has come to be used.

【0005】即ち、CPUには通常のインタラプト端子
の他に、SNI専用のSMI端子が設けられ、システム
コントローラはサスペンドスイッチが押されたか、ある
いは、一定時間以上キーボードからの入力がないかを判
断し、いずれかの条件が満足されたとき、SMI信号を
CPUに出力し、このSMI信号を受け取ったCPUは
実行中の処理を中断して、SMIハンドラーと呼ばれる
ソフトウエアに従って所定の処理を実行する。従って、
仮にキーボードコントローラが処理を行っている最中
に、SMIが入力されると、このキーボードコントロー
ラの処理は中断してしまうことになる。
That is, the CPU is provided with an SMI terminal dedicated to SNI in addition to the normal interrupt terminal, and the system controller determines whether the suspend switch is pressed or whether there is no input from the keyboard for a certain period of time. When any one of the conditions is satisfied, an SMI signal is output to the CPU, and the CPU that receives this SMI signal interrupts the process being executed and executes a predetermined process according to software called an SMI handler. Therefore,
If the SMI is input while the keyboard controller is performing processing, the processing of this keyboard controller will be interrupted.

【0006】そこで、従来は、サスペンドスイッチが押
されたか、あるいは、一定時間以上キーボードからの入
力がないなどのSMI要求が発生したときは、システム
コントローラによって、CPUからキーボードコントロ
ーラに対して出力されているI/Oアドレスが、キーボ
ードコントローラもしくはキーボードを示す所定のI/
Oアドレスであるかを監視し、所定のI/Oアドレスで
あるときSMIハンドラーの処理の中で、キーボードコ
ントローラの処理が終了するまでサスペンド状態に入る
のを待つようにしていた。
Therefore, conventionally, when the suspend switch is pressed, or when an SMI request such as no input from the keyboard for a predetermined time occurs, the system controller outputs the SMI request to the keyboard controller. The specified I / O address indicates the specified I / O address indicating the keyboard controller or keyboard.
When the address is an O address, the SMI handler process waits until the keyboard controller process is completed when the I / O address is a predetermined I / O address.

【0007】[0007]

【発明が解決しようとする課題】上述の如く、キーボー
ドコントローラが処理を行っている最中にSMIが発生
したときの対策は、従来から一応行われていたが、キー
ボードコントローラが実行するコマンドの中には、パラ
メータとしてのデータを伴うものもあり、しかも、この
コマンドとデータはCPUでは独立したI/O処理によ
り出力され、従って、そのI/O処理の間にはある程度
の時間間隔が生じてしまう。この時間間隔の中でSMI
が発生すると、キーボードコントローラにはコマンドし
か入力されず対応のパラメータは入力されないこととな
り、ここで、次の異なるコマンドが入力されてしまうこ
ともあり、このような場合には、先のコマンドが正しく
動作しなくなってしまう。
As described above, the countermeasure against the SMI occurring during the processing of the keyboard controller has conventionally been taken for some time. However, among the commands executed by the keyboard controller, Some of them have data as a parameter, and this command and data are output by the CPU in independent I / O processing. Therefore, a certain time interval occurs between the I / O processing. I will end up. SMI within this time interval
Occurs, only the command will be input to the keyboard controller and the corresponding parameter will not be input, and the next different command may be input here.In such a case, the previous command is not correct. It will stop working.

【0008】[0008]

【課題を解決するための手段】本発明は、周辺デバイス
と、CPUと、前記周辺デバイス及びCPUに接続され
CPUからのコマンドに応じて周辺デバイスの制御を行
うデバイスコントローラとを備えた情報処理装置におい
て、前記デバイスコントローラに、前記CPUからコマ
ンドを受け取ったことに応じて第1レベルのアクティビ
ティ信号を発生し、該コマンドの処理の終了に応じて前
記アクティビティ信号を第2レベルにするアクティビテ
ィ信号発生手段を設けると共に、更に、割り込み要求と
前記アクティビティ信号を監視し、割り込み要求が発生
した際、前記アクティビティ信号が第1レベルのときは
前記CPUへの割り込み信号の出力を禁止し、該アクテ
ィビティ信号が第2レベルになったとき前記CPUへ割
り込み信号を出力するアクティビティ監視手段を設け
て、上記課題を解決するものである。
The present invention provides an information processing apparatus including a peripheral device, a CPU, and a device controller connected to the peripheral device and the CPU for controlling the peripheral device in response to a command from the CPU. In the device controller, an activity signal generating means for generating a first level activity signal in response to receiving a command from the CPU and setting the activity signal to a second level in response to the end of processing of the command. Further, the interrupt request and the activity signal are monitored, and when the interrupt request occurs, when the activity signal is at the first level, the output of the interrupt signal to the CPU is prohibited, and the activity signal is Outputs an interrupt signal to the CPU when the level becomes 2 The provided activity monitoring unit that solves the above problems.

【0009】また、好ましい実施例においては、前記デ
バイスコントローラはキーボードコントローラであっ
て、前記CPUへの割り込み信号は最上位の優先度を有
する割り込み信号である。
Further, in a preferred embodiment, the device controller is a keyboard controller, and the interrupt signal to the CPU is an interrupt signal having the highest priority.

【0010】[0010]

【作用】本発明では、キーボードコントローラがCPU
からコマンドを受け取ると、アクティビティ信号が第1
レベルになるので、キーボードコントローラが受け取っ
たコマンドに対する処理を実行している間は、CPUに
は所定の割り込み信号が入力されず、キーボードコント
ローラでの処理が終了すると、アクティビティ信号が第
2レベルになり、CPUに所定の割り込み信号が入力さ
れるようになる。
In the present invention, the keyboard controller is the CPU
When receiving a command from, the activity signal is first
Since a predetermined interrupt signal is not input to the CPU while the keyboard controller is executing the processing for the received command, the activity signal becomes the second level when the processing by the keyboard controller is completed. , A predetermined interrupt signal is input to the CPU.

【0011】[0011]

【実施例】図1は、本発明の実施例としてのノートパソ
コンの構成を示しており、入力手段としてのキーボード
1及びマウス2はキーボードコントローラ3に接続さ
れ、このキーボードコントローラ3はバス4を介してC
PU5に接続されている。
1 shows the configuration of a notebook computer as an embodiment of the present invention, in which a keyboard 1 and a mouse 2 as input means are connected to a keyboard controller 3 which is connected via a bus 4. C
It is connected to PU5.

【0012】キーボードコントローラ3は、キーボード
処理を行う際、通常の割り込み信号IRQを出力し、割
り込みコントローラ6はこの割り込み信号IRQをCP
U5の割り込み端子P1に入力する。また、キーボード
コントローラ3はアクティビティ信号出力部30を有
し、アクティビティ信号ACTをアクティビティ監視部
7に出力する。
When performing keyboard processing, the keyboard controller 3 outputs a normal interrupt signal IRQ, and the interrupt controller 6 sends this interrupt signal IRQ to CP.
Input to the interrupt terminal P1 of U5. The keyboard controller 3 also has an activity signal output unit 30 and outputs an activity signal ACT to the activity monitoring unit 7.

【0013】このアクティビティ監視部7は、入力され
るアクティビティ信号ACTを監視すると共に、図示し
ないサスペンドスイッチが押下されたときに発生するス
イッチ信号SWを入力し、更には、キーボードのキーが
押下されない期間が一定時間を越えたか否かを検出する
ためのタイマー手段としてのカウンタ70を有し、この
カウンタ70が所定値に達するか、もしくは、スイッチ
信号SWが入力されたとき、SMIの要求が発生したと
判断する。そして、このアクティビティ監視部7がSM
I信号をCPU5のSMI端子P2に出力する。
The activity monitoring unit 7 monitors the input activity signal ACT, inputs a switch signal SW generated when a suspend switch (not shown) is pressed, and further, a period during which the keyboard key is not pressed. Has a counter 70 as a timer means for detecting whether or not the time exceeds a certain time. When the counter 70 reaches a predetermined value or the switch signal SW is input, an SMI request is generated. To judge. Then, this activity monitoring unit 7 is SM
The I signal is output to the SMI terminal P2 of the CPU 5.

【0014】次に、キーボードコントローラ3の処理内
容を示す図2のフローチャートと、アクティビティ監視
部7の処理内容を示す図3のフローチャートを参照しな
がら、本実施例の動作を説明する。
Next, the operation of this embodiment will be described with reference to the flowchart of FIG. 2 showing the processing contents of the keyboard controller 3 and the flowchart of FIG. 3 showing the processing contents of the activity monitoring section 7.

【0015】以下においては、パラメータを伴い、キー
ボードコントローラ3内のKCCBというレジスタの内
容をパラメータの内容に置き換えるという特定のコマン
ドを例に上げて説明する。
In the following description, a specific command for replacing the contents of the register KCCB in the keyboard controller 3 with the contents of the parameter will be described as an example.

【0016】まず、このコマンドがCPU5から発せら
れると、キーボードコントローラ3はバス4を介してこ
のコマンドを受け取り、アクティビティ発生部30から
Hレベルのアクティビティ信号ACTを出力する。次
に、キーボードコントローラ3は、バス4を介してパラ
メータとしてのデータが送られてきたかチェックし、送
られてきた場合には、これを受け取って処理を実行す
る。そして、処理が終了したときにはアクティビティ信
号ACTをLレベルにする。つまり、コマンドを受けと
ってからそのコマンドの処理が終了するまでの期間、ア
クティビティ信号ACTはずっとHレベルを維持するの
である。
First, when this command is issued from the CPU 5, the keyboard controller 3 receives this command via the bus 4 and outputs an H-level activity signal ACT from the activity generator 30. Next, the keyboard controller 3 checks whether or not the data as the parameter has been sent via the bus 4, and if the data has been sent, receives it and executes the processing. When the processing is completed, the activity signal ACT is set to L level. That is, the activity signal ACT maintains the H level for the period from the reception of the command to the end of the processing of the command.

【0017】一方、アクティビティ監視部7は、スイッ
チ信号SWもしくはカウンタ70からSMI要求を受け
付けると、その時、キーボードコントローラ3からのア
クティビティ信号ACTがHレベルであるかLレベルで
あるか判定し、LレベルであればSMI信号を出力する
ことなく、レベル判定を繰り返す。そして、Lレベルか
らHレベルに変化すると、この変化に応じてSMI信号
をCPU5に出力する。勿論、SMI要求を受け付けた
時、キーボードコントローラ3からのアクティビティ信
号ACTが既にLレベルであれば、即座にSMI信号が
CPU5に出力される。
On the other hand, when the activity monitoring section 7 receives the SMI request from the switch signal SW or the counter 70, it determines whether the activity signal ACT from the keyboard controller 3 is at the H level or the L level at that time, and the L level is detected. If so, the level determination is repeated without outputting the SMI signal. When the L level changes to the H level, the SMI signal is output to the CPU 5 according to the change. Of course, when the SMI request is accepted, if the activity signal ACT from the keyboard controller 3 is already at the L level, the SMI signal is immediately output to the CPU 5.

【0018】したがって、キーボードコントローラ3が
処理を行っている最中に、SMI要求が発生しても、C
PU5へはSMI信号は出力されず、キーボードコント
ローラ3の処理が終了した後に、CPU5にSMI信号
が出力される。
Therefore, even if an SMI request is issued while the keyboard controller 3 is performing a process, the C
The SMI signal is not output to the PU 5, and the SMI signal is output to the CPU 5 after the processing of the keyboard controller 3 is completed.

【0019】[0019]

【発明の効果】本発明によれば、キーボードコントロー
ラが処理を実行している最中に、それより優先度の高い
割り込み要求が発生しても、キーボードコントローラの
処理が中断されることを確実に防止でき、その後に優先
度の高い割り込み要求を処理できる。
According to the present invention, it is ensured that the processing of the keyboard controller is interrupted even if an interrupt request having a higher priority occurs while the keyboard controller is executing the processing. It can be prevented, and then a high priority interrupt request can be processed.

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

【図1】本発明の実施例の構成を示すブロック図であ
る。
FIG. 1 is a block diagram showing a configuration of an exemplary embodiment of the present invention.

【図2】実施例のキーボードコントローラの処理内容を
示すフローチャートである。
FIG. 2 is a flowchart showing the processing contents of the keyboard controller of the embodiment.

【図3】実施例のアクティビティ監視部の処理内容を示
すフローチャートである。
FIG. 3 is a flowchart showing processing contents of an activity monitoring unit of the embodiment.

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

1 キーボード 3 キーボードコントローラ 5 CPU 7 アクティビティ監視部 30 アクティビティ信号発生部 70 カウンタ 1 keyboard 3 keyboard controller 5 CPU 7 activity monitor 30 activity signal generator 70 counter

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 周辺デバイスと、CPUと、前記周辺デ
バイス及びCPUに接続されCPUからのコマンドに応
じて周辺デバイスの制御を行うデバイスコントローラと
を備えた情報処理装置において、前記デバイスコントロ
ーラに、前記CPUからコマンドを受け取ったことに応
じて第1レベルのアクティビティ信号を発生し、該コマ
ンドの処理の終了に応じて前記アクティビティ信号を第
2レベルにするアクティビティ信号発生手段を設けると
共に、更に、割り込み要求と前記アクティビティ信号を
監視し、割り込み要求が発生した際、前記アクティビテ
ィ信号が第1レベルのときは前記CPUへの割り込み信
号の出力を禁止し、該アクティビティ信号が第2レベル
になったとき前記CPUへ割り込み信号を出力するアク
ティビティ監視手段を設けたことを特徴とするデバイス
コントローラのアクティビティ検出方式。
1. An information processing apparatus comprising a peripheral device, a CPU, and a device controller connected to the peripheral device and controlling the peripheral device in response to a command from the CPU, wherein the device controller includes: An activity signal generating means for generating an activity signal of a first level in response to receiving a command from the CPU and for setting the activity signal to a second level in response to the completion of processing of the command is provided, and further, an interrupt request. When the activity signal is at the first level when an interrupt request is generated, the output of the interrupt signal to the CPU is prohibited, and when the activity signal is at the second level, the CPU is monitored. Activity monitoring means to output interrupt signal to A device controller activity detection method characterized by being provided with.
【請求項2】 前記デバイスコントローラはキーボード
コントローラであって、前記CPUへの割り込み信号は
最上位の優先度を有する割り込み信号であることを特徴
とする請求項1記載のデバイスコントローラのアクティ
ビティ検出方式。
2. The activity detection method of the device controller according to claim 1, wherein the device controller is a keyboard controller, and the interrupt signal to the CPU is an interrupt signal having the highest priority.
JP6041343A 1994-03-11 1994-03-11 Activity detection system of device controller Pending JPH07248865A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6041343A JPH07248865A (en) 1994-03-11 1994-03-11 Activity detection system of device controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6041343A JPH07248865A (en) 1994-03-11 1994-03-11 Activity detection system of device controller

Publications (1)

Publication Number Publication Date
JPH07248865A true JPH07248865A (en) 1995-09-26

Family

ID=12605880

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6041343A Pending JPH07248865A (en) 1994-03-11 1994-03-11 Activity detection system of device controller

Country Status (1)

Country Link
JP (1) JPH07248865A (en)

Similar Documents

Publication Publication Date Title
US6854064B2 (en) ACPI complaint computer system and overtemperature protection method therefor
JP3058986B2 (en) Computer system power saving controller
JPH04130510A (en) Power saving system for information processor
US8281171B2 (en) Adjustment of power-saving strategy depending on working state of CPU
EP1383032B1 (en) Method and apparatus for the conditional enablement of PCI power management
US6321289B1 (en) Apparatus for automatically notifying operating system level applications of the occurrence of system management events
US6463492B1 (en) Technique to automatically notify an operating system level application of a system management event
JPH07248865A (en) Activity detection system of device controller
JPH10207586A (en) Power-off control system for computer
JPH06202764A (en) Power source disconnecting device
JPH10333789A (en) Computer
JPH09305443A (en) Process monitoring device and method therefor
JPH0212531A (en) Interruption control system for virtual computer
JPH0276020A (en) Program abnormality processing system for power source control part
JPH04306716A (en) Power source output monitor control system
JPH02310634A (en) System for supervising runaway of program
JP3102381B2 (en) Task debugging device, task debugging method, and recording medium therefor
JPS6186804A (en) Electronic controller for engine
JPH0635757A (en) Abnormality detector of cpu
JPH02121047A (en) Input/output control system
KR20010047483A (en) Method for controlling a function of touch pad operation in computer
CN116069442A (en) Information processing device, vehicle, and information processing method
JPH06324771A (en) Power saving method for data processor
JPS6380315A (en) Terminal equipment
JP2001154861A (en) System and method for asynchronously ending process