JPH0326843B2 - - Google Patents
Info
- Publication number
- JPH0326843B2 JPH0326843B2 JP60061373A JP6137385A JPH0326843B2 JP H0326843 B2 JPH0326843 B2 JP H0326843B2 JP 60061373 A JP60061373 A JP 60061373A JP 6137385 A JP6137385 A JP 6137385A JP H0326843 B2 JPH0326843 B2 JP H0326843B2
- Authority
- JP
- Japan
- Prior art keywords
- input
- sleep mode
- processor
- data
- input unit
- 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
Links
Landscapes
- Power Sources (AREA)
Description
【発明の詳細な説明】
〔目次〕
概 要
産業上の利用分野
従来の技術
発明が解決しようとする問題点
問題点を解決するための手段(第1図)
作 用
実施例
(a) 一実施例の装置の構成の説明(第2図、第3
図、第4図)
(b) 一実施例の内部構成の説明(第5図)
(c) 一実施例構成の動作の説明(第6図)
発明の効果
〔概要〕
プロセツサが入力ユニツトへのアクセスを中止
するスリープモードの制御方式であつて、プロセ
ツサがスリープモードに入るとともに起動される
タイマを設け、タイマの一定時間計時による割込
みによつてスリープモードを脱出して入力ユニツ
トをアクセスするようにすることによつて、スリ
ープモードからの脱出を特別な操作なしに行つて
効率良い節電を行うものである。[Detailed Description of the Invention] [Table of Contents] Overview Industrial Application Fields Conventional Technology Problems to be Solved by the Invention Means for Solving the Problems (Fig. 1) Working Example (a) One Implementation Explanation of the configuration of the example device (Figures 2 and 3)
(Figure 4) (b) Explanation of the internal configuration of one embodiment (Figure 5) (c) Explanation of the operation of the configuration of one embodiment (Figure 6) Effects of the invention [Summary] This is a sleep mode control method that suspends access, and includes a timer that is activated when the processor enters sleep mode, and an interrupt caused by the timer counting a certain period of time to exit sleep mode and access the input unit. By doing so, it is possible to escape from sleep mode without any special operation and to efficiently save power.
本発明は、プロセツサのスリープモードを制御
するプロセツサのスリープモード制御方式に関
し、特に入力待ちの状態でプロセツサがスリープ
モードに入つて消費電力を節電することのできる
プロセツサのスリープモード制御方式に関する。
The present invention relates to a processor sleep mode control method for controlling the sleep mode of a processor, and more particularly to a processor sleep mode control method that allows the processor to enter sleep mode while waiting for an input to save power consumption.
一般にデータ処理装置においては、プロセツサ
(以下CPUと称す)は電源オンの状態で常時動作
しており、バスに接続されたI/O(入力/出力)
ユニツトの状態を監視し、要求があれば、これに
応じた処理を実行するようにしている。 In general, in data processing equipment, the processor (hereinafter referred to as CPU) is always running with the power on, and is connected to the bus by I/O (input/output).
It monitors the status of the unit and, if requested, takes action accordingly.
CPUが常時I/Oユニツトをアクセスするこ
とは、バス上の信号の状態を変化させてアクセス
することから、バスに接続されるCPU、I/O
ユニツトのドライバ、レシーバ等に電流が流れて
電力を消費することになる。 The CPU constantly accesses the I/O unit by changing the state of the signals on the bus, so the CPU, I/O unit connected to the bus
Current flows through the unit's driver, receiver, etc., consuming power.
従つて、I/Oユニツトから要求がない時に
は、CPUのアクセスを中止するようにすれば、
電力消費を減少でき、特にバツテリー(電池)駆
動のものでは、限られた電力を有効に使用する観
点から重要である。 Therefore, if you stop CPU access when there is no request from the I/O unit,
It is possible to reduce power consumption, which is important from the viewpoint of effectively using limited power, especially in battery-powered devices.
一般に、データ処理装置においては、第7図A
構成図に示す如く、CPU1と、プログラム格納
用のリードオンリーメモリ(以下ROMと称す)
6と、データの入力保持等のためのランダムアク
セスメモリ(以下RAMと称す)2と、キーボー
ド等の入力部3と、I/Oユニツト5とを有し、
これらがデータバス4b、アドレスバス4a、制
御バス4cによつて接続され、制御バス4cを介
し割込み信号、タイミング信号、チツプセレクト
信号等がやりとりされる。
Generally, in a data processing device, FIG.
As shown in the configuration diagram, there is a CPU 1 and a read-only memory (hereinafter referred to as ROM) for storing programs.
6, a random access memory (hereinafter referred to as RAM) 2 for holding data input, an input section 3 such as a keyboard, and an I/O unit 5,
These are connected by a data bus 4b, an address bus 4a, and a control bus 4c, and interrupt signals, timing signals, chip select signals, etc. are exchanged via the control bus 4c.
CPU1は、ROM6のプログラムを読出し、コ
マンド解析、実行を行うが、ROM6にスリープ
命令が格納されており、これによつて入力待ちの
状態では、入力ユニツトである入力部3、I/O
ユニツト5へのアクセスを中止するスリープモー
ドに入るようにしている。 The CPU 1 reads the program in the ROM 6, analyzes and executes commands, but a sleep instruction is stored in the ROM 6, so when it is waiting for an input, the input section 3, which is an input unit, and the I/O
A sleep mode is entered in which access to unit 5 is stopped.
従来のスリープモードの制御においては、第7
図Bの処理フロー図に示す如く、CPU1は入力
ユニツト3,5のアクセスの結果一定時間入力又
は処理がないとスリープ命令によつてスリープモ
ード(状態)となり、入力ユニツト3,5へのア
クセスを中止している。一方、入力ユニツト3,
5は割込み部3a,5aを有し、処理要求があれ
ば、割込み部3a,5aより割込み信号を制御バ
ス4cに発し、CPU1へ与え、CPU1はこれに
よつてスリープモードより脱出し、データバス4
b、アドレスバス4aを介し入力ユニツト3,5
をアクセスしてその要求を続出し、対応するジヨ
ブを実行し、ジヨブ終了後、再び一定時間入力、
処理がない時にはスリープモードに入るようにし
ている。 In conventional sleep mode control, the seventh
As shown in the processing flow diagram in Figure B, if there is no input or processing for a certain period of time as a result of access to the input units 3 and 5, the CPU 1 enters sleep mode (state) by a sleep command, and stops accessing the input units 3 and 5. It has been canceled. On the other hand, input unit 3,
5 has interrupt units 3a and 5a, and when there is a processing request, the interrupt units 3a and 5a issue an interrupt signal to the control bus 4c and give it to the CPU 1, which causes the CPU 1 to escape from sleep mode and transfer the interrupt signal to the data bus 4c. 4
b, input units 3, 5 via address bus 4a;
access and make that request one after another, execute the corresponding job, and after the job is finished, input again for a certain period of time,
When there is no processing, it goes into sleep mode.
従つて、入力ユニツト3,5からの要求がない
時には、バス4a,4bを介するアクセスを実行
しないから、バスドライバ、レシーバが動作せ
ず、消費電力の減少が実現できる。 Therefore, when there is no request from the input units 3, 5, access via the buses 4a, 4b is not executed, so the bus driver and receiver do not operate, and power consumption can be reduced.
又、特開昭59−79325号公報等に見られる様に、
クロツクによつて一定間隔毎に通常モードに復帰
し、入力ユニツトをアクセスし、要求がなけれ
ば、待機モードに入る制御方式も提案されてい
る。 Also, as seen in Japanese Patent Application Laid-open No. 59-79325, etc.
A control method has also been proposed in which the device returns to the normal mode at regular intervals using a clock, accesses the input unit, and enters the standby mode if there is no request.
しかしながら、前者の従来のスリープモード制
御方式においては、CPU1がスリープモードか
ら脱出するためには、入力ユニツト3,5の割込
みという特別な動作が必要である。
However, in the former conventional sleep mode control method, a special operation of interrupting the input units 3 and 5 is required in order for the CPU 1 to escape from the sleep mode.
従つて、各入力ユニツト3,5に割込み部3
a,5aを設ける必要があり、入力ユニツトは図
では示していないがキーボード、外部機器、デイ
スプレイ等種々存在する場合にその数が増し、コ
スト上昇の原因となるという問題があつた。又、
割込みを行うためには入力ユニツトにおいてその
ための特殊な操作を必要とし、手間を要するとい
う問題も生じていた。 Therefore, each input unit 3, 5 has an interrupt section 3.
There is a problem in that the number of input units increases when various input units such as keyboards, external devices, displays, etc. (not shown in the figure) are present, which causes an increase in costs. or,
In order to perform an interrupt, a special operation for that purpose is required in the input unit, which also poses a problem of requiring time and effort.
又、後者の従来技術では、入力ユニツトによる
割り込みは必要ないが、プロセツサの動作と関係
なく、クロツクによつて一定間隔毎に通常モード
に復帰するため、入力ユニツトから要求がある
と、これをプロセツサが処理している時間だけ、
待機時間が減少し、次の通常モードに復帰までの
周期が短くなり、省電力化の効果が半減するとい
う問題があつた。 In addition, in the latter conventional technology, an interrupt by the input unit is not required, but since the normal mode is returned to the normal mode at regular intervals by the clock, regardless of the operation of the processor, when a request is received from the input unit, the processor only during the time that is being processed.
There was a problem in that the standby time was reduced and the period until the next normal mode returned was shortened, reducing the power saving effect by half.
本発明は、上述の点に鑑み、CPUのスリープ
モードからの脱出を特別な入力ユニツトの動作な
しに実行するとともに効率よく消費電力を減少す
ることのできるプロセツサのスリープモード制御
方式を提供することを目的とする。 In view of the above points, it is an object of the present invention to provide a processor sleep mode control method that allows the CPU to escape from the sleep mode without operating a special input unit and efficiently reduces power consumption. purpose.
第1図は本発明の原理説明図である。 FIG. 1 is a diagram explaining the principle of the present invention.
本発明は、通常モードとスリーブモードとを実
行するプロセツサ1と、該プロセツサ1の指示に
よつて起動されるタイマ7と、該プロセツサ1に
接続され、該プロセツサ1によりアクセスされる
入力ユニツト3,5とを含み、該プロセツサ1は
該入力ユニツトへ3,5のアクセスの結果、該入
力ユニツト3,5からの要求がない場合及び該入
力ユニツト3,5からの要求に対するジヨブを実
行した場合に、該アクセスを中止するスリーブモ
ードに入るとともに該タイマ7を起動せしめ、該
タイマ7の一定時間計時によつて発生する割り込
みに応じて該プロセツサ1が該スリーブモードを
脱出して該入力ユニツト3,5をアクセスするこ
とを特徴とする。 The present invention comprises a processor 1 that executes a normal mode and a sleeve mode, a timer 7 that is activated by an instruction from the processor 1, an input unit 3 connected to the processor 1 and accessed by the processor 1, 5, the processor 1 executes a job in response to a request from the input units 3 and 5 when there is no request from the input units 3 and 5 as a result of access to the input units 3 and 5. , enters the sleeve mode in which the access is stopped, and starts the timer 7, and in response to an interrupt generated by the timer 7 counting a certain period of time, the processor 1 exits the sleeve mode and starts the input unit 3, 5.
本発明では、入力待ち、即ち入力ユニツト3,
5をアクセスした結果、要求なしと判定すると、
及び要求があり、これを処理した後に、スリープ
モードに入るとともにタイマ7を第1図のの如
く起動し、タイマ7の一定時間計時による同図の
によつてスリープモードを脱出し、通常モード
である入力ユニツト3,5へのアクセスを行うよ
うにしている。
In the present invention, the input unit 3,
As a result of accessing 5, if it is determined that there is no request,
After processing this request, the system enters the sleep mode and starts the timer 7 as shown in Figure 1.The timer 7 measures a certain period of time as shown in the figure, exits the sleep mode, and returns to the normal mode. Certain input units 3 and 5 are accessed.
このため、入力ユニツト3,5においては、
CPU1のスリープモードからの脱出のための特
別な操作が必要なくなるとともに、この脱出のた
めの割込み部も各入力ユニツト3,5に設けなく
ても済むようになる。 Therefore, in input units 3 and 5,
A special operation for escaping the CPU 1 from sleep mode is no longer necessary, and an interrupt section for escaping does not need to be provided in each input unit 3, 5.
又、入力ユニツト3,5からの要求がない場合
及び入力ユニツト3,5からの要求に対するジヨ
ブを実行した場合に、アクセスを中止するスリー
プモードに入るとともに該タイマ7を起動するの
で、入力ユニツト3,5の要求の有無及び要求の
処理時間にかかわらずタイマで定める一定時間ス
リープモードを実行でき、充分な省電力化が可能
となる。 Furthermore, when there is no request from the input units 3 and 5 or when a job is executed in response to a request from the input units 3 and 5, the input unit 3 enters a sleep mode in which access is stopped and starts the timer 7. , 5 and regardless of the processing time of the request, the sleep mode can be executed for a certain period of time determined by the timer, and sufficient power can be saved.
(a) 一実施例の装置の構成の説明。 (a) Description of the configuration of the device of one embodiment.
第2図は本発明の一実施例装置としてのデータ
入力装置の外観図であり、携帯可能なポータブル
端末を指示しており、第3図は第2図構成のデー
タ入力装置の使用例説明図である。 FIG. 2 is an external view of a data input device as an embodiment of the present invention, indicating a portable terminal, and FIG. 3 is an explanatory diagram of an example of use of the data input device configured in FIG. 2. It is.
図中、PTはハンドヘルドターミナル(データ
入力装置)であり、オペレータが手に持つてデー
タ入力等の操作を行うものであり、第5図にて内
部構成を後述するように、内部に動作用電池と、
CPU1と、メモリ2と、バス4及びインターフ
エイス回路等を有しているもの、BDは本体であ
り、SWはパワースイツチであり、本体BDの上
面上部に設けられ、、電源投入/切断を行うため
のスイツチであり、3は前述のデータ入力部とし
てのキー部であり、7行5列のキーを有し、テン
キー「0」〜「9」、入力指示キー「ENTER」
の他に必要なアルフアベツトキー及びフアンクシ
ヨンキーが設けられており、テンキー及びアルフ
アベツトキーで一般データを入力し、「ENTER」
キー及びフアンクシヨンキーで機能(処理内容)
を入力するもの、5はデイスプレイ(I/Oユニ
ツト)であり、液晶デイスプレイで構成され、本
体BDのの上面上部に設けられ、入力データ等を
表示するもの、8はコネクタであり、本体BDの
側面に設けられ、通信ユニツトやプリンタユニツ
ト等の外部機器と接続してデータ、コマンドのや
りとりを行うためのものであり、第4図Aにて後
述するものである。 In the figure, PT is a handheld terminal (data input device) that is held in the hand of the operator to perform operations such as inputting data. and,
The BD is the main unit, and the SW is the power switch, which is provided on the top of the main body BD and turns on/off the power. 3 is the key section as the aforementioned data input section, which has keys arranged in 7 rows and 5 columns, including numeric keys "0" to "9" and an input instruction key "ENTER".
In addition to the necessary alphanumeric keys and function keys, enter general data using the numeric keypad and alphanumeric keys, then press "ENTER".
Functions using keys and function keys (processing details)
5 is a display (I/O unit), which is composed of a liquid crystal display and is installed on the top of the main body BD to display input data, etc. 8 is a connector, which is used to input data to the main body BD. It is provided on the side and is used to connect with external equipment such as a communication unit or printer unit to exchange data and commands, and will be described later with reference to FIG. 4A.
第3図中、CIUは通信インターフエイスユニツ
トであり、ハンドヘルドターミナルPTを収容す
る収容部を有し、その底部にはハンドヘルドター
ミナルPTのコネクタ8と接続されるコネクタ9
(第4図Bにて後述)が設けられ、第3図の如く
ハンドヘルドターミナルPTが収容部に収容され
ると、コネクタ8と9とでコネクタ接続され、ハ
ンドヘルドターミナルPTのメモリ2内の入力デ
ータをホストコンピユータへ送信するものであ
る。 In FIG. 3, CIU is a communication interface unit, which has a housing section for housing the handheld terminal PT, and a connector 9 connected to the connector 8 of the handheld terminal PT at the bottom.
(described later in FIG. 4B), and when the handheld terminal PT is accommodated in the housing part as shown in FIG. 3, the connectors 8 and 9 are connected, and the input data in the memory 2 of the handheld terminal PT is is sent to the host computer.
係るハンドヘルドターミナルPTの使用例を説
明すると、オペレータは取引先(スーパーマーケ
ツト等)においてハンドヘルドターミナルPTを
手に持つて商品を確認しながら、商品の品種や数
量等をキー部3を操作して入力し、デイスプレイ
5で入力データを確認する。入力データは、
CPU1で処理されたメモリ2に格納される。 To explain an example of how such a handheld terminal PT is used, an operator holds the handheld terminal PT in his hand at a business partner (supermarket, etc.) and while checking the product, inputs the product type, quantity, etc. by operating the key part 3. and confirm the input data on the display 5. The input data is
Processed by CPU 1 and stored in memory 2.
そして、オペレータは例えば車輌に積込んであ
るプリンタ装置(図示せず)にハンドヘルドター
ミナルPTを接続し、伝票を発行して、取引先に
渡す。又、自己の事務所に戻つた時に事務所に設
けられた通信インターフエイスユニツトCIUにハ
ンドヘルドターミナルPTを接続し、入力データ
をホストコンピユータに送信して、売上げ集計等
に供する。 Then, the operator connects the handheld terminal PT to, for example, a printer device (not shown) loaded in the vehicle, issues a slip, and hands it to the business partner. Furthermore, when the user returns to his/her office, the handheld terminal PT is connected to the communication interface unit CIU installed in the office, and the input data is sent to the host computer for purposes such as sales aggregation.
第4図はこれらのハンドヘルドターミナルPT
及び通信インターフエイスユニツトCIUに設けら
れたコネクタ8及び9の構成図である。 Figure 4 shows these handheld terminals PT.
FIG. 2 is a configuration diagram of connectors 8 and 9 provided in the communication interface unit CIU.
第4図A中、80a,80bはガイド孔であ
り、通信インターフエイスユニツトCIUに設けら
れた他方のコネクタ9の後述する位置合せ用スタ
ツドを受け入れるためのもの、81a〜81dは
リード端子用孔であり、他方のコネクタ9の後述
する信号線用ピンを各々受け入れ、信号線の電気
的接続を行うためのもの、82は光接続部であ
り、3つの発光素子(発光ダイオード)83と、
6つの受光素子(フオトトランジスタ)84とで
構成され、後述する他方のコネクタ9の6つの発
光素子及び3つの受光素子と対向して光結合によ
る信号のやりとりを行うもの、85はコネクタ支
持部であり、ガイド孔80a,80b、リード端
子用孔81a〜81d、光接続部82とが設けら
れるものである。 In FIG. 4A, 80a and 80b are guide holes for receiving alignment studs, which will be described later, on the other connector 9 provided on the communication interface unit CIU, and 81a to 81d are holes for lead terminals. 82 is an optical connection part, which receives the signal line pins (to be described later) of the other connector 9, respectively, and makes an electrical connection of the signal line, and includes three light emitting elements (light emitting diodes) 83,
It is composed of six light-receiving elements (phototransistors) 84, and exchanges signals by optical coupling while facing the six light-emitting elements and three light-receiving elements of the other connector 9, which will be described later. 85 is a connector support part. Guide holes 80a and 80b, lead terminal holes 81a to 81d, and an optical connection section 82 are provided.
第4図B中、90a,90bは位置合せ用スタ
ツドであり、ハンドヘルドターミナルPTの一方
のコネクタ8のガイド孔80a,80bに挿入さ
れて、コネクタ8及び9の接続時の保持と位置合
せを行うもの、91a〜91dは信号線用ピンで
あり、一方のコネクタ8のリード端子用孔81a
〜81dに挿入されて、信号線の電気的接続を行
うもの、92は光接続部であり、6つの発光素子
(発光ダイオード)93と、3つの受光素子(フ
オトトランジスタ)94とで構成され、一方のコ
ネクタ8との接続時、各々一方のコネクタ8の6
つの受光素子84と、3つの発光素子83とに対
向し、光結合による信号のやりとりを行うもの、
95はコネクタ支持部であり、位置合せ用スタツ
ド90a,90b、信号線用ピン91a〜91
d、光接続部92が設けられるものである。 In FIG. 4B, 90a and 90b are alignment studs, which are inserted into the guide holes 80a and 80b of one connector 8 of the handheld terminal PT to hold and align the connectors 8 and 9 when they are connected. 91a to 91d are pins for signal lines, and holes 81a for lead terminals of one connector 8.
~ 81d to electrically connect the signal line, 92 is an optical connection part, which is composed of six light emitting elements (light emitting diodes) 93 and three light receiving elements (phototransistors) 94, When connecting with one connector 8, each connector 6 of one connector 8
one that faces one light receiving element 84 and three light emitting elements 83 and exchanges signals by optical coupling;
Reference numeral 95 denotes a connector support section, which includes positioning studs 90a, 90b and signal line pins 91a to 91.
d. An optical connection section 92 is provided.
コネクタ8とコネクタ9とに接続するには、コ
ネクタ9の位置合せ用スタツド90a,90bが
コネクタ8のガイド孔80a,80bに挿入され
るようにハンドヘルドターミナルPTを通信イン
ターフエイスユニツトCIUに挿入する。 To connect the connectors 8 and 9, the handheld terminal PT is inserted into the communication interface unit CIU so that the alignment studs 90a, 90b of the connector 9 are inserted into the guide holes 80a, 80b of the connector 8.
これによつてコネクタ9の信号線用ピン91a
〜91dはコネクタ8のリード端子用孔81a〜
81dに挿入され、電気的接続が行なわれ、又コ
ネクタ9の光接続部92とコネクタ8の光接続部
82が対向し、その発光素子93はその受光素子
84に、その受光素子94はその発光素子83に
対向し光結合が可能となる。 As a result, the signal line pin 91a of the connector 9
~91d is the lead terminal hole 81a of the connector 8~
81d, an electrical connection is made, and the optical connection part 92 of the connector 9 and the optical connection part 82 of the connector 8 face each other, and the light emitting element 93 connects to the light receiving element 84, and the light receiving element 94 connects to the light emitting element 81d. Opposing the element 83, optical coupling is possible.
このような光結合を用いたコネクタにおいて
は、光結合に不向きな電力供給用、接続検出用及
びシグナルグランド用信号線は信号線用ピン91
a〜91dとリード端子用孔81a〜81dの電
気的接続によつて行ない。一方、光結合のできる
データ線、クロツク線等は光接続部92と82と
の光結合によつて行うようにしている。光結合に
よる接続は、機械的接続による電気的接線に対
し、ピンの摩耗劣化による接続不良を考慮せずに
済むので信頼性の高い接続ができ、且つ電気的に
分離されており端子が露出していないから、静電
気の影響による内部回路の破壊も防止できる。 In connectors using such optical coupling, signal lines for power supply, connection detection, and signal ground that are unsuitable for optical coupling are connected to the signal line pin 91.
This is done by electrically connecting a to 91d and the lead terminal holes 81a to 81d. On the other hand, data lines, clock lines, etc. that can be optically coupled are optically coupled between optical connections 92 and 82. Optical coupling allows for highly reliable connections as there is no need to consider connection failures due to pin wear and deterioration, compared to electrical tangents produced by mechanical connections.In addition, the connections are electrically isolated and the terminals are not exposed. This prevents damage to internal circuits caused by static electricity.
(b) 一実施例の内部構成の説明。(b) Description of the internal configuration of one embodiment.
第5図は本発明の一実施例内部ブロツク図であ
る。 FIG. 5 is an internal block diagram of one embodiment of the present invention.
図中、第1図、第2図及び第4図で示したもの
と同一のものは同一の記号で示してあり、10は
インターフエイス回路であり、コネクタ8を介し
外部機器とRS−232cインターフエイス手順で送
受信を行うためのもの、11は電池であり、装置
内部に動作電圧Vccを供給するものであり、通信
ユニツトCIUとの接続時には、通信ユニツトCIU
の電源よりコネクタ9のピン91cを介しコネク
タ8より充電電圧BVが与えられ充電されるとと
もに、充電中はコネクタ9のピン91dを介し同
様に電源より各部に動作電圧Vccが与えられるも
のである。30,50,70はポートであり、入
出力レジスタで構成され、ポート30はキー部3
のためのもの、ポート50はデイスプレイ5のた
めのもの、ポート70はインターフエイス回路1
0及びブザーのためのものであり、51はデイス
プレイコントローラであり、デイプレイ5を画面
制御するもの、52は表示用バツフア(以下バツ
フアと称す)であり、表示すべきデータを格納し
ておくもの、71はブザーであり、警報を発する
ためのものである。 In the figure, the same parts as those shown in FIGS. 1, 2, and 4 are indicated by the same symbols, and 10 is an interface circuit that connects external equipment with the RS-232c interface via the connector 8. 11 is a battery that supplies the operating voltage Vcc inside the device, and when connected to the communication unit CIU, the communication unit CIU
A charging voltage BV is applied from the power supply to the connector 8 via the pin 91c of the connector 9 to charge the battery, and during charging, an operating voltage Vcc is similarly applied to each part from the power supply via the pin 91d of the connector 9. 30, 50, and 70 are ports, which are composed of input/output registers, and port 30 is the key part 3.
port 50 is for display 5, port 70 is for interface circuit 1
0 and a buzzer, 51 is a display controller that controls the screen of the display 5, and 52 is a display buffer (hereinafter referred to as buffer) that stores data to be displayed. , 71 is a buzzer for issuing an alarm.
係る構成のデータ入力装置の基本的動作は、
CPU1がアドレスバス4aよりキー部3の入力
内容をポート30に介してデータバス4bより続
出し、入力内容を解読して、ジヨブ処理(例え
ば、加減算、掛算、割算等の演算処理や検索処
理)が指示されれば、その指示された処理を実行
し、一般データであれば、アドレスバス4aを介
し表示バツフア52及びデータ格納メモリ2に係
るデータをデータバスを介し与えて格納せしめ
る。又、デイスプレイコントローラ51はポート
50を介しDMAモードで表示バツフア52をア
ドレスバス4aを介しアクセスし、データバス4
bより表示データを受けとつてデイスプレイ5に
表示せしめる。これらは、CPU1がROM6のプ
ログラムを読出し実行する。又、送受信モードで
は、CPU1がアドレスバス4aよりポート70
を指定し、インターフエイス回路10との間でデ
ータのやりとりを行つてコネクタ8を介し、外部
機器との送受信を行う。 The basic operation of a data input device with such a configuration is as follows:
The CPU 1 sequentially sends the input contents of the key section 3 from the address bus 4a to the data bus 4b via the port 30, decodes the input contents, and performs job processing (for example, arithmetic processing such as addition/subtraction, multiplication, division, etc.) and search processing. ), the instructed processing is executed, and if it is general data, the data related to the display buffer 52 and data storage memory 2 is provided via the address bus 4a and stored therein. Further, the display controller 51 accesses the display buffer 52 via the address bus 4a in DMA mode via the port 50, and accesses the display buffer 52 via the data bus 4a.
It receives display data from b and displays it on the display 5. These programs are read and executed by the CPU 1 from the ROM 6. In addition, in the transmit/receive mode, CPU1 receives port 70 from address bus 4a.
is specified, data is exchanged with the interface circuit 10, and data is transmitted and received with external equipment via the connector 8.
(c) 一実施例構成の動作の説明。(c) Description of operation of one embodiment configuration.
次に、第6図の第5図構成におけるスリープモ
ード制御処理フロー図を用いてスリープモード制
御動作について説明する。 Next, the sleep mode control operation will be explained using the sleep mode control processing flow diagram in the configuration shown in FIG. 5 in FIG.
CPU1はジヨブ終了によつてROM6のスリ
ーブ命令により、スリーブ状態に入るとともに
制御バス4cを介しタイマ7を起動する。この
スリーブ状態では、CPU1はバス4a,4b,
4cより接続されたポート等に対してのアクセ
スは中止する。 Upon completion of the job, the CPU 1 enters the sleep state in response to a sleeve command from the ROM 6, and also activates the timer 7 via the control bus 4c. In this sleeve state, the CPU 1 uses buses 4a, 4b,
Access to ports etc. connected from 4c is stopped.
タイマ7はこの起動によつて、クロツクを計
数し、一定時間(例えば100ms)計時すると、
制御バス4cを介しCPU1へ割込みを行う。 Timer 7 counts the clocks by this activation, and after counting the clock for a certain period of time (for example, 100ms),
An interrupt is made to the CPU 1 via the control bus 4c.
CPU1はこの割込みによつてスリープモー
ドから脱出し、通常モードとなり、前述の基本
動作で説明した如く、入力ユニツトの接続され
た各ポート70,50,30をアドレスバス4
aを介し順次指定し、データバス4bを介し入
力データの有無を受け、入力データの有無を判
定する。 The CPU 1 escapes from the sleep mode by this interrupt and enters the normal mode, and as explained above in the basic operation, each port 70, 50, 30 connected to the input unit is connected to the address bus 4.
The input data is sequentially specified via the data bus 4b, and the presence or absence of input data is received via the data bus 4b to determine the presence or absence of the input data.
例えば、キー部3のポート30をアクセスす
るには、CPU1はキー部3の各行の出力をデ
ータとしてポート30より受け、押下の有無及
び押下があればそのキー部での位置を調べ、ど
のキーが押下されたかを解続し、押下無しなら
キー入力なしとする。 For example, to access port 30 of key section 3, CPU 1 receives the output of each row of key section 3 as data from port 30, checks whether or not it has been pressed, and if so, the position in the key section, and which key It is determined whether the key is pressed, and if it is not pressed, there is no key input.
入力がなければ、ステツプへ戻り、スリー
プモードに入る。 If there is no input, the process returns to step and enters sleep mode.
一方、入力データが有れば、対応するジヨブ
処理を実行し、ジヨブ実行後ステツプへ戻
り、スリープモードに入る。 On the other hand, if there is input data, the corresponding job processing is executed, and after executing the job, the process returns to step and enters sleep mode.
このようにして、タイマ7の割込みによりス
リープモードから脱出し、ポートをアクセス
し、入力データなしなら再びスリープモードに
入り、入力データ有ならジヨブ終了後スリープ
モードに入る。 In this way, the device exits from the sleep mode by the interrupt of the timer 7, accesses the port, and if there is no input data, enters the sleep mode again, and if there is input data, enters the sleep mode after completing the job.
このようなデータ入力装置では、スリープモ
ードの脱出のため、キー部3を操作して割込み
を上げる必要がなく、又通信ユニツトCIUとの
接続時にも通信ユニツトCIUより割込みを上げ
る必要がないため、操作が簡素化されるととも
に、キー部3や通信ユニツトCIUに脱出のため
のスイツチや割込み回路を設けなくてもよい。 In such a data input device, there is no need to operate the key unit 3 to raise an interrupt in order to escape from sleep mode, and there is no need to raise an interrupt from the communication unit CIU when connecting with the communication unit CIU. Operation is simplified, and there is no need to provide an escape switch or interrupt circuit in the key unit 3 or the communication unit CIU.
上述の実施例では、ハンドヘルドターミナルを
例に説明したが、これに限られず、又、入力ユニ
ツトもキーボード3、インターフエイス10、デ
イスプレイ5に限られず、バーコードリーダ、
OCR等の他の周知の入力ユニツトであつてもよ
い。 In the above-mentioned embodiment, the handheld terminal is used as an example, but the input unit is not limited to the keyboard 3, the interface 10, and the display 5, but may also include a barcode reader,
Other well-known input units such as OCR may also be used.
以上本発明を一実施例により説明したが、本発
明は本発明の主旨に従い種々の変形が可能であ
り、本発明からこれらを排除するものではない。 Although the present invention has been described above using one embodiment, the present invention can be modified in various ways according to the gist of the present invention, and these are not excluded from the present invention.
以上説明した様に、本発明によれば、CPUが
スリープモードから脱出するのにタイマの割込み
を用いているので、特別な脱出の操作を必要とし
ないという効果を奏し、手間を省くことができ
る。又、入力ユニツトに割込みのためのスイツ
チ、割込み回路を設けなくてもよいから、それだ
けコスト軽減が可能になるという効果も奏する。
As explained above, according to the present invention, since a timer interrupt is used for the CPU to escape from sleep mode, there is no need for a special escape operation, which saves time and effort. . Furthermore, since there is no need to provide an interrupt switch or an interrupt circuit in the input unit, it is possible to reduce costs accordingly.
更に、入力ユニツトからの要求がない場合及び
入力ユニツトからの要求に対するジヨブを実行し
た場合に、アクセスを中止するスリープモードに
入るとともに該タイマを起動するので、入力ユニ
ツトの要求の有無及び要求の処理時間にかかわら
ずタイマで定める一定時間スリープモードを実行
でき、充分な省電力化が可能となるという効果も
奏する。 Furthermore, if there is no request from the input unit or if a job is executed in response to a request from the input unit, the device enters a sleep mode that suspends access and starts the timer, so it is possible to check whether there is a request from the input unit or not and process the request. The sleep mode can be executed for a certain period of time determined by a timer regardless of the time, and there is also the effect that sufficient power saving is possible.
第1図は本発明の原理説明図、第2図は本発明
の一実施例構成の外観図、第3図は本発明の一実
施例構成の使用例説明図、第4図は第2図構成に
用いられるコネクタの構成図、第5図は第2図構
成の一実施例内部のブロツク図、第6図は第5図
構成における一実施例処理フロー図、第7図は従
来技術の説明図である。
図中、1…プロセツサ(CPU)、3…キー入力
部、7…タイマ、10…インターフエイス。
Fig. 1 is an explanatory diagram of the principle of the present invention, Fig. 2 is an external view of an embodiment of the present invention, Fig. 3 is an explanatory diagram of an example of use of the embodiment of the present invention, and Fig. 4 is Fig. 2. 5 is an internal block diagram of an embodiment of the configuration in FIG. 2, FIG. 6 is a processing flow diagram of an embodiment of the configuration in FIG. 5, and FIG. 7 is an explanation of the prior art. It is a diagram. In the figure, 1...processor (CPU), 3...key input unit, 7...timer, 10...interface.
Claims (1)
ロセツサと、 該プロセツサの指示によつて起動されるタイマ
ーと、 該プロセツサに接続され、該プロセツサにより
アクセスされる入力ユニツトとを含み、 該プロセツサは該入力ユニツトへのアクセスの
結果、該入力ユニツトからの要求がない場合及び
該入力ユニツトからの要求に対するジヨブを実行
した場合に、 該アクセスを中止するスリープモードに入ると
ともに該タイマを起動せしめ、 該タイマの一定時間計時によつて発生する割り
込みに応じて該プロセツサが該スリープモードを
脱出して該入力ユニツトをアクセスすることを特
徴とするプロセツサのスリープモード制御方式。[Claims] 1. A processor that executes a normal mode and a sleep mode, a timer that is activated by instructions from the processor, and an input unit that is connected to and accessed by the processor, As a result of accessing the input unit, if there is no request from the input unit or if the processor executes a job in response to a request from the input unit, the processor enters a sleep mode in which the access is stopped and starts the timer. A sleep mode control method for a processor, characterized in that the processor escapes from the sleep mode and accesses the input unit in response to an interrupt generated when the timer measures a certain period of time.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP60061373A JPS61220016A (en) | 1985-03-26 | 1985-03-26 | Sleeve mode control system of processor |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP60061373A JPS61220016A (en) | 1985-03-26 | 1985-03-26 | Sleeve mode control system of processor |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS61220016A JPS61220016A (en) | 1986-09-30 |
| JPH0326843B2 true JPH0326843B2 (en) | 1991-04-12 |
Family
ID=13169307
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP60061373A Granted JPS61220016A (en) | 1985-03-26 | 1985-03-26 | Sleeve mode control system of processor |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS61220016A (en) |
Families Citing this family (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS6247243A (en) * | 1985-08-24 | 1987-02-28 | Matsushita Electric Ind Co Ltd | transmission relay equipment |
| JPH0325237Y2 (en) * | 1985-09-13 | 1991-05-31 | ||
| JPH0731568B2 (en) * | 1987-04-27 | 1995-04-10 | 株式会社テック | Handy terminal |
| JPS6419897A (en) * | 1987-07-15 | 1989-01-23 | Tamura Electric Works Ltd | Key telephone system of function scattered processing control type |
| JP2740258B2 (en) * | 1989-05-09 | 1998-04-15 | 三洋電機株式会社 | Electronics |
| JP2757047B2 (en) * | 1989-11-02 | 1998-05-25 | セイコーインスツルメンツ株式会社 | Portable information device |
| DE4244858A1 (en) * | 1991-09-27 | 1995-10-05 | Toshiba Kawasaki Kk | Portable computer with a function for switching the CPU clock |
| JP3846504B2 (en) | 2005-01-07 | 2006-11-15 | オンキヨー株式会社 | Low power consumption device |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5979325A (en) * | 1982-10-29 | 1984-05-08 | Nec Home Electronics Ltd | Power consumption reducing circuit of computer |
-
1985
- 1985-03-26 JP JP60061373A patent/JPS61220016A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS61220016A (en) | 1986-09-30 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR920002754B1 (en) | Microcomputer system with sleep function to save power consumption | |
| US6000035A (en) | Method and system for improved power management in information processing system | |
| US5964847A (en) | Mobile client computer interacting with docking device | |
| US5801941A (en) | Mobile client computer programmed to establish soft keyboard targeting sensitivity | |
| US4924075A (en) | Smart IC card | |
| KR0142370B1 (en) | MS level display device using hardware cursor in portable computer and method thereof | |
| EP0257648A2 (en) | Portable medium | |
| US5515539A (en) | Apparatus and method for reducing power consumption by peripheral devices after downloading a program therefrom | |
| EP0180428A2 (en) | Portable computer | |
| JPH0326843B2 (en) | ||
| US5790118A (en) | Mobile client programmed to hide empty table elements | |
| EP0996050A2 (en) | Electronic device | |
| US5408423A (en) | Battery operated portable terminal device and method of operation | |
| JP2719416B2 (en) | IC card | |
| JP2724211B2 (en) | Computer system | |
| EP0766167A1 (en) | Power management of an information processing system | |
| JPH05297982A (en) | Portable computer | |
| JPS61199143A (en) | Dynamic check system for memory space | |
| JPH03248287A (en) | Bar code reader | |
| JPS61199140A (en) | Memory check system of data input device | |
| CN219936356U (en) | Take fingerprint identification's adjustable dual supply output industrial control host | |
| CN218676142U (en) | High-performance water control machine | |
| JPH04127211A (en) | Electronic devices with clock function | |
| JPH03226814A (en) | Portable terminal equipment | |
| KR900005490B1 (en) | Computer error diagnosis check circuit and method using LCD / LED |