+

JPS621237B2 - - Google Patents

Info

Publication number
JPS621237B2
JPS621237B2 JP54162034A JP16203479A JPS621237B2 JP S621237 B2 JPS621237 B2 JP S621237B2 JP 54162034 A JP54162034 A JP 54162034A JP 16203479 A JP16203479 A JP 16203479A JP S621237 B2 JPS621237 B2 JP S621237B2
Authority
JP
Japan
Prior art keywords
time
key
input
data
time unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired
Application number
JP54162034A
Other languages
Japanese (ja)
Other versions
JPS5684585A (en
Inventor
Harumi Nakano
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 JP16203479A priority Critical patent/JPS5684585A/en
Publication of JPS5684585A publication Critical patent/JPS5684585A/en
Publication of JPS621237B2 publication Critical patent/JPS621237B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Electric Clocks (AREA)
  • Input From Keyboards Or The Like (AREA)

Description

【発明の詳細な説明】 本発明はタイマ装置等における電子機器の一致
時刻検出装置に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a coincident time detection device for electronic equipment such as a timer device.

近年、日付け或いは時刻を設定し、その時刻に
なつたときに自動的に所定の動作を行なわせるこ
とのできる電子計算機、電子時計等が実用化され
ている。
In recent years, electronic computers, electronic clocks, and the like have been put into practical use that allow a date or time to be set and automatically perform a predetermined operation when the set time arrives.

この種タイマ機能を備えた電子機器の時刻セツ
ト方式は、年、月、日、時、分、(秒)を入力す
るか、時、分、(秒)のみを入力するようになつ
ている(秒は入力しなくても良いものもある)。
The time setting method for electronic devices equipped with this type of timer function is to input the year, month, day, hour, minute, and (second), or to input only the hour, minute, and (second). (For some cases, it is not necessary to enter the seconds.)

しかしながら、前者においては全ての入力を定
義するために、1度設定した時刻データは永久に
1回しか使用できない。また、同年の同月日に異
つた時刻を設定する場合も、その度に年、月、日
を入力しなければならず非常に煩わしいものであ
つた。
However, in the former case, time data once set can be used only once forever in order to define all inputs. Furthermore, even when setting a different time on the same month and day of the same year, the user must input the year, month, and day each time, which is extremely troublesome.

一方、後者においては、一度時刻をセツトすれ
ば毎日同一時刻に所定動作を行なわせることがで
きるが、逆に年、月、日を指定することができな
かつた。更にこの方式も、例えば毎時同一分に所
定動作を行なわせたいような場合、各時のデータ
を入力しなければならなかつた。
On the other hand, in the latter case, once the time is set, a predetermined operation can be performed at the same time every day, but it is not possible to specify the year, month, and day. Furthermore, with this method, for example, if it is desired to perform a predetermined operation at the same minute every hour, it is necessary to input data for each hour.

本発明は上記の点に鑑みてなされたもので、必
要な項目に対してのみ入力操作を行えば良く、入
力操作を簡略化し得ると共に時刻設定を確実に行
い得る時刻セツト方式を提供することを目的とす
る。
The present invention has been made in view of the above points, and it is an object of the present invention to provide a time setting method that allows input operations to be performed only for necessary items, simplifies input operations, and allows time setting to be performed reliably. purpose.

以下図面を参照して本発明の一実施例を説明す
る。第1図は、情報処理システムにおいて、設定
した日時に指定処理プログラムを自動的にスター
トさせることができるプログラムスタート回路に
実施した場合の例を示したものである。第1図に
おいて1はキー入力部で、テンキー2、曜日キー
を含むフアンクシヨンキー3、並びに例えば日時
指定用の「年」、「月」「日」、「時」、「分」、「秒

キー、プログラム指定用の「P1」〜「P4」キー、
午前、午後を指定する「M」キー等各種設定キー
4を備えている。この場合例えば「1」「M」の
キー操作によつて午前、「2」「M」のキー操作に
よつて午後が指定される。そして、このキー入力
部1からのキー入力は、詳細を後述するキー判断
回路5へ送られて操作キーに対する判断が行われ
る。このキー判断回路5は、出力ライン5a〜5
cを備えており、出力ライン5aにはプログラム
キー「P1」〜「P4」が単独操作された場合に選択
信号を出力し、出力ライン5bにはキー入力部1
から入力された日時データを出力し、出力ライン
5cにはプログラムキー「P1」〜「P4」と他のキ
ーとの組合わせ操作された場合にプログラムキー
「P1」〜「P4」に対する選択信号を出力する。ま
た、上記キー判断回路5から出力ライン5bを介
してセレクタ7へ送られる日時データ中には、キ
ー入力部1において指定されない項目のうち
「分」「秒」以外の項目に対してキー判断回路5内
で例えばFF信号(オール“1”信号)が書込ま
れる。そして、上記キー判断回路5の出力ライン
5a,5cから出力される選択信号は、セレクタ
6,7へそれぞれ送られ、出力ライン5bから出
力されるデータは、セレクタ7へ入力されると共
に例えば演算回路等の他の回路へ送られる。上記
セレクタ6は後述するプログラムカウンタPCか
らのデータをキー判断回路5からの選択信号に従
つて複数の出力ライン例えば4本の出力ラインの
何れかに出力するもので、その出力はスタートア
ドレスメモリ8へ送られる。このスタートアドレ
スメモリ8には、RAM(ランダムアクセスメモ
リ)9に書込まれている各プログラムP1〜P4のス
タートアドレス例えば「300」,「500」,「650」,
「750」番地が書込まれる。このスタートアドレス
モメリ8の記憶内容は、セレクタ10によつて選
択され、さらに、セレクタ11を介してプログラ
ムカウンタPCへ送られる。このプログラムカウ
ンタPCの出力はRAM9へプログラム指定アドレ
スとして送られると共にアンド回路12を介して
セイブレジスタ13へ送られる。このセイブレジ
スタ13に保持されたプログラムスタートアドレ
スはセレクタ11を介してプログラムカウンタ
PCへ戻される。上記RAM9に対する書込みデー
タ及び読出しデータは、制御部14との間で授受
が行われる。一方、上記セレクタ7はキー判断回
路5の出力ライン5bから送られてくるデータを
出力ライン5cからの選択信号に従つて例えば4
本の出力ラインの何れかに出力するもので、その
出力は日時メモリ15へ送られる。この日時メモ
リ15は上記プログラムP1〜P4の処理開始日時を
記憶するためのもので、スタートアドレスメモリ
8と対応する領域に例えば第2図a,bに示すよ
うに「年」、「月」、「日」、「曜」、「AM/PM」、
「時」、「分」、「秒」等の日時データが書込まれ
る。上記日時メモリ15の記憶内容は、セレクタ
16によつて各領域毎に選択され、判断回路17
へ入力されると共に、ゲート18を介して比較回
路19へ送られる。上記セレクタ16は時計回路
20からシフトレジスタ21を介して送られてく
るデータに従つて選択動作を行う。上記シフトレ
ジスタ21は例えば4ビツト構成で、時計回路2
0から入力される1秒信号を時計回路20からの
クロツクパルスCPに従つてシフトし、各ビツト
出力つまり4ビツトのデータをセレクタ16へ選
択信号として与えている。また、シフトレジスタ
21の出力は、バツフア22を介してセレクタ1
0へ選択信号として送られる。上記時計回路20
は、内部発振回路から出力される基準信号をカウ
ントして秒、分、時、日、月、年、曜日のデータ
を作成しており、出力ライン20aから日時デー
タを出力し、ゲート23を介して比較回路19へ
送つている。上記判断回路17は、セレクタ16
を介して出力される日時メモリ15の内容を判断
し、FF信号を検出した場合にゲート18,23
に閉成指令を与える。さらに、時計回路20は出
力ライン20bから1秒信号を出力し、シフトレ
ジスタ21へ入力すると共に比較回路19へ比較
指令として与える。比較回路19は1秒信号が入
力された際にゲート18を介して送られてくる日
時メモリ15からの日時データとゲート23を介
して送られてくる時計回路20からの日時データ
とを比較し、一致した場合に一致信号を制御部1
4へ割込み信号として入力すると共に、バツフア
22へ読込み信号として与える。制御部14は割
込みを受付けると、出力ライン14aから“1”
信号を出力し、セレクタ11、アンド回路12及
びバツフア22へ入力する。このバツフア22は
制御部14からの信号によつて保持内容が読出さ
れ、セレクタ10へ選択信号として送られる。上
記制御部14は、RAM9に対するアクセスを終
了した場合に出力ライン14bから終了信号を出
力し、セレクタ11に選択信号として入力すると
共にバツフア22のリセツト端子Rへ入力する。
さらに、制御部14はプログラムスタート制御以
外の通常制御動作時には、出力ライン14cから
“1”信号を出力し、セレクタ11へ選択信号と
して入力する。
An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 shows an example in which the present invention is implemented in a program start circuit that can automatically start a specified processing program at a set date and time in an information processing system. In FIG. 1, reference numeral 1 denotes a key input section, which includes a numeric keypad 2, function keys 3 including a day of the week key, and, for example, "year", "month", "day", "hour", "minute", and "second" for specifying the date and time. ”
keys, "P 1 " to "P 4 " keys for program specification,
It is provided with various setting keys 4 such as an "M" key for specifying morning and afternoon. In this case, for example, the morning is designated by operating the keys "1" and "M", and the afternoon is designated by operating the keys "2" and "M". The key input from the key input section 1 is sent to a key determination circuit 5, which will be described in detail later, to determine the operation key. This key determination circuit 5 has output lines 5a to 5.
c, the output line 5a outputs a selection signal when the program keys "P 1 " to "P 4 " are operated alone, and the output line 5b outputs a selection signal from the key input section 1
Outputs the date and time data input from the output line 5c, and outputs the program keys "P 1 " to "P 4 " when the program keys "P 1 " to "P 4 " are operated in combination with other keys. Outputs a selection signal for. In addition, in the date and time data sent from the key judgment circuit 5 to the selector 7 via the output line 5b, a key judgment circuit is included for items other than "minutes" and "seconds" that are not specified in the key input section 1. For example, an FF signal (all "1" signal) is written within the buffer 5. The selection signals outputted from the output lines 5a and 5c of the key determination circuit 5 are sent to selectors 6 and 7, respectively, and the data outputted from the output line 5b is inputted to the selector 7 and, for example, to an arithmetic circuit. etc. are sent to other circuits. The selector 6 outputs data from the program counter PC, which will be described later, to one of a plurality of output lines, for example, four output lines, in accordance with a selection signal from the key judgment circuit 5, and the output is sent to the start address memory 8. sent to. This start address memory 8 contains the start addresses of each program P 1 to P 4 written in the RAM (random access memory) 9, such as "300", "500", "650",
Address "750" is written. The stored contents of the start address memory 8 are selected by the selector 10 and further sent to the program counter PC via the selector 11. The output of the program counter PC is sent to the RAM 9 as a program designated address and is also sent to the save register 13 via the AND circuit 12. The program start address held in this save register 13 is sent to the program counter via the selector 11.
Returned to PC. Write data and read data to and from the RAM 9 are exchanged with the control section 14. On the other hand, the selector 7 selects the data sent from the output line 5b of the key determination circuit 5 according to the selection signal from the output line 5c.
It is output to any of the output lines of the book, and the output is sent to the date and time memory 15. This date and time memory 15 is for storing the processing start date and time of the programs P1 to P4 , and stores, for example, "year" and "month" in the area corresponding to the start address memory 8, as shown in FIGS. 2a and 2b. ”, “Sun”, “Day”, “AM/PM”,
Date and time data such as "hour", "minute", "second", etc. are written. The storage contents of the date and time memory 15 are selected for each area by the selector 16, and the judgment circuit 17
At the same time, it is sent to the comparison circuit 19 via the gate 18. The selector 16 performs a selection operation in accordance with data sent from the clock circuit 20 via the shift register 21. The shift register 21 has a 4-bit configuration, for example, and the clock circuit 2
The 1 second signal inputted from 0 is shifted in accordance with the clock pulse CP from the clock circuit 20, and each bit output, that is, 4 bit data is given to the selector 16 as a selection signal. In addition, the output of the shift register 21 is sent to the selector 1 via a buffer 22.
0 as a selection signal. The above clock circuit 20
The system counts the reference signal output from the internal oscillation circuit to create data for seconds, minutes, hours, days, months, years, and days of the week, outputs date and time data from the output line 20a, and outputs the data through the gate 23. and sends it to the comparison circuit 19. The judgment circuit 17 includes a selector 16
The contents of the date and time memory 15 output through the gates 18 and 23 are judged, and when the FF signal is detected,
Give a closing command to. Furthermore, the clock circuit 20 outputs a 1 second signal from the output line 20b, which is input to the shift register 21 and also given to the comparison circuit 19 as a comparison command. The comparison circuit 19 compares the date and time data sent from the date and time memory 15 via the gate 18 with the date and time data sent from the clock circuit 20 via the gate 23 when the 1 second signal is input. , the control unit 1 sends a match signal when there is a match.
4 as an interrupt signal, and also provided to the buffer 22 as a read signal. When the control unit 14 receives an interrupt, it outputs “1” from the output line 14a.
A signal is output and input to the selector 11, AND circuit 12, and buffer 22. The contents held in this buffer 22 are read out by a signal from the control section 14 and sent to the selector 10 as a selection signal. When the control section 14 finishes accessing the RAM 9, it outputs an end signal from the output line 14b, and inputs it to the selector 11 as a selection signal and to the reset terminal R of the buffer 22.
Furthermore, during normal control operations other than program start control, the control section 14 outputs a "1" signal from the output line 14c and inputs it to the selector 11 as a selection signal.

次に第3図により上記キー判断回路5の詳細に
ついて説明する。31はキー入力部1から入力さ
れる日時データを各項目単位で保持するキーバツ
フアで、このキーバツフア31に保持されたデー
タはゲート回路32及び判断部33へ送られる。
この判断部33は制御部14からの制御指令に従
つてキーバツフア31内のフアンクシヨンコード
からのその指定項目を判断し、ての判断結果に従
つてゲート回路32に制御指令を与えると共に出
力ライン5a,5cを介してセレクタ6,7へ選
択信号を出力する。上記ゲート回路32には、キ
ーバツフア31からの入力の他、制御部14から
4ビツトのFF信号“1111”が与えられており、
判断部33からの制御信号に従つて一方の入力が
選択される。そして、このゲート回路32の出力
は、第2図の桁構成を持つバツフア34に送られ
て一時記憶され、その後日時メモリ15へ出力ラ
イン5bを介して送られる。しかして判断部33
は、キー入力部1から入力されるフアンクシヨン
コードを判断し、キー入力部1によつて指定され
なかつた項目に対してゲート回路32の入力を切
換えてバツフア34にFF信号を書込む。キー入
力部1からは必要な項目を「年」、「月」、「日」、
「曜日」、「AM/PM」、「時」、「分」、「秒」の順で
入力されるので、キーバツフア31内のフアンク
シヨンコードを判断することによつて、指定され
ていない入力項目を検出することができる。今例
えば1979年6月1日午後12時00分00秒を指定する
ものとすれば、キー入力部1において「79」
「年」「6」「月」「1」「日」「2」「M」「12」
「時」のキー操作を行う。まず、キー入力部1に
おいて、「79」「年」のキー操作が行われると、こ
の「79年」のデータはキーバツフア31に貯えら
れる。一方、判断部33はキーバツフア31に保
持されたフアンクシヨンコードを検出し、年デー
タが入力されたことを記憶すると共にゲート回路
32に制御信号を送り、キーバツフア31の年デ
ータ「79」をゲート回路32を介してバツフア3
4へ出力し、第2図aに示すように年記憶桁つま
り最上位桁に書込む。以下同様にして「月」デー
タ及び「日」データがバツフア34の対応桁に書
込まれる。そして、次に「M」コードがキー入力
部1からキーバツフア31に入力される。判断部
33はキーバツフア31から「M」コードが与え
られると、それまでに「曜日」データが入力され
なかつたことを内部の記憶データから検出し、ゲ
ート回路32の入力選択を切換えてFF信号をバ
ツフア34内の曜日記憶桁に書込む。その後、判
断部33はゲート32を再びキーバツフア31側
に切換え、キーバツフア31に保持されている午
後(PM)を示す数値コード例えば「02」をバツ
フア34内の「AM/PM」桁に書込む。次にキ
ー入力部1から「12」「時」のデータが与えられ
ることによつて時データ「12」がバツフア34の
時記憶桁に書込まれる。しかして、上記日時デー
タの入力後、キー入力部1でプログラム指定キー
「P1」〜「P4」の何れかが操作されることによつ
て、バツフア34に保持されている日時データ
が、判断部33において判断されるプログラム番
号に従つてセレクタ7を介して日時メモリ15へ
転送される。また、例えば日付けに関係なく午前
7時30分を指定するものとすれば、キー入力部1
において「1」「M」「7」「時」「30」「分」のキ
ー操作を行う。この場合には最初に午前を指示す
る「1」「M」のキー操作が行われるので、判断
部33は、「M」コードを検出すると、ゲート回
路32をFF信号側に切換え、第2図bに示すよ
うに項目が指定されなかつた「年」、「月」、
「日」、「曜日」の各記憶桁にそれぞれFF信号を書
込む。その後判断部33はゲート回路32をキー
バツフア側31に切換え、キーバツフア31に保
持されている午前(AM)を示す数値コード
「01」をバツフア34内の「AM/PM」桁に書込
む。そして、次にキー入力部1から入力される時
データ「07」及び分データ「30」が第2図bに示
すようにバツフア34の時記憶桁及び分記憶桁に
書込まれる。そして、上記時刻データの入力後、
キー入力部1のプログラム指定キー「P1」〜
「P4」によつて指定されるプログラム番号に従つ
てセレクタ7を介して日時メモリ15へ転送され
る。
Next, details of the key determination circuit 5 will be explained with reference to FIG. Reference numeral 31 denotes a key buffer that holds date and time data inputted from the key input section 1 for each item, and the data held in this key buffer 31 is sent to a gate circuit 32 and a judgment section 33.
This judgment section 33 judges the specified item from the function code in the key buffer 31 according to the control command from the control section 14, and gives a control command to the gate circuit 32 according to the judgment result, and also outputs the output line. A selection signal is output to selectors 6 and 7 via 5a and 5c. In addition to the input from the key buffer 31, the gate circuit 32 is given a 4-bit FF signal "1111" from the control section 14.
One input is selected according to a control signal from the determining section 33. The output of this gate circuit 32 is sent to a buffer 34 having the digit configuration shown in FIG. 2, where it is temporarily stored, and then sent to the date and time memory 15 via an output line 5b. However, the judgment unit 33
determines the function code input from the key input section 1, switches the input of the gate circuit 32 for the item not specified by the key input section 1, and writes an FF signal to the buffer 34. From key input section 1, input the necessary items such as "Year", "Month", "Day",
Since "day of the week", "AM/PM", "hour", "minute", and "second" are input in this order, by determining the function code in the key buffer 31, you can input unspecified input. Items can be detected. For example, if you want to specify 12:00:00 pm on June 1, 1979, enter "79" in key input section 1.
"Year""6""Month""1""Day""2""M""12"
Perform the "hour" key operation. First, when a key operation for "79" and "year" is performed in the key input unit 1, the data for "79" is stored in the key buffer 31. On the other hand, the judgment unit 33 detects the function code held in the key buffer 31, stores that the year data has been input, and sends a control signal to the gate circuit 32 to gate the year data "79" in the key buffer 31. Buffer 3 via circuit 32
4, and write it in the year storage digit, that is, the most significant digit, as shown in FIG. 2a. Thereafter, "month" data and "day" data are written into corresponding digits of the buffer 34 in the same manner. Then, the "M" code is input from the key input section 1 to the key buffer 31. When the judgment section 33 receives the "M" code from the key buffer 31, it detects from internal storage data that "day of the week" data has not been input until then, and switches the input selection of the gate circuit 32 to output the FF signal. Write to the day of the week storage digit in the buffer 34. Thereafter, the determining section 33 switches the gate 32 again to the key buffer 31 side, and writes the numerical code, for example "02" indicating the afternoon (PM) held in the key buffer 31, into the "AM/PM" digit in the buffer 34. Next, by inputting the data "12" and "hour" from the key input section 1, the hour data "12" is written into the hour memory digit of the buffer 34. After inputting the above date and time data, by operating any of the program designation keys "P 1 " to "P 4 " on the key input section 1, the date and time data held in the buffer 34 is changed to According to the program number determined by the determination section 33, the program is transferred to the date and time memory 15 via the selector 7. For example, if you want to specify 7:30 a.m. regardless of the date, key input section 1
, perform key operations for ``1'', ``M'', ``7'', ``hour'', ``30'', and ``minute''. In this case, the keys "1" and "M" indicating AM are first operated, so when the determining section 33 detects the "M" code, it switches the gate circuit 32 to the FF signal side, as shown in FIG. "Year", "Month", and "Month" for which no items are specified as shown in b.
Write the FF signal to each memory digit of "day" and "day of the week". Thereafter, the determining section 33 switches the gate circuit 32 to the key buffer side 31 and writes the numerical code "01" indicating the morning (AM) held in the key buffer 31 to the "AM/PM" digit in the buffer 34. Then, the hour data "07" and minute data "30" input from the key input section 1 are written into the hour memory digit and minute memory digit of the buffer 34, as shown in FIG. 2b. After inputting the above time data,
Program specification key “P 1 ” of key input section 1 ~
It is transferred to the date and time memory 15 via the selector 7 according to the program number specified by "P 4 ".

次に第1図の全体の動作について説明する。
RAM9には指定日時に処理動作を開始させたい
プログラムP1〜P4が予め書込まれる。このプログ
ラムP1〜P4の書込みに際して、キー入力部1にお
けるプログラム指定キー「P1」〜「P4」を操作す
ると、その時のプログラムカウンタPCの内容が
スタートアドレスメモリ8に書込まれる。例えば
プログラムP1の書込みに際して、キー入力部1の
プログラム指定キー「P1」を操作すると、キー判
断回路5の出力ライン5aから「P1」キーに対応
した選択信号が出力され、セレクタ6へ送られ
る。セレクタ6はキー判断回路5からの選択信号
に従つて動作し、その時のプログラムカウンタ
PCの内容、つまりプログラムP1のスタートアド
レス「300」番地がセレクタ6を介してスタート
アドレスメモリ8のプログラムP1に対応する領域
に書込まれる。以下同様に他のプログラムP2〜P4
に対してもそのRAM9への書込みに際してプロ
グラムキー「P2」〜「P4」を操作することによ
り、プログラムP2〜P4に対するスタートアドレス
「500」,「650」,「750」番地がRAM8の各プログ
ラム対応領域に書込まれる。また、上記プログラ
ムP1〜P4を実行させたい日時をキー入力部1より
入力する。例えばプログラムP1を1979年6月1日
午後12時に指定したい場合には、キー入力部1よ
り「1979」「年」「6」「月」「1」「日」「12」
「時」「2」「M」「P1」のキー操作を行い、プログ
ラムP2を毎日午前7時30分に指定したい場合に
は、「7」「時」「30」「分」「1」「M」「P2」のキ
ー操作を行う。上記キー入力部1からのキー入力
データは、上記したようにキー判断回路5からセ
レクタ7を介して日時メモリ15へ送られ、プロ
グラムP1,P2に対応する領域に書込まれる。時計
回路20は常時計時動作を行つており、出力ライ
ン20bから1秒信号を出力する。この1秒信号
は比較回路19へ比較指令として送られると共
に、シフトレジスタ21へ送られ、時計回路20
からのクロツクパルスCPに同期してシフトレジ
タ21の第1ビツトに書込まれる。そして、この
シフトレジスタ21に書込まれた“1”信号は、
上記クロツクパルスCPに同期して順次シフトさ
れる。このシフトレジスタ21のデータシフトに
従つてセレクタ16が動作し、日時メモリ15の
内容を領域別に選択して読出し、判断回路17及
びゲート18へ入力する。判断回路17は入力さ
れた内容を判断し、FF信号以外のデータがセレ
クタ16から読出されている間はゲート18,2
3を開き、セレクタ16を介して読出される日時
メモリ15の内容を比較回路19へ入力すると共
に、時計回路20からゲート23を介して読出さ
れる現時刻における日時データを比較回路1へ入
力する。比較回路19は日時メモリ15から読出
される日時データと、時計回路20から入力され
る日時データとを比較し、一致した場合に一致信
号を出力する。例えば日時メモリ15のプログラ
ムP1に対する日時データと現在の日時データとの
比較を行う場合、日時メモリ15からまず「年」
に対する8ビツトパラレルデータが読出され、比
較回路19で現在の日時データと比較される。次
に「月」のデータ、「日」のデータが順次比較さ
れる。この場合「曜日」に対してはFF信号が読
出されるので、ゲート18及び23が閉じ比較は
行われない。このようにして日時メモリ15にセ
ツトされているプログラムP1に対する日時データ
と現在の日時データとの比較が行われ、すべての
データが一致すると比較回路19から一致信号が
出力される。また、日付メモリ15に記憶されて
いるプログラムP2に対する日時データは、時間デ
ータのみがセツトされているので、日付に関係な
く「7時30分」になれば比較回路19から一致信
号が出力される。しかして、比較回路19から出
力される一致信号は、制御部14へ割込み信号と
して入力されると共に、バツフア22へ読込み信
号として入力される。この読込み信号によりシフ
トレジスタ21の内容がバツフア22へ転送され
る。一方、制御部14は、演算中の命令が終わ
り、割込み受付可能になると、比較回路19から
の割込みを受付けて出力ライン14bから“1”
信号を出力し、読出し指令としてバツフア22へ
入力する。この読出し指令によりバツフア22の
内容がセレクタ10へ読出され、この時セレクタ
16によつて選択されている日時メモリ15の領
域に対応するスタートアドレスメモリ8の内容、
例えばプログラムP1のスタートアドレス「300」
番地がセレクタ10により選択され、セレクタ1
1へ入力される。このセレクタ11は、制御部1
4aの出力ライン14より“1”信号が与えられ
ている場合、セレクタ10からのデータを選択
し、プログラムカウンタPCへロードする。この
とき、プログラムカウンタPCにあつたデータ
は、アンド回路12を介してセイブレジスタ13
へ退避する。そして、上記プログラムカウンタ
PCにロードされた「300」番地によつてRAM9
におけるプログラムP1の先頭アドレスが指定さ
れ、プログラムP1に対する処理が実行される。し
かして、上記プログラムP1に対する処理動作を終
了すると、制御部14の出力ライン14bから終
了信号が出力され、バツフア22がリセツトされ
ると共にセレクタ11の動作が切換えられ、セイ
ブレジスタ13に退避されていたデータがセレク
タ11を介してプログラムカウンタPCへ戻され
る。以下同様にして日時メモリ15に記憶されて
いる日時データと時計回路20で計時されている
現在の日時データとが1秒毎に比較され、一致し
た場合にその日時データに対応するプログラムの
スタートアドレスがスタートアドレスメモリ8か
ら読出されRAM9に記憶されているプログラム
が読出されてその処理が実行される。
Next, the overall operation shown in FIG. 1 will be explained.
Programs P 1 to P 4 whose processing operations are to be started at a specified date and time are written in the RAM 9 in advance. When writing the programs P 1 to P 4 , when the program designation keys "P 1 " to "P 4 " in the key input section 1 are operated, the contents of the program counter PC at that time are written to the start address memory 8. For example, when writing the program P 1 , when the program designation key "P 1 " of the key input section 1 is operated, a selection signal corresponding to the "P 1 " key is output from the output line 5a of the key judgment circuit 5, and is sent to the selector 6. Sent. The selector 6 operates according to the selection signal from the key judgment circuit 5, and selects the program counter at that time.
The contents of the PC, that is, the start address "300" of the program P 1 are written via the selector 6 into the area of the start address memory 8 corresponding to the program P 1 . Similarly, other programs P 2 to P 4
By operating program keys "P 2 " to "P 4 " when writing to RAM 9, the start addresses "500", "650", and "750" for programs P 2 to P 4 can be changed to RAM 8. is written to each program-compatible area. Further, the user inputs the date and time on which the programs P 1 to P 4 are to be executed using the key input unit 1 . For example, if you want to specify program P 1 at 12:00 pm on June 1, 1979, enter "1979", "year", "6", "month", "1", "day", "12" from key input section 1.
If you want to specify program P 2 at 7:30 a.m. every day by pressing the "hour", "2", "M", and "P 1 " keys, press "7", "hour", "30", "minute", and "1". ”, “M” and “P 2 ” key operations. The key input data from the key input unit 1 is sent from the key determination circuit 5 to the date/time memory 15 via the selector 7 as described above, and written into the areas corresponding to the programs P 1 and P 2 . The clock circuit 20 is in constant clock operation and outputs a 1 second signal from the output line 20b. This 1 second signal is sent to the comparison circuit 19 as a comparison command, and is also sent to the shift register 21, and the clock circuit 20
The first bit of the shift register 21 is written in synchronization with the clock pulse CP from the clock pulse CP. The “1” signal written in this shift register 21 is
They are sequentially shifted in synchronization with the clock pulse CP. The selector 16 operates in accordance with the data shift of the shift register 21, selects and reads out the contents of the date and time memory 15 by region, and inputs the selected data to the judgment circuit 17 and gate 18. The judgment circuit 17 judges the input contents, and while data other than the FF signal is being read from the selector 16, the gates 18 and 2
3 and inputs the contents of the date and time memory 15 read out via the selector 16 to the comparison circuit 19, and inputs the date and time data at the current time read out from the clock circuit 20 via the gate 23 to the comparison circuit 1. . Comparison circuit 19 compares the date and time data read from date and time memory 15 with the date and time data input from clock circuit 20, and outputs a match signal when they match. For example, when comparing the date and time data for program P 1 in the date and time memory 15 with the current date and time data, first from the date and time memory 15 "Year"
8-bit parallel data is read out and compared with the current date and time data in the comparator circuit 19. Next, the "month" data and the "day" data are sequentially compared. In this case, since the FF signal is read out for "day of the week", gates 18 and 23 are closed and no comparison is performed. In this way, the date and time data for the program P1 set in the date and time memory 15 is compared with the current date and time data, and when all the data match, the comparison circuit 19 outputs a match signal. Furthermore, since only time data is set as the date and time data for program P2 stored in the date memory 15, a match signal is output from the comparator circuit 19 at "7:30" regardless of the date. Ru. The match signal output from the comparator circuit 19 is input to the control section 14 as an interrupt signal, and is also input to the buffer 22 as a read signal. This read signal causes the contents of the shift register 21 to be transferred to the buffer 22. On the other hand, when the instruction being operated is completed and the control unit 14 becomes able to accept an interrupt, it accepts the interrupt from the comparator circuit 19 and outputs "1" from the output line 14b.
A signal is output and input to the buffer 22 as a read command. This read command causes the contents of the buffer 22 to be read to the selector 10, and the contents of the start address memory 8 corresponding to the area of the date and time memory 15 selected by the selector 16 at this time,
For example, the start address of program P 1 is "300"
The address is selected by selector 10, selector 1
1. This selector 11
When a "1" signal is given from the output line 14 of 4a, data from the selector 10 is selected and loaded into the program counter PC. At this time, the data received in the program counter PC is passed through the AND circuit 12 to the save register 13.
Evacuate to. And the above program counter
RAM9 by address “300” loaded on PC
The start address of program P 1 is specified, and processing for program P 1 is executed. When the processing operation for the program P 1 is completed, a termination signal is output from the output line 14b of the control section 14, the buffer 22 is reset, the operation of the selector 11 is changed, and the program is saved in the save register 13. The data is returned to the program counter PC via the selector 11. Thereafter, in the same manner, the date and time data stored in the date and time memory 15 and the current date and time data clocked by the clock circuit 20 are compared every second, and if they match, the start address of the program corresponding to the date and time data is compared. is read out from the start address memory 8, the program stored in the RAM 9 is read out, and its processing is executed.

なお、上記実施例においては、日時データの設
定項目のうち、入力されなかつた項目について
は、FF信号を書込んで計時データとの比較の対
象から除くようにしたが、これに限ることなく、
例えば各項目に対応してフラグビツトを設け、こ
のフラグがセツトされていない項目については計
時データとの比較の対象から除くようにしても良
い。
Note that in the above embodiment, FF signals are written to items that have not been input among the date and time data setting items to exclude them from comparison with time data, but the invention is not limited to this.
For example, a flag bit may be provided corresponding to each item, and items for which this flag is not set may be excluded from comparison with clock data.

以上述べたように本発明によれば、日時データ
の設定項目のうち、必要な項目に対してのみ入力
操作を行えば良く、入力操作を簡略化し得ると共
に時刻設定を確実に行うことができる。また、年
月日を指定した場合は1回だけの動作、年月日を
指定せず曜日及び時刻あるいは時刻のみを指定し
た場合はその指定時刻において繰返しの動作を行
わせることができる。上記の1回だけの動作と繰
返しの動作は、モードスイツチの切換え等を必要
とせず、入力情報の設定のみによつて行うことが
できる。
As described above, according to the present invention, it is only necessary to perform the input operation for necessary items among the setting items of date and time data, and the input operation can be simplified and the time can be set reliably. Further, if the year, month, and day are specified, the operation can be performed only once, and if only the day of the week and time or the time is specified without specifying the year, month, and day, the operation can be performed repeatedly at the specified time. The one-time operation and repeated operation described above do not require switching of a mode switch, and can be performed only by setting input information.

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

図面は本発明の一実施例を示すもので、第1図
は全体の回路構成図、第2図a,bはアラーム時
刻の設定例を示す図、第3図は第2図におけるキ
ー判断回路の詳細を示すブロツク図である。 1……キー入力部、5……キー判断回路、8…
…スタートアドレスメモリ、9……RAM、15
……日時メモリ、32……ゲート回路、33……
判断部。
The drawings show one embodiment of the present invention; FIG. 1 is an overall circuit configuration diagram, FIGS. 2a and b are diagrams showing an example of setting an alarm time, and FIG. 3 is a key determination circuit in FIG. 2. FIG. 2 is a block diagram showing details. 1...Key input section, 5...Key judgment circuit, 8...
...Start address memory, 9...RAM, 15
...Date and time memory, 32...Gate circuit, 33...
Judgment department.

Claims (1)

【特許請求の範囲】 1 基準信号を計数して時刻情報を得る計時手段
20と、セツト時刻情報の夫々の時間単位を記憶
する時間単位記憶領域を有するセツト時刻記憶手
段15と、 前記セツト時刻情報の各時間単位毎の数値デー
タを入力する数値データ入力キー及びこの数値デ
ータ入力キーで入力された数値データの時間単位
を指定する時間単位指定キーからなるキー入力手
段1と、 このキー入力手段によつて前記数値データが入
力されなかつた時間単位を判断する判断手段33
と、 前記キー入力手段によるキー入力データ及び前
記判断手段による判断結果に基づき、数値データ
が入力された時間単位は対応する前記時間単位記
憶領域に入力された数値データを記憶させ、数値
データが入力されなかつた時間単位は対応する前
記時間単位記憶領域にセツト時刻情報とは異なる
あらかじめ定められたコードを記憶させるセツト
制御手段14,32,34と、 このセツト制御手段によつて記憶された前記セ
ツト時刻記憶手段の時刻単位記憶領域のデータの
うち前記異なるあらかじめ定められたコードを記
憶する時刻単位記憶領域以外のデータと前記計時
手段で得られる時刻情報とを比較して一致検出を
行う一致検出手段17,18,19,23とを具
備したことを特徴とする電子機器の一致時刻検出
装置。
[Scope of Claims] 1. A clock means 20 that obtains time information by counting reference signals, a set time storage means 15 having a time unit storage area for storing each time unit of the set time information, and the set time information. a key input means 1 consisting of a numerical data input key for inputting numerical data for each time unit, and a time unit designation key for specifying the time unit of the numerical data input with the numerical data input key; Therefore, determining means 33 determines the time unit in which the numerical data is not input.
and, based on the key input data by the key input means and the judgment result by the judgment means, the time unit in which the numerical data is input is stored in the corresponding time unit storage area, and the numerical data is inputted. A set control means 14, 32, 34 stores a predetermined code different from the set time information in the corresponding time unit storage area for the time unit that has not been set. Coincidence detection means for detecting coincidence by comparing data in the time unit storage area of the time storage means other than the time unit storage area storing the different predetermined code with the time information obtained by the time measuring means. 17, 18, 19, and 23. A coincidence time detection device for an electronic device, characterized in that it comprises: 17, 18, 19, and 23.
JP16203479A 1979-12-13 1979-12-13 Time-setting method Granted JPS5684585A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP16203479A JPS5684585A (en) 1979-12-13 1979-12-13 Time-setting method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP16203479A JPS5684585A (en) 1979-12-13 1979-12-13 Time-setting method

Publications (2)

Publication Number Publication Date
JPS5684585A JPS5684585A (en) 1981-07-09
JPS621237B2 true JPS621237B2 (en) 1987-01-12

Family

ID=15746816

Family Applications (1)

Application Number Title Priority Date Filing Date
JP16203479A Granted JPS5684585A (en) 1979-12-13 1979-12-13 Time-setting method

Country Status (1)

Country Link
JP (1) JPS5684585A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6459521A (en) * 1987-08-31 1989-03-07 Nec Corp Programmable timer circuit

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6062731A (en) * 1983-09-17 1985-04-10 Pioneer Electronic Corp Data input device
JPS6350095U (en) * 1986-09-19 1988-04-05

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS54153670A (en) * 1978-05-24 1979-12-04 Rhythm Watch Co Display construction for program timer
JPS55154494A (en) * 1979-05-18 1980-12-02 Seikosha Co Ltd Watch with timer

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6459521A (en) * 1987-08-31 1989-03-07 Nec Corp Programmable timer circuit

Also Published As

Publication number Publication date
JPS5684585A (en) 1981-07-09

Similar Documents

Publication Publication Date Title
US4392133A (en) Electronic lock with changeable opening code
JPS6380356A (en) Electronic reminder
JPS621237B2 (en)
JPS6142156Y2 (en)
JPH0421151Y2 (en)
US4766578A (en) Method of setting time in digital clock and system therefor
JPS6019538B2 (en) Program writing method
JPS6213636B2 (en)
JPH0646224B2 (en) Small electronic device with time data storage function
JPS6247271B2 (en)
JP2549454Y2 (en) Data bank device
JPH0332116B2 (en)
JPS6312996B2 (en)
JPH0434477Y2 (en)
KR100286245B1 (en) Electronic organizer schedule project recording method and related devices
JPS594349Y2 (en) electronic register
JP2592353Y2 (en) Input device for setting contents in time clock
SU1674256A1 (en) Device to retrieve data from the memory unit
JPS6118153B2 (en)
JPH0610433Y2 (en) Small electronic calculator
SU1179349A1 (en) Device for checking microprograms
JPH0424756B2 (en)
JPS6115464B2 (en)
JPS5824818B2 (en) Hiyoji Seigiyohoushiki
JPS61262864A (en) Data storage unit
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载