JPH0637471Y2 - Memory backup device - Google Patents

Memory backup device

Info

Publication number
JPH0637471Y2
JPH0637471Y2 JP1987183278U JP18327887U JPH0637471Y2 JP H0637471 Y2 JPH0637471 Y2 JP H0637471Y2 JP 1987183278 U JP1987183278 U JP 1987183278U JP 18327887 U JP18327887 U JP 18327887U JP H0637471 Y2 JPH0637471 Y2 JP H0637471Y2
Authority
JP
Japan
Prior art keywords
data
voltage
battery
output
signal
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
JP1987183278U
Other languages
Japanese (ja)
Other versions
JPH0187451U (en
Inventor
博 諸星
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 JP1987183278U priority Critical patent/JPH0637471Y2/en
Publication of JPH0187451U publication Critical patent/JPH0187451U/ja
Application granted granted Critical
Publication of JPH0637471Y2 publication Critical patent/JPH0637471Y2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Power Sources (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Description

【考案の詳細な説明】 〔考案の技術分野〕 本考案は電池交換時に機器内のメモリ部の内容を保護す
るメモリバックアップ回路に関する。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to a memory backup circuit for protecting the contents of a memory unit in a device when a battery is replaced.

〔従来技術〕[Prior art]

従来のメモリバックアップ装置の一例を第12図に示す。
同図において、CPU等を含む主回路1と、この主回路1
の指示に基づきデータの読み出しおよび書き込み等が行
われるRAM2とは、通常時は、例えば1.5Vの電池3から供
給される電圧によって駆動されている。一方、RAM2には
バックアップ用コンデンサ4が並列接続されると共に、
このコンデンサ4と電池3間には逆流防止用のダイオー
ド5が接続されている。コンデンサ4は、通常時は電池
3によって充電されたままであるが、電池3の交換時に
はRAM2に対して放電電圧を供給することにより、RAM2の
内容が消去されるのを一定時間だけ防止できるようにな
っている。
An example of a conventional memory backup device is shown in FIG.
In the figure, a main circuit 1 including a CPU and the like, and the main circuit 1
The RAM 2 to which data is read and written based on the instruction is normally driven by a voltage supplied from the battery 3 of 1.5 V, for example. On the other hand, a backup capacitor 4 is connected in parallel to RAM2,
A diode 5 for preventing backflow is connected between the capacitor 4 and the battery 3. The capacitor 4 normally remains charged by the battery 3, but when the battery 3 is replaced, a discharge voltage is supplied to the RAM 2 so that the contents of the RAM 2 can be prevented from being erased for a certain period of time. Has become.

また、他の例として、例えば3Vの電池を用い、その電池
電圧を1.5V程度まで降圧して主回路やRAMに供給するよ
うにしたものもあり、この場合においては、上記の降圧
した電圧でコンデンサを充電しておき、コンデンサを電
池交換時に放電することによって補償するようにしたも
のである。
In addition, as another example, there is one in which, for example, a 3V battery is used, and the battery voltage is stepped down to about 1.5V and supplied to the main circuit and RAM. The capacitor is charged in advance, and the capacitor is discharged at the time of battery replacement to compensate.

〔従来技術の問題点〕[Problems of conventional technology]

上記従来のバックアップ方式であっては電池電圧が大き
く低下していることからコンデンサの充電電圧は上記の
いずれの場合であっても非常に低くなる(例えば1.2V程
度)。そのため、電池交換時にコンデンサの充電電圧で
補償できる時間が極めて短くなってしまい、もしこの補
償時間を長くしようとすれば大容量のコンデンサを用い
るしかなかった。
In the above conventional backup method, the battery voltage is greatly reduced, so that the charging voltage of the capacitor is extremely low in any of the above cases (for example, about 1.2V). Therefore, when the battery is replaced, the time that can be compensated by the charging voltage of the capacitor becomes extremely short, and if the compensation time is increased, a large capacity capacitor must be used.

また、上記従来の方式では電池電圧が低下しているにも
かかわらず、使用がつづけられてしまい、その為、電力
消費が一層進むという欠点もあった。このような場合、
従来では電池電圧が低下していることを表示等によって
報知し、電池交換を促すものであるが、使用者にとって
は、電圧低下が報知されたもののまだ動作しているとい
う認識から、電池交換がおくれてしまい、結局、メモリ
の内容を保護出来ない電圧になる迄電池交換が行なわれ
ないという結果におちいることが多かった。
Further, in the above-mentioned conventional method, even though the battery voltage is lowered, the battery continues to be used, so that there is a drawback that the power consumption further progresses. In such cases,
In the past, it was informed that the battery voltage was low by a display etc., and prompted to replace the battery.However, from the user's recognition that the battery voltage was low, it was recognized that the battery replacement was still in progress. In many cases, the result was that the battery was not replaced until it reached a voltage at which the contents of the memory could not be protected.

従って、このような従来の方式ではメモリの内容が誤ま
った内容になってしまう場合もあり、使用者は誤まった
内容のデータを用いてしまう虞れがあった。
Therefore, in such a conventional method, the contents of the memory may be erroneous, and the user may use the data with the erroneous contents.

〔考案の目的〕[Purpose of device]

本考案は上記実情に鑑みてなされたもので、電池交換
後、使用者がバックアップされたメモリの内容を用いる
際に誤まったデータを用いることがないようにしたメモ
リバックアップ装置を提供することを目的とする。
The present invention has been made in view of the above circumstances, and provides a memory backup device that prevents a user from using erroneous data when using the contents of a backed up memory after replacing a battery. To aim.

〔考案の要点〕[Key points of device]

本考案は上記目的を達成するために、電池交換後に、バ
ックアップされたメモリの内容に誤まりがないかどうか
のチェックを行う手段を設けたことを重点とする。
In order to achieve the above object, the present invention focuses on providing a means for checking whether or not the contents of the backed up memory are erroneous after battery replacement.

〔実施例〕〔Example〕

以下、本考案の実施例について、図面を参照しながら説
明する。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.

第1図は、本考案の一実施例を適用したデータバンク機
能付き電子腕時計の全体回路図である。
FIG. 1 is an overall circuit diagram of an electronic wrist watch with a data bank function to which an embodiment of the present invention is applied.

まず、第1図を用いて、本実施例の構成および動作を概
略的に説明する。
First, the configuration and operation of this embodiment will be schematically described with reference to FIG.

第1図においては、電源部として、交換可能な3Vの電池
(例えばリチウム電池)11、この電池電圧を半分に降圧
する降圧回路(例えばボルテジハーバー)12、この降圧
電圧を受けそれ以下の一定電圧(ここでは−1.25Vとす
る)を出力する定電圧回路13、及び電池電圧の低下を検
出する電圧検出回路14等を備えている。電池11のプラス
側は接地されており、このグランドレベルV0(=0)と
し、これに対するマイナス側の電圧レベル(すなわち電
池電圧)をV2(=−3V)とする。また、定電圧回路13の
一定の出力電圧レベルをV1(=−1.25V)とする。
In FIG. 1, as a power supply unit, a replaceable 3V battery (for example, lithium battery) 11, a step-down circuit (for example, voltage harbor) 12 that steps down this battery voltage by half, and a constant voltage below this voltage is received. A constant voltage circuit 13 that outputs a voltage (here, −1.25 V), a voltage detection circuit 14 that detects a decrease in battery voltage, and the like are provided. The positive side of the battery 11 is grounded, and this ground level is V 0 (= 0), and the voltage level on the negative side (that is, battery voltage) is V 2 (= −3V). Further, the constant output voltage level of the constant voltage circuit 13 is V 1 (= -1.25V).

上記の電圧V1によって、主回路部15が駆動される。この
主回路部15は、ROMおよび小容量のRAM等を内部に含む時
計回路であり、時刻を計数して表示する時計機能の他、
アラーム機能やストップウォッチ機能を備え、更には、
後述するメモリ部16に格納された各種データ(例えば電
話番号データ等)を読み出して表示させる機能等をも備
えている。主回路部15には小容量のコンデンサC0が並列
接続されており、振動その他による電源供給の瞬間的な
変動や中断があった場合、上記コンデンサC0の放電電圧
で主回路部15の動作を補償できるようになっている。な
お、主回路部15の具体的な回路構成及び動作について
は、後に第3図に基づき詳述する。
The main circuit portion 15 is driven by the above voltage V 1 . The main circuit unit 15 is a clock circuit that internally includes a ROM, a small-capacity RAM, and the like, and has a clock function of counting and displaying time,
It has an alarm function and a stopwatch function.
It also has a function of reading out and displaying various data (for example, telephone number data) stored in the memory unit 16 described later. A small-capacity capacitor C 0 is connected in parallel to the main circuit section 15, and if there is a momentary fluctuation or interruption of the power supply due to vibration or the like, the operation of the main circuit section 15 is performed with the discharge voltage of the capacitor C 0. Can be compensated. The specific circuit configuration and operation of the main circuit section 15 will be described later in detail with reference to FIG.

メモリ部16は、各種データを記憶するための大容量のRA
Mであり、その概略構成を第2図に示す。同図に示され
るように、メモリ部16は、例えば名前や文字等の項目デ
ータを6文字分記憶可能な項目データ記憶領域Xaと、そ
れに対応する電話番号等の数字データを12文字分記憶可
能な数字データ記憶領域Xbとからなる例えば50本のレジ
スタX(X0,X1,X2…)を備えると共に、電池交換時に主
回路部15から転送されてくるデータ(例えばレジスタX
の使用本数等)を一時的に記憶するためのレジスタY
(Y0,Y1,Y2…)を備えている。第1図に戻り、メモリ部
16には、電池交換時のバックアップ用のコンデンサC1が
並列接続されており、電池交換時には上記コンデンサC1
の放電電圧でメモリ部16の内容を補償できるようになっ
ている。
The memory unit 16 has a large capacity RA for storing various data.
It is M, and its schematic configuration is shown in FIG. As shown in the figure, the memory unit 16 can store, for example, an item data storage area Xa that can store 6 characters of item data such as names and characters and 12 characters of numeric data such as a telephone number corresponding to the item data storage area Xa. , Which includes, for example, 50 registers X (X 0 , X 1 , X 2 ...) Consisting of various numerical data storage areas Xb, and which is transferred from the main circuit unit 15 when the battery is replaced (for example, register X
Register Y for temporarily storing the number of
(Y 0 , Y 1 , Y 2 ...). Returning to FIG. 1, the memory section
A backup capacitor C 1 for battery replacement is connected in parallel to 16 and the above capacitor C 1 is used for battery replacement.
The contents of the memory unit 16 can be compensated by the discharge voltage of.

電圧制御部17は、上記メモリ部16に供給される電圧Vxを
制御して、コンデンサC1と共にメモリ部16の内容を保護
するための制御回路である。すなわち、電圧制御部17
は、後述するスイッチS1の開閉及び主回路部15から出力
される信号a,AC等に従って電圧V1,V2を互いに切り換
え、これをVxとしてメモリ部16に供給する。また、メモ
リ部16を動作可能にするチップイネーブル信号CE2と、
メモリ部16に対してデータの読み出し及び書き込み時に
与えられるリード・ライト信号R2とを制御し、それぞれ
信号CET,RTとしてメモリ部16に与える。電圧制御部17の
具体的な構成及び動作については、第5図及び第6図に
基づき後述する。
The voltage control unit 17 is a control circuit for controlling the voltage Vx supplied to the memory unit 16 to protect the contents of the memory unit 16 together with the capacitor C 1 . That is, the voltage controller 17
Switches the voltages V 1 and V 2 to each other in accordance with opening / closing of a switch S 1 described later and signals a, AC and the like output from the main circuit unit 15, and supplies this to the memory unit 16 as Vx. In addition, a chip enable signal CE 2 that enables the memory unit 16 and
A read / write signal R 2 given to the memory section 16 at the time of reading and writing data is controlled and given to the memory section 16 as signals CET and RT, respectively. The specific configuration and operation of the voltage controller 17 will be described later with reference to FIGS. 5 and 6.

更に第1図には、電池交換時に投入されるスイッチS1、
各部を初期化(例えばメモリ部16のクリア)したり、あ
るいは電池交換後に主回路部15の動作を開始させたりす
るACスイッチS2、及び主回路部15に対し各種機能のデー
タを入力したり、あるいは制御指令を与える操作スイッ
チ群S3が示されている。これらの中で、特にスイッチS1
及びS2の具体的構成を第10図及び第11図に基づき以下に
説明する。ここで、第10図は本実施例を適用した電子腕
時計の拡大断面図であり、第11図(a)及び(b)は第
10図におけるスイッチS1についての要部拡大断面図であ
る。
Further, in FIG. 1 , a switch S 1 that is turned on when the battery is replaced,
AC switch S 2 for initializing each part (for example, clearing the memory part 16) or starting operation of the main circuit part 15 after battery replacement, and inputting data of various functions to the main circuit part 15 , Or an operation switch group S 3 for giving a control command is shown. Among these, especially the switch S 1
The specific configuration of S 2 and S 2 will be described below with reference to FIGS. 10 and 11. Here, FIG. 10 is an enlarged sectional view of an electronic wrist watch to which this embodiment is applied, and FIGS. 11 (a) and 11 (b) are
FIG. 11 is an enlarged sectional view of an essential part of a switch S 1 in FIG.

まず、第10図において、腕時計ケース21の上面には時計
ガラス22が装着されており、内部には時計モジュール23
が収納され、下部には裏蓋24が取付けられている。時計
モジュール23は、上部ハウジング25と下部26との間に、
第1図に示した諸回路を有するLSI(図示せず)等が取
付けられた回路基板27を備えると共に、この回路基板27
の上方にインターコネクタ28aを介して液晶表示パネル2
8に表示駆動信号が供給されるように配置された構成で
ある。上記の上部及び下部ハウジング25,26は薄い金属
板からなる地板29により回路基板27を介して相互に固定
されたまま、裏蓋24とは別体の抑えリング30を介して時
計ケース21内に装着されている。なお、第10図には示さ
れていないが、時計モジュール23の下部ハウジング26内
には、第1図に示した電池11が収納されており、そのプ
ラス側が地板29に接続されている。すなわち、地板29の
電圧レベルはV0(グランドレベル)となっている。
First, in FIG. 10, a watch glass 22 is attached to the upper surface of a wristwatch case 21, and a watch module 23 is provided inside.
Is stored, and the back cover 24 is attached to the lower part. The clock module 23 is provided between the upper housing 25 and the lower portion 26.
The circuit board 27 is provided with an LSI (not shown) having the circuits shown in FIG.
Liquid crystal display panel 2 above the interconnector 28a
It is arranged so that the display drive signal is supplied to 8. The upper and lower housings 25, 26 described above are fixed to each other via a circuit board 27 by a base plate 29 made of a thin metal plate, and inside the watch case 21 via a retaining ring 30 separate from the back cover 24. It is installed. Although not shown in FIG. 10, the battery 11 shown in FIG. 1 is housed in the lower housing 26 of the timepiece module 23, and the plus side thereof is connected to the main plate 29. That is, the voltage level of the ground plane 29 is V 0 (ground level).

さて、本実施例の第1図で示したスイッチS1は第10図に
示すように時計モジュール23の右下隅に設けられ、第11
図(a)および(b)に示すように電池交換時における
抑えリング30の開閉に応じてオン、オフにするように構
成されている。すなわち、第11図に示すように、まず下
部ハウジング26内には段差状の貫通孔圧26aが形成さ
れ、その中に、導電性を有するコイルばね31が配置され
ている。このコイルばね31は、その自由端31aが固定端3
1bよりも大きな渦巻状に形成されており、自由端31aが
貫通孔26aの大径側に配置され、固定端31bが貫通孔26a
の小径側に配置されると共に、この固定端31bが回路基
板27の電極端子(第1図の電圧制御部17への入力端子)
に接続されている。またコイルばね31の自由端31aに
は、これとほぼ同じ円板状の薄い導電性の金属板からな
る端子板32が取付けられており、この端子板32はコイル
ばね31の付勢力を受けながら貫通孔26aの大径側を上下
に移動可能となっている。端子板32の周縁には、そこか
ら下方へ若干突出するように接触部32aが折曲形成され
ており、端子板32が下方へ移動した際に上記接触部32a
が地板29と接触するようになっている。更に、端子板32
の上記接触部32aとは反対側の周縁には、そこから上方
へ比較的長く延び、かつその先端が下部ハウジング26内
の段差部26bの上方に位置するように外側へフック状に
折り返された位置的規制部32bが形成されており、地板2
9を取外した際には、位置規制部32が段差部26bに係止さ
れることにより端子板32及びコイルばね31が外部に飛び
出すのを防止できるようになっている。また地板29には
コイルばね31と対応して円形状の孔29aが形成されると
共に、抑えリング30の内側面には上記の孔29a中に挿入
可能な位置に押圧部30aが突出して設けられている。
Now, the switch S 1 shown in FIG. 1 of this embodiment is provided at the lower right corner of the timepiece module 23 as shown in FIG.
As shown in FIGS. (A) and (b), it is configured to turn on and off in response to opening and closing of the retaining ring 30 during battery replacement. That is, as shown in FIG. 11, first, a stepped through-hole pressure 26a is formed in the lower housing 26, and a conductive coil spring 31 is arranged therein. The free end 31a of the coil spring 31 is fixed to the fixed end 3a.
It is formed in a spiral shape larger than 1b, the free end 31a is arranged on the large diameter side of the through hole 26a, and the fixed end 31b is formed in the through hole 26a.
The fixed end 31b is disposed on the small diameter side of the electrode terminal of the circuit board 27 (input terminal to the voltage control unit 17 in FIG. 1).
It is connected to the. A terminal plate 32 made of a thin conductive metal plate having a substantially disk shape is attached to the free end 31a of the coil spring 31, and the terminal plate 32 receives the biasing force of the coil spring 31. The large diameter side of the through hole 26a can be moved up and down. A contact portion 32a is formed on the peripheral edge of the terminal plate 32 so as to slightly project downward, and the contact portion 32a is formed when the terminal plate 32 moves downward.
Is in contact with the main plate 29. In addition, the terminal board 32
On the peripheral edge on the side opposite to the contact portion 32a, it extends relatively long upward from there, and is folded back outward in a hook shape so that its tip is located above the stepped portion 26b in the lower housing 26. The position regulating portion 32b is formed, and the main plate 2
When the 9 is removed, the position restricting portion 32 is locked to the step portion 26b so that the terminal plate 32 and the coil spring 31 can be prevented from jumping out. A circular hole 29a corresponding to the coil spring 31 is formed in the base plate 29, and a pressing portion 30a is provided on the inner side surface of the retaining ring 30 so as to project into the hole 29a. ing.

上記構成からなるスイッチS1は、電池11が下部ハウジン
グ26内に収納されて抑えリング30が装着された通常状態
で、第11図(a)に示すように抑えリング30の押圧部30
aが地板29の孔29aを介して内部に突出し、端子板32をコ
イルばね31に抗して押圧するので、端子板32の接触部32
a(第1図の端子S1bに相当)が地板29(第1図の端子S
1aに相当)から離隔され、よってオフ状態となる。一
方、電池交換のために抑えリング30を取外した場合は、
第11図(b)に示すようにコイルばね31によって端子板
32が下方に付勢されるので、接触部32aが地板29に接触
し、よってオン状態となる。
The switch S 1 having the above-described structure is used in a normal state in which the battery 11 is housed in the lower housing 26 and the retaining ring 30 is mounted, and as shown in FIG.
Since a protrudes inward through the hole 29a of the base plate 29 and presses the terminal plate 32 against the coil spring 31, the contact portion 32 of the terminal plate 32 is abutted.
a (corresponding to terminal S 1 b in FIG. 1 ) is a main plate 29 (terminal S in FIG. 1)
( Corresponding to 1a), so that it is turned off. On the other hand, if you remove the retaining ring 30 to replace the battery,
As shown in FIG. 11 (b), the coil spring 31 is used to
Since 32 is urged downward, the contact portion 32a comes into contact with the base plate 29, and thus is turned on.

また、もう1つのスイッチS2も、第10図に示されるよう
に下部ハウジング26に設けられている。すなわち、下部
ハウジング26の一部に貫通孔26cが形成されており、そ
の中の回路基板27の下面に、第1図に示した主回路部15
への入力端子である電極端子27aが設けられると共に、
地板29の上記貫通孔26cと対応する位置に小径の孔29bが
形成されたものである。更に、抑えリング30の上記貫通
孔26cと対応する位置にも孔30bが形成されている。この
ように構成されたACスイッチS2は、電極27a(第1図の
端子S2bに相当)と地板29(第1図の端子S2aに相当)
を不図示の治具等で導通させることによってオン状態と
なり、それ以外の場合はオフ状態となる。
Another switch S 2 is also provided on the lower housing 26 as shown in FIG. That is, a through hole 26c is formed in a part of the lower housing 26, and the main circuit portion 15 shown in FIG.
An electrode terminal 27a which is an input terminal to is provided,
A small-diameter hole 29b is formed in the base plate 29 at a position corresponding to the through hole 26c. Further, a hole 30b is also formed at a position corresponding to the through hole 26c of the retaining ring 30. The AC switch S 2 thus configured has an electrode 27a (corresponding to the terminal S 2 b in FIG. 1) and a main plate 29 (corresponding to the terminal S 2 a in FIG. 1).
Is turned on by conducting it with a jig or the like (not shown), and is turned off otherwise.

次に、主回路部15の具体的な回路構成及び動作につい
て、第3図に基づき説明する。
Next, a specific circuit configuration and operation of the main circuit section 15 will be described with reference to FIG.

ROM41は各機能をコントロールするマイクロプログラム
やデータを内蔵している固定メモリであり、各メモリへ
のアドレス信号A、各種データD、付プログラムの指定
を行うインストラクション信号I、および次のアドレス
を指定するネクストアドレス信号Nを出力する。ROM制
御部42は、ROMIからのネクストアドレス信号N、演算回
路45の出力、インストラクションデコーダ44の出力、電
圧検出回路14(第1図)の出力等に基づきROM41を制御
する。RAM43は、第1図に示したメモリ部16よりも小容
量であり、ROM41のアドレス信号Aに基づき、読出し/
書込みのアクセスが頻繁に行われるデータを記憶するメ
モリである。RAM43は、例えば第4図に示すように、表
示データを記憶する表示レジスタD、時刻データを記憶
する時刻レジスタT、アラーム時刻データを記憶するア
ラーム時刻レジスタA、ストップウォッチデータを記憶
するストップウォッチレジスタS、その他の各種レジス
タn,i,P0,P1及び各種フラグM,F0,F1,F2等から構成され
ている。ここで、レジスタP0はメモリ部16に記憶されて
いるデータの本数(すなわち、第2図に示したレジスタ
Xの使用本数)を記憶し、レジスタP1はそのうちの現在
指定されているデータのアドレスを記憶する。
The ROM 41 is a fixed memory containing a microprogram and data for controlling each function, and specifies an address signal A to each memory, various data D, an instruction signal I for specifying an attached program, and the next address. The next address signal N is output. The ROM control unit 42 controls the ROM 41 based on the next address signal N from the ROMI, the output of the arithmetic circuit 45, the output of the instruction decoder 44, the output of the voltage detection circuit 14 (FIG. 1) and the like. The RAM 43 has a smaller capacity than the memory section 16 shown in FIG. 1, and is read / written based on the address signal A of the ROM 41.
It is a memory that stores data that is frequently accessed for writing. The RAM 43 is, for example, as shown in FIG. 4, a display register D that stores display data, a time register T that stores time data, an alarm time register A that stores alarm time data, and a stopwatch register that stores stopwatch data. S, various other registers n, i, P 0 , P 1 and various flags M, F 0 , F 1 , F 2 and the like. Here, the register P 0 stores the number of data stored in the memory unit 16 (that is, the number of used registers X shown in FIG. 2), and the register P 1 stores the currently designated data among them. Remember the address.

インストラクションデコーダ44はROM41のインストラク
ション信号Iをデコードして、各ブロックにコントロー
ル信号を送るブロックである。演算回路(ALU)45はROM
41、RAM43、メモリ部16等から送られてきたデータの算
術論理演算を行い、その演算結果をメモリ部16、RAM4
3、ROM制御部42等へ送る。
The instruction decoder 44 is a block that decodes the instruction signal I of the ROM 41 and sends a control signal to each block. The arithmetic circuit (ALU) 45 is a ROM
41, the RAM 43, the arithmetic logic operation of the data sent from the memory unit 16 and the like, and the arithmetic result is the memory unit 16, the RAM 4
3, send to the ROM control unit 42 and the like.

発振器46は一定周期のクロック信号を作成し、タイミン
グジェネレータ47および分周回路48に出力する。タイミ
ングジェネレータ47はクロック信号を所定の周波数まで
分周し、各ブロック及び電圧検出回路14を時系列にコン
トロールするタイミング信号を出力する。特に、RAM43
に対してはチップイネーブル信号CE1及びリード・ライ
ト信号R1を出力し、電圧制御部17に対してはメモリ部16
のためのチップイネーブル信号CE2及びリード・ライト
信号R2並びに後述する電圧切換のための信号aを出力す
る。分周回路48は発振器46からのクロック信号を分周す
るカウンタで、計時処理等に使用される一定周期の計時
信号を作成している。キー入力部49は、第1図に示した
スイッチS1〜S3を含んでおり、これらのキー操作に基づ
いて各種機能が実行される。尚、これら多数のキーのう
ち、特にACスイッチS2(第10図参照)が操作された時は
信号ACが出力され、この信号ACによって発振器46の発振
が開始されたり、あるいは各部が初期化されたりする。
信号ACは電圧制御部17へも送られる。
The oscillator 46 creates a clock signal having a constant cycle and outputs it to the timing generator 47 and the frequency dividing circuit 48. The timing generator 47 divides the clock signal to a predetermined frequency and outputs a timing signal for controlling each block and the voltage detection circuit 14 in time series. Especially RAM43
Output the chip enable signal CE 1 and read / write signal R 1 to the voltage control unit 17 and the memory unit 16 to the voltage control unit 17.
Output a chip enable signal CE 2 and a read / write signal R 2 and a signal a for voltage switching described later. The frequency dividing circuit 48 is a counter that divides the clock signal from the oscillator 46, and creates a clock signal of a constant cycle used for clock processing and the like. The key input unit 49 includes the switches S 1 to S 3 shown in FIG. 1 , and various functions are executed based on these key operations. Of these many keys, when the AC switch S 2 (see FIG. 10) is operated, a signal AC is output, and the signal AC causes the oscillator 46 to start oscillating or initialize each part. It is done.
The signal AC is also sent to the voltage controller 17.

液晶表示装置50は、第10図に示した液晶表示パネル28を
含む構成であり、RAM43の表示レジスタDに入っている
データ(例えば通常の時刻データ、ストップウォッチデ
ータ、あるいはメモリ部16から送られた電話番号データ
等)を表示制御部51の制御に従って表示する。具体的な
表示例については、第9図に基づき後述する。
The liquid crystal display device 50 is configured to include the liquid crystal display panel 28 shown in FIG. 10, and the data stored in the display register D of the RAM 43 (for example, normal time data, stopwatch data, or sent from the memory unit 16). Telephone number data, etc.) is displayed under the control of the display control unit 51. A specific display example will be described later with reference to FIG.

次に、電圧制御部17の具体的な構成及び動作について、
第5図及び第6図に基づき説明する。第5図には、一点
鎖線で囲まれた電圧制御部17の他に、大容量RAMからな
るメモリ部16、そのバックアップ用のコンデンサC1、及
び、第1図並びに第11図に示したのと同一のスイッチS1
が示されている。第6図には、第5図における各部の信
号及び電圧波形が示されている。
Next, regarding the specific configuration and operation of the voltage control unit 17,
A description will be given based on FIGS. 5 and 6. In FIG. 5, in addition to the voltage control section 17 surrounded by the alternate long and short dash line, the memory section 16 including a large-capacity RAM, the backup capacitor C 1 thereof, and FIGS. 1 and 11 are shown. Switch S 1 identical to
It is shown. FIG. 6 shows the signal and voltage waveform of each part in FIG.

まず、通常時(電池交換時以外の時)には、第11図
(a)示したようにスイッチS1がオフ状態にある。この
場合、ラッチ回路61中のノア(NOR)回路61aの一方の入
力がローレベル(=V0)となる。また、もう1つのラッ
チ回路62の出力は通常ローレベル(=V1>V2)であり、
このV1がレベルシフタ63によって確実に低いレベルV2に
切換えられるので、上記ノア回路61aのもう一方の入力
もローレベル(=V2)となる。よって、ノア回路61aの
出力はハイレベルとなり、これに伴ってノア回路61bの
出力(信号c)がローレベルになる。なお、上記レベル
シフタ63、及び後述するレベルシフタ64,68,69,71は、
いずれも例えばCMOSインバータによって構成され、入力
信号がハイレベル=OV)の場合はそのままハイレベルの
信号を出力し、一方、入力信号がローレベル(=V1もし
くはVx)の場合はそれよりも確実に低いローレベル(=
V2)にレベルシフトして出力する回路である。
First, in the normal state (when the battery is not replaced), the switch S 1 is in the off state as shown in FIG. 11 (a). In this case, one input of the NOR circuit 61a in the latch circuit 61 becomes low level (= V 0 ). The output of the other latch circuit 62 is normally low level (= V 1 > V 2 ),
Since this V 1 is surely switched to the low level V 2 by the level shifter 63, the other input of the NOR circuit 61a also becomes low level (= V 2 ). Therefore, the output of the NOR circuit 61a becomes high level, and accordingly, the output of the NOR circuit 61b (signal c) becomes low level. The level shifter 63 and the level shifters 64, 68, 69, 71 described later are
Both are composed of CMOS inverters, for example, when the input signal is high level = OV), the high level signal is output as it is, while when the input signal is low level (= V 1 or Vx), it is more reliable Low level (=
This is a circuit that level-shifts to V 2 ) and outputs.

上記信号cがローレベルである場合は、インバータ回路
61cの出力(信号d)がハイレベルになると共に、レベ
ルシフタ64の出力(信号e)がローレベル(=V2)にな
る。従って、トランジスタ65はオン状態であり、かつト
ランジスタ66はオフ状態である(この時点ではトランジ
スタ67もオフ状態にある)ため、メモリ部16に供給され
る電圧Vxとしては、第1図に示した定電圧回路13の出力
電圧であるV1が選択され出力される。またこの場合、ラ
ッチ回路61中のノア回路61dの一方の入力信号cと同じ
ローレベルとなり、またもう一方の入力は、主回路部15
からのチップイネーブル信号CE2(=V0もしくはV1)が
レベルシフタ68を介して得られレベル(=V0もしくは
V2)となる。よってノア回路61dからは上記チップイネ
ーブル信号CE2の反転した信号が出力され、これがメモ
リ部16に対し実際のチップイネーブル信号CETとして与
えられる。このチップイネーブル信号が与えられた時に
のみ、メモリ部16が動作可能となる。また、主回路部15
からのリード・ライト信号R2がレベルシフタ69を介して
得られる信号(=V0もしくはV2)が、メモリ部16に対し
実際のリード・ライト信号RTとして与えられる。このリ
ード・ライト信号RTがハイレベルの時には、主回路部15
からのアドレス信号A(A0乃至A11)に基づきデータ出
力信号O(O0乃至O3)の読み出しが可能となり、一方ロ
ーレベルの時には、アドレス信号Aに基づきデータ入力
信号I(I0乃至I4)の書き込みが可能となる。
When the signal c is low level, an inverter circuit
The output (signal d) of 61c becomes high level, and the output (signal e) of the level shifter 64 becomes low level (= V 2 ). Therefore, since the transistor 65 is on and the transistor 66 is off (the transistor 67 is also off at this point), the voltage Vx supplied to the memory section 16 is shown in FIG. The output voltage V 1 of the constant voltage circuit 13 is selected and output. Further, in this case, one of the input signals c of the NOR circuit 61d in the latch circuit 61 has the same low level, and the other input has the main circuit portion 15d.
The chip enable signal CE 2 (= V 0 or V 1 ) from is obtained through the level shifter 68 and the level (= V 0 or V 0
V 2 ). Therefore, a signal obtained by inverting the chip enable signal CE 2 is output from the NOR circuit 61d, and this signal is given to the memory section 16 as the actual chip enable signal CET. The memory unit 16 can operate only when the chip enable signal is given. In addition, the main circuit section 15
A signal (= V 0 or V 2 ) obtained from the read / write signal R 2 from the memory cell via the level shifter 69 is given to the memory section 16 as an actual read / write signal RT. When the read / write signal RT is at high level, the main circuit section 15
It becomes possible to read the data output signals O (O 0 to O 3 ) based on the address signals A (A 0 to A 11 ) from the other side. On the other hand, at the low level, the data input signals I (I 0 to I 3 I 4 ) can be written.

次に、電池交換時について、第6図を参照しながら述べ
る。まず、電池を取外すにあたっては、第10図に示した
裏蓋24が開けられ、更にその内側にある抑えリング30が
取外される。すると、第11図(b)に示したように、ス
イッチS1がオン状態に切換わる(第6図(a))。スイ
ッチS1がオンすると、主回路部15では、RAM43に記憶さ
れているデータのうち消去されては困るデータ、すなわ
ち第4図に示したレジスタP0の内容(メモリ部16に記憶
されているデータの本数)及びレジスタP1の内容(メモ
リ部16に記憶されているデータのうち、現在の指定され
ているデータのアドレス)等を、メモリ部16の第2図に
示したレジスタY0,Y1等へ転送する。
Next, the time of battery replacement will be described with reference to FIG. First, when removing the battery, the back lid 24 shown in FIG. 10 is opened, and the retaining ring 30 inside thereof is removed. Then, as shown in FIG. 11 (b), the switch S 1 is turned on (FIG. 6 (a)). When the switch S 1 is turned on, in the main circuit unit 15, data which is difficult to be erased among the data stored in the RAM 43, that is, the contents of the register P 0 shown in FIG. 4 (stored in the memory unit 16). The number of data), the contents of the register P 1 (address of the currently designated data among the data stored in the memory unit 16), etc. are shown in the register Y 0 , Transfer to Y 1 etc.

なお、スイッチS1がオンすることによりノア回路61aの
一方の入力がハイレベル(=V0)となり、その出力がロ
ーレベルに切換わるが、上記の転送が終了するまでは信
号bが相変わらずローレベルであり、ノア回路61eの出
力がハイレベルのままであるため、ノア回路61bの出力
(信号c)もローレベルのままとなる。すなわち、メモ
リ部16へ供給される電圧Vxとしては、V1が選択されたま
まである。
When the switch S 1 is turned on, one input of the NOR circuit 61a becomes high level (= V 0 ), and its output switches to low level, but the signal b remains low until the above transfer is completed. Since the output is the level and the output of the NOR circuit 61e remains at the high level, the output (signal c) of the NOR circuit 61b also remains at the low level. That is, as the voltage Vx supplied to the memory unit 16, V 1 remains selected.

上記のデータ転送が終了したところで、主回路部15はラ
ッチ回路62への入力信号(すなわちメモリ部16への入力
信号I2)をハイレベルにして送出すると共に信号aをト
リガとしてラッチ回レベルになるため、トランジスタ65
がオフし、路62に与える。これによりラッチ回路62は信
号I2を取り込み出力がハイレベルとなり、よって信号b
が第6図(b)に示すようにハイレベルに切換わる。す
ると、ノア回路61eの出力がローレベルになるため、ノ
ア回路61bの2つの入力がいずれもローレベルとなり、
よってその出力(信号c)は第6図(c)に示すように
ハイレベルに切換わる。
When the above-mentioned data transfer is completed, the main circuit section 15 sets the input signal to the latch circuit 62 (that is, the input signal I 2 to the memory section 16) to the high level and sends it out, and at the same time, the signal a is set to the latch time level. Therefore, the transistor 65
Turns off and gives on road 62. As a result, the latch circuit 62 takes in the signal I 2 and the output becomes high level.
Switches to a high level as shown in FIG. 6 (b). Then, since the output of the NOR circuit 61e becomes low level, both inputs of the NOR circuit 61b become low level,
Therefore, its output (signal c) is switched to the high level as shown in FIG. 6 (c).

上記信号cがハイレベルとなった場合は、主回路部15か
らのチップイネーブル信号CE2にかかわらず、ノア回路6
1dの出力(実際のチップイネーブル信号CET)が第6図
(d)に示すようにローレベルとなるため、メモリ部16
の動作が不可能となる。また、この場合、インバータ回
路61cの出力である信号dが第6図(e)に示すように
ローレベルになると共に、レベルシフタ64の出力である
信号eが第6図(f)に示すようにハイレベルになるた
め、トランジスタ65がオフし、かつトランジスタ66がオ
ンする。これにより、メモリ部16へ供給される電圧Vxと
しては、電池電圧であるV2が選択される。この際Vxは、
第6図(h)に示すように、コンデンサC1の充電曲線に
沿ってV1からV2まで変化する。この際、コンデンサC1と
電池11との間にダイオード70が接続されることにより、
電流の逆流が防止される。なお、信号cは、ローレベル
(=Vx)を確実に低いローレベル(=V2)に切換えるた
めレベルシフタ71を介して主回路部15に送られる。
When the signal c becomes high level, regardless of the chip enable signal CE 2 from the main circuit section 15, the NOR circuit 6
Since the output of 1d (actual chip enable signal CET) becomes low level as shown in FIG. 6 (d), the memory unit 16
Becomes impossible. Further, in this case, the signal d which is the output of the inverter circuit 61c becomes the low level as shown in FIG. 6 (e), and the signal e which is the output of the level shifter 64 is as shown in FIG. 6 (f). Because of the high level, the transistor 65 turns off and the transistor 66 turns on. As a result, the battery voltage V 2 is selected as the voltage Vx supplied to the memory unit 16. At this time, Vx is
As shown in FIG. 6 (h), it changes from V 1 to V 2 along the charging curve of the capacitor C 1 . At this time, by connecting the diode 70 between the capacitor C 1 and the battery 11,
Backflow of current is prevented. The signal c is sent to the main circuit unit 15 via the level shifter 71 in order to reliably switch the low level (= Vx) to the low level (= V 2 ).

以上のことから、電池交換時には、電池11を取外すに先
立って(抑えリング30を開くと)スイッチS1が投入さ
れ、その後に電池電圧V2がメモリ部16に供給されると共
に、電池電圧V2によってコンデンサC1が充電される。な
お電池11を取外す前に、第10図に示したACスイッチS2を
オンするようにすれば、万一トランジスタ66がオンに切
換わらずにいた場合であっても、これに対して並列接続
されたもう1つのトランジスタ67をオンすることができ
るので、メモリ部16およびコンデンサC1へ電池電圧V2を
確実に供給することができる。
From the above, when replacing the battery, the switch S 1 is turned on (when the holding ring 30 is opened) before the battery 11 is removed, and then the battery voltage V 2 is supplied to the memory unit 16 and the battery voltage V 2 charges capacitor C 1 . If the AC switch S 2 shown in FIG. 10 is turned on before removing the battery 11, even if the transistor 66 has not been switched on, the parallel connection is made to this. Since the other transistor 67 that has been turned on can be turned on, the battery voltage V 2 can be reliably supplied to the memory section 16 and the capacitor C 1 .

その後、第10図に示した下部ハウジング26から電池11を
取外した場合、電圧V1,V2は第6図に示す如くいずれも
ゼロになる。この間においては第6図(h)に示すよう
に、コンデンサC1の放電電圧がメモリ部16に供給され
る。この際、コンデンサC1に初めに充電されている電圧
は、電圧V1の少なくとも2倍近くの高い電圧V2であるた
め、その充電電圧でメモリ部16を補償できる時間は非常
に長くなる。なお、電池11が取外されることにより、電
圧V1出力がなくなるので主回路部15の各部は動作停止と
なり、第3図に示した発振器46も発振を停止する。
After that, when the battery 11 is removed from the lower housing 26 shown in FIG. 10, the voltages V 1 and V 2 become zero as shown in FIG. During this period, the discharge voltage of the capacitor C 1 is supplied to the memory section 16 as shown in FIG. 6 (h). At this time, the voltage charged initially in the capacitor C 1, because it is at least twice near the high voltage V 2 voltage V 1, the time that can compensate for the memory unit 16 is very long in its charging voltage. When the battery 11 is removed, the output of the voltage V 1 is lost, so that the operation of each part of the main circuit part 15 is stopped and the oscillator 46 shown in FIG. 3 also stops oscillating.

新しい電池を下部ハウジング26に装着した場合は、その
電池電圧V2がメモリ部16及びコンデンサC1に供給され、
電気Vxは第6図(h)に示すようにコンデンサC1の充電
曲線に沿ってV2まで上昇する。この時点では、主回路部
15の各部はまだ動作が停止されたままである。そこで次
に、第6図(g)に示すようにACスイッチS2をオンすれ
ば、第3図に示した発振器46が発振を開始し、それに伴
い各処理(例えば、後述する第7図の処理)が開始す
る。
When a new battery is installed in the lower housing 26, the battery voltage V 2 is supplied to the memory unit 16 and the capacitor C 1 ,
Electricity Vx rises to V 2 along the charging curve of the capacitor C 1 as shown in Fig. 6 (h). At this point, the main circuit section
Each part of 15 is still stopped. Then, next, when the AC switch S 2 is turned on as shown in FIG. 6 (g), the oscillator 46 shown in FIG. 3 starts oscillating, and accordingly, each process (for example, as shown in FIG. Processing) starts.

その後、新しい電池を覆って抑えリング30を取付ける
と、スイッチS1が第11図(a)にしたようにオフ状態に
切換わる。スイッチS1がオフすると、一定の立ち上がり
時間後、主回路部15からラッチ回路62へ入力信号(すな
わちメモリ部16への入力信号I2)がローレベルに設定さ
れ、それと共に信号aがトリガとしてラッチ回路62に与
えられる。これにより、ラッチ回路62の出力がローレベ
ル(=V1)となるので、レベルシフタ63の出力(信号
b)も第6図(b)に示すように確実ローレベル(=
V2)となる。すると、ノア回路61aの2つの入力はいず
れもローレベルとなるので、その出力がハイレベルに切
換り、それに伴いノア回路61bの出力(信号c)も第6
図(c)に示すようにローレベルに切換わる。
Then, when the new battery is covered and the retaining ring 30 is attached, the switch S 1 is switched to the off state as shown in FIG. 11 (a). When the switch S 1 is turned off, after a certain rise time, the input signal from the main circuit unit 15 to the latch circuit 62 (that is, the input signal I 2 to the memory unit 16) is set to the low level, and at the same time, the signal a serves as a trigger. It is applied to the latch circuit 62. As a result, the output of the latch circuit 62 becomes low level (= V 1 ), so that the output of the level shifter 63 (signal b) is also surely low level (= V 1 ), as shown in FIG. 6 (b).
V 2 ). Then, since the two inputs of the NOR circuit 61a are both at the low level, the output thereof is switched to the high level, and the output of the NOR circuit 61b (signal c) is accordingly changed to the sixth level.
As shown in FIG. 7C, the level is switched to the low level.

信号cがローレベルとなったことにより、インバータ回
路61cの出力(信号d)が第6図(e)に示すようにハ
イレベルとなり、またレベルシフタ64の出力(信号e)
が第6図(f)に示すようにローレベルとなる。よっ
て、トランジスタ65がオンし、かつトランジスタ66がオ
フする(トランジスタ67も信号ACがない限りオフ状態に
ある)ことから、メモリ部16へ供給される電圧Vxが第6
図(h)に示すようにV2からV1に切換わる。また、ノア
回路61dの出力(信号CET)には、主回路部15からのチッ
プイネーブル信号CE2の反転したレベルが現れ、もしチ
ップイネーブル信号CE2がローレベルであれば、信号CET
は第6図(d)に示すようにハイレベルとなり、メモリ
部16が動作可能となる。
Since the signal c becomes low level, the output of the inverter circuit 61c (signal d) becomes high level as shown in FIG. 6 (e), and the output of the level shifter 64 (signal e).
Becomes low level as shown in FIG. 6 (f). Therefore, since the transistor 65 is turned on and the transistor 66 is turned off (the transistor 67 is also in an off state unless there is a signal AC), the voltage Vx supplied to the memory unit 16 is the sixth.
As shown in the figure (h), it switches from V 2 to V 1 . In addition, an inverted level of the chip enable signal CE 2 from the main circuit unit 15 appears in the output (signal CET) of the NOR circuit 61d, and if the chip enable signal CE 2 is low level, the signal CET
Becomes high level as shown in FIG. 6 (d), and the memory section 16 becomes operable.

その後、前述した電池の取外し前にRAM43からメモリ部1
6のレジスタY(第2図参照)に転送されていたデータ
が、RAM43の元のレジスタに戻される。そして、それら
のデータについてのエラーチェック等が行われた後、通
常時の動作が開始される。上記エラーチェックの詳細に
ついては、第8図に基づき後述する。なお、通常時にお
いてはACスイッチS2がオンされた場合は、メモリ部16及
びRAM43に記憶されているデータが全てクリアされる
他、各部の初期化が行われる。
Then, from the RAM43 to the memory unit 1 before removing the battery described above.
The data transferred to the register Y of 6 (see FIG. 2) is returned to the original register of the RAM 43. Then, after an error check or the like is performed on those data, the normal operation is started. Details of the error check will be described later with reference to FIG. In the normal state, when the AC switch S 2 is turned on, all the data stored in the memory unit 16 and the RAM 43 are cleared, and each unit is initialized.

次に第3図に示した主回路部15による全体的な処理動作
について、第7図に基づき説明する。なお、第7図で使
用されているフラグF0,F1,F2は第4図に示したものと同
一であり、F0は電池電圧の低下時に「1」とされるフラ
グ、F1は電池交換時にスイッチS1がオフされた(すなわ
ち抑えリング30が開けられた)時に「1」とされるフラ
グ、F2はキーがノーファンクションとされた時に「1」
とされるフラグである。これらのフラグはACスイッチS2
がオンされることにより、すべて「0」になる。
Next, the overall processing operation by the main circuit section 15 shown in FIG. 3 will be described with reference to FIG. The flags F 0 , F 1 and F 2 used in FIG. 7 are the same as those shown in FIG. 4, and F 0 is a flag that is set to “1” when the battery voltage drops, and F 1 "1" when the flag switch S 1 when the battery is replaced, which is said to have been turned off (i.e. presser ring 30 is opened) during "1", F 2 is the key was a no function
Is a flag. These flags are AC switch S 2
Are turned on, all become "0".

まずステップT1において、例えば時計機能、アラーム機
能、ストップウォッチ機能およびデータバンク機能等の
各種機能に関し、通常の計時処理やキー処理を行う。た
だし、フラグF2が1であれば、上記の処理を行わない。
その後、ステップT2で電池電圧(V2)が所定レベルより
も低下しているかどうかを判断し、もし低下していれば
ステップT3に進み、ここで例えば表示等により電池電圧
の低下を知らせ、それと同時にフラグF0に1を入れる。
なお、電池電圧の判断は、第1図に示した電圧検出回路
14の出力に基づいて行われる。
First, in step T 1 , normal timekeeping processing and key processing are performed for various functions such as a clock function, an alarm function, a stopwatch function, and a data bank function. However, if the flag F 2 is 1, the above process is not performed.
After that, in step T 2 , it is determined whether the battery voltage (V 2 ) is lower than a predetermined level, and if it is lower, the process proceeds to step T 3 where, for example, a display etc. informs the battery voltage drop. , And at the same time, put 1 in the flag F 0 .
The battery voltage is determined by the voltage detection circuit shown in FIG.
Based on 14 outputs.

続いてステップT4において、ステップS1がオン状態にあ
るかどうか(すなわち、第10図に示した抑えリング30が
開けられているかどうか)を見て、スイッチS1がオンで
あれば、ステップT5でF1=0かどうかを見る。スイッチ
S1がオンで、かつF1=0の場合は、電池交換のために抑
えリング30が開けられた直後の状態であることから、ス
テップT6でフラグF2が1かどうか(すなわち、キーがノ
ーファンクションにされているかどうか)見て、F2=1
でなければステップT7でF2に1を入れることによりキー
をノーファンクションにする。F2=1となっている場合
は、上述したようにステップT1の処理が行われない。続
いてステップT6へ進み、前述したRAM43からメモリ部16
へのデータ転送を行い、その終了後、ステップT9でバッ
クアップ処理として信号eを電圧制御部17へ送る(第5
図及び第6図(b)参照)。この信号eにより、メモリ
部16への供給電圧VxがV1からV2に切換えられ(第6図
(g)参照)、コンデンサC1によるバックアップが可能
になる。
Then, in step T 4 , whether or not step S 1 is in the ON state (that is, whether or not the retaining ring 30 shown in FIG. 10 is opened) is checked, and if switch S 1 is in the ON state, See if F 1 = 0 at T 5 . switch
If S 1 is on and F 1 = 0, it means that the pressing ring 30 has just been opened for battery replacement, so at step T 6 , whether the flag F 2 is 1 (that is, the key Is not functioning), see F 2 = 1
If not, the key is made non-functioning by entering 1 in F 2 in step T 7 . When F 2 = 1 is set, the process of step T 1 is not performed as described above. Proceeding to step T 6, the memory unit 16 from the RAM43 the aforementioned
Transfers data to send after its completion, the signal e to the voltage control unit 17 as a backup process in step T 9 (5
See Fig. And Fig. 6 (b)). By this signal e, the voltage Vx supplied to the memory section 16 is switched from V 1 to V 2 (see FIG. 6 (g)), and backup by the capacitor C 1 becomes possible.

一方、上記ステップT4において、スイッチS1がオフ状態
にある場合は、ステップT10でフラグF1=0かどうかを
見る。スイッチS1がオフで、かつF1=0の場合には、電
池交換が終了して抑えリング30が閉じられた直後の状態
であることから、ステップT11で、前述したメモリ部16
からRAM43へのデータ転送(ステップT8で転送されたデ
ータを元に戻す処理)を行う。続いて、ステップT12に
進み、上記の転送されたデータ及びメモリ部16内のデー
タについてエラー検出を行う。この処理については、第
8図に基づき後述する。エラーが発見された場合には、
ステップT15で全てのデータをクリアし、かつ各部の初
期化(イニシャライズ)を行うことにより、以後の正常
な処理を可能にする。
On the other hand, when the switch S 1 is in the off state in the step T 4 , it is checked in step T 10 whether the flag F 1 = 0. Since the switch S 1 is off, and in the case of F 1 = 0 is the state immediately after the battery replacement ring 30 restrained ends closed, at step T 11, the memory unit 16 described above
Transfer data (processing to restore the data transferred in Step T 8) to RAM43 from. Then, in step T 12 , error detection is performed on the transferred data and the data in the memory section 16. This processing will be described later with reference to FIG. If an error is found,
Clear all data in step T 15, and by performing the initialization of each part (initialization), to allow for normal processing thereafter.

また、上記ステップT10でF1=0でなければ、既に電池
交換が終了し(あるいは、電池交換がまだ行われておら
ず)通常の処理が続行されている状態であることから、
ステップT13でフラグF1に1を入れた後、ステップT14で
ACスイッチS2の操作の有無を見る。ACスイッチS2が操作
された時は、ステップT15で全てのデータをクリアし、
かつ各種の初期化を行う。
If F 1 = 0 is not satisfied in step T 10 , the battery replacement has already been completed (or the battery has not been replaced), and normal processing is continuing,
After setting 1 to flag F 1 in step T 13 , in step T 14
Check if AC switch S 2 is operated. When the AC switch S 2 is operated, clear all data in step T 15 .
And various initialization is performed.

次に、上記ステップT12のエラー検出処理を第8図を用
いて説明する。
Will now be described with reference to FIG. 8 error detection process in step T 12.

まずステップU1において、上記ステップT11で転送され
た本数データが所定の本数(すなわち、第2図に示した
メモリ部16のレジスタXに記憶可能な最大本数であり、
例えば50本)の範囲内にあるかどうかを見て、この範囲
内になければ「エラー」とする。本数データが所定の本
数の範囲内にある場合は、ステップU2でレジスタnに1
を入れる。
First, in step U 1 , the number data transferred in step T 11 is a predetermined number (that is, the maximum number that can be stored in the register X of the memory unit 16 shown in FIG.
For example, check whether it is within the range of 50 lines, and if it is not within this range, determine "Error". If the number data is within the predetermined number range, 1 is set in register n in step U 2.
Put in.

そこで次に、ステップU3でnの内容が上記の本数データ
以下であるかどうかを見て、本数データ以下であればス
テップU4に進んでレジスタiに1を入れる。そしてステ
ップU5で、メモリ部16に記憶されているn本目のデータ
に含まれる項目データのうちi番目の文字がアルファベ
ットの「A」〜「Z」及び「−」(ハイフン)のいずれ
がであるかを見て、この範囲になければ「エラー」とす
る。上記i番目の文字が上記の範囲にあれば、ステップ
U6でレジスタiに1を加える。そしてステップU7でiの
内容が項目データの最大文字数である6以下かどうかを
見て、iがまだ6以下であればステップU5にもどる。す
なわち、エラーがない限り、項目データの全ての文字に
ついて上記ステップU5のチェックを行う。
Then, next, in step U 3 , it is checked whether the content of n is less than the above-mentioned number data, and if it is less than the number data, the process proceeds to step U 4 to put 1 in the register i. Then, in step U 5 , the i-th character of the item data included in the n-th data stored in the memory unit 16 is any one of the letters “A” to “Z” and “-” (hyphen). See if there is, and if it is not within this range, it will be an "error". If the above i-th character is in the above range, step
U 6 adds 1 to register i. Then, in step U 7 , whether the content of i is 6 or less, which is the maximum number of characters of the item data, is checked. If i is still 6 or less, the process returns to step U 5 . That is, unless there is an error, the above step U 5 is checked for all the characters of the item data.

上記ステップU7でi>6となった場合は、ステップU8に
進んでiに1を入れる。そして、ステップU9で、n本目
のデータに含まれる数字データのうちi番目の数字が
「0」〜「9」及び「〜」(ハイフン)のいずれかであ
るかを見て、この範囲になければ「エラー」とする。上
記i番目の数字が上記の範囲にあれば、ステップU10で
iに1を加える。そして、ステップU11で、iの内容が
数字データの最大文字数である12以下かどうかを見て、
iがまだ12以下であればステップU9に戻る。すなわち、
エラーがない限り、数字データの全ての数字について上
記ステップU9のチェックを行う。
If i> 6 in step U 7 , the process proceeds to step U 8 and 1 is added to i. Then, in step U 9 , it is checked whether the i-th number of the numerical data included in the n-th data is “0” to “9” or “to” (hyphen), and this range is set. If not, an "error" is returned. If the i-th number is within the above range, 1 is added to i in step U 10 . Then, in step U 11 , it is checked whether the content of i is 12 or less, which is the maximum number of characters in the numerical data,
If i is still 12 or less, return to step U 9 . That is,
Unless an error, for all the digit in the data checking in step U 9.

上記ステップU11でi>12となった場合は、ステップU12
でnに1を加えた後、ステップU3に戻ってnが本数デー
タ以下であるかどうかを見る。nが本数データ以下であ
れば、そのn本目のデータについて新たに上記ステップ
U4〜U12の処理を行うことにより、エラーチェックをす
る。このようにして、本数データに等して全データにつ
いてエラーチェックが終了したら、すなわちステップU3
でnが本数データを越えたら、エラー検出処理を終了す
る。
If i> 12 in step U 11 above, step U 12
After adding 1 to n, return to step U 3 to see if n is less than or equal to the number data. If n is less than or equal to the number of data, the above step is newly performed for the nth data.
By performing the processing of the U 4 ~U 12, the error check. In this way, when the error check is completed for all data including the number data, that is, step U 3
When n exceeds the number data, the error detection process is terminated.

ただし、第7図及び第8図に示した処理は、電池の挿入
後はACスイッチS2をオンしないと開始しないようになっ
ている。ACスイッチS2をオンした場合は、上述したフラ
グF0,F1,F2やレジスタn,i等には0が入れられる。
However, the processing shown in FIGS. 7 and 8 is not started unless the AC switch S 2 is turned on after the battery is inserted. When the AC switch S 2 is turned on, 0 is put in the above-mentioned flags F 0 , F 1 , F 2 and registers n, i.

なお、第7図には示さなかったが、フローの最後に表示
処理を行う、この処理は、第3図において、RAM43の表
示レジスタD(第4図参照)を表示制御部51により液晶
装置50に表示させる処理である。その表示例を第9図に
示す。その表示例を第9に示す。同図(a)は通常の時
刻表示の一例であり、この例では現在時刻が「1986年12
月29日月曜日午後10時58分50秒」であることを示してい
る。同図(b)はデータバンク表示の一例であり、上側
の表示領域には名前や文字等からなる6文字分の項目デ
ータ(第2図におけるレジスタXaの内容)が表示され、
下側の表示領域には上記項目データに対応する電話番号
等からなる12文字分の数字データ(第2図におけるレジ
スタXbの内容)が表示される。同図の例では、「CASI
O」の電話番号が「0425-55-7211」であることを示して
いる。また、第9図(a)に示したような通常の時刻表
示中に電池電圧の低下が検出された時(すなわち上記の
ステップT3でF0に1が入れられた時)は、例えば第9図
(c)に示すように、「Bat.」が表示され、これにより
使用者は電池電圧が低下したことを知ることができる。
電池交換のために裏蓋24を開け、更に抑えリング30を開
けた場合(すなわちスイッチS1がオン状態にある時)
は、例えば第9図(d)に示すように「OPEN」が表示さ
れ、これにより、たとえキーを操作してもノーファンク
ションであることが知らされる。電池交換を終えて抑え
リング30及び裏蓋24を閉じた直後は上記ステップT12(U
1〜U12)によりエラー検出が行われるが、このエラー検
出中は例えば第9図(e)に示すように「CHECK」が表
示される。
Although not shown in FIG. 7, a display process is performed at the end of the flow. In this process, the display control unit 51 controls the display register D (see FIG. 4) of the RAM 43 in FIG. It is a process to be displayed on. An example of the display is shown in FIG. A ninth display example is shown. The figure (a) is an example of a normal time display. In this example, the current time is "12
It is 10:58:50 pm on Monday, the 29th of the month. " FIG. 2B is an example of a data bank display, in which the item data (contents of the register Xa in FIG. 2) for 6 characters including names and characters is displayed in the upper display area.
In the lower display area, 12-character numeric data (contents of register Xb in FIG. 2) consisting of a telephone number or the like corresponding to the above item data is displayed. In the example of the figure, "CASI
It indicates that the telephone number of "O" is "0425-55-7211". Further, when a drop in the battery voltage is detected during the normal time display as shown in FIG. 9A (that is, when F 0 is set to 1 in step T 3 above), for example, As shown in FIG. 9 (c), “Bat.” Is displayed, which allows the user to know that the battery voltage has dropped.
When the back cover 24 is opened to replace the battery and the retaining ring 30 is further opened (that is, when the switch S 1 is in the ON state)
For example, "OPEN" is displayed as shown in FIG. 9 (d), thereby notifying that it is no function even if the key is operated. Immediately after the replacement of the batteries and the closing of the retaining ring 30 and the back lid 24, the above step T 12 (U
An error detection is performed by 1 ~U 12), during this error detection is displayed "CHECK" As shown in example FIG. 9 (e).

上述したように、本実施例では、電池交換の後バックア
ップされたメモリ部16のデータが正しいか否かをチェッ
クしており、正しい時のみ、そのデータが残るようにな
っているので、誤まってまちがったデータを用いてしま
うことはなくなる。
As described above, in the present embodiment, it is checked whether or not the data in the memory unit 16 backed up after the battery replacement is correct, and only when the data is correct, the data remains so that it is erroneous. You will no longer use the wrong data.

尚、上述した如く、データが正しいことが判断された際
には、データが氏名及び電話番号のデータの場合、第7
図のエラー検出ステップT12の後に、氏名データに基づ
いてデータA,B,C順に並びかえてメモリ部16に順次記憶
させる編集ステップを設けてもよく、また、例えばデー
タが、日付、時刻及びその時刻のスケジュールからなる
スケジュールデータである場合には、ステップT12の後
に、データを所定の順序、即ち、日付、時刻順に並びか
える編集手段の処理を設ければ極めて便利なものとな
る。
As described above, when it is determined that the data is correct, if the data is the name and telephone number data, the seventh
After the error detection step T 12 in the figure, an edit step may be provided in which data A, B, and C are rearranged in order based on the name data and sequentially stored in the memory unit 16. Further, for example, the data is date, time, and In the case of schedule data consisting of a schedule at that time, it will be extremely convenient to provide processing of an editing means for rearranging the data in a predetermined order, that is, in the order of date and time after step T 12 .

なお、上記実施例ではデータバンク機能付き電子腕時計
に適用されたものであるが、本考案はこのような電子時
計に限らず、電池交換時にバックアップの必要な各種の
メモリ部を有する様々な電子機器、例えば小型電子式計
算機、電子手帳、電子スケジュール、電子カメラ、ワー
プロ等に適用され得るものである。
Although the above embodiment is applied to an electronic wrist watch with a data bank function, the present invention is not limited to such an electronic timepiece, and various electronic devices having various memory units that need to be backed up when the battery is replaced. For example, it can be applied to a small electronic calculator, an electronic notebook, an electronic schedule, an electronic camera, a word processor, and the like.

〔考案の効果〕[Effect of device]

以上説明したように本考案によれば電池交換後には、バ
ックアップされたメモリ部の内容をチェックする手段を
設けたことにより、誤まったデータをそのまま使用する
ことがないので、誤動作を防止出来る。
As described above, according to the present invention, by providing the means for checking the contents of the backed-up memory unit after the battery is replaced, the erroneous data is not used as it is, so that the malfunction can be prevented.

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

第1図は本考案の一実施例を適用したデータバンク機能
付き電子腕時計の全体回路図、 第2図は第1図中のメモリ部16の概略構成図、 第3図は第1図中の主回路部15の詳細な回路図、 第4図は第3図中のRAM43の概略構成図、 第5図は第1図中の電圧制御部17及びその近傍について
の詳細な回路図、 第6図は電圧制御部17の主要動作を説明するためのタイ
ミングチャート、 第7図は主回路部15による全体的な処理動作を示すフロ
ーチャート、 第8図は第7図中のステップT12の処理(エラー検出処
理)を詳細に示すフローチャート、 第9図(a)〜(e)は第3図中の液晶表示装置による
表示例を示す図、 第10図は本考案の一実施例を適用した上記電子腕時計の
拡大断面図、 第11図(a)及び(b)は第10図中のスイッチS1のオフ
状態及びオン状態における要部拡大断面図、 第12図は従来のバッテリバックアップ回路の一例を示す
回路図である。 11…電池、12…降圧回路、13…定電圧回路、14…電圧検
出回路、15…主回路部、16…メモリ部、17…電圧制御
部、C1…バックアップ用のコンデンサ、S1…スイッチ、
S2…ACスイッチ
FIG. 1 is an overall circuit diagram of an electronic wrist watch with a data bank function to which an embodiment of the present invention is applied, FIG. 2 is a schematic configuration diagram of a memory unit 16 in FIG. 1, and FIG. A detailed circuit diagram of the main circuit unit 15, FIG. 4 is a schematic configuration diagram of the RAM 43 in FIG. 3, and FIG. 5 is a detailed circuit diagram of the voltage control unit 17 in FIG. 1 and its vicinity, and FIG. FIG. 7 is a timing chart for explaining the main operation of the voltage control unit 17, FIG. 7 is a flowchart showing the overall processing operation by the main circuit unit 15, and FIG. 8 is the process of step T 12 in FIG. FIG. 9 (a) to FIG. 9 (e) are diagrams showing a display example by the liquid crystal display device in FIG. 3, and FIG. 10 is a diagram showing an example of applying the present invention. enlarged sectional view of the electronic wrist watch, FIG. 11 (a) and (b) are turned off and on of the switch S 1 in FIG. 10 Enlarged sectional view of state, FIG. 12 is a circuit diagram showing an example of a conventional battery backup circuit. 11 ... battery, 12 ... step-down circuit, 13 ... constant voltage circuit, 14 ... voltage detection circuit, 15 ... main circuit unit, 16 ... memory, 17 ... voltage control unit, C 1 ... capacitor for backup, S 1 ... switch ,
S 2 … AC switch

Claims (1)

【実用新案登録請求の範囲】[Scope of utility model registration request] 【請求項1】電池電源と、この電池電源の出力電圧を降
圧して降圧電圧を出力する降圧手段と、この降圧手段か
ら出力される降圧電圧に基づいて動作する第一のデータ
記憶メモリと、前記電池電源の電圧低下を検出する電圧
検出手段と、この電圧検出手段によって検出され電圧低
下を報知する報知手段と、前記電池電源の電池交換に先
立ってオンされ電池交換後オフされるスイッチ手段と、
このスイッチ手段がオンされた際に前記第一のデータ記
憶メモリに記憶されているデータが転送される第二のデ
ータ記憶メモリと、前記降圧手段から出力される降圧電
圧によって充電され前記第二のデータ記憶メモリに記憶
されたデータを保護するために第二のデータ記憶メモリ
に接続されたコンデンサと、前記データの転送が終了し
た際に前記コンデンサの充電電圧を前記降圧手段から出
力される降圧電圧から前記電池電源の出力電圧に切換え
前記スイッチ手段がオフされた際に前記降圧電圧に戻す
電圧切換手段と、前記スイッチ手段がオフされた際に前
記第二のデータ記憶メモリに転送されたデータを前記第
一のデータ記憶メモリに戻す転送手段と、この転送手段
によってデータが戻された後前記第一及び第二のデータ
記憶メモリに記憶されているデータをチェックするチェ
ック手段とを具備してなるメモリバックアップ装置。
1. A battery power source, a step-down means for stepping down an output voltage of the battery power source to output a step-down voltage, and a first data storage memory which operates based on the step-down voltage output from the step-down means. Voltage detection means for detecting a voltage drop of the battery power supply, notification means for notifying a voltage drop detected by the voltage detection means, and switch means for turning on the battery power supply prior to battery replacement and turning off after battery replacement ,
A second data storage memory to which the data stored in the first data storage memory is transferred when the switch means is turned on, and the second data storage memory to be charged by the step-down voltage output from the step-down means. A capacitor connected to the second data storage memory for protecting the data stored in the data storage memory; and a step-down voltage output from the step-down means for charging the capacitor when the data transfer is completed. To the output voltage of the battery power source from the voltage switching means for returning to the step-down voltage when the switch means is turned off, and the data transferred to the second data storage memory when the switch means is turned off. Transfer means for returning to the first data storage memory, and storing in the first and second data storage memories after data is returned by the transfer means Memory backup device comprising; and a checking means for checking the data being.
JP1987183278U 1987-11-30 1987-11-30 Memory backup device Expired - Lifetime JPH0637471Y2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1987183278U JPH0637471Y2 (en) 1987-11-30 1987-11-30 Memory backup device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1987183278U JPH0637471Y2 (en) 1987-11-30 1987-11-30 Memory backup device

Publications (2)

Publication Number Publication Date
JPH0187451U JPH0187451U (en) 1989-06-09
JPH0637471Y2 true JPH0637471Y2 (en) 1994-09-28

Family

ID=31474707

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1987183278U Expired - Lifetime JPH0637471Y2 (en) 1987-11-30 1987-11-30 Memory backup device

Country Status (1)

Country Link
JP (1) JPH0637471Y2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2728964B2 (en) * 1990-01-30 1998-03-18 キヤノン株式会社 Camera data recording device and camera

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58108534U (en) * 1982-01-14 1983-07-23 横河電機株式会社 Volatile memory battery backup device
JPS59178694A (en) * 1983-03-30 1984-10-09 Hitachi Ltd external storage device
JPS6027922A (en) * 1983-07-26 1985-02-13 Canon Inc Electronics
JPS61101440U (en) * 1984-12-07 1986-06-28
JPS61115236U (en) * 1984-12-28 1986-07-21
JPS6227843A (en) * 1985-07-29 1987-02-05 Sharp Corp Electronic equipment
JPS6293739A (en) * 1985-10-19 1987-04-30 Fujitsu Ltd Protecting system for internal memory of processor

Also Published As

Publication number Publication date
JPH0187451U (en) 1989-06-09

Similar Documents

Publication Publication Date Title
US4924075A (en) Smart IC card
EP0402759B1 (en) Portable electronic device having versatile program storage
US6952139B2 (en) Oscillator and electronic apparatus using the same
JPH0346078B2 (en)
EP0401806B1 (en) Portable electronic device having improved power source
US5438679A (en) Data storage apparatus having volatile memory and nonvolatile memory and data indication means for indicating memory storing data
US5832281A (en) Power control apparatus and power control method
KR950014996B1 (en) Data storag apparatus having volatile memory and nonvolatile memory and data indicaiton means for indicating memory storing data
JP2532447Y2 (en) Memory backup device
CN100365540C (en) Electronic device and control method thereof
JPH0687633B2 (en) Battery backup circuit
JP2577531Y2 (en) Memory backup device
US4473302A (en) Electronic device
JP2979099B2 (en) Data storage device
KR830000625B1 (en) Time data processing device
US4366545A (en) Recording type electronic apparatus
JPH0746294B2 (en) Portable electronic device
JP2002250782A (en) Electronic timepiece with generator
JPH052878Y2 (en)
JPH0990064A (en) Electronic clock with power generating mechanism
JPH0667986A (en) Information processor
JPH0667987A (en) Information processor
JPH052253U (en) Electronic device using external memory
JPS63262783A (en) Portable medium
JPH0277683A (en) alarm clock