[go: up one dir, main page]

JP2018155687A - Radio correction clock - Google Patents

Radio correction clock Download PDF

Info

Publication number
JP2018155687A
JP2018155687A JP2017054378A JP2017054378A JP2018155687A JP 2018155687 A JP2018155687 A JP 2018155687A JP 2017054378 A JP2017054378 A JP 2017054378A JP 2017054378 A JP2017054378 A JP 2017054378A JP 2018155687 A JP2018155687 A JP 2018155687A
Authority
JP
Japan
Prior art keywords
time
level
change
signal
rising
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.)
Pending
Application number
JP2017054378A
Other languages
Japanese (ja)
Inventor
尚大 小林
Hisahiro Kobayashi
尚大 小林
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2017054378A priority Critical patent/JP2018155687A/en
Publication of JP2018155687A publication Critical patent/JP2018155687A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Electric Clocks (AREA)
  • Electromechanical Clocks (AREA)

Abstract

【課題】標準電波の秒ごとの信号中に複数個のパルスが含まれる場合であっても秒同期処理が行える技術を提供する。【解決手段】電波修正時計は、タイムコード出力(TCO)信号をサンプリングするサンプリング部と、サンプリング部からTCO信号が入力される検出部と、時間を計時するカウンターと、TCO信号が第1から第2のレベルに変化する第1の変化を検出させるよう検出部を制御し、第1の変化からの経過時間を計時させるようカウンターを制御し、経過時間が第1の時間を超えているかどうか判定し、経過時間が第1の時間を超えた後にTCO信号が第1から第2のレベルに変化する第2の変化を検出させるよう検出部を制御する制御部と、第1の変化から第2の変化までの時間が1秒を含むように予め定められた許容範囲内の時間であるかどうか判定する判定部と、時刻データ取得部と、を備える。【選択図】図3Provided is a technique capable of performing a second synchronization process even when a plurality of pulses are included in a signal per second of a standard radio wave. A radio-controlled timepiece includes a sampling unit that samples a time code output (TCO) signal, a detection unit that receives a TCO signal from the sampling unit, a counter that measures time, and a TCO signal from the first to the first. The detection unit is controlled to detect the first change that changes to the level of 2, and the counter is controlled to measure the elapsed time from the first change to determine whether the elapsed time exceeds the first time. And a control unit that controls the detection unit to detect a second change in which the TCO signal changes from the first to the second level after the elapsed time exceeds the first time, and a second change from the first change to the second change. A determination unit that determines whether or not the time until the change is within a predetermined allowable range so as to include one second, and a time data acquisition unit. [Selection] Figure 3

Description

本発明は、電波修正時計に関する。   The present invention relates to a radio-controlled timepiece.

標準電波を受信して取得された時刻データに基づいて、内部時刻を修正する電波修正時計が知られている。標準電波から時刻データを取得するために、標準電波が含むタイムコード出力(TCO)信号に対する同期処理である秒同期処理が行われる。秒同期処理では、TCO信号に基づいて1秒の周期が取得される。TCO信号は、1秒ごとに1つの信号(以下、秒ごとの信号と呼ぶ)を含み、60秒(1分)で1フレームを構成する。   A radio-controlled timepiece that corrects the internal time based on time data acquired by receiving a standard radio wave is known. In order to acquire time data from the standard radio wave, a second synchronization process, which is a synchronization process for a time code output (TCO) signal included in the standard radio wave, is performed. In the second synchronization process, a period of 1 second is acquired based on the TCO signal. The TCO signal includes one signal per second (hereinafter referred to as a signal per second), and constitutes one frame in 60 seconds (1 minute).

特許文献1には、TCO信号中のあるパルスの立ち上りから当該パルスに隣接するパルスの立ち上りまでの時間を計時し、このようにして得られた複数個の計時結果を平均することで、1秒の周期を取得する技術が開示されている。   In Patent Document 1, the time from the rise of a certain pulse in a TCO signal to the rise of a pulse adjacent to the pulse is counted, and a plurality of timing results obtained in this way are averaged for 1 second. A technique for acquiring the period is disclosed.

特許4882610号公報Japanese Patent No. 4882610

ところで、詳細は後述するように、本願発明者の検討によれば、英国の標準電波であるMSFのBit A=0およびBit B=1を示す信号のように、秒ごとの信号中に複数個のパルスが含まれる場合、特許文献1が開示する方法では、1秒の周期を取得することができないことがわかった。   By the way, as will be described in detail later, according to the study of the inventor of the present application, a plurality of signals are included in a signal per second, such as a signal indicating Bit A = 0 and Bit B = 1 of MSF which is a standard radio wave in the UK It was found that a period of 1 second could not be acquired by the method disclosed in Patent Document 1 in the case where the number of pulses is included.

本発明は、上述した事情に鑑みてなされたものであり、標準電波の秒ごとの信号中に複数個のパルスが含まれる場合であっても、秒同期処理を行うことができる技術を提供することを、解決課題の一つとする。   The present invention has been made in view of the above-described circumstances, and provides a technique capable of performing second synchronization processing even when a plurality of pulses are included in a standard radio wave signal per second. This is one of the resolution issues.

以上の課題を解決するため、本発明に係る電波修正時計の一態様は、標準電波から取得されたタイムコード出力信号をサンプリングするサンプリング部と、前記サンプリング部でサンプリングされた前記タイムコード出力信号が入力される検出部と、時間を計時するカウンターと、前記タイムコード出力信号が第1のレベルから第2のレベルに変化する第1の変化を検出させるように、前記検出部を制御し、当該第1の変化から経過した経過時間を計時させるように、前記カウンターを制御し、当該経過時間が予め定められた第1の時間を超えているかどうか判定し、当該経過時間が当該第1の時間を超えた後に当該タイムコード出力信号が当該第1のレベルから当該第2のレベルに変化する第2の変化を検出させるように、前記検出部を制御する制御部と、前記第1の変化から前記第2の変化までの時間が、1秒を含むように予め定められた許容範囲内の時間であるかどうか判定する判定部と、前記判定部の判定結果が前記許容範囲内の時間である場合、前記第1の変化または前記第2の変化を基準として前記タイムコード出力信号に基づいて時刻データを取得する時刻データ取得部と、を備える   In order to solve the above problems, an aspect of the radio-controlled timepiece according to the present invention includes a sampling unit that samples a time code output signal acquired from a standard radio wave, and the time code output signal sampled by the sampling unit. Controlling the detection unit to detect a first change in which the input detection unit, a time counter, and the time code output signal change from a first level to a second level; The counter is controlled so as to time the elapsed time elapsed from the first change, it is determined whether the elapsed time exceeds a predetermined first time, and the elapsed time is the first time. The detection unit is controlled so that the second change in which the time code output signal changes from the first level to the second level after the time is exceeded. A control unit that determines whether the time from the first change to the second change is within a predetermined allowable range including 1 second, and A time data acquisition unit that acquires time data based on the time code output signal based on the first change or the second change when the determination result is a time within the allowable range;

前記態様によれば、第1の変化から第1の時間を超えた後に第2の変化を検出し、第1の変化から第2の変化までの時間を計時して、1秒を含む許容範囲内の時間であるかどうか判定することで、例えばMSFのBit A=0およびBit B=1を示す信号のように秒ごとの信号中に複数個のパルスが含まれる場合であっても、1秒の周期を取得することができ、秒同期処理を行うことができる。   According to the above aspect, the second change is detected after the first time is exceeded from the first change, the time from the first change to the second change is counted, and the allowable range including 1 second Even if a plurality of pulses are included in a signal per second like a signal indicating Bit A = 0 and Bit B = 1 of the MSF, for example, A period of seconds can be acquired, and a second synchronization process can be performed.

上述した電波修正時計の一態様において、前記制御部は、前記第1の変化から前記第1の時間が経過するまでに含まれる、前記タイムコード出力信号が前記第1のレベルから前記第2のレベルに変化する第3の変化を検出させるように、前記検出部を制御し、前記判定部は、前記第1の変化から前記第3の変化までの時間に対して、前記許容範囲内の時間であるかどうか判定せず、前記第1の変化から前記第2の変化までの時間に対して、前記許容範囲内の時間であるかどうか判定する。この態様によれば、第1の時間中に含まれる第3の変化を検出するものの、第1の変化から第3の変化までの時間については、1秒を含む許容範囲内の時間であるかどうか判定しない。このようにして、第1の変化から第1の時間を超えた後に検出された第2の変化までの時間が1秒を含む許容範囲内の時間であるかどうかの判定を、適切に行うことができる。   In one aspect of the radio-controlled timepiece described above, the control unit includes the time code output signal from the first level to the second level, which is included before the first time elapses from the first change. The detection unit is controlled so as to detect a third change that changes to a level, and the determination unit determines a time within the allowable range with respect to a time from the first change to the third change. It is determined whether the time is within the allowable range with respect to the time from the first change to the second change. According to this aspect, the third change included in the first time is detected, but the time from the first change to the third change is within an allowable range including 1 second. Do not judge. In this way, it is possible to appropriately determine whether the time from the first change to the second change detected after exceeding the first time is within an allowable range including 1 second. Can do.

上述した電波修正時計の一態様において、前記制御部は、前記第1の変化から前記第1の時間が経過するまでに含まれる、前記タイムコード出力信号が前記第1のレベルから前記第2のレベルに変化する第3の変化を検出させないように、前記検出部を制御する。この態様によれば、第1の時間中に含まれる第3の変化は、変化を検出しない。このようにして、第1の変化から第1の時間を超えた後に検出された第2の変化までの時間が、1秒を含む許容範囲内の時間であるかどうかの判定を、適切に行うことができる。   In one aspect of the radio-controlled timepiece described above, the control unit includes the time code output signal from the first level to the second level, which is included before the first time elapses from the first change. The detection unit is controlled so as not to detect the third change that changes to the level. According to this aspect, the third change included in the first time does not detect a change. In this way, it is appropriately determined whether the time from the first change to the second change detected after exceeding the first time is within the allowable range including 1 second. be able to.

上述した電波修正時計の一態様において、前記制御部は、前記第1の変化から前記第1の時間が経過するまで、前記タイムコード出力信号のサンプリングを停止させ、当該第1の変化から当該第1の時間が経過すると、当該タイムコード出力信号のサンプリングを再開させるように、前記サンプリング部を制御する。この態様によれば、第1の時間中はサンプリングを停止することで、第1の時間中に含まれる第3の変化を検出しない。このようにして、第1の変化から第1の時間を超えた後に検出された第2の変化までの時間が、1秒を含む許容範囲内の時間であるかどうかの判定を、適切に行うことができる。また、常時サンプリングを行う態様と比べて、サンプリングに要する消費電力を下げることができる。   In one aspect of the radio-controlled timepiece described above, the control unit stops sampling the time code output signal until the first time has elapsed from the first change, and the first change from the first change When the time of 1 elapses, the sampling unit is controlled to resume sampling of the time code output signal. According to this aspect, the third change included in the first time is not detected by stopping the sampling during the first time. In this way, it is appropriately determined whether the time from the first change to the second change detected after exceeding the first time is within the allowable range including 1 second. be able to. In addition, the power consumption required for sampling can be reduced compared to a mode in which sampling is always performed.

上述した電波修正時計の一態様において、前記制御部は、前記サンプリング部でサンプリングされた前記タイムコード出力信号において、前記第1のレベルが続く時間、または、前記第2のレベルが続く時間が、予め定められた第2の時間以上であるかどうか判定し、当該判定の結果に基づいて、前記第1のレベルから前記第2のレベルへの変化を検出させるよう、前記検出部を制御する。この態様によれば、標準電波の電界強度が低い環境でも、ノイズに起因する変化が検出部に検出されないようにでき、変化の検出の精度向上が図られる。   In one aspect of the radio-controlled timepiece described above, the control unit is configured such that, in the time code output signal sampled by the sampling unit, the time that the first level continues or the time that the second level continues, It is determined whether it is a predetermined second time or more, and the detection unit is controlled to detect a change from the first level to the second level based on a result of the determination. According to this aspect, even in an environment where the electric field intensity of the standard radio wave is low, changes due to noise can be prevented from being detected by the detection unit, and the accuracy of detection of changes can be improved.

本発明の一実施形態に係る電波修正時計の構成を示すブロック図である。It is a block diagram which shows the structure of the radio wave correction timepiece which concerns on one Embodiment of this invention. 受信処理を示すフローチャートである。It is a flowchart which shows a reception process. 秒同期処理を示すフローチャートである。It is a flowchart which shows a second synchronization process. 立ち上り確認処理を示すフローチャートである。It is a flowchart which shows a rise confirmation process. 第2実施形態による秒同期処理を示すフローチャートである。It is a flowchart which shows the second synchronization process by 2nd Embodiment. 第2実施形態による立ち上り確認処理を示すフローチャートである。It is a flowchart which shows the rising confirmation process by 2nd Embodiment. 第3実施形態による秒同期処理を示すフローチャートである。It is a flowchart which shows the second synchronization process by 3rd Embodiment. MSFのタイムコード出力信号における秒ごとの信号の種類をまとめた表である。It is the table | surface which put together the kind of signal for every second in the time code output signal of MSF. MSFのBit A=0でBit B=1の信号が連続している状況を示すタイミングチャートである。It is a timing chart which shows the condition where the signal of Bit B = 0 of MSF and Bit B = 1 are continuing. WWVBの800msのパルス幅を有する信号と200msのパルス幅を有する信号とが連続している状況を示すタイミングチャートである。It is a timing chart which shows the situation where the signal which has a pulse width of 800 ms of WWVB, and the signal which has a pulse width of 200 ms are continuing.

以下、この発明の好適な実施の形態を、添付図面等を参照しながら詳細に説明する。ただし、各図において、各部の寸法および縮尺は、実際のものと適宜に異ならせてある。また、以下に述べる実施の形態は、本発明の好適な具体例であるから、技術的に好ましい種々の限定が付されているが、本発明の範囲は、以下の説明において特に本発明を限定する旨の記載がない限り、これらの形態に限られるものではない。   Preferred embodiments of the present invention will be described below in detail with reference to the accompanying drawings. However, in each figure, the size and scale of each part are appropriately changed from the actual ones. Further, since the embodiments described below are preferable specific examples of the present invention, various technically preferable limitations are attached thereto. However, the scope of the present invention is particularly limited in the following description. Unless otherwise stated, the present invention is not limited to these forms.

<第1実施形態>
[電波修正時計の概略構成]
図1は、本発明の一実施形態に係る電波修正時計1の構成を示すブロック図である。電波修正時計1は、長波標準電波(以下「標準電波」と略す)を受信し、標準電波に含まれる時刻データを取得して、取得された時刻データに基づいて、計時している内部時刻を修正する。
<First Embodiment>
[Schematic configuration of radio-controlled clock]
FIG. 1 is a block diagram showing the configuration of a radio-controlled timepiece 1 according to an embodiment of the present invention. The radio-controlled timepiece 1 receives a long-wave standard radio wave (hereinafter abbreviated as “standard radio wave”), acquires time data included in the standard radio wave, and determines the internal time being measured based on the acquired time data. Correct it.

電波修正時計1は、受信部2、処理部3、記憶部4、発振回路5、分周回路6、表示部7および操作部8を備える。受信部2は、アンテナ2aおよび受信回路2bを備える。アンテナ2aは、標準電波を受信して、受信した標準電波に応じた受信信号を受信回路2bに出力する。受信回路2bは、アンテナ2aに特定の周波数の電波を受信させるとともに、アンテナ2aから入力される受信信号に基づいて、二値化されたTCO(Time Code Out:タイムコード出力)信号を復調し、TCO信号を処理部3に出力する。   The radio-controlled timepiece 1 includes a receiving unit 2, a processing unit 3, a storage unit 4, an oscillation circuit 5, a frequency dividing circuit 6, a display unit 7, and an operation unit 8. The receiving unit 2 includes an antenna 2a and a receiving circuit 2b. The antenna 2a receives the standard radio wave and outputs a reception signal corresponding to the received standard radio wave to the reception circuit 2b. The receiving circuit 2b causes the antenna 2a to receive a radio wave of a specific frequency, and demodulates a binarized TCO (Time Code Out) signal based on the received signal input from the antenna 2a. The TCO signal is output to the processing unit 3.

受信回路2bは、例えば、同調回路、第1増幅回路、局部発振信号生成部、周波数変換部、BPF(Band-pass filter)、第2増幅回路、検波回路、二値化回路およびデコード回路を備える。デコード回路は、処理部3から入力される制御信号をデコードして、当該制御信号により示される制御内容を、受信回路2bが備えるこれらの機能部に出力する。   The reception circuit 2b includes, for example, a tuning circuit, a first amplification circuit, a local oscillation signal generation unit, a frequency conversion unit, a BPF (Band-pass filter), a second amplification circuit, a detection circuit, a binarization circuit, and a decoding circuit. . The decoding circuit decodes the control signal input from the processing unit 3, and outputs the control content indicated by the control signal to these functional units included in the receiving circuit 2b.

処理部3は、電波修正時計1の動作を制御する各種の処理を行う。記憶部4は、処理部3による電波修正時計1の制御に必要な各種データおよびプログラムを記憶する。処理部3は、受信回路2bに制御信号を出力して受信回路2bの動作を制御する。処理部3は、また、詳細は後述するように、受信回路2bから入力されるTCO信号に対して秒同期処理を行い、TCO信号をデコードしてTC(Time Code)を生成し、TCに含まれる時刻データを取得する。処理部3は、また、標準電波から取得された時刻データに基づいて内部時刻を修正し、内部時刻を表示部7に表示させる。以下、標準電波から取得された時刻データを、内部時刻と区別するために、受信時刻データと呼ぶことがある。   The processing unit 3 performs various processes for controlling the operation of the radio-controlled timepiece 1. The storage unit 4 stores various data and programs necessary for the control of the radio-controlled timepiece 1 by the processing unit 3. The processing unit 3 controls the operation of the receiving circuit 2b by outputting a control signal to the receiving circuit 2b. As will be described in detail later, the processing unit 3 performs second synchronization processing on the TCO signal input from the receiving circuit 2b, decodes the TCO signal, generates a TC (Time Code), and is included in the TC. Get time data. The processing unit 3 also corrects the internal time based on the time data acquired from the standard radio wave, and causes the display unit 7 to display the internal time. Hereinafter, the time data acquired from the standard radio wave may be referred to as reception time data in order to distinguish it from the internal time.

TCO信号は、1秒ごとに1つの信号を含み、60秒(1分)で1フレームを構成する信号である。以下、1秒ごとに含まれる信号を、1フレームのTCO信号と区別するために、秒ごとの信号と呼ぶことがある。1フレーム中に、年月日時分等の項目のデータが含まれており、ある項目のデータは、1フレーム中で当該項目に割り当てられた期間の秒ごとの信号の値により示される。1フレームの最初の秒には、1フレームの開始を示すマーカーが割り当てられている。各項目のデータの1フレーム中における割り当て方は、各国の標準電波により異なる。秒同期処理では、TCO信号における秒ごとの信号の開始タイミングが取得されるとともに、TCO信号における1秒の周期が取得される。   The TCO signal is a signal that includes one signal every second and forms one frame in 60 seconds (1 minute). Hereinafter, in order to distinguish a signal included every second from a TCO signal of one frame, it may be referred to as a signal per second. One frame includes data of items such as year, month, day, hour, and the like, and the data of a certain item is indicated by the signal value per second of the period allocated to the item in one frame. A marker indicating the start of one frame is assigned to the first second of one frame. The allocation method of the data of each item in one frame differs depending on the standard radio wave of each country. In the second synchronization process, the start timing of the signal per second in the TCO signal is acquired, and the period of 1 second in the TCO signal is acquired.

発振回路5は、水晶振動子を有し、水晶振動子により発振される所定の基準クロック周波数(例えば32.768kHz)の基準信号を出力する。発振回路5から出力された基準信号は、分周回路6に入力され、分周回路6により1Hzの信号に分周される。   The oscillation circuit 5 has a crystal resonator and outputs a reference signal having a predetermined reference clock frequency (for example, 32.768 kHz) oscillated by the crystal resonator. The reference signal output from the oscillating circuit 5 is input to the frequency dividing circuit 6 and is divided by the frequency dividing circuit 6 into a 1 Hz signal.

表示部7は、処理部3で計時されている内部時刻を表示する。表示部7の構成としては、例えば、液晶パネルを採用することができ、また例えば、文字板および指針と、指針を回転させるステップモーターおよび歯車とを備える構成を採用することができる。   The display unit 7 displays the internal time counted by the processing unit 3. As a configuration of the display unit 7, for example, a liquid crystal panel can be adopted, and for example, a configuration including a dial plate and a pointer, a step motor and a gear for rotating the pointer can be adopted.

操作部8は、使用者による操作に応じた操作信号を処理部3に出力し、電波修正時計1の外部に露出したリューズ、ボタン等により構成される。操作部8は、使用者がアンテナ2aで受信される標準電波の種類(日本の標準電波JJY、米国の標準電波WWVB、英国の標準電波MSF等)を選択する操作等に用いられる。   The operation unit 8 is configured by a crown, a button, or the like that outputs an operation signal according to an operation by the user to the processing unit 3 and is exposed to the outside of the radio wave correction watch 1. The operation unit 8 is used for an operation or the like in which the user selects the type of standard radio wave received by the antenna 2a (Japanese standard radio wave JJY, US standard radio wave WWVB, UK standard radio wave MSF, etc.)

[処理部の構成]
処理部3は、マイクロコントローラー(マイコン)を用いて構成され、サンプリング部31、遷移検出部32、秒判定部33、カウンター34、時刻データ取得部35、計時部36および制御部37を備える。後述の受信処理は、これらの各部を用いて行われる。なお、処理部3は、必要に応じて他の機能ブロックを含んでもよい。
[Configuration of processing section]
The processing unit 3 is configured using a microcontroller (microcomputer), and includes a sampling unit 31, a transition detection unit 32, a second determination unit 33, a counter 34, a time data acquisition unit 35, a time measurement unit 36, and a control unit 37. The receiving process described later is performed using these units. Note that the processing unit 3 may include other functional blocks as necessary.

サンプリング部31は、受信回路2bから入力されたTCO信号をサンプリングし、TCO信号の信号レベルとして、ハイ(H)レベルまたはロウ(L)レベルを、遷移検出部32に出力する。   The sampling unit 31 samples the TCO signal input from the receiving circuit 2b, and outputs a high (H) level or a low (L) level to the transition detection unit 32 as the signal level of the TCO signal.

遷移検出部32(検出部)は、サンプリング部31からTCO信号が入力され、TCO信号の第1のレベルから第2のレベルへの遷移(変化)を検出する。遷移検出部32は、例えば、LレベルからHレベルへの遷移(変化、立ち上り)を検出し、また例えば、HレベルからLレベルへの遷移(変化、立ち下り)を検出する。本実施形態では、遷移検出部32がTCO信号の立ち上りを検出する場合を例示する。   The transition detection unit 32 (detection unit) receives the TCO signal from the sampling unit 31, and detects a transition (change) from the first level to the second level of the TCO signal. The transition detection unit 32 detects, for example, a transition (change, rise) from the L level to the H level, and detects, for example, a transition (change, fall) from the H level to the L level. In the present embodiment, a case where the transition detection unit 32 detects the rising edge of the TCO signal is illustrated.

秒判定部33は、秒同期処理において、TCO信号の1秒の周期が取得されたかどうか判定する。カウンター34は、秒同期処理に用いられる時間を計時する。   The second determination unit 33 determines whether a 1-second period of the TCO signal is acquired in the second synchronization processing. The counter 34 measures the time used for the second synchronization process.

時刻データ取得部35は、受信回路2bから入力されたTCO信号をデコードして、TCO信号からTCを抽出し、受信時刻データを取得する。時刻データ取得部35は、JJY、WWVB、MSF等の、複数種類の標準電波のTCをデコード可能である。   The time data acquisition unit 35 decodes the TCO signal input from the reception circuit 2b, extracts TC from the TCO signal, and acquires reception time data. The time data acquisition unit 35 can decode TCs of a plurality of types of standard radio waves such as JJY, WWVB, and MSF.

計時部36は、分周回路6により生成された1Hzの信号に基づいて、内部時刻を更新し、現在日時を計時する。計時部36は、また、時刻データ取得部35で取得された受信時刻データに基づいて、内部時刻を修正する。計時部36は、また、表示部7の駆動を制御して、表示部7に内部時刻を表示させる。   The timer 36 updates the internal time based on the 1 Hz signal generated by the frequency divider 6 and measures the current date and time. The timer 36 also corrects the internal time based on the reception time data acquired by the time data acquisition unit 35. The timer 36 also controls the drive of the display unit 7 to display the internal time on the display unit 7.

制御部37は、CPU(Central Processing Unit)を用いて構成され、当該CPUは、記憶部4に記憶されている制御プログラムを実行することにより、後述の受信処理等において電波修正時計1を制御する制御部37として機能する。制御部37は、発振回路5から入力される基準信号に基づいて駆動される。   The control unit 37 is configured by using a CPU (Central Processing Unit), and the CPU executes the control program stored in the storage unit 4 so as to control the radio-controlled timepiece 1 in a reception process described later. It functions as the control unit 37. The control unit 37 is driven based on the reference signal input from the oscillation circuit 5.

[受信処理]
以下、図2〜図4、図8および図9を参照して、電波修正時計1による標準電波の受信処理について説明する。図2は、受信処理を示すフローチャートである。ステップS1において、制御部37は、受信開始処理を行う。受信開始処理では、受信回路2bの電源をオンする処理等が行われる。
[Receive processing]
Hereinafter, with reference to FIG. 2 to FIG. 4, FIG. 8, and FIG. FIG. 2 is a flowchart showing the reception process. In step S1, the control unit 37 performs a reception start process. In the reception start process, a process of turning on the power of the reception circuit 2b is performed.

次に、ステップS2において、秒同期処理が行われる。図3は、秒同期処理を示すフローチャートである。秒同期処理のステップS10において、制御部37は、受信開始タイミングから予め定められた所定時間(本例では10分)が経過しているかどうか判定する。10分経過している場合、ステップS23bにおいて、制御部37は、「秒同期失敗」フラグを設定する。ステップS23bが行われると、秒同期処理は終了する。   Next, in step S2, second synchronization processing is performed. FIG. 3 is a flowchart showing the second synchronization processing. In step S10 of the second synchronization process, the control unit 37 determines whether a predetermined time (10 minutes in this example) has elapsed from the reception start timing. When 10 minutes have elapsed, in step S23b, the control unit 37 sets a “second synchronization failure” flag. When step S23b is performed, the second synchronization process ends.

10分経過していない場合、ステップS11において、制御部37は、信号幅が、予め定められた所定時間(本例では10ms、第2の時間)以上であるかどうか判定する。信号幅とは、サンプリング部31でサンプリングされたTCO信号において、Hレベルが続く時間、または、Lレベルが続く時間である。信号幅の判定に用いられる当該所定時間としては、TCO信号に含まれるパルスの最短のパルス幅(本例では図8を参照して後述するように100ms)よりも短い時間が設定される。   If 10 minutes has not elapsed, in step S11, the control unit 37 determines whether or not the signal width is equal to or longer than a predetermined time (in this example, 10 ms, the second time). The signal width is the time for which the H level continues or the time for which the L level continues in the TCO signal sampled by the sampling unit 31. As the predetermined time used for determining the signal width, a time shorter than the shortest pulse width of the pulse included in the TCO signal (in this example, 100 ms as described later with reference to FIG. 8) is set.

信号幅が10ms未満である場合、再度、ステップS10が行われる。信号幅が10ms以上である場合、制御部37は、サンプリング部31を制御して、サンプリングされたTCO信号を、遷移検出部32に入力させる。そして、ステップS12において、制御部37は、遷移検出部32を制御して、立ち上り確認処理を行わせる。   If the signal width is less than 10 ms, step S10 is performed again. When the signal width is 10 ms or more, the control unit 37 controls the sampling unit 31 to input the sampled TCO signal to the transition detection unit 32. In step S <b> 12, the control unit 37 controls the transition detection unit 32 to perform the rising confirmation process.

信号幅が極端に短い場合(本例では10ms未満である場合)、本来はLレベルが連続している信号に、ノイズに起因するHレベルの信号が混入したと考えられる。または、本来はHレベルが連続している信号に、ノイズに起因するLレベルの信号が混入したと考えられる。このようにHレベルまたはLレベルが混入することで、本来の信号には存在しない、LレベルとHレベルとが隣接する部分が生じて立ち上りが生じるが、当該立ち上りは、TCO信号が本来有する立ち上りではない。ステップS11の処理を行うことで、標準電波の電界強度が低い環境でも、ノイズに起因する立ち上り(変化、遷移)が遷移検出部32(検出部)に検出されないようにでき、立ち上りの(変化の、遷移の)検出の精度向上が図られる。   When the signal width is extremely short (in this example, less than 10 ms), it is considered that an H level signal caused by noise is mixed with a signal that is originally continuous in L level. Alternatively, it is considered that an L level signal caused by noise is mixed with a signal that is originally continuous at an H level. When the H level or the L level is mixed in this way, a portion where the L level and the H level are adjacent to each other, which does not exist in the original signal, occurs, and the rising occurs. is not. By performing the process of step S11, it is possible to prevent the rise (change, transition) caused by noise from being detected by the transition detection unit 32 (detection unit) even in an environment where the electric field intensity of the standard radio wave is low. ), The accuracy of detection is improved.

図4は、立ち上り確認処理を示すフローチャートである。立ち上り確認処理のステップS30において、遷移検出部32は、信号レベルがLレベルであるかどうか判定する。信号レベルがLレベルである場合、遷移検出部32は、ステップS31において、「L信号中ON」フラグを設定し、ステップS32において、「立ち上りOFF」フラグを設定する。ステップS32が行われると、立ち上り確認処理は終了する。   FIG. 4 is a flowchart showing the rising confirmation process. In step S30 of the rising confirmation process, the transition detection unit 32 determines whether the signal level is the L level. When the signal level is the L level, the transition detection unit 32 sets an “L signal ON” flag in step S31, and sets a “rising OFF” flag in step S32. When step S32 is performed, the rising confirmation process ends.

信号レベルがLレベルでない(Hレベルである)場合、遷移検出部32は、ステップS33において、「L信号中ON」フラグが設定されているかどうか判定する。「L信号中ON」フラグが設定されている場合、遷移検出部32は、ステップS34において、「L信号中OFF」フラグを設定し、ステップS35において、「立ち上りON」フラグを設定する。ステップS35が行われると、立ち上り確認処理は終了する。「L信号中ON」フラグが設定されていない場合、ステップS34およびステップS35はスキップされて、立ち上り確認処理は終了する。   When the signal level is not L level (H level), the transition detection unit 32 determines whether or not the “L signal ON” flag is set in step S33. When the “L signal ON” flag is set, the transition detecting unit 32 sets the “L signal OFF” flag in step S34, and in step S35, sets the “rising ON” flag. When step S35 is performed, the rising confirmation process ends. When the “L signal ON” flag is not set, step S34 and step S35 are skipped, and the rising confirmation process ends.

このように、信号レベルがLレベルであると、「L信号中ON」フラグが設定され、その後、「L信号中ON」フラグが設定された状態で信号レベルがHレベルになると、「立ち上りON」フラグが設定されて、立ち上りが検出される。   As described above, when the signal level is L level, the “L signal ON” flag is set. After that, when the “L signal ON” flag is set and the signal level becomes H level, “rise ON” ”Flag is set and a rising edge is detected.

立ち上り確認処理が終了すると、図3に示す秒同期処理において、ステップS13が行われる。ステップS13において、制御部37は、「立ち上りON」フラグが設定されているかどうか判定する。「立ち上りON」フラグが設定されていない場合、ステップS10に戻り、ステップS10とステップS11とを経て、再びステップS12で立ち上り確認処理が行われる。   When the rising confirmation process ends, step S13 is performed in the second synchronization process shown in FIG. In step S <b> 13, the control unit 37 determines whether or not the “rising ON” flag is set. If the “rise ON” flag is not set, the process returns to step S10, and the rise confirmation process is performed again in step S12 through steps S10 and S11.

「立ち上りON」フラグが設定されている場合、ステップS14において、制御部37は、「立ち上り取得済みON」フラグが設定されているかどうか判定する。「立ち上り取得済みON」フラグが設定されていない場合、ステップS15において、制御部37は、「立ち上り取得済みON」フラグを設定する。また、ステップS15において、制御部37は、カウンター34を制御して、周期カウンターを0に設定させ、計時を開始させる。ステップS15の後、ステップS10に戻り、ステップS10とステップS11とを経て、再びステップS12で立ち上り確認処理が行われる。   If the “rise ON” flag is set, in step S14, the control unit 37 determines whether the “rise acquisition completed ON” flag is set. When the “rising acquisition completed ON” flag is not set, in step S15, the control unit 37 sets the “rising acquisition acquired ON” flag. Moreover, in step S15, the control part 37 controls the counter 34, sets a period counter to 0, and starts time-measurement. After step S15, the process returns to step S10, and through steps S10 and S11, the rising confirmation process is performed again in step S12.

「立ち上り取得済みON」フラグが設定されている場合、ステップS16が行われる。「立ち上り取得済みON」フラグは、秒同期処理が開始されてから、初回の立ち上りが検出されたことを示すフラグである。   If the “startup acquired ON” flag is set, step S16 is performed. The “rising acquired ON” flag is a flag indicating that the first rising is detected after the second synchronization processing is started.

ステップS16において、制御部37は、周期カウンターが予め定められた待機時間(本例では500ms、第1の時間)を超えているかどうか判定する。周期カウンターが500msを超えていない場合、ステップS10に戻り、ステップS10とステップS11とを経て、再びステップS12で立ち上り確認処理が行われる。   In step S16, the control unit 37 determines whether or not the period counter exceeds a predetermined standby time (in this example, 500 ms, the first time). If the cycle counter does not exceed 500 ms, the process returns to step S10, and the rising confirmation process is performed again in step S12 through steps S10 and S11.

周期カウンターが500msを超えている場合、ステップS17において、秒判定部33は、周期カウンターに計時された時間が、1000ms(1秒)±公差の範囲内の時間であるかどうか(1秒を含むように予め定められた許容範囲内の時間であるかどうか)判定する。公差は、例えば60msである。   When the cycle counter exceeds 500 ms, in step S17, the second determination unit 33 determines whether the time counted by the cycle counter is 1000 ms (1 second) ± time within a tolerance range (including 1 second). It is determined whether or not the time is within a predetermined allowable range. The tolerance is, for example, 60 ms.

周期カウンターに計時された時間が1000ms±公差の範囲内の時間でない場合、制御部37は、ステップS19bにおいて、1秒周期連続取得数を0に設定する。周期カウンターに計時された時間が1000ms±公差の範囲内の時間である場合、制御部37は、ステップS18において、周期カウンターによる計時結果を記憶部4に記憶させて保存し、ステップS19aにおいて、1秒周期連続取得数を1つ加算する。   If the time counted by the period counter is not 1000 ms ± the time within the tolerance range, the control unit 37 sets the number of consecutive acquisitions of one second period to 0 in step S19b. When the time measured by the cycle counter is within the range of 1000 ms ± tolerance, the control unit 37 stores the time measurement result by the cycle counter in the storage unit 4 and stores it in step S18, and in step S19a, 1 Add the number of consecutive acquisitions per second.

ステップS19aまたはステップS19bが行われると、ステップS20において、制御部37は、カウンター34を制御して、周期カウンターを0に設定させ、再び計時を開始させる。   If step S19a or step S19b is performed, in step S20, the control part 37 will control the counter 34, will set a period counter to 0, and will start time-measurement again.

次に、ステップS21において、制御部37は、1秒周期連続取得数が、予め設定された閾値(本例では10)に等しくなったかどうか(閾値に到達したかどうか)判定する。1秒周期連続取得数が10に到達していない場合、ステップS10に戻り、ステップS10とステップS11とを経て、再びステップS12で立ち上り確認処理が行われる。   Next, in step S <b> 21, the control unit 37 determines whether or not the number of consecutive acquisitions of 1 second period is equal to a preset threshold value (10 in this example) (whether or not the threshold value is reached). When the number of consecutive acquisitions of 1 second period has not reached 10, the process returns to step S10, and the rising confirmation process is performed again in step S12 through steps S10 and S11.

1秒周期連続取得数が10に到達した場合、制御部37は、ステップS22において、ステップS18で保存された計時結果の平均値を算出し、ステップS23aにおいて、「秒同期成功」フラグを設定する。ステップS23aが行われると、秒同期処理は終了する。   When the number of consecutive acquisitions per second reaches 10, the control unit 37 calculates the average value of the timing results stored in step S18 in step S22, and sets the “second synchronization success” flag in step S23a. . When step S23a is performed, the second synchronization process ends.

秒同期処理が終了すると、図2に示すステップS3において、制御部37は、秒同期処理で設定された「秒同期成功」フラグまたは「秒同期失敗」フラグに基づいて、秒同期処理が成功したかどうか判定する。秒同期処理が失敗した場合、ステップS8bにおいて、制御部37は、「受信失敗」フラグを設定する。秒同期処理が成功した場合、ステップS4において、時刻データ取得部35は、TCO信号のマーカーを取得する。   When the second synchronization process ends, in step S3 shown in FIG. 2, the control unit 37 succeeds in the second synchronization process based on the “second synchronization success” flag or the “second synchronization failure” flag set in the second synchronization process. Determine whether or not. When the second synchronization process fails, the control unit 37 sets a “reception failure” flag in step S8b. When the second synchronization process is successful, in step S4, the time data acquisition unit 35 acquires a marker of the TCO signal.

次に、ステップS5において、制御部37は、受信開始タイミングから予め定められた所定時間が経過しているかどうか判定する。当該所定時間は、例えば15分である。所定時間が経過している場合、ステップS8bにおいて、制御部37は、「受信失敗」フラグを設定する。ステップS8bが行われると、受信処理は終了する。   Next, in step S5, the control unit 37 determines whether or not a predetermined time has elapsed from the reception start timing. The predetermined time is, for example, 15 minutes. When the predetermined time has elapsed, in step S8b, the control unit 37 sets a “reception failure” flag. When step S8b is performed, the reception process ends.

所定時間が経過していない場合、ステップS6において、時刻データ取得部35は、受信時刻データを取得する。次に、ステップS7において、時刻データ取得部35は、受信時刻データに整合性があるかどうか判定する。受信時刻データに整合性がない場合、ステップS5に戻って、所定時間が経過しているかどうか判定される。受信時刻データに整合性がある場合、ステップS8aにおいて、制御部37は、「受信成功」フラグを設定する。ステップS8aが行われると、受信処理は終了する。   If the predetermined time has not elapsed, in step S6, the time data acquisition unit 35 acquires reception time data. Next, in step S7, the time data acquisition unit 35 determines whether or not the reception time data is consistent. If the reception time data is not consistent, the process returns to step S5 to determine whether a predetermined time has elapsed. If the reception time data is consistent, in step S8a, the control unit 37 sets a “reception successful” flag. When step S8a is performed, the reception process ends.

受信時刻データの整合性は、例えば、取得された受信時刻データに対応するTCのパリティーが一致することや、「分」と「時」と「年月日」が取り得る値であることにより判定される。受信時刻データの整合性は、また例えば、取得された複数フレームの受信時刻データ同士の間隔が適切であることにより判定される。   The consistency of the reception time data is determined, for example, by the fact that the parity of the TC corresponding to the acquired reception time data matches, or the values that can be taken from “minute”, “hour”, and “year / month / day”. Is done. The consistency of the reception time data is also determined, for example, by appropriate intervals between the acquired reception time data of a plurality of frames.

次に、英国の標準電波であるMSFを受信する場合を例として、より具体的に秒同期処理について説明する。まず、図8を参照して、MSFのTCO信号について説明する。図8は、MSFのTCO信号における秒ごとの信号の種類をまとめた表である。MSFのTCO信号における秒ごとの信号は、マーカーを除き、Bit AとBit Bとを含む2ビットの信号である。Bit A=0でBit B=0の信号は、当該信号の開始タイミングでLレベルからHレベルに遷移し(変化し、立ち上り)、Hレベルが100ms続いて、HレベルからLレベルに遷移し(変化し、立ち下り)、その後はLレベルが続く信号である。   Next, the second synchronization processing will be described more specifically by taking as an example the case of receiving an MSF which is a British standard radio wave. First, an MSF TCO signal will be described with reference to FIG. FIG. 8 is a table summarizing signal types per second in the MSF TCO signal. The signal per second in the MSF TCO signal is a 2-bit signal including Bit A and Bit B, excluding the marker. The signal of Bit A = 0 and Bit B = 0 transitions from the L level to the H level (changes and rises) at the start timing of the signal, the H level continues for 100 ms, and transitions from the H level to the L level ( It is a signal that changes and falls) and then continues at the L level.

Bit A=0でBit B=1の信号は、当該信号の開始タイミングで立ち上り、Hレベルが100ms続いて、立ち下り、Lレベルが100ms続いて、再び立ち上り、Hレベルが100ms続いて、再び立ち下り、その後はLレベルが続く信号である。   The signal of Bit A = 0 and Bit B = 1 rises at the start timing of the signal, H level continues for 100 ms, falls, L level continues for 100 ms, rises again, H level continues for 100 ms, and rises again It is a signal that goes down and then continues at the L level.

Bit A=1でBit B=0の信号は、当該信号の開始タイミングで立ち上り、Hレベルが200ms続いて、立ち下り、その後はLレベルが続く信号である。Bit A=1でBit B=1の信号は、当該信号の開始タイミングで立ち上り、Hレベルが300ms続いて、立ち下り、その後はLレベルが続く信号である。マーカーの信号は、当該信号の開始タイミングで立ち上り、Hレベルが500ms続いて、立ち下り、その後はLレベルが続く信号である。   A signal of Bit A = 1 and Bit B = 0 is a signal that rises at the start timing of the signal, continues for H ms for 200 ms, falls, and then continues for L level. A signal with Bit A = 1 and Bit B = 1 is a signal that rises at the start timing of the signal, H level continues for 300 ms, falls, and then the L level continues. The marker signal rises at the start timing of the signal, and is a signal in which the H level continues for 500 ms, falls, and thereafter the L level continues.

このように、MSFのTCO信号における秒ごとの信号は、いずれも、開始タイミングで立ち上りを有する信号である。このうち、Bit A=0でBit B=0の信号、Bit A=1でBit B=0の信号、Bit A=1でBit B=1の信号、および、マーカーの信号は、それぞれ、秒ごとの信号中に、1箇所の立ち上りのみを有し、1個のパルスのみを有する。一方、Bit A=0でBit B=1の信号は、秒ごとの信号中に、2箇所の(複数箇所の)立ち上りを有し、2個の(複数個の)パルスを有する。   As described above, any signal per second in the TCO signal of the MSF is a signal having a rise at the start timing. Of these, Bit A = 0 and Bit B = 0 signal, Bit A = 1 and Bit B = 0 signal, Bit A = 1 and Bit B = 1 signal, and Marker signal are each in seconds. The signal has only one rising edge and only one pulse. On the other hand, the signal of Bit A = 0 and Bit B = 1 has two (plural) rising edges in the signal per second and has two (plural) pulses.

Bit A=0でBit B=1の信号が連続している場合を例として、秒同期処理について説明する。図9は、Bit A=0でBit B=1の信号が連続している状況を示すタイミングチャートである。図9には、連続する秒ごとの信号sig1〜sig3が示されている。   The second synchronization processing will be described by taking as an example a case where the signal of Bit A = 0 and Bit B = 1 is continuous. FIG. 9 is a timing chart showing a situation in which Bit A = 0 and Bit B = 1 are continuous. FIG. 9 shows continuous signals sig1 to sig3 every second.

本例では、秒同期処理のステップS12での立ち上り確認処理が、図9に示すタイミングt0から開始される。タイミングt0は、信号sig1の1つ目のパルスp11と2つ目のパルスp12との間の、信号レベルがLレベルの期間に含まれるタイミングである。   In this example, the rising confirmation process in step S12 of the second synchronization process is started from timing t0 shown in FIG. Timing t0 is a timing included in a period in which the signal level is L level between the first pulse p11 and the second pulse p12 of the signal sig1.

タイミングt0の信号レベルはLレベルであるため、立ち上り確認処理のステップS30での判定結果は「YES」となり、ステップS31で「L信号中ON」フラグが設定され、ステップS32で「立ち上りOFF」フラグが設定される。「立ち上りON」フラグは設定されていないため、秒同期処理のステップS13での判定結果は「NO」となり、再びステップS12の立ち上り確認処理が行われる。パルスp12が立ち上るまでの期間は、信号レベルがLレベルであって、このような処理が繰り返される。   Since the signal level at the timing t0 is the L level, the determination result in step S30 of the rising confirmation process is “YES”, the “ON in L signal” flag is set in step S31, and the “rising OFF” flag is set in step S32. Is set. Since the “rise ON” flag is not set, the determination result in step S13 of the second synchronization process is “NO”, and the rise confirmation process in step S12 is performed again. During the period until the pulse p12 rises, the signal level is the L level, and such processing is repeated.

なお、説明の煩雑さを避けるため、秒同期処理のステップS10での判定結果は「NO」とし(10分は経過しておらず)、ステップS11での判定結果は「YES」(信号幅は10ms以上である)とする。   In order to avoid complicated description, the determination result in step S10 of the second synchronization process is “NO” (10 minutes have not elapsed), and the determination result in step S11 is “YES” (the signal width is 10 ms or more).

パルスp12が立ち上るタイミングt1において、信号レベルがHレベルに遷移する。信号レベルがHレベルとなったため、立ち上り確認処理のステップS30での判定結果は「NO」となる。そして、「L信号中ON」フラグが設定されているため、ステップS33で判定結果は「YES」となり、ステップS34で「L信号中OFF」フラグが設定され、ステップS35で「立ち上りON」フラグが設定される。このように、「立ち上りON」フラグが設定されて、立ち上りが検出される。   At the timing t1 when the pulse p12 rises, the signal level changes to the H level. Since the signal level has become H level, the determination result in step S30 of the rising confirmation process is “NO”. Since the “L signal ON” flag is set, the determination result is “YES” in step S33, the “L signal OFF” flag is set in step S34, and the “rising ON” flag is set in step S35. Is set. In this way, the “rising ON” flag is set, and the rising is detected.

「立ち上りON」フラグが設定されたため、秒同期処理のステップS13での判定結果は「YES」となる。「立ち上り取得済みON」フラグは設定されていないため、ステップS14の判定結果は「NO」となり、ステップS15において、「立ち上り取得済みON」フラグが設定され、周期カウンターが0に設定されて計時が開始される。その後、再びステップS12の立ち上り確認処理が行われる。   Since the “rising ON” flag is set, the determination result in step S13 of the second synchronization process is “YES”. Since the “rising acquisition completed ON” flag is not set, the determination result in step S14 is “NO”. In step S15, the “rising acquisition completed ON” flag is set, the cycle counter is set to 0, and the time is counted. Be started. Thereafter, the rising confirmation process in step S12 is performed again.

パルスp12の期間は、信号レベルがHレベルであって、立ち上り確認処理のステップS30での判定結果は「NO」となる。「L信号中ON」フラグは設定されていないためステップS33で判定結果は「NO」となり、ステップS34およびステップS35の処理はスキップされる。   During the period of the pulse p12, the signal level is H level, and the determination result in step S30 of the rising confirmation process is “NO”. Since the “L signal ON” flag is not set, the determination result is “NO” in step S33, and the processes in steps S34 and S35 are skipped.

そして、「立ち上りON」フラグが設定されているため、秒同期処理のステップS13での判定結果は「YES」となり、さらに、「立ち上り取得済みON」フラグが設定されたため、ステップS14の判定結果も「YES」となる。   Since the “rising ON” flag is set, the determination result in step S13 of the second synchronization process is “YES”. Furthermore, since the “rising acquired ON” flag is set, the determination result in step S14 is also set. “YES”.

パルスp12の期間は、周期カウンターの値が500msを超えていないため、ステップS16の判定結果は「NO」となり、再びステップS12の立ち上り確認処理が行われる。パルスp12の期間は、信号レベルがHレベルであって、このような処理が繰り返される。   Since the value of the cycle counter does not exceed 500 ms during the period of the pulse p12, the determination result in step S16 is “NO”, and the rising confirmation process in step S12 is performed again. During the period of the pulse p12, the signal level is H level, and such processing is repeated.

パルスp12が立ち下るタイミングt2において、信号レベルがLレベルに遷移する。信号sig2の1つ目のパルスp21が立ち上るまでの期間は、信号レベルがLレベルであるので、ステップS13での判定結果が「NO」となり、ステップS12の立ち上り確認処理が繰り返される。   At the timing t2 when the pulse p12 falls, the signal level changes to the L level. Since the signal level is L level during the period until the first pulse p21 of the signal sig2 rises, the determination result in step S13 is “NO”, and the rising confirmation process in step S12 is repeated.

パルスp21が立ち上るタイミングt3において、信号レベルがHレベルに遷移する。パルスp12の立ち上りの場合と同様にして、立ち上り確認処理において「立ち上りON」フラグが設定されて、立ち上りが検出される。そして、ステップS13での判定結果は「YES」となり、ステップS14の判定結果も「YES」となる。   At the timing t3 when the pulse p21 rises, the signal level changes to the H level. Similarly to the rising edge of the pulse p12, the “rising ON” flag is set in the rising confirmation process, and the rising edge is detected. Then, the determination result in step S13 is “YES”, and the determination result in step S14 is also “YES”.

パルスp21が立ち上るタイミングt3では、周期カウンターの値が500msを超えているため、ステップS16の判定結果は「YES」となる。そして、ステップS17において、周期カウンターに計時された、信号sig1の2つ目のパルスp12の立ち上りから(タイミングt1から)、信号sig2の1つ目のパルスp21の立ち上りまで(タイミングt3まで)の時間が、1000ms±公差の範囲内の時間であるかどうか判定される。   At the timing t3 when the pulse p21 rises, since the value of the cycle counter exceeds 500 ms, the determination result in step S16 is “YES”. In step S17, the time counted by the period counter from the rise of the second pulse p12 of the signal sig1 (from timing t1) to the rise of the first pulse p21 of the signal sig2 (until timing t3). Is a time within the range of 1000 ms ± tolerance.

タイミングt1からタイミングt3までの時間は800msであるため、ステップS17での判定結果は「NO」となる。したがって、ステップS19bにおいて、1秒周期連続取得数は0に設定される。また、ステップS20において、周期カウンターが0に設定されて再び計時が開始される。1秒周期連続取得数は0であるため、ステップS21での判定結果は「NO」となり、再びステップS12に戻って、立ち上り確認処理が行われる。   Since the time from timing t1 to timing t3 is 800 ms, the determination result in step S17 is “NO”. Therefore, in step S19b, the number of consecutive acquisitions of 1 second period is set to 0. In step S20, the cycle counter is set to 0 and the time measurement is started again. Since the number of 1-second continuous acquisitions is 0, the determination result in step S21 is “NO”, the process returns to step S12 again, and the rising confirmation process is performed.

パルスp21の期間は、信号レベルがHレベルであるので、パルスp12の期間と同様にして、ステップS13での判定結果が「YES」となり、ステップS14の判定結果が「YES」となる。そして、周期カウンターの値が500msを超えていないためステップS16の判定結果が「NO」となり、ステップS12の立ち上り確認処理が繰り返される。   Since the signal level is H level during the period of the pulse p21, the determination result in step S13 is “YES” and the determination result in step S14 is “YES” in the same manner as the period of the pulse p12. Since the value of the cycle counter does not exceed 500 ms, the determination result in step S16 is “NO”, and the rising confirmation process in step S12 is repeated.

パルスp21が立ち下るタイミングt4において、信号レベルがLレベルに遷移する。その後、信号sig2の2つ目のパルスp22が立ち上るまでの期間は、信号レベルがLレベルであるので、ステップS13での判定結果が「NO」となり、ステップS12の立ち上り確認処理が繰り返される。   At the timing t4 when the pulse p21 falls, the signal level changes to the L level. Thereafter, since the signal level is L level during the period until the second pulse p22 of the signal sig2 rises, the determination result in step S13 is “NO”, and the rising confirmation process in step S12 is repeated.

パルスp22が立ち上るタイミングt5において、信号レベルがHレベルに遷移する。パルスp12の立ち上りの場合と同様にして、立ち上り確認処理において「立ち上りON」フラグが設定されて、立ち上りが検出される。その後、パルスp22が立ち下るまでの期間は、信号レベルがHレベルであるので、パルス21の期間と同様にして、ステップS13での判定結果が「YES」となり、ステップS14の判定結果が「YES」となる。そして、周期カウンターの値が500msを超えないためステップS16の判定結果が「NO」となり、ステップS12の立ち上り確認処理が繰り返される。   At the timing t5 when the pulse p22 rises, the signal level changes to the H level. Similarly to the rising edge of the pulse p12, the “rising ON” flag is set in the rising confirmation process, and the rising edge is detected. Thereafter, since the signal level is H level during the period until the pulse p22 falls, the determination result in step S13 is “YES” and the determination result in step S14 is “YES” in the same manner as the period of the pulse 21. " Since the value of the cycle counter does not exceed 500 ms, the determination result in step S16 is “NO”, and the rising confirmation process in step S12 is repeated.

このように、パルスp22の立ち上りは検出されるものの、周期カウンターの値が500msを超えていないためステップS16の判定結果が「NO」となり、ステップS17は行われない。したがって、パルスp12の立ち上りから(タイミングt3から)パルスp22の立ち上りまで(タイミングt5まで)の時間は、1000ms±公差の範囲内の時間であるかどうか判定されない。   Thus, although the rising edge of the pulse p22 is detected, since the value of the period counter does not exceed 500 ms, the determination result of step S16 is “NO”, and step S17 is not performed. Therefore, it is not determined whether the time from the rise of the pulse p12 (from timing t3) to the rise of the pulse p22 (until timing t5) is within a range of 1000 ms ± tolerance.

パルスp22が立ち下るタイミングt6において、信号レベルがLレベルに遷移する。その後、信号sig3の1つ目のパルスp31が立ち上るまでの期間は、信号レベルがLレベルであるので、ステップS13での判定結果が「NO」となり、ステップS12の立ち上り確認処理が繰り返される。   At the timing t6 when the pulse p22 falls, the signal level transitions to the L level. Thereafter, since the signal level is L level during the period until the first pulse p31 of the signal sig3 rises, the determination result in step S13 is “NO”, and the rising confirmation process in step S12 is repeated.

パルスp31が立ち上るタイミングt7において、信号レベルがHレベルに遷移する。パルスp12の立ち上りの場合と同様にして、立ち上り確認処理において「立ち上りON」フラグが設定されて、立ち上りが検出される。   At the timing t7 when the pulse p31 rises, the signal level changes to the H level. Similarly to the rising edge of the pulse p12, the “rising ON” flag is set in the rising confirmation process, and the rising edge is detected.

パルスp31が立ち上るタイミングt7では、周期カウンターの値が500msを超えているため、ステップS16の判定結果は「YES」となる。そして、ステップS17において、周期カウンターに計時された、信号sig2の1つ目のパルスp21の立ち上りから(タイミングt3から)、信号sig3の1つ目のパルスp31の立ち上りまで(タイミングt7まで)の時間が、1000ms±公差の範囲内の時間であるかどうか判定される。   At the timing t7 when the pulse p31 rises, since the value of the cycle counter exceeds 500 ms, the determination result in step S16 is “YES”. In step S17, the time counted from the rising edge of the first pulse p21 of the signal sig2 (from timing t3) to the rising edge of the first pulse p31 of the signal sig3 (until timing t7) is counted by the period counter. Is a time within the range of 1000 ms ± tolerance.

タイミングt3からタイミングt7までの時間は1000msであるため、ステップS17での判定結果は「YES」となる。したがって、ステップS18において、周期カウンターによる計時時間が保存され、ステップS19aにおいて、1秒周期連続取得数が、0に1が加算されて1に設定される。また、ステップS20において、周期カウンターが0に設定されて再び計時が開始される。1秒周期連続取得数は1であるため、ステップS21での判定結果は「NO」となり、再びステップS12に戻って、立ち上り確認処理が行われる。   Since the time from timing t3 to timing t7 is 1000 ms, the determination result in step S17 is “YES”. Therefore, in step S18, the time measured by the cycle counter is stored, and in step S19a, the number of consecutive acquisitions of 1 second cycle is set to 1 by adding 1 to 0. In step S20, the cycle counter is set to 0 and the time measurement is started again. Since the number of 1-second continuous acquisitions is 1, the determination result in step S21 is “NO”, the process returns to step S12 again, and the rising confirmation process is performed.

その後は、秒ごとの信号の1つ目のパルスの立ち上りから、当該秒ごとの信号の直後の秒ごとの信号の1つ目のパルスの立ち上りまでの時間である1000msが連続して取得されるため、1秒周期連続取得数が順次加算される。   Thereafter, 1000 ms, which is the time from the rise of the first pulse of the signal per second to the rise of the first pulse of the signal per second immediately after the signal per second, is continuously acquired. Therefore, the number of consecutive acquisitions of 1 second period is sequentially added.

1秒周期連続取得数が10に到達すると、ステップS21の判定結果が「YES」となり、ステップS22で、保存された10個の計時結果の平均値が算出される。ステップS22で計時結果の平均値が算出されると、ステップS23aにおいて「秒同期成功」フラグが設定されて、秒同期処理は終了する。   When the number of 1-second continuous acquisitions reaches 10, the determination result in step S21 is “YES”, and in step S22, the average value of the 10 stored timing results is calculated. When the average value of the timing results is calculated in step S22, the “second synchronization success” flag is set in step S23a, and the second synchronization processing ends.

受信されたTCO信号におけるパルスの立ち上りタイミングやパルス幅は、ノイズの影響により、本来のものからの誤差を含む。このため、1秒として許容される計時結果を複数個(本例では10個)取得して、これらの平均値を算出することで、ノイズの影響を抑制して、1秒の周期を取得することができる。なお、下記の比較形態に対し、1秒の周期(1秒の間隔)を取得可能とするという観点からは、計時結果は1個でもよい。   The rise timing and pulse width of the pulse in the received TCO signal include an error from the original due to the influence of noise. For this reason, by acquiring a plurality (10 in this example) of time measurement results allowed as 1 second and calculating the average value thereof, the influence of noise is suppressed and a period of 1 second is acquired. be able to. In addition, from the viewpoint that it is possible to acquire a 1-second period (1-second interval) with respect to the following comparison form, one time measurement result may be used.

ここで、以下のような比較形態について考える。比較形態は、TCO信号におけるパルスの立ち上りから、当該立ち上りの直後の立ち上りまでの時間を計時することで、1秒の周期を取得しようとする態様である。比較形態では、まず、タイミングt1において立ち上りが検出される。そして、タイミングt3において次の立ち上りが検出されて、タイミングt1からタイミングt3までの時間が計時される。タイミングt1からタイミングt3までの時間は800msであるため、1秒の周期は取得できない。   Here, the following comparative forms are considered. The comparative form is an aspect in which a period of 1 second is acquired by measuring the time from the rise of the pulse in the TCO signal to the rise immediately after the rise. In the comparative form, first, a rising edge is detected at timing t1. Then, the next rising edge is detected at timing t3, and the time from timing t1 to timing t3 is measured. Since the time from timing t1 to timing t3 is 800 ms, a period of 1 second cannot be acquired.

その後、タイミングt5において次の立ち上りが検出されて、タイミングt3からタイミングt5までの時間が計時される。タイミングt3からタイミングt5までの時間は200msであり、1秒の周期は取得できない。さらにその後、タイミングt7において次の立ち上りが検出されて、タイミングt5からタイミングt7までの時間が計時される。タイミングt5からタイミングt7までの時間は再び800msとなる。このように、比較形態では、800msの計時と200msの計時とが繰り返され、1秒の周期を取得することはできない。   Thereafter, the next rising edge is detected at timing t5, and the time from timing t3 to timing t5 is measured. The time from timing t3 to timing t5 is 200 ms, and a period of 1 second cannot be acquired. Thereafter, the next rising edge is detected at timing t7, and the time from timing t5 to timing t7 is measured. The time from timing t5 to timing t7 is again 800 ms. As described above, in the comparative mode, the time measurement of 800 ms and the time measurement of 200 ms are repeated, and a period of 1 second cannot be acquired.

一方、本実施形態では、立ち上りからの経過時間が所定の待機時間(本例では500ms)を超えているかどうか判定し、当該経過時間が待機時間を超えた後に検出された立ち上りまでの時間を計時している。このようにして、秒ごとの信号の開始タイミングであるタイミングt3から、当該秒ごとの信号の直後の秒ごとの信号の開始タイミングであるタイミングt7までを計時することができ、1秒の周期を取得することができる。   On the other hand, in the present embodiment, it is determined whether the elapsed time from the rise exceeds a predetermined standby time (500 ms in this example), and the time until the rise detected after the elapsed time exceeds the standby time is counted. doing. In this way, the timing from the timing t3, which is the start timing of the signal per second, to the timing t7, which is the start timing of the signal per second immediately after the signal per second, can be measured, and a period of 1 second is obtained. Can be acquired.

当該待機時間は、1秒未満の時間に設定される。また、当該待機時間は、秒ごとの信号の開始タイミングにおける立ち上りから、当該待機時間が経過した後には、当該秒ごとの信号中に立ち上りが存在しない長さに設定される。   The waiting time is set to a time of less than 1 second. The waiting time is set to a length such that no rising edge exists in the signal per second after the waiting time has elapsed since the rising edge at the start timing of the signal per second.

以上説明したように、最初に検出された立ち上り(第1の変化、遷移)から待機時間(第1の時間)を超えた後に次の立ち上り(第2の変化、遷移)を検出し、最初に検出された立ち上りから次の立ち上りまでの時間を計時して、1秒を含む許容範囲内の時間であるかどうか判定することで、例えばMSFのBit A=0およびBit B=1を示す信号のように秒ごとの信号中に複数個のパルスが含まれる場合であっても、1秒の周期を取得することができ、秒同期処理を行うことができる。1秒を含む許容範囲内の時間であるかどうかの判定結果が肯定の場合(当該許容範囲内の時間である場合)に、当該最初に検出された立ち上り(第1の変化、遷移)または当該次の立ち上り(第2の変化、遷移)を基準として、時刻データ取得部35により、TCO信号に基づいて時刻データが取得される。   As described above, after the standby time (first time) is exceeded from the first detected rising edge (first change or transition), the next rising edge (second change or transition) is detected. By measuring the time from the detected rising edge to the next rising edge and determining whether the time is within an allowable range including 1 second, for example, the signal indicating Bit A = 0 and Bit B = 1 of the MSF Thus, even when a plurality of pulses are included in a signal per second, a period of 1 second can be acquired and a second synchronization process can be performed. If the determination result whether the time is within the allowable range including 1 second is affirmative (when the time is within the allowable range), the first detected rising edge (first change or transition) or the The time data acquisition unit 35 acquires time data based on the TCO signal based on the next rising edge (second change or transition).

後述の第2実施形態および第3実施形態と対比すると、第1実施形態では、待機時間(第1の時間)中に含まれる他の立ち上り(第3の変化、遷移)を検出するものの、最初に検出された立ち上り(第1の変化、遷移)から他の立ち上り(第3の変化、遷移)までの時間については、1秒を含む許容範囲内の時間であるかどうか判定しない(ステップS16参照)。第1実施形態では、このようにして、最初に検出された立ち上り(第1の変化、遷移)から待機時間(第1の時間)を超えた後に検出された次の立ち上り(第2の変化、遷移)までの時間が、1秒を含む許容範囲内の時間であるかどうかの判定を、適切に行うことができる。   In contrast to the second and third embodiments described later, the first embodiment detects other rising edges (third change, transition) included in the standby time (first time). It is not determined whether the time from the rising edge (first change or transition) detected in step 1 to the other rising edge (third change or transition) is within an allowable range including 1 second (see step S16). ). In the first embodiment, in this way, the next rising edge (second change, which is detected after the standby time (first time) is exceeded after the first rising edge (first change, transition) is detected. It is possible to appropriately determine whether the time until (transition) is within an allowable range including one second.

<第2実施形態>
次に、第2実施形態による電波修正時計1について説明する。第2実施形態は、秒同期処理と立ち上り確認処理とが、第1実施形態と異なる。図5は、第2実施形態による秒同期処理を示すフローチャートであり、図6は、第2実施形態による立ち上り確認処理を示すフローチャートである。
Second Embodiment
Next, the radio-controlled timepiece 1 according to the second embodiment will be described. The second embodiment differs from the first embodiment in the second synchronization processing and the rising confirmation processing. FIG. 5 is a flowchart showing the second synchronization processing according to the second embodiment, and FIG. 6 is a flowchart showing the rising confirmation processing according to the second embodiment.

第2実施形態による秒同期処理のフローチャートでは、第1実施形態による秒同期処理のフローチャートにおけるステップS16に替えてステップS24が行われ、ステップS21の判定結果が「NO」であってステップS10に戻る途中に、ステップS25が追加されている。また、第2実施形態による立ち上り確認処理のフローチャートでは、ステップS30の判定結果が「YES」の場合の処理が、第1実施形態による立ち上り確認処理のフローチャートと異なっている。   In the flowchart of the second synchronization process according to the second embodiment, step S24 is performed instead of step S16 in the flowchart of the second synchronization process according to the first embodiment, the determination result of step S21 is “NO”, and the process returns to step S10. In the middle, step S25 is added. In the flowchart of the rising confirmation process according to the second embodiment, the process in the case where the determination result in step S30 is “YES” is different from the flowchart of the rising confirmation process according to the first embodiment.

受信処理が開始されてから、ステップS1の受信処理を経て、ステップS2の秒同期処理におけるステップS11までは、第1実施形態と同様に行われる。ステップS12の立ち上り確認処理におけるステップS30で、遷移検出部32は、信号レベルがLレベルであるかどうか判定する。信号レベルがLレベルである場合、ステップS36において、遷移検出部32は、「立ち上り取得済みON」フラグが設定されているかどうか判定する。   From the start of the reception process to the step S11 in the second synchronization process of step S2 through the reception process of step S1, the same process as in the first embodiment is performed. In step S30 in the rising confirmation process in step S12, the transition detection unit 32 determines whether the signal level is the L level. When the signal level is the L level, in step S36, the transition detection unit 32 determines whether or not the “rising acquisition completed ON” flag is set.

「立ち上り取得済みON」フラグが設定されていない場合、制御部37は、ステップS31において、「L信号中ON」フラグを設定し、ステップS32において、「立ち上りOFF」フラグを設定する。ステップS32が行われると、立ち上り確認処理は終了する。   If the “rising acquisition completed ON” flag is not set, the control unit 37 sets an “L signal ON” flag in step S31, and sets a “rising OFF” flag in step S32. When step S32 is performed, the rising confirmation process ends.

「立ち上り取得済みON」フラグが設定されている場合、ステップS37において、制御部37は、周期カウンターが500ms(上述の待機時間)を超えているかどうか判定する。周期カウンターが500msを超えていない場合、ステップS31はスキップされて「L信号中ON」フラグは設定されずに、ステップS32において「立ち上りOFF」フラグが設定される。ステップS32が行われると、立ち上り確認処理は終了する。   When the “rising acquisition completed ON” flag is set, in step S37, the control unit 37 determines whether or not the cycle counter exceeds 500 ms (the above-described standby time). If the period counter does not exceed 500 ms, step S31 is skipped and the “rising signal ON” flag is not set, but the “rising OFF” flag is set in step S32. When step S32 is performed, the rising confirmation process ends.

周期カウンターが500msを超えている場合、ステップS38において、制御部37は、「L取得ON」フラグを設定する。そして、ステップS31において「L信号中ON」フラグが設定され、ステップS32において「立ち上りOFF」フラグが設定される。ステップS32が行われると、立ち上り確認処理は終了する。ステップS30で信号レベルがLレベルでない(Hレベルである)場合の処理は、第1実施形態と同様に行われる。   When the period counter exceeds 500 ms, in step S38, the control unit 37 sets an “L acquisition ON” flag. In step S31, an “L signal ON” flag is set, and in step S32, a “rising OFF” flag is set. When step S32 is performed, the rising confirmation process ends. The processing when the signal level is not L level (H level) in step S30 is performed in the same manner as in the first embodiment.

立ち上り確認処理が終了すると、秒同期処理において、第1実施形態と同様にして、ステップS13〜ステップS15が行われる。ステップS14で「立ち上り取得済みON」フラグが設定されている場合、ステップS24が行われる。   When the rising confirmation process is completed, steps S13 to S15 are performed in the second synchronization process in the same manner as in the first embodiment. If the “start-up acquired ON” flag is set in step S14, step S24 is performed.

ステップS24において、制御部37は、「L取得ON」フラグが設定されているかどうか判定する。「L取得ON」フラグが設定されていない場合、ステップS10に戻り、ステップS10とステップS11とを経て、再びステップS12で立ち上り確認処理が行われる。「L取得ON」フラグが設定されている場合、ステップS17において、周期カウンターに計時された時間が、1000ms(1秒)±公差の範囲内の時間であるかどうか判定される。   In step S24, the control unit 37 determines whether or not the “L acquisition ON” flag is set. If the “L acquisition ON” flag is not set, the process returns to step S10, and the rising confirmation process is performed again in step S12 through steps S10 and S11. If the “L acquisition ON” flag is set, it is determined in step S17 whether or not the time counted by the period counter is within a range of 1000 ms (1 second) ± tolerance.

ステップS18、ステップS19a、ステップS19b、ステップS20およびステップS21は、第1実施形態と同様に行われる。ステップS21で1秒周期連続取得数が10に到達しない場合、ステップS25が行われる。ステップS25において、制御部37は、「L取得OFF」フラグを設定する。ステップS25が行われると、ステップS10に戻り、ステップS10とステップS11とを経て、再びステップS12で立ち上り確認処理が行われる。   Step S18, step S19a, step S19b, step S20 and step S21 are performed in the same manner as in the first embodiment. If the number of consecutive acquisitions per 1 second period does not reach 10 in step S21, step S25 is performed. In step S25, the control unit 37 sets an “L acquisition OFF” flag. When step S25 is performed, the process returns to step S10, and after step S10 and step S11, the rising confirmation process is performed again in step S12.

ステップS22、ステップS23aおよびステップS23bは、第1実施形態と同様に行われ、ステップS23aまたはステップS23bが行われると、秒同期処理は終了する。受信処理におけるステップS3以降の処理は、第1実施形態と同様に行われる。このようにして、第2実施形態における受信処理が行われる。   Step S22, step S23a, and step S23b are performed in the same manner as in the first embodiment, and when step S23a or step S23b is performed, the second synchronization processing ends. The processes after step S3 in the reception process are performed in the same manner as in the first embodiment. In this way, the reception process in the second embodiment is performed.

次に、再び図9を参照して、第2実施形態による秒同期処理をより具体的に説明する。第1実施形態と同様に、ステップS12の立ち上り確認処理が、タイミングt0から開始される場合を例示する。   Next, referring again to FIG. 9, the second synchronization processing according to the second embodiment will be described more specifically. As in the first embodiment, a case where the rising confirmation process in step S12 is started from timing t0 is illustrated.

タイミングt0の信号レベルはLレベルであるため、立ち上り確認処理のステップS30での判定結果は「YES」となり、「立ち上り取得済みON」フラグは設定されていないためステップS36での判定結果は「NO」となる。そして、ステップS31で「L信号中ON」フラグが設定され、ステップS32で「立ち上りOFF」フラグが設定される。「立ち上りON」フラグは設定されていないため、秒同期処理のステップS13での判定結果は「NO」となり、再びステップS12の立ち上り確認処理が行われる。パルスp12が立ち上るまでの期間は、信号レベルがLレベルであって、このような処理が繰り返される。   Since the signal level at the timing t0 is the L level, the determination result in step S30 of the rising confirmation process is “YES”, and the determination result in step S36 is “NO” because the “rise acquired already” flag is not set. " In step S31, an “L signal ON” flag is set, and in step S32, a “rising OFF” flag is set. Since the “rise ON” flag is not set, the determination result in step S13 of the second synchronization process is “NO”, and the rise confirmation process in step S12 is performed again. During the period until the pulse p12 rises, the signal level is the L level, and such processing is repeated.

パルスp12が立ち上るタイミングt1において、信号レベルがHレベルに遷移する。信号レベルがHレベルとなったため、立ち上り確認処理のステップS30での判定結果は「NO」となる。そして、「L信号中ON」フラグが設定されているため、ステップS33で判定結果は「YES」となり、ステップS34で「L信号中OFF」フラグが設定され、ステップS35で「立ち上りON」フラグが設定される。このように、「立ち上りON」フラグが設定されて、立ち上りが検出される。   At the timing t1 when the pulse p12 rises, the signal level changes to the H level. Since the signal level has become H level, the determination result in step S30 of the rising confirmation process is “NO”. Since the “L signal ON” flag is set, the determination result is “YES” in step S33, the “L signal OFF” flag is set in step S34, and the “rising ON” flag is set in step S35. Is set. In this way, the “rising ON” flag is set, and the rising is detected.

「立ち上りON」フラグが設定されたため、秒同期処理のステップS13での判定結果は「YES」となる。「立ち上り取得済みON」フラグは設定されていないため、ステップS14の判定結果は「NO」となり、ステップS15において、「立ち上り取得済みON」フラグが設定され、周期カウンターが0に設定されて計時が開始される。その後、再びステップS12の立ち上り確認処理が行われる。   Since the “rising ON” flag is set, the determination result in step S13 of the second synchronization process is “YES”. Since the “rising acquisition completed ON” flag is not set, the determination result in step S14 is “NO”. In step S15, the “rising acquisition completed ON” flag is set, the cycle counter is set to 0, and the time is counted. Be started. Thereafter, the rising confirmation process in step S12 is performed again.

パルスp12の期間は、信号レベルがHレベルであって、立ち上り確認処理のステップS30での判定結果は「NO」となる。「L信号中ON」フラグは設定されていないため、ステップS33で判定結果は「NO」となり、ステップS34およびステップS35の処理はスキップされる。   During the period of the pulse p12, the signal level is H level, and the determination result in step S30 of the rising confirmation process is “NO”. Since the “L signal ON” flag is not set, the determination result is “NO” in step S33, and the processes in steps S34 and S35 are skipped.

そして、「立ち上りON」フラグが設定されているため、秒同期処理のステップS13での判定結果は「YES」となり、さらに、「立ち上り取得済みON」フラグが設定されたため、ステップS14の判定結果も「YES」となる。   Since the “rising ON” flag is set, the determination result in step S13 of the second synchronization process is “YES”. Furthermore, since the “rising acquired ON” flag is set, the determination result in step S14 is also set. “YES”.

パルスp12の期間は、「L取得ON」フラグが設定されていないため、ステップS24の判定結果は「NO」となり、再びステップS12の立ち上り確認処理が行われる。パルスp12の期間は、信号レベルがHレベルであって、このような処理が繰り返される。   Since the “L acquisition ON” flag is not set during the period of the pulse p12, the determination result in step S24 is “NO”, and the rising confirmation process in step S12 is performed again. During the period of the pulse p12, the signal level is H level, and such processing is repeated.

パルスp12が立ち下るタイミングt2において、信号レベルがLレベルに遷移する。タイミングt2においては、「立ち上り取得済みON」フラグが設定されているため、ステップS36での判定結果は「YES」となり、周期カウンターの値が500msを超えていないため、ステップS37での判定結果は「NO」となる。そして、ステップS32で「立ち上りOFF」フラグが設定される。   At the timing t2 when the pulse p12 falls, the signal level changes to the L level. At the timing t2, since the “rising acquisition completed ON” flag is set, the determination result in step S36 is “YES”, and since the value of the cycle counter does not exceed 500 ms, the determination result in step S37 is “NO”. In step S32, the “rise OFF” flag is set.

信号sig2の1つ目のパルスp21が立ち上るまでの期間は、信号レベルがLレベルであるので、ステップS13での判定結果が「NO」となり、ステップS12の立ち上り確認処理が繰り返される。   Since the signal level is L level during the period until the first pulse p21 of the signal sig2 rises, the determination result in step S13 is “NO”, and the rising confirmation process in step S12 is repeated.

パルスp21が立ち上るまでの期間の途中で、周期カウンターの値が500msを超える。周期カウンターの値が500msを超えた後は、ステップS37における判定結果が「YES」となり、ステップS38で「L取得ON」フラグが設定され、ステップS31で「L信号中ON」フラグが設定されて、ステップS32で「立ち上りOFF」フラグが設定される。   In the middle of the period until the pulse p21 rises, the value of the period counter exceeds 500 ms. After the value of the cycle counter exceeds 500 ms, the determination result in step S37 is “YES”, the “L acquisition ON” flag is set in step S38, and the “L signal ON” flag is set in step S31. In step S32, the “rise OFF” flag is set.

パルスp21が立ち上るタイミングt3において、信号レベルがHレベルに遷移する。パルスp12の立ち上りの場合と同様にして、立ち上り確認処理において「立ち上りON」フラグが設定されて、立ち上りが検出される。そして、ステップS13での判定結果は「YES」となり、ステップS14の判定結果も「YES」となる。   At the timing t3 when the pulse p21 rises, the signal level changes to the H level. Similarly to the rising edge of the pulse p12, the “rising ON” flag is set in the rising confirmation process, and the rising edge is detected. Then, the determination result in step S13 is “YES”, and the determination result in step S14 is also “YES”.

パルスp21が立ち上るタイミングt3では、「L取得ON」フラグが設定されているため、ステップS24の判定結果は「YES」となる。そして、ステップS17において、周期カウンターに計時された、信号sig1の2つ目のパルスp12の立ち上りから(タイミングt1から)、信号sig2の1つ目のパルスp21の立ち上りまで(タイミングt3まで)の時間が、1000ms±公差の範囲内の時間であるかどうか判定される。   At the timing t3 when the pulse p21 rises, since the “L acquisition ON” flag is set, the determination result in step S24 is “YES”. In step S17, the time counted by the period counter from the rise of the second pulse p12 of the signal sig1 (from timing t1) to the rise of the first pulse p21 of the signal sig2 (until timing t3). Is a time within the range of 1000 ms ± tolerance.

タイミングt1からタイミングt3までの時間は800msであるため、ステップS17での判定結果は「NO」となる。したがって、ステップS19bにおいて、1秒周期連続取得数は0に設定される。また、ステップS20において、周期カウンターが0に設定されて再び計時が開始される。1秒周期連続取得数は0であるため、ステップS21での判定結果は「NO」となる。そして、ステップS25で「L取得OFF」フラグが設定され、再びステップS12に戻って、立ち上り確認処理が行われる。   Since the time from timing t1 to timing t3 is 800 ms, the determination result in step S17 is “NO”. Therefore, in step S19b, the number of consecutive acquisitions of 1 second period is set to 0. In step S20, the cycle counter is set to 0 and the time measurement is started again. Since the 1-second period continuous acquisition number is 0, the determination result in step S21 is “NO”. Then, the “L acquisition OFF” flag is set in step S25, the process returns to step S12 again, and the rising confirmation process is performed.

パルスp21の期間は、信号レベルがHレベルであるので、パルスp12の期間と同様にして、ステップS13での判定結果が「YES」となり、ステップS14の判定結果が「YES」となる。そして、「L取得ON」フラグが設定されていないためステップS24の判定結果が「NO」となり、ステップS12の立ち上り確認処理が繰り返される。   Since the signal level is H level during the period of the pulse p21, the determination result in step S13 is “YES” and the determination result in step S14 is “YES” in the same manner as the period of the pulse p12. Since the “L acquisition ON” flag is not set, the determination result in step S24 is “NO”, and the rising confirmation process in step S12 is repeated.

パルスp21が立ち下るタイミングt4において、信号レベルがLレベルに遷移する。タイミングt4においては、「立ち上り取得済みON」フラグが設定されているためステップS36での判定結果は「YES」となり、周期カウンターの値が500msを超えていないためステップS37での判定結果は「NO」となる。したがって、ステップS38での「L取得ON」フラグの設定は行われず、ステップS31での「L信号中ON」フラグの設定は行われずに、ステップS32で「立ち上りOFF」フラグが設定される。   At the timing t4 when the pulse p21 falls, the signal level changes to the L level. At timing t4, since the “rising acquisition completed ON” flag is set, the determination result in step S36 is “YES”, and since the value of the cycle counter does not exceed 500 ms, the determination result in step S37 is “NO”. " Accordingly, the “L acquisition ON” flag is not set in step S38, the “L signal ON” flag is not set in step S31, and the “rising OFF” flag is set in step S32.

その後、信号sig2の2つ目のパルスp22が立ち上るまでの期間は、信号レベルがLレベルであるので、パルスp12が立ち上るまでのLレベルの期間と同様にして、ステップS13での判定結果が「NO」となり、ステップS12の立ち上り確認処理が繰り返される。   Thereafter, since the signal level is at the L level until the second pulse p22 of the signal sig2 rises, the determination result at step S13 indicates that the determination result at step S13 is “L” until the pulse p12 rises. "NO", the rising confirmation process in step S12 is repeated.

パルスp22が立ち上るタイミングt5において、信号レベルがHレベルに遷移する。ステップS30での判定結果は「NO」となるが、「L信号中ON」フラグは設定されていない。したがって、ステップS34での「L信号中OFF」フラグの設定は行われず、ステップS35での「立ち上りON」フラグの設定は行われずに、立ち上り確認処理は終了する。   At the timing t5 when the pulse p22 rises, the signal level changes to the H level. The determination result in step S30 is “NO”, but the “L signal ON” flag is not set. Therefore, the “L signal OFF” flag is not set in step S34, the “rise ON” flag is not set in step S35, and the rise confirmation process ends.

このように、タイミングt5における立ち上りに対しては、立ち上り確認処理において「立ち上りON」フラグが設定されず、立ち上りが検出されない。その後、パルスp22が立ち下るまでの期間は、信号レベルはHレベルであるが、「立ち上りON」フラグが設定されていないため、ステップS13での判定結果が「NO」となり、ステップS12の立ち上り確認処理が繰り返される。   As described above, for the rising at the timing t5, the “rising ON” flag is not set in the rising confirmation process, and the rising is not detected. Thereafter, during the period until the pulse p22 falls, the signal level is H level, but since the “rise ON” flag is not set, the determination result in step S13 is “NO”, and the rise confirmation in step S12 The process is repeated.

パルスp22が立ち下るタイミングt6において、信号レベルがLレベルに遷移する。その後、信号sig3の1つ目のパルスp31が立ち上るまでの期間は、信号レベルがLレベルであるので、ステップS13での判定結果が「NO」となり、ステップS12の立ち上り確認処理が繰り返される。   At the timing t6 when the pulse p22 falls, the signal level transitions to the L level. Thereafter, since the signal level is L level during the period until the first pulse p31 of the signal sig3 rises, the determination result in step S13 is “NO”, and the rising confirmation process in step S12 is repeated.

パルスp31が立ち上るまでの期間の途中で、周期カウンターの値が500msを超える。周期カウンターの値が500msを超えた後は、ステップS37における判定結果が「YES」となり、ステップS38で「L取得ON」フラグが設定され、ステップS31で「L信号中ON」フラグが設定されて、ステップS32で「立ち上りOFF」フラグが設定される。   In the middle of the period until the pulse p31 rises, the value of the period counter exceeds 500 ms. After the value of the cycle counter exceeds 500 ms, the determination result in step S37 is “YES”, the “L acquisition ON” flag is set in step S38, and the “L signal ON” flag is set in step S31. In step S32, the “rise OFF” flag is set.

パルスp31が立ち上るタイミングt7において、信号レベルがHレベルに遷移する。パルスp12の立ち上りの場合と同様にして、立ち上り確認処理において「立ち上りON」フラグが設定されて、立ち上りが検出される。そして、ステップS13での判定結果は「YES」となり、ステップS14の判定結果も「YES」となる。   At the timing t7 when the pulse p31 rises, the signal level changes to the H level. Similarly to the rising edge of the pulse p12, the “rising ON” flag is set in the rising confirmation process, and the rising edge is detected. Then, the determination result in step S13 is “YES”, and the determination result in step S14 is also “YES”.

パルスp31が立ち上るタイミングt7では、「L取得ON」フラグが設定されているため、ステップS24の判定結果は「YES」となる。そして、ステップS17において、周期カウンターに計時された、信号sig2の1つ目のパルスp21の立ち上りから(タイミングt3から)、信号sig3の1つ目のパルスp31の立ち上りまで(タイミングt7まで)の時間が、1000ms±公差の範囲内の時間であるかどうか判定される。   At the timing t7 when the pulse p31 rises, since the “L acquisition ON” flag is set, the determination result of step S24 is “YES”. In step S17, the time counted from the rising edge of the first pulse p21 of the signal sig2 (from timing t3) to the rising edge of the first pulse p31 of the signal sig3 (until timing t7) is counted by the period counter. Is a time within the range of 1000 ms ± tolerance.

タイミングt3からタイミングt7までの時間は1000msであるため、ステップS17での判定結果は「YES」となる。したがって、ステップS18において、周期カウンターによる計時時間が保存され、ステップS19aにおいて、1秒周期連続取得数が、0に1が加算されて1に設定される。また、ステップS20において、周期カウンターが0に設定されて再び計時が開始される。1秒周期連続取得数は1であるため、ステップS21での判定結果は「NO」となり、ステップS25を介して再びステップS12に戻り、立ち上り確認処理が行われる。   Since the time from timing t3 to timing t7 is 1000 ms, the determination result in step S17 is “YES”. Therefore, in step S18, the time measured by the cycle counter is stored, and in step S19a, the number of consecutive acquisitions of 1 second cycle is set to 1 by adding 1 to 0. In step S20, the cycle counter is set to 0 and the time measurement is started again. Since the number of 1-second continuous acquisitions is 1, the determination result in step S21 is “NO”, the process returns to step S12 again via step S25, and the rising confirmation process is performed.

その後は、秒ごとの信号の1つ目のパルスの立ち上りから、当該秒ごとの信号の直後の秒ごとの信号の1つ目のパルスの立ち上りまでの時間である1000msが連続して取得されるため、1秒周期連続取得数が順次加算される。第1実施形態と同様に、計時結果の平均値が算出されると、秒同期処理は終了する。   Thereafter, 1000 ms, which is the time from the rise of the first pulse of the signal per second to the rise of the first pulse of the signal per second immediately after the signal per second, is continuously acquired. Therefore, the number of consecutive acquisitions of 1 second period is sequentially added. Similar to the first embodiment, when the average value of the time measurement results is calculated, the second synchronization process ends.

第2実施形態においても、第1実施形態と同様に、最初に検出された立ち上り(第1の変化、遷移)から待機時間(第1の時間)を超えた後に次の立ち上り(第2の変化、遷移)を検出し、最初に検出された立ち上りから次の立ち上りまでの時間を計時して、1秒を含む許容範囲内の時間であるかどうか判定することで、1秒の周期を取得することができ、秒同期処理を行うことができる。   Also in the second embodiment, similarly to the first embodiment, after the first detected rising edge (first change, transition) exceeds the standby time (first time), the next rising edge (second change). , Transition) is detected, the time from the first detected rising to the next rising is counted, and a period of 1 second is obtained by determining whether the time is within an allowable range including 1 second. Second synchronization processing can be performed.

第1実施形態および後述の第3実施形態と対比すると、第2実施形態では、待機時間(第1の時間)中に含まれる他の立ち上り(第3の変化、遷移)は、立ち上り(変化、遷移)を検出しない(ステップS24、ステップS37参照)。第2実施形態では、このようにして、最初に検出された立ち上り(第1の変化、遷移)から待機時間(第1の時間)を超えた後に検出された次の立ち上り(第2の変化、遷移)までの時間が、1秒を含む許容範囲内の時間であるかどうかの判定を、適切に行うことができる。   In contrast to the first embodiment and the third embodiment described later, in the second embodiment, other rising edges (third change, transition) included in the standby time (first time) are rising edges (changes, (Transition) is not detected (see step S24 and step S37). In the second embodiment, the next rising edge (second change, detected after exceeding the waiting time (first time) from the first rising edge (first change, transition) thus detected. It is possible to appropriately determine whether the time until (transition) is within an allowable range including one second.

<第3実施形態>
次に、第3実施形態による電波修正時計1について説明する。第3実施形態は、秒同期処理が、第1実施形態と異なる。図7は、第3実施形態による秒同期処理を示すフローチャートである。なお、第3実施形態による立ち上り確認処理は、図4に示した第1実施形態による立ち上り確認処理と同様である。
<Third Embodiment>
Next, the radio-controlled timepiece 1 according to the third embodiment will be described. The third embodiment is different from the first embodiment in the second synchronization processing. FIG. 7 is a flowchart showing the second synchronization processing according to the third embodiment. The rising confirmation process according to the third embodiment is the same as the rising confirmation process according to the first embodiment shown in FIG.

第3実施形態による秒同期処理のフローチャートでは、第1実施形態による秒同期処理のフローチャートにおけるステップS16が省略されている。また、ステップS15の後にステップS10に戻る途中、および、ステップS21の後にステップS10に戻る途中に、ステップS26が追加されている。   In the flowchart of the second synchronization process according to the third embodiment, step S16 in the flowchart of the second synchronization process according to the first embodiment is omitted. Further, step S26 is added on the way to return to step S10 after step S15 and on the way to step S10 after step S21.

受信処理が開始されてから、秒同期処理におけるステップS12の立ち上り確認処理で「立ち上りON」フラグが設定され、ステップS13での判定結果が「YES」となり、ステップS14での判定結果が「NO」となり、ステップS15で「立ち上り取得済みON」フラグが設定され、周期カウンターが0に設定されて計時が開始される処理までは、第1実施形態と同様に行われる。   After the reception process is started, the “rising ON” flag is set in the rising confirmation process in step S12 in the second synchronization process, the determination result in step S13 is “YES”, and the determination result in step S14 is “NO”. In step S15, the process is performed in the same manner as in the first embodiment until the “start-up acquired ON” flag is set, the period counter is set to 0, and the time measurement is started.

ステップS15が行われると、ステップS26において、制御部37は、サンプリング部31を制御して、周期カウンターの値が500ms(上述の待機時間)を超えるまで、サンプリングを停止させる。また、ステップS26において、制御部37は、周期カウンターの値が500msを超えると、サンプリング部31を制御して、サンプリングを再開させる。   When step S15 is performed, in step S26, the control unit 37 controls the sampling unit 31 to stop sampling until the value of the cycle counter exceeds 500 ms (the above-described standby time). In step S26, when the value of the period counter exceeds 500 ms, the control unit 37 controls the sampling unit 31 to resume sampling.

サンプリングが再開すると、ステップS10に戻り、ステップS10とステップS11とを経て、再びステップS12で立ち上り確認処理が行われる。ステップS12の立ち上り確認処理で「立ち上りON」フラグが設定されると、ステップS13での判定結果が「YES」となり、「立ち上り取得済みON」フラグが設定されているためステップS14での判定結果が「YES」となり、ステップS17が行われる。   When the sampling is resumed, the process returns to step S10, and the rising confirmation process is performed again in step S12 through steps S10 and S11. When the “rising ON” flag is set in the rising confirmation process in step S12, the determination result in step S13 is “YES”, and since the “rising acquisition completed ON” flag is set, the determination result in step S14 is "YES" is determined, and Step S17 is performed.

ステップS17、ステップS18、ステップS19a、ステップS19b、ステップS20およびステップS21は、第1実施形態と同様に行われる。ステップS21で1秒周期連続取得数が10に到達しない場合、再びステップS26が行われる。ステップS26で、周期カウンターの値が500msを超えるまでサンプリングが停止され、周期カウンターの値が500msを超えるとサンプリングが再開される。なお、ステップS20で、周期カウンターが0に設定されて再び計時が開始されている。   Step S17, Step S18, Step S19a, Step S19b, Step S20 and Step S21 are performed in the same manner as in the first embodiment. If the number of consecutive acquisitions of 1 second period does not reach 10 in step S21, step S26 is performed again. In step S26, sampling is stopped until the value of the period counter exceeds 500 ms, and sampling is resumed when the value of the period counter exceeds 500 ms. In step S20, the cycle counter is set to 0, and time measurement is started again.

ステップS21で1秒周期連続取得数が10に到達した場合、ステップS22およびステップS23aが、第1実施形態と同様に行われる。また、ステップS23bは、第1実施形態と同様に行われる。ステップS23aまたはステップS23bが行われると、秒同期処理は終了する。受信処理におけるステップS3以降の処理は、第1実施形態と同様に行われる。このようにして、第3実施形態における受信処理が行われる。   When the number of 1-second continuous acquisitions reaches 10 in step S21, step S22 and step S23a are performed in the same manner as in the first embodiment. Step S23b is performed in the same manner as in the first embodiment. When step S23a or step S23b is performed, the second synchronization process ends. The processes after step S3 in the reception process are performed in the same manner as in the first embodiment. In this way, the reception process in the third embodiment is performed.

次に、再び図9を参照して、第3実施形態による秒同期処理をより具体的に説明する。第1実施形態と同様に、ステップS12の立ち上り確認処理が、タイミングt0から開始される場合を例示する。   Next, referring again to FIG. 9, the second synchronization processing according to the third embodiment will be described more specifically. As in the first embodiment, a case where the rising confirmation process in step S12 is started from timing t0 is illustrated.

タイミングt0からパルスp12が立ち上るタイミングt1までの期間は、信号レベルがLレベルであって、「立ち上りON」フラグは設定されておらず、秒同期処理のステップS13での判定結果は「NO」となり、再びステップS12の立ち上り確認処理が行われる。   During the period from the timing t0 to the timing t1 when the pulse p12 rises, the signal level is L level, the “rising ON” flag is not set, and the determination result in step S13 of the second synchronization processing is “NO”. The rising confirmation process in step S12 is performed again.

パルスp12が立ち上るタイミングt1において、信号レベルがHレベルに遷移して、「立ち上りON」フラグが設定される。「立ち上りON」フラグが設定されたため、秒同期処理のステップS13での判定結果は「YES」となる。「立ち上り取得済みON」フラグは設定されていないため、ステップS14の判定結果は「NO」となり、ステップS15において、「立ち上り取得済みON」フラグが設定され、周期カウンターが0に設定されて計時が開始される。   At the timing t1 when the pulse p12 rises, the signal level transits to the H level, and the “rise ON” flag is set. Since the “rising ON” flag is set, the determination result in step S13 of the second synchronization process is “YES”. Since the “rising acquisition completed ON” flag is not set, the determination result in step S14 is “NO”. In step S15, the “rising acquisition completed ON” flag is set, the cycle counter is set to 0, and the time is counted. Be started.

そして、ステップS26において、周期カウンターが500msを超えるまでサンプリングが停止され、周期カウンターが500msを超えると、サンプリングが再開される。サンプリングが再開されるタイミングで、信号レベルはLレベルとなっている。   In step S26, sampling is stopped until the period counter exceeds 500 ms, and when the period counter exceeds 500 ms, sampling is resumed. At the timing when sampling is resumed, the signal level is L level.

サンプリングが再開されてからパルスp21が立ち上るまでの期間は、信号レベルがLレベルであるので、ステップS13での判定結果が「NO」となり、ステップS12の立ち上り確認処理が繰り返される。   Since the signal level is L level during the period from when sampling is resumed to when the pulse p21 rises, the determination result at step S13 is “NO”, and the rise confirmation process at step S12 is repeated.

パルスp21が立ち上るタイミングt3において、信号レベルがHレベルに遷移する。パルスp12の立ち上りの場合と同様にして、立ち上り確認処理において「立ち上りON」フラグが設定されて、立ち上りが検出される。そして、ステップS13での判定結果は「YES」となり、ステップS14の判定結果も「YES」となる。   At the timing t3 when the pulse p21 rises, the signal level changes to the H level. Similarly to the rising edge of the pulse p12, the “rising ON” flag is set in the rising confirmation process, and the rising edge is detected. Then, the determination result in step S13 is “YES”, and the determination result in step S14 is also “YES”.

そして、ステップS17において、周期カウンターに計時された、信号sig1の2つ目のパルスp12の立ち上りから(タイミングt1から)、信号sig2の1つ目のパルスp21の立ち上りまで(タイミングt3まで)の時間が、1000ms±公差の範囲内の時間であるかどうか判定される。   In step S17, the time counted by the period counter from the rise of the second pulse p12 of the signal sig1 (from timing t1) to the rise of the first pulse p21 of the signal sig2 (until timing t3). Is a time within the range of 1000 ms ± tolerance.

タイミングt1からタイミングt3までの時間は800msであるため、ステップS17での判定結果は「NO」となる。したがって、ステップS19bにおいて、1秒周期連続取得数は0に設定される。また、ステップS20において、周期カウンターが0に設定されて再び計時が開始される。1秒周期連続取得数は0であるため、ステップS21での判定結果は「NO」となる。そして、ステップS26において、周期カウンターが500msを超えるまでサンプリングが停止され、周期カウンターが500msを超えるとサンプリングが再開される。その後、再びステップS12に戻って、立ち上り確認処理が行われる。   Since the time from timing t1 to timing t3 is 800 ms, the determination result in step S17 is “NO”. Therefore, in step S19b, the number of consecutive acquisitions of 1 second period is set to 0. In step S20, the cycle counter is set to 0 and the time measurement is started again. Since the 1-second period continuous acquisition number is 0, the determination result in step S21 is “NO”. In step S26, sampling is stopped until the period counter exceeds 500 ms, and when the period counter exceeds 500 ms, sampling is resumed. Thereafter, the process returns to step S12 again, and the rising confirmation process is performed.

サンプリングが停止されている間に、パルスp21の期間、パルスp21とパルスp22との間の期間、および、パルスp22の期間は終了している。したがって、パルスp22の立ち上りは検出されない。サンプリングが再開されてからパルスp31が立ち上るまでの期間は、信号レベルがLレベルであるので、ステップS13での判定結果が「NO」となり、ステップS12の立ち上り確認処理が繰り返される。   While the sampling is stopped, the period of the pulse p21, the period between the pulse p21 and the pulse p22, and the period of the pulse p22 are finished. Therefore, the rising edge of the pulse p22 is not detected. Since the signal level is L level during the period from when the sampling is resumed until the pulse p31 rises, the determination result at step S13 is “NO”, and the rising confirmation process at step S12 is repeated.

パルスp31が立ち上るタイミングt7において、信号レベルがHレベルに遷移する。パルスp12の立ち上りの場合と同様にして、立ち上り確認処理において「立ち上りON」フラグが設定されて、立ち上りが検出される。そして、ステップS13での判定結果は「YES」となり、ステップS14の判定結果も「YES」となる。   At the timing t7 when the pulse p31 rises, the signal level changes to the H level. Similarly to the rising edge of the pulse p12, the “rising ON” flag is set in the rising confirmation process, and the rising edge is detected. Then, the determination result in step S13 is “YES”, and the determination result in step S14 is also “YES”.

そして、ステップS17において、周期カウンターに計時された、信号sig2の1つ目のパルスp21の立ち上りから(タイミングt3から)、信号sig3の1つ目のパルスp31の立ち上りまで(タイミングt7まで)の時間が、1000ms±公差の範囲内の時間であるかどうか判定される。   In step S17, the time counted from the rising edge of the first pulse p21 of the signal sig2 (from timing t3) to the rising edge of the first pulse p31 of the signal sig3 (until timing t7) is counted by the period counter. Is a time within the range of 1000 ms ± tolerance.

タイミングt3からタイミングt7までの時間は1000msであるため、ステップS17での判定結果は「YES」となる。したがって、ステップS18において、周期カウンターによる計時時間が保存され、ステップS19aにおいて、1秒周期連続取得数が、0に1が加算されて1に設定される。また、ステップS20において、周期カウンターが0に設定されて再び計時が開始される。1秒周期連続取得数は1であるため、ステップS21での判定結果は「NO」となり、再びステップS12に戻って、立ち上り確認処理が行われる。   Since the time from timing t3 to timing t7 is 1000 ms, the determination result in step S17 is “YES”. Therefore, in step S18, the time measured by the cycle counter is stored, and in step S19a, the number of consecutive acquisitions of 1 second cycle is set to 1 by adding 1 to 0. In step S20, the cycle counter is set to 0 and the time measurement is started again. Since the number of 1-second continuous acquisitions is 1, the determination result in step S21 is “NO”, the process returns to step S12 again, and the rising confirmation process is performed.

その後は、秒ごとの信号の1つ目のパルスの立ち上りから、当該秒ごとの信号の直後の秒ごとの信号の1つ目のパルスの立ち上りまでの時間である1000msが連続して取得されるため、1秒周期連続取得数が順次加算される。第1実施形態と同様に、計時結果の平均値が算出されると、秒同期処理は終了する。   Thereafter, 1000 ms, which is the time from the rise of the first pulse of the signal per second to the rise of the first pulse of the signal per second immediately after the signal per second, is continuously acquired. Therefore, the number of consecutive acquisitions of 1 second period is sequentially added. Similar to the first embodiment, when the average value of the time measurement results is calculated, the second synchronization process ends.

第3実施形態においても、第1実施形態と同様に、最初に検出された立ち上り(第1の変化、遷移)から待機時間(第1の時間)を超えた後に次の立ち上り(第2の変化、遷移)を検出し、最初に検出された立ち上りから次の立ち上りまでの時間を計時して、1秒を含む許容範囲内の時間であるかどうか判定することで、1秒の周期を取得することができ、秒同期処理を行うことができる。   Also in the third embodiment, similarly to the first embodiment, after the first detected rise (first change, transition) exceeds the standby time (first time), the next rise (second change). , Transition) is detected, the time from the first detected rising to the next rising is counted, and a period of 1 second is obtained by determining whether the time is within an allowable range including 1 second. Second synchronization processing can be performed.

第1実施形態および第2実施形態と対比すると、第3実施形態では、待機時間(第1の時間)中はサンプリングを停止することで、待機時間(第1の時間)中に含まれる他の立ち上り(第3の変化、遷移)を検出しない(ステップS26参照)。第3実施形態では、このようにして、最初に検出された立ち上り(第1の変化、遷移)から待機時間(第1の時間)を超えた後に検出された次の立ち上り(第2の変化、遷移)までの時間が、1秒を含む許容範囲内の時間であるかどうかの判定を、適切に行うことができる。また、第3実施形態では、常時サンプリングを行う態様と比べて、サンプリングに要する消費電力を下げることができる。   In contrast to the first embodiment and the second embodiment, in the third embodiment, the sampling is stopped during the waiting time (first time), so that other samples included in the waiting time (first time) are included. A rise (third change, transition) is not detected (see step S26). In the third embodiment, the next rising edge (second change, detected after exceeding the waiting time (first time) from the first rising edge (first change, transition) thus detected. It is possible to appropriately determine whether the time until (transition) is within an allowable range including one second. Further, in the third embodiment, power consumption required for sampling can be reduced as compared with a mode in which sampling is always performed.

<変形例>
本発明は、上述した実施形態に限定されるものではなく、例えば次に述べるような各種の変形が可能である。また、次に述べる変形の態様および実施形態は、任意に選択された一または複数を、適宜に組み合わせることもできる。
<Modification>
The present invention is not limited to the above-described embodiments, and various modifications as described below are possible, for example. Moreover, the aspect and embodiment of a deformation | transformation described below can also combine suitably arbitrarily selected 1 or several.

上述の実施形態では、受信される標準電波として英国のMSFを例示したが、上述の実施形態の技術は、米国のWWVB等、他の標準電波の受信に適用してもよい。図10は、受信されたWWVBのTCO信号を例示し、800msのパルス幅を有する信号sigaと200msのパルス幅を有する信号sigbとが連続している状況を示すタイミングチャートである。本例では、本来はパルス幅が800msの1つのパルスpaを有する秒ごとの信号sigaが、ノイズの影響で2つのパルスpa1およびpa2に分割されて受信されている。パルスpa1は、信号sigaの開始タイミングで立ち上っており、パルスpa2は、信号sigaの開始タイミングから300ms後に立ち上っている。信号sigbは、1つのパルスpbを有する。   In the above-described embodiment, the UK MSF is exemplified as the received standard radio wave. However, the technology of the above-described embodiment may be applied to reception of other standard radio waves such as WWVB in the United States. FIG. 10 illustrates a received WWVB TCO signal, and is a timing chart showing a situation in which a signal siga having a pulse width of 800 ms and a signal sigb having a pulse width of 200 ms are continuous. In this example, a signal siga per second that originally has one pulse pa with a pulse width of 800 ms is received by being divided into two pulses pa1 and pa2 due to the influence of noise. The pulse pa1 rises at the start timing of the signal siga, and the pulse pa2 rises 300 ms after the start timing of the signal siga. The signal sigb has one pulse pb.

このような状況において、上述の比較形態の方法(相互に隣接する立ち上りから立ち上りまでの時間を計時する方法)を適用すると、パルスpa1の立ち上りからパルスpa2の立ち上りまでの時間である300msか、または、パルスpa2の立ち上りからパルスpbの立ち上りまでの時間である700msが計時されるので、1秒を取得することはできない。   In such a situation, when the method of the above-mentioned comparative form (method of measuring the time from the rising edge to the rising edge adjacent to each other) is applied, the time from the rising edge of the pulse pa1 to the rising edge of the pulse pa2 is 300 ms, or Since 700 ms, which is the time from the rising edge of the pulse pa2 to the rising edge of the pulse pb, is timed, one second cannot be acquired.

一方、上述の実施形態の方法を適用することで、パルスpa1の立ち上りからパルスpbの立ち上りまでの時間である1秒を取得することができるようになる。信号siga中で800ms以降は立ち上りが生じないため、待機時間としては、800msから1000msの間の値、例えば900msが設定される。なお、ノイズの影響が小さく2つのパルスpa1およびpa2に分割されずに、1つのパルスpaのまま受信された場合でも、待機時間の後にパルスpbの立ち上りが検出されることは同様なので、パルスpaの立ち上りからパルスpbの立ち上りまでの時間である1秒を取得することができる。   On the other hand, by applying the method of the above-described embodiment, 1 second, which is the time from the rising edge of the pulse pa1 to the rising edge of the pulse pb, can be acquired. Since no rise occurs after 800 ms in the signal siga, a value between 800 ms and 1000 ms, for example, 900 ms is set as the waiting time. In addition, even when a single pulse pa is received without being divided into two pulses pa1 and pa2 because the influence of noise is small, it is the same that the rising edge of the pulse pb is detected after the standby time. 1 second, which is the time from the rising edge to the rising edge of the pulse pb, can be acquired.

なお、上述の実施形態では、第1のレベルを相対的に低いレベル、第2のレベルを相対的に高いレベルとして、遷移検出部32が検出する第1のレベルから第2のレベルへの遷移(変化)が、立ち上りである場合を例示した。必要に応じ、第1のレベルを相対的に高いレベル、第2のレベルを相対的に低いレベルとして、遷移検出部32が検出する第1のレベルから第2のレベルへの遷移(変化)を、立ち下りとしてもよい。   In the above-described embodiment, the transition from the first level to the second level detected by the transition detection unit 32 with the first level being a relatively low level and the second level being a relatively high level. A case where (change) is a rise is illustrated. If necessary, the transition (change) from the first level to the second level detected by the transition detection unit 32 with the first level set as a relatively high level and the second level as a relatively low level. , It may be falling.

1…電波修正時計、2a…アンテナ、2b…受信回路、2…受信部、3…処理部、4…記憶部、5…発振回路、6…分周回路、7…表示部、8…操作部、31…サンプリング部、32…遷移検出部、33…秒判定部、34…カウンター、35…時刻データ取得部、36…計時部、37…制御部。
DESCRIPTION OF SYMBOLS 1 ... Radio wave correction clock, 2a ... Antenna, 2b ... Reception circuit, 2 ... Reception part, 3 ... Processing part, 4 ... Memory | storage part, 5 ... Oscillation circuit, 6 ... Frequency division circuit, 7 ... Display part, 8 ... Operation part , 31... Sampling unit, 32... Transition detection unit, 33... Second determination unit, 34.

Claims (5)

標準電波から取得されたタイムコード出力信号をサンプリングするサンプリング部と、
前記サンプリング部でサンプリングされた前記タイムコード出力信号が入力される検出部と、
時間を計時するカウンターと、
前記タイムコード出力信号が第1のレベルから第2のレベルに変化する第1の変化を検出させるように、前記検出部を制御し、当該第1の変化から経過した経過時間を計時させるように、前記カウンターを制御し、当該経過時間が予め定められた第1の時間を超えているかどうか判定し、当該経過時間が当該第1の時間を超えた後に当該タイムコード出力信号が当該第1のレベルから当該第2のレベルに変化する第2の変化を検出させるように、前記検出部を制御する制御部と、
前記第1の変化から前記第2の変化までの時間が、1秒を含むように予め定められた許容範囲内の時間であるかどうか判定する判定部と、
前記判定部の判定結果が前記許容範囲内の時間である場合、前記第1の変化または前記第2の変化を基準として前記タイムコード出力信号に基づいて時刻データを取得する時刻データ取得部と、
を備える電波修正時計。
A sampling unit for sampling a time code output signal acquired from a standard radio wave;
A detection unit to which the time code output signal sampled by the sampling unit is input;
A counter that keeps time,
The detection unit is controlled to detect the first change in which the time code output signal changes from the first level to the second level, and the elapsed time elapsed from the first change is counted. , Control the counter, determine whether the elapsed time exceeds a predetermined first time, and after the elapsed time exceeds the first time, the time code output signal is the first time A control unit that controls the detection unit to detect a second change that changes from a level to the second level;
A determination unit that determines whether the time from the first change to the second change is within a predetermined allowable range including 1 second;
When the determination result of the determination unit is a time within the allowable range, a time data acquisition unit that acquires time data based on the time code output signal with reference to the first change or the second change;
Radio correction watch with
前記制御部は、
前記第1の変化から前記第1の時間が経過するまでに含まれる、前記タイムコード出力信号が前記第1のレベルから前記第2のレベルに変化する第3の変化を検出させるように、前記検出部を制御し、
前記判定部は、
前記第1の変化から前記第3の変化までの時間に対して、前記許容範囲内の時間であるかどうか判定せず、
前記第1の変化から前記第2の変化までの時間に対して、前記許容範囲内の時間であるかどうか判定する、
請求項1に記載の電波修正時計。
The controller is
The time code output signal included from the first change until the first time elapses is detected to detect a third change in which the time code output signal changes from the first level to the second level. Control the detector,
The determination unit
It is not determined whether the time is within the allowable range with respect to the time from the first change to the third change,
Determining whether the time is within the allowable range with respect to the time from the first change to the second change;
The radio wave correction watch according to claim 1.
前記制御部は、
前記第1の変化から前記第1の時間が経過するまでに含まれる、前記タイムコード出力信号が前記第1のレベルから前記第2のレベルに変化する第3の変化を検出させないように、前記検出部を制御する、
請求項1に記載の電波修正時計。
The controller is
The time code output signal included before the first time elapses from the first change so that the third change from the first level to the second level is not detected. Control the detector,
The radio wave correction watch according to claim 1.
前記制御部は、
前記第1の変化から前記第1の時間が経過するまで、前記タイムコード出力信号のサンプリングを停止させ、当該第1の変化から当該第1の時間が経過すると、当該タイムコード出力信号のサンプリングを再開させるように、前記サンプリング部を制御する、
請求項1に記載の電波修正時計。
The controller is
The sampling of the time code output signal is stopped until the first time elapses from the first change, and when the first time elapses from the first change, the sampling of the time code output signal is performed. Controlling the sampling unit to resume,
The radio wave correction watch according to claim 1.
前記制御部は、
前記サンプリング部でサンプリングされた前記タイムコード出力信号において、前記第1のレベルが続く時間、または、前記第2のレベルが続く時間が、予め定められた第2の時間以上であるかどうか判定し、
当該判定の結果に基づいて、前記第1のレベルから前記第2のレベルへの変化を検出させるよう、前記検出部を制御する、
請求項1〜4のうちいずれか1項に記載の電波修正時計。
The controller is
In the time code output signal sampled by the sampling unit, it is determined whether the time that the first level continues or the time that the second level continues is equal to or longer than a predetermined second time. ,
Controlling the detection unit to detect a change from the first level to the second level based on a result of the determination;
The radio wave correction timepiece according to any one of claims 1 to 4.
JP2017054378A 2017-03-21 2017-03-21 Radio correction clock Pending JP2018155687A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017054378A JP2018155687A (en) 2017-03-21 2017-03-21 Radio correction clock

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017054378A JP2018155687A (en) 2017-03-21 2017-03-21 Radio correction clock

Publications (1)

Publication Number Publication Date
JP2018155687A true JP2018155687A (en) 2018-10-04

Family

ID=63715731

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017054378A Pending JP2018155687A (en) 2017-03-21 2017-03-21 Radio correction clock

Country Status (1)

Country Link
JP (1) JP2018155687A (en)

Similar Documents

Publication Publication Date Title
JP4882610B2 (en) Radio correction clock and radio correction clock time correction method
JP5099185B2 (en) Time information acquisition device and radio clock
EP2407835B1 (en) Radio controlled timepiece
JP4539739B2 (en) Radio receiver and radio clock
JP2018155687A (en) Radio correction clock
JP5083384B2 (en) Time data receiver and radio clock
JP5408028B2 (en) Electronic device with timekeeping function and control method thereof
JP2011214871A (en) Time receiver, radio controlled timepiece and method for controlling time receiver
US8599650B2 (en) Marker detecting apparatus and radio-controlled timepiece
JP4649839B2 (en) Radio correction watch, control method thereof, program, and recording medium
JP2004279107A (en) Radio-controlled clock and control method thereof
JP5625977B2 (en) Time receiver, radio wave correction clock, and encoding method
JP6558289B2 (en) Electronic timepiece and control method of electronic timepiece
JP2007218821A (en) Radio-controlled timepiece
JP2004144688A (en) Time information acquisition method, time information acquisition device, and radio-controlled clock
JP5751280B2 (en) Radio clock
JP2017015621A (en) Radio wave receiving device, radio wave correction timepiece and radio wave receiving method
JP2013253925A (en) Radio controlled timepiece and control method for the same
JP7375447B2 (en) How to adjust the time of a radio-controlled watch and a radio-controlled watch
JP2016148537A (en) Standard radio wave receiving device, radio wave correction timekeeper, and standard radio wave receiving method
JP6911396B2 (en) Radio correction clock
JP6136647B2 (en) Radio correction watch and radio correction watch code determination method
JP6191653B2 (en) Radio clock
JP6838355B2 (en) Electronic clock
JP2013019723A (en) Time receiver, radio wave correcting timepiece and time code type determining method