JPS6129476B2 - - Google Patents
Info
- Publication number
- JPS6129476B2 JPS6129476B2 JP16220778A JP16220778A JPS6129476B2 JP S6129476 B2 JPS6129476 B2 JP S6129476B2 JP 16220778 A JP16220778 A JP 16220778A JP 16220778 A JP16220778 A JP 16220778A JP S6129476 B2 JPS6129476 B2 JP S6129476B2
- Authority
- JP
- Japan
- Prior art keywords
- clock
- input
- time
- timer
- 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.)
- Expired
Links
Landscapes
- Electric Clocks (AREA)
Description
【発明の詳細な説明】
本発明は、電子式デイジタルタイマーに関する
もので、電源投入後時計の時刻を設定した後は、
電源を切らない限り時計の時刻修正はできないよ
うにして、各タイマーの設定時に誤つて時計の時
刻を変更してしまうミスを防ぐものである。[Detailed Description of the Invention] The present invention relates to an electronic digital timer, and after setting the time of the clock after turning on the power,
This prevents the clock time from being adjusted by mistake unless the power is turned off, thereby preventing the mistake of accidentally changing the clock time when setting each timer.
一般に、出力コンセントを1週間あるいは1日
24時間を単位として何回もオン・オフ設定ができ
るタイマーがあるが、設定モードがふえるとモー
ド切替手段としてロータリースイツチを用いた
り、数多くのキースイツチを並べたりしなければ
ならなくなる。 Generally, the output outlet
There are timers that can be set on and off multiple times over a 24-hour period, but as the number of modes increases, it becomes necessary to use a rotary switch or line up a large number of key switches to change the mode.
例えば第1図において、1はタイマー外体、2
は置換キー及びクリアキー、3は時刻表示部、4
はロータリースイツチである。ロータリースイツ
チは通常時計モードになつており、必要に応じて
時計修正モードに切り替えたり、タイマーモード
に切り替えたりして時計設定を行ない、設定完了
後に再び時計モードにもどすのである。このう
ち、時計修正モードは電源投入時1度だけ使うモ
ードである通電中は2度と使うことのないモード
である。すなわち、電子式デイジタル時計は基本
周波数として商用電源周波数を用いるか、水晶発
振子の発振周波数を用いており、通電後はほとん
ど狂うことがないので修正モードに切り替える必
要はなく、時々発生する停電の時か、何らかの都
合でタイマーを移動させる際に電源を切る時ぐら
いのものである。ところが、タイマーモードは頻
繁に使うモードであり、多い時には1日に2回も
3回も使うことがある。このような場合、ロータ
リースイツチで切り替えていると、時刻モードに
もどす時誤つて時計修正モードまで回し過ぎて、
気づかないうちに置数キーに触れたりして時計の
時刻をずらしてしまうことがある。そうすると、
時計が狂うだけでなくタイマーも狂つてしまうの
で思いもよらない時にタイマーでオン・オフを行
なう機器の電源が入ることがあり、非常に危険で
ある。このようなケースはロータリースイツチの
時に限らず、数多くのキースイツチを並べた時に
でも起こりうるものである。 For example, in Fig. 1, 1 is the timer external body, 2
are the replacement key and clear key, 3 is the time display section, 4
is a rotary switch. The rotary switch is normally in clock mode, and if necessary, it can be switched to clock correction mode or timer mode to set the clock, and when the settings are complete, it returns to clock mode. Among these, the clock correction mode is a mode that is used only once when the power is turned on, and is never used again while the power is on. In other words, electronic digital clocks use the commercial power supply frequency or the oscillation frequency of a crystal oscillator as the basic frequency, and since they rarely go out of order after being energized, there is no need to switch to correction mode, and they can be used for power outages that occasionally occur. It is used only when the power is turned off when moving the timer for some reason. However, the timer mode is a frequently used mode, and may be used twice or even three times a day. In such a case, if you are switching with the rotary switch, you may accidentally turn it too far to the clock correction mode when returning to the time mode.
You may accidentally change the time on your clock by touching the numeric keys without realizing it. Then,
Not only will the clock go awry, but the timer will also go awry, so devices that are turned on and off by timers may turn on at unexpected times, which is extremely dangerous. This kind of case can occur not only when using a rotary switch, but also when a large number of key switches are arranged side by side.
本発明は、このような時計時刻の誤修正が起こ
らないように、通電開始後1度時計の時刻設定が
完了した後は2度と時計修正モードには入らない
ようにしたタイマーを提供せんとするものであ
る。 In order to prevent such erroneous adjustment of the clock time, the present invention provides a timer that does not enter the clock adjustment mode again after the time setting of the clock is completed once the power is turned on. It is something to do.
第2図は、本発明のタイマーの構成を示す一実
施例である。aはタイマーの構成図で、5は置換
キー、クリヤキー、ロータリースイツチなどから
なる操作部、6は操作部5から入力された内容、
すなわちオン時刻やオフ時刻などを記憶する記憶
部、3は時計やタイマー時刻などを表示する表示
部、7は基準パルスHZを計数して時計をつくり
表示部3に表示したり、時計の計数内容と記憶部
6のタイマー時刻との一致か否か判別して一致し
た時出力を出したりする制御部である。8は時計
修正モードで時刻修正時計モードに切り替えたこ
とを保持する保持手段と、保持手段の内容により
時計修正モードへの切替を制御する時計修正モー
ド切替制御手段からなる時計修正判定回路であ
り、制御部7と時計修正判定回路8はリセツト入
力RSTによつてリセツトされる。 FIG. 2 is an embodiment showing the configuration of a timer according to the present invention. a is a configuration diagram of the timer, 5 is an operation section consisting of a replacement key, a clear key, a rotary switch, etc., 6 is the content input from the operation section 5,
In other words, a storage section that stores ON and OFF times, etc., a display section 3 that displays clock and timer times, and a display section 7 that counts the reference pulse HZ to create a clock and displays it on the display section 3, and displays the counting contents of the clock. This is a control unit that determines whether or not the time and the timer time in the storage unit 6 match, and outputs an output when they match. Reference numeral 8 denotes a clock correction determination circuit comprising a holding means for holding that the clock correction mode has been switched to the time correction watch mode, and a clock correction mode switching control means for controlling switching to the clock correction mode according to the contents of the holding means; The control section 7 and the clock correction determination circuit 8 are reset by the reset input RST.
bは時刻修正判定回路の具体的構成図で、8
0,81,82はアンド回路、83,84はイン
バータ、85,86はR−Sフリツプフロツプで
ある。電源投入後、電源電圧VCCから抵抗Rを通
してコンデンサCに充電していくためインバータ
84の入力が“0”から“1”に変化する。その
ため、インバータ84の出力RSTは“1”から
“0”に変化し、RST信号が“1”の間に、R−
Sフリツプフロツプ85,86をリセツトする。
このRST信号はaの制御部7のリセツト入力に
もなり、記憶部6のイニシヤライズや表示部3の
停電表示のスタート信号となる。 b is a specific configuration diagram of the time adjustment judgment circuit; 8
0, 81 and 82 are AND circuits, 83 and 84 are inverters, and 85 and 86 are R-S flip-flops. After the power is turned on, the input of the inverter 84 changes from "0" to "1" because the capacitor C is charged from the power supply voltage V CC through the resistor R. Therefore, the output RST of the inverter 84 changes from "1" to "0", and while the RST signal is "1", the R-
Reset the S flip-flops 85 and 86.
This RST signal also serves as a reset input for the control section 7 of a, and serves as a start signal for initializing the storage section 6 and displaying a power outage on the display section 3.
R−Sフリツプフロツプ85,86のリセツト
入力が“0”になつた後、ロータリースイツチで
時計修正モードにして、置数キーを押すと時計修
正信号ADJと置数信号がアンド回路80に入力さ
れ、その出力信号でR−Sフリツプフロツプ85
がセツトされるのでラツチ信号LATが出力され
る。この場合、R−Sフリツプフロツプ86の出
力は“0”のままであるから、インバータ83に
より“1”となり時計修正信号ADJと共にアンド
回路82に入力されるので、出力ADJ・IN信号
は“1”で時計時刻の修正が可能である。その
後、ロータリースイツチを時計モードへ切り替え
ると、前記LAT信号と時計信号CLKがアンド回
路81に入力されR−Sフリツプフロツプ86が
セツトされるので、時計修正完了信号SETが出
力され、インバータ83を経て“0”信号がアン
ド回路82の一方に入力される。従つて、以後は
時計修正信号ADJが入つても、アンド回路82で
ADJ・IN信号は“0”で時計時刻の修正はでき
ない。時計修正完了信号SETは、電源を切らな
い限りセツトされないので、通電中は2度と時計
修正モードにはならず、誤操作で時計を狂わして
しまうことがない。 After the reset inputs of the R-S flip-flops 85 and 86 become "0", turn the rotary switch to clock correction mode, press the numeric key, and the clock correction signal ADJ and numeric signal are input to the AND circuit 80. The output signal causes the R-S flip-flop 85 to
is set, so the latch signal LAT is output. In this case, since the output of the R-S flip-flop 86 remains "0", it becomes "1" by the inverter 83 and is input to the AND circuit 82 together with the clock correction signal ADJ, so the output ADJ/IN signal becomes "1". You can adjust the clock time with . Thereafter, when the rotary switch is switched to the clock mode, the LAT signal and the clock signal CLK are input to the AND circuit 81 and the R-S flip-flop 86 is set, so that the clock correction completion signal SET is output and passed through the inverter 83 to " 0” signal is input to one side of the AND circuit 82. Therefore, even if the clock adjustment signal ADJ is input from now on, the AND circuit 82
The ADJ/IN signal is “0” and the clock time cannot be adjusted. Since the clock correction completion signal SET is not set unless the power is turned off, the clock correction mode will not be entered again while the power is on, and the clock will not be thrown out of order due to erroneous operation.
第3図は、本発明の別の実施例の構成を示す。
第3図における200はマイクロコンピユータμ
Pで、まず第4図を参照してマイクロコンピユー
タμPの機能とデータ処理プロセスの概略を説明
する。 FIG. 3 shows the configuration of another embodiment of the invention.
200 in Figure 3 is the microcomputer μ
First, an overview of the functions and data processing process of the microcomputer μP will be explained with reference to FIG.
第1の機能は論理演算機能があつて、この機能
論理演算ユニツト(ALU)201、アキユーム
レータ(ACC)202、テンポラリレジスタ
(TEMP)203、プログラムステータスフラツ
グ(PS)204、キヤリフラツグ205、ゼロ
フラツグ206、ツーズコンプリメント(T/
C)207およびデータ転送を行なう4ビツトの
AバスおよびBバスにより達せられる。ALU2
01は論理演算部であつて、論理積、論理和、排
他的論理和、加算を実行することができる。T/
C207はALU201に転送されてくるデータ
の2の補数を算出するものであり、したがつて
ALU201は減算を実行することができる。 The first function is a logic operation function, which includes a logic operation unit (ALU) 201, an accumulator (ACC) 202, a temporary register (TEMP) 203, a program status flag (PS) 204, a carry flag 205, and a zero flag. 206, Two's Complement (T/
C) 207 and 4-bit A and B buses for data transfer. ALU2
01 is a logic operation unit that can perform logical product, logical sum, exclusive logical sum, and addition. T/
C207 calculates the two's complement of the data transferred to ALU201, so
ALU 201 can perform subtraction.
PS204、CF205、ZF206は1ビツトの
フリツプフロツプであり、システムの状態を記憶
するものである。PS204は命令によりセツ
ト・リセツトされるフラツグであり、CF20
5、ZF206はALU201の演算結果等に基づ
き、キヤリアの有無により、CF205が演算結
果が雰であるか否かによりZF206がそれぞれ
セツト・リセツトされ、プログラム実行における
種々の判定に使用される。 PS204, CF205, and ZF206 are 1-bit flip-flops that store the state of the system. PS204 is a flag that is set and reset by instructions, and CF20
5. Based on the calculation results of the ALU 201, the ZF 206 is set and reset depending on the presence or absence of a carrier, and the ZF 206 is set and reset depending on whether the calculation result of the CF 205 is positive or negative, and is used for various determinations in program execution.
ACC202、TEMP203は4ビツトのレジ
スタであり、ALUの入力データや演算結果等を
一時的に記憶するためのレジスタである。 ACC202 and TEMP203 are 4-bit registers, which are used to temporarily store ALU input data, calculation results, etc.
第2の機能はデータ記憶機能である。この機能
は可変メモリであるRAM209、Xレジスタ2
34、Yレジスタ235により実行される。
RAM209のアドレスはXおよびYレジスタ2
34,235により指定されて命令により、
ACC202等にRAM209の内容を転送できる
ようになつている。 The second function is a data storage function. This function is variable memory RAM209, X register 2
34, is executed by the Y register 235.
RAM209 address is X and Y register 2
By order specified by No. 34,235,
The contents of the RAM 209 can be transferred to the ACC 202 and the like.
第3の機能はプログラムの記憶実行等を行うプ
ログラム記憶および実行機能である。 The third function is a program storage and execution function that stores and executes programs.
この機能は固定メモリであるROM210、プ
ログラムカウンタPC208、サブルーチンスタ
ツクSTACK211、スタツクポインタSP212
により実行される。ROM210は8ビツトの命
令語で書き込まれたシステムの実行すべきプログ
ラムを記憶するものであり、バイナリカウンタに
より構成されているPC208はROM210の番
地指定を行なう。したがつて、PC208のカウ
ントアツプにしたがつてROM210に記憶され
たプログラムが、1ワードづつ実行されていく。
STACK211はプログラムのサブルーチンを実
行するとき、サブルーチンからもどつてくる時の
番地を指定するため、PC208の内容を格納す
るものである。SPはサブルーチンを2レベルで
実行するとき、はじめにもどつてくるべき番地を
指定するためのものである。 This function includes a fixed memory ROM210, a program counter PC208, a subroutine stack STACK211, and a stack pointer SP212.
Executed by The ROM 210 stores a program written in 8-bit instruction words to be executed by the system, and the PC 208, which is constituted by a binary counter, specifies the address of the ROM 210. Therefore, as the PC 208 counts up, the program stored in the ROM 210 is executed word by word.
The STACK 211 stores the contents of the PC 208 in order to specify the address to return from the subroutine when executing the subroutine of the program. SP is used to specify the first address to return to when executing a subroutine at two levels.
第4の機能は命令デコード機能である。 The fourth function is an instruction decoding function.
この機能はインストラクシヨンレジスタIR2
13、インストラクシヨングラマブルロジツクア
レイI−PLA214により実行される。IR21
3はROM210から転送された8ビツトの命令
語を命令が実行される間ラツチするためのレジス
タであり8ビツトである。、I−PLA214は
ROM210より転送された8ビツトの命令語を
制御信号に変換する機能を果たし、したがつてI
−PLA214により、ROM210に記憶された
8ビツトの命令語は順次各種の制御信号となり、
他の各機能部(例えば、ALU、ACC、RAM……
…など)に送られ、マイクロコンピユータμPは
ROM210に記憶されたプログラムに基づき動
作する。 This function is available in instruction register IR2.
13. Instructions are executed by the programmable logic array I-PLA 214. IR21
Reference numeral 3 denotes an 8-bit register for latching the 8-bit instruction word transferred from the ROM 210 while the instruction is executed. , I-PLA214 is
It functions to convert the 8-bit instruction word transferred from the ROM 210 into a control signal, and therefore the I
- The 8-bit instruction word stored in the ROM 210 becomes various control signals in sequence by the PLA 214,
Other functional units (e.g. ALU, ACC, RAM...
etc.), and the microcomputer μP
It operates based on the program stored in the ROM 210.
第5の機能はカウンタ機能である。カウンタ2
15は8ビツトのバイナリカウンタであり、カウ
ンタ用フリツプフロツプE/DFF216によ
り、セツト・リセツトされる。E/DFF216
によりカウンタ215がカウント可能状態にされ
ると、S1入力端子からのパルス入力をカウントア
ツプし、最上位(MSB)まで、カウントアツプ
すると、セツトフラツグSF217がセツトされ
る。したがつて、ROM210からの命令によ
り、E/DFF216をセツト・リセツトし、SF
217がセツトされているか否かをみることによ
りS1入力からのパルス数をカウントすることがで
きる。また、カウンタ215の内容を上位4ビツ
トと下位4ビツトに分けて、直接ACC202な
どに転送することもできる。 The fifth function is a counter function. counter 2
15 is an 8-bit binary counter, which is set and reset by a counter flip-flop E/DFF 216. E/DFF216
When the counter 215 is enabled to count, it counts up the pulse input from the S1 input terminal, and when it counts up to the most significant bit (MSB), the set flag SF217 is set. Therefore, the E/DFF 216 is set and reset by the command from the ROM 210, and the SF
By checking whether 217 is set, the number of pulses from the S1 input can be counted. Furthermore, the contents of the counter 215 can be divided into the upper 4 bits and the lower 4 bits and transferred directly to the ACC 202 or the like.
第6は入力出力機能である。 The sixth is an input/output function.
入力端子はA0〜A3の4ビツト並列入力端子
と、B0〜B3の4ビツト並列入力端子がある。 The input terminals include 4-bit parallel input terminals A0 to A3 and 4-bit parallel input terminals B0 to B3 .
このA0〜A3、B0〜B3の2組の並列入力はマル
チプレクサMPX218によりBバス219を介
して選択的に、ACC202等に転送することが
できる。 These two sets of parallel inputs A 0 to A 3 and B 0 to B 3 can be selectively transferred to the ACC 202 or the like via the B bus 219 by the multiplexer MPX 218 .
このA0〜A3、B0〜B3入力はデータの入力用と
して用いられる。他の入力端子として、S〓、S1
入力端子がある。この入力端子はマイクロコンピ
ユータμPのクロツクとは無関係にパルス信号を
カウントしたり、割り込み動作をさせたりするの
に便利な入力端子である。S〓入力は比較器C2
20により、入力がハイかローかを判別される。 The A 0 to A 3 and B 0 to B 3 inputs are used for inputting data. As other input terminals, S〓, S 1
There is an input terminal. This input terminal is convenient for counting pulse signals and performing interrupt operations independently of the clock of the microcomputer μP. S = input is comparator C2
20, it is determined whether the input is high or low.
S1入力はゲートG221により、カウンタ21
5に入力されたり、直接、同期化回路S222を
経て、SF217に入力され、比較器C223に
より比較されて、S〓入力と同じように使用する
ことができる端子である。S1入力カウンタ215
に入れるか否かはCS端子の入力により選択でき
る。 The S1 input is connected to the counter 21 by gate G221.
It is a terminal that can be input to SF217 via synchronization circuit S222, and compared by comparator C223, and can be used in the same way as the S〓 input. S 1 input counter 215
It can be selected by inputting the CS pin.
RST入力端子は最初の電源投入時などに、マ
イクロコンピユータμPの電源が確立されるま
で、ROM210に記憶されたプログラムのスタ
ート(0番地)に停止させ、誤動作を防止するな
どの目的のために使うことができる。このとき出
力端子は全てL0になる。OSC入力端子は内蔵の
発振器224の発振周波数を決定するために、コ
ンデンサと抵抗を接続する端子である。この発振
器の発振周波数をクロツクとしてマイクロコンピ
ユータμPの動作が実行され、このマイクロコン
ピユータμPの動作速度(処理速度)を決定して
いる。また、VSS,VDDは電源端子である。 The RST input terminal is used for the purpose of preventing malfunction by stopping the program stored in the ROM 210 at the start (address 0) until the power to the microcomputer μP is established, such as when the power is turned on for the first time. be able to. At this time, all output terminals become L 0 . The OSC input terminal is a terminal to which a capacitor and a resistor are connected in order to determine the oscillation frequency of the built-in oscillator 224. The operation of the microcomputer μP is executed using the oscillation frequency of this oscillator as a clock, and the operating speed (processing speed) of the microcomputer μP is determined. Further, V SS and V DD are power supply terminals.
次に、出力端子は3種類を有している。 Next, there are three types of output terminals.
第1に出力端子はD0〜D7よりなるD出力端子
である。RAM209あるいはACC202のデー
タとPS204とがラツチ225によりラツチさ
れてプログラマブルロジツクアレイPLA226
に5ビツトデータとして転送されると、そのデー
タ(5ビツト)はD0〜D7の8本の出力端子に並
列8ビツト出力として出力される。したがつて、
このD0〜D7の出力端子は7セグメント表示管の
表示用に適している。 The first output terminal is a D output terminal consisting of D0 to D7 . The data in RAM 209 or ACC 202 and PS 204 are latched by latch 225 to create programmable logic array PLA 226.
When the data is transferred as 5-bit data, the data (5 bits) is output as parallel 8-bit output to eight output terminals D0 to D7 . Therefore,
These output terminals D 0 to D 7 are suitable for display on a 7-segment display tube.
第2の出力端子はE0〜E3より成るE出力端子
でACC202あるいはROM210より、4ビツ
トのデータを並列に出力することができる。22
7はラツチである。 The second output terminal is an E output terminal consisting of E 0 to E 3 and can output 4-bit data in parallel from the ACC 202 or ROM 210. 22
7 is a latch.
第3の出力はC0〜C11より成るC出力端子であ
り、このC出力は各々独立にセツトまたはリセツ
トすることができる。すなわち、Yレジスタ23
5によつてどのC出力をセツトするかを指定し、
出力命令を出すと、デコーダ228により相当す
るC出力端子はラツチ229により、ラツチされ
て出力される。したがつてこのC出力端子で種々
の負荷を制御できる。 The third output is a C output terminal consisting of C 0 -C 11 , each of which can be independently set or reset. That is, Y register 23
5 specifies which C output to set,
When an output command is issued, the corresponding C output terminal is latched by the latch 229 by the decoder 228 and output. Therefore, various loads can be controlled with this C output terminal.
なお、230,231,232はマルチプレク
サであり、233は比較器である。 Note that 230, 231, and 232 are multiplexers, and 233 is a comparator.
以上第4図に示したマイクロコンピユータμP
の機能とデータ処理プロセスについての概略を説
明したが、本発明はこのようなマイクロコンピユ
ータを用いた実施例を示している。 The microcomputer μP shown in Figure 4 above
Although the functions and data processing processes have been outlined, the present invention shows an embodiment using such a microcomputer.
さらに第3図において、具体的回路構成の一例
を示す。回路において、マイクロコンピユータμ
P200の入力端子A0,A1,A2,A3は出力端子
C0,C1,C2とキーマトリクスを形成している。
置数キーの10時の桁、1時の桁、10分の桁、1分
の桁はそれぞれ38,37,36,35に対応
し、クリヤキーは28に対応している。またロー
タリースイツチは2回路構成で、CLK・ADJ、
CLK、AON、AOFF、BON、BOFFがそれぞれ3
1,34,30,33,29,32の接点に対応
し、マトリクス上の交点に接続されている。ダイ
オード39,40,41,42,43,44,4
5は前述各接点が2個以上接触した場合、各スキ
ヤン出力での誤入力がないように逆電流防止に挿
入されている。 Further, in FIG. 3, an example of a specific circuit configuration is shown. In the circuit, the microcomputer μ
Input terminals A 0 , A 1 , A 2 , A 3 of P200 are output terminals
C 0 , C 1 , and C 2 form a key matrix.
The 10 o'clock digit, 1 o'clock digit, 10 minute digit, and 1 minute digit of the numeric keys correspond to 38, 37, 36, and 35, respectively, and the clear key corresponds to 28. In addition, the rotary switch has two circuits, CLK, ADJ,
CLK, A ON , A OFF , B ON , B OFF are each 3
It corresponds to contacts 1, 34, 30, 33, 29, and 32, and is connected to the intersection on the matrix. Diode 39, 40, 41, 42, 43, 44, 4
5 is inserted to prevent reverse current so that there is no erroneous input at each scan output when two or more of the aforementioned contacts come into contact.
出力端子C0,C1,C2,C3は順次Hi,L0を繰り
返すスキヤン出力で、表示素子である螢光表示管
3のグリツドG1,G2,G3,G4をダイナミツクに
駆動している。 Output terminals C 0 , C 1 , C 2 , and C 3 are scan outputs that sequentially repeat H i and L 0 , and dynamically output grids G 1 , G 2 , G 3 , and G 4 of the fluorescent display tube 3, which is a display element. is driven by.
D0,D1,D2,D3,D4,D5,D6,D7の8個の出
力端子は、螢光表示管3の7セグメントのアノー
ドにD0からD6までの7個が、コロンのアノード
にD7が接続されている。よつてD0からD7までの
出力とC1,C1,C2,C3のスキヤン出力によつて
時刻表示される。 Eight output terminals D 0 , D 1 , D 2 , D 3 , D 4 , D 5 , D 6 , D 7 are connected to the 7 segment anodes of the fluorescent display tube 3 from D 0 to D 6 . D 7 is connected to the anode of the colon. Therefore, the time is displayed by the outputs from D 0 to D 7 and the scan outputs from C 1 , C 1 , C 2 , and C 3 .
E0,E1の各出力は、出力コンセントA,Bの
オン・オフ制御用であり、それぞれベース抵抗2
0,25を介してトランジスタ22,27のベー
スに接続されている。抵抗21,26は前記トラ
ンジスタ22,27のスイツチング特性を良好に
するためのものである。また、前記トランジスタ
のコレクタには、各々リレー19,24が接続さ
れ、各接点はAコンセント、Bコンセントがそれ
ぞれ接続されている。ダイオード18,23は逆
起電力吸収用である。 Each output of E 0 and E 1 is for on/off control of output outlets A and B, and each has a base resistance of 2
0 and 25 to the bases of transistors 22 and 27. The resistors 21 and 26 are for improving the switching characteristics of the transistors 22 and 27. Further, relays 19 and 24 are connected to the collectors of the transistors, respectively, and each contact is connected to an A outlet and a B outlet, respectively. The diodes 18 and 23 are for absorbing back electromotive force.
基準パルスは、商用電源の交流をトランジスタ
12を介してS0に取り込んでいる。抵抗9はベー
ス電流制限用、ダイオード10は前記トランジス
タ12の逆ベース・エミツタ電圧制限用であり、
抵抗11は前記トランジスタのコレクタに接続さ
れている。時計計数部、時刻記憶部はマイクロコ
ンピユータμP200のRAM内でプログラム的
に構成されている。 The reference pulse is taken in from the AC of the commercial power supply via the transistor 12 to S 0 . The resistor 9 is for limiting the base current, the diode 10 is for limiting the reverse base-emitter voltage of the transistor 12,
A resistor 11 is connected to the collector of the transistor. The clock counting section and time storage section are configured programmatically within the RAM of the microcomputer μP200.
また、マイクロコンピユータμP200の各命
令動作はコンデンサ16と抵抗17により構成さ
れた発振器により基本周波数が決まり、コンデン
サ13、抵抗15、ダイオード14によつて電源
投入時のリセツト回路が構成されている。 Further, the fundamental frequency of each command operation of the microcomputer μP200 is determined by an oscillator constituted by a capacitor 16 and a resistor 17, and a reset circuit when the power is turned on is constituted by a capacitor 13, a resistor 15, and a diode 14.
本発明の動作としては、まず電源投入後ロータ
リースイツチによつて時計修正モードにすると接
点34が閉じて、出力端子C1の信号が入力端子
A0に入り時計修正モードとなるので、置数キー
38,37,36,35を押すと、出力端子C0
に対して入力端子A0,A1,A2,A3に入力され、
時計時刻が設定されると同時に、表示部3にも表
示される。次にロータリースイツチを時計モード
にするとマイクロコンピユータμP200は時計
時刻を記憶すると共に、時計時刻修正完了したこ
とを記憶する。従つて以後は、ロータリースイツ
チを時計修正モードに切り替えても、マイクロコ
ンピユータμP200は無効入力と判断して、置
数キーの入力を受けつけないので時計が狂つてし
まうことはないわけである。 As for the operation of the present invention, first, when the power is turned on and the rotary switch is set to clock correction mode, the contact 34 is closed and the signal from the output terminal C1 is transferred to the input terminal.
Since it enters A 0 and enters clock correction mode, press numeric keys 38, 37, 36, and 35 to output terminal C 0.
is input to input terminals A 0 , A 1 , A 2 , A 3 ,
At the same time as the clock time is set, it is also displayed on the display unit 3. Next, when the rotary switch is set to the clock mode, the microcomputer μP200 stores the clock time and also stores that the clock time has been corrected. Therefore, from now on, even if the rotary switch is switched to the clock correction mode, the microcomputer μP200 will judge the input to be invalid and will not accept the input from the numeric keys, so the clock will not go out of order.
このキー入力の判定を示したものが、第5図の
フローチヤートaである。bはマイクロコンピユ
ータμP200の可変メモリRAMであり、10時
の桁、1時の桁、10分の桁、1分の桁用データ
が、フラツグSET、LATなどの記憶用領域が決
められており、電源投入時はプログラムによつて
イニシヤライズされ、データ領域はクリアされて
いる。フローチヤートaにおいて、入力判定に入
ると、まずADJ入力中か、すなわちロータリース
イツチが時計修正モードになつているかを判定す
る。ここで、ADJ入力中であれば次にフラツグ
SETが“1”かどうかを判定するが、電源投入
時のイニシヤライズによつてクリアされているの
で、次にNUM入力、すなわち置数キー入力であ
れば置数フラツグLATをセツトして置数入力に
応じて時刻を設定しRAMに記憶する。そうして
ロータリースイツチを時計モードにすると、今度
は入力判定でADJ入力でなく、CLK入力とな
り、フラツグLATが“1”となつているので、
次にフラツグ時計設定完了フラツグSETをセツ
トする。bの入力判定のルーチンには表示3をダ
イナミツク駆動する周期で毎回通過するが、再び
時計修正モードに切り替えても時計設定完了フラ
ツグSETがあるので、すべて無視され、置数キ
ーの入力も受けつけない。フラツグSETは電源
を切らない限りリセツトないので、通電中は誤つ
て時計を狂わしてしまうことは起こらない。 Flowchart a in FIG. 5 shows this key input determination. b is the variable memory RAM of the microcomputer μP200, in which data for the 10 o'clock digit, 1 o'clock digit, 10 minute digit, and 1 minute digit are stored, and storage areas such as flag SET and LAT are determined. When the power is turned on, it is initialized by the program and the data area is cleared. In flowchart a, when input determination is entered, it is first determined whether an ADJ input is being performed, that is, whether the rotary switch is in the clock correction mode. Here, if ADJ input is in progress, the next flag is
It is determined whether SET is "1", but since it is cleared by initialization when the power is turned on, next if NUM is input, that is, numeric key input, the numeric flag LAT is set and numeric input is performed. Set the time accordingly and store it in RAM. Then, when the rotary switch is set to clock mode, the input judgment is not ADJ input but CLK input, and the flag LAT is "1", so
Next, set the flag clock setting completion flag SET. The input judgment routine in b is passed every time the display 3 is dynamically driven, but even if you switch to the clock correction mode again, the clock setting completion flag SET is still there, so it is ignored entirely and does not accept input from the numeric keys. . Since the flag SET will not be reset unless the power is turned off, there is no chance of accidentally setting the clock incorrectly while the power is on.
以上詳細に説明したように、本発明のタイマー
は、電源投入後時計修正モードにして時計時刻を
設定して時計モードへ切り替えた時点で、時計時
刻修正完了とし、以後通電中は時計修正モードに
はならないようにして、他のタイマー設定時など
に誤つて時計時刻をずらしてしまうことを防ぐも
のである。電子式のデイジタル時計では時刻が狂
うことはまずないし、時刻の狂うのはむしろ人為
的なミスで時刻を狂わすか、停電しか考えられな
い。さらに、基本的な時計が狂うと、タイマーの
設定時刻そのものが不確定となり思いもよらぬ時
に電源が入つてしまう危険性も大きい。このよう
な意味からも、本発明のタイマーは極めて有効で
ある。 As explained in detail above, the timer of the present invention is set to clock correction mode after power is turned on, sets the clock time, and switches to clock mode. This prevents the clock time from being accidentally shifted when setting other timers. With electronic digital clocks, the time is unlikely to go out of order, and the only possibilities for the time to go wrong are human error or a power outage. Furthermore, if the basic clock goes out of order, the set time of the timer itself becomes uncertain, and there is a great risk that the power will turn on at an unexpected time. In this sense as well, the timer of the present invention is extremely effective.
第1図は従来のタイマーの構成図、第2図は本
発明のタイマーの構成を示す一実施例、第3図は
本発明のタイマーの構成を示す別の一実施例、第
4図はマイクロコンピユータの構成図、第5図は
入力判定の流れを示すフローチヤートとRAMで
ある。
1……タイマー外体、2……置数キー及びクリ
アキー、3……時刻表示部、4……ロータリース
イツチ、5……操作部、6……記憶部、7……制
御部、8……時刻修正判定回路、μP200……
マイクロコンピユータ、201……ALU、20
2……ACC、209……RAM、210……
ROM、213……IR、234……Xレジスタ、
235……Yレジスタ。
FIG. 1 is a configuration diagram of a conventional timer, FIG. 2 is an embodiment showing the configuration of a timer according to the present invention, FIG. 3 is another embodiment showing the configuration of a timer according to the present invention, and FIG. 4 is a micro The configuration diagram of the computer, FIG. 5, is a flowchart showing the flow of input determination and RAM. DESCRIPTION OF SYMBOLS 1...Timer external body, 2...Number key and clear key, 3...Time display section, 4...Rotary switch, 5...Operation section, 6...Storage section, 7...Control section, 8... ...Time correction judgment circuit, μP200...
Microcomputer, 201...ALU, 20
2...ACC, 209...RAM, 210...
ROM, 213...IR, 234...X register,
235...Y register.
Claims (1)
イマーのモード決定用の切替手段およびクリヤキ
ーを有する操作部と、少なくとも4桁の数字を表
示する時刻表示部と、前記操作部から入力された
内容を記憶する記憶部と、基準パルス信号を計数
して計数内容を前記時刻表示部に表示したり、計
数内容と前記記憶部の記憶内容を比較して出力端
子を制御する制御部とからなるタイマーにおい
て、前記切替手段の時計修正モードで時刻設定
後、時計モードへ切り替えたことを保持する保持
手段と、前記保持手段の内容により時計修正モー
ドへの切り替えを制御する時計修正モード切替制
御手段とを備えた時刻修正判定回路を設けたこと
を特徴とするタイマー。1. An operating section having a number key for setting the time, a switching means for clock/clock correction/timer mode determination, and a clear key, a time display section displaying at least a four-digit number, and a time display section that displays a number of at least four digits, It consists of a storage section that stores contents, and a control section that counts reference pulse signals, displays the counted contents on the time display section, compares the counted contents with the stored contents of the storage section, and controls the output terminal. In the timer, a holding means holds that the switching means has switched to the clock mode after setting the time in the watch correction mode, and a watch correction mode switching control means controls switching to the watch correction mode according to the contents of the holding means. A timer characterized in that a time adjustment determination circuit is provided.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP16220778A JPS5590893A (en) | 1978-12-29 | 1978-12-29 | Timer |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP16220778A JPS5590893A (en) | 1978-12-29 | 1978-12-29 | Timer |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS5590893A JPS5590893A (en) | 1980-07-09 |
| JPS6129476B2 true JPS6129476B2 (en) | 1986-07-07 |
Family
ID=15749999
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP16220778A Granted JPS5590893A (en) | 1978-12-29 | 1978-12-29 | Timer |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS5590893A (en) |
-
1978
- 1978-12-29 JP JP16220778A patent/JPS5590893A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS5590893A (en) | 1980-07-09 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4293927A (en) | Power consumption control system for electronic digital data processing devices | |
| JPS59131191A (en) | Electronic timepiece | |
| EP0141655B1 (en) | Electronic timeswitch | |
| US4751668A (en) | Portable electronic memorandum device | |
| US4598383A (en) | Combination of a data processor with a switch means | |
| US5596554A (en) | Set operation in a timepiece having an electrooptical display | |
| JPS6129476B2 (en) | ||
| JPS5814433A (en) | Device for preventing erroenous operation of touch switch | |
| JPS6122309Y2 (en) | ||
| JPS581757B2 (en) | program timer | |
| JP2701264B2 (en) | Numeric setting device | |
| JPS5926428Y2 (en) | electronic calculator | |
| JPS581756B2 (en) | program timer | |
| GB2064835A (en) | Power consumption control system for electronic digital data processing devices | |
| JPS5920995B2 (en) | Keisankitsukitokei | |
| JPS5912154B2 (en) | digital display electronic clock | |
| JPS5920996B2 (en) | Keisankitsukitokei | |
| JPS5828608B2 (en) | arithmetic processing unit | |
| KR880001576B1 (en) | Automatic power breaking selecting circuit | |
| US4491938A (en) | Low voltage RAM cell | |
| JPS6236560B2 (en) | ||
| USRE34422E (en) | Portable electronic memorandum device | |
| US4224789A (en) | Electronic timepiece | |
| JPS58148994A (en) | Electronic timepiece | |
| Waldvogel | A one chip microcomputer for watch applications |