This application is based on and claims the benefit of priority from the prior Japanese Patent Application. No. 2009-091831 filed on Apr. 6, 2009 including specification, claims, drawings and summary, the entire contents of which are incorporated herein by reference.
1. Field of the Invention
The present invention relates to an analog type electronic timepiece having functions of driving hands (indicator needles) to display the time and also receiving a standard radio wave.
2. Description of. Related Art
There is a case where a driving noise mixes into a reception signal of a standard radio wave when a motor for rotating the hands is driven. Particularly, a large driving noise appears when the radio wave intensity of the standard radio wave is weak.
Therefore, conventional electronic timepieces each of which has an analog display unit have been controlled so that the driving of the hands is stopped when the standard radio wave is received or the driving timing of the hand is staggered to a timing which does not adversely affect reception of a radio wave when reception of the standard radio wave is started.
Furthermore, Japanese Patent No. 3,576,079 discloses a technique of dispersing the driving timing of a motor at a non-one-second period when a second-indicating signal in a radio wave signal is detected.
In general, it takes a relatively long time to receive a standard radio wave and obtain a time code. Therefore, when a hand driving is stopped during reception of the radio wave, it is impossible for a user to check a second figure and a minute figure of time during that period.
Furthermore, with respect to an electronic timepiece which is controlled so that the driving timing of the hand is staggered so that the reception of the radio wave is not adversely affected, there is a case where the driving timing of the hand is frequently staggered, which makes a user feel discomfort or it is impossible to identify an accurate time code when the radio wave intensity of the standard radio wave is weak.
The present invention has an object to provide an analog type electronic timepiece that can receive an accurate time code with neither stopping the hand driving nor frequently varying the hand driving timing.
According to an aspect of the present invention, there is provided an analog type electronic timepiece comprising: a plurality of hands for displaying a time; a driving unit for electrically driving the hands; a receiver for receiving and demodulating a radio wave containing a time code signal; and a second synchronization determination unit for determining a second synchronous point of the time code signal demodulated by the receiver through identifying a driving noise mixed in the time code signal by action of the driving unit.
Furthermore, according to another aspect of the present invention, there is provided an analog type electronic timepiece comprising: a plurality of hands for displaying a time; a driving unit for electrically driving the hands; a receiver for receiving and demodulating a radio wave containing a time code signal; a controller that inputs the demodulated time code signal and has an interrupt function caused by a rising input of the demodulated time code signal and an interrupt function caused by a falling input of the demodulated time code signal; a first interrupt controller for enabling the interrupt function of the rising input when a processing shifts to pulse detecting processing of the time code signal; a first timing detector for detecting a rising timing of the time code signal by the interrupt function of the rising input; a noise judger for judging whether a rising pulse of the time code signal detected by the first timing detector is caused by an instantaneous noise or not on the basis of width of the rising pulse; a second interrupt controller for enabling the interrupt function of the falling input provided that the first timing detector detects the rising timing and then the noise judger judges the rising pulse being not caused by the instantaneous noise; a time counter for starting time count of a rising pulse width of the time code signal provided that the first timing detector detects the rising timing and then the noise judger judges the rising pulse being not caused by the instantaneous noise; a second timing detector for detecting a falling timing of the time code signal by the interrupt function of the falling input; a comparator for judging whether a count value of the time counter exceeds the predetermined first time width when the second timing detector detects the falling timing; a second synchronization time counter for setting a detected timing of the second timing detector as a candidate of a second synchronous point of the time code signal when the comparator judges that the count value exceeds the predetermined first time width, and starting to count a time from a timing of one of the candidates of the second synchronous point till a timing of another of the candidates of the second synchronous point obtained next; a second synchronization judging unit for judging whether the candidate of the second synchronous point is true or not on the basis of a count value of the second synchronization time counter; and a second synchronization determination unit for determining as the second synchronous point of the time code signal the candidate which is judged as being true by the second synchronization judging unit, wherein the predetermined first time width compared by the comparator is set to a value that is longer than a time width of a driving noise mixed in the time code signal by action of the driving unit and also shorter than minimum time width of a rising pulse contained in an ideal time code signal having no noise.
A preferred embodiment according to the present invention will be described hereunder with reference to the accompanying drawings.
The analog type electronic timepiece 1 according to this embodiment rotates a plurality of hands (indicating needles) 2 to 4 on a character plate to display the time, and it includes a second hand 2, a minute hand 3, a hour hand 4, a train wheel mechanism 11 which comprises a plurality of gears and transmits motion of a motor to rotate the hands 2 to 4, a stepping motor 41 as a driving unit for rotating the hour hand 4 and the minute hand 3, a stepping motor 42 as a driving unit for rotating the second hand step by step every second, a control circuit 45 as a controller for performing the overall control of the timepiece, ROM (Read Only Memory) 46 for storing control programs to be executed by the control circuit 45 and control data, RAM (Random Access Memory) 47 for supplying a working memory space to the control circuit 45, a receiving circuit 52 as a receiver for receiving a standard radio wave containing a time code signal through an antenna AN1 and reproducing a TCO (time code output) signal, an oscillating circuit 48 and a frequency diving circuit 49 for generating a signal having a fixed frequency for time count, a time counting circuit 50 for counting the signal of the fixed frequency to count the time, an operating unit 53 for inputting an operation instruction from the external, etc.
The standard radio wave received by the receiving circuit 52 is a radio wave signal obtained by subjecting a carrier wave to amplitude modulation using a time code arranged in a predetermined format. The time code is obtained by arranging a plurality of kinds of pulse signals different in pulse width and pulse pattern in one frame. For example, as shown in (A) of
In this embodiment, an M signal (maker pulse) representing a frame start point is also called as P signal. One pulse signal is arranged for one second, and a time code of one frame is constructed by subsequent 60 pulse signals. With respect to the standard radio wave of Japan, a second synchronous point (a decimal point zero second of each second, such as 0.0 second, 1.0 second, . . . , and 59.0 second) is represented by a rising timing of each pulse signal, and a minute synchronous point (zero second of each minute) is represented by a start point of one frame. The P signal is disposed at the start edge of one frame of the time code, and also disposed at the terminal edge of each of sub frames obtained by dividing one frame into six parts. Accordingly, when two P signals are sequential to each other, the start point of the subsequent P signal represents a minute synchronous point.
The receiving circuit 52 detects the standard radio wave as described above, and reproduces and outputs an active-low TCO (time code output) signal which is set to low level when the amplitude level of the pulse signal of (A) of
The time counting circuit 50 counts a period signal from the frequency dividing circuit 49 to count the date and hour. An SEC signal is outputted from the time counting circuit 50 to the control circuit 45 at a period of one second. The time count data of the time counting circuit 50 are allowed to be read out by the control circuit 45 or rewritten by the control circuit 45.
The control circuit 45 normally makes the stepping motor 42 for the second hand 2 execute stepping drive in synchronism with the SEC signal from the time counting circuit 50 to rotate the second hand 2. Furthermore, the control circuit 45 makes the stepping motor 41 for hour and minute execute stepping drive every time the SEC signal is input at a plurality of times, thereby rotating the minute hand 3 and the hour hand 4. The time is displayed by the driving control of the hands 2 to 4 as described above.
When a predetermined operation is input from the operating unit 53 or when the time count data of the time counting circuit 50 reaches a value representing a predetermined time, the control circuit 45 executes a reception processing program in ROM 46 to execute the reception processing of the standard radio wave and the correction processing of the time of the time counting circuit 50.
The control circuit 45 has an interrupt function based on an input of the SEC signal from the time counting circuit 50, an interrupt function based on a rising input of the TCO signal, an interrupt function based on a falling input of the TCO signal, an interrupt function based on a time count of second synchronous points by an internal counter.
Next, the reception processing of the standard radio wave executed by the control circuit 45 will be described.
When the reception processing is started, the control circuit 45 first executes the processing of detecting a second synchronous point (a decimal point zero second of each second) from the TCO signal of the reception circuit 52 (step S1) Subsequently, the control circuit 45 executes the processing of detecting a minute synchronous point (zero second of each minute) from the TCO signal (step S2). When the second synchronous point is not normally detected in the second synchronous point detecting processing and thus the processing is finished with an error, the processing is retried from the detection processing of the second synchronous point in step S1. In this embodiment, the second synchronization determination unit and the minute synchronization determination unit are constructed by the control circuit 45 for executing the second synchronous point detecting processing and the minute synchronous point detecting processing.
In this embodiment, during the period of the second synchronous point detecting processing and the minute synchronous point detecting processing, the second-by-second stepping drive of the second hand 1 is not stopped, and also a timing of the stepping drive of the second hand 2 is not frequently changed. The second synchronous point detecting processing and the minute synchronous point detecting processing will be described in detail later.
When the second synchronous point and the minute are detected, the control circuit 45 reads the code of one frame of the time code from the TCO signal and executes parity check (step S3). The time code is added with a parity bit, and thus the control circuit 45 can check whether the read code is wrong or not.
When the time code of one frame is read and the parity check is executed, the control circuit 45 deciphers the time code and obtains time information. Thereafter, the control circuit 45 compares the thus-obtained time information with the time (basic time) counted in the time counting circuit 50 (step S4). When this comparison result indicates “coincidence”, the processing jumps to time updating processing of step S9. However, when the comparison result indicates “non-coincidence”, the processing shifts to step S5.
When the processing shifts to step S5, the control circuit 45 reads the code of one frame of the time code from the TCO signal and executes parity check (step S5) again, and executes frame comparison with the previously read time code to determine whether the present time information is time information added with one minute (step S6). The processing as described above is repeated twice (steps S7 and S8). When all the processing is regular, the processing shifts to the time updating processing of step S9.
When an error in the time code is detected through the parity check of the steps S3, S5 and S7 or when irregularity is detected in the frame comparison of the steps S6 and S8, the processing returns to the step S1 to retry the processing from the beginning.
When the code reading of the time code is normally executed and thus the processing shifts to the step S9, the time cont data of the time counting circuit 50 is corrected on the basis of the time information of the time code. For example, the values of the date and the hour and minute are corrected, and the correction is executed so that the timing of generating the SEC signal is made coincident with the second synchronous point detected in step S1. Then, this reception processing is finished.
Next, the second synchronous point detecting processing executed in step S1 of the reception processing (
In the second synchronous point detecting processing, the control circuit 45 detects a falling timing of the original TCO signal as a second synchronous point t0. However, as shown in (D) of
Furthermore, this driving noise n2 may contaminate during not only the low-level section (period) of the TCO signal, but also the high-level section (period) of the TCO signal. The driving noise n2 mixing during the low-level section varies in accordance with the power of the stepping motors 41, 42, the distance between the stepping motor 41, 42 and the antenna AN1, the electric field intensity of the standard radio wave, etc., and it is equal to about 80 ms at maximum, for example.
Therefore, in the second synchronous point detecting processing of this embodiment, the pulses such as the instantaneous noise n1, the hand driving pulse n2 and the original high-level pulse of the TCO signal are discriminated from one another on the basis of the pulse lengths thereof, so that the second synchronous point t0 is detected with excluding the effects of the noise n1, n2.
First, the processing operation when the driving noise n2 mixes during the low-level section of the TCO signal as shown in the second section SEG2 and the third section SEG3 of
Subsequently, when the high-level pulse does not exceed the pulse width of the instantaneous noise n1, the measurement of the time B (see (D) of
When the pulse width of the TCO signal is measured by the time B, the control circuit 45 compares the value of the time B with a pulse width threshold (for example, 125 ms) as a first time width for discriminating between the maximum pulse width (for example, 80 ms) of the assumed driving noise n2 and the minimum high-level pulse width (for example, 200 ms of “0” signal) of the original TCO signal. When the value of the time B is equal to or less than the pulse width threshold, the pulse is identified as the driving noise n2. On the other hand, when the pulse is equal to or more than the pulse width threshold, the pulse is identified as the high-level pulse of the original TCO signal.
When the pulse is identified as the original high-level pulse of the TCO signal, the falling timing of the pulse is set as a candidate of the second synchronous point t0, and for example, the candidate of the second synchronous point t0 is likewise obtained at three times. When the intervals of these candidates are equal to substantially one second interval (for example, 1 second±50 ms), these candidates are determined as the second synchronous points t0.
Next, the processing operation when the driving noise n2 mixes during the high-level section of the TCO signal as shown in the first section SEG1 of
Furthermore, the driving noise n2 mixing during the high level period fits into the period H of the interrupt prohibition based on the SEC signal because the low level pulse width of the driving noise n2 is relatively small.
The interrupt prohibiting processing as described above is executed. Therefore, even when the falling of the TCO signal occurs during the period H of the interrupt prohibition under the state that the control circuit 45 waits for the interrupt based on the falling input of the TCO signal, the interrupt based on the falling input of the TCO signal does not occur if the TCO signal is high level when the time gets out of the period H of the interrupt prohibition. On the other hand, if the TCO signal is low level when the time gets out of the period H of the interrupt prohibition, the interrupt based on the falling input of the TCO signal occurs at this out-of-timing.
Through the interrupt prohibiting processing as described above, when the driving noise n2 mixes in the high-level section of the TCO signal as shown in the first section SEG1 of
The processing when the driving noise 2 mixes in the high-level section of the TCO signal described above likewise acts on a case where the driving noise n2 mixes just before the terminal of the high-level pulse of the TCO signal ((E) of
Accordingly, the measurement of the time B which is started due to the rising interrupt of the TCO signal is not affected by the falling of the driving noise n2, and it is continued until the interrupt based on the original falling input of the TCO signal occurs, and thus the measurement value of the time B exceeds the pulse width threshold (125 ms). Accordingly, this falling timing can be obtained as a candidate of the second synchronous point t0.
On the other hand, the period of the hand driving processing based on the SEC signal is overlapped with the original second synchronous point t00 as shown in
However, the occurrence timing of the interrupt is delayed by the interrupt prohibition, and thus the second synchronous point t0 detected by the control circuit 45 is slightly delayed from the original second synchronous point t00. However, the interrupt-prohibited period H of the hand driving processing is equal to several tens ms, and this is not so long, so that this second synchronous point t0 is a negligible-level value. The standard radio wave of Japan is equal to 200 ms even in the case of the minimum pulse, and thus the pulse width thereof is long. Therefore, the delay of the second synchronous point t0 can be regarded as a permissible error.
As shown in
The method of detecting the second synchronous point containing the correction processing of
Next, the control procedure of the second synchronous point detecting processing will be described.
When the processing shifts to the second synchronous point detecting processing, the control circuit 45 first executes initialization processing (step), and then actuates the reception circuit 52 to start reception of a radio wave (step S12). Furthermore, the control circuit 45 is set to the standby state for the interrupt based on the rising input of the TCO signal (step S13: first interrupt controller, first timing detector). When there is a rising input of the TCO signal and thus interrupt occurs under this state, the processing shifts to the next step to count up the interrupt frequency (the number of times) (step S14). The count of this interrupt frequency is used to determine whether the number of noises is excessive or not.
Subsequently, the control circuit 45 starts the measurement of a time A and also monitors the TCO signal to determine whether the high-level pulse period is equal to or more than a noise threshold (10 ms) for identifying an instantaneous noise (step S15: noise judger). When the high-level pulse period is less than the noise threshold, it is determined that this rising interrupt is caused by an instantaneous noise. Therefore, the Processing shifts to “NO” side to temporarily determine whether the count value of the interrupt frequency reaches an excessively large value (count over) (step S16). When the count value does not reach the excessively large value, the processing returns to the step S13. On the other hand, when the count value reaches the excessively large value, it is determined that the noise is excessively large, and thus the processing is retried from the initial step S11 after a fixed period elapses, for example.
On the other hand, when the measurement value of the time A exceeds the noise threshold (10 ms) in the determination processing of the step S15, it is determined that the pulse is not an instantaneous pulse. Therefore, the measurement of the time B for measuring the pulse width is first started (step S17: time counter). Furthermore, the control circuit is set to the standby state for the interrupt based on the falling input of the TCO signal in order to detect the falling of the pulse (step S18: second interrupt controller, second timing detector). When there is a falling input of the TCO signal and thus an interrupt occurs, the interrupt frequency is first counted up (step S19), the time B for which the measurement is started in step S17 is checked, and it is judged whether the value of the time B exceeds a pulse width threshold (125 ms) for discriminating between the driving noise n2 and the minimum pulse of the TCO signal (step S20: comparator).
That is, in step S20, the pulse width of the high-level pulse of the TCO signal is measured, and it is judged whether this pulse is the driving noise n2 or the original pulse of the TCO signal.
As a result, when the value of the time B does not exceed the pulse width threshold (125 ms), it is determined that the pulse concerned is the driving noise n2, and thus the processing shifts to the step S16. On the other hand, when the value of the time E exceeds the pulse width threshold (125 ms), it is determined that the pulse concerned is the original pulse of the TCO signal and thus the present time point is a candidate of the second synchronous point t0. Therefore, the processing shifts to the next step S21.
The processing of the step S21 and subsequent steps is the processing of obtaining candidates of the second synchronous point three times and checking whether the candidates of the second synchronous point t0 are correct or not. That is, when the processing shifts to the step S21, it is first determined whether the measurement of a time C has been started or not (step S21). The processing of measuring the time C is for measuring the time between the respective candidates of the second synchronous point t0. When the candidate of the second synchronous point t0 is obtained once, the measurement of the time C has not yet been started; and thus the processing branches to “NO” side to start the measurement of the time C (step S22). Subsequently, the interrupt frequency cont is initialized (step S23), and then the processing returns to the step S13 again.
On the other hand, in the determination processing of step S21, when the present operation of obtaining the candidate of the second synchronous point t0 is the second or third operation, the measurement of the time C has been started, and thus the determination result of the step S21 shifts to “YES” side. First, the value of the time C is obtained (the time C is measured) (step 924: second synchronization time counter). When this measurement of the time C is the first or second operation (step 925), it is determined whether the time C corresponds to the normal interval (for example, 1 second±50 ms) of the second synchronous points (step S26: second synchronization determination unit). As a result, when the time C corresponds to the normal interval of the second synchronous points, it can be determined that there is no abnormality in the obtained candidates of the second synchronous points at present, and thus the processing shifts to step S22. On the other hand, when the time C does not correspond to the normal interval of the second synchronous points, it is determined that the second synchronous point is erroneously detected, and thus the processing returns to the step S11 to retry the processing from the begging.
Then, when a normal result is subsequent in the one-second determination of the step S26 and further the operation of obtaining the candidate of the second synchronous point t0 is the third operation, the processing shifts to “NO” side in the determination processing of the step S25. The third operation of the one-second determination is executed (step S27). When a normal result is obtained, the present time point (the occurrence timing of the falling interrupt of the step S18) is settled as the second synchronous point t0 (step S28). That is, for example, the internal counter (which may be software or hardware) of the control circuit 45 for counting one-second period is reset, and the start point of the counting period thereof is made coincident with the second synchronous point t0.
When the second synchronous point detecting processing described above is executed, the control circuit 45 prohibits at least occurrence of the interrupt based on the falling input of the TCO signal during the high-level period of the SEC signal as shown in
Through the interrupt prohibiting control described above, even when the driving noise n2 mixes into the high level section of the TCO signal, the second synchronous point t0 can be detected with discriminating between the pulse of the TCO signal and the driving noise n2 as shown in the first section SEG1 of
Next, the minute synchronous point detecting processing executed in step S2 of the reception processing (
The minute synchronous point detecting processing is executed by detecting the P signal in the time code signal at a plurality of times. As shown in
In the case of an ideal TCO signal having no noise, the measured times D1, D2, D3, . . . are in the range of “200 ms±an error” for P signal, “500 ms±an error” for 1 signal and “800 ms±an error” for 0 signal. In the case of the ideal TCO signal, in order to discriminate these signals from one another, a P signal identification value (for example, 360 ms) and a 0 signal identification value (for example, 590 ms) are used. Specifically, when the measured time D1, D2, D3, is shorter than the P signal identification value, the signal is identified as the P signal, when the measured time D1, D2, D3, . . . is in the range from the P signal identification value to the 0 signal identification value, the signal is identified as the 1 signal, and when the measured time D1, D2, D3, . . . is longer than the 0 signal identification value, the signal is identified as the 0 signal.
Here, the P signal identification value is not limited to the above value, and it may be set to a value between the time value of the P signal (200 ms) and the time value of the 1 signal (500 ms) in consideration of the permissible error. Furthermore, the 0 signal identification value is not limited to the above value, and it may be set to a value between the time value of the 1 signal (500 ms) and the time value of the 0 signal (800 ms) in consideration of the permissible error.
In this embodiment, the hand driving processing is also executed during the minute synchronous point detecting processing, and thus the driving noise 2n may mix into the TCO signal. Therefore, in the minute synchronous point detecting processing of this embodiment, the determination condition of the P signal is changed in accordance with the start timing of the hand driving processing period (for example, the input timing of the SEC signal) for which the driving noise n2 occurs, and the level of the TCO signal at this timing. Through the control of changing the determination condition, even when the driving noise n2 mixes into the TCO signal, the minute synchronous point is detected with excluding the effect of the hand driving noise n2 at maximum level. The details thereof will be described below.
The determination condition of the P signal is determined as anyone of three kinds of determination conditions in accordance with whether the timing of the SEC signal serving as a trigger of the hand driving processing exceeds a predetermined timing threshold (for example, 360 ms) or not in time when the second synchronous point t0 is set as a starting point and whether the TCO signal is high level or not at the input timing of the SEC signal.
Here, the timing threshold (360 ms) is a timing threshold with which the P signal and the 1 signal having a pulse width nearest to the P signal can be discriminated from each other, and the timing threshold is set to an intermediate value (360 ms) between the rising timing of the original P signal (200 ms) and the rising timing of the 1 signal (500 ms). In this embodiment, this value is set to the same value as the P signal identification value described above. In consideration of the permissible error of 100 ms, the value of 300 ms to 400 ms can be set as the timing threshold. Furthermore, the timing threshold and the P signal identification value may be set to different values.
As shown in the first section SEG1 and the second section SEG2 of
For example, in the first section SEG1 of
Furthermore, in the second section SEG2 of
As shown in the third section SEG3 of
In the third section SEG3 of
As shown in
For example, in the first section SEG1 of
In the second section SEG2 of
Actually, this TCO signal of the second section SEG2 is not “P signal”, but “1 signal” In, this example, a large noise n1 mixes just before the driving noise n2, and thus the TCO signal at the input timing of the SEC signal is high level, so that erroneous detection occurs. When there is not the noise n1, the identification of the P signal is based on the comparison between the time D4 and the P signal identification value (360 ms), and thus it is identified that the signal is not “P signal”. The erroneous identification as described above occurs only when the TCO signal is “1 signal” and also the SEC signal is earlier than the timing threshold (360 ms) and further the noise n1 mixes just before the driving noise n2. The occurrence probability of the erroneous detection described above is very low, and when such erroneous detection occurs, the processing is finished as an error in the subsequent processing. Therefore, it is not really a problem.
In the third section SEG2 of
Next, the control procedure of the minute synchronous point detecting processing will be described.
When the processing shifts to the minute synchronous point detecting processing, the control circuit 45 first shifts to the interrupt standby state until there occurs an interrupt such as an internal interrupt to count the second synchronous point to by internal counting, an interrupt based on the SEC signal and an interrupt based on rising input of the TCO signal (step S41).
As a result, when the internal interrupt of the second synchronous point occurs, the control circuit 45 first starts the measurement of the time D (step S42), and the processing of the control circuit 45 shifts to the next step S52. The description of the processing from the step S52 will be made later, and thereafter the processing returns to the step S41 again.
When the interrupt based on the rising input of the TCO signal occurs under the interrupt standby state of the step S41, the processing shifts to step S43 to first monitor the TCO signal and judge whether the high-level pulse period is equal to or more than a noise threshold (10 ms) for identifying an instantaneous noise (step S43). As a result, when the high-level pulse period is not less than the noise threshold, a falling frequency per one second is checked to determine superfluity of noise (step S44). When it is not superfluity of noise, the time D for which the measurement is started in step S42 is checked, and the measured time D at this time point is stored (step S45: pulse width counter). When the previous measured time D has been already stored, it is updated by the value of the measured time D which is newly obtained at this time point. Through the processing of the step S45, the times D1, D2, . . . from the second synchronous point t0 until the rising of the TCO signal shown in
When an instantaneous noise is identified in step S43, when superfluity of noise is determined in step S44, or when the measurement of the time D is performed in step S45, the processing returns to the step S41 again and set to the interrupt standby state.
On the other hand, when the input interrupt of the SEC signal occurs under the interrupt standby state of the step S41, the processing first shifts to step S46 to execute the 1-second time counting processing (step S46) which is irrelevant to the minute synchronous point detection. Subsequently, it is judged whether the TCO signal is high level or not at this time point (step S47). When the TCO signal is high level, it is judged whether this time point exceeds the time point of the timing threshold (360 ms) with the second synchronous point set as a starting point (step S48).
As a result, when it is judged in step S47 that the TCO signal is low level, the processing directly returns to the step S41 to perform the normal P signal determination.
On the other hand, when it is judged in step S47 that the TCO signal is high level and also it is judged in step S48 that this time point exceeds the time point of the timing threshold (360 ms), the processing shifts to step S49 to determine whether the measurement value of the presently stored time D is within the range of the P signal identification value (within 360 ms) (step S49: first pulse identifier). When the measurement value concerned is within the range concerned, the TCO signal is settled as the P signal (step S50). Thereafter, the processing returns to the step S41.
On the other hand, when it is judged in step S47 that the TCO signal is high level and also it is judged in step S48 that this time point is before the time point of the timing threshold (360 ms), the processing shifts to step S51 to change the determination condition of the P signal to a condition “P signal when the measured time D is shorter than the 0 signal identification value” (step S51), and then the processing returns to step S41.
Thereafter, when the time reaches the next second synchronous point and the internal interrupt of the second synchronous point occurs, the measurement of the new time ID is started (step S42: pulse width counter), and then it is checked whether the TCO signal in this section is settled as the P signal in step S50. When the TCO signal is not settled, the processing of identifying “P signal” or not is executed on the basis of the measurement value of the time D stored at the present time (step S52: second pulse identifier). Here, with respect to the determination condition of the P signal, when the determination condition is changed during the time period from the previous internal interrupt of the second synchronous point till the present interrupt in step S51, the identification as to “P signal” or not is made on the basis of a changed determination condition “P signal when the finally settled measured time D is shorter than the 0 signal identification value (590 ms)”. When the determination condition of the step S51 is not changed, the identification as to “P signal” or not is made on the basis of a normal determination condition “P signal when the settled measured time D is shorter than the P signal identification value (360 ms)”.
As a result, when “P signal” is not identified, the processing returns to the step S41 again.
On the other hand, when “P signal” is identified in step S52, it is judged whether the signal is the first P signal or not (step S53). When the signal is not the first P signal, it is judged whether two P signals are successive or the time interval between the previous P signal and the present P signal is equal to 10 seconds (step S54). As a result, it is judged that neither the two P signals are successive nor the time interval is equal to 10 seconds, it may be determined that the detection is erroneous, and thus the processing is finished as an error. On the other hand, when the time interval of 10 seconds is judged, the hand driving timing is shifted from the second synchronous point to the time point of about 800 ms (step S56), and then the processing returns to step S41. Here, the shift of the hand driving timing is to shift the driving noise n2 to a position at which no erroneous pulse identification occurs. The shift of the hand driving timing is instantaneously executed only once in one reception processing operation, and thus it does not make the user feel uncomfortable.
On the other hand, it is judged in step S54 that the two P signals are successive, it is checked whether the hand driving timing has been shifted or not (step S55). When the hand driving timing has not yet been shifted, the hand driving timing is shifted (step S56: hand driving timing changing unit), and then the processing returns to the step S41. When the hand driving timing has been already shifted, it is determined that the two successive P signals have been detected under the state that erroneous detection occurs very hardly because the hand driving timing is shifted, and thus the timing at the start edge of the second P signal is settled as a minute synchronous point (step S57) When the minute synchronous point is settled, the minute synchronous point detecting processing is finished, and the processing shifts to the next step of the reception processing (
When the processing shifts to the step S3 of the reception processing, the hand driving timing is properly shifted, and thus it is possible to obtain each code of the frame of the time code by the normal identification method of the TCO signal.
As described above, according to the analog type electronic timepiece 1 of this embodiment, the second synchronous point t0 of the TCO signal is detected while identifying the driving noise n2, and thus it is possible to accurately obtain the second synchronous point t0 with excluding the effect of the driving noise n2.
Furthermore, the time width of the pulse appearing in the TCO signal is measured by the detection of the rising and falling of the TCO signal, and this measurement value is compared with the pulse width threshold (125 ms) set between the driving noise n2 and the minimum pulse of the TCO signal to perform the pulse identification. Therefore, the driving noise n2 and the original pulse of the TCO signal can be accurately discriminated from each other.
Furthermore, in the second synchronous point detecting processing, the rising and falling of the TCO signal are detected by using the interrupt function of the control circuit 45, and thus the pulse width of the TCO signal can be accurately measured with a small processing load.
Still furthermore, when the rising of the TCO signal is detected, counting of a slight time is directly executed to check “instantaneous noise” or not. Therefore, in the detecting processing of the second synchronous point, the effect of the slight noise can be surely excluded.
Furthermore, when the pulse of the TOC signal is identified to obtain a candidate of the second synchronous point, the time C till a candidate of the next synchronous point is obtained is measured, and it is determined whether the time C is equal to the 1-second interval within the permissible error, thereby settling the second synchronous point t0. Therefore, the second synchronous point can be more surely detected.
Furthermore, occurrence of the interrupt based on the falling input of the TCO signal is prohibited during the hand driving processing period (the high level period of the SEC signal in this embodiment). Therefore, even in a situation that the driving noise n2 mixes during the high-level section of the TCO signal, the effect thereof can be excluded and the accurate second synchronous point t0 can be detected.
Furthermore, according to the analog type electronic timepiece 1 of this embodiment, in the minute synchronous point detecting processing, the identification of the P signal is performed under a different condition, for example, by shifting the identification timing of the P signal or by changing the threshold for identifying the P signal in accordance with the timing of the hand driving processing. Therefore, the P signal can be accurately identified by using the different determination condition which is suitable for the relationship between the TCO signal and the occurrence timing of the driving noise.
Still furthermore, in the minute synchronous point detecting processing, the identification of the P signal is performed under a different condition in accordance with the level of the TCO signal at the input timing of the SEC signal. Therefore, a case where the driving noise mixes during the high-level section of the TCO signal is judged, and the P signal can be accurately identified by using the determination condition suitable for this case.
Specifically, the input timing of the SEC signal is later than the timing threshold (360 ms) and also the TCO signal at this timing is high level, the identification of the P signal is executed at the rising timing (the measurement value of the time D) of the TCO signal which has been detected until the above input timing. In the other cases, the identification of the P signal is executed at the rising timing (the measurement value of the time D) of the TCO signal which has been detected until the timing of the next second synchronous point. Therefore, a case where the occurrence timing of the driving noise may overlap the high-level pulse of the TCO signal and a case where the occurrence timing concerned never overlaps the high-level pulse of the TCO signal can be discriminated from each other, so that the P signal can be accurately identified under the determination condition suitable for each case.
Furthermore, the timing threshold (360 ms) which contributes to the decision of the determination condition the P signal is set between the rising timing of the P signal and the rising timing of the 1 signal whose pulse width is nearest to the P signal. Therefore, it is judged whether the driving noise n2 occurs before or after the above timing, so that the timing threshold can contribute to the accurate identification of the P signal.
More specifically, when the input timing of the SEC signal is later than the timing threshold (360 ms) and also the TCO signal at this timing is high level, the identification of the P signal is executed by using the P signal identification value at the input timing of the SEC signal. Furthermore, when the input timing of the SEC signal is earlier than the timing threshold (360 ms or more) and also the TCO signal at this timing is equal to high-level, the identification of the P signal is executed by using the 0 signal identification value at the timing of the next synchronous point. In the other cases, the identification of the P signal is executed by using the P signal identification value at the timing of the next second synchronous. Therefore, effect of the driving noise n2 can be properly excluded and the accurate identification of the P signal can be performed.
Furthermore, in the minute synchronous point detecting processing of this embodiment, when the P signal is detected, the hand driving timing is shifted to a timing at which the identification of the P signal is hardly affected by the driving noise, and then P signals are successively detected again. A minute synchronous point is determined on the basis of the sequential detection of P signals, and thus the minute synchronous point can be more accurately detected.
Accordingly, according to the analog type electronic timepiece 1 of this embodiment, there can be obtained an effect that accurate time information can be obtained by receiving a standard radio wave with neither stopping the second-by-second hand driving of the second hand 2 nor frequently generating irregular motion of the second hand 2 which makes a user uncomfortable.
The present invention is not limited to the above embodiment, and various modifications may be made. For example, in the second synchronous point detecting processing, the value of the pulse width threshold (125 ms) for comparing the driving noise n2 and the minimum pulse of the TCO signal may be stored in a rewritable non-volatile memory such as EEPROM or the like. In this case, the maximum width of the driving noise n2 is measured every electronic timepiece type before factory shipment or under development, and the timing threshold proper to each electronic timepiece type is determined and written into EEPROM. With this construction, the control circuit 45 and the control program in ROM 46 can be made common, and they can be applied to a plurality of types of electronic timepieces which are different in motor type or packaging construction so that the optimum second synchronous point detecting processing is executed.
Furthermore, when the electric field intensity of the standard radio wave is very low and an error frequently occurs in the reception processing, the hand driving of the second hand 2 may be stopped, only the hand driving of the hour hand 4 and the minute hand 3 may be executed and the reception processing may be likewise executed. In this case, the driving noise n2 vanishes or decreases through the processing, and thus the reception processing can be normally finished.
Still furthermore, the above embodiment adopts the construction of outputting the active-low TCO signal which is set to low level by the reception circuit 52 when the amplitude level of the radio wave signal is large and also set to high level by the reception circuit 52 when the amplitude level is small. However, the present invention may be likewise applied to the opposite construction that an active-high TCO signal is outputted. In this case, the rising detection is replaced by the falling detection, and the falling detection is replaced by the rising detection, whereby the same action can be performed.
Still furthermore, the above embodiment is applied to the standard radio wave of Japan, however, the present invention is likewise applicable to standard radio waves of different formats of all the countries of the world.
The detailed portions of the above embodiment may be properly changed without departing from the subject matter of the present invention. For example, in order to detect the rising and falling of the TCO signal, a method of sampling the TCO signal at a predetermined period and binarizing the sampled TCO signal may be used in place of use of the interrupt function. Furthermore, the period H of the interrupt prohibition in the second synchronous point detecting processing may be set to a slightly longer period when the high-level period of the SEC signal is shorter or the like.
Number | Date | Country | Kind |
---|---|---|---|
2009-091831 | Apr 2009 | JP | national |