JP3024308B2 - Data processing device - Google Patents

Data processing device

Info

Publication number
JP3024308B2
JP3024308B2 JP3251030A JP25103091A JP3024308B2 JP 3024308 B2 JP3024308 B2 JP 3024308B2 JP 3251030 A JP3251030 A JP 3251030A JP 25103091 A JP25103091 A JP 25103091A JP 3024308 B2 JP3024308 B2 JP 3024308B2
Authority
JP
Japan
Prior art keywords
state
data
power
control unit
clock
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
JP3251030A
Other languages
Japanese (ja)
Other versions
JPH0588795A (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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP3251030A priority Critical patent/JP3024308B2/en
Publication of JPH0588795A publication Critical patent/JPH0588795A/en
Application granted granted Critical
Publication of JP3024308B2 publication Critical patent/JP3024308B2/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 data processing apparatus such as a personal computer having a resume function for returning to a system state immediately before power-off when power is turned on.

【0002】[0002]

【従来の技術】近年、パーソナルコンピュータ等のデー
タ処理装置にあっては、例えば電源遮断時においてその
システム状態を保持し、電源再投入時に上記電源断直前
のシステム状態に復帰させるレジューム機能を搭載した
ものが考えられている。
2. Description of the Related Art In recent years, a data processing apparatus such as a personal computer has been equipped with a resume function of, for example, maintaining the system state when power is turned off and returning to the system state immediately before the power is turned off when power is turned on again. Things are considered.

【0003】すなわち、上記レジューム機能を搭載した
データ処理装置では、電源遮断時において、その遮断時
点におけるメモリ内容を遮断中継続的に保持し、この後
の電源再投入時において、上記予め保持されたメモリ内
容に応じてシステム動作を開始させ、電源断直前の状態
への復帰を図っている。
That is, in a data processing apparatus equipped with the resume function, when power is turned off, the contents of the memory at the time of the power shutoff are continuously held during the shutoff, and when the power is turned on again, the data is held in advance. The system operation is started in accordance with the contents of the memory, and the state is restored to the state immediately before the power is turned off.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、例えば
電源に電池を使用するデータ処理装置においては、この
レジューム機能に関する情報を電池容量の低下状態に合
わせてユーザーに的確に知らせることが行われていなか
ったため、ユーザーの操作ミスによるデータの消失や誤
動作等が生じる危険性があった
However, for example,
In data processing devices that use batteries for power,
When the information about the resume function is
The user is properly informed
Data has been lost or incorrectly
There was a danger of operation and the like .

【0005】本発明の課題は、装置の電源遮断要求時
に、その時点での装置の状態を調べて次回の電源投入時
での不都合を事前に防止できるようにすることである。
SUMMARY OF THE INVENTION It is an object of the present invention to check the state of a device at the time of a power-off request for the device and prevent inconvenience at the next power-on.

【0006】[0006]

【課題を解決するための手段】この発明は、データ処理
装置が、現在処理中のデータおよびシステムの動作状態
情報の記憶保持する一部の電源を除いた電源を遮断する
サスペンド状態に設定された後にあって、次回の電源投
入があった際は、上記記憶保持されていた情報を元に前
記サスペンド状態に移行する前の状態に当該装置を復帰
させるレジューム機能を有したデータ処理装置であっ
て、その装置に対する電源遮断要求があった際に、その
装置のその時点における電源残量がシステムの正常復帰
を保証する所定の電源容量あるか否かを判別する判別手
段と、上記判別手段により上記所定の電源容量あると判
別された際は、上記サスペンド状態での電源遮断を行う
第1の電源遮断手段と、上記判別手段により上記所定の
電源容量ないと判別された際は、その電源残量が極端に
低下していてレジューム復帰できない旨の報知を行った
上で、当該装置を前記サスペンド状態への設定を行わず
に全システムの電源を遮断する第2の電源遮断手段と、
を具備したことを特徴とする。
According to the present invention, a data processing apparatus is set in a suspend state in which a power supply is cut off except for a part of a power supply that stores and holds data currently being processed and operation state information of a system. A data processing apparatus having a resume function for returning the apparatus to a state before shifting to the suspend state based on the stored information when the power is turned on next time. When there is a power cutoff request for the device, determining means for determining whether or not the remaining power of the device at that time has a predetermined power capacity that guarantees normal recovery of the system; and When it is determined that the power supply has the predetermined power supply capacity, the first power supply cutoff means for shutting off the power supply in the suspended state is determined, and the predetermined power supply capacity is not determined by the determination means. When the power is turned off, the system notifies the user that the remaining power is extremely low and cannot resume from the resume, and then turns off the power of all the systems without setting the apparatus to the suspend state. Power-off means,
It is characterized by having.

【0007】[0007]

【0008】[0008]

【実施例】以下図面により本発明の一実施例について説
明する。図1はデータ処理装置のシステム構成を示す外
観図であり、このデータ処理装置は、その中心機器とし
てパーソナルコンピュータ1を備えている。
An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is an external view showing a system configuration of a data processing device. The data processing device includes a personal computer 1 as a central device thereof.

【0009】このパーソナルコンピュータ1は、例えば
携帯可能なブック型パソコンとして使用され、本体ケー
スにキーボード2及び液晶表示部3を有し、キーボード
2側の右側面にはメモリカード装着部4が備えられる。
This personal computer 1 is used, for example, as a portable book-type personal computer, and has a keyboard 2 and a liquid crystal display unit 3 in a main body case, and a memory card mounting unit 4 on the right side of the keyboard 2 side. .

【0010】また、このパーソナルコンピュータ1にお
ける本体ケースの外周側面には、複数の周辺装置との接
続端子が備えられ、例えば拡張ディスクドライバ5、プ
リンタ6、電子手帳(RS232Cを搭載した他の計算
機)7や据置式拡張ユニット8等が接続される。そし
て、この拡張ユニット8には、さらに拡張ディスク装着
部9が備えられる。
On the outer peripheral side of the main body case of the personal computer 1, connection terminals for a plurality of peripheral devices are provided. For example, an extended disk driver 5, a printer 6, an electronic organizer (another computer equipped with RS232C) 7 and the stationary extension unit 8 are connected. The expansion unit 8 further includes an expansion disk mounting section 9.

【0011】図2は上記データ処理装置における主要電
子回路の全体構成を示すブロック図であり、この主要電
子回路は、3つのチップA,B,Cから構成され、チッ
プAでは、パーソナルコンピュータ1の中心機能に対応
するプログラムの実行,演算制御処理等が行なわれる。
また、チップBでは、各種入出力装置,周辺装置とのイ
ンターフェイス処理や、電源状態,入出力モード,動作
周波数等のシステム状態の管理が行なわれる。そして、
チップCでは、上記プログラム実行情報やシステム管理
情報等を液晶表示部3に表示させる表示制御処理が行な
われる。
FIG. 2 is a block diagram showing an overall configuration of a main electronic circuit in the data processing apparatus. The main electronic circuit is composed of three chips A, B, and C. Execution of a program corresponding to the central function, arithmetic control processing, and the like are performed.
In the chip B, interface processing with various input / output devices and peripheral devices, and management of a system state such as a power supply state, an input / output mode, and an operating frequency are performed. And
In the chip C, a display control process for displaying the program execution information and the system management information on the liquid crystal display unit 3 is performed.

【0012】上記チップAには、CPU(中央処理装
置)11やDMAC(ダイレクトメモリアクセスコント
ローラ)12,ROM13,RAM14の他、コマンド
記憶制御部15,シリアルデータインターフェイス1
6,インターラプト制御部17,RAMディスク制御部
18,スリープ制御部19,リフレッシュ制御部20,
クロック発生制御部21,バス制御部22が備えられ、
システムバス23により接続される。
The chip A includes a CPU (Central Processing Unit) 11, a DMAC (Direct Memory Access Controller) 12, a ROM 13, a RAM 14, a command storage control unit 15, and a serial data interface 1.
6, interrupt control unit 17, RAM disk control unit 18, sleep control unit 19, refresh control unit 20,
A clock generation control unit 21 and a bus control unit 22;
They are connected by a system bus 23.

【0013】CPU11は、ROM13から読出される
システムプログラムに応じて、該ROM13に予め記憶
されるプログラムや、外部入力されるプログラムを実行
するもので、RAM14に対しては、上記プログラム実
行及びそのプログラム実行中における必要データ等が入
出力される。
The CPU 11 executes a program stored in advance in the ROM 13 or a program input from the outside in accordance with a system program read from the ROM 13. Necessary data during execution is input and output.

【0014】コマンド記憶制御部15は、電源投入時に
電源断直前のシステム状態に復帰させるレジュームモー
ドの設定時において、電源断に伴うサスペンド状態移行
前のシステムコマンドデータの記憶保持を行なうもの
で、このコマンド記憶制御部15により記憶保持された
コマンドデータは、電源投入に伴うサスペンド状態の解
除処理に応じて読出され電源断直前のシステム状態に復
帰される。
The command storage control unit 15 stores and retains the system command data before the transition to the suspend state due to the power-off when setting the resume mode for returning to the system state immediately before the power-off when the power is turned on. The command data stored and held by the command storage control unit 15 is read out and returned to the system state immediately before the power is turned off in response to the suspending state release processing accompanying the power on.

【0015】ここで、上記サスペンド状態移行時におい
て記憶保持されるコマンドデータには、チェックサムデ
ータが作成されて同時保持され、サスペンド状態解除時
における読出しコマンドデータに基づくチェックサムデ
ータとの一致判断が行なわれる。
Here, the command data stored and held at the time of the transition to the suspend state is created and simultaneously held at the same time, and it is determined whether the command data coincides with the checksum data based on the read command data at the time of releasing the suspended state. Done.

【0016】シリアルデータインターフェイス16は、
上記チップB及びチップCとの間でシリアルデータの入
出力処理を行なうもので、このシリアルデータインター
フェイス16では、チップBからチップCを介して与え
られた、例えばクロック周波数の設定データやレジュー
ムモードの設定データ等、システム状態を示すシリアル
データが入力され、その応答データ等がチップBに出力
される。インターラプト制御部17は、入出力される種
々の割込み信号に応じて、所定の優先順位に従ってCP
U11に対して割込み処理を行なわせるものである。
The serial data interface 16
The serial data interface 16 performs input / output processing of serial data between the chip B and the chip C. The serial data interface 16 receives, for example, clock frequency setting data and resume mode data supplied from the chip B via the chip C. Serial data indicating a system state such as setting data is input, and response data or the like is output to the chip B. The interrupt control unit 17 controls the CP according to a predetermined priority in accordance with various input / output interrupt signals.
This causes U11 to perform an interrupt process.

【0017】RAMディスク制御部18は、該RAMデ
ィスク制御部18に接続されたRAMディスク18aに
対するデータアクセスを行なうもので、この場合、RA
Mディスク18aはシリアルメモリからなり、フロッピ
ディスクに対するアクセス処理と同様にして扱われる。
The RAM disk control unit 18 performs data access to the RAM disk 18a connected to the RAM disk control unit 18.
The M disk 18a is composed of a serial memory and is handled in the same manner as the access processing for a floppy disk.

【0018】スリープ制御部19は、スリープモードの
設定時において、動作中未処理状態での所定時間経過時
において、CPU11をホルト(HALT)状態に移行
させるもので、上記システム動作中の未処理状態は、シ
ステムバス23の使用状態に応じて判断される。
The sleep control unit 19 causes the CPU 11 to shift to the HALT state when a predetermined time has elapsed in the unprocessed state during operation when the sleep mode is set. Is determined according to the use state of the system bus 23.

【0019】リフレッシュ制御部20は、RAM14の
一部として備えられるDRAMに対するメモリデータの
リフレッシュ制御を行なうもので、このリフレッシュ方
式には、2種のクロック信号を同一の入力ピンから時分
割で入力するCAS(columnaddress strobe) before
RAS(row address strobe)方式が用いられる。
The refresh control section 20 performs refresh control of memory data for a DRAM provided as a part of the RAM 14. In this refresh method, two kinds of clock signals are input from the same input pin in a time-division manner. CAS (column address strobe) before
The RAS (row address strobe) method is used.

【0020】ここで、上記DRAMに対するリフレッシ
ュクロック信号は、通常動作時において、このチップA
内で発生されるシステムクロックφSYS に基づき作成さ
れ、また、上記レジュームモード設定時におけるサスペ
ンド状態において、上記チップBから供給されるリフレ
ッシュ用クロックφREFRに基づき作成される。
Here, the refresh clock signal for the DRAM is supplied to the chip A during normal operation.
It is created on the basis of the system clock φSYS generated in the memory, and based on the refresh clock φREFR supplied from the chip B in the suspend state when the resume mode is set.

【0021】クロック発生制御部21は、上記シリアル
データインターフェイス16を通して入力されるクロッ
ク周波数の設定データに基づき、CPU11における動
作クロックを発生させるもので、この場合、CPU11
における動作クロック周波数は、5MHz又は10MHzの
何れか一方に選択設定される。
The clock generation control unit 21 generates an operation clock in the CPU 11 based on the clock frequency setting data input through the serial data interface 16.
Is selectively set to either 5 MHz or 10 MHz.

【0022】バス制御部22は、CPU11における動
作制御に基づき上記各チップ間及びチップ内の各ブロッ
ク間におけるシステムバス23での選択的断接制御を行
なうもので、このバス制御部22におけるバス制御情報
は上記スリープ制御部19に対し、システム動作中未処
理状態の判断要素として与えられる。
The bus control unit 22 selectively controls connection and disconnection of the system bus 23 between the above chips and between blocks within the chip based on the operation control of the CPU 11. The information is given to the sleep control unit 19 as a determination factor of an unprocessed state during system operation.

【0023】一方、上記チップBには、キーインターフ
ェイス24,RS232Cインターフェイス25、プリ
ンタインターフェイス26、FDDインターフェイス2
7、シリアルデータインターフェイス28の他、電源制
御部29,システム状態管理部30,クロック発生部3
1が備えられ、システムバス23により接続される。
On the other hand, the chip B includes a key interface 24, an RS232C interface 25, a printer interface 26, and an FDD interface 2.
7. In addition to the serial data interface 28, a power control unit 29, a system state management unit 30, a clock generation unit 3
1 and are connected by a system bus 23.

【0024】上記キーインターフェイス24には、キー
ボード2が接続され、上記RS232Cインターフェイ
ス25には、例えば前記電子手帳7が接続され、上記プ
リンタインターフェイス26には、前記プリンタ6が接
続され、FDDインターフェイス27には、前記拡張デ
ィスクドライバ5等が接続され、それぞれシステムバス
23を介しCPU11との間で入出力制御が行なわれ
る。
The keyboard 2 is connected to the key interface 24, the electronic organizer 7 is connected to the RS232C interface 25, the printer 6 is connected to the printer interface 26, and the FDD interface 27 is connected to the printer interface 26. Is connected to the expansion disk driver 5 and the like, and controls input / output with the CPU 11 via the system bus 23.

【0025】シリアルデータインターフェイス28は、
上記チップC及びチップAとの間でシリアルデータの入
出力処理を行なうもので、このシリアルデータインター
フェイス28では、例えば表示状態設定データがチップ
Cに与えられ、また、クロック周波数の設定データやレ
ジュームモードの設定データ等がチップCからチップA
に与えられる。そして、各種システム状態の応答データ
等はチップAを経由してこのチップBのシリアルデータ
インターフェイス28に戻される。
The serial data interface 28
The serial data input / output process is performed between the chip C and the chip A. In the serial data interface 28, for example, display state setting data is given to the chip C, and clock frequency setting data and resume mode are set. Setting data etc. from chip C to chip A
Given to. Then, response data of various system states is returned to the serial data interface 28 of the chip B via the chip A.

【0026】電源制御部29は、該電源制御部29に接
続されたACアダプタあるいは乾電池等からなる電源3
2により得られる電源電圧を、各ブロック毎に必要とす
る電圧レベルに変換して供給するもので、このチップB
上の一部のブロックに対してはシステム管理動作電圧V
SMが供給され、チップA上の各ブロックに対してはシス
テム動作電圧VSYS が供給され、また、バックアップを
要するメモリブロックに対してはメモリバックアップ電
圧VMEM が供給され、さらに、チップC上の各ブロック
や液晶表示部3に対しては表示用電圧VDISPが供給され
る。
The power supply control unit 29 includes a power supply 3 such as an AC adapter or a dry battery connected to the power supply control unit 29.
The power supply voltage obtained by the above-described chip B is converted into a voltage level required for each block and supplied.
For some blocks above, the system management operating voltage V
The SM is supplied, the system operating voltage VSYS is supplied to each block on the chip A, the memory backup voltage VMEM is supplied to a memory block requiring a backup, and each block on the chip C is further supplied. And the display voltage VDISP is supplied to the liquid crystal display unit 3.

【0027】システム状態管理部30は、マイクロコン
ピュータにより構成され、電源状態、クロック周波数の
設定状態、レジュームモードやスリープモードの設定状
態、表示モードの設定状態、キー入力モードの設定状
態、ディスクメモリのアクセス状態、現在時刻等、この
パーソナルコンピュータ1の各システム状態を管理する
もので、上記各システム状態の設定データは、上記シリ
アルデータインターフェイス28を通してチップCやチ
ップAに送られる。
The system state management unit 30 is constituted by a microcomputer, and includes a power supply state, a clock frequency setting state, a resume mode and a sleep mode setting state, a display mode setting state, a key input mode setting state, and a disk memory setting state. Each system state of the personal computer 1, such as an access state and a current time, is managed. The setting data of each system state is sent to the chip C or the chip A through the serial data interface 28.

【0028】クロック発生部31は、このチップB上に
おけるシステム状態管理用の動作クロックφSMと前記レ
ジュームモード設定時におけるサスペンド状態におい
て、チップAのリフレッシュ制御部20に供給するため
のリフレッシュ用クロックφREFRとを発生すると共に、
現在時刻の計時動作やタイマ動作するもので、このクロ
ック発生部20における現在時刻の計時データは、常
時、上記システム状態管理部30に対し与えられる。
The clock generator 31 includes an operation clock φSM for system state management on the chip B and a refresh clock φREFR for supplying to the refresh controller 20 of the chip A in the suspend state when the resume mode is set. Together with
The clock operation of the current time and the timer operation are performed. The clock data of the current time in the clock generation unit 20 is always given to the system state management unit 30.

【0029】一方、チップCには、シリアルデータイン
ターフェイス33,液晶表示部インターフェイス34の
他、システム管理表示制御部35及びシステム状態表示
制御部36,表示制御部37が、それぞれシステムバス
23を介して接続され、液晶表示部インターフェイス3
4には前記液晶表示部3が接続され、また、このチップ
Cにおけるシステムバス23に対しては、V(Video)-R
AM38が接続される。
On the other hand, in the chip C, in addition to the serial data interface 33 and the liquid crystal display interface 34, a system management display control unit 35, a system status display control unit 36, and a display control unit 37 are respectively provided via the system bus 23. Connected, LCD display interface 3
4 is connected to the liquid crystal display unit 3, and a system bus 23 of the chip C is connected to a V (Video) -R
AM 38 is connected.

【0030】システム管理表示制御部35は、上記チッ
プB上におけるシステム状態管理部30において管理さ
れるクロック周波数やレジュームモード,スリープモー
ド,表示モード,現在時刻等、各種システム状態を選択
設定するための画面表示制御、及び電源残量低下警告の
ための画面表示制御を行なうもので、これらシステム状
態の選択設定画面及び電源残量低下警告画面は、上記シ
リアルデータインターフェイス33を介して入力される
各種状態管理データに応じて表示領域上中央に展開すべ
くウインド画面として作成され、液晶表示部インターフ
ェイス34を通して液晶表示部3にウインド表示され
る。
The system management display control unit 35 is used to select and set various system states such as a clock frequency, a resume mode, a sleep mode, a display mode, and a current time managed by the system state management unit 30 on the chip B. A screen display control and a screen display control for a power remaining amount warning are performed. The system state selection setting screen and the power remaining amount warning warning screen include various states input through the serial data interface 33. A window screen is created to be developed at the center of the display area in accordance with the management data, and is displayed on the liquid crystal display unit 3 through the liquid crystal display interface 34 in a window.

【0031】この場合、上記システム状態の選択設定画
面は、キーボード2におけるキー入力操作によりシリア
ルデータとして与えられる制御データに基づき適宜表示
される。
In this case, the system state selection setting screen is appropriately displayed based on control data given as serial data by a key input operation on the keyboard 2.

【0032】システム状態表示制御部36は、上記チッ
プB上におけるシステム状態管理部30において管理さ
れるクロック周波数やレジュームモード,スリープモー
ド,表示モード,現在時刻等の他、キー入力モードやデ
ィスクメモリの動作状態等、各種システムの設定状態を
示す画面表示制御を行なうもので、このシステム状態の
表示画面は、上記シリアルデータインターフェイス33
を介して入力される各種状態設定データに応じて表示領
域上下端に沿って帯状展開すべく作成され、液晶表示部
インターフェイス34を通して液晶表示部3に常時ウイ
ンド表示される。
The system status display controller 36 controls the clock frequency, the resume mode, the sleep mode, the display mode, the current time, etc. managed by the system status manager 30 on the chip B, as well as the key input mode and the disk memory. A screen display control indicating the setting state of various systems such as an operation state is performed.
In accordance with various state setting data input through the interface, it is created so as to be strip-shaped along the upper and lower ends of the display area, and is always displayed on the liquid crystal display unit 3 through the liquid crystal display interface 34 in a window.

【0033】ここで、チップBのシステム状態管理部3
0にて管理される各種システム状態データに関する表示
制御データや選択設定データ等は、全てシリアルデータ
として各チップ上におけるシリアルデータインターフェ
イス28→33→16を通して入出力処理される。
Here, the system state management unit 3 of the chip B
Display control data, selection setting data, and the like relating to various system status data managed by 0 are all input / output as serial data through the serial data interface 28 → 33 → 16 on each chip.

【0034】図3は上記データ処理装置の各チップ間に
て入出力されるシリアルデータのデータ構成を示すもの
で、シリアルデータは、システム状態の表示制御命令や
切換え命令等のコマンドとこのコマンドに応じたデー
タ、例えばシステム状態の設定内容等を示すデータとが
交互に転送される。
FIG. 3 shows the data structure of serial data input and output between the chips of the data processing apparatus. The serial data is composed of commands such as a display control command and a switching command for the system state and a command for this command. The corresponding data, for example, the data indicating the setting contents of the system state and the like are alternately transferred.

【0035】図4は上記データ処理装置の各チップA,
B,C上に備えられるシリアルデータインターフェイス
16,28,33における入出力処理を示すフローチャ
ートであり、すなわち、1区切りのシリアルデータ入力
時には、まずそのシリアルデータが自チップ上ブロック
に対するコマンドか否か判断される(ステップS1,S
2)。
FIG. 4 shows each chip A,
6 is a flowchart showing input / output processing in the serial data interfaces 16, 28, and 33 provided on B and C, that is, when inputting serial data of one segment, first, it is determined whether or not the serial data is a command for a block on its own chip; (Steps S1, S
2).

【0036】このステップS2において「Y」、つま
り、入力されたシリアルデータが自チップ上ブロックに
対するコマンドデータであると判断された場合には、そ
のコマンドデータが取込まれ、コマンド対象ブロックに
対してその制御信号が出力される(ステップS3,S
4)。
If it is determined in step S2 that the input serial data is command data for the block on the own chip, the command data is fetched, and The control signal is output (steps S3, S
4).

【0037】一方、上記ステップS2において「N」、
つまり、入力されたシリアルデータが自チップ上ブロッ
クに対するコマンドデータでないと判断された場合に
は、該シリアルデータはシリアルバスにおける次のチッ
プ上に備えられたシリアルデータインターフェイスに対
しそのまま転送出力される(ステップS4)。
On the other hand, "N" in step S2,
That is, when it is determined that the input serial data is not command data for the block on the own chip, the serial data is transferred and output as it is to the serial data interface provided on the next chip on the serial bus ( Step S4).

【0038】図5は上記データ処理装置におけるレジュ
ーム機能部を除いた電子回路の構成を示すブロック図で
あり、チップB上におけるシステム状態管理部30は、
マイコン(マイクロコンピュータ)39及びメモリスイ
ッチ記憶部40により構成され、前記キーインターフェ
イス24は、マイコン39及びキー入力ポート41によ
り構成される。また、チップC上における液晶表示部イ
ンターフェイス34は、液晶表示制御部42,段調・反
転制御部43,及び表示バッファ44により構成され
る。
FIG. 5 is a block diagram showing the configuration of an electronic circuit excluding the resume function unit in the data processing apparatus.
The key interface 24 includes a microcomputer 39 and a memory switch storage unit 40, and the key interface 24 includes a microcomputer 39 and a key input port 41. In addition, the liquid crystal display interface 34 on the chip C includes a liquid crystal display control unit 42, a step tone / inversion control unit 43, and a display buffer 44.

【0039】ここで、上記システム状態管理部30にお
いて記憶管理される各種システム状態情報は、CPU1
1における動作クロック周波数φSYS の設定情報「5/
10(MHz)」、レジュームモード,スリープモード,
反転表示モードそれぞれの設定情報「ON/OFF」、
現在時刻の設定情報「時/分」、表示段調の設定情報
「8/2(段調)」、RS232C搭載計算機とのアク
セスボーレートの設定情報「1200/300(ボ
ー)」、プリンタ接続ピン数の設定情報「16/24
(ピン)」、RS232C搭載機器とのアクセスデータ
ビット長の設定情報「7/8(ビット)」、RS232
C搭載機器に対するパリティチェックの設定情報「ON
/OFF」、メモリディスクの動作状態情報「FDD/
RAM」、キー入力モードの設定情報「CAPS/NU
M」等であり、この内、上記RS232C関連のアクセ
スボーレート,アクセスデータビット長,パリティチェ
ックの設定内容、及び上記プリンタピン数の設定内容
は、メモリスイッチ記憶部40にセットされる。一方、
電源制御部29を通して得られる電源状態情報は、マイ
コン39により判断される。
Here, various system status information stored and managed by the system status management unit 30 is stored in the CPU 1.
1, the setting information of the operating clock frequency φSYS “5 /
10 (MHz) ", resume mode, sleep mode,
Setting information “ON / OFF” for each reverse display mode,
Current time setting information "hour / minute", display gradation setting information "8/2 (gradation)", access baud rate setting information with computer equipped with RS232C "1200/300 (baud)", number of printer connection pins Setting information "16/24
(Pin) ”, setting information“ 7/8 (bit) ”of the access data bit length with the RS232C-equipped device,
Parity check setting information "ON
/ OFF ", the operation status information of the memory disk" FDD /
RAM ", key input mode setting information" CAPS / NU "
M ”and the like, among which the setting contents of the access baud rate, access data bit length, parity check, and the number of printer pins related to the RS232C are set in the memory switch storage unit 40. on the other hand,
Power supply state information obtained through the power supply control unit 29 is determined by the microcomputer 39.

【0040】図6は上記データ処理装置のシステム状態
管理部30にて管理される各種システム状態情報の液晶
表示部3に対する表示状態を示すもので、同図(A)は
各種システム状態の表示画面を示す図、同図(B)は各
種システム状態情報の選択設定画面を示す図、同図
(C)は電源残量警告画面を示す図である。
FIG. 6 shows the display status of various system status information managed by the system status management unit 30 of the data processing device on the liquid crystal display unit 3. FIG. 6A shows a display screen of various system statuses. FIG. 6B is a diagram showing a selection setting screen for various system status information, and FIG. 7C is a diagram showing a power remaining amount warning screen.

【0041】すなわち、図6(A)で示すように、キー
入力モードの設定情報「CAPS/NUM」、メモリデ
ィスクの動作状態情報「FDD/RAM」、レジューム
モード,スリープモードそれぞれの設定情報「RESU
ME」,「SLEEP」、動作クロックφSYS の設定情
報「5/10(MHz)」、そして、現在時刻の設定情報
「時/分」は、何れも現在のシステム状態情報として、
上記マイコン39から各シリアルデータインターフェイ
ス28,33及びシステム状態表示制御部36を通し、
液晶表示部3に対し常時表示されるもので、キー入力モ
ードの設定情報「CAPS/NUM」は、キーボード2
における「CAPS」キー2dあるいは「NUM」キー
2eの押下に応じて点灯される。
That is, as shown in FIG. 6A, the setting information "CAPS / NUM" of the key input mode, the operation state information "FDD / RAM" of the memory disk, and the setting information "RESU" of each of the resume mode and the sleep mode.
"ME", "SLEEP", setting information "5/10 (MHz)" of the operation clock φSYS, and setting information "hour / minute" of the current time are all set as current system state information.
Through the serial data interfaces 28 and 33 and the system status display controller 36 from the microcomputer 39,
The setting information “CAPS / NUM” of the key input mode is always displayed on the liquid crystal display unit 3.
Is turned on in response to depression of the "CAPS" key 2d or the "NUM" key 2e.

【0042】また、メモリディスクの動作状態情報「F
DD/RAM」は、FDDインターフェイス27又はR
AMディスク制御部18を通したディスクアクセス時に
対応して、「FDD」又は「RAM」が点灯される。ま
た、レジュームモード,スリープモードそれぞれの設定
情報は、キー入力操作によるレジュームモードあるいは
スリープモードの選択設定「ON/OFF」時に対応し
て、「RESUME」,「SLEEP」が点灯される。
また、動作クロックφSYS の設定情報「5/10(MH
z)」は、キー入力操作によるクロック周波数の選択設
定時に対応して、「5MHz」又は「10MHz」が点灯さ
れる。さらに、現在時刻の設定情報は、クロック発生部
31の時計回路において1秒毎あるいは10分の1秒毎
に計時される現在時刻「時/分」に対応して更新表示さ
れる。
Further, the operation state information "F
DD / RAM ”is the FDD interface 27 or R
“FDD” or “RAM” is turned on in response to a disk access through the AM disk control unit 18. In the setting information of the resume mode and the sleep mode, “RESUME” and “SLEEP” are turned on in response to the selection setting “ON / OFF” of the resume mode or the sleep mode by a key input operation.
Also, the setting information of the operation clock φSYS “5/10 (MH
“z)” is turned on with “5 MHz” or “10 MHz” corresponding to the clock frequency selection setting by key input operation. Further, the current time setting information is updated and displayed in the clock circuit of the clock generation unit 31 in correspondence with the current time "hour / minute" measured every second or every tenth of a second.

【0043】ここで、上記各種システム状態の選択設定
を行なうのに、キーボード2における「SYS」キー2
aを操作すると、その制御信号がマイコン39からシリ
アルデータインターフェイス28,33を通してシステ
ム管理表示制御部35に転送される。すると、システム
管理表示制御部35では、各種システム状態の選択設定
画面が上記各種システム状態設定情報に基づき作成さ
れ、図6(B)で示すように液晶表示部3に表示され
る。
Here, the "SYS" key 2 on the keyboard 2 is used to select and set the various system states.
When a is operated, the control signal is transferred from the microcomputer 39 to the system management display control unit 35 through the serial data interfaces 28 and 33. Then, in the system management display control unit 35, a selection setting screen for various system states is created based on the various system state setting information, and displayed on the liquid crystal display unit 3 as shown in FIG.

【0044】この場合、各種システム状態の選択設定操
作あるいは該選択設定画面のスクロール操作は、キーボ
ード2における「カーソル」キー2b及び「リターン」
キー2cを用いて行なうもので、この制御信号もまた、
マイコン39からシリアルデータインターフェイス28
を介して出力される。
In this case, the selection setting operation of various system states or the scroll operation of the selection setting screen is performed by the "cursor" key 2b and the "return" key on the keyboard 2.
This control is performed using the key 2c.
From the microcomputer 39 to the serial data interface 28
Is output via.

【0045】すなわち、上記図6(B)における各種シ
ステム状態の選択設定画面において、例えばクロック周
波数φSYS が「10MHz」に選択されると、システム管
理表示制御部35にて作成される画面上のクロック周波
数φSYS の設定情報が「10MHz」としてカーソル表示
されると共に、そのクロック制御信号がチップA上のク
ロック発生制御部21に転送され、CPU11に対する
動作クロックφSYS が10MHzに切換え設定されると共
に、チップC上のシステム状態表示制御部36にクロッ
ク設定に応じた表示データが転送され、液晶表示部3の
下端に「10MHz」が点灯表示される。
That is, when, for example, the clock frequency φSYS is selected to be “10 MHz” in the selection setting screen of various system states in FIG. 6B, the clock on the screen created by the system management display control unit 35 is displayed. The setting information of the frequency φSYS is displayed as a cursor as “10 MHz”, the clock control signal is transferred to the clock generation control unit 21 on the chip A, the operation clock φSYS for the CPU 11 is switched to 10 MHz, and the chip C Display data corresponding to the clock setting is transferred to the upper system status display controller 36, and “10 MHz” is lit and displayed at the lower end of the liquid crystal display unit 3.

【0046】また、上記図6(B)における各種システ
ム状態の選択設定画面において、例えばレジュームモー
ドが「ON」に選択されると、マイコン39内部におけ
るシステム状態レジスタにフラグセットされると共に、
そのレジュームモードの設定に伴う表示データがチップ
C上のシステム状態表示制御部36に転送され、液晶表
示部3の下端に「RESUME」が点灯表示される。
When, for example, the resume mode is selected to "ON" on the selection screen of various system states in FIG. 6B, a flag is set in a system state register inside the microcomputer 39, and
The display data associated with the setting of the resume mode is transferred to the system status display control unit 36 on the chip C, and “RESUME” is lit on the lower end of the liquid crystal display unit 3.

【0047】さらに、上記図6(B)における各種シス
テム状態の選択設定画面において、例えばスリープモー
ドが「ON」に選択されると、マイコン39内部におけ
るシステム状態レジスタにフラグセットされると共に、
そのスリープモードの設定に伴う表示データがチップC
上のシステム状態表示制御部36に転送され、液晶表示
部3の下端に「SLEEP」が点灯表示される。
Further, when, for example, the sleep mode is selected to be “ON” on the selection setting screen for various system states in FIG. 6B, a flag is set in a system state register inside the microcomputer 39, and
The display data accompanying the setting of the sleep mode is chip C
The data is transferred to the upper system status display controller 36, and "SLEEP" is lit on the lower end of the liquid crystal display 3.

【0048】また、上記図6(B)における各種システ
ム状態の選択設定画面において、例えば表示段調が「2
段調」に、反転表示モードが「OFF」に選択される
と、システム管理表示部35にて作成される画面上の段
調設定情報,反転設定情報がそれぞれ「2段調」,「O
FF」としてカーソル表示されると共に、その段調,反
転制御信号が段調・反転制御部43に転送され、表示段
調が2段調に、反転表示モードがOFFに切換え設定さ
れる。
In the selection setting screen for various system states shown in FIG.
When the “tone” is selected and the inverted display mode is selected as “OFF”, the tone setting information and the inverted setting information on the screen created by the system management display unit 35 are “two-step” and “O”, respectively.
A cursor is displayed as "FF", and the tone and inversion control signal are transferred to the tone and inversion control unit 43, and the display tone is set to two-tone and the inverted display mode is switched to OFF.

【0049】そして、上記図6(B)における各種シス
テム状態の選択設定画面をスクロール操作して時間情報
を表示させた状態で、時刻調整やタイマ時間の調整が行
なわれると、マイコン39を通してクロック発生部31
の時計回路やタイマ回路が制御され、時刻設定及びタイ
マ時間が設定されると共に、その時刻設定データがチッ
プC上のシステム状態表示制御部36に転送され、液晶
表示部3の下端に該設定時刻が表示される。
When time adjustment or timer time adjustment is performed in a state where time information is displayed by scrolling the selection setting screen for various system states in FIG. 6B, a clock is generated through the microcomputer 39. Part 31
The clock circuit and the timer circuit are controlled to set the time and the timer time, and the time setting data is transferred to the system status display control unit 36 on the chip C, and the set time is displayed at the lower end of the liquid crystal display unit 3. Is displayed.

【0050】一方、電源制御部29を通して、電源残量
が所定量以下に低下したことがマイコン39により判断
されると、電源警告制御信号がチップCにおけるシステ
ム管理表示制御部35に転送され、電源残量低下警告の
ためのメッセージ画面が作成されると共に、図6(C)
で示すように、液晶表示部3にウインド表示されるよう
になる。
On the other hand, when the microcomputer 39 determines through the power supply control unit 29 that the remaining power supply has fallen below a predetermined amount, a power supply warning control signal is transferred to the system management display control unit 35 in the chip C, and the power supply A message screen for a low remaining amount warning is created, and FIG.
As shown by, a window is displayed on the liquid crystal display unit 3.

【0051】すなわち、上記複数チップA,B,Cから
なるデータ処理装置において、各チップA,B,C上に
搭載される多数のブロック間を複数信号線からなるシス
テムバス23を介して接続すると共に、CPU11の処
理に関係しない、つまり、処理速度の高速化を必要とし
ない各種システム状態に関するコマンドやデータを、シ
リアルデータインターフェイス16,28,33を介し
てシリアル転送する構成としたので、各チップA,B,
Cにおける入出力端子数を極力少なく抑えることができ
る。
That is, in the data processing device including the plurality of chips A, B, and C, a large number of blocks mounted on each of the chips A, B, and C are connected via the system bus 23 including a plurality of signal lines. At the same time, commands and data related to various system states that are not related to the processing of the CPU 11, that is, the processing speed does not need to be increased, are serially transferred via the serial data interfaces 16, 28, and 33. A, B,
The number of input / output terminals in C can be minimized.

【0052】図7は上記データ処理装置におけるスリー
プ及びレジューム機能部に係わる電子回路の構成を示す
ブロック図であり、スリープ機能部はCPU11及びス
リープ制御部19を中心にして構成され、レジューム機
能部はマイコン39及びコマンド判断部45及びSRA
M46からなるコマンド記憶制御部15を中心にして構
成される。
FIG. 7 is a block diagram showing a configuration of an electronic circuit related to a sleep and resume function unit in the data processing apparatus. The sleep function unit is mainly composed of the CPU 11 and the sleep control unit 19, and the resume function unit is The microcomputer 39, the command determination unit 45, and the SRA
The command storage control unit 15 including M46 is mainly configured.

【0053】スリープ制御部19は、CPU11に対す
るスリープモードの設定時において、該CPU11から
バスコントローラ22に対するバス制御信号を監視して
バス使用回数が所定時間内で期待値以下である場合にC
PU11を休止状態とする「スリープイン」の制御を行
ない、また、キーボード2や他の接続機器からの入力イ
ンターラプトが生じた場合にCPU11の休止状態を解
除する「スリープアウト」の制御を行なうもので、CP
U11では上記「スリープイン」に伴いJOBEND信
号がチップB上のマイコン39に対し出力される。
When setting the sleep mode for the CPU 11, the sleep control unit 19 monitors the bus control signal from the CPU 11 to the bus controller 22, and if the number of times the bus has been used is less than the expected value within a predetermined time, the C
A “sleep-in” control that puts the PU 11 into a sleep state, and a “sleep-out” control that releases the sleep state of the CPU 11 when an input interrupt from the keyboard 2 or another connected device occurs. And CP
In U11, a JOBEND signal is output to the microcomputer 39 on the chip B in accordance with the "sleep-in".

【0054】コマンド判断部45は、レジュームモード
が設定された状態での通常動作時において、CPU11
から出力されるI/Oアドレス及びデータが、DMAC
12あるいはGDC(グラフィックディスプレイコント
ローラ)48に対するコマンドであるか否かを判断し、
コマンドである場合にゲートアレー等により一義的にS
RAMアドレスを作成するもので、つまり、CPU11
から出力されるDMAC12あるいはGDC48に対す
るコマンドデータは、順次SRAM46に対し書込まれ
記憶されることになる。
The command judging section 45 detects the CPU 11 during the normal operation with the resume mode set.
Address and data output from the DMAC
12 or a command to the GDC (graphic display controller) 48.
If it is a command, it is uniquely determined by a gate array or the like.
A RAM address is created, that is, the CPU 11
Command data for the DMAC 12 or the GDC 48 output from the RAM 46 are sequentially written and stored in the SRAM 46.

【0055】図8は上記データ処理装置のコマンド判断
部45におけるレジュームモード設定時のコマンド書込
み動作を示すタイミングチャートであり、CPU11か
らのアドレスデータは、CPU動作クロックφSYS の4
周期毎に変化し、データは上記アドレスデータの変化時
点から動作クロックφSYS の1周期後に出力されるもの
で、このデータ出力時点から動作クロックφSYS 2周期
分のI/O書込みに際し、上記コマンド判断部45にお
いてDMAC12あるいはGDC48に対するコマンド
データと判断された場合には、該CPU11からのコマ
ンドデータはSRAM46に対し書込まれるようにな
る。
FIG. 8 is a timing chart showing a command writing operation when the resume mode is set in the command judging section 45 of the data processing apparatus.
The data changes every cycle, and the data is output one cycle of the operation clock φSYS after the change of the address data. When writing I / O for two cycles of the operation clock φSYS from the data output, the command determination unit If it is determined at 45 that the command data is for the DMAC 12 or the GDC 48, the command data from the CPU 11 is written to the SRAM 46.

【0056】このSRAM46に対し書込まれたコマン
ドデータは、パワースイッチやICカード挿抜に伴う電
源OFFあるいは前記「スリープイン」の状態が所定時
間以上継続した場合になされる電源OFFによるサスペ
ンド状態への移行時において、電源断直前のシステム動
作状態として記憶保持されるもので、これにより、電源
制御部29における表示用電源VDISPの遮断→リフレッ
シュ制御部20におけるDRAM47のリフレッシュク
ロックの切換え→クロック発生制御部21におけるシス
テム動作クロックφSYS の停止→電源制御部29におけ
るシステム電源VSYS の遮断が、それぞれチップBのマ
イコン39の制御により行なわれる。
The command data written to the SRAM 46 is changed to a power-off state due to a power switch or IC card insertion / removal, or to a suspend state due to a power-off state when the “sleep-in” state continues for a predetermined time or more. At the time of transition, the system operation state is stored and held just before the power is turned off, whereby the display power supply VDISP in the power supply control unit 29 is switched off → the refresh clock of the DRAM 47 is switched in the refresh control unit 20 → the clock generation control unit The stop of the system operation clock φSYS in 21 → the shutoff of the system power supply VSYS in the power supply control unit 29 is performed under the control of the microcomputer 39 of the chip B.

【0057】この場合、上記サスペンド状態への移行時
には、CPU11においてDRAM47及びVRAM3
8のチェックサムデータが作成されて上記コマンドデー
タと共にSRAM46に書込まれる。
In this case, when shifting to the suspend state, the CPU 11 causes the DRAM 47 and the VRAM 3
8 is created and written into the SRAM 46 together with the command data.

【0058】そして、パワースイッチのONに伴うサス
ペンド状態の解除移行時には、電源制御部29における
システム電源VSYS の投入→クロック発生制御部21に
おけるシステム動作クロックφSYS の発振→リフレッシ
ュ制御部20におけるDRAM47のリフレッシュクロ
ックの切換え→電源制御部29における表示用電源VDI
SPの投入が、それぞれチップBのマイコン39の制御に
より行なわれるもので、これにより、SRAM46に記
憶保持されているコマンドデータが所定の順序で読出さ
れてそれぞれDMAC12,GDC48にセットされ、
電源OFF直前のシステム動作状態に復帰される。
At the time of transition from the suspension state release to the ON state of the power switch, the power supply control section 29 turns on the system power supply VSYS → the clock generation control section 21 oscillates the system operation clock φSYS → the refresh control section 20 refreshes the DRAM 47. Clock switching → display power supply VDI in power supply control unit 29
The input of the SP is performed under the control of the microcomputer 39 of the chip B, whereby the command data stored and held in the SRAM 46 is read out in a predetermined order and set in the DMAC 12 and the GDC 48, respectively.
The system is returned to the system operation state immediately before the power is turned off.

【0059】この場合、CPU11において再びDRA
M47及びVRAM38のチェックサムデータが作成さ
れ、予めSRAM46に記憶させたチェックサムデータ
と比較されるもので、このチェックサムデータの不一致
時においては、上記サスペンド状態の解除処理は中止さ
れる。
In this case, DRA is executed again by the CPU 11.
The checksum data of the M47 and the VRAM 38 is created and compared with the checksum data stored in the SRAM 46 in advance. When the checksum data does not match, the suspension state release processing is stopped.

【0060】すなわち、上記CPU11とこのCPU1
1からのコマンドデータに基づいて動作するDMAC1
2及びGDC48を備えたデータ処理装置において、レ
ジュームモードの設定時において、CPU11から上記
DMAC12及びGDC48に対して出力されるコマン
ドデータをコマンド判断部45により検知し、該コマン
ドデータに応じた所定のSRAMアドレスを作成すると
共に、このSRAMアドレスに基づき上記コマンド判断
部45により検知されたコマンドデータをSRAM46
に対し書込み記憶させる構成としたので、電源OFFに
伴うサスペンド状態への移行に伴い上記ダイナミック回
路で構成されるDMAC12及びGDC48に対するク
ロック信号の供給が停止されても、電源OFF直前のシ
ステム動作状態を上記SRAM46において確実に保持
させることができ、上記DMAC12等を高価で電源の
供給を要するCMOS回路等により構成する必要はな
い。
That is, the CPU 11 and the CPU 1
DMAC1 that operates based on command data from
In the data processing apparatus provided with the GDC 48 and the GDC 48, when the resume mode is set, the command data output from the CPU 11 to the DMAC 12 and the GDC 48 is detected by the command determination unit 45, and a predetermined SRAM corresponding to the command data is detected. In addition to creating an address, the command data detected by the command determination unit 45 based on the SRAM address is stored in the SRAM 46.
Therefore, even when the supply of the clock signal to the DMAC 12 and the GDC 48 constituted by the dynamic circuit is stopped in accordance with the transition to the suspend state due to the power-off, the system operation state immediately before the power-off is changed. The SRAM 46 can be securely held in the SRAM 46, and the DMAC 12 and the like do not need to be constituted by an expensive CMOS circuit or the like which requires power supply.

【0061】図9は上記データ処理装置のスリープ機能
部の中心を司るCPU11及びスリープ制御部19の内
部構成を示すブロック図であり、スリープ制御部19
は、バス使用クロック発生回路49,バス使用回数カウ
ンタ50,及びカウントラッチ回路51を備えて構成さ
れ、また、CPU11には、メイン制御部52に加えて
所定時間毎のI/O読込み時にバス使用回数が予め設定
される期待値以下に低下したか否かを判断する一致判断
部53が備えられる。
FIG. 9 is a block diagram showing the internal configuration of the CPU 11 and the sleep control unit 19 which are responsible for the sleep function unit of the data processing apparatus.
Is configured to include a bus use clock generation circuit 49, a bus use number counter 50, and a count latch circuit 51. In addition to the main control unit 52, the CPU 11 A coincidence determination unit 53 is provided for determining whether the number of times has dropped below an expected value set in advance.

【0062】図10は上記データ処理装置におけるCP
U11のメイン制御部52からバス制御部22に出力さ
れるバス制御信号とその動作内容との関係を示すもの
で、バス制御信号はBS0,BS1,BS2の3ビット
構成とされ、“000”で割込み承認、“100”でI
/Oリード、“010”でI/Oライト、“110”で
ホルト、“001”で命令読込み、“101”でメモリ
リード、“011”でメモリライト、がそれぞれ得ら
れ、“111”で非動作状態に制御される。
FIG. 10 shows the CP in the data processing apparatus.
It shows the relationship between the bus control signal output from the main control unit 52 of U11 to the bus control unit 22 and the operation content. The bus control signal has a 3-bit configuration of BS0, BS1, and BS2, and is "000". Interrupt approval, "100" for I
/ O read, I / O write at "010", halt at "110", instruction read at "001", memory read at "101", memory write at "011", and non-read at "111". It is controlled to the operating state.

【0063】上記バス使用クロック発生回路49は、C
PU11からバス制御部22に対するバス制御信号BS
0,BS1,BS2を入力し、バス動作が成される毎に
バス使用クロックを発生するもので、このバス使用クロ
ック発生回路49からのクロック信号はバス使用回数カ
ウンタ50に出力される。
The bus-use clock generation circuit 49 has a C
Bus control signal BS from PU 11 to bus control unit 22
0, BS1 and BS2 are input and a bus use clock is generated each time a bus operation is performed. The clock signal from the bus use clock generation circuit 49 is output to a bus use number counter 50.

【0064】このバス使用回数カウンタ50は、CPU
11における所定時間毎のI/Oリード間隔でバス使用
回数をカウントするもので、このバス使用回数カウンタ
50によりカウントされた所定時間内バス使用回数デー
タは、CPU11からのI/Oリード信号に応じてカウ
ントラッチ回路51にラッチされ、CPU11のメイン
制御部52を通して一致判断部53に転送される。
The bus usage counter 50 is a CPU
The bus usage count within the predetermined time counted by the bus usage counter 50 is performed in accordance with an I / O read signal from the CPU 11. Then, the data is latched by the count latch circuit 51 and transferred to the coincidence determination unit 53 through the main control unit 52 of the CPU 11.

【0065】ここで、上記一致判断部53において、予
め設定された期待値と、上記所定時間内バス使用回数と
が一致するか、あるいは期待値以下である場合、つま
り、バス使用回数が期待値まで低下した場合には、その
一致判定信号がメイン制御部52に出力され、「スリー
プイン」を示すJOBEND信号がチップB上のマイコ
ン39に対し出力されると共に、CPU11がホルト
(HALT)状態に設定される。
Here, in the coincidence determination section 53, if the preset expected value and the number of times of use of the bus within the predetermined time are equal to or less than the expected value, that is, if the number of times of bus use is equal to the expected value If it has fallen to a lower level, the coincidence determination signal is output to the main controller 52, a JOBEND signal indicating "sleep-in" is output to the microcomputer 39 on the chip B, and the CPU 11 enters the HALT state. Is set.

【0066】この場合、上記CPU11の一致判断部5
3にて予め設定された期待値は、例えばバス使用カウン
タ50におけるカウントデータを取込む際等、スリープ
条件を判断する時にもバスが使用されバス使用クロック
が発生されるので、このことを考慮して上記期待値は少
なくとも“1”以上に設定される。
In this case, the coincidence determination unit 5 of the CPU 11
The expected value set in advance in 3 is taken into consideration because the bus is used and a bus use clock is generated when determining sleep conditions, for example, when taking in count data in the bus use counter 50. Thus, the expected value is set to at least “1” or more.

【0067】図11は上記データ処理装置のスリープモ
ード設定時におけるスリープ処理を示すフローチャート
であり、CPU11のメイン制御部52から所定時間毎
に出力されるI/Oリード信号に応じてバス使用回数カ
ウンタ50がリセットされた後、所定時間経過後に再び
I/Oリード信号が出力されると、上記バス使用回数カ
ウンタ50にてカウントされたバス使用回数データがカ
ウントラッチ回路51にラッチされ、CPU11のメイ
ン制御部52に読込まれて一致判断部53に転送される
(ステップA1〜A4)。
FIG. 11 is a flow chart showing a sleep process when the data processing apparatus is set to the sleep mode. The bus use counter is controlled in accordance with an I / O read signal output from the main control unit 52 of the CPU 11 at predetermined time intervals. When the I / O read signal is output again after a predetermined time has elapsed after the reset of the CPU 50, the bus use count data counted by the bus use counter 50 is latched by the count latch circuit 51, and the main CPU 11 The data is read by the control unit 52 and transferred to the coincidence determination unit 53 (steps A1 to A4).

【0068】ここで、上記所定時間内バス使用回数が予
め設定された期待値以下と判断された場合、つまり、C
PU11に基づく新たなシステム動作が略無しに等しい
と判断された場合には、上記一致判断部53からの一致
判定信号がメイン制御部52に対して出力される(ステ
ップA5)。
Here, when it is determined that the number of times of use of the bus within the predetermined time is equal to or less than a predetermined expected value, that is, C
If it is determined that the new system operations based on the PU 11 are almost equal, a match determination signal from the match determination unit 53 is output to the main control unit 52 (step A5).

【0069】すると、メイン制御部52から「スリープ
イン」を示すJOBEND信号“1”がチップB上のマ
イコン39に対し出力されると共に、CPU11がホル
ト(HALT)状態に設定されその制御動作が休止され
る(ステップA6)。
Then, a JOBEND signal “1” indicating “sleep-in” is output from the main control unit 52 to the microcomputer 39 on the chip B, and the CPU 11 is set to a halt state to suspend the control operation. (Step A6).

【0070】このCPU11の休止(ホルト)によるス
リープ状態において、例えばキーボード2におけるキー
入力動作、あるいはRS232C搭載機器やマウス等の
他の接続機器からの入力動作に応じてインターラプトが
生じると、インターラプト制御部17を通して上記CP
U11のメイン制御部52に対しスリープアウト信号が
出力される(ステップA7)。
In the sleep state due to the halt of the CPU 11, if an interrupt occurs in response to a key input operation on the keyboard 2 or an input operation from another connected device such as an RS232C-equipped device or a mouse, an interrupt occurs. Through the control unit 17, the CP
A sleep-out signal is output to the main control unit 52 of U11 (step A7).

【0071】すると、メイン制御部52からチップB上
のマイコン39に対し出力されているJOBEND信号
が“0”にリセットされると共に、CPU11のホルト
(HALT)状態が解除されその制御動作が開始され
る。(ステップA8)。
Then, the JOBEND signal output from the main control unit 52 to the microcomputer 39 on the chip B is reset to “0”, the halt state of the CPU 11 is released, and the control operation is started. You. (Step A8).

【0072】すなわち、上記CPU11に対しシステム
バス23を介して複数のブロックが接続されたデータ処
理装置において、バス使用回数カウンタ50によりバス
使用回数をカウントすると共に、そのカウントデータを
所定時間毎にカウントラッチ回路51を通してCPU1
1のメイン制御部52に取込み、所定時間内のバス使用
回数が予め設定された期待値以下であることが一致判断
部53において判断された場合には、CPU11の動作
を休止させてホルト(HALT)状態に設定する構成と
したので、CPU11において新たな制御処理が無い状
態を確実に判定することができる。
That is, in a data processing device in which a plurality of blocks are connected to the CPU 11 via the system bus 23, the number of bus uses is counted by the bus use counter 50, and the count data is counted at predetermined time intervals. CPU1 through the latch circuit 51
When the coincidence determination unit 53 determines that the number of times the bus has been used within a predetermined time period is equal to or less than a preset expected value, the operation of the CPU 11 is suspended and the HALT (HALT) is stopped. ) Since the state is set to the state, the state where there is no new control processing in the CPU 11 can be reliably determined.

【0073】これにより、例えば長時間の処理を要する
アプリケーションプログラムの実行中において、一定時
間キー入力が無いことで誤ってスリープ状態の設定を招
くことなく、実際の動作状態にあるCPU11が突如O
FF状態やHALT状態に移行するのを防止することが
できる。
Thus, for example, during execution of an application program that requires a long time, the CPU 11 in the actual operating state can be suddenly turned off without inadvertently setting the sleep state due to no key input for a certain period of time.
Transition to the FF state or the HALT state can be prevented.

【0074】図12は上記データ処理装置におけるレジ
ューム制御の中心を司るマイコン39の内部構成を示す
ブロック図であり、このマイコン39の制御部54に
は、キーボード2の他、チップAのCPU11に対する
入出力ポート55、スリープモードやレジュームモード
の有無とその機能状態を示すシステム状態レジスタ5
6、CPU11のスリープ状態継続時間をカウントする
スリープカウンタ57、電源残量が所定量より高いこと
を判断する残量判断部58、電源のON/OFF操作を
行なうパワースイッチ59、そして、シリアルデータイ
ンターフェイス28が接続される。
FIG. 12 is a block diagram showing the internal structure of the microcomputer 39 which controls the resume control in the data processing apparatus. The control unit 54 of the microcomputer 39 includes not only the keyboard 2 but also an input to the CPU 11 of the chip A. An output port 55, a system status register 5 indicating the presence or absence of a sleep mode or a resume mode and its function status
6, a sleep counter 57 for counting the duration of the sleep state of the CPU 11, a remaining amount determining unit 58 for determining that the remaining power is higher than a predetermined amount, a power switch 59 for turning on / off the power, and a serial data interface. 28 are connected.

【0075】上記入出力ポート55には、CPU11の
スリープ状態及びサスペンド状態移行時にJOBEND
信号“1”が与えられるJOBENDフラグエリア55
a、レジュームモードの設定時におけるサスペンド状態
解除の際にCPU11の正常復帰に伴いSET信号
“1”が与えられるSETフラグエリア55b、レジュ
ームモードの設定時におけるサスペンド状態解除の際に
CPU11の異常復帰に伴いエラー信号“1”が与えら
れエラーフラグエリア55cが備えられる。
When the CPU 11 shifts to the sleep state or the suspend state, the input / output port 55
JOBEND flag area 55 to which signal "1" is applied
a, a SET flag area 55b to which a SET signal “1” is given in accordance with the normal recovery of the CPU 11 when the suspend mode is released when the resume mode is set, and for an abnormal return of the CPU 11 when the suspend mode is released when the resume mode is set Accordingly, an error signal “1” is provided and an error flag area 55c is provided.

【0076】上記システム状態レジスタ56には、スリ
ープモードの設定時においてフラグ“1”がセットされ
るスリープモードレジスタ56a、レジュームモードの
設定時においてフラグ“1”がセットされるレジューム
モードレジスタ56b、スリープ状態への移行時におい
てフラグ“1”がセットされるスリープレジスタ56
c、サスペンド状態への移行時においてフラグ“1”が
セットされるサスペンドレジスタ56dが備えられる。
The system status register 56 has a sleep mode register 56a in which a flag "1" is set when a sleep mode is set, a resume mode register 56b in which a flag "1" is set when a resume mode is set, and a sleep mode. Sleep register 56 in which flag "1" is set at the time of transition to the state
c, there is provided a suspend register 56d in which a flag "1" is set at the time of transition to the suspend state.

【0077】上記スリープカウンタ57は、システム状
態レジスタ56のスリープレジスタ56cにフラグ
“1”がセットされた際にリセットされると同時に、シ
ステム状態管理用の動作クロックφSMに応じてカウント
アップするもので、このスリープカウンタ57からは、
予め設定されたスリープ時間に対応してそのキャリ信号
が制御部54に出力される。
The sleep counter 57 is reset when the flag "1" is set in the sleep register 56c of the system state register 56, and simultaneously counts up in accordance with the system state management operation clock φSM. From this sleep counter 57,
The carry signal is output to control unit 54 corresponding to the preset sleep time.

【0078】図13は上記データ処理装置のレジューム
モード設定時におけるレジューム処理を示すフローチャ
ートであり、レジュームモードの設定時において、CP
U11がスリープ状態に移行することで入出力ポート5
5のJOBENDフラグエリア55aにJOBEND信
号“1”が与えられると、システム状態レジスタ56の
スリープレジスタ56cにフラグ“1”がセットされる
と共に、スリープカウンタ57がリセットされ、同時に
クロックφSMに応じたスリープ時間のカウント動作が開
始される(ステップB1〜B3)。
FIG. 13 is a flow chart showing the resume processing when the resume mode of the data processing apparatus is set.
When U11 shifts to the sleep state, the input / output port 5
5, when the JOBEND signal "1" is given to the JOBEND flag area 55a, the flag "1" is set in the sleep register 56c of the system status register 56, the sleep counter 57 is reset, and at the same time, the sleep corresponding to the clock φSM is performed. A time counting operation is started (steps B1 to B3).

【0079】ここで、ケース1として、CPU11のス
リープ状態が予め設定されたスリープ時間を経過し、上
記スリープカウンタ57からのカウンタキャリが制御部
54に出力されると、サスペンド状態に移行すべく、ま
ず、残量判断部58において電源残量が所定量より高い
状態にあるか否か判断される(ステップB4,B5)。
Here, as Case 1, when the sleep state of the CPU 11 elapses a preset sleep time and the counter carry from the sleep counter 57 is output to the control unit 54, the CPU 11 shifts to the suspend state. First, the remaining amount determining unit 58 determines whether the remaining amount of power is higher than a predetermined amount (steps B4 and B5).

【0080】また、ケース2として、前記ステップB1
において「No」、つまり、JOBEND信号“1”が
与えられていないキースキャン等の通常処理の状態にお
いて、パワースイッチ59がOFFされると、上記同様
サスペンド状態に移行すべく、まず、残量判断部58に
おいて電源残量が所定量より高い状態にあるか否か判断
される(ステップB1→B6,B7→B5)。
In case 2, step B 1
When the power switch 59 is turned off in the state of normal processing such as key scan to which the JOBEND signal “1” is not supplied, first, the remaining amount determination is performed in order to shift to the suspend state as described above. The unit 58 determines whether the remaining power is higher than a predetermined amount (steps B1 → B6, B7 → B5).

【0081】さらに、ケース3として、上記ステップB
4において「No」、つまり、CPU11のスリープ状
態が予め設定されたスリープ時間を経過しない状態にあ
っても、そのままパワースイッチ59がOFFされる
と、上記同様サスペンド状態に移行すべく、まず、残量
判断部58において電源残量が所定量より高い状態にあ
るか否か判断される(ステップB4→B8,B9→B
5)。
Further, as Case 3, the above Step B
4, that is, even if the sleep state of the CPU 11 does not elapse the preset sleep time, if the power switch 59 is turned off as it is, the remaining state is first set to shift to the suspend state as described above. The amount determination unit 58 determines whether the remaining power level is higher than a predetermined amount (steps B4 → B8, B9 → B).
5).

【0082】一方、上記ステップB4において「N
o」、つまり、CPU11のスリープ状態が予め設定さ
れたスリープ時間を経過しない状態にあって、パワース
イッチ59がOFFされる以前に、キーボード2からの
キー操作信号が制御部54に入力されると、キー入力イ
ンターラプト信号がチップA上のインターラプト制御部
17に対し出力され、CPU11にはスリープアウト信
号が供給されてそのスリープ状態は解除される(ステッ
プB4→B8〜B12)。なお、上記CPU11のスリ
ープ状態におけるスリープカウンタ57のカウント動作
中には、ステップB3,B4→B8〜B13の処理が繰
返し実行される。
On the other hand, in step B4, "N
o ”, that is, if the sleep state of the CPU 11 does not exceed the preset sleep time and a key operation signal from the keyboard 2 is input to the control unit 54 before the power switch 59 is turned off. , A key input interrupt signal is output to the interrupt control unit 17 on the chip A, a sleep-out signal is supplied to the CPU 11, and the sleep state is released (steps B4 → B8-B12). During the count operation of the sleep counter 57 in the sleep state of the CPU 11, the processing of steps B3, B4 → B8 to B13 is repeatedly executed.

【0083】そして、上記ケース1またはケース2また
はケース3の処理を経て、サスペンド状態に移行すべ
く、電源残量の確認が行なわれた際に、ステップB5に
おいて「No」、つまり、残量判断部58において、電
源残量は所定量以下に低下したと判断されると、制御部
54からサスペンド状態への移行不可を示すシリアルデ
ータがシリアルデータインターフェイス28を通してチ
ップC上のシステム管理表示制御部35に転送され、電
源残量不足によるレジューム機能キャンセルメッセージ
の表示処理が実行される(ステップB5→B14)。
Then, when the power supply remaining amount is checked to shift to the suspend state through the above-described case 1, case 2, or case 3, "No" in step B5, that is, the remaining amount determination is made. When the unit 58 determines that the remaining power level has decreased to a predetermined amount or less, the control unit 54 transmits serial data indicating that transition to the suspend state is not possible through the serial data interface 28 to the system management display control unit 35 on the chip C. Is displayed, and a process of displaying a resume function cancel message due to insufficient power supply is executed (steps B5 → B14).

【0084】図14は上記データ処理装置のレジューム
モード設定時における液晶表示部3によるレジューム機
能キャンセルメッセージの表示状態を示す図であり、同
図(A)は上記電源残量不足に伴うレジューム機能キャ
ンセルメッセージの表示状態を示す図、同図(B)はサ
スペンド状態解除時のCPUエラーに伴うレジューム機
能キャンセルメッセージの表示状態を示す図である。
FIG. 14 is a diagram showing a display state of the resume function cancel message on the liquid crystal display unit 3 when the resume mode of the data processing device is set. FIG. 14A shows the resume function cancellation due to the power supply shortage. FIG. 11B is a diagram showing a display state of a message, and FIG. 11B is a diagram showing a display state of a resume function cancel message accompanying a CPU error when the suspend state is released.

【0085】そして、上記図14(A)で示すように、
電源残量不足に伴うレジューム機能キャンセルメッセー
ジが表示された状態で、キーボード2におけるリターン
キー2cが操作されると、制御部54から電源制御部2
9に対し電源OFFの制御信号が出力され、電源制御部
29によりシステム動作電圧VSYS ,メモリバックアッ
プ電圧VMEM ,表示用電圧VDISPの全ての電源が遮断さ
れるようになる(ステップB15,B16)。
Then, as shown in FIG.
When the return key 2c on the keyboard 2 is operated in a state in which the resume function cancellation message accompanying the power supply shortage is displayed, the control unit 54 causes the power control unit 2 to operate.
A control signal for turning off the power is output to the power supply 9, and the power supply control unit 29 shuts off all the power supply of the system operating voltage VSYS, the memory backup voltage VMEM, and the display voltage VDISP (steps B15 and B16).

【0086】一方、上記ステップB5において「Ye
s」、つまり、残量判断部58において、電源残量は所
定量より高い状態に維持されていると判断された場合に
は、制御部54からレジュームイン、つまり、サスペン
ドインの要求を示すシリアルデータが各シリアルデータ
インターフェイス28→33→16を介し、チップA上
のインターラプト制御部17に転送され、CPU11に
対しサスペンドイン制御信号「SUS IN」が供給さ
れる(ステップB5→B17)。
On the other hand, in step B5, "Ye
s ”, that is, when the remaining power determination unit 58 determines that the remaining power is maintained at a state higher than the predetermined amount, the control unit 54 issues a resume-in, that is, a serial signal indicating a suspend-in request. The data is transferred to the interrupt controller 17 on the chip A via each serial data interface 28 → 33 → 16, and a suspend-in control signal “SUS IN” is supplied to the CPU 11 (steps B5 → B17).

【0087】図15は上記データ処理装置のCPU11
におけるサスペンドイン制御処理を示すフローチャート
であり、CPU11に対しインターラプト制御部17を
通して上記サスペンドイン制御信号「SUS IN」が
供給されると、CPU11では、チップCのGDC48
を通してVRAM38に対し表示データが描画中である
か否か判断される(ステップC1,C2)。
FIG. 15 shows the CPU 11 of the data processing apparatus.
7 is a flowchart showing the suspend-in control process in FIG. 6. When the suspend-in control signal “SUS IN” is supplied to the CPU 11 through the interrupt control unit 17, the CPU 11
It is determined whether or not the display data is being drawn in the VRAM 38 through (steps C1 and C2).

【0088】このステップC2において「Yes」、つ
まり、GDC描画中である場合にはその描画処理状態が
維持され、該GDC描画処理が終了すると、その描画ア
ドレスデータがサスペンド状態移行直前の表示アドレス
情報としてSRAM46に対し記憶保持される(ステッ
プC2,C3)。
In step C2, "Yes", that is, when the GDC drawing is being performed, the drawing processing state is maintained. When the GDC drawing processing is completed, the drawing address data is changed to the display address information immediately before the transition to the suspend state. Is stored in the SRAM 46 (steps C2 and C3).

【0089】ここで、CPU11では、DRAM47及
びVRAM38における記憶データのチェックサムデー
タが作成され、このチェックサムデータは上記SRAM
46に対し記憶保持される(ステップC4,C5)。
Here, the CPU 11 creates checksum data of the data stored in the DRAM 47 and the VRAM 38, and the checksum data is stored in the SRAM 11.
46 is stored and held (steps C4 and C5).

【0090】そして、CPU11からチップB上の入出
力ポート55におけるJOBENDフラグエリア55a
に対し、サスペンドインに伴うJOBEND信号“1”
が出力される(ステップC6)。
Then, the JOBEND flag area 55a in the input / output port 55 on the chip B from the CPU 11
In response to the JOBEND signal "1"
Is output (step C6).

【0091】こうして、入出力ポート55のJOBEN
Dフラグエリア55aに対し、CPU11のサスペンド
インに伴うJOBEND信号“1”が与えられると、ま
ず、制御部54から電源制御部29を通して表示用電源
VDISPが遮断される(ステップB18,B19)。
Thus, the JOBEN of the input / output port 55
When a JOBEND signal “1” is given to the D flag area 55 a in response to the suspend-in of the CPU 11, first, the display power supply VDISP is cut off from the control unit 54 through the power supply control unit 29 (steps B 18 and B 19).

【0092】次に、制御部54から各シリアルデータイ
ンターフェイス28→33→16を介してチップA上の
リフレッシュ制御部20に対しリフレッシュ切換え要求
を示すデータが転送され、該リフレッシュ制御部20に
は、クロック発生制御部21からのシステムクロックφ
SYS が遮断されリフレッシュクロック(CAS,RA
S)を作成すべく基本クロックとして、チップB上のク
ロック発生部31からのリフレッシュ用クロックφREFR
のみが供給される(ステップB20)。
Next, data indicating a refresh switching request is transferred from the control unit 54 to the refresh control unit 20 on the chip A via each serial data interface 28 → 33 → 16. System clock φ from clock generation control unit 21
SYS is shut off and the refresh clock (CAS, RA
S), a refresh clock φREFR from the clock generator 31 on the chip B is used as a basic clock.
Is supplied (step B20).

【0093】すると、制御部54から各シリアルデータ
インターフェイス28→33→16を介してチップA上
のクロック発生制御部21に対しクロック停止要求を示
すデータが転送され、該クロック発生制御部21におけ
る全てのクロック発生動作が停止されると共に、そのク
ロック発生停止状態がチップAのシリアルデータインタ
ーフェイス16からチップBのシリアルデータインター
フェイス28を通して制御部54に対し通知確認される
と、さらに、制御部54から電源制御部29を通してシ
ステム電源VSYS が遮断される(ステップB21〜B2
3)。これにより、データ処理装置は、レジュームモー
ドの設定に伴うサスペンド状態となる。
Then, the data indicating the clock stop request is transferred from the control unit 54 to the clock generation control unit 21 on the chip A via each serial data interface 28 → 33 → 16. Is stopped, and the clock generation stop state is notified to the control unit 54 from the serial data interface 16 of the chip A through the serial data interface 28 of the chip B. The system power supply VSYS is cut off through the control unit 29 (steps B21 to B2).
3). As a result, the data processing device enters a suspend state accompanying the setting of the resume mode.

【0094】この場合、チップA上のSRAM46にお
いては、上記CPU11におけるサスペンド状態移行直
前のDMAC12,GDC48の各デバイスに対するコ
マンドデータが、コマンド判断部45を通して予め保持
されると共に、GDC48に対する描画アドレスデータ
及びDRAM47,VRAM38のチェックサムデータ
も保持される。
In this case, in the SRAM 46 on the chip A, the command data for each device of the DMAC 12 and the GDC 48 immediately before the transition to the suspend state in the CPU 11 is held in advance through the command determination unit 45, and the drawing address data for the GDC 48 and The checksum data of the DRAM 47 and the VRAM 38 is also held.

【0095】図16は上記データ処理装置のレジューム
モード設定時におけるサスペンドアウト制御処理を示す
フローチャートであり、データ処理装置の使用を開始す
べくパワースイッチ59がONされると、まず、制御部
54から電源制御部29を通してシステム電源VSYS が
投入される(ステップD1,D2)。
FIG. 16 is a flowchart showing the suspend-out control processing when the data processing apparatus is set in the resume mode. When the power switch 59 is turned on to start using the data processing apparatus, first, the control unit 54 The system power supply VSYS is turned on through the power supply control unit 29 (steps D1 and D2).

【0096】次に、制御部54から各シリアルデータイ
ンターフェイス28→33→16を介してチップA上の
クロック発生制御部21に対しクロック発振要求を示す
データが転送され、該クロック発生制御部21における
クロック発生動作が開始されると共に、そのクロック発
生動作状態がチップAのシリアルデータインターフェイ
ス16からチップBのシリアルデータインターフェイス
28を通して制御部54に対し通知確認される(ステッ
プD3,D4)。
Next, data indicating a clock oscillation request is transferred from the control unit 54 to the clock generation control unit 21 on the chip A via each serial data interface 28 → 33 → 16. At the same time as the clock generation operation is started, the clock generation operation state is notified to the control unit 54 from the serial data interface 16 of the chip A via the serial data interface 28 of the chip B (steps D3 and D4).

【0097】すると、さらに、制御部54から各シリア
ルデータインターフェイス28→33→16を介してチ
ップA上のリフレッシュ制御部20に対しリフレッシュ
切換え要求を示すデータが転送され、該リフレッシュ制
御部20には、リフレッシュクロック(CAS,RA
S)を作成すべく基本クロックとして、チップB上のク
ロック発生部31からのリフレッシュ用クロックφREFR
と共に上記クロック発生制御部21からのシステムクロ
ックφSYS が供給される(ステップD5)。
Then, data indicating a refresh switching request is transferred from the control unit 54 to the refresh control unit 20 on the chip A via each serial data interface 28 → 33 → 16. , Refresh clock (CAS, RA
S), a refresh clock φREFR from the clock generator 31 on the chip B is used as a basic clock.
At the same time, the system clock φSYS is supplied from the clock generation controller 21 (step D5).

【0098】そして、制御部54から電源制御部29を
通して表示用電源VDISPが投入されると共に、制御部5
4からサスペンドアウトの要求を示すシリアルデータが
各シリアルデータインターフェイス28→33→16を
介し、チップA上のインターラプト制御部17に転送さ
れ、CPU11に対しサスペンドアウト制御信号「SU
S OUT」が供給される(ステップD6,D7)。
Then, the display power supply VDISP is turned on from the control unit 54 through the power supply control unit 29, and the control unit 5
4, the serial data indicating the request for suspend-out is transferred to the interrupt control unit 17 on the chip A via each serial data interface 28 → 33 → 16, and the suspend-out control signal “SU
S OUT ”is supplied (steps D6, D7).

【0099】図17は上記データ処理装置のCPU11
におけるサスペンドアウト制御処理を示すフローチャー
トであり、CPU11に対しインターラプト制御部17
を通して上記サスペンドアウト制御信号「SUS OU
T」が供給されると、CPU11では、前記サスペンド
状態を経たDRAM47及びVRAM38における記憶
データのチェックサムデータが作成される(ステップE
1,E2)。
FIG. 17 shows the CPU 11 of the data processing apparatus.
10 is a flowchart showing a suspend-out control process in the CPU 11;
Through the suspend-out control signal “SUS OU
When "T" is supplied, the CPU 11 creates checksum data of the data stored in the DRAM 47 and the VRAM 38 after the suspend state (step E).
1, E2).

【0100】そして、CPU11には、SRAM46に
予め記憶保持されたサスペンド状態移行時のDRAM4
7及びVRAM38における記憶データのチェックサム
データが読込まれ、上記ステップE2において作成され
た新たなチェックサムデータと一致するか否か判断され
る(ステップE3,E4)。
The CPU 11 stores the DRAM 4 at the time of transition to the suspend state, which is stored and held in the SRAM 46 in advance.
7 and the checksum data of the data stored in the VRAM 38 are read, and it is determined whether or not the checksum data matches the new checksum data created in step E2 (steps E3 and E4).

【0101】このステップE4において「No」、つま
り、サスペンド状態移行時におけるDRAM47,VR
AM38のチェックサムデータと、サスペンド状態解除
時における同DRAM47,VRAM38のチェックサ
ムデータとが一致せず、該DRAM47,VRAM38
内の記憶データに異常が生じたと判断されると、CPU
11から入出力ポート55のエラーフラグエリア55c
に対しサスペンドアウト異常に伴うエラー信号“1”が
出力される(ステップE4,E5)。
In this step E4, "No", that is, when the DRAM 47, VR
The checksum data of the AM 38 does not match the checksum data of the DRAM 47 and the VRAM 38 when the suspend state is released, and the DRAM 47 and the VRAM 38 do not match.
When it is determined that an abnormality has occurred in the stored data in the
11 to the error flag area 55c of the input / output port 55
, An error signal "1" accompanying the suspend-out abnormality is output (steps E4 and E5).

【0102】すると、マイコン39では、制御部54か
らサスペンド状態の復帰(解除)不可を示すシリアルデ
ータがシリアルデータインターフェイス28を通してチ
ップC上のシステム管理表示制御部35に転送され、前
記図14(B)で示すように、CPUエラーによるレジ
ューム機能キャンセルメッセージの表示処理が実行され
る(ステップD8→D9)。
Then, in the microcomputer 39, the serial data indicating that the suspension state cannot be returned (canceled) is transferred from the control unit 54 to the system management display control unit 35 on the chip C through the serial data interface 28, and the microcomputer 39 shown in FIG. As shown in (), display processing of a resume function cancel message due to a CPU error is executed (steps D8 → D9).

【0103】そして、上記図14(B)で示すように、
サスペンド状態解除時のCPUエラーに伴うレジューム
機能キャンセルメッセージが表示された状態で、キーボ
ード2におけるリターンキー2cが操作されると、制御
部54からCPU11に対しリセット信号が出力され、
このデータ処理装置は上記レジューム機能の設定に拘ら
ずイニシャルセット(初期設定)される(ステップD1
0,D11)。
Then, as shown in FIG. 14B,
When the return key 2c on the keyboard 2 is operated in a state where the resume function cancel message accompanying the CPU error at the time of canceling the suspended state is displayed, a reset signal is output from the control unit 54 to the CPU 11,
This data processing device is initially set (initial setting) regardless of the setting of the resume function (step D1).
0, D11).

【0104】なお、上記CPU11からのエラー信号
“1”がマイコン39に対し出力されない場合でも、該
マイコン39の制御部54からサスペンドアウトの要求
データが出力されてから所定時間経過以前までに、CP
U11からその正常復帰に伴うSET信号“1”が入出
力ポート55のSETフラグエリア55bに与えられな
いと、上記エラー信号“1”が与えられた場合同様、制
御部54からサスペンド状態の復帰(解除)不可を示す
シリアルデータがシリアルデータインターフェイス28
を通してチップC上のシステム管理表示制御部35に転
送され、上記図14(B)で示すように、レジューム機
能キャンセルメッセージの表示処理が実行される(ステ
ップD8→D12,D13→D9)。
Even when the error signal "1" from the CPU 11 is not output to the microcomputer 39, the control unit 54 of the microcomputer 39 outputs the CP before the predetermined time elapses after the request data of the suspend-out is output.
If the SET signal "1" accompanying the normal recovery from U11 is not applied to the SET flag area 55b of the input / output port 55, the control unit 54 returns the suspended state (when the error signal "1" is applied). Release) The serial data indicating “impossible” is not
Then, as shown in FIG. 14B, the display process of the resume function cancel message is executed (steps D8 → D12, D13 → D9).

【0105】この場合も上記同様、キーボード2におけ
るリターンキー2cを操作することで、制御部54から
CPU11に対しリセット信号が出力され、このデータ
処理装置は上記レジューム機能の設定に拘らずイニシャ
ルセット(初期設定)される(ステップD10,D1
1)。
In this case as well, by operating the return key 2c of the keyboard 2, a reset signal is output from the control unit 54 to the CPU 11 as in the above, and the data processing apparatus operates in the initial set (regardless of the setting of the resume function). (Initial setting) (Steps D10 and D1)
1).

【0106】一方、上記ステップE4において「Ye
s」、つまり、サスペンド状態移行時におけるDRAM
47,VRAM38のチェックサムデータと、サスペン
ド状態解除時における同DRAM47,VRAM38の
チェックサムデータとが一致し、該DRAM47,VR
AM38内の記憶データは正常に保持されていると判断
されると、SRAM46に予め記憶保持されたサスペン
ド状態移行前のCPU11からDMAC12及びGDC
48の各デバイスに対するコマンドデータが読出され、
該DMAC12及びGDC48に対して所定の順序でセ
ットされる(ステップE4→E6)。
On the other hand, in step E4, "Ye
s ”, that is, the DRAM at the time of transition to the suspend state.
The checksum data of the DRAM 47 and the VRAM 38 at the time of releasing the suspend state match the checksum data of the DRAM 47 and the VRAM 38 when the suspend state is released.
When it is determined that the storage data in the AM 38 is normally held, the DMAC 12 and the GDC
Command data for each of the 48 devices is read,
The DMAC 12 and the GDC 48 are set in a predetermined order (steps E4 to E6).

【0107】また、上記コマンドデータの復帰処理に伴
い、上記SRAM46に予め記憶保持されたサスペンド
状態移行前のGDC48に対する描画アドレスデータが
読出され、該GDC48に対してセットされる(ステッ
プE7)。
With the return processing of the command data, the drawing address data for the GDC 48 before the transition to the suspend state, which is stored in the SRAM 46 in advance, is read out and set in the GDC 48 (step E7).

【0108】そして、CPU11からその正常復帰に伴
うSET信号“1”が入出力ポート55のSETフラグ
エリア55bに対して出力され、このデータ処理装置は
レジュームモードの設定に伴うサスペンド状態から復帰
される(ステップE8)。
Then, the CPU 11 outputs a SET signal "1" accompanying the normal recovery to the SET flag area 55b of the input / output port 55, and the data processing apparatus is returned from the suspend state accompanying the setting of the resume mode. (Step E8).

【0109】すなわち、電源OFFに伴うサスペンド状
態への移行に際しても、DRAM47及びVRAM38
におけるメモリ内容を保持させるレジューム機能を備え
たデータ処理装置において、上記電源OFFに伴うサス
ペンド状態への移行時には、DRAM47及びVRAM
38のメモリデータに基づくチェックサムデータをCP
U11にて作成し、SRAM46に対し記憶保持させる
と共に、電源ONに伴うサスペンド状態解除時には、再
びDRAM47及びVRAM38のメモリデータに基づ
くチェックサムデータをCPU11にて作成し、上記S
RAM46に予め記憶させたサスペンド状態移行時にお
けるチェックサムデータとの比較判断を行なって、一致
判断が得られた場合にのみ、SRAM46に予め記憶保
持されたDMAC12及びGDC48に対するコマンド
データをセットし、電源OFF以前のシステム状態復帰
を図る構成としたので、例えばサスペンド状態における
電圧の低下等によりメモリ内容が変化した場合の電源再
起動時において、異常な動作,表示が行なわれたり、デ
ータ破壊が生じる等の不具合発生を未然に防止すること
ができる。
That is, the DRAM 47 and the VRAM 38 also shift to the suspend state when the power is turned off.
In the data processing apparatus having the resume function of retaining the memory contents in the DRAM 47 and the VRAM
Checksum data based on memory data
U11, which is stored and held in the SRAM 46. When the suspend state is released upon power-on, the CPU 11 again generates checksum data based on the memory data of the DRAM 47 and the VRAM 38, and
A comparison is made with the checksum data at the time of transition to the suspend state stored in the RAM 46 in advance, and only when a match is determined, the command data for the DMAC 12 and the GDC 48 stored and held in the SRAM 46 is set. Since the system state is restored before the power is turned off, abnormal operation and display may be performed or data may be destroyed when the power supply is restarted when the memory contents are changed due to a voltage drop in the suspend state. Can be prevented from occurring beforehand.

【0110】図18は上記データ処理装置におけるリフ
レッシュ制御部20の内部構成を示す回路図であり、チ
ップA上におけるクロック発生制御部21からのシステ
ムクロックφSYS は、シフトレジスタ60a,60bに
それぞれシフトクロックCKとして供給され、チップB
上におけるクロック発生部31からのリフレッシュ用ク
ロックφREFRは、分周回路61及びアンドゲートAND
3の第2入力に供給される。
FIG. 18 is a circuit diagram showing the internal configuration of the refresh control unit 20 in the data processing apparatus. The system clock φSYS from the clock generation control unit 21 on the chip A is supplied to the shift registers 60a and 60b by the shift clocks, respectively. Supplied as CK and chip B
The refresh clock φREFR from the clock generation unit 31 above is supplied to the frequency dividing circuit 61 and the AND gate AND
3 is provided to the second input.

【0111】また、レジュームモード設定時におけるサ
スペンドイン及びサスペンドアウトのそれぞれに伴うマ
イコン39からのリフレッシュ切換え要求信号は、切換
え信号発生部62に供給される。
A refresh switching request signal from the microcomputer 39 in response to each of the suspend-in and the suspend-out when the resume mode is set is supplied to the switching signal generator 62.

【0112】切換え信号発生部62は、サスペンドアウ
トに伴う切換え要求信号が供給された際に“1”、サス
ペンドインに伴う切換え要求信号が供給された際に
“0”となるリフレッシュ切換え信号Xを出力するもの
で、この切換え信号発生部62からのリフレッシュ切換
え信号Xは、アンドゲートAND1の第1入力に供給さ
れると共に、インバータINV1を介してアンドゲート
AND2及び上記アンドゲートAND3の各第1入力に
供給される。
The switching signal generator 62 generates a refresh switching signal X which becomes "1" when the switching request signal accompanying the suspend-out is supplied and "0" when the switching request signal accompanying the suspend-in is supplied. The refresh switching signal X from the switching signal generator 62 is supplied to a first input of an AND gate AND1, and is also supplied to the first input of an AND gate AND2 and a first input of the AND gate AND3 via an inverter INV1. Supplied to

【0113】上記分周回路61は、上記チップB上のク
ロック発生部31からのリフレッシュ用クロックφREFR
の4周期毎に“1”“0”に変化するリフレッシュタイ
ミング信号ST を作成するもので、この分周回路61か
らのリフレッシュタイミング信号ST は、上記アンドゲ
ートAND1及びアンドゲートAND2それぞれの各第
2入力に供給される。
The frequency dividing circuit 61 generates a refresh clock φREFR from the clock generator 31 on the chip B.
A refresh timing signal ST that changes to "1" and "0" every four periods is generated. The refresh timing signal ST from the frequency dividing circuit 61 is generated by the second gate of each of the AND gates AND1 and AND2. Supplied to input.

【0114】アンドゲートAND1からの出力信号は、
フリップフロップFF1の反転セット端子Sに供給され
ると共に、上記シフトレジスタ60a,60bそれぞれ
の反転リセット端子Rに供給される。フリップフロップ
FF1からの出力信号Qは、シフトレジスタ60aの入
力端子Iに供給されると共に、インバータINV2を介
してアンドゲートAND4の第1入力に供給される。シ
フトレジスタ60aからの出力信号Oは、シフトレジス
タ60bの入力端子Iに供給されると共に、インバータ
INV3を介してアンドゲートAND5の第1入力に供
給される。そして、シフトレジスタ60bの出力信号O
は、上記フリップフロップFF1のリセット端子Rに供
給される。
The output signal from AND gate AND1 is
The signal is supplied to the inversion set terminal S of the flip-flop FF1, and is also supplied to the inversion reset terminal R of each of the shift registers 60a and 60b. The output signal Q from the flip-flop FF1 is supplied to the input terminal I of the shift register 60a and to the first input of the AND gate AND4 via the inverter INV2. The output signal O from the shift register 60a is supplied to the input terminal I of the shift register 60b, and is also supplied to the first input of the AND gate AND5 via the inverter INV3. Then, the output signal O of the shift register 60b is output.
Is supplied to the reset terminal R of the flip-flop FF1.

【0115】一方、アンドゲートAND2からの出力信
号は、アナログディレイ回路63に供給されると共に、
フリップフロップFF2の反転セット端子Sに供給さ
れ、アンドゲートAND3からの出力信号は、フリップ
フロップFF2及びフリップフロップFF3の各リセッ
ト端子Rに供給される。
On the other hand, the output signal from AND gate AND2 is supplied to analog delay circuit 63,
The output signal from the inverting set terminal S of the flip-flop FF2 and the output signal from the AND gate AND3 are supplied to each reset terminal R of the flip-flop FF2 and the flip-flop FF3.

【0116】アナログディレイ回路63は、上記リフレ
ッシュ切換え信号Xが“0”、つまり、サスペンドイン
に伴う切換え要求信号が供給され、且つ、リフレッシュ
タイミング信号ST が“1”になった際に、その遅延信
号、つまり、リフレッシュタイミングディレイ信号STD
を発生するもので、このアナログディレイ回路63から
のリフレッシュタイミングディレイ信号STDは、上記フ
リップフロップFF3の反転セット端子Sに供給され
る。
The analog delay circuit 63 delays the refresh switching signal X when the refresh switching signal X is "0", that is, when the switching request signal accompanying the suspend-in is supplied and the refresh timing signal ST becomes "1". Signal, ie, refresh timing delay signal STD
The refresh timing delay signal STD from the analog delay circuit 63 is supplied to the inverting set terminal S of the flip-flop FF3.

【0117】そして、フリップフロップFF2からの反
転出力信号Qは、上記アンドゲートAND4の第2入力
に供給され、また、フリップフロップFF3からの反転
出力信号Qは、上記アンドゲートAND5の第2入力に
供給される。
The inverted output signal Q from the flip-flop FF2 is supplied to the second input of the AND gate AND4, and the inverted output signal Q from the flip-flop FF3 is supplied to the second input of the AND gate AND5. Supplied.

【0118】ここで、アンドゲートAND4からはCA
S(column address strobe) が、アンドゲートAND5
からはRAS(row address strobe)がそれぞれDRAM
47に対するリフレッシュクロックとして出力される。
Here, CA from AND gate AND4
S (column address strobe) is AND gate AND5
RAS (row address strobe) is DRAM
This signal is output as a refresh clock for 47.

【0119】図19は上記データ処理装置のリフレッシ
ュ制御部20におけるリフレッシュクロック(CAS,
RAS)の発生動作を示すタイミングチャートであり、
まず、通常動作時の切換え要求信号が供給される状態
で、切換え信号発生部62からのリフレッシュ切換え信
号Xが“1”である場合には、アンドゲートAND2及
びアンドゲートAND3の出力信号は何れも“0”とな
り、フリップフロップFF2及びフリップフロップFF
3の各反転出力信号Qは何れも“1”にセットされ、ア
ンドゲートAND4及びアンドゲートAND5の各第2
入力に供給される。
FIG. 19 shows a refresh clock (CAS, CAS) in the refresh controller 20 of the data processing apparatus.
(RAS) is a timing chart showing the operation of generating
First, in a state where the switching request signal in the normal operation is supplied, when the refresh switching signal X from the switching signal generating unit 62 is "1", both the output signals of the AND gates AND2 and AND3 are output. It becomes “0” and the flip-flop FF2 and the flip-flop FF
3 is set to "1", and each of the second gates of the AND gates AND4 and AND5 is set to "1".
Supplied to input.

【0120】そして、分周回路61から出力されるリフ
レッシュタイミング信号ST が“1”である場合には、
アンドゲートAND1の出力信号が“1”となりフリッ
プフロップFF1及びシフトレジスタ60aの各出力信
号が“0”に固定されるので、上記アンドゲートAND
4及びアンドゲートAND5の各第1入力には“1”が
供給され、リフレッシュクロックCAS及びRASは何
れも発生されない。
When the refresh timing signal ST output from the frequency dividing circuit 61 is "1",
Since the output signal of the AND gate AND1 becomes "1" and the output signals of the flip-flop FF1 and the shift register 60a are fixed to "0", the output signal of the AND gate AND1 is fixed.
4 and the first input of the AND gate AND5 are supplied with "1", and neither refresh clock CAS nor RAS is generated.

【0121】ここで、分周回路61から出力されるリフ
レッシュタイミング信号ST が“0”に変化すると、ア
ンドゲートAND1の出力信号が“0”、フリップフロ
ップFF1の出力信号Qが“1”となって、まず、アン
ドゲートAND4からリフレッシュクロックCAS
“0”が発生され、続いてシフトレジスタ60aの出力
信号Oが“1”となって、アンドゲートAND5からリ
フレッシュクロックRAS“0”が発生される。
When the refresh timing signal ST output from the frequency divider 61 changes to "0", the output signal of the AND gate AND1 changes to "0" and the output signal Q of the flip-flop FF1 changes to "1". First, the refresh clock CAS is supplied from the AND gate AND4.
"0" is generated, and subsequently, the output signal O of the shift register 60a becomes "1", and the refresh clock RAS "0" is generated from the AND gate AND5.

【0122】この通常動作時におけるリフレッシュクロ
ック(CAS before RAS)は、この後にシフトレジ
スタ60bの出力信号Oが“1”となり、上記フリップ
フロップFF1がリセットされることで、それぞれ
“1”に戻される。
The refresh clock (CAS before RAS) in the normal operation is returned to “1” when the output signal O of the shift register 60b subsequently becomes “1” and the flip-flop FF1 is reset. .

【0123】つまり、通常動作時には、リフレッシュタ
イミング信号ST の“1”→“0”変化に伴い、上記シ
フトレジスタ60aによるシステムクロックφSYS の計
数遅れをもって、順次リフレッシュクロック(CAS b
efore RAS)が発生される。
That is, during the normal operation, the refresh clock (CAS b) is sequentially generated with a delay in the counting of the system clock φSYS by the shift register 60 a in accordance with the change of the refresh timing signal ST from “1” to “0”.
efore RAS) is generated.

【0124】一方、サスペンドインに伴う切換え要求信
号が供給される状態で、切換え信号発生部62からのリ
フレッシュ切換え信号Xが“0”である場合には、アン
ドゲートAND2の出力信号は、分周回路61からのリ
フレッシュタイミング信号ST の変化に応じて“1”
“0”変化し、また、アンドゲートAND3の出力信号
は、クロック発生部31からのリフレッシュ用クロック
φREFRの変化に応じて“1”“0”変化することにな
る。この際、フリップフロップFF1の出力信号Q及び
シフトレジスタ60aの出力信号Oは何れも“0”とな
っているので、アンドゲートAND4及びアンドゲート
AND5の各第1入力は“1”に固定される。
On the other hand, when the switching request signal accompanying the suspend-in is supplied and the refresh switching signal X from the switching signal generating unit 62 is "0", the output signal of the AND gate AND2 is divided. "1" according to the change of the refresh timing signal ST from the circuit 61
The output signal of the AND gate AND3 changes "1" and "0" according to the change of the refresh clock φREFR from the clock generator 31. At this time, since the output signal Q of the flip-flop FF1 and the output signal O of the shift register 60a are both "0", the first inputs of the AND gates AND4 and AND5 are fixed at "1". .

【0125】そして、リフレッシュタイミング信号ST
が“0”→“1”に変化した場合には、アンドゲートA
ND2の出力信号も“0”→“1”に変化するので、フ
リップフロップFF2の反転出力信号Qは“1”となっ
てアンドゲートAND4からのリフレッシュクロックC
ASは発生されない。
Then, the refresh timing signal ST
Changes from “0” to “1”, the AND gate A
Since the output signal of ND2 also changes from "0" to "1", the inverted output signal Q of the flip-flop FF2 becomes "1" and the refresh clock C from the AND gate AND4.
No AS is generated.

【0126】この場合、アナログディレイ回路63から
リフレッシュタイミングディレイ信号STD“1”が発生
されるが、フリップフロップFF3の反転出力信号Qは
“1”となってアンドゲートAND5からのリフレッシ
ュクロックRASは発生されない。
In this case, the refresh timing delay signal STD "1" is generated from the analog delay circuit 63, but the inverted output signal Q of the flip-flop FF3 becomes "1" and the refresh clock RAS from the AND gate AND5 is generated. Not done.

【0127】この後、上記リフレッシュタイミング信号
ST が“1”→“0”に変化すると、アンドゲートAN
D2からの出力信号が“0”となることで、フリップフ
ロップFF2からの反転出力信号Qは“0”となり、ア
ンドゲートAND4からリフレッシュクロックCASが
発生される。
Thereafter, when the refresh timing signal ST changes from "1" to "0", the AND gate AN
When the output signal from D2 becomes "0", the inverted output signal Q from flip-flop FF2 becomes "0", and the refresh clock CAS is generated from AND gate AND4.

【0128】すると、アナログディレイ回路63からの
リフレッシュタイミングディレイ信号STDも“0”にな
ることで、フリップフロップFF3からの反転出力信号
Qは“0”となり、アンドゲートAND5からリフレッ
シュクロックRASが発生される。
Then, the refresh timing delay signal STD from the analog delay circuit 63 also becomes "0", the inverted output signal Q from the flip-flop FF3 becomes "0", and the refresh clock RAS is generated from the AND gate AND5. You.

【0129】このサスペンドインに伴うリフレッシュク
ロック(CAS before RAS)は、この後にクロック
発生部31からのリフレッシュ用クロックφREFRが
“0”→“1”に変化して各フリップフロップFF2,
FF3が何れもリセットされることで、それぞれ“1”
に戻される。
The refresh clock (CAS before RAS) associated with the suspend-in is generated by changing the refresh clock φREFR from the clock generation unit 31 from “0” to “1” and changing each flip-flop FF2
Each of the FFs 3 is reset to “1”
Is returned to.

【0130】つまり、サスペンドインの状態では、前記
クロック発生制御部21からのシステムクロックφSYS
の供給が停止されるものの、リフレッシュタイミング信
号ST の“1”→“0”変化に伴い、上記アナログディ
レイ回路63によるリフレッシュタイミングディレイ信
号STDの遅れをもって、順次リフレッシュクロック(C
AS before RAS)が発生される。
That is, in the suspend-in state, the system clock φSYS from the clock generation control unit 21 is output.
However, the supply of the refresh clock (C) is sequentially stopped with the delay of the refresh timing delay signal STD by the analog delay circuit 63 as the refresh timing signal ST changes from "1" to "0".
AS before RAS) is generated.

【0131】すなわち、CAS before RAS方式によ
るDRAM47のリフレッシュ制御部20を備えたデー
タ処理装置において、サスペンド状態でも必要な低周期
のクロック信号を発生するクロック発生部31に基づ
き、分周回路61を通してリフレッシュタイミング信号
ST を作成すると共に、このリフレッシュタイミング信
号ST を遅延させてリフレッシュタイミングディレイ信
号STDを得るアナログディレイ回路63を設け、上記リ
フレッシュタイミング信号ST に応じてアンドゲートA
ND2,フリップフロップFF2,アンドゲートAND
4を通してリフレッシュクロックCASを発生させると
共に、上記アナログディレイ回路63からのリフレッシ
ュタイミングディレイ信号STDに応じてフリップフロッ
プFF3,アンドゲートAND5を通してリフレッシュ
クロックRASを発生させる構成としたので、レジュー
ムモードの設定時におけるサスペンド状態への移行に際
し、高速のシステム動作クロックφSYS を発生させるク
ロック発生制御部21の動作を停止させても、DRAM
47に対する確実なリフレッシュを施すことができ、サ
スペンド時において更なる低消費電力化が図れるように
なる。
That is, in the data processing device provided with the refresh control unit 20 of the DRAM 47 by the CAS before RAS system, the refresh operation is performed through the frequency dividing circuit 61 based on the clock generation unit 31 which generates the necessary low-period clock signal even in the suspended state. An analog delay circuit 63 for generating a timing signal ST and delaying the refresh timing signal ST to obtain a refresh timing delay signal STD is provided, and an AND gate A is provided in accordance with the refresh timing signal ST.
ND2, flip-flop FF2, AND gate AND
4, the refresh clock CAS is generated through the flip-flop FF3 and the AND gate AND5 in accordance with the refresh timing delay signal STD from the analog delay circuit 63. Therefore, when the resume mode is set, At the time of transition to the suspend state, even if the operation of the clock generation control unit 21 for generating the high-speed system operation clock φSYS is stopped, the DRAM
47 can be surely refreshed, and further lower power consumption can be achieved during suspend.

【0132】したがって、上記構成のデータ処理装置に
よれば、電源OFFに伴うサスペンド状態への移行に際
しても、DRAM47及びVRAM38におけるメモリ
内容を保持させるレジューム機能を備えたもので、上記
電源OFFに伴うサスペンド状態への移行時には、DR
AM47及びVRAM38のメモリデータに基づくチェ
ックサムデータをCPU11にて作成し、SRAM46
に対し記憶保持させると共に、電源ONに伴うサスペン
ド状態解除時には、再びDRAM47及びVRAM38
のメモリデータに基づくチェックサムデータをCPU1
1にて作成し、上記SRAM46に予め記憶させたサス
ペンド状態移行時におけるチェックサムデータとの比較
判断を行なって、一致判断が得られた場合にのみ、SR
AM46に予め記憶保持されたDMAC12及びGDC
48に対するコマンドデータをセットし、電源OFF以
前のシステム状態復帰を図る構成としたので、例えばサ
スペンド状態における電圧の低下等によりメモリ内容が
変化した場合の電源再起動時において、異常な動作,表
示が行なわれたり、データ破壊が生じる等の不具合発生
を未然に防止することができる。
Therefore, according to the data processing apparatus having the above-described configuration, the data processing apparatus is provided with the resume function for retaining the memory contents in the DRAM 47 and the VRAM 38 even when shifting to the suspend state due to the power-off. At the time of transition to the state, DR
The checksum data based on the memory data of the AM 47 and the VRAM 38 is created by the CPU 11,
And the DRAM 47 and the VRAM 38 are again stored when the suspend state is released when the power is turned on.
Checksum data based on the memory data of
1 and is compared with the checksum data at the time of transition to the suspend state, which is stored in the SRAM 46 in advance, and the SR is determined only when a match is obtained.
DMAC12 and GDC previously stored and held in AM46
Since the system is configured to set the command data for 48 and restore the system state before the power is turned off, for example, when the power is restarted when the memory contents are changed due to a voltage drop or the like in the suspend state, abnormal operation and display may occur. It is possible to prevent the occurrence of troubles such as the occurrence of data corruption and the occurrence of data destruction.

【0133】[0133]

【発明の効果】本発明によれば、電源遮断要求時に、そ
の時点での装置の電源残量が極端に低いために、当該装
置の電源投入時に問題が生じる可能性があり、通常のレ
ジューム復帰さえも不可能であるような場合には、その
旨が直ちに報知された上でその装置の電源を遮断するよ
うにしたので、オペレータにあってはその装置の電源容
量が極端に低下していること、そしてそのための対応が
必要であること、を知ることができ、次回の電源投入時
での問題発生を未然に防止できる。また、その装置の電
源残量が極端に低い状態での前記電源の遮断の際は、そ
の電源遮断時にあっても多少なりとも電源消費をしてし
まうサスペンド状態での電源遮断は行わずに、全システ
ムの電源遮断を行うようにしたので、その装置の電源遮
断時間が長いためにその電源遮断中に必要以上に消費し
てしまい、次回の電源投入時にシステムの立ち上げ自体
に問題が発生してしまうといった可能性も極力避けるこ
とができる。
According to the present invention, at the time of a power-off request, since the remaining power of the apparatus at that time is extremely low, a problem may occur when the apparatus is turned on. If it is not possible, the operator is notified immediately and shuts down the power of the device, so that the power supply capacity of the device is extremely low for the operator. And that it is necessary to take measures for that, and it is possible to prevent a problem from occurring at the next power-on. Further, when the power supply is cut off in a state where the remaining power of the apparatus is extremely low, the power supply is not cut off in a suspended state in which the power is consumed at all even when the power supply is cut off. Since the power of all systems is shut down, the equipment is consumed unnecessarily during the power shutdown due to the long power shutdown time of the device, and there is a problem in starting up the system the next time the power is turned on. It is possible to avoid as much as possible.

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

【図1】本発明の一実施例に係わるデータ処理装置のシ
ステム構成を示す外観図。
FIG. 1 is an external view showing a system configuration of a data processing apparatus according to an embodiment of the present invention.

【図2】上記データ処理装置における主要電子回路の全
体構成を示すブロック図。
FIG. 2 is a block diagram showing an overall configuration of a main electronic circuit in the data processing device.

【図3】上記データ処理装置の各チップ間にて入出力さ
れるシリアルデータのデータ構成を示す図。
FIG. 3 is a diagram showing a data configuration of serial data input and output between chips of the data processing device.

【図4】上記データ処理装置の各チップA,B,C上に
備えられるシリアルデータインターフェイスにおける入
出力処理を示すフローチャート。
FIG. 4 is a flowchart showing input / output processing in a serial data interface provided on each of chips A, B, and C of the data processing device.

【図5】上記データ処理装置におけるレジューム機能部
を除いた電子回路の構成を示すブロック図。
FIG. 5 is a block diagram showing a configuration of an electronic circuit excluding a resume function unit in the data processing device.

【図6】上記データ処理装置のシステム状態管理部にて
管理される各種システム状態情報の表示状態を示す図。
FIG. 6 is a diagram showing a display state of various system state information managed by a system state management unit of the data processing device.

【図7】上記データ処理装置におけるスリープ及びレジ
ューム機能部に係わる電子回路の構成を示すブロック
図。
FIG. 7 is a block diagram showing a configuration of an electronic circuit related to a sleep and resume function unit in the data processing device.

【図8】上記データ処理装置のコマンド判断部における
レジュームモード設定時のコマンド書込み動作を示すタ
イミングチャート。
FIG. 8 is a timing chart showing a command writing operation when a resume mode is set in a command determination unit of the data processing device.

【図9】上記データ処理装置のスリープ機能部の中心を
司るCPU及びスリープ制御部の内部構成を示すブロッ
ク図。
FIG. 9 is a block diagram showing an internal configuration of a CPU and a sleep control unit which are responsible for a sleep function unit of the data processing device.

【図10】上記データ処理装置におけるCPUのメイン
制御部からバス制御部に出力されるバス制御信号とその
動作内容との関係を示す図。
FIG. 10 is a diagram showing a relationship between a bus control signal output from a main control unit of a CPU to a bus control unit in the data processing device and the operation content thereof.

【図11】上記データ処理装置のスリープモード設定時
におけるスリープ処理を示すフローチャート。
FIG. 11 is a flowchart showing sleep processing when the data processing apparatus sets a sleep mode.

【図12】上記データ処理装置におけるレジューム制御
の中心を司るマイコンの内部構成を示すブロック図。
FIG. 12 is a block diagram showing an internal configuration of a microcomputer that controls the resume control in the data processing device.

【図13】上記データ処理装置のレジュームモード設定
時におけるレジューム処理を示すフローチャート。
FIG. 13 is a flowchart showing a resume process when the data processing apparatus sets a resume mode.

【図14】上記データ処理装置のレジュームモード設定
時におけるレジューム機能キャンセルメッセージの表示
状態を示す図。
FIG. 14 is a diagram showing a display state of a resume function cancel message when the resume mode of the data processing apparatus is set.

【図15】上記データ処理装置のCPUにおけるサスペ
ンドイン制御処理を示すフローチャート。
FIG. 15 is a flowchart showing a suspend-in control process in the CPU of the data processing device.

【図16】上記データ処理装置のレジュームモード設定
時におけるサスペンドアウト制御処理を示すフローチャ
ート。
FIG. 16 is a flowchart showing a suspend-out control process when the data processing apparatus is in the resume mode.

【図17】上記データ処理装置のCPUにおけるサスペ
ンドアウト制御処理を示すフローチャート。
FIG. 17 is a flowchart showing a suspend-out control process in the CPU of the data processing device.

【図18】上記データ処理装置におけるリフレッシュ制
御部の内部構成を示す回路図。
FIG. 18 is a circuit diagram showing an internal configuration of a refresh control unit in the data processing device.

【図19】上記データ処理装置のリフレッシュ制御部に
おけるリフレッシュクロック(CAS,RAS)の発生
動作を示すタイミングチャート。
FIG. 19 is a timing chart showing an operation of generating a refresh clock (CAS, RAS) in the refresh control unit of the data processing device.

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

1…パーソナルコンピュータ、2…キーボード、2a…
SYSキー、2b…カーソルキー、2c…リターンキ
ー、2d…CAPSキー、2e…NUMキー、3…液晶
表示部、4…メモリカード装着部、5…拡張ディスクド
ライバ、6…プリンタ、7…電子手帳(RS232C搭
載機器)、8…拡張ユニット、9…拡張ディスク装着
部、A,B,C…チップ、11…CPU(中央処理装
置)、12…DMAC(ダイレクトメモリアクセスコン
トローラ)、13…ROM、14…RAM、15…コマ
ンド記憶制御部、16,28,33…シリアルデータイ
ンターフェイス、17…インターラプト制御部、18…
RAMディスク制御部、18a…RAMディスク、19
…スリープ制御部、20…リフレッシュ制御部、21…
クロック発生制御部、22…バス制御部、23…システ
ムバス、24…キーインターフェイス、25…RS23
2Cインターフェイス、26…プリンタインターフェイ
ス、27…FDDインターフェイス、29…電源制御
部、30…システム状態管理部、31…クロック発生
部、32…電源、34…液晶表示部インターフェイス、
35…システム管理表示制御部、36…システム状態表
示制御部、37…表示制御部、38…VRAM、39…
マイコン、40…メモリスイッチ記憶部、41…キー入
力ポート、42…液晶表示制御部、43…段調・反転制
御部、44…表示バッファ、45…コマンド判断部、4
6…SRAM、47…DRAM、48…GDC(グラフ
ィックディスプレイコントローラ)、49…バス使用ク
ロック発生回路、50…バス使用回数カウンタ、51…
カウントラッチ回路、52…メイン制御部、53…一致
判断部、54…制御部、55…入出力ポート、55a…
JOBENDフラグエリア、55b…SETフラグエリ
ア、55c…エラーフラグエリア、56…システム状態
レジスタ、56a…スリープモードレジスタ、56b…
レジュームモードレジスタ、56c…スリープレジス
タ、56d…サスペンドレジスタ、57…スリープカウ
ンタ、58…残量判断部、59…パワースイッチ、60
a,60b…シフトレジスタ、61…分周回路、62…
切換え信号発生部、63…アナログディレイ回路、FF
…フリップフロップ、AND…アンドゲート、INV…
インバータ、φSYS …システム動作クロック、φREFR…
リフレッシュ用クロック、X…リフレッシュ切換え信
号、ST …リフレッシュタイミング信号、STD…リフレ
ッシュタイミングディレイ信号、CAS(column addres
s strobe) ,RAS(row address strobe)…リフレッシ
ュクロック。
1. Personal computer, 2. Keyboard, 2a ...
SYS key, 2b cursor key, 2c return key, 2d CAPS key, 2e NUM key, 3 liquid crystal display section, 4 memory card mounting section, 5 expansion disk driver, 6 printer, 7 electronic notebook (RS232C-equipped device), 8: expansion unit, 9: expansion disk mounting part, A, B, C: chip, 11: CPU (central processing unit), 12: DMAC (direct memory access controller), 13: ROM, 14 ... RAM, 15 ... Command storage control unit, 16, 28, 33 ... Serial data interface, 17 ... Interrupt control unit, 18 ...
RAM disk control unit, 18a ... RAM disk, 19
... Sleep control unit, 20 ... Refresh control unit, 21 ...
Clock generation control unit, 22 bus control unit, 23 system bus, 24 key interface, 25 RS23
2C interface, 26 printer interface, 27 FDD interface, 29 power supply control unit, 30 system status management unit, 31 clock generation unit, 32 power supply, 34 liquid crystal display interface,
35: System management display control unit, 36: System status display control unit, 37: Display control unit, 38: VRAM, 39 ...
Microcomputer, 40: memory switch storage unit, 41: key input port, 42: liquid crystal display control unit, 43: step tone / inversion control unit, 44: display buffer, 45: command determination unit, 4
6 SRAM, 47 DRAM, 48 GDC (Graphic Display Controller), 49 Bus use clock generation circuit, 50 Bus use counter, 51
Count latch circuit, 52: Main control unit, 53: Match determination unit, 54: Control unit, 55: Input / output port, 55a ...
JOBEND flag area, 55b ... SET flag area, 55c ... error flag area, 56 ... system status register, 56a ... sleep mode register, 56b ...
Resume mode register, 56c sleep register, 56d suspend register, 57 sleep counter, 58 remaining amount determination unit, 59 power switch, 60
a, 60b: shift register, 61: frequency dividing circuit, 62:
Switching signal generator, 63 ... analog delay circuit, FF
... Flip-flop, AND ... And gate, INV ...
Inverter, φSYS ... system operation clock, φREFR ...
Refresh clock, X: refresh switching signal, ST: refresh timing signal, STD: refresh timing delay signal, CAS (column addres)
s strobe), RAS (row address strobe) ... refresh clock.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 データ処理装置が、現在処理中のデータ
およびシステムの動作状態情報の記憶保持する一部の電
源を除いた電源を遮断するサスペンド状態に設定された
後にあって、次回の電源投入があった際は、上記記憶保
持されていた情報を元に前記サスペンド状態に移行する
前の状態に当該装置を復帰させるレジューム機能を有し
データ処理装置であって、その装置に対する電源遮断要求があった際に、その装置
のその時点における電源残量がシステムの正常復帰を保
証する所定の電源容量あるか否かを判別する判別手段
と、 上記判別手段により上記所定の電源容量あると判別され
た際は、上記サスペンド状態での電源遮断を行う第1の
電源遮断手段と、 上記判別手段により上記所定の電源容量ないと判別され
た際は、その電源残量が極端に低下していてレジューム
復帰できない旨の報知を行った上で、当該装置を前記サ
スペンド状態への設定を行わずに全システムの電源を遮
断する第2の電源遮断手段と、 を具備したことを特徴とするデータ処理装置。
1. A data processing apparatus, comprising :
And some of the power for storing and
Was set to the suspend state to shut off the power except for the power supply
Later, the next time the power is turned on, the memory
Transition to the suspend state based on the information held
It has a resume function to return the device to a previous state
And a data processing device, when there is a power-off request for the device, the device
Power level at that point will keep the system
Determining means for determining whether there is a predetermined power supply capacity to verify
If, it is determined that there is the predetermined power capacity by the discrimination means
In this case, the first power-off in the suspend state is performed.
The power cutoff means and the determination means determine that the predetermined power capacity is not provided.
When the power supply is extremely low,
After notifying that recovery is not possible,
Power off all systems without setting to the suspended state
And a second power cutoff means for shutting down .
JP3251030A 1991-09-30 1991-09-30 Data processing device Expired - Fee Related JP3024308B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3251030A JP3024308B2 (en) 1991-09-30 1991-09-30 Data processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3251030A JP3024308B2 (en) 1991-09-30 1991-09-30 Data processing device

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP06583699A Division JP3328832B2 (en) 1999-03-12 1999-03-12 Data processing device

Publications (2)

Publication Number Publication Date
JPH0588795A JPH0588795A (en) 1993-04-09
JP3024308B2 true JP3024308B2 (en) 2000-03-21

Family

ID=17216573

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3251030A Expired - Fee Related JP3024308B2 (en) 1991-09-30 1991-09-30 Data processing device

Country Status (1)

Country Link
JP (1) JP3024308B2 (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5511202A (en) * 1993-07-26 1996-04-23 International Business Machines Corporation Desktop computer system having zero-volt system suspend and control unit for ascertaining interrupt controller base address
JPH07200112A (en) * 1993-12-15 1995-08-04 Internatl Business Mach Corp <Ibm> Information processing system
JP2006101041A (en) 2004-09-28 2006-04-13 Fujitsu Ltd Portable telephone
JP2006350930A (en) * 2005-06-20 2006-12-28 Fuji Xerox Co Ltd Control circuit and information processor
CN101796468B (en) * 2007-10-09 2012-11-07 三菱电机株式会社 Microcomputer controller
JP4867892B2 (en) * 2007-11-01 2012-02-01 日本電気株式会社 MEMORY CONTROL DEVICE, SYSTEM, PROGRAM, AND METHOD
JP4782184B2 (en) * 2008-11-04 2011-09-28 富士通株式会社 Information processing apparatus and power supply control method
JP2009159628A (en) * 2009-04-06 2009-07-16 Fujitsu Ltd Mobile telephone
JP5811714B2 (en) * 2011-09-09 2015-11-11 富士ゼロックス株式会社 Memory control device and memory control program
KR101662616B1 (en) * 2012-09-14 2016-10-05 인텔 코포레이션 Methods and apparatus to protect memory regions during low-power states
JP6316370B2 (en) * 2016-10-12 2018-04-25 インテル・コーポレーション Apparatus, method, integrated circuit, program, and tangible computer-readable storage medium
JP6494143B2 (en) * 2018-03-27 2019-04-03 インテル・コーポレーション Apparatus, method, integrated circuit, program, and tangible computer-readable storage medium

Also Published As

Publication number Publication date
JPH0588795A (en) 1993-04-09

Similar Documents

Publication Publication Date Title
JP2880863B2 (en) Suspend control method and system
US6732280B1 (en) Computer system performing machine specific tasks before going to a low power state
US6657634B1 (en) Dynamic graphics and/or video memory power reducing circuit and method
JP5410109B2 (en) Power control system and power control method
KR970006390B1 (en) Apparatus for reducing computer system power consumption
JP3024308B2 (en) Data processing device
EP0419908A2 (en) Computer system with a sleep mode function
US6405320B1 (en) Computer system performing machine specific tasks before going to a low power state
US5515539A (en) Apparatus and method for reducing power consumption by peripheral devices after downloading a program therefrom
JPH10177563A (en) Microcomputer with built-in flash memory
JPH09212416A (en) Computer system and its power managing method
EP0487900A1 (en) Portable computer resetting resume error caused from HDD loaded condition being changed and starting OS
JP3328832B2 (en) Data processing device
JPH0876872A (en) Computer device
JP3437238B2 (en) Computer, computer system and control method thereof
JPH0589041A (en) Data processor
JPH0589672A (en) Generation circuit of refreshing signal
JP3239455B2 (en) Image display device
JPH0588798A (en) Data processor
JPH0588768A (en) Data processor
JP2004287761A (en) Semiconductor device, semiconductor circuit, electronic equipment and clock supply control method
JP3047534B2 (en) Low power consumption system
JP2003122335A (en) Display controller
JP4645840B2 (en) Integrated circuit device, microcomputer and electronic device
JPH0462614A (en) Portable data processor

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090121

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090121

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100121

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110121

Year of fee payment: 11

LAPS Cancellation because of no payment of annual fees