JPH0277683A - Alarm watch - Google Patents

Alarm watch

Info

Publication number
JPH0277683A
JPH0277683A JP17116689A JP17116689A JPH0277683A JP H0277683 A JPH0277683 A JP H0277683A JP 17116689 A JP17116689 A JP 17116689A JP 17116689 A JP17116689 A JP 17116689A JP H0277683 A JPH0277683 A JP H0277683A
Authority
JP
Japan
Prior art keywords
data
time
schedule
alarm
mode
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
JP17116689A
Other languages
Japanese (ja)
Inventor
Bunichi Aihara
文一 相原
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 JP17116689A priority Critical patent/JPH0277683A/en
Publication of JPH0277683A publication Critical patent/JPH0277683A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To improve efficiency of detecting alarm time by a method wherein a plurality of alarm time settings consisting of time information starting with month and date units are stored in the sequence of this year and the following year according to month and date information of the current time. CONSTITUTION:An electronic watch is operated by a 8-bit parallel processing micro program control method and consists of a ROM, a RAM 13, an arithmetic unit, etc. The RAM 13 is equipped with a register BD for memorizing the current date, a data memory DM, etc. Schedule data, etc. consisting of date data and message data is stored in a line address region of the memory DM, and each line is equipped with areas f1 to f50 for memorizing the following-year- memorizing flags indicating that data refers to the schedule for the following year. The schedule data memorized in the memory DM is edited and memorized in a specified sequence. When a time correction mode or a schedule write mode is canceled, re-arrangement processing of module data is re-arranged according to the current date and time in the sequence of time series of the respective schedule data, thereby detection of alarm time can be efficiently carried out.

Description

【発明の詳細な説明】 [発明の技術分野] この発明は複数のアラーム時刻を記憶するアラーム時計
に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to an alarm clock that stores a plurality of alarm times.

[従来技術の問題点] 従来、メモリにアラーム時刻データを複数記憶しておき
、アラーム時刻となると報知するようにしたアラーム時
計が知られている。
[Problems with Prior Art] Conventionally, an alarm clock is known in which a plurality of pieces of alarm time data are stored in a memory and a notification is issued when the alarm time is reached.

この種のアラーム時計にあっては、上記報知動作の簡素
化の為に、或いは、記憶されたアラーム時刻の表示及び
確認を容易に行なえるようにする為にアラーム時刻を日
付、時間の順にメモリに記憶させるようにすることが考
えられており、例えば特開昭54−78175号公報、
特開昭57−97488号公報等にかかる技術が記載さ
れている。
In this type of alarm clock, the alarm time is stored in the order of date and time in order to simplify the above-mentioned notification operation or to make it easier to display and confirm the stored alarm time. For example, Japanese Patent Laid-Open No. 54-78175,
The technique is described in Japanese Patent Application Laid-Open No. 57-97488 and the like.

然して、例えば、特開昭57−97488号公報に示さ
れている如く、入力されるアラーム時刻が年・月・日を
含む場合には日付・時刻の順序は明確であり何ら問題が
ない、然しながら1通常。
However, as shown in Japanese Patent Application Laid-Open No. 57-97488, if the input alarm time includes the year, month, and day, the order of the date and time is clear and there is no problem. 1 Normal.

日常生活にあっては日付を含むアラーム時刻で何年も先
のアラーム時刻が必要となることはめったになく、また
、このようなアラーム時計は通常電池駆動で、その寿命
も2.3年である為、何年も先のアラーム時刻を記憶さ
せたとしても、電池交換時にその内容が消えてしまうも
ので′ある。そこで1年は入力せず、単に月日及び時分
からなるアラーム時刻を記憶させておけば通常は十分で
あり、また、年入力操作のわずられしさも解消出来るも
のである。
In daily life, it is rare to need an alarm time that includes a date that is many years in the future, and such alarm clocks are usually battery-powered and have a lifespan of 2.3 years. Therefore, even if the alarm time is stored many years in the future, the contents will be erased when the battery is replaced. Therefore, it is usually sufficient to simply store the alarm time consisting of the month, day, and hour without inputting the year, and also eliminates the troublesome operation of inputting the year.

然しながら、年を入力せず月日時分のみをアラーム時刻
とした場合には、翌年のアラーム時刻の設定が出来なく
なるという欠点がが生じるもので、即ち、入力されたア
ラーム時刻は、日付、時刻の順に並びかえてメモリに記
憶される為、例えば、現在10月10日であり、翌年の
2月のアラーム時刻のつもりで月・日及び時刻を入力し
たとしても、その2月のアラーム時刻は、翌年のアラー
ム時刻としてではなく、すでに経過したその年の2月の
アラーム時刻として処理されてしまうことになる欠点が
あった。
However, if the alarm time is set to month, day, hour, and minute without inputting the year, there is a drawback that the alarm time for the following year cannot be set. For example, even if it is October 10th and you enter the month, day, and time with the intention of setting the alarm time for February of the following year, the alarm time for that February will be There is a drawback that the alarm time is not treated as the alarm time for the next year, but as the alarm time for February of the year, which has already passed.

[発明の目的] この発明は上述した事情を背景になされたもので、その
目的とするところは、年を入力せず、月・日量下のデー
タからなる多数のアラーム時刻を記憶させても、当年と
翌年の区別が出来、アラーム時刻の検出を効率良く処理
することができるアラーム時計を提供することにある。
[Purpose of the invention] This invention was made against the background of the above-mentioned circumstances, and its purpose is to store a large number of alarm times consisting of monthly and daily data without inputting the year. To provide an alarm clock that can distinguish between the current year and the next year and efficiently process alarm time detection.

[発明の要点] この発明は上述した目的を達成する為に、アラーム時刻
の日付情報(月・日情報)と現在時刻の日付情報とを比
較し、現在時刻以降の日付情報を有するアラーム時刻を
当年のアラーム時刻情報と判断し、現在時刻以前の日付
情報を有するアラーム時刻を翌年のアラーム時刻情報と
みなし、当年のアラーム時刻情報のあとに翌年のアラー
ム時刻情報が位置するようにメモリに記憶させるように
したものである。
[Summary of the Invention] In order to achieve the above-mentioned object, the present invention compares the date information (month/day information) of the alarm time with the date information of the current time, and calculates the alarm time having date information after the current time. It is determined that the alarm time information is for the current year, and the alarm time having date information before the current time is regarded as the alarm time information for the next year, and is stored in the memory so that the alarm time information for the next year is located after the alarm time information for the current year. This is how it was done.

[実施例J 以下、この発明を図面に示す一実施例に基づいて具体的
に説明する。第2図はこの発明を適用したスケジュール
機能付電子腕時計の外観図である。この時計ケースの前
面部には、キーボードl、表示波W2が配設されている
。このキーボードl上にはアルファベットキーおよびテ
ンキー等として機能する各種のキーが設けられている。
[Example J Hereinafter, this invention will be specifically described based on an example shown in the drawings. FIG. 2 is an external view of an electronic wristwatch with a schedule function to which the present invention is applied. A keyboard 1 and a display wave W2 are arranged on the front side of the watch case. The keyboard l is provided with various keys that function as alphabet keys, numeric keys, and the like.

また、時計ケースの両側部には、押釦スイッチS+ 、
S2 、S3 、Ssが設けられている。ここで、スイ
ッチS4はスケジュール機能のページ変更スイッチ、ス
イッチS3は時計モードとスケジュールモードとを切替
るモードスイッチ、スイッチS2は上記時計モードでは
時刻修正モード、スケジュールモードではスケジュール
書込モードにvI替る修正モード切替スイッチ、スイッ
チS1は修正モードでの修正桁選択スイッチである。
In addition, there are push button switches S+ on both sides of the watch case.
S2, S3, and Ss are provided. Here, switch S4 is a page change switch for the schedule function, switch S3 is a mode switch that switches between clock mode and schedule mode, and switch S2 is a correction switch that switches to time correction mode in the clock mode and to schedule writing mode in schedule mode. The mode changeover switch, switch S1, is a correction digit selection switch in the correction mode.

第3図は表示装置2の構成を示している。この表示装置
2は液晶表示装置によって構成され、その下部表示憤域
には8桁の日の字形表示体で構成された主デジタル表示
部2Aが設けられている。
FIG. 3 shows the configuration of the display device 2. As shown in FIG. This display device 2 is constituted by a liquid crystal display device, and a main digital display portion 2A constituted by an eight-digit day-shaped display is provided in its lower display area.

また、上部表示領域には図中左側から4桁の日の字形表
示体で構成された副デジタル表示部2Bと、5桁構成の
マトリックス表示部2Cと、AM表示体、PM表示体が
設けられている。
In addition, the upper display area is provided with a sub-digital display section 2B consisting of a four-digit day-shaped display from the left in the figure, a matrix display section 2C consisting of five digits, an AM display, and a PM display. ing.

次に、この電子腕時計の回路構成を第1図に基づいて説
明する。この電子腕時計は8ビット並列処理のマイクロ
プログラム制御方式で動作するもので、ROM (リー
ドオンリメモリ)11はこの電子腕時計の全ての動作を
制御するマイクロプログラムを記憶し、マイクロ命令O
F、Do、NAを並列的に出力する。ここで、マイクロ
命令OPは命令デコーダ12に入力され、この命令デコ
ーダ12はこれを解読してRAM (ランダムアクセス
メモリ)13のR/W入力端子にデータの読み込み/書
き込み指令として与え、また演算部14のS入力端子に
演算命令として与える。また、マイクロ命令DOはデー
タバスを介してRAM13のAddr入力端子にアドレ
スデータとして入力されると共に、演算部14のDI2
入力端子に数値データとして入力され、更にアドレス制
御部15に入力される。また、マイクロ命令NAはアド
レス制御部15に入力されるネクストアドレスデータで
、このアドレス制御部15から出力されるアドレスデー
タはROMIIのAddr入力端子に与えられる。
Next, the circuit configuration of this electronic wristwatch will be explained based on FIG. 1. This electronic wristwatch operates using a microprogram control method with 8-bit parallel processing, and a ROM (read only memory) 11 stores microprograms that control all operations of this electronic wristwatch, and the microinstruction
Outputs F, Do, and NA in parallel. Here, the microinstruction OP is input to the instruction decoder 12, which decodes it and provides it to the R/W input terminal of the RAM (random access memory) 13 as a data read/write command. 14 as an arithmetic instruction. Further, the microinstruction DO is input as address data to the Addr input terminal of the RAM 13 via the data bus, and is also input to the DI2 of the calculation unit 14.
The data is inputted to the input terminal as numerical data, and further inputted to the address control section 15. Further, the microinstruction NA is next address data input to the address control unit 15, and the address data output from the address control unit 15 is applied to the Addr input terminal of the ROMII.

RAM13は置数レジスタ、演算レジスタ等を有する構
成で、計時処理、キー人力処理、演算処理等において利
用され、命令デコーダの制御下でデータの書き込みおよ
び読み出し動作を実行し、そして、RAM13のDO出
力端子から読み出されたデータは演算部14のDII入
力端子およびDI2入力端子に与えられると共に表示制
御部16を介して表示部17に表示される。演算部14
は命令デコーダ12からの演算指令にしたがって各種の
演算を実行するもので、その演算結果データはRAM1
3のDI入力端子に与えられ、RAM13に読み込まれ
る。また、演算部14はジャッジ演算実行の際、その演
算結果のデータ有無を示す信号およびキャリー発生有無
を示す信号を夫々出力してアドレス制御部15に与え、
ROMIIのアドレスを変換させる。また、アドレス制
御部15には発振器18からの基準クロック信号が分周
回路19で分周されることによって得られた1 6Hz
の計時クロックが入力され、この16Hzの信号にした
がって1716秒毎に1回づつ割込みで計時処理を実行
させる。また、分周回路19から出力される所定周波数
信号はタイミングジェネレータ20に与えられ、タイミ
ングジェネレータ20から各種のタイミング信号を出力
させ各回路に供給する。また、キー人力部21から出力
されるキーコードは演算部14のDI2入力端子に与え
られる。
The RAM 13 has a configuration including a numeric register, an arithmetic register, etc., and is used for timekeeping processing, key manual processing, arithmetic processing, etc., and executes data writing and reading operations under the control of the instruction decoder, and the DO output of the RAM 13. The data read from the terminals is applied to the DII input terminal and the DI2 input terminal of the calculation section 14 and is displayed on the display section 17 via the display control section 16. Arithmetic unit 14
executes various calculations according to calculation instructions from the instruction decoder 12, and the calculation result data is stored in the RAM 1.
3 and read into the RAM 13. Further, when executing a judge operation, the calculation unit 14 outputs a signal indicating the presence or absence of data as a result of the operation and a signal indicating the presence or absence of carry generation, and supplies them to the address control unit 15.
Convert the ROMII address. In addition, the address control unit 15 receives a 16Hz signal obtained by dividing the reference clock signal from the oscillator 18 by a frequency dividing circuit 19.
A clock of 16 Hz is input, and according to this 16 Hz signal, the clock process is executed by interrupting once every 1716 seconds. Further, the predetermined frequency signal output from the frequency dividing circuit 19 is given to a timing generator 20, which outputs various timing signals and supplies them to each circuit. Further, the key code output from the key input unit 21 is given to the DI2 input terminal of the calculation unit 14.

第4図はRAM13の主要部を示しRAM13には計時
データ、システム制御用データの他、使用者がキー操作
に応じて自由に書込むことができる記憶エリアを有して
いる。即ち、RAM13には現在日付を記憶するBDレ
ジスタ、現在時刻を記憶するBTレジスタの他、データ
メモ90M等が設けられている。このデータメモリDM
はその行アドレスrlJ〜「50」に対応して50ペ一
ジ分のスケジュールデータを記憶可能なもので、その各
行アドアレス領域には月日の日付データ、時分の時刻デ
ータおよびメツセージ(スケジュール内容)からなるス
ケジュールデータが記憶されるが、各行に対応するエリ
アMl−Msoにはメツセージ、エリアD+−Dsoに
は日付データ、ステップT+”Tsoには時刻データが
記憶される。そして、各行には翌年のスケジュールであ
ることを示す翌年記憶フラグを記憶するエリアf1〜f
s。
FIG. 4 shows the main part of the RAM 13, and the RAM 13 has a storage area in which the user can freely write in clock data and system control data in accordance with key operations. That is, the RAM 13 is provided with a BD register for storing the current date, a BT register for storing the current time, and a data memo 90M. This data memory DM
is capable of storing schedule data for 50 pages corresponding to the row addresses rlJ to "50", and each row address area contains date data for month and day, time data for hour and minute, and messages (schedule contents). ) is stored in the area Ml-Mso corresponding to each row, a message is stored in the area Ml-Mso, date data is stored in the area D+-Dso, and time data is stored in the step T+''Tso. Areas f1 to f that store next year memory flags indicating that the schedule is for the next year.
s.

が設けられている。ここで、データメモリDMに記憶さ
れるスケジュールデータは、所定の順序に編集されて記
憶されるようになっている。その他RAM13にはデー
タメモリDMの行アドアレスを指定する為のアドレスレ
ジスタn、スケジュール全データ数メモリN、表示ペー
ジポインタP、フラグレジスタFsおよびアラームの0
N10FFフラグレジスタALが設けられている。
is provided. Here, the schedule data stored in the data memory DM is edited and stored in a predetermined order. Other RAM 13 includes address register n for specifying the row address of data memory DM, schedule total data count memory N, display page pointer P, flag register Fs, and alarm 0.
An N10FF flag register AL is provided.

[実施例の動作] 次に、第5−図〜第1θ図を参照して本実施例の動作に
ついて説明する。ここで、第5図〜第8図は動作を説明
する為のフローチャート、第9図、第1θ図はスイッチ
操作に伴って変換する表示状態図である。
[Operation of the Embodiment] Next, the operation of the embodiment will be described with reference to FIGS. 5-10. Here, FIGS. 5 to 8 are flowcharts for explaining the operation, and FIGS. 9 and 1θ are diagrams of display states that change in accordance with switch operations.

先ず、第5図のジェネラルフローを参照して全体動作の
概要について説明する。このジェネラルフローに入ると
、ステップTIが実行され、計時タイミングまたはキー
人力の要求があるまで待機状態となる。いま、キー人力
部21から操作キーに対応するキーコードが出力される
と、それに応じたキー処理プログラムが指定され、キー
処理および表示処理が実行される(ステップT2)0分
周回路19から16Hzの計時クロックが出力されると
、ステップT3に進み、計時処理が実行されてRAM1
3内のBTし夛スタの現在時刻が更新されると共に、そ
の結果、日、キャリーが得られるとBDレジスタの日付
が更新される。このような計時処理が終了すると1次に
、アラーム処理(ステップT4)が実行されたのち、表
示処理(ステップT5)が行なわれる。
First, an overview of the overall operation will be explained with reference to the general flow shown in FIG. When entering this general flow, step TI is executed and the system is in a standby state until there is a request for clock timing or key manual input. Now, when the key code corresponding to the operation key is output from the key human power unit 21, a corresponding key processing program is specified, and key processing and display processing are executed (step T2). When the clock clock of
The current time of the BT register in 3 is updated, and if a carry is obtained as a result, the date of the BD register is updated. When such time counting processing is completed, an alarm processing (step T4) is first performed, and then a display processing (step T5) is performed.

第6図は、第5図で示したキー処理、表示処理(ステッ
プT2 )の具体的内容を示したフローチャートである
。いま、時計モードからスケジュールモード、スケジュ
ールモードから時計モードに切替える為に、スイッチS
3が操作されると、そのことがステップT目で検出され
てステップ712に進み、レジスタFSの内容が“0”
かが調べられる。ここで、レジスタFsは、それが“1
”のときスケジュールモードにあっては書込モード、時
計モードにあっては時刻修正モード、また0”のときス
ケジュールモードにあっては読出モード、時計モードに
あってはノーマルモードを指定する為のフラグを記憶す
るもので、スケジュール読み出しモードあるいは時計ノ
ーマルモードである場合には、ステップTI3に進み1
時計モードとスケジュールモードとのモード切替えが実
行されるが、スケジュール書込みモードあるいは時刻修
正モードである場合には、このモード切替えは禁止され
る。しかして、次のステップT Haでは設定モードの
判別が行なわれ、この結果、時計モードであれば、時刻
表示(ステップT11) 、また°スケジュールモード
であればアドレスレジスタnの値が表示ページポインタ
Pに転送され、この表示ページポインタPの値で示され
るページのスケジュールデータがデータメモリDMから
読出されて表示される(ステップTI5、ステップTl
6) eこの場合アドレスレジスタnには1次回報知ナ
ンバ、即ち、データメモリDMに記憶されている各スケ
ジュールデータのうち次に報知すべきページのスケジュ
ールデータが記憶されているデータメモリDMの行アド
レスがセットされている。このため表示部17には次に
報知すべきスケジュールデータが表示されることになる
。このような動作はスイッチS3が操作される毎に、繰
り返される為、時計モードとスケジュールモードとがサ
イクリックに切替られる。
FIG. 6 is a flowchart showing specific details of the key processing and display processing (step T2) shown in FIG. Now, to switch from clock mode to schedule mode and from schedule mode to clock mode, press switch S.
3 is operated, this is detected at step T and the process proceeds to step 712, where the contents of register FS are set to "0".
can be investigated. Here, the register Fs indicates that it is “1”.
” to specify write mode in schedule mode, time correction mode in clock mode, and 0 to specify read mode in schedule mode and normal mode in clock mode. If the flag is to be stored and the mode is schedule read mode or clock normal mode, proceed to step TI3 and step 1.
Mode switching between clock mode and schedule mode is executed, but this mode switching is prohibited in schedule writing mode or time correction mode. Therefore, in the next step THa, the setting mode is determined, and as a result, if it is the clock mode, the time is displayed (step T11), and if it is the schedule mode, the value of the address register n is displayed as the page pointer P. The schedule data of the page indicated by the value of the display page pointer P is read out from the data memory DM and displayed (step TI5, step Tl).
6) e In this case, the address register n contains the primary notification number, that is, the row address of the data memory DM in which the schedule data of the page to be notified next among the schedule data stored in the data memory DM is stored. is set. Therefore, the schedule data to be notified next will be displayed on the display unit 17. Since such an operation is repeated every time the switch S3 is operated, the clock mode and schedule mode are cyclically switched.

第9図a、bはこのときの表示状態で、第9図aは時計
モード、第9図すはスケジュールモードを示している。
9a and 9b show the display states at this time, with FIG. 9a showing the clock mode and FIG. 9b showing the schedule mode.

しかして1時計モードにおいてスイッチS2が操作され
ると、スイッチS2の操作がステップTI8、時計モー
ドの設定状態がステップTI9で夫々判別されてステッ
プT20に進み、その結果レジスタFsの内容が“0”
のときには“1″、“1”のときには“0″に書き替え
られる(ステップ721、ステップT22) 。
When the switch S2 is operated in the 1 watch mode, the operation of the switch S2 is determined in step TI8, the setting state of the watch mode is determined in step TI9, and the process proceeds to step T20, and as a result, the contents of the register Fs are set to "0".
When it is, it is rewritten as "1", and when it is "1", it is rewritten as "0" (step 721, step T22).

したがって、第9図に示す如く、第9図aのノーマルモ
ードでスイッチS2を操作すると第9図Cの時刻修正モ
ードとなり、またこの時刻修正モードでスイッチS1 
を操作すると、ノーマルモードに戻る。
Therefore, as shown in FIG. 9, when the switch S2 is operated in the normal mode of FIG. 9a, the time adjustment mode of FIG.
Press to return to normal mode.

ここで、スイッチS2の操作に伴って時刻修正モードか
らノーマルモードに切替られた時に限り、ステップT2
3に進み、スケジュールデータの並べ替えを行う編集処
理が実行される。
Here, only when the time adjustment mode is switched to the normal mode with the operation of the switch S2, step T2
Proceeding to step 3, editing processing for rearranging the schedule data is executed.

そして、このような編集処理が終ると、またはノーマル
モードから時刻修正モードへの切替が終ると、ステップ
T24に進み、時刻表示が行なわれる。
When such editing processing is completed, or when switching from normal mode to time correction mode is completed, the process proceeds to step T24, where the time is displayed.

他方、スケジュールモードにおいてスイッチS2が操作
されるとステップTI8、ステップTI9でそのことが
検出されて上記ステップ720〜ステツプT23と同様
の処理(ステップ725〜ステツプT28)が実行され
る。
On the other hand, if the switch S2 is operated in the schedule mode, this is detected in steps TI8 and TI9, and the same processes as steps 720 to T23 described above (steps 725 to T28) are executed.

したがって、第9図に示す如く、第9図すのスケジュー
ルモード読出モードでS2を操作すると、第9図dのス
ケジュール書込モードとなり、また書込モードでスイッ
チS1を操作すると、読出モードに戻る。この場合にお
いても書込モードから読出モードに切替られた時に限り
、スケジュールデータを並べ替る編集処理(ステップT
28)が実行されることは上述の場合と同様である。し
かして、編集処理が終ると、アドレスレジスタnの値(
次回報知ナンlりが表示ページポインタPに転送され、
この表示ページポインタPの値に対応するページのスケ
ジュールデータが表示される(ステップT29、ステッ
プT30) −次に、スイッチS4の操作に伴う動作に
ついて説明する。なお、スイッチS4はスケジュール書
込モードおよび読出モードにおいて表示ページを次ペー
ジに変更する場合に操作する。しかして。
Therefore, as shown in FIG. 9, when S2 is operated in the schedule mode read mode shown in FIG. 9, the mode becomes the schedule write mode shown in FIG. 9 d, and when switch S1 is operated in the write mode, the mode returns to the read mode. . Even in this case, only when switching from write mode to read mode is the editing process (step T
28) is executed in the same way as in the above case. When the editing process is finished, the value of address register n (
The next notification number is transferred to the display page pointer P,
The schedule data of the page corresponding to the value of the display page pointer P is displayed (steps T29 and T30) - Next, the operation accompanying the operation of the switch S4 will be described. Note that the switch S4 is operated when changing the displayed page to the next page in the schedule writing mode and reading mode. However.

スイッチS4が操作されると、ステップT31でそのこ
とが検出されて、ステップT32に進み、スケジュール
モードかが調べられる。ここで、時計モードであればス
イッチS4は無効となるが、スケジュールモードであれ
ば以降のスィッチS4操作に伴う処理が実行される。即
ち、先ず、ステップT33では全データ数メモリNの値
が「0」か、つまり、データメモリDMにデータが全く
記憶されていないかが判別される。この結果、データメ
モリDMにスケジュールデータが全く記憶されていない
ときを除き1つでも記憶されていればステップT 3 
gに進み、表示ページポインタPと全データ数メモリN
の値が比較される。いま、表示ページポインタPの値が
全データ数メモリNに等しければ、次のステップT35
に進み、全データ数メモリNの値が「50」か、つまり
、データメモリDMに50ペ一ジ分のデータが記憶され
ているフル状態かの判別が行なわれる。ここで、ステッ
プT34で表示ページ数がスケジュール全データ数より
も小さいことが検出されると、データメモリDMにはそ
れ以降にもデータが併き続き記憶されているので、表示
ページポインタPの値を+1するインクリメント処理(
ステップT36)が実行されたのち、その表示ページポ
インタPの値で示されるページのスケジュールデータが
表示される(ステップT36、ステップT38)@また
1表示ページ数が全データ数と等しい場合であってデー
タメモリDMがフル状態にないときにもステップT36
.ステップT3Bが実行されるが、この場合には空ペー
ジ表示となる。このようにスィッチS4操作に伴って全
ベージ数ポインタPの値が+1される結果、ステップT
34で表示ページ数が全データ数よりも大きくなった場
合、あるいは表示ページ数が全データ数と一致した場合
であってデータメモリDMがフル状態にあれば表示ペー
ジ数ポインタPにrl]がセットされて最初のページが
表示されるの(ステップT37、ステップT38)11
第10図はスィッチS4操作に伴う表示状態を示したも
ので、データメモリDM内のスケジュールデータがスイ
ッチS4が操作される毎にサイクリック表示される。
When the switch S4 is operated, this is detected in step T31, and the process proceeds to step T32, where it is checked whether it is the schedule mode. Here, in the clock mode, the switch S4 is disabled, but in the schedule mode, the processing accompanying the subsequent operation of the switch S4 is executed. That is, first, in step T33, it is determined whether the value of the total data number memory N is "0", that is, whether no data is stored in the data memory DM. As a result, except when no schedule data is stored in the data memory DM, if at least one schedule data is stored, step T3 is executed.
Proceed to g, display page pointer P and total data number memory N
The values of are compared. Now, if the value of the display page pointer P is equal to the total data number memory N, the next step T35
In step , it is determined whether the value of the total data number memory N is "50", that is, whether the data memory DM is in a full state in which 50 pages of data are stored. Here, if it is detected in step T34 that the number of displayed pages is smaller than the total number of scheduled data, the value of the displayed page pointer P is determined because data is continuously stored in the data memory DM. Increment processing that increases +1 (
After step T36) is executed, the schedule data of the page indicated by the value of the display page pointer P is displayed (step T36, step T38). Step T36 is also performed when the data memory DM is not in a full state.
.. Step T3B is executed, but in this case, an empty page is displayed. As a result of the operation of the switch S4, the value of the total page number pointer P is incremented by 1, the step T
If the number of displayed pages becomes larger than the total number of data in 34, or if the number of displayed pages matches the total number of data and the data memory DM is in a full state, ``rl'' is set in the number of displayed pages pointer P. and the first page is displayed (step T37, step T38)11
FIG. 10 shows the display state accompanying the operation of the switch S4, and the schedule data in the data memory DM is cyclically displayed every time the switch S4 is operated.

また、スイッチS1が操作されると、ステップT39で
そのことが検出されてステップT40に進み、レジスタ
Fsの内容が“0”かの判別が行なわれる。いま、レジ
スタFsの内容が“1”で時刻修正モード、スケジュー
ルモードであれば、次のステップT41でカーソルが1
桁移動される。したがって、この場合にはスイッチS+
は修正桁選択スイッチとして機能するようになるが、レ
ジスタFsの内容が“0”のときにはスイッチSIの操
作は無効となる。なお、選択術(第9図c、dで丸を付
して示す)は点滅表示されることによって明示される。
Further, when the switch S1 is operated, this is detected in step T39, and the process proceeds to step T40, where it is determined whether the contents of the register Fs are "0". Now, if the content of register Fs is "1" and the mode is time correction mode or schedule mode, the cursor moves to 1 in the next step T41.
The digits are shifted. Therefore, in this case, switch S+
functions as a correction digit selection switch, but when the contents of register Fs are "0", the operation of switch SI is invalid. Note that the selection techniques (shown with circles in FIGS. 9c and d) are clearly indicated by blinking.

また、時刻修正モードあるいはスケジュール書込モード
において、1文字入力する為にテンキー、アルファベッ
トキーが操作されると、ステップT39からステップT
42に進み、レジスタFsの内容が“0”かの判別が行
なわれる。いま、時刻修正モードあるいはスケジュール
書込モードに設定されているので、ステップT43に進
み、キー人力終了と共に入力データがカーソル位置へ表
示される。その後、゛時計モードかスケジュールモード
かが調べられ、それに応じた処理(ステップT45、ス
テップT46)が実行される。即ち1時計モードであれ
ば、入力されたデータを日付あるいは時刻データとして
RAM13内のレジスタBD、 レジスタBTに記憶さ
せる。これによってレジスタBD、レジスタBTの内容
が書き替えられるので、日付、時刻の修正が可能となる
。またスケジュールモードであれば、入力されたデータ
がスケジュールデータとして表示ページポインタPの値
でアドレス指定されるデータメモリDMに記憶される。
Also, in the time correction mode or schedule writing mode, when the numeric keypad or alphabet keys are operated to input one character, step T39 to step T
The process advances to step 42, where it is determined whether the contents of the register Fs are "0". Since the time adjustment mode or schedule writing mode is currently set, the process advances to step T43, and the input data is displayed at the cursor position when the key input is completed. Thereafter, it is checked whether the mode is clock mode or schedule mode, and the corresponding processing (steps T45 and T46) is executed. That is, in the 1-clock mode, input data is stored as date or time data in registers BD and BT in the RAM 13. This rewrites the contents of register BD and register BT, making it possible to correct the date and time. Further, in the schedule mode, input data is stored as schedule data in the data memory DM addressed by the value of the display page pointer P.

これによって、データメモ90M内のスケジュールデー
タを修正したり、新たなスケジュールデータを書込むこ
とができる。この場合、新たにデータを書込むには上述
したスィッチS4操作で空ページを表示させてから、デ
ータを入力すればよい。
This allows the schedule data in the data memo 90M to be modified or new schedule data to be written. In this case, in order to write new data, it is sufficient to display an empty page by operating the switch S4 described above, and then input the data.

第7図は第6図で示したスケジュールデータ並べ替え処
理(ステップT23及びステップT28)の具体的内容
を示したフローチャートである。まず、アドレスレジス
タnに初期値rlJがセットされる(ステップTs+)
、次にステップT52に進みD1〜I)soのうちアド
レスレジスタnの内容で指定されるエリアDI+  (
この場合はD+)とレジスタBDが比較され、現在の日
付がスケジュールの予定日を過ぎたかが調べられる。こ
の結果、過ぎていれば、ステップTS3に進み、そのス
ケジュールが翌年のものであることを示す為に翌年フラ
グがONされエリアDnに対応するエリアf、に“l”
がセットされる。また、過ぎていなければ、ステップT
’s4に進み、翌年フラグがOFFされる。しかして、
アドレスレジスタnの値を+1するインクリメント処理
(ステップT55)が実行されてステップT56に進み
、アドレスレジスタnと全データ数メモリNの比較が行
なわれ、アドレスレジスタnの値が全データ数を越えた
かが調べられ、越えていなければステップT52に戻り
、上述の動作が繰り返される。この結果、各スケジュー
ルデータに対応して翌年フラグが現在の日付に応じてO
N、OFFされる。
FIG. 7 is a flowchart showing specific details of the schedule data sorting process (steps T23 and T28) shown in FIG. First, an initial value rlJ is set in address register n (step Ts+)
, Next, the process proceeds to step T52 and the area DI+ (
In this case, D+) is compared with register BD to check whether the current date has passed the scheduled date of the schedule. As a result, if the schedule has passed, the process proceeds to step TS3, where the next year flag is turned on to indicate that the schedule is for the next year, and "l" is placed in area f corresponding to area Dn.
is set. Also, if it has not passed, step T
Proceeds to 's4, and the next year's flag is turned off. However,
An increment process (step T55) in which the value of address register n is increased by 1 is executed, and the process proceeds to step T56, where address register n and total data number memory N are compared to determine whether the value of address register n exceeds the total number of data. It is checked, and if it is not exceeded, the process returns to step T52 and the above-described operation is repeated. As a result, the next year flag is set to O according to the current date corresponding to each schedule data.
N: Turned off.

このような翌年フラグON、OFF処理が終ると、ステ
ップT57に進み、スケジュールデータ並べ替え処理が
実行される。即ち、現在の日時を基にしてスケジュール
日時の早い順にスケジュールデータが並べ替えられる。
When such next year flag ON/OFF processing is completed, the process proceeds to step T57, and schedule data rearrangement processing is executed. That is, the schedule data is sorted in descending order of schedule date and time based on the current date and time.

したがって、同日に複数のスケジュールがあっても時刻
の早い順に並べ替えられ、また翌年のスケジュールデー
タは今年のデータの後に順次差べられる。
Therefore, even if there are multiple schedules on the same day, they are sorted in ascending order of time, and next year's schedule data is sequentially placed after this year's data.

このようにしてデータメモリDMの内容が編集されると
、続いてアドレスレジスタnに次回報知ナンバをセット
する為の処理が実行される。この場合、通常は上述の編
集処理によって次に報知すべきスケジュールデータはデ
ータメモリDMの「l」番地に記憶されているので、ア
ドレスレジスタnには「1」がセットされる(ステップ
Tss) 、 Lかし、同日に複数のスケジュールがあ
る場合、翌年フラグ日付を基にしてON、OFFされる
為、現在時刻がスケジュール時刻を過ぎたとしてもその
スケジュールデータは翌年のシータとはならず、時刻の
早い順に編集されている。したがって、このような場合
、アドレスレジスタnの値を更新させる為に次の処理が
実行される。即ち、先ず、ステップT59ではエリアD
n とレジスタBDとが比較されて現在の日付が最初の
スケジュール予定日に達したかが判断され、達していな
ければ、アドレスレジスタnの値はrlJのままとなる
が、スケジュール予定日になると、ステップT60に進
み、現在の時刻がスケジュール時刻を過ぎたかが調べら
れる。この場合、過ぎていれば、アドレスレジスタnの
値はrlJのままとなるが、過ぎればアドレスレジスタ
nの値を+1したのち、アドレスレジスタnと全データ
数メモリNとが比較される。(ステップT61.ステッ
プT62) *いま、アドレスレジスタnの値が全デー
タ数を越えれば、アドレスレジスタnの値はそのままと
なるが、越えなければステップT59に戻り、同様の処
理が実行される。これによってアドレスレジスタnには
次回報知ナンバがセットされる。
Once the contents of the data memory DM have been edited in this way, a process for setting the next notification number in the address register n is then executed. In this case, since the schedule data to be notified next by the above-mentioned editing process is normally stored at address "l" of the data memory DM, "1" is set in the address register n (step Tss). However, if there are multiple schedules on the same day, the next year's flag will be turned on and off based on the date, so even if the current time has passed the schedule time, that schedule data will not become the theta for the next year, but the time Edited in chronological order. Therefore, in such a case, the following process is executed to update the value of address register n. That is, first, in step T59, area D
n and register BD are compared to determine whether the current date has reached the first scheduled scheduled date. If not, the value of address register n remains rlJ, but when the scheduled scheduled date arrives, step T60 to check whether the current time has passed the scheduled time. In this case, if it has passed, the value of the address register n remains rlJ, but if it has passed, the value of the address register n is incremented by 1, and then the address register n and the total data number memory N are compared. (Step T61. Step T62) *Now, if the value of the address register n exceeds the total number of data, the value of the address register n remains unchanged, but if it does not, the process returns to step T59 and the same process is executed. As a result, the next notification number is set in the address register n.

第8図は第5図で示したアラーム処理(ステップT4)
の具体的内容を示したフローチャートである。先ず、こ
のフローに入ると、アラームフラグレジスタALの内容
に基づいてアラームフラグのON、OFFが判断される
(ステップT?+)@いま、アラームOFFであれば、
レジスタBD、レジスタBTから読み出された現在の日
付、時刻データとアドレスレジスタn内の次回報知ナン
バに対応するエリアDn、エリアTnから読み出さ  
   ゝれたスケジュール日付、時刻データとが比較さ
れ、それらの一致が検出される。(ステップT72)い
ま、アラーム時刻の一致が検出されると、アラームフラ
グがONされ、レジスタALに“l”がセットされたの
ち、タイマーの計時動作がスタートされる(ステップT
73、ステップT p a ) aなお、このタイマー
スタートと同時にブザーがONされ、アラーム音が発生
される。このようにアラーム時刻になると、アラームフ
ラグがONされるので、次の1716秒後に再びアラー
ム処理に入ると、ステ771月からステップT75へ進
み、一定時間経過したかが判断される。ここで、一定時
間経過したかが判断される。ここで、一定時間経過しな
ければ、それが経過するまでアラーム音が発生し続ける
が、一定時間経過すると、ステップT76でブザーがO
FFされてアラーム音が停止される。そして、次のステ
ップT77ではアドレスレジスタnの値が+1されて次
回報知ナンバが更新される。
Figure 8 shows the alarm processing (step T4) shown in Figure 5.
2 is a flowchart showing specific contents. First, when entering this flow, it is determined whether the alarm flag is ON or OFF based on the contents of the alarm flag register AL (step T?+) @If the alarm is currently OFF,
Current date and time data read from register BD and register BT and read from area Dn and area Tn corresponding to the next notification number in address register n
The updated schedule date and time data are compared and a match is detected. (Step T72) Now, when coincidence of alarm times is detected, the alarm flag is turned on, "l" is set in the register AL, and then the timer operation is started (step T72).
73, Step T p a )a Note that at the same time as this timer starts, a buzzer is turned on and an alarm sound is generated. As described above, when the alarm time comes, the alarm flag is turned ON, so when the alarm processing is started again after the next 1716 seconds, the process proceeds from step 771 to step T75, and it is determined whether a certain period of time has elapsed. Here, it is determined whether a certain period of time has elapsed. Here, if a certain period of time has not elapsed, the alarm sound will continue to be generated until the certain period of time has elapsed, but when the certain period of time has elapsed, the buzzer will turn off in step T76.
It is turned off and the alarm sound is stopped. Then, in the next step T77, the value of the address register n is incremented by 1, and the next notification number is updated.

このように本実施例においては、スイッチS2を操作す
ることにより時刻修正モードまたはスケジュール書込み
モードを解除する際、スケジュールデータの並べ替え処
理が実行される為、例え、スケジュールデータを順不同
に書込んだとしても現在の日時を基にして各スケジュー
ルデータ日時の早い順に並べ変えられる。したがって、
アラーム時刻の一致を検出する際には、アドレスレジス
タnの次回報知ナンバで示されるスケジュールデータの
みを現在の日時と比較するだけでよいので、多数のスケ
ジュールデータを記憶させたとしてもアラーム時刻の検
出処理を効率良く行うことができる。
As described above, in this embodiment, when the time adjustment mode or the schedule writing mode is canceled by operating the switch S2, the schedule data is rearranged, so even if the schedule data is written out of order. However, each schedule data can be rearranged in ascending order of date and time based on the current date and time. therefore,
When detecting a coincidence of alarm times, it is only necessary to compare the schedule data indicated by the next notification number of address register n with the current date and time, so even if a large amount of schedule data is stored, alarm time detection is easy. Processing can be performed efficiently.

なお、この発明は上記実施例に限定されず、この発明を
逸脱しない範囲内において種々変形応用可能である。
It should be noted that the present invention is not limited to the above-mentioned embodiments, and can be modified and applied in various ways without departing from the scope of the present invention.

[発明の効果] この発明は以上詳細に説明したように、月―日単位以下
の時刻情報からなる複数のアラーム時刻を現在時刻の月
・日情報に従って当年、翌年の順序に並べ代えて記憶さ
せるようにしたので、多数のアラーム時刻を記憶させて
も、アラーム時刻の検出を効率良く処理することができ
る等の効果を奏する。
[Effects of the Invention] As described above in detail, the present invention allows a plurality of alarm times consisting of time information on a month-day basis or less to be rearranged and stored in the order of the current year and the next year according to the month and day information of the current time. As a result, even if a large number of alarm times are stored, the detection of alarm times can be efficiently processed.

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

図面はこの発明の一実施例を示したもので、第1図はこ
の発明を適用したスケジュール機能付電子腕時計のブロ
ック回路図、第2図はその外観平面図、第3図は第2図
で示した表示装置の構成図、第4図は第1図で示したR
AMの主要構成図、第5図は全体動作の概要を示すジェ
ネラルフローチャート、第6図は第5図で示したキー処
理、表示処理の具体的内容を示したフローチャート、第
7図は第6図で示したスケジュールデータ並べ変え処理
の具体的内容を示したフローチャート、第8図は第5図
で示したアラーム処理の具体的内容を示したフローチャ
ート、第9図、第10図はスイッチ操作に伴って変遷す
る表示状態図である。 11・・・・・・ROM、12・・・・・・命令デコー
ダ、13・・・・・・RAM、14・・・・・・演算部
、21・・・・・・キー人力部。 特許出願人 カシオ計算機株式会社 第2図 2A 第3図 第5図 第4図 第8図 第9図 第10図
The drawings show one embodiment of the present invention, and FIG. 1 is a block circuit diagram of an electronic wristwatch with a schedule function to which the present invention is applied, FIG. 2 is an external plan view thereof, and FIG. The configuration diagram of the display device shown in FIG. 4 is the R shown in FIG.
Main configuration diagram of AM, Figure 5 is a general flowchart showing an overview of the overall operation, Figure 6 is a flowchart showing specific details of the key processing and display processing shown in Figure 5, and Figure 7 is a flowchart showing specific details of the display processing. 8 is a flowchart showing the specific details of the schedule data rearrangement process shown in FIG. FIG. 11...ROM, 12...Instruction decoder, 13...RAM, 14...Arithmetic section, 21...Key manual section. Patent applicant Casio Computer Co., Ltd. Figure 2 2A Figure 3 Figure 5 Figure 4 Figure 8 Figure 9 Figure 10

Claims (1)

【特許請求の範囲】 月日情報及び時分情報からなる現在時刻情報を得る計時
手段と、月日情報及び時分情報からなるアラーム時刻情
報が記憶される記憶エリアを複数有するアラーム時刻記
憶手段と、このアラーム時刻記憶手段の夫々の記憶エリ
アに前記アラーム時刻情報を時刻順序に従って並び替え
て記憶させる編集手段と、前記アラーム時刻記憶手段に
記憶されたアラーム時刻情報と前記計時手段で得られる
現在時刻情報との一致を検出する一致検出手段とを備え
たアラーム時計において、 前記編集手段は、前記アラーム時刻情報の月日情報と前
記現在時刻情報の月日手段とを比較する月日情報比較手
段と、この月日情報比較手段の比較結果に基づき現在の
月日情報以降の月日情報を有するアラーム時刻情報の後
に現在の月日情報以前の月日情報を有するアラーム時刻
情報が配置されるように並び替える並び替え手段とを備
えたことを特徴とするアラーム時計。
[Scope of Claims] A clock means for obtaining current time information consisting of month/day information and hour/minute information; and an alarm time storage means having a plurality of storage areas in which alarm time information consisting of month/day information and hour/minute information is stored. , editing means for rearranging and storing the alarm time information in each storage area of the alarm time storage means according to time order; and an editing means for rearranging and storing the alarm time information in each storage area of the alarm time storage means, and a current time obtained by the alarm time information stored in the alarm time storage means and the time measurement means. In the alarm clock, the editing means includes month/day information comparing means for comparing the month/day information of the alarm time information with the month/day information of the current time information. Based on the comparison result of this month/day information comparison means, alarm time information having month/day information before the current month/day information is placed after alarm time information having month/day information after the current month/day information. An alarm clock characterized by comprising a sorting means for sorting.
JP17116689A 1989-07-04 1989-07-04 Alarm watch Pending JPH0277683A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP17116689A JPH0277683A (en) 1989-07-04 1989-07-04 Alarm watch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP17116689A JPH0277683A (en) 1989-07-04 1989-07-04 Alarm watch

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP60117750A Division JPS61275691A (en) 1985-05-31 1985-05-31 Alarm timepiece

Publications (1)

Publication Number Publication Date
JPH0277683A true JPH0277683A (en) 1990-03-16

Family

ID=15918223

Family Applications (1)

Application Number Title Priority Date Filing Date
JP17116689A Pending JPH0277683A (en) 1989-07-04 1989-07-04 Alarm watch

Country Status (1)

Country Link
JP (1) JPH0277683A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7457642B2 (en) 2002-09-18 2008-11-25 Fujitsu Limited Information processing device, schedule inputting method and program for use in information processing device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7457642B2 (en) 2002-09-18 2008-11-25 Fujitsu Limited Information processing device, schedule inputting method and program for use in information processing device

Similar Documents

Publication Publication Date Title
JPS61275691A (en) Alarm timepiece
JPS61275948A (en) Data storage device
US5555226A (en) Automatic setting of alternate time zone data in a multimode electronic timepiece
JPH0277683A (en) Alarm watch
KR950014996B1 (en) Data storag apparatus having volatile memory and nonvolatile memory and data indicaiton means for indicating memory storing data
JPH0277682A (en) Alarm watch
US4181963A (en) Electronic calculator with time counting function
JP2560279B2 (en) Data storage device
JPH052878Y2 (en)
JPS6258191A (en) Apparatus for displaying schedule
JP2513600Y2 (en) Data bank device
JPH0726760Y2 (en) Alarm time data storage device
JPH0726761Y2 (en) Data storage
JPH034948Y2 (en)
JPH0720634Y2 (en) Date data storage device
JPS61262680A (en) Schedule display apparatus
JPS61275689A (en) Data storage device
JPH0615313Y2 (en) Data storage device
KR830001450B1 (en) Electronic digital multifunction watch
JPS62153793A (en) Electronic time-piece with data storing apparatus
JPS62133383A (en) Electronic equipment with data memory device
JPH0637471Y2 (en) Memory backup device
JPH052877Y2 (en)
JPH082698Y2 (en) Time data storage device
JPS6234224A (en) Data input device