Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0334097B2 - - Google Patents
[go: Go Back, main page]

JPH0334097B2 - - Google Patents

Info

Publication number
JPH0334097B2
JPH0334097B2 JP56198795A JP19879581A JPH0334097B2 JP H0334097 B2 JPH0334097 B2 JP H0334097B2 JP 56198795 A JP56198795 A JP 56198795A JP 19879581 A JP19879581 A JP 19879581A JP H0334097 B2 JPH0334097 B2 JP H0334097B2
Authority
JP
Japan
Prior art keywords
data
circuit
initial state
address
output
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 - Lifetime
Application number
JP56198795A
Other languages
Japanese (ja)
Other versions
JPS5899822A (en
Inventor
Morio Morishige
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 JP56198795A priority Critical patent/JPS5899822A/en
Publication of JPS5899822A publication Critical patent/JPS5899822A/en
Publication of JPH0334097B2 publication Critical patent/JPH0334097B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/30Means for acting in the event of power-supply failure or interruption, e.g. power-supply fluctuations

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)
  • Direct Current Feeding And Distribution (AREA)

Description

【発明の詳細な説明】 この発明は、電源投入時に電子回路を初期状態
に設定する初期状態設定装置に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to an initial state setting device that sets an electronic circuit to an initial state when power is turned on.

従来、電子時計においては、電池を収納したと
きの電源投入時にRAM(ランダムアクセスメモ
リ)や表示内容のクリア等のオールクリア処理を
実行するために、CR回路による自動AC回路を備
え、このCR回路によつて電源電圧の立ち上がり、
即ち、電池が装着されことを検出し、オールクリ
ア処理を行つて電子回路を初期状態に設定してい
る。
Conventionally, electronic watches have been equipped with an automatic AC circuit using a CR circuit in order to perform all-clear processing such as clearing RAM (random access memory) and display contents when the power is turned on when the battery is stored. The power supply voltage rises due to
That is, it detects that the battery is installed, performs all-clear processing, and sets the electronic circuit to its initial state.

しかしながら、CR回路による自動AC回路は、
電源電圧の変動により誤動作を起こすことがあ
り、確実性に劣るといつた難点がある。即ち、
CR回路のCの容量が小さいと装着されている電
池が外部からの衝撃等によつて瞬時点に電極端子
から外れたような場合であつても、電池交換時と
同様に電池が装着されたことを検出してしまい電
子回路に対してオールクリア処理を行つてしまう
欠点がある。通常、電子回路は、このような瞬時
的な電源の遮断の影響を受けないように、例えば
電子回路に並列に小さなコンデンサを配置する等
しており、このような小さなコンデンサを設ける
ことによつて電池が瞬時的に外れても電子回路の
内部データが何ら損なわれていないにもかかわら
ず自動AC回路が自動的に働いてオールクリア処
理が実行されてしまう難点がある。そこで、確実
性を持たせるためにCR回路のCの容量を大きく
すると、コンデンサをLSI(大規模集積回路)に
組込むことができず、LSIに対して外付けする必
要がある。
However, automatic AC circuits using CR circuits
It has the disadvantage that it may malfunction due to fluctuations in the power supply voltage, and is less reliable. That is,
If the capacity of C in the CR circuit is small, even if the installed battery comes off the electrode terminal at a momentary point due to an external impact, etc., the battery will not be installed in the same way as when replacing the battery. This has the disadvantage that it detects this and performs all-clear processing on the electronic circuit. Normally, in order to prevent electronic circuits from being affected by such instantaneous power interruptions, for example, a small capacitor is placed in parallel with the electronic circuit, and by providing such a small capacitor, The problem is that even if the battery is momentarily disconnected, the automatic AC circuit will automatically operate and perform an all-clear process even though the internal data of the electronic circuit is not damaged in any way. Therefore, if the capacitance of C in the CR circuit is increased to ensure reliability, the capacitor cannot be incorporated into the LSI (Large Scale Integrated Circuit) and must be externally attached to the LSI.

この発明は上述した点を解消するためになされ
たもので、その目的とするところは、電源電圧の
変動に対しても確実に動作すると共に、外付部品
を不要とした初期状態設定装置を提供することに
ある。
This invention was made to solve the above-mentioned problems, and its purpose is to provide an initial state setting device that operates reliably even with fluctuations in power supply voltage and does not require external components. It's about doing.

以下、この発明を図面に示す一実施例にもとづ
いて具体的に説明する。なお、本実施例は翻訳機
能付電子時計に適用したもので、この電子時計は
マイクロプログラムにしたがつて計時動作を実行
するものである。図中1は基準クロツク信号を発
振出力する発振回路であり、前記基準クロツク信
号は分周回路2に入力されて分周される。この分
周回路2はその所定分周段から1/16Hzおよび1/32
Hzの信号を出力するもので、1/16Hzの信号はSR
型フリツプフロツプ3のセツト入力端子Sに与え
られる。したがつて、フリツプフロツプ3は1/16
秒毎にセツトされるもので、そのセツト出力Qは
アンドゲート4を介してアドレス部5に入力さ
れ、アドレス部5からアドレスデータを出力させ
る。このアドレスデータのROM(リードオンリ
メモリ)6に対して出力され、ROM6のアドレ
スを指定する。ROM6にはこの電子時計のすべ
ての動作を制御するマイクロプログラムおよび4
種類の数値データ(たとえば、4ビツト構成の2
進データ)が固定的に記憶されており、アドレス
部5かりのアドレス指定にしたがつてアドレス
AD、オペレーシヨンコードOP、データDA、ネ
クストアドレスデータNAを並列的に出力する。
アドレスADはRAM7に対して出力され、RAM
7のアドレスを指定する。このRAM7は各種の
レジスタによつて構成され、表示および演算レジ
スタのほか、計時データ記憶用レジスタ、4種類
の数値データ(たとえば、4ビツト構成の2進デ
ータ)を記憶するN1〜N4レジスタ、フラグ記憶
領域F1,F2等を有している。
Hereinafter, the present invention will be specifically explained based on an embodiment shown in the drawings. Note that this embodiment is applied to an electronic watch with a translation function, and this electronic watch executes timekeeping operations according to a microprogram. In the figure, reference numeral 1 denotes an oscillation circuit that oscillates and outputs a reference clock signal, and the reference clock signal is input to a frequency dividing circuit 2 and frequency-divided. This frequency dividing circuit 2 outputs 1/16Hz and 1/32Hz from its predetermined frequency dividing stage.
It outputs a Hz signal, and the 1/16Hz signal is SR.
It is applied to the set input terminal S of the type flip-flop 3. Therefore, flip-flop 3 is 1/16
It is set every second, and its set output Q is input to the address section 5 via the AND gate 4, causing the address section 5 to output address data. This address data is output to the ROM (read only memory) 6 and specifies the address of the ROM 6. ROM 6 contains microprograms and 4 that control all operations of this electronic clock.
type of numerical data (for example, 2 bits of 4-bit data)
(digital data) is fixedly stored, and the address is changed according to the address specification in the address field.
Outputs AD, operation code OP, data DA, and next address data NA in parallel.
Address AD is output to RAM7, and RAM
Specify the address of 7. This RAM 7 is composed of various registers, including display and calculation registers, a clock data storage register, N1 to N4 registers that store four types of numerical data (for example, 4-bit binary data), and flags. It has storage areas F1, F2, etc.

また、オペレーシヨンコードOPは、各種の命
令データであり、オペレーシヨンデコーダ8に与
えられてデコードされ、RAM7に対するリー
ド/ライト信号R/W、演算指令C、表示指令
d、入力指令e等の各種制御信号をオペレーシヨ
ンデコーダ8から作成出力させる。データDA
は、RAM7及び演算部9に対して与えられ、ま
たネクストアドレスNAはアドレス部5に与えら
れ、アドレス部5からアドレスを出力させて現在
実行中の処理に続いて次の処理を指定する。
In addition, the operation code OP is various command data, which is given to the operation decoder 8 and decoded, and is sent to the RAM 7 as a read/write signal R/W, an operation command C, a display command d, an input command e, etc. A control signal is generated and output from the operation decoder 8. Data DA
is given to the RAM 7 and the arithmetic section 9, and the next address NA is given to the address section 5, which causes the address section 5 to output an address and designate the next process following the process currently being executed.

RAM7はオペレーシヨンデコーダ8からのリ
ード/ライト信号R/Wにしたがつて読出しある
いは書込み動作を実行する。そして、RAM7か
ら読出されたデータは、演算部9に与えられ、所
定の演算に施される。
The RAM 7 executes read or write operations in accordance with the read/write signal R/W from the operation decoder 8. The data read from the RAM 7 is then given to the arithmetic unit 9 and subjected to a predetermined arithmetic operation.

演算部9は演算指令Cにしたがつて計時演算、
判断演算などを実行する。上記計時演算はアドレ
ス部5にアンドゲート4の出力(すなわち、1/16
秒周期の信号)が与えられる毎に実行され、
RAM6から入力される前回の計時データに+1
秒の演算を施して新たな計時データを得るもの
で、新たな計時データはRAM7の計時データ記
憶用レジスタに転送されると共に、表示部10に
送られてデジタル表示される。また、上記判断演
算はRAM7のN1〜N4レジスタに記憶されてい
る数値データとROM6に固定的に記憶されてい
る数値データA〜Dとが一致するか否かなどの判
断を実行するもので、その演算に伴つて判断結果
データaおよびキヤリー信号bを出力してアドレ
ス部5に与え、アドレス部5からその内容に応じ
たアドレスデータを出力させる。更に、演算部9
には入力部11からキー入力データが与えられ
る。この入力部11には時刻修正キーなどのよう
に時計機能に関連するキーのほか、アルフアベツ
トキーなどのように翻訳機能に関連するキーが備
えられている。
The calculation unit 9 performs a time measurement calculation according to the calculation command C.
Execute judgment calculations, etc. The above time measurement operation is performed in the address section 5 by the output of the AND gate 4 (i.e., 1/16
is executed every time a second period signal) is given,
+1 to the previous clock data input from RAM6
New timekeeping data is obtained by calculating seconds, and the new timekeeping data is transferred to the timekeeping data storage register of the RAM 7, and is also sent to the display unit 10 for digital display. In addition, the above judgment operation is to judge whether or not the numerical data stored in the N1 to N4 registers of the RAM 7 and the numerical data A to D fixedly stored in the ROM 6 match. Along with the calculation, judgment result data a and carry signal b are outputted and applied to the address section 5, which causes the address section 5 to output address data according to the contents. Furthermore, the calculation section 9
Key input data is given from the input section 11. The input unit 11 is provided with keys related to the clock function, such as a time adjustment key, as well as keys related to the translation function, such as an alphanumeric key.

また、オペレーシヨンデコーダ8はSR型フリ
ツプフロツプ3のリセツト入力端子Rにリセツト
信号を与え、また、アンドゲート4にゲート制御
信号としてセツト出力Qを入力するSR型フリツ
プフロツプ12のセツト入力端子Sにオアゲート
13を介してセツト信号を与え、更に、SR型フ
リツプフロツプ12のリセツト入力端子Rおよび
タイマー回路14のリセツト入力端子Rに夫々リ
セツト信号を与える。
Further, the operation decoder 8 applies a reset signal to the reset input terminal R of the SR type flip-flop 3, and also applies an OR gate 13 to the set input terminal S of the SR type flip-flop 12, which inputs the set output Q to the AND gate 4 as a gate control signal. Further, a reset signal is applied to the reset input terminal R of the SR type flip-flop 12 and the reset input terminal R of the timer circuit 14, respectively.

タイマー回路14は、たとえば、7進カウンタ
によつて構成されていて、分周回路2から入力さ
れる1/22Hzの信号を計数し、そのキヤリー信号オ
アゲート13を介してSR型フリツプフロツプ1
2のセツト入力端子Sに与える。
The timer circuit 14 is composed of, for example, a hexadecimal counter, and counts the 1/22 Hz signal inputted from the frequency dividing circuit 2, and outputs the SR type flip-flop 1 via the carry signal OR gate 13.
2 set input terminal S.

次に、上記実施例の動作を第2図に示すフロー
チヤートを参照して説明する。電池を装着して電
源を投入すると、分周回路2は分周動作を開始
し、電源投入時から1/16Hzの信号を出力し、フリ
ツプフロツプ3をセツトさせる。このフリツプフ
ロツプ3のセツト出力Qがアンドゲート4を介し
てアドレス部5に与えられると、ROM6はアド
レス部5から出力されるアドレスデータにしたが
つて第2図のフローを実行する。
Next, the operation of the above embodiment will be explained with reference to the flowchart shown in FIG. When the battery is installed and the power is turned on, the frequency divider circuit 2 starts frequency dividing operation, outputs a 1/16 Hz signal from the time the power is turned on, and sets the flip-flop 3. When the set output Q of the flip-flop 3 is applied to the address section 5 via the AND gate 4, the ROM 6 executes the flow shown in FIG. 2 in accordance with the address data output from the address section 5.

すなわち、まず、ステツプS1の処理を実行し、
フリツプフロツプ3をリセツトする。続いて、ス
テツプS2〜S5を順次実行し、RAM7のN1〜N4
レジスタに記憶されている数値データと、ROM
6に固定的に記憶されている数値データA〜Dと
を順次読出して演算部9に送り、これらが一致す
るか否か、すなわち、ステツプS2ではN1レジス
タのデータとデータA、ステツプS3ではN2レジ
スタのデータとデータB、ステツプS4ではN3
ジスタのデータとデータC、ステツプS5ではN4
レジスタのデータとデータDとが一致するか否か
の判断が実行される。今の場合(電源投入時)に
は、N1〜N4レジスタには不確定の数値が記憶さ
れていて全てのステツプS2〜S5で一致判断され
る確実は、極めて少なく略ゼロに等しい。すなわ
ち、N1〜N4レジスタのデータおよびデータA〜
Dは、4ビツト構成の「0〜15(10進数)」のデー
タで、各ステツプS2〜S5において一致判断され
る確率は、1/16であるから全てのステツプS2〜
S5で夫々一致判断される確率は、(1/16)4となり、
略ゼロに等しい。したがつて、電源投入時には、
ステツプS2〜S5で一致せず(NO)と判断されて
ステツプS6に進む。このステツプS6からステツ
プS9では、N1〜N4レジスタにROM6の対応す
る固定データA〜Dをセツトする処理を実行す
る。すなわち、ステツプS6ではN1レジスタにデ
ータA、ステツプS7ではN2レジスタにデータB、
ステツプS8ではN3レジスタにデータC、ステツ
プS9ではN4レジスタにデータDを夫々セツトす
る。次いで、ステツプS10に進み、オールクリア
処理を実行し、RAM7の所定レジスタ、表示部
10の表示レジスタのクリア等を行なう。すなわ
ち、電子回路を初期状態に設定する。
That is, first, execute the process of step S1,
Reset flip-flop 3. Next, steps S2 to S5 are executed sequentially, and N1 to N4 of RAM7 are
Numerical data stored in registers and ROM
The numerical data A to D fixedly stored in the register 6 are sequentially read out and sent to the arithmetic unit 9, and it is checked whether they match or not. 2 register data and data B, N in step S4 3 register data and data C, N4 in step S5
A determination is made as to whether the data in the register and data D match. In the present case (when the power is turned on), uncertain values are stored in registers N1 to N4, and the probability of a match being determined in all steps S2 to S5 is extremely small and approximately equal to zero. That is, the data of registers N1 to N4 and data A to
D is 4-bit data of "0 to 15 (decimal number)", and the probability of a match being determined in each step S2 to S5 is 1/16, so all steps S2 to S5 are
The probability of each being judged as a match in S5 is (1/16) 4 ,
Almost equal to zero. Therefore, when the power is turned on,
It is determined that there is no match (NO) in steps S2 to S5, and the process proceeds to step S6. In steps S6 to S9, processing is executed to set corresponding fixed data A to D in the ROM 6 in registers N1 to N4. That is, in step S6, data A is stored in the N1 register, and in step S7, data B is stored in the N2 register.
In step S8, data C is set in the N3 register, and in step S9, data D is set in the N4 register. Next, the process proceeds to step S10, where an all clear process is executed to clear a predetermined register of the RAM 7, a display register of the display unit 10, etc. That is, the electronic circuit is set to an initial state.

続いて、ステツプS11に進み、RAM7のフラ
グ記憶領域F2の内容が「0」か「1」かの判断
を実行する。今の場合、フラグ記憶領域F2の内
容は「0」であるから次のステツプS12に進む。
このステツプS12ではフラグ記憶領域F1の内容が
「0」か「1」かの判断を実行する。今の場合、
フラグ記憶領域F1の内容は「0」であるから
HALT(待機)状態に移る。
Next, the process advances to step S11, where it is determined whether the contents of the flag storage area F2 of the RAM 7 are "0" or "1". In this case, the content of the flag storage area F2 is "0", so the process advances to the next step S12.
In this step S12, it is determined whether the contents of the flag storage area F1 are "0" or "1". In this case,
Since the content of flag storage area F1 is "0"
Move to HALT (standby) state.

このHALT状態において、分周回路2から次
の1/16Hzの信号が出力されると、フリツプフロツ
プ3がセツトされ、そのセツト出力Qにしたがつ
てアドレス部5からアドレスデータが出力され
る。これによつて、再びステツプS1〜S5が実行
される。今の場合、N1〜N4レジスタにはデータ
A〜Dが記憶されているので、各ステツプS2〜
S5では夫々一致(YES)と判断されて次のステ
ツプS13に進む。このステツプS13は、計時処理
を実行するためのフローであり、計時動作、キー
入力処理、表示処理等の計時処理を行う。このと
き、入力部11において、キー入力によつて付加
機能処理(翻訳機能処理)が指定されたか否かが
ステツプS14によつて判断される。翻訳機能処理
が指定されると、次のステツプS15に進み、フラ
グ記憶領域F1に「1」をセツトし、ステツプ
S11、S12を介して翻訳機能処理に移る。また、
ステツプS15において、翻訳機能処理が指定され
ないと判断された場合には、ステツプS11、S12
を介してHALT状態となる。
In this HALT state, when the next 1/16 Hz signal is output from the frequency divider circuit 2, the flip-flop 3 is set, and address data is output from the address section 5 in accordance with the set output Q. As a result, steps S1 to S5 are executed again. In this case, data A to D are stored in registers N1 to N4, so each step S2 to
In S5, it is determined that they match (YES), and the process proceeds to the next step S13. This step S13 is a flow for executing timekeeping processing, and timekeeping processing such as timekeeping operation, key input processing, display processing, etc. is performed. At this time, it is determined in step S14 whether additional function processing (translation function processing) has been designated by key input in the input unit 11. When the translation function process is specified, the process advances to the next step S15, sets "1" in the flag storage area F1, and then returns to step S15.
The process moves to translation function processing via S11 and S12. Also,
If it is determined in step S15 that translation function processing is not specified, steps S11 and S12 are performed.
It enters HALT state via .

しかして、翻訳機能処理に移ると、ステツプ
S16に進み、フラグ記憶領域F2に「1」をセツト
する。続いて、翻訳機能処理の一部である処理A
を実行するステツプS17に進む。この処理Aは、
いつでもインタラプトが可能な処理であり、この
処理中に分周回路2から1/16Hzの信号が出力され
ると、再びステツプS1に戻る割込み処理を実行
し、計時処理等の通常処理を行う。このとき、フ
ラグ記憶領域F2の内容は「1」のままであるの
で、計時処理を実行したのちにおいては、リター
ンインタラプト(REI)となり、インタラプトが
入つた次のアドレスに戻り、処理Aの残りの処理
を実行する。
However, when moving on to translation function processing, the step
Proceeding to S16, "1" is set in the flag storage area F2. Next, process A, which is part of the translation function process.
Proceed to step S17 to execute. This process A is
This is a process that can be interrupted at any time, and if a 1/16 Hz signal is output from the frequency divider circuit 2 during this process, the interrupt process returns to step S1 again and normal processes such as timekeeping process are performed. At this time, the content of the flag storage area F2 remains "1", so after executing the time measurement process, it becomes a return interrupt (REI) and returns to the next address where the interrupt occurred, and the rest of process A is executed. Execute processing.

そして、処理Aが終了すると、次のステツプ
S18に進み、フリツプフロツプ12をリセツトし
たのち、翻訳機能処理の他の処理Bを実行するス
テツプS19に進む。この処理Bは処理Aと異な
り、インタラプトが不可能な処理であり、処理B
を実行する前に、フリツプフロツプ12をリセツ
トしてアンドゲート4を閉成し、処理Bのプログ
ラム実行中インタラプトがかからないようにして
いる。これと同時に、タイマー回路14もリセツ
トする。
Then, when processing A is finished, the next step
After proceeding to S18 and resetting the flip-flop 12, the process proceeds to step S19 in which another process B of the translation function process is executed. This process B is different from process A, and is a process that cannot be interrupted.
Before executing the process B, the flip-flop 12 is reset and the AND gate 4 is closed to prevent an interrupt from occurring during the program execution of process B. At the same time, the timer circuit 14 is also reset.

そして、処理Bが終了すると、次のステツプ
S20に進み、フリツプフロツプ12をセツトし、
インタラプトが可能な状態に設定する。なお、処
理Bの実行中の時間をタイマー回路14で計数
し、この時間が所定時間以上になつても処理Bが
終了しなかつたときには、実行中のプログラムが
暴走したと判断し、タイマー回路14から出力さ
れるキヤリー信号によつてフリツプフロツプ12
を強制的にセツトし、インタラプト可能な状態と
し、ステツプS1に戻る。
Then, when processing B is completed, the next step
Proceed to S20, set flip-flop 12,
Set to allow interrupts. Note that the timer circuit 14 counts the time during which process B is being executed, and if process B does not end even if this time exceeds a predetermined time, it is determined that the program being executed has run out of control, and the timer circuit 14 counts the time during which process B is being executed. A carry signal output from the flip-flop 12
is forcibly set, the state becomes interruptible, and the process returns to step S1.

続いて、ステツプS21の実行に移り、翻訳機能
の残りの処理Cを実行する。この処理Cも処理A
と同様にインタラプト可能な処理である。処理C
が終了すると、ステツプS22に進み、フラグ記憶
領域F1に「0」をセツトし、続いて、ステツプ
S23に進み、フラグ記憶領域F2に「0」をセツト
する。そして、ステツプS23が終了すると、
HALT状態に保たれる。
Next, the process moves to step S21, and the remaining processing C of the translation function is executed. This process C is also process A
This is a process that can be interrupted in the same way as . Processing C
When the process is completed, the process advances to step S22, where "0" is set in the flag storage area F1, and then step S22 is started.
Proceeding to S23, "0" is set in the flag storage area F2. Then, when step S23 ends,
It is kept in HALT state.

このように、電子回路の初期状態設定はCR回
路を用いないので、電源電圧の変動に対しても確
実に動作すると共に、外付部品も不要となる。
In this way, since the CR circuit is not used to set the initial state of the electronic circuit, it operates reliably even in the face of fluctuations in power supply voltage, and no external components are required.

なお、上記実施例においては、N1〜N4レジス
タの4種類のデータによつてROMに記憶されて
いる固定データと比較するようにしたが、比較す
る数値データのビツト数を多くすれば、1種類で
あつてもよい。
In the above embodiment, four types of data in the N1 to N4 registers are compared with the fixed data stored in the ROM, but if the number of bits of the numerical data to be compared is increased, one type of data can be used. It may be.

この発明は、以上詳細に説明したようにデータ
の読出し書込みが可能な第1の記憶手段にプリセ
ツトされた任意データと、データを固定的に記憶
する第2の記憶手段の固定データとを比較して、
任意データと固定データとが一致しなかつた場合
に、電子回路を初期状態に設定するものであるか
ら電源投入を検出するためにCR回路を用いない
ので、たとえ、電源電圧が変動しても確実に動作
すると共に、外付部品が不要となり、コスト的に
も有利となる等の優れた効果を有する。
As explained in detail above, this invention compares arbitrary data preset in a first storage means from which data can be read and written with fixed data in a second storage means that stores data in a fixed manner. hand,
Since the electronic circuit is set to the initial state when the arbitrary data and fixed data do not match, a CR circuit is not used to detect power-on, so even if the power supply voltage fluctuates, it is reliable. It has excellent effects such as high performance, no external parts required, and cost advantages.

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

図面はこの発明を電子時計に適用した一実施例
を示したもので、第1図は電子時計のブロツク回
路図、第2図はその動作を示すフローチヤートで
ある。 2……分周回路、6……ROM、7……RAM、
9……演算回路。
The drawings show an embodiment in which the present invention is applied to an electronic timepiece. FIG. 1 is a block circuit diagram of the electronic timepiece, and FIG. 2 is a flowchart showing its operation. 2... Frequency divider circuit, 6...ROM, 7...RAM,
9... Arithmetic circuit.

Claims (1)

【特許請求の範囲】[Claims] 1 所定周期のクロツク信号が出力される毎にマ
イクロプログラムに従つて所定の処理を実行する
電子回路の初期状態設定装置であつて、データの
読出し書込みが可能な第1の記憶手段と、予め定
められたデータを固定的に記憶する第2の記憶手
段と、前記クロツク信号が出力される毎に前記第
1の記憶手段の予め定められた領域に記憶されて
いるデータと前記第2の記憶手段に記憶されてい
る固定データとを比較する比較手段と、この比較
手段によつて前記データと前記固定データとの一
致が検出されない場合に前記電子回路を初期状態
に設定すると共に前記第1の記憶手段の前記予め
定められた領域に前記固定データを記憶設定させ
る設定手段と、前記比較手段により一致が検出さ
れた際には前記所定の処理を実行させる制御手段
とを具備したことを特徴とする初期状態設定装
置。
1 An initial state setting device for an electronic circuit that executes a predetermined process according to a microprogram each time a clock signal of a predetermined period is output, and includes a first storage means capable of reading and writing data, and a predetermined storage means. a second storage means for fixedly storing data stored in the clock signal; and a second storage means for storing data stored in a predetermined area of the first storage means each time the clock signal is output. a comparison means for comparing fixed data stored in the first memory; and a comparison means for setting the electronic circuit to an initial state and setting the electronic circuit to an initial state when the comparison means does not detect a match between the data and the fixed data. The method is characterized by comprising a setting means for storing and setting the fixed data in the predetermined area of the means, and a control means for causing the predetermined process to be executed when a match is detected by the comparing means. Initial state setting device.
JP56198795A 1981-12-10 1981-12-10 Initial state setting device Granted JPS5899822A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP56198795A JPS5899822A (en) 1981-12-10 1981-12-10 Initial state setting device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP56198795A JPS5899822A (en) 1981-12-10 1981-12-10 Initial state setting device

Publications (2)

Publication Number Publication Date
JPS5899822A JPS5899822A (en) 1983-06-14
JPH0334097B2 true JPH0334097B2 (en) 1991-05-21

Family

ID=16397027

Family Applications (1)

Application Number Title Priority Date Filing Date
JP56198795A Granted JPS5899822A (en) 1981-12-10 1981-12-10 Initial state setting device

Country Status (1)

Country Link
JP (1) JPS5899822A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61153720A (en) * 1984-12-26 1986-07-12 Toshiba Corp Auto clearing method and circuit for said method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS56111195A (en) * 1980-02-01 1981-09-02 Toshiba Corp Memory system

Also Published As

Publication number Publication date
JPS5899822A (en) 1983-06-14

Similar Documents

Publication Publication Date Title
JPH0346078B2 (en)
US4330840A (en) Multi-function electronic digital watch
JPH0854958A (en) Real-time clock circuit and its operating method
US4262346A (en) Multi function electronic timepiece
JPH0334097B2 (en)
US10990156B2 (en) Method for calculating power-on hours of an electronic device and electronic device utilizing the same
US4181963A (en) Electronic calculator with time counting function
KR830001450B1 (en) Electronic digital multifunction watch
US4468133A (en) Electronic timepiece
JPS6258011B2 (en)
JP2979099B2 (en) Data storage device
JP2532447Y2 (en) Memory backup device
JPH0637471Y2 (en) Memory backup device
JPH052878Y2 (en)
JPS59224590A (en) Detecting method of leap year
JPS6239396B2 (en)
JPS6115464B2 (en)
KR910003420B1 (en) Time setting and error correcting method for fax system
JPS6310553Y2 (en)
JPS6258191A (en) Schedule display device
JPH05134779A (en) Calender ic correction method
JPS608470B2 (en) Timekeeping method
JPH0697267B2 (en) Alarm clock
JP2513600Y2 (en) Data bank device
JPH0277683A (en) alarm clock