JPS635712B2 - - Google Patents

Info

Publication number
JPS635712B2
JPS635712B2 JP57037446A JP3744682A JPS635712B2 JP S635712 B2 JPS635712 B2 JP S635712B2 JP 57037446 A JP57037446 A JP 57037446A JP 3744682 A JP3744682 A JP 3744682A JP S635712 B2 JPS635712 B2 JP S635712B2
Authority
JP
Japan
Prior art keywords
circuit
output
alarm
signal
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired
Application number
JP57037446A
Other languages
Japanese (ja)
Other versions
JPS58154687A (en
Inventor
Yasuhiko Okuyama
Takeshi Takitani
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.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo Electric 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 Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP57037446A priority Critical patent/JPS58154687A/en
Publication of JPS58154687A publication Critical patent/JPS58154687A/en
Publication of JPS635712B2 publication Critical patent/JPS635712B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G04HOROLOGY
    • G04DAPPARATUS OR TOOLS SPECIALLY DESIGNED FOR MAKING OR MAINTAINING CLOCKS OR WATCHES
    • G04D7/00Measuring, counting, calibrating, testing or regulating apparatus
    • G04D7/002Electrical measuring and testing apparatus
    • G04D7/003Electrical measuring and testing apparatus for electric or electronic clocks

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Electromechanical Clocks (AREA)
  • Electric Clocks (AREA)

Description

【発明の詳細な説明】[Detailed description of the invention]

本発明は電子時計用集積回路に関し、特にアラ
ーム機能を有するものに於いて、アラーム入力端
子及びアラーム出力端子を用いて、内部回路のテ
ストが行なえ得る電子時計用集積回路に関する。 一般にステツプモータを用いた電子時計に於い
て、アラーム機能を有するものは、機械的にアラ
ームの一致検出を行ない、アラーム一致信号をア
ラーム入力端子に印加してアラーム動作を行なつ
ている。 この様なアナログ表示の電子時計に用いられる
集積回路は、水晶振動子を接続する端子、ステツ
プモータを駆動する端子、アラーム一致信号が印
加される端子、アラーム音を発生させるためのア
ラーム信号が出力される端子、そして電源端子等
を有しており、端子数が少なくて構成できる利点
がある。しかし、従来の集積回路では、発振周波
数の調整や内部回路のテストを行なうためのテス
ト用端子が設けられてあり、またスヌーズ機能を
付加する場合にはスヌーズ端子を設けなければな
らないので、端子数が少なくて構成できるという
利点が損われるものであり、更に機能が増加する
ことに依りテスト時間も長くなる欠点を有してい
た。 本発明は上述した点に鑑みて為されたものであ
り、テスト端子を既成の端子と共用し、テストモ
ードを指定する回路を設けることに依り、テスト
端子を設けることなくテストが行えると共に、テ
スト時間も短くできる電子時計用集積回路を提供
するものである。以下図面を参照して本発明を詳
述する。 第1図は本発明の実施例を示す論理回路図であ
り、ステツプモータを用いたアラーム及びスヌー
ズ機能付のアナログ電子時計用集積回路である。
1は発振回路、2,3,4,5は第1、第2、第
3及び第4の分周回路、6は三値検出回路、7は
アラーム及びスヌーズのセツトパルス発生回路、
8はアラーム記憶用のフリツプフロツプ、9はス
ヌーズ記憶用のフリツプフロツプ、は第1
の端子であるアラーム入力端子、ALOはアラー
ムを鳴らすアラーム信号を出力するアラーム出力
端子、10はテストモード選択回路、11はテス
トパルス発生回路である。 発振回路1は、インバータ12及び帰還抵抗
R1より成り、外部端子XI及びXOに接続された水
晶振動子13により、4、194、304Hzの基準信号
を発生し、その出力が第1の分周回路2の入力に
印加されている。第1、第2及び第3の分周回路
2,3,4はT−FFが全部で23段継続接続され
たものであり、第1の分周回路2と第2の分周回
路3との間、即ち11段目と12段目の間には、イン
バータ14及びNANDゲート15が設けられ、
また第2の分周回路3と第3の分周回路4との
間、即ち、16段目と17段目との間にもNANDゲ
ート16及びインバータ17が介在している。第
1の分周回路2の最終出力Q11は2048Hz、第2の
分周回路3の出力Q16は64Hz、第3の分周回路4
の出力Q23は1/2Hzとなつている。第3の分周回
路4の分周出力Q18、Q20、Q21、Q22はNANDゲ
ート18に印加され、NANDゲート18は、印
加された分周出力により、1秒間に1回の短いパ
ルスを作り秒信号をNORゲート19,20及
びNANDゲート21に印加している。NORゲー
ト19には分周出力Q23が印加され、一方NORゲ
ート20にはインバータ22で反転された分周出
23が印加されており、1/2Hzの分周出力Q23
依つて、1秒毎にNORゲート19,20が交互
に導通するため、出力端子OUT1とOUT2に
は、各々インバータ23,24及びインバータ2
5,26を介して、秒信号SOが交互に出力され
る。この出力端子OUT1及びOUT2にはステツ
プモータが接続され、秒信号SOに依り駆動され
る。尚インバータ24,26はステツプモータの
ドライバとなつている。 NANDゲート21及びインバータ27を介し
て、秒信号が印加された第4の分周回路5は
T−FFが9段継続接続されて成り、アラーム時
間及びスヌーズ時間を計時するものである。 三値検出回路6はインバータ28,29,3
0,31及びANDゲート32,33から構成さ
れ、インバータ28,29には第1の端子である
アラーム入力端子が接続され、ANDゲー
ト32,33の出力は各々、信号ALM,ALHと
して出力される。インバータ28,29は各々異
なるスレツシヨルドレベルを有し、インバータ2
9のスレツシヨルドレベルVT1よりもインバータ
28のスレツシヨルドレベルVT2の方が大きく形
成されている。通常、アラーム入力端子は
抵抗R2に依り、VDDレベルになつている。即ち、
VT1<VT2<の場合には、インバータ28,
29は共にオンとなり、その出力は“0”である
ため、信号ALHは“1”、信号ALMは“0”と
なつている。またVT1<<VT2の信号が印加
されると、インバータ29はオンして“0”を出
力し、インバータ28はオフして“1”を出力す
るので、信号ALHは“0”、信号ALMが“1”
となる。そして、<VT1<VT2の信号が印加
されると、インバータ28,29は共にオフし、
その出力は“1”となるため、信号ALH及び信
号ALMは共に“0”となる。例えば、VDDが
1.5Vであり、信号が1.5V〜0Vの範囲で変
化するものであるとすると、VT1は0.65V、VT2
0.85V程度に選ばれる。 通常、アラーム入力端子にはアラーム一
致検出スイツチとスヌーズスイツチとが接地レベ
ルとの間に直列接続され、設定したアラーム時刻
になると、アラーム一致検出スイツチが閉成し、
アラーム入力端子は強制的に“0”にさ
れ、またスヌーズ状態に入れるためには、アラー
ムの状態に於いて、スヌーズスイツチを一定時間
以内に開閉させ、アラーム入力端子に
“0”→“1”→“0”の信号を印加する。これ
らの信号は三値検出回路6の出力ALHの変化と
して、アラーム及びスヌーズの制御に用いられ
る。 セツトパルス発生回路7は、信号ALHの立ち
上がり及び立ち下がりを検出してセツトパルス
PU1及びPU2を出力するものであり、インバー
タ34、D−FF35,36、NANDゲート37
及びNORゲート38から構成されている。D−
FF35,36のクロツク入力には第3の分周回
路4の出力Q18が印加され、信号ALHの立ち下が
りは、D−FF35の出力とD−FF36の出力
Qとを入力するNORゲート38に依り検出され、
分周出力Q18の一周期分のパルス幅で“1”とな
るセツトパルスPU2が出力され、また、信号
ALHの立ち上がりは、信号ALH、D−FF35
の出力、D−FF36の出力Q及び分周出力Q18
を入力とするNANDゲート37に依り検出され、
分周出力Q18のパルス幅と等しいパルス幅で
“0”となるセツトパルスPU1が出力される。 セツトパルスPU2はアラームフリツプフロツ
プ8をセツト状態とすると共に、NORゲート3
9及びNANDゲート40を介して、第4の分周
回路5をリセツトし、またセツトパルスPU1は
スヌーズフリツプフロツプ9をセツト状態とする
と共にNANDゲート40を介して、第4の分周
回路5をリセツトする。 ここで、アラーム動作とスヌーズ動作を説明す
る。設定したアラーム時刻になり、アラーム入力
端子が“0”となると、信号ALHは“1”
から“0”に立ち下がる。この時出力されるセツ
トパルスPU2に依りアラームフリツプフロツプ
8はセツトされる。一方スヌーズフリツプフロツ
プ9はリセツト状態にあり、信号SNは“0”で
あり、またD−FF36の出力は“0”である
ため、NORゲート41はアラーム制御信号ALS
を“1”とする。アラーム制御信号ALSが印加
されるANDゲート42は、分周出力Q2219
印加され、アラームの間欠信号を作成し、ORゲ
ート43を介してNANDゲート44に印加する。
NANDゲート44には周波数2048Hzの分周出力
Q11が印加され、アラームの間欠信号と重畳さ
れ、インバータ45を介してアラーム出力端子
ALOに出力される。 一方、リセツトされた第4の分周回路5は秒信
号の計数を再開し、一定時間、128秒後、出力
Q30が“1”となる。このとき、リセツト状態に
あるフリツプフロツプ9の出力は“1”であ
るため、出力Q30はANDゲート46を介して、ア
ラームフリツプフロツプ8をリセツトする。よつ
て、NORゲート41はアラームフリツプフロツ
プ8の出力により遮断され、アラーム制御信号
ALSは“0”となり、アラームが止まる。 スヌーズは、アラーム状態に於いて、アラーム
入力端子に“0”→“1”→“0”の信号
を所定時間内に印加する。アラーム入力端子
ALINが“0”→“1”となると、信号ALHは
“0”→“1”に立ち上がり、このとき、NAND
ゲート37からはセツトパルスPU1が出力され、
スヌーズフリツプフロツプ9がセツトされると共
に、第4の分周回路5がリセツトされる。スヌー
ズフリツプフロツプ9がセツトされることによ
り、信号SNは“1”となり、またD−FF36の
出力も“1”であるため、NORゲート41は
アラーム制御信号ALSを“0”として、アラー
ムを停止させる。一方、D−FF36の出力は
ANDゲート47を導通状態にしているため、所
定時間後、分周出力Q25が“1”となると、スヌ
ーズフリツプフロツプ9は再びリセツトされてし
まうため、分周出力Q25が出力されないうちに、
アラーム入力端子を“1”→“0”にしな
ければならない。アラーム入力端子が
“0”になると、D−FF36の出力は“0”と
なり、ANDゲート47を遮断すると共に、セツ
トパルスPU2が出力され、第4の分周回路5が
再びリセツトされる。従つて、第4の分周回路5
が計数を再開してから出力される分周出力Q25
ANDゲート47で遮断され、またスヌーズフリ
ツプフロツプ9の出力は“0”であり、AND
ゲート46が遮断されているため、分周出力Q30
も遮断されるのでアラームフリツプフロツプ8は
リセツトされない。そして、256秒後、分周出力
Q31が“1”となると、NORゲート48の出力が
“0”となるため、スヌーズフリツプフロツプ9
がリセツトされ、信号SNは“0”となる。この
とき、NORゲート41はアラーム制御信号ALS
を“1”として、スヌーズによるアラームが為さ
れる。 テストモード選択回路10は4段継続接続され
たT−FF49,50,51,52から成り、初
段のT−FF49の入力にはNANDゲート53が
接続されている。NANDゲート53の入力には
三値検出回路6の出力ALH及びアラーム出力端
子ALOの信号が印加されている。従つて、テス
トモード選択回路10は、アラーム入力端子
ALINあるいはアラーム出力端子ALOのいずれ
かを“1”に固定し、他方に所定数のパルスを印
加することによつて、そのパルスを計数するので
ある。そして、テストモード選択回路10に設定
された内容は、各段の出力TM1,TM2,TM
3,TM4によつて、テストパルス発生回路11
に印加される。ところが、通常動作状態に於い
て、アラーム信号がアラーム出力端子ALOから
出力されているとき、スヌーズに入れる場合、ア
ラーム入力端子を“1”とするが、このと
き、信号ALHに依つてD−FF36の出力が
NORゲート41のアラーム制御信号ALSを
“0”とするまでの間、第2図の波形図に示され
る如く、アラーム出力端子ALOの信号と信号
ALH(この信号はチヤタリングを含んでいる)と
の論理積がNANDゲート53に於いて出力され
る。従つて、この信号をテストモード選択回路1
0が計数しない様にしなければならない。そこ
で、テストモード選択回路10のT−FF49,
50,51,52の各リセツト端子Rには、アラ
ーム音の作成に用いられる第1の分周回路2の分
周出力Q11が印加されている。よつて、NANDゲ
ート53の出力にパルスが生じる時には、分周出
力Q11によつて常にリセツトがかかつているので
ある。従つて、通常動作状態に於いて、テストモ
ード選択回路10を常時リセツトするためのリセ
ツト回路が省けるのである。更に、後述の説明で
明らかになるが、分周出力Q11とアラーム信号と
の時間的遅れに依つて、誤計数しても良い様に、
テストモードに入る時のテストモード選択回路1
0の計数内容を「7」以上に設定している。 テストパルス発生回路11はNANDゲート5
4,55,56,57及びインバータ58,5
9,60,61より構成され、NANDゲート5
4はテストモード選択回路10の内容が10進数で
「7」になつたとき、リセツトパルスRESETを
発生し、第2の分周回路3、第3の分周回路4、
セツトパルス発生回路7及びNORゲート39、
NANDゲート40を介して第4の分周回路5を
リセツトする。NANDゲート55には、TM4,
TM1が、NANDゲート56にはTM4,TM1
が、またNANDゲート57にはTM4,2及
びALHが印加されると共に、各々のNANDゲー
ト55,56,57には、アラーム出力端子
ALOに印加される信号がインバータ62を介し
て、共通に印加されている。そして、各々の出力
は、テストパルスTESTP1,TESTP2,
TESTP3として出力され、テストパルス
TESTP1はNANDゲート16及びインバータ1
7を介して第3の分周回路4に、テストパルス
TESTP2はNANDゲート21及びインバータ2
7を介して第4の分周回路5に、テストパルス
TESTP3はNANDゲート15を介して第2の分
周回路3に印加される。従つて、テストモード選
択回路10は「7」以上がセツトされたとき、そ
の計数内容に依つて、どの分周回路を選択するか
を決定するのである。 次に第3図のタイミング図を参照してテストモ
ードの動作を説明する。先ず、通常動作状態から
テストモードにするために、アラーム入力端子
ALINに中間レベルの信号を印加する。三値検出
回路6は中間レベルを検出し、信号ALHを“0”
に、信号ALMを“1”にする。(第3図a点)。
信号ALMはORゲート43を介して、NANDゲ
ート44に印加されるので、NANDゲート44
は導通状態となり、第1の分周回路2の分周出力
Q11をインバータ45を介してアラーム出力端子
ALOに出力する。従つて、この状態に於いて、
アラーム出力端子ALOの周波数を測定し、発振
回路1の発振周波数を調整することができると共
に第1の分周回路2の動作テストが行え得る。次
に、アラーム出力端子ALOに出力される出力Q11
が“0”となつたとき、端子XIあるいはIOから
水晶振動子13を分離する等の手段に依つて、発
振回路1の発振を停止させ、出力Q11を“0”に
保持し、テストモード選択回路10のリセツトを
解除させる。(第3図b点)。そして、アラーム出
力端子ALOに外部より強制的に“1”を印加し
て、NANDゲート53を導通可能状態とし、ア
ラーム入力端子に“1”となるパルスを8
個印加する。従つて、信号ALHに生じる8個の
パルスはNANDゲート53を介してテストモー
ド選択回路10に計数される。7個目のパルスが
計数されると、テストモード選択回路10の出力
TM4,TM3,TM2,TM1は「0111」とな
り、NANDゲート54からはインバータ58を
介してリセツト信号RESETが出力され、第2、
第3、第4の分周回路3,4,5及びセツトパル
ス発生回路7がリセツトされる。また8個目のパ
ルスが計数されると、テストモード選択回路10
の内容は「1000」となり、論理積1・TM4及
び2・TM4が“1”となるため、NANDゲー
ト55及びNANDゲート57が導通可能状態に
なる。そこで、アラーム入力端子を“0”、
即ち、信号ALHを“0”としたまま、アラーム
出力端子ALOに所定数、所定周波数のパルスを
印加すると、そのパルスはインバータ62を介し
て、NANDゲート55,57に印加されるが、
NANDゲート57は信号ALHに依り、禁止され
ているため、パルスはNANDゲート55のみを
介して、テストパルスTESTP1として出力さ
れ、第3の分周回路4に印加される。従つて、第
3の分周回路4に任意の値を設定でき、テストが
実施される。 次に上述の状態に於いて、アラーム出力端子
ALOを“0”としたまま、アラーム入力端子
ALINに所定数、所定周波数のパルスを印加する
と、信号ALHに生じるパルスはNANDゲート5
7を介して、テストパルスTESTP3として出力
され、第2の分周回路3に印加される。 また、アラーム入力端子を“0”、即ち
信号ALHを“0”にしたまま、アラーム出力端
子ALOを“1”とした後、アラーム入力端子
ALINに9個目のパルスを印加する。よつて、信
号ALHに生じる9個目のパルスはNANDゲート
53を介して、テストモード選択回路10に印加
されテストモード選択回路10は内容が「1001」
となり、論理積TM1・TM4及び2・TM4が
“1”となる。即ち、NANDゲート56,57が
導通可能状態となるが、NANDゲート57には
信号ALH“0”が印加されるため、テストパルス
TESTP3は出力されない。この状態でアラーム
出力端子ALOに所定数、所定周波数のパルスを
印加すると、このパルスは、インバータ62及び
NANDゲート56を介して、テストパルス
TESTP2として、第4の分周回路5に印加され
る。よつて、第4の分周回路5のテストが行え得
るのである。 更に、アラーム出力端子ALOを“1”として、
アラーム入力端子に10個目のパルスを印加
すると、テストモード選択回路10の内容は
「1010」となり、論理積1・TM4が“1”と
なるので、テストパルスTESTP1の出力が可能
となる。 この様に、テストモード選択回路10にパルス
を印加して、順次内容を変えることに依り、テス
トモードが繰り返し、選択できるものである。第
1表はテストモード選択回路10の内容と、発生
可能なテストパルスを示す。
The present invention relates to an integrated circuit for an electronic timepiece, and more particularly to an integrated circuit for an electronic timepiece that has an alarm function and is capable of testing an internal circuit using an alarm input terminal and an alarm output terminal. Generally, electronic watches using a step motor that have an alarm function mechanically detect coincidence of alarms and apply an alarm coincidence signal to an alarm input terminal to perform an alarm operation. The integrated circuit used in such analog display electronic clocks has a terminal to connect the crystal oscillator, a terminal to drive the step motor, a terminal to which the alarm matching signal is applied, and an alarm signal output to generate the alarm sound. It has the advantage of being able to be configured with a small number of terminals. However, in conventional integrated circuits, test terminals are provided for adjusting the oscillation frequency and testing internal circuits, and when adding a snooze function, a snooze terminal must be provided, which increases the number of terminals. The advantage of being able to configure the system with fewer functions is lost, and the test time also increases as the number of functions increases. The present invention has been made in view of the above-mentioned points, and by sharing a test terminal with an existing terminal and providing a circuit for specifying a test mode, it is possible to conduct a test without providing a test terminal, and also to perform a test without providing a test terminal. The present invention provides an integrated circuit for an electronic watch that can shorten the time. The present invention will be described in detail below with reference to the drawings. FIG. 1 is a logic circuit diagram showing an embodiment of the present invention, which is an integrated circuit for an analog electronic watch with an alarm and snooze function using a step motor.
1 is an oscillation circuit; 2, 3, 4, and 5 are first, second, third, and fourth frequency dividing circuits; 6 is a three-value detection circuit; 7 is an alarm and snooze set pulse generation circuit;
8 is a flip-flop for alarm memory, 9 is a flip-flop for snooze memory, and is the first flip-flop.
1 is an alarm input terminal, ALO is an alarm output terminal that outputs an alarm signal to sound an alarm, 10 is a test mode selection circuit, and 11 is a test pulse generation circuit. The oscillation circuit 1 includes an inverter 12 and a feedback resistor.
A crystal oscillator 13 consisting of R 1 and connected to external terminals XI and XO generates reference signals of 4, 194, and 304 Hz, and the output thereof is applied to the input of the first frequency dividing circuit 2. The first, second, and third frequency divider circuits 2, 3, and 4 have a total of 23 consecutively connected T-FFs, and the first frequency divider circuit 2, the second frequency divider circuit 3, and An inverter 14 and a NAND gate 15 are provided between the 11th stage and the 12th stage,
Further, a NAND gate 16 and an inverter 17 are also interposed between the second frequency dividing circuit 3 and the third frequency dividing circuit 4, that is, between the 16th stage and the 17th stage. The final output Q 11 of the first frequency divider circuit 2 is 2048Hz, the output Q 16 of the second frequency divider circuit 3 is 64Hz, and the third frequency divider circuit 4
The output Q 23 is 1/2Hz. The frequency divided outputs Q 18 , Q 20 , Q 21 , Q 22 of the third frequency dividing circuit 4 are applied to the NAND gate 18, and the NAND gate 18 receives a short pulse once per second by the applied frequency divided output. A pulse is generated and a second signal is applied to the NOR gates 19 and 20 and the NAND gate 21. A frequency division output Q 23 is applied to the NOR gate 19, and a frequency division output 23 inverted by an inverter 22 is applied to the NOR gate 20 . Since NOR gates 19 and 20 are alternately conductive every second, inverters 23 and 24 and inverter 2 are connected to output terminals OUT1 and OUT2, respectively.
A second signal SO is alternately outputted via the signals 5 and 26. A step motor is connected to the output terminals OUT1 and OUT2, and is driven by the second signal SO. Incidentally, the inverters 24 and 26 serve as drivers for the step motor. The fourth frequency dividing circuit 5, to which a second signal is applied via the NAND gate 21 and the inverter 27, is made up of nine stages of T-FFs connected in succession, and measures an alarm time and a snooze time. The three-value detection circuit 6 includes inverters 28, 29, 3
0, 31 and AND gates 32, 33, the alarm input terminal, which is the first terminal, is connected to the inverters 28, 29, and the outputs of the AND gates 32, 33 are output as signals ALM, ALH, respectively. . Inverters 28 and 29 each have different threshold levels, and inverter 2
The threshold level V T2 of the inverter 28 is set larger than the threshold level V T1 of the inverter 9. Normally, the alarm input terminal is set to VDD level by resistor R2 . That is,
In the case of V T1 <V T2 <, the inverter 28,
29 are both turned on and their outputs are "0", so the signal ALH is "1" and the signal ALM is "0". Furthermore, when a signal of V T1 << V T2 is applied, the inverter 29 turns on and outputs “0”, and the inverter 28 turns off and outputs “1”, so the signal ALH is “0” and the signal ALM is “1”
becomes. Then, when a signal of <V T1 <V T2 is applied, both inverters 28 and 29 are turned off,
Since its output becomes "1", both signal ALH and signal ALM become "0". For example, if VDD
1.5V and the signal varies between 1.5V and 0V, then V T1 is 0.65V and V T2 is
It is selected to be around 0.85V. Normally, an alarm coincidence detection switch and a snooze switch are connected in series between the alarm input terminal and the ground level, and when the set alarm time arrives, the alarm coincidence detection switch closes.
The alarm input terminal is forcibly set to "0", and in order to enter the snooze state, open and close the snooze switch within a certain period of time in the alarm state, and change the alarm input terminal from "0" to "1". →Apply a “0” signal. These signals are used as changes in the output ALH of the three-value detection circuit 6 for alarm and snooze control. The set pulse generation circuit 7 detects the rising and falling edges of the signal ALH and generates the set pulse.
It outputs PU1 and PU2, and includes an inverter 34, D-FF35, 36, and NAND gate 37.
and a NOR gate 38. D-
The output Q18 of the third frequency dividing circuit 4 is applied to the clock inputs of the FFs 35 and 36, and the falling edge of the signal ALH is applied to the NOR gate 38 which inputs the output of the D-FF 35 and the output Q of the D-FF 36. detected by
A set pulse PU2 which becomes "1" with a pulse width of one cycle of the frequency divided output Q18 is output, and the signal
The rise of ALH is the signal ALH, D-FF35
output, D-FF36 output Q and frequency division output Q 18
is detected by the NAND gate 37 which inputs
A set pulse PU1 which becomes "0" with a pulse width equal to the pulse width of the frequency-divided output Q18 is output. The set pulse PU2 sets the alarm flip-flop 8 and also sets the NOR gate 3.
9 and the NAND gate 40, the fourth frequency divider circuit 5 is reset, and the set pulse PU1 sets the snooze flip-flop 9 to the set state. Reset. Here, the alarm operation and snooze operation will be explained. When the set alarm time arrives and the alarm input terminal becomes "0", the signal ALH becomes "1".
It falls to “0” from The alarm flip-flop 8 is set by the set pulse PU2 output at this time. On the other hand, the snooze flip-flop 9 is in the reset state, the signal SN is "0", and the output of the D-FF 36 is "0", so the NOR gate 41 outputs the alarm control signal ALS.
is set to “1”. The AND gate 42 to which the alarm control signal ALS is applied has the divided outputs Q 22 and 19 applied thereto, creates an intermittent alarm signal, and applies it to the NAND gate 44 via the OR gate 43 .
NAND gate 44 has a frequency divided output of 2048Hz
Q11 is applied, superimposed on the alarm intermittent signal, and sent to the alarm output terminal via the inverter 45.
Output to ALO. On the other hand, the reset fourth frequency dividing circuit 5 resumes counting the second signal, and after a certain period of time, 128 seconds, outputs
Q 30 becomes “1”. At this time, since the output of the flip-flop 9 in the reset state is "1", the output Q30 resets the alarm flip-flop 8 via the AND gate 46. Therefore, the NOR gate 41 is cut off by the output of the alarm flip-flop 8, and the alarm control signal
ALS becomes “0” and the alarm stops. Snooze applies a signal from "0" to "1" to "0" to the alarm input terminal within a predetermined time in an alarm state. Alarm input terminal
When ALIN changes from “0” to “1”, the signal ALH rises from “0” to “1”, and at this time, NAND
A set pulse PU1 is output from the gate 37,
The snooze flip-flop 9 is set and the fourth frequency divider circuit 5 is reset. Since the snooze flip-flop 9 is set, the signal SN becomes "1", and the output of the D-FF 36 is also "1", so the NOR gate 41 sets the alarm control signal ALS to "0" and causes an alarm. to stop. On the other hand, the output of D-FF36 is
Since the AND gate 47 is in a conductive state, when the frequency division output Q 25 becomes " 1 " after a predetermined time, the snooze flip-flop 9 is reset again. To,
The alarm input terminal must be changed from "1" to "0". When the alarm input terminal becomes "0", the output of the D-FF 36 becomes "0", shutting off the AND gate 47, outputting the set pulse PU2, and resetting the fourth frequency dividing circuit 5. Therefore, the fourth frequency dividing circuit 5
The divided output Q 25 output after restarts counting is
It is blocked by the AND gate 47, and the output of the snooze flip-flop 9 is "0", and the AND
Since the gate 46 is blocked, the divided output Q 30
Since the alarm flip-flop 8 is also cut off, the alarm flip-flop 8 is not reset. Then, after 256 seconds, the divided output
When Q 31 becomes "1", the output of NOR gate 48 becomes "0", so snooze flip-flop 9
is reset, and the signal SN becomes "0". At this time, the NOR gate 41 outputs the alarm control signal ALS
is set to "1" and an alarm is generated by snooze. The test mode selection circuit 10 consists of T-FFs 49, 50, 51, and 52 connected in four stages, and a NAND gate 53 is connected to the input of the first-stage T-FF 49. The output ALH of the three-value detection circuit 6 and the signal of the alarm output terminal ALO are applied to the input of the NAND gate 53. Therefore, the test mode selection circuit 10 has an alarm input terminal
By fixing either ALIN or the alarm output terminal ALO to "1" and applying a predetermined number of pulses to the other, the pulses are counted. The contents set in the test mode selection circuit 10 are the outputs TM1, TM2, TM of each stage.
3. Test pulse generation circuit 11 by TM4
is applied to However, in the normal operating state, when the alarm signal is output from the alarm output terminal ALO, the alarm input terminal is set to "1" when entering snooze. The output of
Until the alarm control signal ALS of the NOR gate 41 is set to "0", the signal of the alarm output terminal ALO and the signal
A logical AND with ALH (this signal includes chattering) is output at NAND gate 53. Therefore, this signal is sent to test mode selection circuit 1.
You must make sure that 0 is not counted. Therefore, T-FF49 of the test mode selection circuit 10,
The frequency divided output Q11 of the first frequency dividing circuit 2 used for creating an alarm sound is applied to each reset terminal R of 50, 51, and 52 . Therefore, when a pulse is generated at the output of the NAND gate 53, it is always reset by the divided output Q11 . Therefore, a reset circuit for constantly resetting the test mode selection circuit 10 in the normal operating state can be omitted. Furthermore, as will become clear in the explanation below, the time delay between the divided output Q 11 and the alarm signal may cause erroneous counting.
Test mode selection circuit 1 when entering test mode
The count content of 0 is set to "7" or more. The test pulse generation circuit 11 is a NAND gate 5
4, 55, 56, 57 and inverters 58, 5
Consists of 9, 60, 61, NAND gate 5
4 generates a reset pulse RESET when the content of the test mode selection circuit 10 becomes "7" in decimal notation, and the second frequency divider circuit 3, the third frequency divider circuit 4,
set pulse generation circuit 7 and NOR gate 39,
The fourth frequency divider circuit 5 is reset via the NAND gate 40. The NAND gate 55 includes TM4,
TM1, NAND gate 56 has TM4, TM1
However, TM4, 2 and ALH are applied to the NAND gate 57, and each NAND gate 55, 56, 57 has an alarm output terminal.
A signal applied to ALO is commonly applied via an inverter 62. Then, each output is a test pulse TESTP1, TESTP2,
Output as TESTP3, test pulse
TESTP1 is NAND gate 16 and inverter 1
7 to the third frequency divider circuit 4, the test pulse
TESTP2 is NAND gate 21 and inverter 2
7 to the fourth frequency divider circuit 5, the test pulse
TESTP3 is applied to the second frequency divider circuit 3 via the NAND gate 15. Therefore, when "7" or more is set, the test mode selection circuit 10 determines which frequency dividing circuit to select depending on the content of the count. Next, the operation in the test mode will be explained with reference to the timing diagram of FIG. First, in order to change from normal operating state to test mode, connect the alarm input terminal.
Apply an intermediate level signal to ALIN. The three-value detection circuit 6 detects the intermediate level and sets the signal ALH to “0”.
Then, set the signal ALM to “1”. (Point a in Figure 3).
Since the signal ALM is applied to the NAND gate 44 via the OR gate 43, the NAND gate 44
becomes conductive, and the divided output of the first frequency dividing circuit 2
Connect Q11 to alarm output terminal via inverter 45
Output to ALO. Therefore, in this state,
The frequency of the alarm output terminal ALO can be measured, the oscillation frequency of the oscillation circuit 1 can be adjusted, and the operation of the first frequency dividing circuit 2 can be tested. Next, output Q 11 is output to alarm output terminal ALO.
When becomes "0", the oscillation of the oscillation circuit 1 is stopped by means such as isolating the crystal resonator 13 from the terminal XI or IO, the output Q11 is held at "0", and the test mode is started. The selection circuit 10 is released from reset. (Point b in Figure 3). Then, "1" is forcibly applied to the alarm output terminal ALO from the outside to make the NAND gate 53 conductive, and a pulse that becomes "1" is applied to the alarm input terminal 8.
Apply . Therefore, the eight pulses generated in the signal ALH are counted by the test mode selection circuit 10 via the NAND gate 53. When the seventh pulse is counted, the output of the test mode selection circuit 10
TM4, TM3, TM2, and TM1 become "0111", and the reset signal RESET is output from the NAND gate 54 via the inverter 58, and the second,
The third and fourth frequency dividing circuits 3, 4, 5 and the set pulse generating circuit 7 are reset. Also, when the eighth pulse is counted, the test mode selection circuit 10
The content of is "1000" and the logical products 1.TM4 and 2.TM4 become "1", so that the NAND gate 55 and the NAND gate 57 become conductive. Therefore, set the alarm input terminal to “0”,
That is, when a predetermined number of pulses of a predetermined frequency are applied to the alarm output terminal ALO while the signal ALH is set to "0", the pulses are applied to the NAND gates 55 and 57 via the inverter 62.
Since the NAND gate 57 is inhibited by the signal ALH, the pulse is outputted as a test pulse TESTP1 only through the NAND gate 55 and applied to the third frequency dividing circuit 4. Therefore, an arbitrary value can be set in the third frequency dividing circuit 4, and a test can be performed. Next, in the above state, the alarm output terminal
While ALO is set to “0”, connect the alarm input terminal to the alarm input terminal.
When a predetermined number of pulses of a predetermined frequency are applied to ALIN, the pulses generated in the signal ALH are generated by the NAND gate 5.
7, it is output as a test pulse TESTP3 and applied to the second frequency dividing circuit 3. In addition, after setting the alarm output terminal ALO to "1" while keeping the alarm input terminal "0", that is, the signal ALH "0", the alarm input terminal
Apply the 9th pulse to ALIN. Therefore, the ninth pulse generated in the signal ALH is applied to the test mode selection circuit 10 via the NAND gate 53, and the content of the test mode selection circuit 10 is "1001".
Therefore, the logical products TM1・TM4 and 2・TM4 become “1”. That is, the NAND gates 56 and 57 become conductive, but since the signal ALH "0" is applied to the NAND gate 57, the test pulse
TESTP3 is not output. When a predetermined number of pulses of a predetermined frequency are applied to the alarm output terminal ALO in this state, the pulses are applied to the inverter 62 and
Test pulse via NAND gate 56
It is applied to the fourth frequency dividing circuit 5 as TESTP2. Therefore, the fourth frequency dividing circuit 5 can be tested. Furthermore, with the alarm output terminal ALO set to “1”,
When the 10th pulse is applied to the alarm input terminal, the content of the test mode selection circuit 10 becomes "1010" and the logical product 1·TM4 becomes "1", making it possible to output the test pulse TESTP1. In this manner, the test mode can be repeatedly selected by applying pulses to the test mode selection circuit 10 and sequentially changing the contents. Table 1 shows the contents of the test mode selection circuit 10 and test pulses that can be generated.

【表】 テストモード選択回路10に設定された内容に
於いて、2種類のテストパルスが指定される場合
には、前述した如く、アラーム入力端子か
らパルスを印加するか、あるいはアラーム出力端
子ALOからパルスを印加するかによつて選択で
きるのである。 また、第1表の如く、テストモード選択回路1
0は、10進数で「6」まではテストモードに入ら
ない様に設定されている。これは、前述した如
く、テストモード選択回路10を、通常動作状態
に於いて、リセツトしている分周出力Q11とアラ
ーム信号との時間的遅れに依つて、誤計数しても
良い様に余裕を持たせているのである。 上述の如く、本発明によれば、アラーム入力端
子とアラーム出力端子とがテスト端子として兼用
できるため、端子数が増加するのを防ぐことがで
き、また、テストモード選択回路のリセツトが、
アラーム信号と同一周波数の分周出力に依つて行
なわれるため特別なリセツト回路が不要となり、
素子数が減少するものである。更にテストモード
選択回路で内部回路を個別にテストできるので、
テスト時間が大幅に短縮されるものである。
[Table] When two types of test pulses are specified in the settings in the test mode selection circuit 10, the pulses are applied from the alarm input terminal or from the alarm output terminal ALO, as described above. The choice can be made depending on whether the pulse is applied. In addition, as shown in Table 1, the test mode selection circuit 1
0 is a decimal number that is set to not enter test mode until it reaches "6". As mentioned above, this is done so that the test mode selection circuit 10 may be erroneously counted due to the time delay between the reset frequency divided output Q 11 and the alarm signal in the normal operating state. This gives them some leeway. As described above, according to the present invention, since the alarm input terminal and the alarm output terminal can be used as test terminals, an increase in the number of terminals can be prevented, and the reset of the test mode selection circuit can be
Since this is done using a divided output with the same frequency as the alarm signal, no special reset circuit is required.
The number of elements is reduced. Furthermore, internal circuits can be tested individually using the test mode selection circuit.
This greatly reduces test time.

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

第1図は本発明の実施例を示す論理回路図、第
2図及び第3図は第1図に示された実施例の動作
を示すタイミング図である。 1……発振回路、2,3,4,5……第1、第
2、第3及び第4の分周回路、6……三値検出回
路、7……セツトパルス発生回路、8……アラー
ムフリツプフロツプ、9……スヌーズフリツプフ
ロツプ、10……テストモード選択回路、11…
…テストパルス発生回路。
FIG. 1 is a logic circuit diagram showing an embodiment of the present invention, and FIGS. 2 and 3 are timing diagrams showing the operation of the embodiment shown in FIG. 1... Oscillation circuit, 2, 3, 4, 5... 1st, 2nd, 3rd and 4th frequency dividing circuit, 6... Three-value detection circuit, 7... Set pulse generation circuit, 8... Alarm Flip-flop, 9... Snooze flip-flop, 10... Test mode selection circuit, 11...
...Test pulse generation circuit.

Claims (1)

【特許請求の範囲】[Claims] 1 基準信号を分周して所定の周波数のパルスを
出力する分周回路と、アラーム一致信号等が印加
される第1の端子と、前記分周回路の複数の分周
段出力を用いて形成されたアラーム信号が出力さ
れる第2の出力端子と、前記第1の端子の電圧が
第1のレベル、第2のレベル、あるいは、第3の
レベルのいずれであるかを検出する三値検出回路
と、該三値検出回路が第2のレベルを検出した検
出出力で前記第2の端子に前記分周回路の任意の
分周段出力を出力するゲート回路と、前記第2の
端子に外部から強制的に印加された信号に基い
て、前記三値検出回路が第1のレベルを検出した
検出出力に生じるパルスを計数するテストモード
選択回路と、該テストモード選択回路が所定数計
数したことを検出して内部回路をテストモードと
するテストパルスを出力するテストパルス発生回
路とを備え、通常動作状態に於いて、前記第2の
端子から出力される信号が前記テストモード選択
回路に所定数計数されることを防ぐために、前記
分周回路の任意の分周段出力を前記テストモード
選択回路のリセツト端子に印加することを特徴と
する電子時計用集積回路。
1. Formed using a frequency dividing circuit that divides the frequency of a reference signal and outputs a pulse of a predetermined frequency, a first terminal to which an alarm match signal, etc. is applied, and a plurality of frequency dividing stage outputs of the frequency dividing circuit. a second output terminal to which an alarm signal is output; and three-value detection for detecting whether the voltage at the first terminal is at a first level, a second level, or a third level. a gate circuit that outputs an arbitrary frequency dividing stage output of the frequency dividing circuit to the second terminal using a detection output when the three-value detection circuit detects a second level; a test mode selection circuit that counts pulses generated at the detection output when the three-value detection circuit detects a first level based on a signal forcibly applied from the test mode selection circuit; and a test pulse generation circuit that outputs a test pulse that detects the internal circuit and puts the internal circuit in a test mode, and in a normal operating state, a predetermined number of signals output from the second terminal are sent to the test mode selection circuit. An integrated circuit for an electronic timepiece, characterized in that an output of an arbitrary frequency dividing stage of the frequency dividing circuit is applied to a reset terminal of the test mode selection circuit in order to prevent counting.
JP57037446A 1982-03-09 1982-03-09 Integrated circuit for electronic watch Granted JPS58154687A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP57037446A JPS58154687A (en) 1982-03-09 1982-03-09 Integrated circuit for electronic watch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57037446A JPS58154687A (en) 1982-03-09 1982-03-09 Integrated circuit for electronic watch

Publications (2)

Publication Number Publication Date
JPS58154687A JPS58154687A (en) 1983-09-14
JPS635712B2 true JPS635712B2 (en) 1988-02-04

Family

ID=12497719

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57037446A Granted JPS58154687A (en) 1982-03-09 1982-03-09 Integrated circuit for electronic watch

Country Status (1)

Country Link
JP (1) JPS58154687A (en)

Also Published As

Publication number Publication date
JPS58154687A (en) 1983-09-14

Similar Documents

Publication Publication Date Title
US4583008A (en) Retriggerable edge detector for edge-actuated internally clocked parts
US4011516A (en) Frequency correction arrangement
US4152887A (en) Digital electronic alarm timepiece
JPS635713B2 (en)
JPH0347718B2 (en)
JPS635712B2 (en)
US3979681A (en) System and method for decoding reset signals of a timepiece for providing internal control
US4089159A (en) Electronic timepiece
JPS635711B2 (en)
US3906256A (en) Drive pulse generator for use in electronic analog display clock apparatus
US4083176A (en) Time correcting system for electronic timepiece
JPS6261912B2 (en)
JP2000009767A (en) Circuit detecting abnormalities of oscillation frequency from oscillating means
JPS6261913B2 (en)
JP3124912B2 (en) Timer device
JPS6150266B2 (en)
US4173758A (en) Driving circuit for electrochromic display devices
JPS627731B2 (en)
JPH06194417A (en) Generating circuit of clock signal
JPS6261911B2 (en)
JPS6222433B2 (en)
JPH0232595B2 (en)
US4247932A (en) Electronic timepiece
JPH10322182A (en) Clock-disconnection detecting circuit
JPH0399294A (en) Electronic clock