KR20140022986A - Real time clock apparatus - Google Patents
Real time clock apparatus Download PDFInfo
- Publication number
- KR20140022986A KR20140022986A KR1020120089078A KR20120089078A KR20140022986A KR 20140022986 A KR20140022986 A KR 20140022986A KR 1020120089078 A KR1020120089078 A KR 1020120089078A KR 20120089078 A KR20120089078 A KR 20120089078A KR 20140022986 A KR20140022986 A KR 20140022986A
- Authority
- KR
- South Korea
- Prior art keywords
- time
- crystal oscillator
- count
- clock
- clocks
- Prior art date
Links
- 239000013078 crystal Substances 0.000 claims abstract description 69
- 238000000034 method Methods 0.000 claims description 5
- 239000010453 quartz Substances 0.000 description 5
- VYPSYNLAJGMNEJ-UHFFFAOYSA-N silicon dioxide Inorganic materials O=[Si]=O VYPSYNLAJGMNEJ-UHFFFAOYSA-N 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 238000007792 addition Methods 0.000 description 2
- 238000010295 mobile communication Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03L—AUTOMATIC CONTROL, STARTING, SYNCHRONISATION OR STABILISATION OF GENERATORS OF ELECTRONIC OSCILLATIONS OR PULSES
- H03L1/00—Stabilisation of generator output against variations of physical values, e.g. power supply
- H03L1/02—Stabilisation of generator output against variations of physical values, e.g. power supply against variations of temperature only
- H03L1/022—Stabilisation of generator output against variations of physical values, e.g. power supply against variations of temperature only by indirect stabilisation, i.e. by generating an electrical correction signal which is a function of the temperature
- H03L1/026—Stabilisation of generator output against variations of physical values, e.g. power supply against variations of temperature only by indirect stabilisation, i.e. by generating an electrical correction signal which is a function of the temperature by using a memory for digitally storing correction values
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03B—GENERATION OF OSCILLATIONS, DIRECTLY OR BY FREQUENCY-CHANGING, BY CIRCUITS EMPLOYING ACTIVE ELEMENTS WHICH OPERATE IN A NON-SWITCHING MANNER; GENERATION OF NOISE BY SUCH CIRCUITS
- H03B5/00—Generation of oscillations using amplifier with regenerative feedback from output to input
- H03B5/02—Details
- H03B5/04—Modifications of generator to compensate for variations in physical values, e.g. power supply, load, temperature
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03B—GENERATION OF OSCILLATIONS, DIRECTLY OR BY FREQUENCY-CHANGING, BY CIRCUITS EMPLOYING ACTIVE ELEMENTS WHICH OPERATE IN A NON-SWITCHING MANNER; GENERATION OF NOISE BY SUCH CIRCUITS
- H03B5/00—Generation of oscillations using amplifier with regenerative feedback from output to input
- H03B5/30—Generation of oscillations using amplifier with regenerative feedback from output to input with frequency-determining element being electromechanical resonator
- H03B5/32—Generation of oscillations using amplifier with regenerative feedback from output to input with frequency-determining element being electromechanical resonator being a piezoelectric resonator
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03L—AUTOMATIC CONTROL, STARTING, SYNCHRONISATION OR STABILISATION OF GENERATORS OF ELECTRONIC OSCILLATIONS OR PULSES
- H03L1/00—Stabilisation of generator output against variations of physical values, e.g. power supply
- H03L1/02—Stabilisation of generator output against variations of physical values, e.g. power supply against variations of temperature only
- H03L1/028—Stabilisation of generator output against variations of physical values, e.g. power supply against variations of temperature only of generators comprising piezoelectric resonators
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/04—Generating or distributing clock signals or signals derived directly therefrom
- G06F1/14—Time supervision arrangements, e.g. real time clock
Landscapes
- Electric Clocks (AREA)
- Oscillators With Electromechanical Resonators (AREA)
Abstract
Description
본 발명은 외부 온도의 변화에 따라 발생하는 수정발진기의 클럭신호의 주파수 변화를 보상하여 정확한 시간을 측정할 수 있는 리얼 타임 클럭 장치에 관한 것이다.The present invention relates to a real time clock device capable of accurately measuring a time by compensating for a frequency change of a clock signal of a crystal oscillator generated according to an external temperature change.
컴퓨터, 전자식 전력량계 등과 같이 실시간으로 시간정보를 필요로 하는 전자기기에 있어서 정확한 시간을 표시하는 것은 필수적이다. 이런 전자기기들은 내부에 리얼 타임 클럭(RTC : Real Time Clock)을 내장하고 있으며 이 리얼 타임 클럭은 외부의 수정발진기로부터 공급되는 클럭신호를 카운팅하여 시간정보를 제공할 수 있다. 하지만 이 수정발진기는 온도에 민감하여 온도변화에 따라 클럭신호의 주파수가 변하는 특성을 가지고 있다. 이런 이유로 상온이 아닌 추운 지역이나 또는 더운 지역에서는 온도에 따라 시간 오차가 발생하게 된다.It is essential to display the correct time in an electronic device that requires time information in real time, such as a computer or an electronic watt-hour meter. These electronic devices have a built-in real time clock (RTC) therein. The real time clock can provide time information by counting clock signals supplied from an external crystal oscillator. However, this crystal oscillator is sensitive to temperature and has a characteristic that the frequency of the clock signal changes with temperature change. For this reason, in a cold or hot area, not at room temperature, a time error occurs depending on the temperature.
상기와 같은 시간 오차는 시간대별로 과금을 필요로 하는 전자식 전력량계와 같은 전자기기에서는 잘못된 과금 계산과 같은 심각한 결과를 초래할 수 있다. 이런 부분을 해결하기 위해 외부온도에 대해서도 주파수 변화가 발생하지 않는 온도보상용 수정발진기(TCXO)를 이용하기도 하지만 수정발진기에 비해 가격이 비싼 단점이 있다. 따라서, 온도보상용 수정발진기(TCXO)를 이용함 없이 주변 온도 변화에 따른 수정발진기로부터 출력되는 주파수 변화를 보상하여 정확한 시간을 측정할 필요가 있다.Such time errors can have serious consequences, such as incorrect billing calculations, in electronic devices such as electronic watt-hour meters that require billing by time of day. In order to solve this problem, a temperature compensating crystal oscillator (TCXO) which does not cause a frequency change to the external temperature is used, but it is disadvantageous in that it is expensive compared to a crystal oscillator. Therefore, it is necessary to measure the accurate time by compensating the frequency change output from the crystal oscillator according to the ambient temperature change without using the temperature compensating crystal oscillator (TCXO).
하기의 선행기술문헌 중 특허문헌 1은 RTC 주파수 보상회로를 갖는 이동 통신 단말기에 관한 발명으로서, 온도에 따라 오차 발생여부를 판단하는 것이 아닌, 고주파로 저주파의 클럭신호를 카운팅하여 발생한 카운트값의 차이를 이용해 오차 발생여부를 판단하는 것으로서 본 발명과 차이가 있다.
In the following prior art document,
본 발명과 과제는 전술한 종래 기술의 문제점을 보완하기 위한 것으로, 온도보상용 수정발진기(TCXO)를 이용함 없이, 외부 온도의 변화에 따른 수정발진기의 클럭신호의 주파수 변화를 기 저장된 주파수 오차정보를 이용하여 보상함으로써 정확한 시간을 측정할 수 있는 리얼 타임 클럭 장치에 관한 것이다.
SUMMARY OF THE INVENTION The present invention has been made in order to solve the problems of the prior art described above and it is an object of the present invention to provide a method and apparatus for correcting frequency variation of a clock signal of a crystal oscillator, Time clock device capable of measuring an accurate time by compensating for a real time clock.
본 발명의 제1 기술적인 측면에 따르면, 온도를 측정하는 온도센서, 수정발진기 클럭신호를 카운팅하여 생성된 카운트값에 따라 시간정보를 생성하는 리얼 타임 클럭(RTC), 온도변화에 따른 상기 수정발진기 클럭신호의 온도별 주파수 변화값인 주파수 오차정보를 저장하는 메모리부 및 상기 온도센서로부터 측정된 온도에 대응하는 주파수 오차정보에 따라 상기 카운트값을 보정하는 카운트 보상부 를 포함하는 리얼 타임 클럭 장치를 제안한다. According to a first technical aspect of the present invention, there is provided an oscillator circuit comprising: a temperature sensor for measuring a temperature; a real time clock (RTC) for generating time information according to a count value generated by counting a crystal oscillator clock signal; And a count compensator for correcting the count value according to frequency error information corresponding to the temperature measured by the temperature sensor, wherein the real time clock device comprises: I suggest.
또한, 상기 리얼 타임 클럭(RTC)는, 상기 수정발진기 클럭신호를 카운팅하여 생성된 카운트값이 기 설정된 설정값과 일치하는 경우 기 설정된 단위시간을 산출한 후, 상기 카운트값을 리셋하는 카운트 레지스터 및 상기 카운트 레지스터로부터 상기 단위시간을 전달받아 시간정보를 생성하는 시간 연산부; 를 포함하는 리얼 타임 클럭 장치를 제안한다.The real time clock RTC may include a count register for calculating a predetermined unit time when the count value generated by counting the crystal oscillator clock signal matches a predetermined set value and then resetting the count value, A time operation unit for receiving the unit time from the count register and generating time information; Time clock device.
또한, 상기 카운트 보상부는, 상기 외부 온도에 대응하는 주파수 오차정보와 기 설정된 자연수 N의 곱셈 연산의 결과값 중 정수부분만을 취하여 보상클럭의 수를 산출하고, 상기 단위시간을 산출하는 복수의 수정발진기 클럭을 하나의 그룹으로 하는 경우, 상기 N개의 그룹 중 M번째의 그룹에 포함되는 복수의 수정발진기 클럭에 상기 보상클럭의 수를 더하는 리얼 타임 클럭 장치를 제안한다.The count compensator may calculate the number of compensation clocks by taking only the integer part of the result of the multiplication of the frequency error information corresponding to the external temperature and the predetermined natural number N and calculate a unit time by using a plurality of crystal oscillators And the number of the compensation clocks is added to a plurality of crystal oscillator clocks included in the Mth group out of the N groups when the clocks are grouped.
또한, 상기 카운트 보상부는, 상기 N개의 그룹 중 마지막 그룹에 포함되는 복수의 수정발진기 클럭에 상기 보상클럭의 수를 더하는 리얼 타임 클럭 장치를 제안한다. In addition, the count compensator proposes a real-time clock apparatus that adds the number of compensation clocks to a plurality of crystal oscillator clocks included in the last group among the N groups.
또한, 상기 카운트 보상부는, 상기 M번 째의 그룹에 포함되는 복수의 수정발진기 클럭 중 동일한 카운트 값을 가지는 클럭을 기산점으로 하여, 상기 보상클럭의 수를 더하는 리얼 타임 클럭 장치를 제안한다.Further, the count compensating unit proposes a real-time clock apparatus that adds a number of the compensating clocks, with a clock having the same count value among a plurality of crystal oscillator clocks included in the M-th group as a starting point.
또한, 상기 카운트 보상부는, 상기 동일한 카운트 값을 가지는 클럭의 시작시점을 기산점으로 하여, 상기 보상클럭의 수를 더하는 리얼 타임 클럭 장치를 제안한다.Further, the count compensation unit proposes a real time clock device that adds the number of the compensation clocks with the starting point of the clock having the same count value as a starting point.
또한, 상기 카운트 보상부는, 시스템 클럭신호를 이용하여 상기 시작시점을 판단하는 리얼 타임 클럭 장치를 제안한다.In addition, the count compensation unit proposes a real time clock device for determining the start time point using a system clock signal.
또한, 상기 상기 카운트 보상부는, 상기 시스템 클럭신호를 이용하여 상기 수정발진기 클럭의 카운트값이 변경되는 시점을 판단하여, 상기 시작시점을 판단하는 리얼 타임 클럭 장치를 제안한다.Also, the count compensation unit may determine a start time by determining a time point at which the count value of the crystal oscillator clock is changed using the system clock signal.
또한, 상기 리얼 타임 클럭으로부터 전달받은 시간정보를 출력하는 디스플레이부를 더 포함하는 리얼 타임 클럭 장치를 제안한다.
The present invention further provides a real time clock device including a display unit for outputting time information received from the real time clock.
본 발명에 따르면, 외부 온도의 변화에 따라 발생하는 수정발진기의 클럭신호의 주파수 변화를 보상하여 정확한 시간을 측정할 수 있다.According to the present invention, accurate time can be measured by compensating for a frequency change of a clock signal of a crystal oscillator generated according to an external temperature change.
또한, 온도보상용 수정발진기(TCXO)를 이용함 없이 정확한 시간을 측정할 수 있으므로 비용을 절감할 수 있다.
In addition, it is possible to measure the accurate time without using a temperature compensated crystal oscillator (TCXO), thereby reducing the cost.
도 1은 본 발명의 일 실시예에 따른 리얼 타임 클럭 장치를 나타낸 블록도이다.
도 2는 온도의 변화에 따른 수정발진기 클럭신호의 주파수 변화를 나타낸 그래프이다.
도 3는 시스템 클럭신호를 이용하여 수정발진기 클럭신호 중 어느 하나의 클럭의 시작시점을 판단하는 방법을 설명하기 위해 제공되는 도이다.1 is a block diagram illustrating a real-time clock apparatus according to an embodiment of the present invention.
2 is a graph showing a frequency change of a quartz oscillator clock signal according to a change in temperature.
FIG. 3 is a diagram for explaining a method of determining a start time point of a clock of a crystal oscillator clock signal using a system clock signal. FIG.
후술하는 본 발명에 대한 상세한 설명은, 본 발명이 실시될 수 있는 특정 실시예를 예시로서 도시하는 첨부 도면을 참조한다. 이들 실시예는 당업자가 본 발명을 실시할 수 있기에 충분하도록 상세히 설명된다. 본 발명의 다양한 실시예는 서로 다르지만 상호 배타적일 필요는 없음이 이해되어야 한다. 예를 들어, 여기에 기재되어 있는 특정 형상, 구조 및 특성은 일 실시예에 관련하여 본 발명의 정신 및 범위를 벗어나지 않으면서 다른 실시예로 구현될 수 있다. 또한, 각각의 개시된 실시예 내의 개별 구성요소의 위치 또는 배치는 본 발명의 정신 및 범위를 벗어나지 않으면서 변경될 수 있음이 이해되어야 한다. 따라서, 후술하는 상세한 설명은 한정적인 의미로서 취하려는 것이 아니며, 본 발명의 범위는, 적절하게 설명된다면, 그 청구항들이 주장하는 것과 균등한 모든 범위와 더불어 첨부된 청구항에 의해서만 한정된다. 도면에서 유사한 참조부호는 여러 측면에 걸쳐서 동일하거나 유사한 기능을 지칭한다.
The following detailed description of the invention refers to the accompanying drawings, which illustrate, by way of illustration, specific embodiments in which the invention may be practiced. These embodiments are described in sufficient detail to enable those skilled in the art to practice the invention. It should be understood that the various embodiments of the present invention are different, but need not be mutually exclusive. For example, certain features, structures, and characteristics described herein may be implemented in other embodiments without departing from the spirit and scope of the invention in connection with an embodiment. It is also to be understood that the position or arrangement of the individual components within each disclosed embodiment may be varied without departing from the spirit and scope of the invention. The following detailed description is, therefore, not to be taken in a limiting sense, and the scope of the present invention is to be limited only by the appended claims, along with the full scope of equivalents to which such claims are entitled, if properly explained. In the drawings, like reference numerals refer to the same or similar functions throughout the several views.
도 1은 본 발명의 일 실시예에 따른 리얼 타임 클럭 장치(10)를 나타낸 블록도이다. 도 1을 참조하면 본 발명의 리얼 타임 클럭 장치(10)는 외부 온도를 측정하는 온도센서(100), 리얼 타임 클럭(200), 메모리부(300), 카운트 보상부(400) 및 리얼 타임 클럭(200)에서 생성된 시간정보를 출력하는 디스플레이부(500)를 포함할 수 있다. 1 is a block diagram illustrating a real
리얼 타임 클럭(200)은 수정발진기 클럭신호를 카운팅하여 생성된 카운트값에 따라 시간정보를 생성할 수 있다. 통상적으로 수정발진기는 32768Hz의 기준주파수를 가지는 수정발진기 클럭신호를 생성하며, 리얼 타임 클럭(200)은 이를 카운팅하여 단위시간 1초를 산출하고, 단위시간 1초를 순차적으로 더하여 시간정보를 생성할 수 있다. 다만, 수정발진기 클럭신호의 기준주파수, 리얼 타임 클럭(200)에서 산출되는 단위시간, 단위시간을 산출하기 위한 카운트값은 사용자의 설정에 의해 변경될 수 있는 것으로 본 발명이 이에 한정되는 것은 아니다.The real-
구체적으로 리얼 타임 클럭(200)은 수정발진기 클럭신호를 카운팅하여 생성된 카운트값이 기 설정된 설정값과 일치하는 경우, 기 설정된 단위시간을 산출한 후, 상기 카운트값을 리셋하는 카운트 레지스터(210)를 포함할 수 있다. 예를 들어, 카운트 레지스터(210)는 수정발진기로부터 출력되는 수정발진기 클럭신호의 기준주파수가 32768Hz이고, 리얼 타임 클럭(200)에서 산출되는 기 설정된 단위시간이 1초이며, 단위시간을 산출하기 위한 카운트값이 0부터 32767까지인 경우에, 리얼 타임 클럭(200)은 0 부터 32767까지 카운팅한 후에 1초를 산출하고, 다시 수정발진기 클럭신호를 0 부터 32767까지 카운팅할 수 있다. Specifically, the real-
또한, 리얼 타임 클럭(200)은 상기 카운트 레지시터로부터 상기 단위시간을 전달받아 시간정보를 생성하는 시간 연산부(220)를 포함할 수 있다. 예를 들어, 시간 연산부(220)는 상기 카운트 레지스터(210)로부터 전달받은 단위시간을 순차적으로 더하여 시간정보를 생성할 수 있다.
Also, the real-
도 2는 온도의 변화에 따른 수정발진기 클럭신호의 주파수 변화를 나타낸 그래프이다. 도 2는 온도 변화에 따라서, 통상적으로 사용되는 32768Hz의 기준주파수를 가지는 수정발진기 클럭신호의 주파수가 온도 변화에 따라 변화하는 모습을 나타낸 그래프이다.2 is a graph showing a frequency change of a quartz oscillator clock signal according to a change in temperature. FIG. 2 is a graph showing a frequency of a quartz crystal oscillator clock signal having a reference frequency of 32768 Hz, which is conventionally used, according to a change in temperature, according to a temperature change.
도 2를 살펴보면, 수정발진기 클럭신호는 25℃에서 32768Hz의 기준주파수를 가지나, 이 외의 온도에서는 32768Hz 미만의 주파수를 갖는 것을 알 수 있다. 따라서, 리얼 타임 클럭(200)에서 산출되는 기 설정된 단위시간이 1초이며, 단위시간을 산출하기 위한 카운트값이 0부터 32767까지인 경우에, 25℃에서는 수정발진기 클럭신호는 32768Hz의 기준주파수를 가지므로, 리얼 타임 클럭(200)은 이를 카운팅하여 정확한 1초를 산출할 수 있다. 다만, 25℃ 이외의 온도에서는 32768Hz 미만의 주파수를 가지므로 32768개의 클럭을 카운팅하는 경우에 1초 이상의 시간의 시간이 걸릴 수 있다. Referring to FIG. 2, it can be seen that the crystal oscillator clock signal has a reference frequency of 32768 Hz at 25 ° C, but has a frequency of less than 32768 Hz at other temperatures. Therefore, when the predetermined unit time calculated in the real-
예를 들어, -10℃에서 수정발진기 클럭신호의 주파수는 32766.4124Hz이므로 32768개의 클럭을 카운팅 하기 위해서는 32768/32766.4124에 해당하는 약 1.00004845초가 걸리는 것을 알 수 있다. 즉, 25℃와 -10℃에서 32768개의 클럭을 카운팅하는 경우, -10℃에서의 시간이 25℃의 시간보다 48.45us의 시간이 더 소요된다. 다시 말하면, 1초당 약 48.45us에 해당하는 오차가 발생할 수 있고, 4초에는 약 193.8us, 하루에는 약 4.19s의 오차가 발생할 수 있다.
For example, at -10 ° C, the frequency of the crystal oscillator clock signal is 32766.4124 Hz, so that it takes about 1.00004845 seconds corresponding to 32768 / 32766.4124 to count 32768 clocks. That is, when 32768 clocks are counted at 25 ° C and -10 ° C, the time at -10 ° C is 48.45us longer than the time at 25 ° C. In other words, an error corresponding to about 48.45 us per second may occur, and an error of about 193.8 us in 4 seconds and about 4.19 s in one day may occur.
다시, 도 1을 참조하면, 메모리부(300)는 수정발진기 클럭신호의 온도에 따른 주파수 오차정보를 저장할 수 있다. 구체적으로 메모리부(300)는 수정발진기 클럭신호의 기준주파수와 온도에 따른 수정발진기 클럭신호의 주파수의 차이값 정보인 주파수 오차정보를 저장할 수 있다. Referring again to FIG. 1, the
예를 들어, 다시 도 2를 참조하면, 32768Hz의 기준주파수를 갖는 수정발진기 클럭신호는 -10℃에서 약 32766.4124Hz의 주파수를 가지므로 -10℃ 경우에, 메모리부(300)는 -10℃에서 1.5876Hz(=32768Hz-32766.4124)에 해당하는 오차정보를 저장할 수 있다.
For example, referring again to FIG. 2, since the crystal oscillator clock signal having a reference frequency of 32768 Hz has a frequency of about 32766.4124 Hz at -10 ° C, at -10 ° C, It is possible to store error information corresponding to 1.5876 Hz (= 32768 Hz-32766.4124).
도 1을 참조하면, 카운트 보상부(400)는 온도센서(100)로부터 측정된 외부 온도 및 메모리부(300)에 저장된 주파수 오차정보에 따라 상기 카운트값을 보정할 수 있다.Referring to FIG. 1, the
구체적으로 카운트 보상부(400)는, 온도센서(100)로부터 측정된 리얼 타임 클럭 장치(10)의 외부 온도를 전달받고, 메모리부(300)에 저장된 주파수 오차정보를 전달받아서, 외부 온도에 대응하는 주파수 오차정보를 획득할 수 있다.Specifically, the
이 후, 카운트 보상부(400)는 상기 외부 온도에 대응하는 주파수 오차정보와 기 설정된 자연수 N의 곱셈 연산의 결과값 중 정수부분만을 취하여 보상클럭의 수를 산출할 수 있다. 예를 들어, 기 설정된 자연수가 4인 경우, -10℃에서의 주파수 오차정보인 1.5876와 4를 곱셈 연산하여 6.3504를 산출하고, 6.3504에서 정수부분에 해당하는 6을 취하여 이를 보상클럭의 수로 할 수 있다..
Thereafter, the
카운트 보상부(400)는 보상클럭의 개수를 산출한 후에 단위시간을 산출하는 복수의 수정발진기 클럭을 하나의 그룹으로 하는 경우, 상기 N개의 그룹 중 M번 째의 그룹에 포함되는 복수의 수정발진기 클럭에 상기 보상클럭의 수를 더할 수 있다(N≥M).When a plurality of crystal oscillator clocks for calculating the unit time after calculating the number of compensating clocks are grouped into one group, the
이 때, 전술한 예시와 마찬가지로, 32768Hz의 기준주파수를 가지는 수정발진기 클럭신호 및 32768개의 클럭을 카운팅하여 1초의 단위시간을 산출하는 리얼 타임 클럭(200)의 경우에 N이 4이고 M이 3이라면, 32768개의 수정발진기 클럭을 하나의 그룹으로 하여, 상기 그룹의 4개의 그룹 중 3번째 그룹에 포함되는 32768개의 수정발진기 클럭에 보상클럭인 6개의 클럭 수를 더함으로써 시간 오차를 보상할 수 있다. At this time, as in the above-described example, in the case of the real-
또한, 카운트 보상부(400)는 제1 N개의 그룹 중 M번 째 그룹에 포함되는 수정발진기 클럭에 보상을 한 후, 순차적으로 제2 N개의 그룹 내지 제X N개의 그룹의 M번 째 그룹에 포함되는 수정발진기 클럭에 보상클럭 수를 반복적으로 더해 줌으로써 주파수에 의한 시간 오차의 보상이 가능하다(X는 임의의 자연수). The
구체적으로, 보상클럭인 6개의 클럭에 해당하는 시간은 6개의 클럭을 -10℃의 수정발진기 클럭신호의 주파수인 32766.4124로 나누어 구할 수 있고, 이는 약 183.114us에 해당하므로, 결과적으로 183.114us가 보상될 수 있다.Specifically, the time corresponding to the six clocks of the compensation clock can be obtained by dividing the six clocks by the frequency of the crystal oscillator clock signal of -10 ° C, which is 32766.4124, which corresponds to about 183.114us, .
즉, 이는 보상 전 4초당 193.8us에 해당하는 오차를 보상 후에 10.686us(=193.8us-183.114us)로 줄일 수 있는 것으로, That is, it can reduce the error corresponding to 193.8us per 4 seconds before compensation to 10.686us (= 193.8us-183.114us) after compensation,
하루에는 약 0.23s의 오차가 발생함을 알 수 있다. 이는 보상 전의 하루의 오차에 해당하는 4.19s와 비교하여 볼 때, 3.96s(=4.19s-0.23s)의 오차를 보상하였음을 알 수 있다.
It can be seen that an error of about 0.23 s occurs in one day. This indicates that the error of 3.96s (= 4.19s-0.23s) is compensated by comparing with 4.19s which corresponds to the error of one day before compensation.
또한, 카운트 보상부(400)는 상기 N개의 그룹 중 마지막 그룹에 속하는 복수의 수정발진기 클럭에 상기 보상클럭의 수를 더할 수 있다.Further, the
예를 들면, 전술한 예시와 마찬가지로, 32768Hz의 기준주파수를 가지는 수정발진기 클럭신호 및 32768개의 클럭을 카운팅하여 1초의 단위시간을 산출하는 리얼 타임 클럭(200)의 경우에 기 설정된 자연수 N이 4라면, 제1 그룹 내지 제3 그룹에 각각 포함되는 32768개의 클럭에서는 보상을 하지 않고, 마지막 제4 그룹에서 주파수 오차를 보상할 수 있다.For example, in the case of the real-
카운트 보상부(400)는 보상클럭의 수를 수정발진기 클럭신호의 카운트값에 더하기 위한 기산점을 설정할 수 있다. 카운트 보상부(400)는 수정발진기 클럭 중 동일한 카운트 값을 가지는 클럭을 기산점으로 할 수 있으며, 이 때, 복수의 수정발진기 클럭 중 어느 하나의 클럭의 시작시점을 기산점으로 할 수 있다.The
이 경우에 있어서, 복수의 수정발진기 클럭 중 어느 하나의 클럭의 시작시점의 판단은 시스템 클럭신호를 이용할 수 있으며, 구체적으로 수정발진기 클럭신호보다 높은 주파수를 가지는 시스템 클럭신호를 이용하여 수정발진기 클럭의 카운트값이 변경되는 시점을 검출하여 이루어 질 수 있다.
In this case, the system clock signal can be used to determine the start time of any one of the plurality of crystal oscillator clocks. Specifically, a system clock signal having a higher frequency than the crystal oscillator clock signal can be used to determine And detecting the time when the count value is changed.
도 3는 시스템 클럭신호를 이용하여 수정발진기 클럭신호 중 어느 하나의 클럭의 시작시점을 판단하는 방법을 설명하기 위해 제공되는 도이다. 도 4를 참조하면, 10MHz의 주파수를 가지고 있는 시스템 클럭신호와 32768Hz를 갖는 수정발진기 클럭신호가 도시되어 있다.FIG. 3 is a diagram for explaining a method of determining a start time point of a clock of a crystal oscillator clock signal using a system clock signal. FIG. Referring to FIG. 4, a system clock signal having a frequency of 10 MHz and a crystal oscillator clock signal having a frequency of 32768 Hz are shown.
시스템 클럭신호의 주파수가 수정발진기 클럭신호의 주파수 보다 높기 때문에 시스템 클럭신호을 이용해 수정발진기 클럭의 카운트값을 읽는 경우, 하나의 수정발진기 클럭의 어느 시점에서 수정발진기 클럭의 카운트값을 읽을지 알 수 없다. 따라서, 보상클럭의 수를 카운트값에 더할 경우에 기산점을 정하지 않으면, 서로 다른 그룹의 같은 카운트값에서 보상클럭의 수를 더한다고 하더라도 오차가 발생할 수 있다.Since the frequency of the system clock signal is higher than the frequency of the crystal oscillator clock signal, when the count value of the crystal oscillator clock is read using the system clock signal, it is unknown at which point of the crystal oscillator clock to read the count value of the crystal oscillator clock . Therefore, if the number of compensation clocks is added to the count value, an error may occur even if the number of compensation clocks is added at the same count value in different groups, unless a starting point is determined.
일 예로 동일한 카운트값을 가지는 수정발진기 클럭의 경우라도, 수정발진기 클럭의 시작시점에서 카운트값을 읽는 경우와 마지막 시점에서 카운트값을 읽는 경우는 거의 한 클럭의 오차가 발생하게 된다. 도 4에서 볼 수 있는 바와 같이, 보상클럭의 수를 더할 때, 제1 N개의 그룹 중 M번째 그룹에 포함되는 특정 카운트값(①의 시점)에서 더하는 경우와 제2 N개의 그룹 중 M번째 그룹에 포함되는 특정 카운트값(⑥의 시점)에서 더하는 경우는 같은 카운트값을 가지는 가지나 오차가 발생할 수 있다.For example, even in the case of a crystal oscillator clock having the same count value, when the count value is read at the start of the crystal oscillator clock and when the count value is read at the last time, an error of about one clock occurs. As can be seen from FIG. 4, when the number of compensation clocks is added, the addition is performed at a specific count value included in the Mth group among the first N groups (The point of time of?) Included in the count value, the branch or error having the same count value may occur.
따라서, 카운트값이 변경되는 ⑦의 시점에서 보상클럭의 수를 더하면 오차를 보다 더 줄일 수 있다.
Therefore, if the number of compensation clocks is added at the point of time (7) at which the count value is changed, the error can be further reduced.
이상에서 본 발명이 구체적인 구성요소 등과 같은 특정 사항들과 한정된 실시예 및 도면에 의해 설명되었으나, 이는 본 발명의 보다 전반적인 이해를 돕기 위해서 제공된 것일 뿐, 본 발명이 상기 실시예들에 한정되는 것은 아니며, 본 발명이 속하는 기술분야에서 통상적인 지식을 가진 자라면 이러한 기재로부터 다양한 수정 및 변형을 꾀할 수 있다.While the present invention has been particularly shown and described with reference to exemplary embodiments thereof, it is to be understood that the invention is not limited to the disclosed exemplary embodiments, but, on the contrary, Those skilled in the art will appreciate that various modifications, additions and substitutions are possible, without departing from the scope and spirit of the invention as disclosed in the accompanying claims.
따라서, 본 발명의 사상은 상기 설명된 실시예에 국한되어 정해져서는 아니 되며, 후술하는 특허청구범위뿐만 아니라 이 특허청구범위와 균등하게 또는 등가적으로 변형된 모든 것들은 본 발명의 사상의 범주에 속한다고 할 것이다.
Therefore, the spirit of the present invention should not be construed as being limited to the above-described embodiments, and all of the equivalents or equivalents of the claims, as well as the following claims, I will say.
100 : 온도센서
200 : 리얼 타임 클럭
210 : 카운트 레지스터
220 : 시간 연산부
300 : 메모리부
400 : 카운트 보상부
500 : 디스플레이부100: Temperature sensor
200: Real Time Clock
210: Count register
220: Time calculator
300:
400:
500:
Claims (9)
수정발진기 클럭신호를 카운팅하여 생성된 카운트값에 따라 시간정보를 생성하는 리얼 타임 클럭(RTC);
온도변화에 따른 상기 수정발진기 클럭신호의 온도별 주파수 변화값인 주파수 오차정보를 저장하는 메모리부; 및
상기 온도센서로부터 측정된 온도에 대응하는 주파수 오차정보에 따라 상기 카운트값을 보정하는 카운트 보상부; 를 포함하는 리얼 타임 클럭 장치.A temperature sensor for measuring temperature;
A real time clock (RTC) for generating time information according to a count value generated by counting a crystal oscillator clock signal;
A memory unit for storing frequency error information, which is a frequency variation value of the crystal oscillator clock signal according to temperature, And
A count compensation unit for correcting the count value according to frequency error information corresponding to a temperature measured from the temperature sensor; Time clock device.
상기 수정발진기 클럭신호를 카운팅하여 생성된 카운트값이 기 설정된 설정값과 일치하는 경우 기 설정된 단위시간을 산출한 후, 상기 카운트값을 리셋하는 카운트 레지스터; 및
상기 카운트 레지스터로부터 상기 단위시간을 전달받아 시간정보를 생성하는 시간 연산부; 를 포함하는 리얼 타임 클럭 장치.The method of claim 1, wherein the real time clock (RTC)
A count register for calculating a preset unit time when the count value generated by counting the crystal oscillator clock signal matches a predetermined set value and then resetting the count value; And
A time operation unit for receiving the unit time from the count register and generating time information; Time clock device.
상기 외부 온도에 대응하는 주파수 오차정보와 기 설정된 자연수 N의 곱셈 연산의 결과값 중 정수부분만을 취하여 보상클럭의 수를 산출하고,
상기 단위시간을 산출하는 복수의 수정발진기 클럭을 하나의 그룹으로 하는 경우, 상기 N개의 그룹 중 M번째의 그룹에 포함되는 복수의 수정발진기 클럭에 상기 보상클럭의 수를 더하는 리얼 타임 클럭 장치.3. The apparatus of claim 2,
Calculating a number of compensation clocks by taking only the integer part of the result of the multiplication operation of the predetermined natural number N with the frequency error information corresponding to the external temperature,
And adds the number of compensation clocks to a plurality of crystal oscillator clocks included in an Mth group among the N groups when a plurality of crystal oscillator clocks for calculating the unit time are grouped.
상기 N개의 그룹 중 마지막 그룹에 포함되는 복수의 수정발진기 클럭에 상기 보상클럭의 수를 더하는 리얼 타임 클럭 장치.The apparatus as claimed in claim 3, wherein the count-
And adds the number of compensation clocks to a plurality of crystal oscillator clocks included in the last group among the N groups.
상기 M번 째의 그룹에 포함되는 복수의 수정발진기 클럭 중 동일한 카운트 값을 가지는 클럭을 기산점으로 하여, 상기 보상클럭의 수를 더하는 리얼 타임 클럭 장치. The apparatus as claimed in claim 3, wherein the count-
And the number of compensation clocks is added to a clock having the same count value among a plurality of crystal oscillator clocks included in the Mth group as a start point.
상기 동일한 카운트 값을 가지는 클럭의 시작시점을 기산점으로 하여, 상기 보상클럭의 수를 더하는 리얼 타임 클럭 장치.6. The apparatus of claim 5,
And adds the number of the compensation clocks with the start point of the clock having the same count value as a start point.
시스템 클럭신호를 이용하여 상기 시작시점을 판단하는 리얼 타임 클럭 장치.7. The apparatus of claim 6,
A real-time clock device for determining a start time using a system clock signal.
상기 시스템 클럭신호를 이용하여 상기 수정발진기 클럭의 카운트값이 변경되는 시점을 판단하여, 상기 시작시점을 판단하는 리얼 타임 클럭 장치.The apparatus of claim 7, wherein the count compensator comprises:
And determines the start time by determining a time when the count value of the crystal oscillator clock is changed using the system clock signal.
상기 리얼 타임 클럭으로부터 전달받은 시간정보를 출력하는 디스플레이부; 를 더 포함하는 리얼 타임 클럭 장치.The method according to claim 1,
A display unit for outputting time information received from the real time clock; Lt; RTI ID = 0.0 > clock device. ≪ / RTI >
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020120089078A KR101942719B1 (en) | 2012-08-14 | 2012-08-14 | Real Time Clock Apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020120089078A KR101942719B1 (en) | 2012-08-14 | 2012-08-14 | Real Time Clock Apparatus |
Publications (2)
Publication Number | Publication Date |
---|---|
KR20140022986A true KR20140022986A (en) | 2014-02-26 |
KR101942719B1 KR101942719B1 (en) | 2019-04-17 |
Family
ID=50268627
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020120089078A KR101942719B1 (en) | 2012-08-14 | 2012-08-14 | Real Time Clock Apparatus |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR101942719B1 (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106933300A (en) * | 2017-04-05 | 2017-07-07 | 上海矽奥微电子有限公司 | Real-time clock temperature drift correction circuit |
CN108121131A (en) * | 2016-11-28 | 2018-06-05 | 三星电机株式会社 | The actuator of camera model |
WO2020032367A1 (en) * | 2018-08-09 | 2020-02-13 | 삼성전자 주식회사 | Electronic device including display driving circuit for displaying corrected time information on basis of temperature information |
KR20200093012A (en) * | 2018-06-11 | 2020-08-04 | 보에 테크놀로지 그룹 컴퍼니 리미티드 | Time synchronization device, electronic device, time synchronization system and time synchronization method |
CN113504401A (en) * | 2021-06-08 | 2021-10-15 | 深圳市科陆电子科技股份有限公司 | Method, device and system for compensating time error of electric energy meter diary |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20240030741A (en) | 2022-08-31 | 2024-03-07 | 삼성전자주식회사 | Touch controller, touch screen device having the same and operating method of touch controller |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20060028769A (en) * | 2003-06-20 | 2006-04-03 | 서프 테크놀러지, 인코포레이티드 | Method and apparatus for real time clock(rtc) brownout detection |
KR100687230B1 (en) * | 2005-08-03 | 2007-02-26 | 엘지전자 주식회사 | Real time clock apparatus and the real time compensating method thereof |
KR20070071671A (en) | 2005-12-30 | 2007-07-04 | 주식회사 팬택 | Mobile communication terminal having rtc frequency compensation circuit |
KR101061433B1 (en) * | 2010-04-26 | 2011-09-01 | 어보브반도체 주식회사 | Clock-signal compensation circuit for oscillator |
-
2012
- 2012-08-14 KR KR1020120089078A patent/KR101942719B1/en active IP Right Grant
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20060028769A (en) * | 2003-06-20 | 2006-04-03 | 서프 테크놀러지, 인코포레이티드 | Method and apparatus for real time clock(rtc) brownout detection |
KR100687230B1 (en) * | 2005-08-03 | 2007-02-26 | 엘지전자 주식회사 | Real time clock apparatus and the real time compensating method thereof |
KR20070071671A (en) | 2005-12-30 | 2007-07-04 | 주식회사 팬택 | Mobile communication terminal having rtc frequency compensation circuit |
KR101061433B1 (en) * | 2010-04-26 | 2011-09-01 | 어보브반도체 주식회사 | Clock-signal compensation circuit for oscillator |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108121131A (en) * | 2016-11-28 | 2018-06-05 | 三星电机株式会社 | The actuator of camera model |
KR20180060212A (en) * | 2016-11-28 | 2018-06-07 | 삼성전기주식회사 | Actuator of camera module |
US10868946B2 (en) | 2016-11-28 | 2020-12-15 | Samsung Electro-Mechanics Co., Ltd. | Actuator of camera module |
CN106933300A (en) * | 2017-04-05 | 2017-07-07 | 上海矽奥微电子有限公司 | Real-time clock temperature drift correction circuit |
KR20200093012A (en) * | 2018-06-11 | 2020-08-04 | 보에 테크놀로지 그룹 컴퍼니 리미티드 | Time synchronization device, electronic device, time synchronization system and time synchronization method |
US11429137B2 (en) | 2018-06-11 | 2022-08-30 | Boe Technology Group Co., Ltd. | Time synchronization device, electronic apparatus, time synchronization system and time synchronization method |
WO2020032367A1 (en) * | 2018-08-09 | 2020-02-13 | 삼성전자 주식회사 | Electronic device including display driving circuit for displaying corrected time information on basis of temperature information |
KR20200017632A (en) * | 2018-08-09 | 2020-02-19 | 삼성전자주식회사 | Electronic device including display driver circuit displaying compensated clock information based on thermal information |
US11335240B2 (en) | 2018-08-09 | 2022-05-17 | Samsung Electronics Co., Ltd. | Electronic device including display driving circuit for displaying corrected time information on basis of temperature information |
CN113504401A (en) * | 2021-06-08 | 2021-10-15 | 深圳市科陆电子科技股份有限公司 | Method, device and system for compensating time error of electric energy meter diary |
CN113504401B (en) * | 2021-06-08 | 2024-02-13 | 深圳市科陆电子科技股份有限公司 | Method, device and system for compensating diary time error of electric energy meter |
Also Published As
Publication number | Publication date |
---|---|
KR101942719B1 (en) | 2019-04-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101942719B1 (en) | Real Time Clock Apparatus | |
KR100687230B1 (en) | Real time clock apparatus and the real time compensating method thereof | |
US11012032B2 (en) | Systems and methods for frequency compensation of real-time-clock systems | |
JP2007078405A (en) | Timing program of software timepiece | |
US8443432B2 (en) | Method for calibrating a temperature float of a one time password token and a one time password token thereof | |
CN103384816A (en) | Semiconductor temperature sensors | |
JP5936716B2 (en) | Signal processing device | |
CN111130510A (en) | Method and device for outputting pulse per second signal | |
JP5972450B2 (en) | Signal processing device | |
KR101240798B1 (en) | Apparatus for real time clock frequency offset detection and method thereof | |
US8880372B2 (en) | Relative time measurement system with nanosecond level accuracy | |
CN104753528A (en) | Segmental automatic frequency control (AFC) calibration method and system | |
JP2010164346A (en) | Method and system for correcting measurement time of data logger | |
EP2894482A1 (en) | Electronic apparatus and program | |
JP5914718B2 (en) | Time base with oscillator, frequency division circuit and clock pulse suppression circuit | |
JP2007178363A (en) | Clocking system, time service providing device and time service providing system | |
WO2014112398A1 (en) | Electronic weighing device having flow calculation function | |
JP2005134215A (en) | System for measuring difference of signal arrival time | |
TWM454558U (en) | Real-time clock frequency correction apparatus | |
JPH07181273A (en) | Clock signal generator and method and system for measuring packet transmission time | |
CN111897202A (en) | RTC (real time clock) calibration circuit and method of smoke detector MCU (microprogrammed control Unit) | |
KR102300967B1 (en) | Apparatus and method for synchronizing times of multi-sensors based on GNSS in the multi-sensor integration system | |
JP6151540B2 (en) | Measuring device, measuring method, and measuring program | |
JP6728003B2 (en) | Measured value accumulator | |
KR102065188B1 (en) | Module for providing time information and method of providing time information using the same |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A201 | Request for examination | ||
E902 | Notification of reason for refusal | ||
E701 | Decision to grant or registration of patent right | ||
GRNT | Written decision to grant |