JPH04172510A - Rtc index register control method - Google Patents

Rtc index register control method

Info

Publication number
JPH04172510A
JPH04172510A JP2301691A JP30169190A JPH04172510A JP H04172510 A JPH04172510 A JP H04172510A JP 2301691 A JP2301691 A JP 2301691A JP 30169190 A JP30169190 A JP 30169190A JP H04172510 A JPH04172510 A JP H04172510A
Authority
JP
Japan
Prior art keywords
register
rtc
value
index register
power
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2301691A
Other languages
Japanese (ja)
Inventor
Mayumi Maeda
真弓 前田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toshiba Corp
Original Assignee
Toshiba Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Corp filed Critical Toshiba Corp
Priority to JP2301691A priority Critical patent/JPH04172510A/en
Priority to DE4135812A priority patent/DE4135812A1/en
Priority to KR1019910019644A priority patent/KR950004200B1/en
Publication of JPH04172510A publication Critical patent/JPH04172510A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/04Generating or distributing clock signals or signals derived directly therefrom
    • G06F1/14Time supervision arrangements, e.g. real time clock

Abstract

PURPOSE:To make a RTC index register possible to carry out normal operation when power supply is turned on by preserving the same value as that stored previously in the RTC index register when resume processing is on effect. CONSTITUTION:When updating a value stored in a RTC (real time clock) register 16, a CPU10 outputs to a register 16 the value to be updated, and further the value is held in a special purpose register 15 for system. In the power supply breaking processing routine, if resume processing is on effect, the same value as that previously stored in register 15 is preserved in a backup memory 12. The power supply processing routine, when resume processing is on effect, reads a value that has been stored in memory 12 and that is the same as the value stored in register 16 until the preceding power supply off, and writes this value in register 16. With this, in register 16, a value that was once reduced when power supply was turned off is restored when power supply is turned on, thereby being able to carry out resume processing properly when turning on power supply.

Description

【発明の詳細な説明】 [発明の目的] (産業上の利用分野) 本発明はリジューム機能をもつパーソナルコンピュータ
に用いて好適なRTCインデックスレジスタ制御方式に
関する。
DETAILED DESCRIPTION OF THE INVENTION [Object of the Invention] (Industrial Application Field) The present invention relates to an RTC index register control method suitable for use in a personal computer having a resume function.

(従来の技術) パーソナルコンピュータに於いて、通常、RTCインデ
ックスレジスタは外部からの読出しを必要としないため
、書込み専用のレジスタ構成となっており、RTCイン
デックスレジスタへ出力した(書込んだ)値は、電源オ
フ時には知ることができなかった。従って、RT C(
Real−TimeClock )を制御しているとき
、RTCインデックスレジスタへ値を出力してから、R
TCのメモリをアクセスするまでの間に、電源がオフさ
れると、RTCインデックスレジスタの値は消滅し、次
回、電源オン時になされるリジューム処理に於いて、R
TCインデックスレジスタへの出力が無いままRTCイ
ンデックスレジスタの内容に従いRTCのメモリかアク
セスされることになり、リジューム処理が正しく行えな
いという不都合が生じる。
(Prior art) In personal computers, the RTC index register usually does not require external reading, so it has a write-only register configuration, and the value output (written) to the RTC index register is , I couldn't tell when the power was off. Therefore, RT C(
Real-TimeClock), output the value to the RTC index register, and then
If the power is turned off before the TC memory is accessed, the value of the RTC index register will disappear, and in the resume processing performed next time when the power is turned on, the RTC index register value will be lost.
The RTC memory will be accessed according to the contents of the RTC index register without any output to the TC index register, resulting in the inconvenience that resume processing cannot be performed correctly.

(発明が解決しようとする課題) 上述したように、リジューム機能をもつパーソナルコン
ピュータに於いて、従来では、リジュームモード下にて
RTCを制御している最中に電源をオフすると、RTC
インデックスレジスタに正しい値が保持されないまま、
RTCのメモリがアクセスされ、従ってリジューム処理
が正しく行えないという不都合が生じていた。
(Problems to be Solved by the Invention) As mentioned above, in a personal computer with a resume function, if the power is turned off while the RTC is being controlled in the resume mode, the RTC
The correct value is not held in the index register,
There has been an inconvenience that the memory of the RTC is accessed and therefore the resume processing cannot be performed correctly.

本発明は上記実情に鑑みなされたもので、リジュームモ
ード下にてRTCを制御している最中に電源をオフして
も電源オン時に正しくレジューム処理を行なうことので
きるRTCインデックスレジスタ制御方式を提供するこ
とを目的とする。
The present invention has been made in view of the above circumstances, and provides an RTC index register control method that allows correct resume processing when the power is turned on even if the power is turned off while the RTC is being controlled in the resume mode. The purpose is to

[発明の構成] (課題を解決するための手段及び作用)本発明は、RT
Cインデックスレジスタに書込んだレジスタ情報を保持
する読出し可能なシステム専用レジスタと、リジューム
モードでの電源遮断処理に於いて上記システム専用レジ
スタに保持されたレジスタ情報を上記バックアップメモ
リに格納する手段と、リジュームモードでの電源投入に
伴うシステム初期化処理に於いて上記バックアップメモ
リに格納されたレジスタ情報を上記RTCインデックス
レジスタに書込む手段とを有してなる構成としたもので
、これにより、リジュームモードでの電源投入時に於い
てRTCインデックスレジスタのアクセスから処理が始
まっても正常にリジューム処理を実行することができる
[Structure of the invention] (Means and effects for solving the problem) The present invention is based on RT
a readable system-dedicated register that retains register information written to the C index register; and means for storing register information retained in the system-dedicated register in the backup memory during power-off processing in resume mode; and a means for writing register information stored in the backup memory to the RTC index register during system initialization processing when power is turned on in resume mode. Even if the process starts from accessing the RTC index register when the power is turned on, the resume process can be executed normally.

(実施例) 以下図面を参照して本発明の一実施例を説明する。(Example) An embodiment of the present invention will be described below with reference to the drawings.

第1図は本発明の一実施例を示すブロック図である。FIG. 1 is a block diagram showing one embodiment of the present invention.

第1図に於いて、lOはシステム全体の制御を司るCP
Uであり、ここではリジューム設定モード下での電源オ
フ時の処理に於いてROMII内のシステム制御プログ
ラムに含まれる電源遮断処理ルーチンに従い第2図に示
すようなRTCインデックスレジスタ制御処理を実行し
、電源オン時の処理に於いてROMII内のシステム制
御プログラムに含まれる初期化処理ルーチンに従い第3
図に示すようなRTCインデックスレジスタ制御処理を
実行する。IIは固定プログラムが格納されるROMで
あり、ここではリジューム設定モード下に於ける電源オ
フ時の第2図に示すRTCインデックスレジスタ制御処
理、及び電源オン時の第3図に示すRTCインデックス
レジスタ制御処理を実現するシステム制御プログラムが
格納される。
In Figure 1, lO is the CP that controls the entire system.
U, and here, in the power-off processing under the resume setting mode, the RTC index register control processing as shown in FIG. 2 is executed according to the power-off processing routine included in the system control program in the ROMII, During power-on processing, the third
RTC index register control processing as shown in the figure is executed. II is a ROM in which a fixed program is stored, and here the RTC index register control processing shown in FIG. 2 when the power is turned off under the resume setting mode, and the RTC index register control processing shown in FIG. 3 when the power is turned on. A system control program that implements processing is stored.

12はリジューム機能を実現するためにシステム制御プ
ログラムにより使用され、電源オフ後もバッテリにより
バックアップされるメモリであり、ここではバックアッ
プメモリと称す。13はCPUl0の主メモリとなるシ
ステムメモリであり、各種のフラグ、レジスタ類を含む
作業エリアが置かれる。
A memory 12 is used by the system control program to implement the resume function and is backed up by a battery even after the power is turned off, and is herein referred to as a backup memory. A system memory 13 serves as the main memory of the CPU 10, in which a work area including various flags and registers is placed.

14はシステム制御プログラム及びその他のプログラム
により使用され、電源オフ後もバッテリによりバックア
ップされるRTCメモリである。15はCPUの制御の
下にRTCインデックスレジスタ16に出力した値を保
持する読出し可能なシステム専用レジスタである。16
はRTCメモリ14をアクセス制御するためのRTCイ
ンデックスレジスタであり、書込みのみが可能なレジス
タ構成である。17は同じ< RTCメモリ14の制御
に供されるRTCデータレジスタである。18はキーボ
ード(KB)、19は表示ユニット(CRT)である。
14 is an RTC memory that is used by the system control program and other programs and is backed up by a battery even after the power is turned off. 15 is a readable system-only register that holds the value output to the RTC index register 16 under the control of the CPU. 16
is an RTC index register for controlling access to the RTC memory 14, and has a register configuration that allows only writing. 17 is an RTC data register used to control the same RTC memory 14. 18 is a keyboard (KB), and 19 is a display unit (CRT).

第2図及び第3図はそれぞれ上記実施例に於けるRTC
インデックスレジスタ制御処理フローを示すフローチャ
ートであり、第2図はリジューム設定モード下での電源
オフ時に、ROMII内のシステム制御プログラムに含
まれる電源遮断処理ルーチンに従い実行されるRTCイ
ンデックスレジスタ制御処理フロー、第3図は同じくリ
ジューム設定モード下での電源オン時に、システム制御
プログラムに含まれる初期化処理ルーチンに従い実行さ
れるRTCインデックスレジスタ制御処理フローである
Figures 2 and 3 show the RTC in the above embodiment, respectively.
FIG. 2 is a flowchart showing the index register control processing flow, and FIG. FIG. 3 shows an RTC index register control processing flow executed according to an initialization processing routine included in the system control program when the power is turned on in the same resume setting mode.

ここで第1図乃至第3図を参照して本発明の−実施例に
於ける動作を説明する。
The operation of an embodiment of the present invention will now be described with reference to FIGS. 1 to 3.

セットアツプ処理時等に於いてRTCインデックスレジ
スタ16の値を更新する際、CPUl0はその更新する
値をRTCインデックスレジスタ16へ出力し、更にそ
の値をシステム専用レジスタ15にも出力して、RTC
インデックスレジスタ16にセットした値を常にシステ
ム専用レジスタ15に保持しておく。
When updating the value of the RTC index register 16 during setup processing, etc., the CPU 10 outputs the updated value to the RTC index register 16, and also outputs the value to the system dedicated register 15.
The value set in the index register 16 is always held in the system dedicated register 15.

リジュームモード下での電源オフ時に於いては、CPU
l0の制御の下にROMII内のシステム制御プログラ
ムに含まれる電源遮断処理ルーチンに従い第2図に示す
RTCインデックスレジスタ制御処理が実行される。
When the power is turned off in resume mode, the CPU
Under the control of l0, the RTC index register control process shown in FIG. 2 is executed according to the power cutoff process routine included in the system control program in the ROMII.

この電源遮断処理ルーチンでは、リジュームモードが設
定されていれば、即ちリジューム処理が有効となってい
れば、システム専用レジスタ15をリードアクセスし、
同レジスタ15に貯えられている、前回までRTCイン
デックスレジスタ1Bに貯えられていた値と同一内容の
値を得、この値をバックアップメモリ12に保存する。
In this power cutoff processing routine, if the resume mode is set, that is, if resume processing is enabled, read access is made to the system dedicated register 15,
A value stored in the same register 15 with the same contents as the value stored in the RTC index register 1B until the previous time is obtained, and this value is stored in the backup memory 12.

これにより、RTCインデックスレジスタ16にセット
されていた値は電源オフに伴って消滅しても、その消滅
した値と同一の値が電源オフに伴ってバックアップメモ
リ12に保存される。
As a result, even if the value set in the RTC index register 16 disappears when the power is turned off, the same value as the value that disappeared is saved in the backup memory 12 when the power is turned off.

尚、セットアツプ処理時等に於いてRTCインデックス
レジスタ16の値を更新する際、CPUl0はその更新
する値をRTCインデックスレジスタ1Bへ出力し、更
にその値をシステム専用レジスタ15にも出力して、R
TCインデックスレジスタ16にセットした値を常にシ
ステム専用レジスタ15に保持しておく。
Note that when updating the value of the RTC index register 16 during set-up processing, etc., the CPU 10 outputs the updated value to the RTC index register 1B, and further outputs the value to the system dedicated register 15. R
The value set in the TC index register 16 is always held in the system dedicated register 15.

又、リジュームモード下での電源オン時に於いては、’
CPUl0の制御の下にシステム制御プログラムの初期
化処理ルーチンに含まれる電源投入処理ルーチンに従い
第3図に示すRTCインデックスレジスタ制御処理が実
行される。
Also, when turning on the power in resume mode, '
Under the control of CPU10, the RTC index register control process shown in FIG. 3 is executed according to the power-on process routine included in the initialization process routine of the system control program.

この電源投入処理ルーチンでは、リジューム処理が有効
になっていると、バックアップメモリ12をリードアク
セスして、同メモリ12に保存されている、前回の電源
オフ時までRTCインデックスレジスタ16に貯えられ
ていた値と同一の値を読出し、この値をRTCインデッ
クスレジスタ16に書込む。これによりRTCインデッ
クスレジスタ16には、電源オフに伴って一旦消滅した
値が、電源オン時に復元される。これにより、リジュー
ムモードでの電源投入時に於いて、RTCインデックス
レジスタ16のアクセスから処理が始まっても正常にリ
ジューム処理を実行することができる。
In this power-on processing routine, if resume processing is enabled, read access is made to the backup memory 12, and the data stored in the RTC index register 16 until the previous power-off is stored in the backup memory 12. Read the same value as the value and write this value to the RTC index register 16. As a result, the value that once disappeared when the power was turned off is restored to the RTC index register 16 when the power is turned on. Thereby, when the power is turned on in the resume mode, the resume process can be executed normally even if the process starts from accessing the RTC index register 16.

[発明の効果] 以上詳記したように本発明のRTCインデックスレジス
タ制御方式によれば、RTCインデックスレジスタに書
込んだレジスタ情報を保持する読出し可能なシステム専
用レジスタと、リジュームモードでの電源遮断処理に於
いて上記システム専用レジスタに保持されたレジスタ情
報を上記バックアップメモリに格納する手段と、リジュ
ームモードでの電源投入に伴うシステム初期化処理に於
いて上記バックアップメモリに格納されたレジスタ情報
を上記RTCインデックスレジスタに書込む手段とを有
してなる構成としたことにより、リジュームモードでの
電源投入時に於いてRTCインデックスレジスタのアク
セスから処理が始まっても正常にリジューム処理を実行
することができる。
[Effects of the Invention] As detailed above, according to the RTC index register control method of the present invention, there is a readable system-dedicated register that holds register information written to the RTC index register, and power-off processing in resume mode. means for storing the register information held in the system-dedicated register in the backup memory; and means for storing the register information stored in the backup memory in the system initialization process upon power-on in the resume mode. By having the configuration including means for writing to the index register, the resume process can be normally executed even if the process starts from accessing the RTC index register when the power is turned on in the resume mode.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の一実施例を示すブロック図、第2図及
び第3図はそれぞれ上記実施例に於けるRTCインデッ
クスレジスタ制御処理フローを示すフローチャートであ
り、第2図はリジューム設定モード下での電源オフ時に
、ROMII内のシステム制御プログラムに含まれる電
源遮断処理ルーチンに従い実行されるRTCインデック
スレジスタ制御処理フロー、第3図は同じくリジューム
設定モード下での電源オン時に、システム制御プログラ
ムに含まれる初期化処理ルーチンに従い実行されるRT
Cインデックスレジスタ制御処理フローである。 IO・・・CPU、11・・・ROM、12・・・バッ
クアップメモリ、13・・・システムメモリ、14・・
・RTCメモリ、15・・・システム専用レジスタ、1
6・・・RTCインデックスレジスタ、17・・・RT
Cデータレジスタ、18・・・キーボード(KB)、1
9・・・表示ユニ・ソト(CRT)。 出願人代理人 弁理士 鈴江武彦
FIG. 1 is a block diagram showing an embodiment of the present invention, FIGS. 2 and 3 are flowcharts showing the RTC index register control processing flow in the above embodiment, and FIG. Figure 3 shows the RTC index register control processing flow executed according to the power-off processing routine included in the system control program in ROMII when the power is turned off in the ROMII. RT executed according to the initialization processing routine
It is a C index register control processing flow. IO...CPU, 11...ROM, 12...Backup memory, 13...System memory, 14...
・RTC memory, 15... System dedicated register, 1
6...RTC index register, 17...RT
C data register, 18...Keyboard (KB), 1
9...Display UniSoto (CRT). Applicant's agent Patent attorney Takehiko Suzue

Claims (1)

【特許請求の範囲】[Claims] リジューム処理のための情報を少なくともシステム電源
遮断期間に亘り保存するバックアップメモリと、時間情
報又はシステム構成情報を含むシステムに固有の情報を
少なくともシステム電源遮断期間に亘り保存するRTC
メモリと、同メモリをアクセス制御するRTCインデッ
クスレジスタ、及びRTCデータレジスタとを有してな
るパーソナルコンピュータに於いて、上記RTCインデ
ックスレジスタに書込んだレジスタ情報を保持する読出
し可能な記憶手段と、リジュームモードでの電源遮断処
理に於いて上記記憶手段に保持されたレジスタ情報を上
記バックアップメモリに格納する手段と、リジュームモ
ードでの電源投入処理に於いて上記バックアップメモリ
に格納されたレジスタ情報を上記RTCインデックスレ
ジスタに書込む手段とを具備してなることを特徴とする
RTCインデックスレジスタ制御方式。
A backup memory that stores information for resume processing for at least the system power-off period, and an RTC that stores system-specific information including time information or system configuration information for at least the system power-off period.
In a personal computer comprising a memory, an RTC index register for controlling access to the memory, and an RTC data register, a readable storage means for retaining register information written in the RTC index register, and a resume function are provided. means for storing register information held in the storage means in the backup memory during power-off processing in the mode; and means for storing the register information stored in the backup memory in the power-on processing in the resume mode. 1. An RTC index register control method, comprising means for writing to an index register.
JP2301691A 1990-11-07 1990-11-07 Rtc index register control method Pending JPH04172510A (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP2301691A JPH04172510A (en) 1990-11-07 1990-11-07 Rtc index register control method
DE4135812A DE4135812A1 (en) 1990-11-07 1991-10-30 Real=time clock and index register controller for portable computer - restarts following power interruption using stored information in back-up RAM for initialisation process
KR1019910019644A KR950004200B1 (en) 1990-11-07 1991-11-06 Control system of rtc indexregister

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2301691A JPH04172510A (en) 1990-11-07 1990-11-07 Rtc index register control method

Publications (1)

Publication Number Publication Date
JPH04172510A true JPH04172510A (en) 1992-06-19

Family

ID=17899986

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2301691A Pending JPH04172510A (en) 1990-11-07 1990-11-07 Rtc index register control method

Country Status (3)

Country Link
JP (1) JPH04172510A (en)
KR (1) KR950004200B1 (en)
DE (1) DE4135812A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012243219A (en) * 2011-05-23 2012-12-10 Canon Inc Computing device and activation control method for the same

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62258154A (en) * 1986-05-01 1987-11-10 Hitachi Ltd Data back-up device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012243219A (en) * 2011-05-23 2012-12-10 Canon Inc Computing device and activation control method for the same

Also Published As

Publication number Publication date
KR920010426A (en) 1992-06-26
DE4135812A1 (en) 1992-05-14
KR950004200B1 (en) 1995-04-27

Similar Documents

Publication Publication Date Title
JPS60246451A (en) Information protecting device
US20030145191A1 (en) Computer system and method of controlling the same
JPH04172510A (en) Rtc index register control method
CN100370395C (en) Information processing apparatus, memory managing program, and memory managing method
JPS61123959A (en) Electronics equipment having attachable/detachable memory module
JPH05334168A (en) Information processor using flash memory
JPS62125452A (en) Data back-up system for storage device
KR930002263Y1 (en) Resume processor
JPH04296954A (en) Memory system
JP2839631B2 (en) Personal computer system and configuration change method thereof
JPH1165922A (en) Personal computer
JPH0833838B2 (en) Computer system
JPH0540469A (en) Electronic equipment
JPH01274258A (en) System for guaranteeing write on data memory device
JPS6010669B2 (en) Storage device control method
JPS63159905A (en) Forcible on/off system for input/output of programmable controller
JPH0460821A (en) Storage holding device
JPH04157536A (en) Electronic computer device
JPH0455927A (en) Data area protection system
JPS63247847A (en) System for preserving input data history
JPS6225335A (en) Sequencer
JPH03167642A (en) File memory device
JPH0342714A (en) Backup control system for display memory
JPH04152410A (en) Data saving/restoring system for information processor
JPS62185296A (en) Memory device