JPH1011162A - Real-time clock device and alarm interruption control method - Google Patents

Real-time clock device and alarm interruption control method

Info

Publication number
JPH1011162A
JPH1011162A JP8159680A JP15968096A JPH1011162A JP H1011162 A JPH1011162 A JP H1011162A JP 8159680 A JP8159680 A JP 8159680A JP 15968096 A JP15968096 A JP 15968096A JP H1011162 A JPH1011162 A JP H1011162A
Authority
JP
Japan
Prior art keywords
alarm
date
register
information
minute
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
JP8159680A
Other languages
Japanese (ja)
Inventor
Shunichi Morisawa
俊一 森沢
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 JP8159680A priority Critical patent/JPH1011162A/en
Publication of JPH1011162A publication Critical patent/JPH1011162A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To make it possible to place an alarm interruption function in operation at specific time on a specific day without interposing processing by software by using year, month, and day alarm information as operation condition information of an alarm interrupting function. SOLUTION: A real-time clock 18 is equipped with an hour, minute, and second counter register, a year, month, and day counter register, an hour, minute, and second alarm register, and a year, month, and day alarm register. Whether year, month, and day alarm information is used as operation condition information of the alarm interrupting function is set with environment setting information and the year, month, and day alarm register is so switched that it can be accessed only when year, month, and day alarm information is set as the operation condition information of the alarm interrupting function. Consequently, a user can selectively operate time management for initiating an alarm interruption at specific time on a specific day and time management for initiating an alarm interruption at arbitrary time of every day.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】この発明は、たとえば指定さ
れた時刻に自動的に電源を投入するオートパワーオン機
能を有するパーソナルコンピュータなどに適用して好適
なリアルタイムクロック装置およびアラーム割り込み制
御方法に係り、特に簡単な構成を付加するのみで、従前
の時分秒のみを基準とした時刻管理と、年月日を考慮し
た時刻管理とを選択的に運用可能とするリアルタイムク
ロック装置およびアラーム割り込み制御方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a real-time clock device and an alarm interrupt control method which are preferably applied to, for example, a personal computer having an automatic power-on function for automatically turning on power at a designated time. The present invention relates to a real-time clock device and an alarm interrupt control method capable of selectively operating a time management based on only a conventional hour, minute, and second and a time management considering a date when only a particularly simple configuration is added. .

【0002】[0002]

【従来の技術】近年、携行が容易なノートブックタイプ
またはパームトップタイプのパーソナルコンピュータが
種々開発されている。この種のパーソナルコンピュータ
においては、たとえばユーザ自身が電源スイッチを操作
するのではなく、予め指定された電源投入時刻にシステ
ム電源を自動的に投入するといったアラームパワーオン
機能をもつものも多い。このアラームパワーオン機能を
利用すると、任意の時間にシステム動作を無人でスター
トさせることができるため、たとえば、オフィスなどに
おいてLANのサーバとしてパーソナルコンピュータを
使用する場合などには、毎朝勤務介し時間にサーバを自
動的にスタートさせておくなどといったことが可能とな
る。
2. Description of the Related Art In recent years, various notebook-type or palm-top type personal computers which are easy to carry have been developed. Many personal computers of this type have an alarm power-on function, for example, in which a user does not operate a power switch himself, but automatically turns on a system power supply at a predetermined power-on time. If this alarm power-on function is used, the system operation can be started unattended at an arbitrary time. For example, when a personal computer is used as a LAN server in an office or the like, a server is used every morning for work hours. Can be automatically started.

【0003】このような時刻によるシステム管理は、パ
ーソナルコンピュータに備えられるリアルタイムクロッ
ク(RTC)が、アラーム割り込みを発生させることに
よって実現されている。リアルタイムクロックは、独自
の動作用電池をもつ時計モジュールであり、その電池か
ら常時電力が供給されるスタティックRAM(CMOS
メモリ)を有している。そして、このスタティックRA
Mは、電源投入時刻を含むシステム動作環境を示す環境
設定情報の格納などに利用されている。
[0003] Such system management based on time is realized by a real-time clock (RTC) provided in a personal computer generating an alarm interrupt. The real-time clock is a clock module having an original operation battery, and a static RAM (CMOS) that is always supplied with power from the battery.
Memory). And this static RA
M is used for storing environment setting information indicating the system operating environment including the power-on time.

【0004】この環境設定情報は、CPUによって実行
制御されるアプリケーションプログラムが提供するセッ
トアップ画面上などで、その設定/変更が行なわれる。
図7に、このセットアップ画面の一例を示す。
[0004] The environment setting information is set / changed on a setup screen provided by an application program that is executed and controlled by the CPU.
FIG. 7 shows an example of this setup screen.

【0005】図7に示されるように、セットアップ画面
には、アラームパワーオン機能を稼働させるための環境
設定項目40が含まれている。アラームパワーオン機能
の環境設定項目40では、アラームパワーオン機能の有
効(使用する)/無効(使用しない)を指定することが
でき、アラームパワーオン機能を有効とする場合には、
その稼働時刻をさらに指定することができるようになっ
ている。
[0007] As shown in FIG. 7, the setup screen includes an environment setting item 40 for operating the alarm power-on function. In the environment setting item 40 of the alarm power-on function, it is possible to specify whether the alarm power-on function is enabled (used) or disabled (not used). When the alarm power-on function is enabled,
The operating time can be further specified.

【0006】図8には、リアルタイムクロックのレジス
タ構成が示されている。図7に示したセットアップ画面
において指定される、アラームパワーオン機能を実現す
るためのアラーム割り込み発生時刻(時,分,秒)は、
アラーム情報として時アラームレジスタ、分アラームレ
ジスタおよび秒アラームレジスタにそれぞれ格納され
る。また、アラームパワーオン機能の有効/無効の指定
は、コントロールレジスタB(ビット5)に格納され
る。そして、時カウンタレジスタ、分カウンタレジスタ
および秒カウンタレジスタは、それぞれ絶対時刻(時,
分,秒)を計数するために用いられるレジスタである。
FIG. 8 shows a register configuration of a real-time clock. The alarm interrupt occurrence time (hour, minute, second) for realizing the alarm power-on function specified on the setup screen shown in FIG.
The alarm information is stored in the hour alarm register, minute alarm register, and second alarm register, respectively. The specification of the validity / invalidity of the alarm power-on function is stored in the control register B (bit 5). The hour counter register, minute counter register, and second counter register store the absolute time (hour,
This register is used to count minutes, seconds).

【0007】このようなレジスタ構成をもつリアルタイ
ムクロックでは、図9に示す原理によってアラーム割り
込みを発生させている。すなわち、各カウンタレジスタ
によって示される時分秒と、各アラームレジスタによっ
て格納される時分秒アラーム情報とを比較して、この比
較結果が一致であり、かつコントロールレジスタB(ビ
ット5)により格納されるアラーム割り込みの有効/無
効の指定が有効であったときに、アラーム割り込みを発
生させる。
In the real-time clock having such a register configuration, an alarm interrupt is generated according to the principle shown in FIG. That is, the hour, minute, and second indicated by each counter register is compared with the hour, minute, and second alarm information stored by each alarm register, and the comparison result is the same, and is stored by the control register B (bit 5). Generates an alarm interrupt when the valid / invalid setting of the alarm interrupt is valid.

【0008】しかしながら、従来のリアルタイムクロッ
クでは、アラームパワーオン機能の稼働日付(年,月,
日)を格納するレジスタを具備していなかったために、
特定の日時においてアラーム割り込みを発生させるとき
には、アラーム割り込みの処理過程において、リアルタ
イムクロック内の年カウンタレジスタ、月カウンタレジ
スタおよび日カウンタレジスタによって示される年月日
と、いずれかの領域に保持されたユーザの所望する年月
日とをソフトウエアによって比較するといった処理を介
在させなければならないといった問題があった。
However, in the conventional real-time clock, the operating date (year, month,
Day) was not provided.
When an alarm interrupt is generated at a specific date and time, in the process of processing the alarm interrupt, the year, month, and day indicated by the year counter register, the month counter register, and the day counter register in the real-time clock, and the user held in any area. There is a problem that a process of comparing the desired date with software by software must be interposed.

【0009】また、リアルタイムクロック内に年カウン
タレジスタ、月カウンタレジスタおよび日カウンタレジ
スタを独自に確保し、図10に示す原理によってアラー
ム割り込みを発生させているものも存在する。すなわ
ち、各カウンタレジスタによって示される年月日時分秒
と、各アラームレジスタによって格納される年月日時分
秒アラーム情報とを比較して、この比較結果が一致であ
り、かつコントロールレジスタB(ビット5)により格
納されるアラーム割り込みの有効/無効の指定が有効で
あったときに、アラーム割り込みを発生させるといった
ものである。
There is also a type in which a year counter register, a month counter register, and a day counter register are independently secured in a real-time clock, and an alarm interrupt is generated according to the principle shown in FIG. That is, the date, month, day, hour, minute, and second indicated by each counter register is compared with the date, month, day, hour, minute, and second alarm information stored by each alarm register. ), An alarm interrupt is generated when the validity / invalidity specification of the alarm interrupt stored by the method is valid.

【0010】しかしながら、このような原理によってア
ラーム割り込みを発生させる構成をもつリアルタイムク
ロックでは、従前から使用されてきた、毎日所定の時刻
に所定の処理を行なうといった機能が使用できなくなっ
てしまうといった問題があった。
However, a real-time clock having a configuration for generating an alarm interrupt based on such a principle has a problem that a function used conventionally, such as performing a predetermined process at a predetermined time every day, cannot be used. there were.

【0011】[0011]

【発明が解決しようとする課題】このように、従来のリ
アルタイムクロックでは、特定の日時においてアラーム
割り込みを発生させるときには、アラーム割り込みの処
理過程において、リアルタイムクロック内の年カウンタ
レジスタ、月カウンタレジスタおよび日カウンタレジス
タによって示される年月日と、いずれかの領域に保持さ
れたユーザの所望する年月日とをソフトウエアによって
比較するといった処理を介在させなければならないとい
った問題があった。
As described above, according to the conventional real-time clock, when an alarm interrupt is generated at a specific date and time, the year counter register, the month counter register and the There has been a problem that a process of comparing the date indicated by the counter register with the date desired by the user held in any area by software must be interposed.

【0012】また、年カウンタレジスタ、月カウンタレ
ジスタおよび日カウンタレジスタを独自に確保して、特
定の日時にアラーム割り込みを発生させるリアルタイム
クロックにおいては、従前から使用されてきた、毎日所
定の時刻に所定の処理を行なうといった機能が使用でき
なくなってしまうといった問題があった。
Further, in a real-time clock which independently secures a year counter register, a month counter register and a day counter register to generate an alarm interrupt at a specific date and time, the real-time clock which has been conventionally used is provided at a predetermined time every day. There is a problem that a function such as performing the above processing cannot be used.

【0013】この発明はこのような実情に鑑みてなされ
たものであり、従前の時分秒のみを基準とした時刻管理
と、年月日を考慮した時刻管理とを選択的に運用可能と
するリアルタイムクロック装置およびアラーム割り込み
制御方法を提供することを目的とする。
The present invention has been made in view of such circumstances, and enables selective operation of the conventional time management based only on the hour, minute, and second and the time management considering the date. It is an object to provide a real-time clock device and an alarm interrupt control method.

【0014】[0014]

【課題を解決するための手段】この発明は、予め指定さ
れた時刻に割り込みを発生させるアラーム割り込み機能
を有するリアルタイムクロック装置において、時分秒を
計数する時分秒カウンタレジスタと、年月日を計数する
年月日カウンタレジスタと、前記アラーム割り込み機能
を稼働させる時分秒を設定するための時分秒アラーム情
報を格納する時分秒アラームレジスタと、前記アラーム
割り込み機能を稼働させる年月日を設定するための年月
日アラーム情報を格納する年月日アラームレジスタと、
前記年月日アラームレジスタに格納される年月日アラー
ム情報を前記アラーム割り込み機能の稼働条件情報とす
るか否か設定するための環境設定情報を格納する環境設
定情報レジスタと、前記時分秒カウンタレジスタの示す
時分秒と前記時分秒アラームレジスタの格納する時分秒
アラーム情報とが一致したとき、前記環境設定情報を参
照して前記年月日アラーム情報が前記アラーム割り込み
機能の稼働条件情報となっているか否か検出し、稼働条
件情報となっているときには前記年月日カウンタレジス
タの示す年月日と前記年月日アラームレジスタの格納す
る年月日アラーム情報とが一致したときにのみ前記アラ
ーム割り込み機能を稼働させるアラーム割り込み制御手
段とを具備してなることを特徴とする。
SUMMARY OF THE INVENTION The present invention provides a real-time clock device having an alarm interrupt function for generating an interrupt at a predetermined time, an hour-minute-second counter register for counting hour-minute-second, A year / month / day counter register for counting, an hour / minute / second alarm register storing hour / minute / second alarm information for setting the hour / minute / second for operating the alarm interrupt function, and a date for operating the alarm interrupt function. A date alarm register for storing date alarm information for setting;
An environment setting information register for storing environment setting information for setting whether to set the date and time alarm information stored in the date and time alarm register as operating condition information of the alarm interrupt function, and the hour / minute / second counter When the hour / minute / second indicated by the register matches the hour / minute / second alarm information stored in the hour / minute / second alarm register, the date / time alarm information is referred to the environment setting information and the operating date / time information of the alarm interrupt function is referred to. Is detected, and when the operating condition information is obtained, only when the date indicated by the date counter register matches the date alarm information stored in the date alarm register. An alarm interrupt control means for operating the alarm interrupt function is provided.

【0015】この発明においては、年月日アラーム情報
をアラーム割り込み機能の稼働条件情報とするか否かが
環境設定情報によって設定される。そして、環境設定情
報によって年月日アラーム情報がアラーム割り込み機能
の稼働条件情報とされていない場合には、従前どおりに
時分秒カウンタレジスタの示す時分秒と前記時分秒アラ
ームレジスタの格納する時分秒アラーム情報とが一致し
た時点で、アラーム割り込みを発生させる。一方、環境
設定情報によって年月日アラーム情報がアラーム割り込
み機能の稼働条件情報とされている場合には、さらに年
月日カウンタレジスタの示す年月日と年月日アラームレ
ジスタの格納する年月日アラーム情報とが一致している
か否かを検出し、これらが一致しているときに初めてア
ラーム割り込みを発生させる。
In the present invention, whether or not the date and time alarm information is used as the operating condition information of the alarm interrupt function is set by the environment setting information. If the date and time alarm information is not the operating condition information of the alarm interrupt function according to the environment setting information, the hour, minute, and second indicated by the hour, minute, second counter register and the hour, minute, second alarm register are stored as before. An alarm interrupt is generated when the hour, minute, and second alarm information matches. On the other hand, when the date / time alarm information is set as the operating condition information of the alarm interrupt function according to the environment setting information, the date / time indicated by the date / time counter register and the date / time stored in the date / time alarm register are further stored. It is detected whether or not the alarm information matches, and an alarm interrupt is generated only when the information matches.

【0016】これによりユーザは、特定の日時にアラー
ム割り込みを発生させるといった時刻管理と、毎日任意
の時刻にアラーム割り込みを発生させるといった従前の
時刻管理とを選択的に運用することが可能となる。
Thus, the user can selectively operate time management such as generating an alarm interrupt at a specific date and time and conventional time management generating an alarm interrupt at an arbitrary time every day.

【0017】[0017]

【発明の実施の形態】以下、図面を参照してこの発明の
実施の形態を説明する。図1には、この発明の一実施形
態に係るコンピュータシステムのシステム構成が示され
ている。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 shows a system configuration of a computer system according to an embodiment of the present invention.

【0018】図1に示すように、本実施形態のコンピュ
ータシステムは、CPU11、システムコントローラ1
2、システムメモリ13、BIOS−ROM14、キー
ボードコントローラ(KBC)15、システムタイマ
(PIT)16、電源コントローラ(PSC)17、リ
アルタイムクロック(RTC)18、表示コントローラ
19およびビデオメモリ(VRAM)22を備えてい
る。
As shown in FIG. 1, a computer system according to this embodiment comprises a CPU 11, a system controller 1
2. System memory 13, BIOS-ROM 14, keyboard controller (KBC) 15, system timer (PIT) 16, power supply controller (PSC) 17, real-time clock (RTC) 18, display controller 19, and video memory (VRAM) 22 ing.

【0019】CPU11およびシステムメモリ13は、
32ビット幅のデータバスを含むCPUローカルバス1
1Aに接続されている。CPUローカルバス11Aは、
システムコントローラ12内のバス変換回路を介して、
16ビット幅のデータバスを含むISA仕様のシステム
バス11Bに接続されている。システムバス11Bに
は、BIOS−ROM14、キーボードコントローラ
(KBC)15、システムタイマ(PIT)16、電源
コントローラ(PSC)17、リアルタイムクロック
(RTC)18、および、表示コントローラ19が接続
されている。
The CPU 11 and the system memory 13
CPU local bus 1 including 32-bit data bus
1A. The CPU local bus 11A is
Via a bus conversion circuit in the system controller 12,
It is connected to a system bus 11B of the ISA specification including a data bus of 16-bit width. A BIOS-ROM 14, a keyboard controller (KBC) 15, a system timer (PIT) 16, a power supply controller (PSC) 17, a real-time clock (RTC) 18, and a display controller 19 are connected to the system bus 11B.

【0020】システムコントローラ12は、このシステ
ム内のメモリやI/Oを制御するためのゲートアレイで
ある。システムメモリ13は、オペレーティングシステ
ム、処理対象のアプリケーションプログラム(ユーティ
リティープログラムを含む)、およびアプリケーション
プログラムによって作成されたユーザデータなどを格納
する。
The system controller 12 is a gate array for controlling memories and I / O in the system. The system memory 13 stores an operating system, an application program to be processed (including a utility program), user data created by the application program, and the like.

【0021】BIOS−ROM14は、システム−BI
OSおよびVGA−BIOSを記憶するためのものであ
り、プログラム書き替えが可能なようにフラッシュメモ
リによって構成されている。
The BIOS-ROM 14 has a system-BI
This is for storing an OS and a VGA-BIOS, and is constituted by a flash memory so that a program can be rewritten.

【0022】リアルタイムクロック(RTC)18は、
独自の動作用電池を持つ時計モジュールであり、その電
池から常時電源が供給されるCMOS構成のスタティッ
クRAM(CMOSメモリ)を有している。このスタテ
ィックRAMは、システム動作環境を示す環境設定情報
の保存などに利用される。そして、このリアルタイムク
ロック18は、スタティックRAMに保存される環境設
定情報に基づき、所定のタイミングでアラーム割り込み
を発生させる。なお、このリアルタイムクロック18の
レジスタ構成、およびアラーム割り込みの発生原理は本
実施形態の特徴とするところであり、これについては後
述する。
The real time clock (RTC) 18 is
This is a clock module having a unique operation battery, and has a CMOS static RAM (CMOS memory) to which power is constantly supplied from the battery. This static RAM is used for storing environment setting information indicating the system operating environment. Then, the real-time clock 18 generates an alarm interrupt at a predetermined timing based on the environment setting information stored in the static RAM. The register configuration of the real-time clock 18 and the principle of generating an alarm interrupt are features of the present embodiment, which will be described later.

【0023】表示コントローラ19は、LCD20やC
RT21を表示制御するためのものであり、CPUロー
カルバス11Aを介してCPU11から表示データを受
け取り、それをビデオメモリ(VRAM)22に書き込
む。
The display controller 19 includes an LCD 20 and a C
It is for controlling display of the RT 21, receives display data from the CPU 11 via the CPU local bus 11 </ b> A, and writes it into the video memory (VRAM) 22.

【0024】図2には、リアルタイムクロック18の構
成図が示されている。図2に示したように、リアルタイ
ムクロック18は、内部にレジスタ181およびレジス
タ182の2つのレジスタを備えてなる。なお、この構
成自体は、従来のパーソナルコンピュータに設けられる
リアルタイムクロックの構成とまったく同じものである
ため、その互換は保証される。
FIG. 2 shows a configuration diagram of the real-time clock 18. As shown in FIG. 2, the real-time clock 18 includes two registers, ie, a register 181 and a register 182. Since the configuration itself is exactly the same as the configuration of the real-time clock provided in the conventional personal computer, compatibility is guaranteed.

【0025】レジスタ181は、内部計時制御や割り込
み/カウント制御などを行なうためのコントロールレジ
スタとして用いられる。また、レジスタ182は、絶対
時刻を計数するカウンタレジスタやアラーム情報を格納
するアラームレジスタとして用いられる。このように用
いられるレジスタ181およびレジスタ182からなる
リアルタイムクロック18のレジスタ構成を図3に示
す。
The register 181 is used as a control register for performing internal timing control, interrupt / count control, and the like. The register 182 is used as a counter register for counting absolute time and an alarm register for storing alarm information. FIG. 3 shows a register configuration of the real-time clock 18 including the register 181 and the register 182 used in this manner.

【0026】図3に示したように、本実施形態のリアル
タイムクロック18は、年アラームレジスタ、月アラー
ムレジスタおよび日アラームレジスタを新たに確保す
る。また、この年月日アラームレジスタは、年月日カウ
ンタレジスタと同じアドレスにマッピングする。そし
て、この年月日アラームレジスタは、アラーム割り込み
機能の稼働条件情報として設定されているときのみアク
セス可能となるように、その切り替えが行なわれる。こ
の年月日アラームレジスタの内容がアラーム割り込み機
能の稼働条件情報として設定されているか否かは、コン
トロールレジスタCの所定のビットに格納される。
As shown in FIG. 3, the real-time clock 18 of this embodiment newly secures a year alarm register, a month alarm register, and a day alarm register. The date alarm register is mapped to the same address as the date counter register. The date / time alarm register is switched so that it can be accessed only when it is set as operating condition information of the alarm interrupt function. Whether or not the contents of the date alarm register is set as operating condition information of the alarm interrupt function is stored in a predetermined bit of the control register C.

【0027】図4には、コントロールレジスタCのビッ
ト構成が示されている。図4に示したように、コントロ
ールレジスタCのビット1には、本実施形態の特徴とす
る、年月日アラームレジスタをアラーム割り込み機能の
稼働条件情報とするか否かを設定するための情報が格納
される。したがって、このコントロールレジスタCのビ
ット1に、年月日アラームレジスタをアラーム割り込み
機能の稼働条件情報とする旨を示す情報が格納されてい
る際、インデックス7〜9を用いてリアルタイムクロッ
ク18のレジスタにアクセスすると、そのアクセス先は
年月日アラームレジスタとなることになる。これによ
り、レジスタのインデックスがなんら変更されることは
ない。なお、アラームパワーオン機能の有効/無効を設
定するための情報は、従前どおりにコントロールレジス
タBのビット5に格納される。
FIG. 4 shows the bit configuration of the control register C. As shown in FIG. 4, bit 1 of the control register C contains information for setting whether or not to use the date alarm register as the operating condition information of the alarm interrupt function, which is a feature of the present embodiment. Is stored. Therefore, when information indicating that the date / time alarm register is used as the operating condition information of the alarm interrupt function is stored in bit 1 of the control register C, the index of the real time clock 18 is stored in the register of the real time clock 18 using the indexes 7 to 9. When accessed, the access destination will be the date alarm register. As a result, the register index is not changed at all. The information for setting the validity / invalidity of the alarm power-on function is stored in bit 5 of the control register B as before.

【0028】図5には、本実施形態のパーソナルコンピ
ュータが備えるアラームパワーオン機能を稼働させるた
めの環境設定項目を設定するセットアップ画面が示され
ている。
FIG. 5 shows a setup screen for setting environmental setting items for operating the alarm power-on function provided in the personal computer of this embodiment.

【0029】図5に示すように、セットアップ画面に
は、アラームパワーオン機能を稼働させるための環境設
定項目30が含まれている。このセットアップ画面は、
CPU11が実行制御するアプリケーションプログラム
などによって提供されるものである。
As shown in FIG. 5, the setup screen includes an environment setting item 30 for operating the alarm power-on function. This setup screen is
It is provided by an application program or the like that is executed and controlled by the CPU 11.

【0030】本実施形態のアラームパワーオン機能の環
境設定項目30では、アラームパワーオン機能の有効
(使用する)/無効(使用しない)を指定することがで
きるとともに、年月日の日付設定を有効とするか否かを
指定することが可能である。そしてアラームパワーオン
機能を有効とし、かつ年月日の日付設定を有効とする場
合には、その稼働日付および稼働時刻をさらに指定する
ことができるようになっている。一方、アラームパワー
オン機能を有効とし、かつ年月日の日付設定を無効とす
る場合には、稼働時刻のみを指定すればよい。そして、
この設定は、以下にそれぞれ格納される。
In the environment setting item 30 of the alarm power-on function of this embodiment, it is possible to specify whether the alarm power-on function is valid (use) / invalid (not use), and the date setting of the date is valid. Can be specified. When the alarm power-on function is enabled and the date setting is enabled, the operation date and operation time can be further specified. On the other hand, when the alarm power-on function is enabled and the date setting of the date is disabled, only the operation time needs to be specified. And
This setting is respectively stored below.

【0031】(1)アラームパワーオン機能の有効/無
効 コントロールレジスタBのビット5。 (2)年月日の日付設定の有効/無効 コントロールレジスタCのビット1。
(1) Enable / Disable of alarm power-on function Bit 5 of control register B. (2) Validity / invalidity of date setting of date The bit 1 of the control register C.

【0032】(3)アラームパワーオン機能の稼働年月
日 年月日アラームレジスタ (4)アラームパワーオン機能の稼働時分秒 時分秒アラームレジスタ これによりユーザは、任意の日時に自動的に電源を投入
する(アラーム割り込みを発生させる)、あるいは、毎
日所定の時刻に電源を投入する、のいずれの設定も行な
うことが可能となる。
(3) Operation date of alarm power-on function Alarm register (4) Operation hour-minute-second hour-minute-second alarm register of alarm power-on function This allows the user to automatically turn on the power at an arbitrary date and time. (To generate an alarm interrupt) or to turn on the power at a predetermined time every day.

【0033】このようにレジスタ値が設定されたリアル
タイムクロックでは、図6に示す原理によってアラーム
割り込みを発生させる。すなわち、時分秒それぞれのカ
ウンタレジスタによって示される時分秒と、時分秒それ
ぞれのアラームレジスタによって格納される時分秒アラ
ーム情報とを比較するとともに、年月日それぞれのカウ
ンタレジスタによって示される年月日と、年月日それぞ
れのアラームレジスタによって格納される年月日アラー
ム情報とを比較する。そして、 (1)時分秒と時分秒アラーム情報とが一致。
In the real-time clock in which the register value is set as described above, an alarm interrupt is generated according to the principle shown in FIG. That is, the hour, minute, and second indicated by the hour, minute, and second counter registers are compared with the hour, minute, and second alarm information stored in the hour, minute, and second alarm registers, and the year indicated by the year, month, and day counter registers is also determined. The date is compared with the date information stored in the respective alarm registers. (1) The hour, minute, second and hour, minute, second alarm information match.

【0034】(2)年月日と年月日アラーム情報とが一
致、または年月日アラーム情報がアラーム割り込み機能
の稼働条件情報となっていない。 (3)アラーム割り込みの有効/無効の指定が有効。
(2) The date and time and the alarm information do not match, or the date and time alarm information is not the operating condition information of the alarm interrupt function. (3) Valid / invalid of alarm interrupt is valid.

【0035】のすべての条件が成立したときに、アラー
ム割り込みを発生させる。これにより、本発明のリアル
タイムクロックによれば、ソフトウエアによる処理を介
在させるようなことをまったく必要とせずに、従前の時
分秒のみを基準とした時刻管理を選択可能としつつ、年
月日を考慮した時刻管理をサポート可能とすることがで
きる。
When all the conditions are satisfied, an alarm interrupt is generated. Thus, according to the real-time clock of the present invention, it is possible to select time management based on only the previous hour, minute, and second without any need for intervening processing by software. Can be supported.

【0036】[0036]

【発明の効果】以上詳述したように、この発明によれ
ば、年月日アラーム情報をアラーム割り込み機能の稼働
条件情報とすることによって、ソフトウエアによる処理
を介在させることなく特定の日時にアラーム割り込み機
能を稼働させることができ、また、環境設定情報によっ
て年月日アラーム情報をアラーム割り込み機能の稼働条
件情報とするか否かが設定できるため、毎日所定の時刻
にアラーム割り込み機能を稼働させることも可能とな
る、これにより、従前のアラーム割り込み機能を利用し
た各種機能を継続して稼働させることができ、その互換
は完全に確保されることになる。
As described above in detail, according to the present invention, the date and time alarm information is used as the operating condition information of the alarm interrupt function, so that the alarm can be performed at a specific date and time without any software processing. The interrupt function can be activated, and the environment setting information can be used to set whether or not to use the date and time alarm information as the operating condition information of the alarm interrupt function. Thus, various functions using the conventional alarm interrupt function can be continuously operated, and their compatibility is completely ensured.

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

【図1】この発明の一実施形態に係るコンピュータシス
テムのシステム構成を示す図。
FIG. 1 is an exemplary view showing the system configuration of a computer system according to an embodiment of the present invention.

【図2】同実施形態のリアルタイムクロックの構成を示
す図。
FIG. 2 is an exemplary view showing a configuration of a real-time clock according to the embodiment.

【図3】同実施形態のリアルタイムクロックのレジスタ
構成を示す図。
FIG. 3 is an exemplary view showing a register configuration of a real-time clock according to the embodiment;

【図4】同実施形態のリアルタイムクロック内のコント
ロールレジスタCのビット構成を示す図。
FIG. 4 is an exemplary view showing a bit configuration of a control register C in the real-time clock according to the embodiment;

【図5】同実施形態のパーソナルコンピュータが備える
アラームパワーオン機能を稼働させるための環境設定項
目を設定するセットアップ画面を示す図。
FIG. 5 is an exemplary view showing a setup screen for setting environment setting items for operating an alarm power-on function provided in the personal computer of the embodiment.

【図6】同実施形態のアラーム割り込みを発生させる原
理を示す図。
FIG. 6 is an exemplary view showing the principle of generating an alarm interrupt according to the embodiment;

【図7】従来のセットアップ画面の一例を示す図。FIG. 7 is a diagram showing an example of a conventional setup screen.

【図8】従来のリアルタイムクロックのレジスタ構成を
示す図。
FIG. 8 is a diagram showing a conventional real-time clock register configuration.

【図9】従来のアラーム割り込みを発生させる原理を示
す図。
FIG. 9 is a diagram showing a principle of generating a conventional alarm interrupt.

【図10】従来のアラーム割り込みを発生させる原理を
示す図。
FIG. 10 is a diagram showing the principle of generating a conventional alarm interrupt.

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

11…CPU、18…リアルタイムクロック(RT
C)、181,182…リアルタイムクロック内レジス
タ。
11 CPU, 18 Real-time clock (RT
C), 181, 182: Registers in the real-time clock.

Claims (9)

【特許請求の範囲】[Claims] 【請求項1】 予め指定された時刻に割り込みを発生さ
せるアラーム割り込み機能を有するリアルタイムクロッ
ク装置において、 時分秒を計数する時分秒カウンタレジスタと、 年月日を計数する年月日カウンタレジスタと、 前記アラーム割り込み機能を稼働させる時分秒を設定す
るための時分秒アラーム情報を格納する時分秒アラーム
レジスタと、 前記アラーム割り込み機能を稼働させる年月日を設定す
るための年月日アラーム情報を格納する年月日アラーム
レジスタと、 前記年月日アラームレジスタに格納される年月日アラー
ム情報を前記アラーム割り込み機能の稼働条件情報とす
るか否か設定するための環境設定情報を格納する環境設
定情報レジスタと、 前記時分秒カウンタレジスタの示す時分秒と前記時分秒
アラームレジスタの格納する時分秒アラーム情報とが一
致したとき、前記環境設定情報を参照して前記年月日ア
ラーム情報が前記アラーム割り込み機能の稼働条件情報
となっているか否か検出し、稼働条件情報となっている
ときには前記年月日カウンタレジスタの示す年月日と前
記年月日アラームレジスタの格納する年月日アラーム情
報とが一致したときにのみ前記アラーム割り込み機能を
稼働させるアラーム割り込み制御手段とを具備してなる
ことを特徴とするリアルタイムクロック装置。
1. A real-time clock device having an alarm interrupt function for generating an interrupt at a predetermined time, an hour-minute-second counter register for counting hours, minutes, and seconds, and a year-month-day counter register for counting years, months, and days. An hour-minute-second alarm register for storing hour-minute-second alarm information for setting the hour-minute-second for operating the alarm interrupt function; and a year-month-day alarm for setting a year-month-day for operating the alarm interrupt function. A date alarm register for storing information; and environment setting information for setting whether the date alarm information stored in the date alarm register is used as operating condition information of the alarm interrupt function. Environment setting information register, and storing of the hour-minute-second and the hour-minute-second alarm register indicated by the hour-minute-second counter register When the hour, minute, and second alarm information matches, it is detected whether or not the date and time alarm information is operating condition information of the alarm interrupt function with reference to the environment setting information, and becomes operating condition information. Alarm interrupt control means for operating the alarm interrupt function only when the date indicated by the date counter register matches the date alarm information stored in the date alarm register. A real-time clock device comprising:
【請求項2】 前記アラーム割り込み制御手段は、前記
年月日アラーム情報が前記アラーム割り込み機能の稼働
条件情報となっていないときには、前記時分秒カウンタ
レジスタの示す時分秒と前記時分秒アラームレジスタの
格納する時分秒アラーム情報とが一致した時点で前記ア
ラーム割り込み機能を稼働させることを特徴とする請求
項1記載のリアルタイムクロック装置。
2. The alarm interrupt control means according to claim 1, wherein said date and time alarm information is not operating condition information of said alarm interrupt function. 2. The real-time clock device according to claim 1, wherein the alarm interrupt function is activated when the hour, minute, and second alarm information stored in the register matches.
【請求項3】 前記環境設定情報は、前記アラーム割り
込み機能の有効/無効を設定するための情報を含むこと
を特徴とする請求項1または2記載のリアルタイムクロ
ック装置。
3. The real-time clock device according to claim 1, wherein the environment setting information includes information for setting enable / disable of the alarm interrupt function.
【請求項4】 前記年月日アラームレジスタは、前記年
月日カウンタレジスタと同じアドレスでマッピングさ
れ、前記環境設定情報により前記年月日アラーム情報が
前記アラーム割り込み機能の稼働条件情報となっている
ときにのみアクセス可能に切り替えられることを特徴と
する請求項1または2記載のリアルタイムクロック装
置。
4. The date alarm register is mapped at the same address as the date counter register, and the date / time alarm information is operating condition information of the alarm interrupt function according to the environment setting information. 3. The real-time clock device according to claim 1, wherein the real-time clock device is switched to be accessible only at a time.
【請求項5】 前記アラーム割り込み制御手段は、比較
器を含む論理回路によって構成されることを特徴とする
請求項1または2記載のリアルタイムクロック装置。
5. The real-time clock device according to claim 1, wherein said alarm interrupt control means is constituted by a logic circuit including a comparator.
【請求項6】 前記時分秒アラーム情報、年月日アラー
ム情報および環境設定情報は、CPUによって実行制御
されるアプリケーションプログラムが提供するセットア
ップ画面上で設定/変更されることを特徴とする請求項
1または2記載のリアルタイムクロック装置。
6. The hour, minute, second alarm information, year / month / day alarm information, and environment setting information are set / changed on a setup screen provided by an application program executed and controlled by a CPU. 3. The real-time clock device according to 1 or 2.
【請求項7】 予め指定された時刻に割り込みを発生さ
せるアラーム割り込み機能を有するリアルタイムクロッ
ク装置において、 時分秒を計数する時分秒カウンタレジスタと、 年月日を計数する年月日カウンタレジスタと、 前記アラーム割り込み機能を稼働させる時分秒を設定す
るための時分秒アラーム情報を格納する時分秒アラーム
レジスタと、 前記アラーム割り込み機能を稼働させる年月日を設定す
るための年月日アラーム情報を格納する年月日アラーム
レジスタと、 前記年月日アラームレジスタに格納される年月日アラー
ム情報を前記アラーム割り込み機能の稼働条件情報とす
るか否か設定するための環境設定情報を格納する環境設
定情報レジスタと、 前記時分秒カウンタレジスタの示す時分秒と前記時分秒
アラームレジスタの格納する時分秒アラーム情報とが一
致したときに信号を出力する第1の比較器と、 前記年月日カウンタレジスタの示す年月日と前記年月日
アラームレジスタの格納する年月日アラーム情報とが一
致したときに信号を出力する第2の比較器と、 前記環境設定情報により前記年月日アラーム情報が前記
アラーム割り込み機能の稼働条件情報となっていないと
き、または前記第2の比較器から信号が出力されたとき
に信号を出力する第1の論理回路と、 前記第1の比較器および第1の論理回路の双方から信号
が出力されたときに前記アラーム割り込み機能の起動を
指示する信号を出力する第2の論理回路とを具備してな
ることを特徴とするリアルタイムクロック装置。
7. A real-time clock device having an alarm interrupt function for generating an interrupt at a predetermined time, an hour-minute-second counter register for counting hours, minutes, and seconds, and a year-month-day counter register for counting years, months, and days. An hour-minute-second alarm register for storing hour-minute-second alarm information for setting the hour-minute-second for operating the alarm interrupt function; and a year-month-day alarm for setting a year-month-day for operating the alarm interrupt function. A date alarm register for storing information; and environment setting information for setting whether the date alarm information stored in the date alarm register is used as operating condition information of the alarm interrupt function. Environment setting information register, and storing of the hour-minute-second and the hour-minute-second alarm register indicated by the hour-minute-second counter register A first comparator that outputs a signal when the hour, minute, and second alarm information matches, and a date, which is indicated by the date counter register, and a date, which is stored in the date alarm register. And a second comparator that outputs a signal when they match, when the date and time alarm information is not the operating condition information of the alarm interrupt function according to the environment setting information, or from the second comparator. A first logic circuit that outputs a signal when a signal is output; and a signal that instructs activation of the alarm interrupt function when a signal is output from both the first comparator and the first logic circuit. And a second logic circuit for outputting a clock signal.
【請求項8】 予め指定された時刻に割り込みを発生さ
せるアラーム割り込み機能を有するリアルタイムクロッ
ク装置において、 時分秒を計数する時分秒カウンタレジスタと、 年月日を計数する年月日カウンタレジスタと、 前記アラーム割り込み機能を稼働させる時分秒を設定す
るための時分秒アラーム情報を格納する時分秒アラーム
レジスタと、 前記年月日カウンタレジスタと同じアドレスでマッピン
グされ、前記アラーム割り込み機能を稼働させる年月日
を設定するための年月日アラーム情報を格納する年月日
アラームレジスタと、 前記年月日アラームレジスタに格納される年月日アラー
ム情報を前記アラーム割り込み機能の稼働条件情報とす
るか否か設定するための環境設定情報を格納する環境設
定情報レジスタと、 前記環境設定情報により前記年月日アラーム情報が前記
アラーム割り込み機能の稼働条件情報となっているとき
に、前記年月日アラームレジスタをアクセス可能に切り
替える切替手段と、 前記時分秒カウンタレジスタの示す時分秒と前記時分秒
アラームレジスタの格納する時分秒アラーム情報とが一
致したとき、前記環境設定情報を参照して前記年月日ア
ラーム情報が前記アラーム割り込み機能の稼働条件情報
となっているか否か検出し、稼働条件情報となっている
ときには前記年月日カウンタレジスタの示す年月日と前
記年月日アラームレジスタの格納する年月日アラーム情
報とが一致したときにのみ前記アラーム割り込み機能を
稼働させるアラーム割り込み制御手段とを具備してなる
ことを特徴とするリアルタイムクロック装置。
8. A real-time clock device having an alarm interrupt function for generating an interrupt at a predetermined time, comprising: an hour-minute-second counter register for counting hours, minutes, and seconds; and a year-month-day counter register for counting years, months, and days. An hour, minute, and second alarm register for storing hour, minute, and second alarm information for setting the hour, minute, and second for operating the alarm interrupt function, and mapped at the same address as the year, month, day counter register, and operating the alarm interrupt function. A date / time alarm register for storing date / time alarm information for setting a date / time to be set; and the date / time alarm information stored in the date / time alarm register as operating condition information of the alarm interrupt function. An environment setting information register for storing environment setting information for setting whether or not Switching means for switching the date / time alarm register to be accessible when the date / time alarm information is operating condition information of the alarm interrupt function, and the hour / minute / second indicated by the hour / minute / second counter register When the hour, minute, and second alarm information stored in the hour, minute, and second alarm register matches, it is determined whether or not the date and time alarm information is operating condition information of the alarm interrupt function by referring to the environment setting information. The alarm interrupt function is activated only when the detected and operating condition information is obtained, and the date and time indicated by the date and time counter register matches the date and time alarm information stored in the date and time alarm register. A real-time clock device comprising:
【請求項9】 予め指定された時刻に割り込みを発生さ
せるアラーム割り込み機能を有するリアルタイムクロッ
ク装置であって、時分秒を計数する時分秒カウンタレジ
スタ、年月日を計数する年月日カウンタレジスタ、前記
アラーム割り込み機能を稼働させる時分秒を設定するた
めの時分秒アラーム情報を格納する時分秒アラームレジ
スタ、前記アラーム割り込み機能を稼働させる年月日を
設定するための年月日アラーム情報を格納する年月日ア
ラームレジスタ、および前記年月日アラームレジスタに
格納される年月日アラーム情報を前記アラーム割り込み
機能の稼働条件情報とするか否か設定するための環境設
定情報を格納する環境設定情報レジスタを備えてなるリ
アルタイムクロック装置に適用されるアラーム割り込み
制御方法において、 前記時分秒カウンタレジスタの示す時分秒と前記時分秒
アラームレジスタの格納する時分秒アラーム情報との一
致を検出するステップと、 前記時分秒と時分秒アラーム情報との一致が検出された
ときに、前記環境設定情報を参照して年月日アラーム情
報が前記アラーム割り込み機能の稼働条件情報となって
いるか否か判定するステップと、 前記年月日アラーム情報がアラーム割り込み機能の稼働
条件情報となっていると判定されたときに、前記年月日
カウンタレジスタの示す年月日と前記年月日アラームレ
ジスタの格納する年月日アラーム情報とが一致するか否
か検出するステップと、 前記年月日アラーム情報が前記アラーム割り込み機能の
稼働条件情報となっていないと判定されたとき、または
前記年月日と年月日アラーム情報との一致が検出された
ときに、前記アラーム割り込み機能を稼働させるステッ
プとを具備してなることを特徴とするアラーム割り込み
制御方法。
9. A real-time clock device having an alarm interrupt function for generating an interrupt at a predetermined time, comprising: an hour-minute-second counter register for counting hours, minutes, and seconds; and a year-month-date counter register for counting years, months, and days. An hour-minute-second alarm register for storing hour-minute-second alarm information for setting the hour-minute-second for operating the alarm interrupt function, and year-month-day alarm information for setting a date-year for operating the alarm interrupt function And an environment for storing environment setting information for setting whether to set the date and time alarm information stored in the date and time alarm register as operating condition information of the alarm interrupt function. In an alarm interrupt control method applied to a real-time clock device including a setting information register, Detecting a match between the hour, minute, and second indicated by the hour, minute, and second counter register and the hour, minute, and second alarm information stored in the hour, minute, and second alarm register; and detecting a match between the hour, minute, second, and hour, minute, second, and alarm information. A step of determining whether or not the date / time alarm information is operating condition information of the alarm interrupt function by referring to the environment setting information; and A step of detecting whether or not the date and time indicated by the date and time counter register matches the date and time alarm information stored in the date and time alarm register when it is determined that the condition information is obtained. When it is determined that the date / time alarm information is not the operating condition information of the alarm interrupt function, or when the date / time matches the date / time alarm information Activating the alarm interrupt function when is detected.
JP8159680A 1996-06-20 1996-06-20 Real-time clock device and alarm interruption control method Pending JPH1011162A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8159680A JPH1011162A (en) 1996-06-20 1996-06-20 Real-time clock device and alarm interruption control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8159680A JPH1011162A (en) 1996-06-20 1996-06-20 Real-time clock device and alarm interruption control method

Publications (1)

Publication Number Publication Date
JPH1011162A true JPH1011162A (en) 1998-01-16

Family

ID=15698986

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8159680A Pending JPH1011162A (en) 1996-06-20 1996-06-20 Real-time clock device and alarm interruption control method

Country Status (1)

Country Link
JP (1) JPH1011162A (en)

Similar Documents

Publication Publication Date Title
JPS6122828B2 (en)
JPH01502939A (en) General purpose processor unit for digital data processing systems including read buffer management mechanism
US7698536B2 (en) Method and system for providing an energy efficient register file
JPH0854958A (en) Real-time clock circuit and its operating method
JPH1049246A (en) Computer system and its starting method
JPH10105278A (en) Real time clock device
JPH0362243A (en) Apparatus for quickening memory access in information processing system
JP3281211B2 (en) Information processing apparatus having synchronous memory and synchronous memory
JPH1011162A (en) Real-time clock device and alarm interruption control method
US5163135A (en) Computer system and method for setting recovery time upon execution of an I/O command
JPH0844622A (en) Information processor
JPH0713869A (en) Data processing system with dynamic address converting function
JPH0731439Y2 (en) Static column DRAM access device
JP2781973B2 (en) Memory content update circuit
JPH04352231A (en) Personal computer
JP3245903B2 (en) Semiconductor peripheral devices
JP2846876B2 (en) Information processing device
JP2847729B2 (en) Information processing device
JP2839631B2 (en) Personal computer system and configuration change method thereof
JPH07146814A (en) Memory device
JPH08194658A (en) Microcomputer system
JP2910131B2 (en) Register file
JPH05197612A (en) Data access circuit
JPH07141174A (en) Register
JPH05274052A (en) Information processor with resume function

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20041102