[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

JP2500873B2 - Micro computer system - Google Patents

Micro computer system

Info

Publication number
JP2500873B2
JP2500873B2 JP3097112A JP9711291A JP2500873B2 JP 2500873 B2 JP2500873 B2 JP 2500873B2 JP 3097112 A JP3097112 A JP 3097112A JP 9711291 A JP9711291 A JP 9711291A JP 2500873 B2 JP2500873 B2 JP 2500873B2
Authority
JP
Japan
Prior art keywords
key input
key
routine
buffer
microprocessor
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 - Lifetime
Application number
JP3097112A
Other languages
Japanese (ja)
Other versions
JPH04227519A (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.)
Toshiba Corp
Original Assignee
Tokyo Shibaura 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 Tokyo Shibaura Electric Co Ltd filed Critical Tokyo Shibaura Electric Co Ltd
Priority to JP3097112A priority Critical patent/JP2500873B2/en
Publication of JPH04227519A publication Critical patent/JPH04227519A/en
Application granted granted Critical
Publication of JP2500873B2 publication Critical patent/JP2500873B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Microcomputers (AREA)
  • Power Sources (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、キー入力待ち時のパワ
ーセーブ機能を有するマイクロコンピュータシステムに
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a microcomputer system having a power saving function while waiting for a key input.

【0002】[0002]

【従来の技術】近年、半導体技術の進歩により、マイク
ロプロセッサ及びそのファミリ周辺制御用LSIを組み
合わせるだけで、高性能のコンピュータシステムを構築
し、かつシステム設計を容易に行なうことができる。
2. Description of the Related Art In recent years, due to advances in semiconductor technology, it is possible to construct a high-performance computer system and easily design a system simply by combining a microprocessor and its peripheral control LSI.

【0003】ところで、パーソナルコンピュータ等に使
用されるマイクロプロセッサは、NチャネルMOS回路
により構成されているものが多い。このNチャネルMO
S回路による方式では、消費電力の節約(パワーセー
ブ)機能には配慮されおらず、コンピュータシステムを
構築した場合に、比較的消費電力の増大化を招く傾向に
ある。コンピュータシステムでは、キーボードからキー
入力データが入力されるが、このキーボードからのキー
入力待ちの状態が発生することがある。パワーセーブ機
能が無い場合には、キー入力待ちの状態時に、いわば無
駄な消費電力が増大化することになる。特に、バッテリ
ー駆動方式のマイクロコンピュータシステムでは、バッ
テリー電源を長持ちさせる必要があるため、パワーセー
ブ機能は重要な機能の一つである。
By the way, many microprocessors used in personal computers and the like are composed of N-channel MOS circuits. This N channel MO
In the method using the S circuit, no consideration is given to the power saving function (power saving), and when the computer system is constructed, the power consumption tends to be relatively increased. In a computer system, key input data is input from a keyboard, but a state of waiting for key input from this keyboard may occur. If there is no power saving function, so to speak, useless power consumption increases when waiting for a key input. In particular, in a battery-driven microcomputer system, the power saving function is one of the important functions because it is necessary to make the battery power source last longer.

【0004】一方、最近では、CMOS回路により構成
されたマイクロプロセッサが開発されており、CMOS
回路の低消費電力特性を利用したパワーセーブ機能を有
するものが出現している。
On the other hand, recently, a microprocessor composed of a CMOS circuit has been developed, and a CMOS
Some have come to have a power saving function utilizing the low power consumption characteristics of the circuit.

【0005】このようなマイクロプロセッサには、CP
UがHALT(ホールト)命令を実行して、アプリケー
ションプログラムの実行を停止したときに、通常動作時
と比較して消費電力が減少し、1/10程度にパワーセ
ーブするものがある。このHALT命令の実行時には、
メモリに対するアクセス回数も減少するためメモリの消
費電力も減少することになる。
Such a microprocessor has a CP
When U executes a HALT (halt) instruction to stop the execution of the application program, the power consumption is reduced as compared with the normal operation, and there is a power saving to about 1/10. When executing this HALT command,
Since the number of accesses to the memory is also reduced, the power consumption of the memory is also reduced.

【0006】ところで、通常のマイクロコンピュータシ
ステムでは、図3に示すように、BIOS(基本入出力
システム)のキー入力ルーチンによるキー入力制御が実
行される。キー入力ルーチンは、同図(A)に示す1文
字入力ルーチンと同図(B)に示すバッファチェックル
ーチンからなる。
By the way, in a normal microcomputer system, as shown in FIG. 3, key input control is executed by a key input routine of a BIOS (basic input / output system). The key input routine is composed of a one-character input routine shown in FIG. 9A and a buffer check routine shown in FIG.

【0007】1文字入力ルーチンは、キーインバッファ
内にキー入力データが収納されている場合には(ステッ
プS10のYES)、1文字分のキー入力データを取込
む(ステップS11)ための制御ルーチンである。一
方、バッファチェックルーチンは、キーインバッファ内
にキー入力データが収納されたか否かをチェックする
(ステップS12)ためのルーチンである。
The one-character input routine is a control routine for fetching one character's worth of key input data (step S11) when the key-in data is stored in the key-in buffer (YES in step S10). is there. On the other hand, the buffer check routine is a routine for checking whether or not the key input data is stored in the key-in buffer (step S12).

【0008】[0008]

【発明が解決しようとする課題】従来のマイクロコンピ
ュータシステムにおいて、キー入力ルーチンによるキー
入力制御時にHALT命令を挿入して(図3(A)に示
すステップS13)、キー入力待ち状態時にパワーセー
ブを図ることが考えられる。
In the conventional microcomputer system, a HALT command is inserted during the key input control by the key input routine (step S13 shown in FIG. 3A) to save power in the key input waiting state. It is possible to plan.

【0009】 ここで、通常ではアプリケーションプロ
グラムを実行する場合に、先にバッファチェックルーチ
ンを実行し、次に1文字チェックルーチンを実行する。
このバッファチェックルーチンの実行時に、キーインバ
ッファ内にキー入力データが存在しないと判断された場
合には、BIOSは1文字チェックルーチンを実行しな
い。したがって、従来ではキー入力待ち状態時に、1文
字チェックルーチン中にHALT命令が挿入されていて
も、必ずしもCPUはHALT命令を実行するわけでは
ない。したがって、キー入力待ち状態時に、パワーセー
ブ機能を確実に実現できないことがある。
Here, normally, when executing an application program, the buffer check routine is executed first, and then the one-character check routine is executed.
When executing this buffer check routine, if it is determined that there is no key input data in the key-in buffer, the BIOS does not execute the one-character check routine. Therefore, conventionally, the CPU does not always execute the HALT instruction even if the HALT instruction is inserted in the one-character check routine in the key input waiting state. Therefore, the power save function may not be surely realized in the key input waiting state.

【0010】本発明の目的は、キー入力ルーチンによる
キー入力制御時にHALT命令の実行を利用して、キー
入力待ち状態時におけるパワーセーブ機能を確実に実現
することができるマイクロコンピュータシステムを提供
することにある。
An object of the present invention is to provide a microcomputer system which can surely realize a power saving function in a key input waiting state by utilizing execution of a HALT instruction during key input control by a key input routine. It is in.

【0011】[0011]

【課題を解決するための手段】本発明は、マイクロプロ
セッサがアプリケーションプログラムを実行することに
伴って、キーインバッファ手段にキー入力データが格納
されているか否かを判断する判断手段、キー入力待ち状
態時にホールト動作を実行するホールト手段および割込
み発生手段により割込みが発生したときにホールト手段
のホールト動作を解除する解除手段とを備えたマイクロ
コンピュータシステムである。
According to the present invention, there is provided a judging means for judging whether or not key input data is stored in the key-in buffer means as a microprocessor executes an application program, and a key input waiting state. The microcomputer system is provided with a halting means for executing a halting operation and a canceling means for canceling the halting operation of the halting means when an interrupt is generated by the interrupt generating means.

【0012】[0012]

【作用】本発明では、キーインバッファ手段にキー入力
データが格納されているか否かを判断するためのバッフ
ァチェックルーチンを実行し、キー入力待ち状態であれ
ば、HALT命令を実行する。このHALT命令による
ホールト動作は、割込み発生手段からの割込みにより解
除される。これにより、キー入力待ち状態時でのマイク
ロプロセッサのパワーセーブを機能させる。
In the present invention, the buffer check routine for determining whether or not the key input data is stored in the key-in buffer means is executed, and the HALT instruction is executed in the key input waiting state. The halt operation by the HALT instruction is canceled by the interrupt from the interrupt generating means. As a result, the power saving of the microprocessor in the key input waiting state is made to function.

【0013】[0013]

【実施例】以下図面を参照して本発明の実施例を説明す
る。
Embodiments of the present invention will be described below with reference to the drawings.

【0014】図1は同実施例に係わるマイクロコンピュ
ータシステムの要部を示すブロック図である。本システ
ムは、CPUボード1とシリアルインターフェース転送
路2を介して接続されたキーボードユニット3からな
る。
FIG. 1 is a block diagram showing a main part of a microcomputer system according to the embodiment. The system comprises a keyboard unit 3 connected to a CPU board 1 via a serial interface transfer path 2.

【0015】CPUボード1には、マイクロプロセッサ
(CPU)11、メモリユニット12、タイマ13およ
び直並列変換回路14が搭載されている。CPU11
は、CMOS回路により構成されており、HALT命令
の実行によるパワーセーブ機能を有する。メモリユニッ
ト12はキーインバッファ121を有し、キーボードユ
ニット3から入力されるキー入力データ(キーインデー
タ)をキーインバッファ121に格納する。
On the CPU board 1, a microprocessor (CPU) 11, a memory unit 12, a timer 13 and a serial / parallel conversion circuit 14 are mounted. CPU11
Is composed of a CMOS circuit and has a power saving function by executing a HALT instruction. The memory unit 12 has a key-in buffer 121, and stores key-in data (key-in data) input from the keyboard unit 3 in the key-in buffer 121.

【0016】直並列変換回路14は、シリアルインター
フェース転送路2を通じてキーボードユニット3に接続
されており、直列のキー入力データを並列に変換してキ
ーインバッファ121に転送する。また、直並列変換回
路14は、割込みラインINT2 を通じてCPU11に
接続されており、キーボードユニット3からのキー入力
による割込み信号をCPU11に転送する。
The serial-parallel conversion circuit 14 is connected to the keyboard unit 3 through the serial interface transfer path 2 and converts serial key input data into parallel data and transfers it to the key-in buffer 121. Further, the serial-parallel conversion circuit 14 is connected to the CPU 11 through the interrupt line INT2, and transfers an interrupt signal by a key input from the keyboard unit 3 to the CPU 11.

【0017】タイマ13は、例えばCPU11のHAL
T命令の実行時から所定のタイマ時間をカウントし、タ
イマアウト割込み信号を割込みラインINT1を通じて
CPU11に出力するLSIである。次に、同実施例の
動作を説明する。
The timer 13 is, for example, HAL of the CPU 11.
The LSI counts a predetermined timer time from the execution of the T instruction and outputs a timer-out interrupt signal to the CPU 11 through the interrupt line INT1. Next, the operation of the embodiment will be described.

【0018】先ず、キーボードユニット3のキー操作に
応じて、キー入力データが入力されると、シリアルイン
ターフェース転送路2を通じて直並列変換回路14に転
送される。直並列変換回路14は、例えば1バイト分の
キー入力データを受信すると、割込みラインINT2 を
通じてCPU11に割込み信号を出力する。CPU11
は、割込み信号に応じて直並列変換回路14からの1バ
イト分のキー入力データDATAをメモリユニット12
に転送させて、キーインバッファ121に格納する制御
を実行する。CPU11は、アプリケーションプログラ
ムの実行に伴って、キーインバッファ121に格納され
たキー入力データを利用して、各種のデータ処理を行な
う。
First, when key input data is input in response to a key operation of the keyboard unit 3, it is transferred to the serial / parallel conversion circuit 14 through the serial interface transfer path 2. When the serial-parallel conversion circuit 14 receives, for example, one byte of key input data, it outputs an interrupt signal to the CPU 11 through the interrupt line INT2. CPU11
Responds to the interrupt signal with 1 byte of key input data DATA from the serial / parallel conversion circuit 14 by the memory unit 12
Control to store the data in the key-in buffer 121. The CPU 11 uses the key input data stored in the key-in buffer 121 along with the execution of the application program to perform various types of data processing.

【0019】ところで、CPU11は、BIOSのキー
入力ルーチンによるキー入力制御を実行する。同実施例
のキー入力ルーチンは、図2(A)に示す1文字入力ル
ーチンと同図(B)に示すバッファチェックルーチンか
らなる。
By the way, the CPU 11 executes key input control by a BIOS key input routine. The key input routine of the embodiment comprises a one-character input routine shown in FIG. 2A and a buffer check routine shown in FIG.

【0020】ここで、CPU11がアプリケーションプ
ログラムを実行する場合に、先にバッファチェックルー
チンを実行し、キーインバッファ121内にキー入力デ
ータが格納されているか否かをチェックする(ステップ
S4)。キーインバッファ121内にキー入力データが
格納されていれば(ステップS1のYES)、1文字分
のキー入力データを取込む1文字入力処理を実行する
(ステップS2)。
When the CPU 11 executes the application program, the buffer check routine is first executed to check whether or not the key input data is stored in the key-in buffer 121 (step S4). If the key input data is stored in the key-in buffer 121 (YES in step S1), the one-character input process for fetching the key input data for one character is executed (step S2).

【0021】即ち、キーボードユニット3から1文字分
のキー入力データが入力されると、CPU11は、キー
インバッファ121に格納された1文字分のキー入力デ
ータを取込む。CPU11は、アプリケーションプログ
ラムの実行に伴って、得られた1文字分のキー入力デー
タを利用して、各種のデータ処理を実行する。
That is, when one character of key input data is input from the keyboard unit 3, the CPU 11 takes in one character of key input data stored in the key-in buffer 121. The CPU 11 executes various data processing by using the obtained key input data for one character as the application program is executed.

【0022】ここで、バッファチェックルーチンのチェ
ック処理後に、CPU11はルーチン内に挿入されたH
ALT命令を実行する(ステップS5)。これにより、
CPU11は、プログラムの実行を停止するHALT状
態となる。このHALT状態は、直並列変換回路14ま
たはタイマ13からの割込み信号により解除となる。
Here, after the checking process of the buffer check routine, the CPU 11 inserts the H into the routine.
The ALT instruction is executed (step S5). This allows
The CPU 11 enters the HALT state in which the execution of the program is stopped. This HALT state is released by an interrupt signal from the serial / parallel conversion circuit 14 or the timer 13.

【0023】このようにして、アプリケーションプログ
ラムの実行に伴って、先にバッファチェックルーチンを
実行する場合でも、CPU11はHALT命令を実行し
て、HALT状態となる。このHALT状態が例えばタ
イマ13からの割込み信号により解除されると、1文字
入力ルーチンに移行する。この1文字入力ルーチンで
は、キーインバッファ内にキー入力データが存在しな
い、即ちキー入力待ち状態時には、CPU11はHAL
T命令を実行して、HALT状態となる(ステップS
3)。
In this manner, the CPU 11 executes the HALT instruction to enter the HALT state even when the buffer check routine is executed first in association with the execution of the application program. When this HALT state is released by, for example, an interrupt signal from the timer 13, the one character input routine is started. In this one-character input routine, when there is no key input data in the key-in buffer, that is, when the key input is waiting, the CPU 11 causes the HAL
Execute the T instruction to enter the HALT state (step S
3).

【0024】したがって、キー入力待ち状態時には、必
ずCPU11はHALT命令を実行して、HALT状態
となる。このHALT状態は直並列変換回路14または
タイマ13からの割込み信号により解除となり、HAL
T状態と解除が繰り返し実行されることになる。これに
より、キー入力待ち状態時には、必ずHALT状態とな
るため、パワーセーブ機能を確実に実現し、無駄な消費
電力の減少化を図ることができる。
Therefore, in the key input waiting state, the CPU 11 always executes the HALT instruction to enter the HALT state. This HALT state is released by an interrupt signal from the serial / parallel conversion circuit 14 or the timer 13, and HAL
The T state and the release will be repeatedly executed. As a result, in the key input waiting state, the HALT state is always brought about, so that the power saving function can be surely realized and useless power consumption can be reduced.

【0025】[0025]

【発明の効果】以上詳述したように本発明によれば、キ
ー入力データが存在しないキー入力待ち状態時に、常に
HALT命令を実行して、キー入力待ち状態時における
パワーセーブ機能を確実に実現することができる。した
がって、結果的に無駄な消費電力を減少させ、システム
の低消費電力化を図ることができる。
As described in detail above, according to the present invention, the HALT instruction is always executed in the key input waiting state where there is no key input data, and the power saving function in the key input waiting state is surely realized. can do. Therefore, it is possible to reduce wasteful power consumption and reduce power consumption of the system.

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

【図1】本発明の実施例に係わるマイクロコンピュータ
システムの要部を示すブロック図。
FIG. 1 is a block diagram showing a main part of a microcomputer system according to an embodiment of the present invention.

【図2】同実施例の動作を説明するためのフローチャー
ト。
FIG. 2 is a flowchart for explaining the operation of the embodiment.

【図3】従来方式を説明するためのフローチャート。FIG. 3 is a flowchart for explaining a conventional method.

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

3…キーボードユニット、11…CPU、121…キー
インバッファ,13…タイマ、14…直並列変換回路。
3 ... Keyboard unit, 11 ... CPU, 121 ... Key-in buffer, 13 ... Timer, 14 ... Serial-parallel conversion circuit.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 アプリケーションプログラムを実行する
マイクロプロセッサと、 キー入力データを入力するためのキーボード手段と、 このキーボード手段により入力された前記キー入力デー
タを格納するためのキーインバッファ手段と、 前記マイクロプロセッサが前記アプリケーションプログ
ラムを実行することに伴って、前記キーボード手段によ
り入力されたキー入力データを前記キーインバッファ手
段から取出す入力ルーチンおよび前記キーインバッファ
手段にキー入力データが格納されているか否かを判断す
るバッファチェックルーチンを実行する入力制御手段
と、 前記マイクロプロセッサが前記アプリケーションプログ
ラムを実行することに伴って、前記入力ルーチンの実行
に先行して前記バッファチェックルーチンを実行したと
きの判断結果がキー入力待ち状態の場合および前記入力
ルーチンの実行時にキー入力待ち状態の場合のいずれの
場合でも、前記マイクロプロセッサの実行を停止させる
ホールト動作を実行するホールト手段と、 前記マイクロプロセッサに対する所定の割込みの発生に
伴って前記マイクロプロセッサのホールト動作を解除す
るホールト解除手段とを具備したことを特徴とするマイ
クロコンピュータシステム。
1. A microprocessor for executing an application program, keyboard means for inputting key input data, key-in buffer means for storing the key input data input by the keyboard means, and the microprocessor. Is executed by executing the application program, and it is determined whether or not the key input data is stored in the input routine for extracting the key input data input by the keyboard means from the key in buffer means. Input control means for executing a buffer check routine, and the microprocessor executes the application program, so that the buffer check routine is executed prior to the execution of the input routine. The determination result during execution of the case and the input routine of the key input waiting state when a key input waiting state either
Even in the case, it is provided with a halting means for performing a halting operation to stop the execution of the microprocessor, and a halting releasing means for canceling the halting operation of the microprocessor in response to the generation of a predetermined interrupt to the microprocessor. Characteristic microcomputer system.
JP3097112A 1991-04-26 1991-04-26 Micro computer system Expired - Lifetime JP2500873B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3097112A JP2500873B2 (en) 1991-04-26 1991-04-26 Micro computer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3097112A JP2500873B2 (en) 1991-04-26 1991-04-26 Micro computer system

Publications (2)

Publication Number Publication Date
JPH04227519A JPH04227519A (en) 1992-08-17
JP2500873B2 true JP2500873B2 (en) 1996-05-29

Family

ID=14183501

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3097112A Expired - Lifetime JP2500873B2 (en) 1991-04-26 1991-04-26 Micro computer system

Country Status (1)

Country Link
JP (1) JP2500873B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014010492A (en) 2012-06-27 2014-01-20 Toshiba Corp Information processing device and start control method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5912128B2 (en) * 1976-11-18 1984-03-21 新明和工業株式会社 wave making device
JPS5368051A (en) * 1976-11-29 1978-06-17 Sharp Corp Integrated circuit device
JPS5532111A (en) * 1978-08-28 1980-03-06 Casio Comput Co Ltd Controlling system for operation return in miniaturized electronic computer
JPS57187723A (en) * 1981-05-12 1982-11-18 T C Denshi Kk Halt controller

Also Published As

Publication number Publication date
JPH04227519A (en) 1992-08-17

Similar Documents

Publication Publication Date Title
KR100229575B1 (en) Information processing system
TWI230901B (en) System and method for executing hot key function
JP3454866B2 (en) Method of operating a processor of the type including a bus unit and an execution unit, a central processing unit, a computer system, and a clock controller circuit
JP3509027B2 (en) Formula processor and method for constructing a plurality of formulas using the formula processor
TWI386791B (en) Transitioning a computing platform to a low power system state
JPS62151971A (en) Microprocessor
JPS62169219A (en) Information processing system
JPS59135569A (en) Control system of multi-processor
JPH07175666A (en) Data processor and interruption request processing method for the same
JPH076151A (en) Cpu core bus optimized for access of on-chip memory device
JPH0120464B2 (en)
US6584573B1 (en) Placing a computer system into a sleeping state
US20050108585A1 (en) Silent loading of executable code
CN101000519A (en) System power state reset processing method and system after computer platform restores power supply
JP2500873B2 (en) Micro computer system
CN100412790C (en) microprocessor
JPH10333790A (en) Information processor equipped with power-saving function and power saving releasing method for the information processor
JPH0962621A (en) Computer system and command cycle switching method
JP2616628B2 (en) Key input device
JPH0883133A (en) Computer system and clock control method for the same
JPH04160422A (en) Low power consumption type information processor
JP2885548B2 (en) Pipeline control method
JP2558902B2 (en) Semiconductor integrated circuit device
JPH11143732A (en) Microcomputer and emulator
CN100527056C (en) Method for setting special scanning code of manual input device