KR20070016434A - Real time clock apparatus and the real time compensating method thereof - Google Patents

Real time clock apparatus and the real time compensating method thereof Download PDF

Info

Publication number
KR20070016434A
KR20070016434A KR1020050071086A KR20050071086A KR20070016434A KR 20070016434 A KR20070016434 A KR 20070016434A KR 1020050071086 A KR1020050071086 A KR 1020050071086A KR 20050071086 A KR20050071086 A KR 20050071086A KR 20070016434 A KR20070016434 A KR 20070016434A
Authority
KR
South Korea
Prior art keywords
clock
rtc
error
value
time
Prior art date
Application number
KR1020050071086A
Other languages
Korean (ko)
Other versions
KR100687230B1 (en
Inventor
구본혁
Original Assignee
엘지전자 주식회사
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 엘지전자 주식회사 filed Critical 엘지전자 주식회사
Priority to KR1020050071086A priority Critical patent/KR100687230B1/en
Priority to CNA2006101034956A priority patent/CN1909375A/en
Publication of KR20070016434A publication Critical patent/KR20070016434A/en
Application granted granted Critical
Publication of KR100687230B1 publication Critical patent/KR100687230B1/en

Links

Images

Classifications

    • GPHYSICS
    • G04HOROLOGY
    • G04GELECTRONIC TIME-PIECES
    • G04G5/00Setting, i.e. correcting or changing, the time-indication
    • GPHYSICS
    • G04HOROLOGY
    • G04FTIME-INTERVAL MEASURING
    • G04F3/00Apparatus which can be set and started to measure-off predetermined or adjustably-fixed time intervals with driving mechanisms, e.g. dosimeters with clockwork

Landscapes

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

Abstract

본원 발명은 알티씨(RTC : Real Time Clock)에 관한 것으로서, 더욱 상세하게는 시간 경과에 따라 발생하는 시간오차를 자동으로 보정할 수 있도록 하는 알티씨 장치 및 알티씨 장치의 현재시각 보정 방법에 관한 것이다.The present invention relates to a Real Time Clock (RTC), and more particularly, to an RTC device and a current time correction method of the ALTC device for automatically correcting a time error occurring over time. will be.

상술한 본원 발명의 알티씨(RTC : Real Time Clock)장치는, 알티씨(RTC)클럭을 출력하는 알티씨발진부와; 상기 알티씨발진부의 오차 보정 및 시스템의 구동을 위한 시스템클럭을 제공하는 시스템클럭발진부와; 상기 알티씨발진부의 클럭 신호를 입력 받아서 현재시각을 연산하여 출력하며, 주기적으로 상기 시스템클럭에 대한 상기 알티씨클럭의 오차값 및 누적오차값을 가지는 오차정보를 검출한 후 상기 오차정보를 이용하여 출력되는 현재시각을 보정하여 출력하는 알티씨시간출력부를 포함하여 구성되는 것을 특징으로 한다.The RTC (RTC) device of the present invention includes an RTC oscillation unit for outputting an RTC clock; A system clock oscillation unit for providing a system clock for error correction and driving of the system of the ALTC oscillation unit; After receiving the clock signal of the RTC oscillator, it calculates and outputs a current time, periodically detects error information having an error value and an accumulated error value of the RTC clock with respect to the system clock, and then uses the error information. It is characterized in that it comprises a RCT time output unit for correcting the output current time output.

알티씨, 현재시각, 시스템클럭, 보정, 오차정보 RTC, current time, system clock, correction, error information

Description

알티씨 장치 및 알티씨 장치의 현재시각 보정 방법{Real time clock apparatus and the real time compensating method thereof}Real time clock apparatus and the real time compensating method

도 1은 종래기술의 알티씨 장치의 개략적인 블록 구성도이고,1 is a schematic block diagram of an AltiC apparatus of the prior art,

도 2는 본원 발명의 일 실시예에 따르는 알티씨 장치의 개략적인 블록 구성도이며,2 is a schematic block diagram of an RTC apparatus according to an embodiment of the present invention,

도 3은 본원 발명의 일 실시예에 따르는 알티씨 장치의 현재시각 보정 방법의 처리과정을 나타내는 순서도이다.3 is a flowchart illustrating a process of a current time correction method of an ALTC apparatus according to an embodiment of the present invention.

*도면의 주요 부호에 대한 설명** Description of Major Symbols in Drawings *

10. 200 : 알티씨장치10. 200: RTC device

11, 210 : 알티씨발진부(RTC 발진부) 12 : 분주회로부11, 210: RTC oscillation unit (RTC oscillation unit) 12: frequency division circuit unit

13 : 시간연산부 14 : 저장부13 time calculation unit 14 storage unit

220 : 시스템클럭발진부 230 : 알티씨출력부(RTC출력부)220: system clock oscillation unit 230: RTC output unit (RTC output unit)

231 : 분주기 232 : 제 1 카운터231: frequency divider 232: first counter

233 : 제 2 카운터 234 : 시간연산기233: second counter 234: time calculator

235 : 비교기 236 : 가산기235: comparator 236: adder

237 : 메모리 238 : 오차시간계산기237 memory 238 error time calculator

본원 발명은 알티씨(RTC : Real Time Clock)에 관한 것으로서, 더욱 상세하게는 시간 경과에 따라 발생되는 시간오차를 자동으로 보정할 수 있도록 하는 알티씨 장치 및 알티씨 장치의 현재시각 보정 방법에 관한 것이다.The present invention relates to a Real Time Clock (RTC), and more particularly to an RTC device and a current time correction method of the ALTC device to automatically correct the time error generated over time will be.

일반적으로, 컴퓨터, 통신기기 등의 실시간 정보를 필요로 하는 전기기기등의 경우, 마이크로프로세서 등의 제어부를 구비하여 실시간의 흐름에 따라 운영자가 요구하는 작업을 수행하도록 일정주기마다 실시간을 연산하여 출력하는 알티씨(RTC : Real Time Clock) 장치를 구비하게 된다.In general, in the case of an electric device that requires real-time information such as a computer, a communication device, etc., a control unit such as a microprocessor is provided to calculate and output a real-time every predetermined period to perform a task required by an operator according to the real-time flow. It will be equipped with a Real Time Clock (RTC) device.

그리고 이동통신 단말기의 경우 위성으로부터 표준 시간정보를 제공받는 씨디엠에이(CDMA) 방식을 제외한 지에스엠(GSM) 방식 등의 이동통신 시스템의 경우에는 위성으로부터 표준 시간정보를 제공받을 수 없기 때문에, 자체 알티씨 회로를 구비하여 이동통신 단말기의 시계 기능을 구현하고 있다.In the case of a mobile communication system, except for the CDMA method, which receives the standard time information from the satellite, the mobile communication terminal cannot receive the standard time information from the satellite. It is equipped with the RTC circuit to implement the clock function of the mobile communication terminal.

도 1은 상술한 바와 같은 전자기기들에 현재시각 정보를 제공하기 위한 종래기술의 알티씨(RTC) 장치의 개략적인 블록 구성도이다.1 is a schematic block diagram of an RTC device of the related art for providing current time information to electronic devices as described above.

상술한 바와 같이, 현재시각 정보를 제공하기 위한 알티씨(RTC) 장치(10)는 실시간 정보의 연산의 기준이 되는 클럭을 제공하는 알티씨발진부(RTC oscillator)(11)와, 알티씨발진부(11)에서 출력되는 클럭을 분주하여 출력하는 분주회로부(12)와 분주회로부(12)에서 출력된 분주클럭을 입력 받은 후 초기에 설정된 초기 기준 시간 정보를 이용하여 현재시각 정보를 연산한 후 표시부 등으로 출 력하는 시간연산부(13) 및 초기 기준 시간 정보를 저장하는 저장부(14)를 포함하여 구성된다.As described above, the RTC apparatus 10 for providing current time information includes an RTC oscillator 11 and a RTC oscillator 11 for providing a clock that is a reference for calculation of real-time information. 11) After receiving the divided clock output from the divided circuit unit 12 and the divided circuit unit 12 to divide and output the clock output from the output unit after calculating the present time information using the initial reference time information initially set, the display unit, etc. And a storage unit 14 for storing the initial time information unit 13 and initial reference time information.

상술한 구성을 가지는 종래기술의 알티씨(RTC) 장치(10)는 CDMA 방식의 이동통신 시스템에서와 같이 위성으로부터 표준 시간 정보를 수신하여 동기를 맞추는 것이 아니고 내부의 알티씨발진부(11)를 구성하는 클럭소자로부터 클럭 정보를 입력 받은 후 분주회로부(12)가 시스템에 적합한 클럭 신호로 분주하여 출력하면, C, C++, 비쥬얼 C 등의 프로그램언어로 구현되거나 하드웨어적으로 구현되는 시간연산부(13)가 분주클럭 신호를 입력 받은 후 현재시각을 연산하여 표시부 등으로 출력한다.The conventional RTC device 10 having the above-described configuration does not receive and synchronize standard time information from a satellite as in a CDMA mobile communication system, but constitutes an internal ALTC oscillator 11. After the clock information is input from the clock device, the frequency divider circuit 12 divides and outputs a clock signal suitable for the system. The time calculation unit 13 is implemented in a programming language such as C, C ++, Visual C, or hardware. After receiving the divided clock signal, calculates the current time and outputs it to the display.

그러나 상술한 바와 같은 종래기술에서의 알티씨장치(10)는 일반적으로 32.768Khz의 클럭 소자를 알티씨발진부(11)에 구비하여 클럭을 발생시키게 된다. 이러한 클럭소자는 한 주기 동안 약20ppm 정도의 오차를 발생시키며, 클럭 소자가 온도 변화에 따라 특성이 변하기 때문에 온도변화에 기인한 오차가 발생한다. 따라서, 상술한 바와 같은 알티씨 발진부에 구성된 클럭소자의 특성에 의해 발생되는 오차에 기인하여 시간이 지남에 따라 출력되는 시간 정보가 조금씩 틀려지게 되어 주기적으로 보정 알고리즘을 이용하여 시간 오차를 보정하여 주어야만 하고, 이러한 보정 알고리즘이 적용되지 않은 경우에는 주기적으로 사용자가 출력되는 현재시각을 표준시간과 일치시켜 주어야하는 문제점을 가진다.However, the ALTC apparatus 10 in the related art as described above generally includes a clock element of 32.768 kHz in the ALTC oscillator 11 to generate a clock. Such a clock element generates an error of about 20 ppm during one cycle, and an error due to temperature change occurs because the clock element changes in characteristics with temperature change. Therefore, due to the error generated by the characteristics of the clock element configured in the ATC oscillator as described above, the time information outputted is slightly different as time passes, and the time error must be corrected periodically using a correction algorithm. In addition, when such a correction algorithm is not applied, the user must periodically match the current time output to the standard time.

그리고 또한 상술한 바와 같은 시간 오차에 대한 보정알고리즘을 제공한다고 하여도 상술한 보정알고리즘은 기준클럭을 이용하는 것이 아니라 알티씨발진부 내 부에 구성되는 클럭소자의 오차정보를 이용하여 주기적으로 일정 시간 경과 후에 발생되는 틀려진 시간 값을 예측하여 시간을 보정하기 때문에 그 정확도가 현저히 떨어지는 문제점을 가지게 된다.In addition, even if the correction algorithm for the time error described above is provided, the correction algorithm described above does not use the reference clock but periodically uses the error information of the clock element configured inside the ATC oscillator. Since the time is corrected by predicting the wrong time value to be generated, the accuracy is significantly reduced.

따라서, 본원 발명은 상술한 종래기술에서의 문제점을 해결하기 위한 것으로서, 자체에 구비된 시스템클럭 발진부의 시스템클럭을 기준클럭으로 하여 알티씨 발진부 내부에 구성되는 클럭소자에서 발생되는 클럭에 대한 오차를 검출한 후 검출된 오차를 이용하여 자체적으로 시간 정보를 보정할 수 있도록 하는 알티씨 장치 및 알티씨 장치의 현재시각 보정 방법을 제공하는 것을 그 목적으로 한다.Accordingly, the present invention is to solve the problems of the prior art described above, by using the system clock oscillation unit system clock provided therein as a reference clock to the error generated by the clock element formed in the clock generator in the ALTC oscillation unit It is an object of the present invention to provide an RTC device and a current time correction method of an RTC device that can correct time information by using the detected error after detection.

상술한 목적을 달성하기 위한 본원 발명의 알티씨(RTC : Real Time Clock)장치는, 알티씨(RTC)클럭을 출력하는 알티씨발진부와; 상기 알티씨발진부의 오차 보정 및 시스템의 구동을 위한 시스템클럭을 제공하는 시스템클럭발진부와; 상기 알티씨발진부의 클럭 신호를 입력 받아서 현재시각을 연산하여 출력하며, 주기적으로 상기 시스템클럭에 대한 상기 알티씨클럭의 오차값 및 누적오차값을 가지는 오차정보를 검출한 후 상기 오차정보를 이용하여 현재시각을 보정하여 출력하는 알티씨시간출력부를 포함하여 구성되는 것을 특징으로 한다.An RTC (RTC) device of the present invention for achieving the above object comprises: an RTC oscillation unit for outputting an RTC clock; A system clock oscillation unit for providing a system clock for error correction and driving of the system of the ALTC oscillation unit; After receiving the clock signal of the RTC oscillator, it calculates and outputs a current time, periodically detects error information having an error value and an accumulated error value of the RTC clock with respect to the system clock, and then uses the error information. It is characterized in that it comprises a RCT time output unit for correcting the current time output.

상기 알티씨시간출력부는, 상기 알티씨클럭을 입력 받은 후 초기설정값에 따라 분주하여 분주클럭을 출력하는 분주기와; 상기 분주클럭과 상기 알티씨클럭을 입력받은 후 상기 알티씨클럭 내에서의 상기 분주클럭의 반복회수를 카운트하여 알 티씨클럭반복회수를 출력하는 제1 카운터와; 상기 분주클럭과 상기 시스템클럭을 입력받은 후 상기 시스템클럭 내에서의 상기 분주클럭의 반복회수를 카운트하여 시스템클럭반복회수를 출력하는 제2 카운터와; 상기 알티씨클럭반복회수와 상기 시스템클럭반복회수를 표준시의 상기 시스템클럭과 상기 알티씨클럭의 주파수 내에서의 상기 분주클럭의 반복회수를 나타내는 오차보정값과의 차이를 검출하여 상기 알티씨클럭의 오차값으로 출력하는 비교기와; 상기 오차값을 메모리에 저장된 누적오차값에 합산하여 누적오차값을 갱신하는 가산기와; 상기 누적오차값, 알티씨클럭 주파수, 시스템클럭 주파수, 및 오차보정값을 저장하는 메모리와; 상기 메모리에 저장된 누적오차값과 알티씨클럭주파수와 시스템클럭주파수 및 오차보정값을 이용하여 누적오차값에 대응되는 오차시간을 연산하여 출력하고 누적오차값을 0으로 하여 초기화하는 오차시간계산기와; 상기 오차시간을 이용하여 출력되는 현재시각을 보정하여 출력하는 시간연산기를 포함하여 구성되는 것을 특징으로 한다.The RTC time output unit may include: a divider which receives the RTC clock and divides it according to an initial setting value to output a divided clock; A first counter for outputting an RTC clock repetition count by counting the repetition number of the division clocks in the RTC clock after receiving the division clock and the RTC clock; A second counter for outputting a system clock repetition number by counting the number of repetitions of the frequency division clock in the system clock after receiving the division clock and the system clock; The ATC clock repeat count and the system clock repeat count are detected by detecting a difference between the system clock in standard time and an error correction value representing the repeat count of the frequency division clock within the frequency of the ATC clock. A comparator for outputting an error value; An adder for adding the error value to a cumulative error value stored in a memory to update a cumulative error value; A memory for storing the cumulative error value, an RTC clock frequency, a system clock frequency, and an error correction value; An error time calculator for calculating and outputting an error time corresponding to the accumulated error value by using the accumulated error value, the AL clock frequency, the system clock frequency, and the error correction value stored in the memory, and initializing the accumulated error value to 0; And a time calculator for correcting and outputting a current time output using the error time.

상술한 본원 발명에서 상기 시간연산기는 알티씨클럭에 대한 오차검출 주기가 도래한 경우 상기 제 1 카운터와 제 2 카운터의 구동을 위하여 상기 제 1 카운터와 제 2 카운터로 오차검출이벤트를 출력하도록 구성된다. 상기 시간연산기는 또한 현재시각보정 주기가 도래한 경우 상기 메모리에 저장된 누적오차값에 대한 오차시간을 연산하는 오차시간계산기의 구동을 위하여 상기 오차계산기로 보정이벤트를 출력하도록 구성된다.In the above-described present invention, the time calculator is configured to output an error detection event to the first counter and the second counter for driving the first counter and the second counter when the error detection cycle for the RTC clock arrives. . The time calculator is further configured to output a correction event to the error calculator for driving an error time calculator that calculates an error time for a cumulative error value stored in the memory when a current time correction period arrives.

상술한 목적을 달성하기 위한 본원 발명의 알티씨 장치의 현재시각 보정 방법은, 알티씨발진부와, 시스템클럭발진부와 알티씨시간출력부를 구비한 알티씨 장 치에 있어서, 상기 시스템클럭발진부에서 출력되는 시스템클럭을 기준으로 한 상기 알티씨발진부의 알티씨클럭의 주파수 편이를 검출하기 위한 초기설정값을 설정하는 초기설정값설정과정과; 상기 초기설정값에 따라 상기 알티씨클럭의 분주클럭을 생성하는 분주클럭생성과정과; 상기 분주클럭생성과정 이후 주기적으로 상기 시스템클럭의 주파수와 상기 알티씨발진부에서 상기 분주클럭의 반복회수를 검출한 후 표준시의 상기 시스템클럭과 상기 알티씨클럭의 주파수 내에서의 상기 분주클럭의 반복회수를 나타내는 오차보정값과의 차를 가지는 상기 시스템클럭에 대한 상기 알티씨클럭의 오차값과 상기 오차값을 합산한 누적오차값을 가지는 오차정보를 검출하는 오차연산과정과; 상기 오차연산과정에서 검출된 상기 누적오차값을 시간으로 환산하여 현재출력시간을 보정하는 현재시각보정과정으로 이루어지는 것을 특징으로 한다.The present time correction method of the ALTC apparatus of the present invention for achieving the above object, in the ALTC apparatus having an ALTC oscillation unit, a system clock oscillation unit and an RTC time output unit, outputted from the system clock oscillation unit An initial set value setting step of setting an initial set value for detecting a frequency shift of an AL clock on the basis of a system clock; A division clock generation process of generating a division clock of the RTC clock according to the initial setting value; The frequency of the system clock and the number of iterations of the frequency division clock are detected by the ALTC oscillator periodically after the frequency of the frequency division generation. An error operation process of detecting error information having an accumulated error value obtained by adding the error value and the error value of the RTC clock with respect to the system clock having a difference with an error correction value indicating a; And a current time correction process of correcting a current output time by converting the cumulative error value detected in the error operation process into time.

상기 오차연산과정은, 일 오차검출주기 동안 상기 시스템클럭 내에서의 상기 분주클럭의 반복회수를 나타내는 시스템클럭반복회수와 상기 알티씨클럭 내에서의 상기 분주클럭의 반복회수를 나타내는 알티씨클럭반복회수를 검출하는 분주클럭반복회수검출과정과; 상기 분주클럭반복회수검출과정에서 검출된 상기 시스템클럭반복회수 및 상기 알티씨클럭반복회수와 상기 오차보정값과의 차이를 검출하여 오차값으로 출력하는 오차값검출과정과; 상기 오차값을 기 저장된 누적오차값에 합산하여 누적오차값을 갱신하는 누적오차값검출과정을 포함하여 이루어지는 것을 특징으로 한다.The error operation process includes a system clock repeating number representing a repeating frequency of the divided clocks in the system clock and an ALTC clock repeating number representing a repeating frequency of the frequency division clocks in the ALTC clock during one error detection period. A division clock repeat recovery detection step of detecting a; An error value detection step of detecting a difference between the system clock repeat count and the ALTC clock repeat count and the error correction value detected in the divided clock repeat count detection process and outputting an error value; And a cumulative error value detection process of updating the cumulative error value by adding the error value to a previously stored cumulative error value.

상기 현재시각보정과정은, 현재시각 보정 주기마다 상기 누적오차값에 대응 되는 오차시간을 검출하는 오차시간검출과정과; 상기 오차시간을 적용하여 현재시각을 보정하여 출력하는 출력시간보정과정으로 이루어지는 것을 특징으로 한다.The current time correction process includes: an error time detection process of detecting an error time corresponding to the cumulative error value at each current time correction period; It characterized in that the output time correction process for outputting by correcting the current time by applying the error time.

상술한 본원 발명에서 상기 초기설정값은 상기 분주기에 의해 출력되는 분주클럭의 주파수 값을 나타내며, 상기 초기설정 값 또는 상기 분주클럭의 주파수는 상기 알티씨클럭의 주파수 값 또는 상기 알티씨클럭과 상기 시스템클럭 주파수의 공약수 중 어느 하나의 값으로 설정된다.In the present invention described above, the initial value represents a frequency value of the divided clock output by the divider, and the initial value or the frequency of the divided clock is the frequency value of the RTC clock or the ALTC clock and the It is set to any one of the common factors of the system clock frequency.

상기 오차값은 시스템클럭에 대한 알티씨클럭의 오차검출을 위한 일 오차검출주기 동안에 상기 시스템클럭에 대한 알티씨클럭의 편이 정도를 환산한 값을 나타내는 값을 말하며, 상기 누적오차값은 현재시각보정 주기 동안 발생된 오차검출주기마다 검출된 시스템클럭에 대한 알티씨클럭의 편이정도를 환산한 값을 누적합산한 값을 말한다.The error value refers to a value representing a deviation degree of the ALTC clock for the system clock during one error detection cycle for error detection of the ALTC clock with respect to the system clock, and the cumulative error value is a current time correction. It is the cumulative sum of the value of the deviation degree of RTC clock with respect to the detected system clock for each error detection period generated during the cycle.

이하, 첨부 도면을 참조하여 본원 발명을 더욱 상세히 설명한다.Hereinafter, the present invention will be described in more detail with reference to the accompanying drawings.

도 2는 본원 발명의 일 실시예에 따르는 알티씨 장치(200)의 블록 구성도이다.2 is a block diagram of the ALTC device 200 according to an embodiment of the present invention.

도 2에 도시된 바와 같이 본원 발명의 일 실시예에 따르는 알티씨 장치(200)는 알티씨(RTC)클럭을 출력하는 RTC발진부(210)와; 알티씨 장치(200)의 시간 오차 보정을 위한 고정도의 기준 클럭을 제공하는 시스템클럭발진부(220)와; RTC발진부(210)의 클럭 신호를 입력 받아서 현재시각을 연산하여 출력하며, 주기적으로 시스템클럭발진부(220)의 클럭을 이용하여 RTC발진부(210)에서 출력되는 RTC클럭의 오차값을 검출한 후 검출된 오차값을 누적 합산하여 누적오차값을 생성한 후 기 설정 된 보정주기에 따라 출력되는 현재시각에 대한 보정을 수행하는 알티씨시간출력부(230)를 포함하여 구성된다.As illustrated in FIG. 2, an RTC apparatus 200 according to an embodiment of the present invention includes an RTC oscillator 210 for outputting an RTC clock; A system clock oscillator 220 for providing a high-precision reference clock for time error correction of the RTC apparatus 200; Receives the clock signal of the RTC oscillator 210 and calculates and outputs the current time, and periodically detects an error value of the RTC clock output from the RTC oscillator 210 by using the clock of the system clock oscillator 220. After generating the cumulative error value by cumulatively sum the error value is configured to include an RTC time output unit 230 for performing a correction for the current time is output according to a preset correction period.

상기 RTC발진부(210)는 실시간(Real Time) 출력을 위한 클럭을 제공하는 것으로서 일반적으로 내부에 32.768Khz의 클럭을 출력하는 클럭소자를 구비하며 시스템의 구동과 관계없이 배터리로부터 전원을 공급받아서 24시간 항상 구동되어 RTC클럭을 출력함으로써 알티씨 장치(200)가 항상 현재시각을 출력할 수 있도록 한다.The RTC oscillator 210 provides a clock for real time output and generally includes a clock element for outputting a clock of 32.768 kHz therein, and receives power from a battery for 24 hours regardless of driving of the system. It is always driven to output the RTC clock so that the RTC device 200 can always output the current time.

상기 시스템클럭발진부(220)는 고정도 클럭소자를 구비하여 시스템의 구동 및 알티씨 장치(200)의 현재시각에 대한 보정을 수행할 수 있도록 하는 시스템클럭을 공급한다. 일반적으로 시스템클럭발진부(220)는 고정도 및 온도 보상 기능을 가지는 19.2Mhz의 온도보상수정발진자(TCXO : Temperature Compensated Crystal Oscillator)를 구비하며, 알티씨 발진장치를 구비한 시스템이 오프되는 경우 오프되고, 재구동되는 경우 다시 구동되어 시스템 클럭을 출력하도록 동작한다.The system clock oscillator 220 is provided with a high-precision clock device to supply a system clock to perform the operation of the system and correction of the current time of the ALTC device 200. In general, the system clock oscillator 220 has a temperature compensated crystal oscillator (TCXO) of 19.2Mhz having high accuracy and temperature compensation, and is off when the system having an ALTC oscillator is turned off. If it is restarted, it is driven again to output the system clock.

상기 알티씨시간출력부(230)는 RTC발진부(210)에서 발생되는 32.768Khz 클럭을 입력받은 후 이를 초기에 저장된 초기 기준시간 정보를 이용하여 현재시각을 연산하여 출력한다. 그리고 주기적으로 시스템클럭발진부(220)에서 출력되는 고정도 클럭을 이용하여 RTC발진부(210)에서 발생되는 오차정보를 검출하고, 이를 누적하여 저장한 후, 현재시각을 보정하기 위한 시점이 도래한 경우 누적된 RTC발진부(210)의 출력 클록 오차 값을 시간 정보로 환산하여 현재시각을 보정한다.The RTC time output unit 230 receives the 32.768 kHz clock generated by the RTC oscillator 210 and then calculates and outputs the current time using the initial reference time information stored initially. When the error information generated by the RTC oscillator 210 is detected using the high precision clock output from the system clock oscillator 220 periodically, accumulated and stored, and the time point for correcting the present time arrives. The current clock is corrected by converting the accumulated output clock error value of the RTC oscillator 210 into time information.

상술한 기능을 수행하는 알티씨시간출력부(230)의 상세 구성을 설명하면 다음과 같다.The detailed configuration of the RTC time output unit 230 performing the above-described function is as follows.

도 2에 도시된 바와 같이 상기 알티씨시간출력부(230)에는 RTC발진부(210)에서 출력되는 클럭을 현재시각 출력을 위한 시간클럭과 시스템클럭발진부(220)의 클럭을 이용하여 RTC클럭의 오차를 검출하는 기준이 되는 클럭을 가지는 분주클럭으로 분주하여 출력하도록 RTC발진부(210)의 클럭 출력단에 분주기(231)가 구비된다. 분주기로는 알티씨 장치(200)를 구비한 외부 시스템의 제어부로부터 분주클럭의 주파수 값을 가지는 초기설정값이 입력되며 분주기(232)는 초기설정값으로 지정되는 주파수를 가지는 분주클럭을 생성하여 출력한다.As shown in FIG. 2, the RTC time output unit 230 uses an clock of the clock output from the RTC oscillator 210 to output a current time and a clock of the system clock oscillator 220. The frequency divider 231 is provided at the clock output terminal of the RTC oscillator 210 to divide and output the divided clock having a clock which is a reference for detecting the signal. As the frequency divider, an initial setting value having a frequency value of the frequency division clock is input from a controller of an external system provided with the RTC apparatus 200, and the frequency divider 232 generates a frequency division clock having a frequency specified as an initial setting value. Output

상기 분주클럭의 주파수 값을 가지는 초기설정값은 RTC클럭 자체의 주파수 값을 가지거나, RTC클럭과 시스템클럭의 공약수가 되는 주파수 중 어느 하나의 주파수를 가지도록 설정될 수 있다. 그러나 상기 초기설정값은 연산 결과의 정확도를 위하여 RTC발진부(210)와 시스템클럭발진부(220)에서 출력되는 클럭의 공약수 값 중 작은 값으로 설정하는 것이 바람직하다. The initial setting value having the frequency value of the frequency division clock may be set to have a frequency value of the RTC clock itself, or any one of the frequencies that are a common factor of the RTC clock and the system clock. However, the initial setting value is preferably set to a smaller value of the common factor value of the clock output from the RTC oscillator 210 and the system clock oscillator 220 for the accuracy of the calculation result.

그리고 분주기(231)의 출력단 중 분주클럭의 출력단에는 분주클럭의 주파수가 RTC클럭의 주파수 내에서 반복되는 알티시(RTC)반복회수을 계수(카운팅 : counting)하는 제 1 카운터(232)와, 분주클럭과 시스템클럭을 입력 받아서 시스템클럭의 주파수당 분주클럭의 주파수 반복 회수를 계수(카운팅 : counting)하는 제 2 카운터(counter)(233)가 구비되며, 상기 시간클럭의 출력단에는 현재시각을 연산하여 출력하며 제 1 카운터(232)와 제 2 카운터(233)로 각각의 RTC클럭 주파수 및 시스템클럭주파수에서 분주클럭의 주파수 반복회수의 계수를 위한 오차검출이벤트를 출력하는 시간연산기(234)가 구비된다.A first counter 232 that counts (counting) an ALTC repetition number in which the frequency of the frequency division clock is repeated within the frequency of the RTC clock is divided into an output terminal of the frequency division clock among the output terminals of the frequency divider 231. A second counter 233 is provided to receive the clock and the system clock and count the frequency repetition frequency of the divided clock per frequency of the system clock, and the output of the time clock calculates the current time. And a time calculator 234 for outputting an error detection event for counting the frequency repetition frequency of the divided clocks at the RTC clock frequency and the system clock frequency to the first counter 232 and the second counter 233. .

상기 제 1 카운터(232)와 제 2 카운터(233)는 시간연산기(234)에서 출력되는 오차검출이벤트에 의해 구동된다. 그리고 제 1 카운터(233)는 분주기(232)에서 출력된 분주클럭의 주파수가 RTC클럭의 주파수내에서 몇회 반복되는 지를 계수한 RTC클럭반복회수을 출력하며, 제 2 카운터(234)는 시스템클럭의 주파수내에서의 분주클럭의 주파수가 몇 회 반복되는지를 계수한 시스템클럭반복회수을 출력한다.The first counter 232 and the second counter 233 are driven by an error detection event output from the time calculator 234. The first counter 233 outputs an RTC clock repeat count that counts how many times the frequency of the divided clock output from the frequency divider 232 is repeated within the frequency of the RTC clock, and the second counter 234 is a system clock. The system clock repeat count that counts how many times the frequency of the divided clock within the frequency is repeated is output.

상기 제 1 카운터(232)와 제 2 카운터(233)의 출력단에는 제 1 카운터(232)에서 출력되는 RTC클럭반복회수와 제 2 카운터(233)에서 출력되는 시스템클럭반복회수을 입력받고, 메모리(237)에 기 저장된 보정기준값을 읽어 들인 후 RTC클럭반복회수와 시스템클럭반복회수 및 보정기준값을 비교하여 현재 시점에서 출력되는 RTC클럭의 오차를 오차정보로 연산하여 출력하는 비교기(235)가 구비된다.The RTC clock repeat counts output from the first counter 232 and the system clock repeat counts output from the second counter 233 are input to the output terminals of the first counter 232 and the second counter 233, and the memory 237 is input. After reading the pre-stored correction reference value) is compared with the RTC clock repeat count and the system clock repeat count and the correction reference value is provided with a comparator 235 for calculating the error of the RTC clock output at the present time as the error information.

여기서, 보정기준값은 RTC클럭반복회수와 시스템클럭반복회수와 비교되어 RTC클럭의 오차를 검출하는 값을 말한다. 예를 들어 시스템 클럭이 TCXO의 19.2Mhz, RTC클럭을 32.768KHz, 분주클럭을 RTC클럭과 시스템클럭의 공약수 중 하나인 2.048KHz로 설정한다면, 분주클럭은 32.768 KHz의 RTC클럭내에서 16회 반복되며, 19.2MHz의 시스템클럭내에서는 93750회를 반복하게 된다. 이 때, 분주클럭의 주파수인 2.048Khz가 초기설정값이 되며, 분주클럭의 RTC클럭의 주파수 내에서의 반복회수 16회 및 시스템클럭의 주파수 내에서의 반복회수 93750회가 보정기준값이 된다. Here, the correction reference value refers to a value that detects an error of the RTC clock in comparison with the RTC clock repeat count and the system clock repeat count. For example, if the system clock sets the TCXO's 19.2Mhz, the RTC clock is 32.768KHz, and the divider clock is set to 2.048KHz, which is one of the common factors of RTC clock and system clock, the divide clock is repeated 16 times within 32.768 KHz RTC clock. In a 19.2 MHz system clock, 93750 cycles are repeated. At this time, the frequency of the frequency divider clock is 2.048 kHz, and the initial setting value is 16. The number of repetitions within the frequency of the RTC clock of the frequency divider clock and 93750 times of frequency within the frequency of the system clock are the correction reference values.

상기 비교기는 시스템클럭반복회수와 RTC클럭반복회수의 비와 보정기준값의 비를 이용하여 RTC 클럭의 오차값을 생성한다. 즉, 비교기는 분주클럭을 이용하여 RTC클럭의 시스템클럭에 대하여 이탈한 정도의 값을 일정한 값으로 환산하여 출력하게 된다.The comparator generates an error value of the RTC clock by using the ratio of the system clock repeat count and the RTC clock repeat count and the correction reference value. That is, the comparator converts the value of the degree of deviation to the system clock of the RTC clock into a constant value by using the divided clock.

상기 비교기(235)의 출력단에는 비교기(234)에서 출력된 RTC클럭의 오차값을 입력받고, 하기에 설명될 메모리(237)에 액세스 가능하게 구성되어 메모리에 저장된 RTC클럭의 누적오차값을 읽어 들인 후 오차값을 누적오차값에 합산하여 새로운 누적오차값을 산출하여 메모리(237)에 저장하는 가산기(235)가 구비된다. 누적오차값이라 함은 주기적으로 비교기(235)에서 검출된 RTC클럭의 오차값의 합을 말한다.The output terminal of the comparator 235 receives an error value of the RTC clock output from the comparator 234, and is configured to be accessible to the memory 237 to be described below to read the accumulated error value of the RTC clock stored in the memory. An adder 235 for calculating a new cumulative error value by adding the error value to the cumulative error value and storing it in the memory 237 is provided. The cumulative error value refers to the sum of error values of the RTC clocks detected by the comparator 235 periodically.

그리고 상기 시간연산기(234)와 비교기(235)와 가산기(236) 및 하기에 설명될 오차시간계산기(238)에는 액세스(access) 가능하도록 메모리(237)가 접속된다. 상기 메모리(233)는 초기에 저장되는 기준시간정보, 누적오차값, 보정기준값, RTC클럭의 오차값에 대응되는 보정시간의 계산을 위한 RTC발진부(210)의 RTC클럭의 주파수정보 및 시스템클럭의 주파수정보를 저장한다.A memory 237 is connected to the time calculator 234, the comparator 235, the adder 236, and the error time calculator 238 to be described below. The memory 233 stores the frequency information of the RTC clock of the RTC oscillator 210 and the system clock for calculating the correction time corresponding to the reference time information, the accumulated error value, the correction reference value, and the error value of the RTC clock. Save frequency information.

상기 오차시간계산기(238)는 시간연산기(237)로부터 보정이벤트신호를 받아서 구동되며, 구동된 후에는 메모리(237)에 액세스하여 누적오차값을 읽어 들인 후 RTC클럭의 주파수를 이용하여 누적오차값에 대응되는 시간(보정시간)을 연산하여 현재시각의 보정을 위하여 시간연산기(237)로 출력하도록 구비된다.The error time calculator 238 is driven by receiving a correction event signal from the time calculator 237. After driving, the error time calculator 238 accesses the memory 237 to read the accumulated error value, and then uses the frequency of the RTC clock to accumulate the error value. It is provided to calculate a time (correction time) corresponding to the output to the time calculator 237 for the correction of the current time.

상술한 구성을 가지는 도 2의 알티씨장치(RTC)장치(100)는 시스템클럭발진부(220)에서 출력되는 정밀도가 높은 시스템클럭을 이용하여, RTC발진부(210)에서 출력되는 RTC클럭에 대한 오차를 검출하고, 검출된 오차를 시간 정보로 환산하여 보정시간을 생성한 후 보정시간을 이용하여 시간연산기(237)에서 출력되는 현재시각 을 보정한다.The RTC device 100 of FIG. 2 having the above-described configuration uses an accurate system clock output from the system clock oscillator 220 and an error of the RTC clock output from the RTC oscillator 210. Detect the error, convert the detected error into time information, generate a correction time, and correct the current time output from the time calculator 237 using the correction time.

도 3은 본원 발명의 알티씨 장치의 현재시각 보정 방법의 일 실시예를 나타냄과 동시에 상술한 도 2의 알티씨 장치에서의 현재시각 보정을 수행하기 위한 동작과정을 나타내는 순서도 이다.3 is a flowchart illustrating an operation process for performing a current time correction in the above-described ALTC device of FIG. 2 while showing an embodiment of a current time correction method of the ALTC device of the present invention.

도 2 및 도 3을 참조하여 본원 발명의 일 실시예에 따르는 알티씨장치의 현재시각 보정을 위한 처리과정을 설명하면 다음과 같다.Referring to Figures 2 and 3 will be described in the process for the current time correction of the ALTC apparatus according to an embodiment of the present invention.

먼저, 상술한 도 2의 알티씨 장치(200)의 설명에서와 같이 메모리(237)에는 분주기(231)에서 출력되는 분주주파수를 결정하는 초기설정값과, 초기설정값을 가지는 분주클럭의 주파수가 RTC클럭 및 시스템클럭의 주파수 내에서 몇번이 반복되는지를 나타내는 보정기준값, RTC클럭의 주파수, 시스템클럭의 주파수, 누적오차값, RTC구현을 위하여 초기에 설정되는 기준시간 정보 등의 정보가 저장되는 것을 가정한다.First, as described in the ALTC apparatus 200 of FIG. 2 described above, the memory 237 has an initial setting value for determining a frequency division frequency output from the frequency divider 231 and a frequency of a frequency division clock having an initial setting value. Information is stored, such as a reference value indicating how many times are repeated within the frequency of the RTC clock and the system clock, the frequency of the RTC clock, the frequency of the system clock, the cumulative error value, and the reference time information initially set for the RTC implementation. Assume that

상술한 조건하에서, RTC발진부(210)가 RTC클럭을 출력하면 분주기(231)는 RTC클럭을 분주하여 현재시각의 출력을 위해 필요한 주파수 신호를 가지는 시간클럭을 생성하여 시간연산기(237)로 출력하고, 알티씨 장치(200)를 구비한 시스템에의 제어부로부터 입력되는 초기설정값에 따라 RTC클럭의 오차에 따라 발생되는 현재 출력시간의 오차를 보정하기 위한 오차정보를 검출하는 기준이 되는 분주클럭을 생성하여 제 1 카운터(232) 및 제 2 카운터(233)로 출력한다. 그러면 시간연산기(234)는 메모리(237)에 저장된 기준시간 정보를 기초로 하여 분주기에서 출력된 클럭에 따라 현재시각을 카운팅 함으로써 현재시각 정보를 생성하여 표시부를 통해 출력한다(S1).Under the above-described conditions, when the RTC oscillator 210 outputs the RTC clock, the divider 231 divides the RTC clock to generate a time clock having a frequency signal necessary for output of the current time, and outputs it to the time calculator 237. And a frequency division clock that serves as a reference for detecting error information for correcting an error of a current output time generated according to an error of the RTC clock according to an initial set value inputted from a control unit to a system having an RTC apparatus 200. Generates and outputs the first counter 232 and the second counter 233. Then, the time calculator 234 generates current time information by counting the current time according to the clock output from the divider based on the reference time information stored in the memory 237, and outputs the current time information through the display unit (S1).

S1과정 이후 시간연산기(237)는 오차정보 검출을 위해 기 설정된 주기가 도래하였는지를 판단한다(S2).After the process S1, the time operator 237 determines whether a predetermined period for detecting error information has arrived (S2).

S2과정의 판단 결과 오차정보 검출을 위한 주기가 도래하지 않은 경우에는 S2과정을 반복 수행한다. 이와달리, S2과정의 판단 결과 오차정보 검출을 위한 시간 주기가 도래한 경우에는 시간연산기(237)가 제 1 카운터(232) 및 제 2 카운터(233)로 오차검출이벤트를 출력하여 제 1 카운터(232) 및 제 2 카운터(233)를 구동시킨다(S3).As a result of the determination of step S2, if the period for error information detection does not arrive, step S2 is repeated. On the contrary, when the time period for detecting the error information arrives as a result of the determination in S2, the time calculator 237 outputs an error detection event to the first counter 232 and the second counter 233 to display the first counter ( 232 and the second counter 233 are driven (S3).

S3과정에 의해 시간연산기(237)로부터 RTC발진부(210)의 클럭에서 발생되는 오차정보를 검출하기 위하여 카운터를 구동시키는 오차검출이벤트(error detect event) 신호를 수신한 제 1 카운터(232)는 분주클럭이 RTC클럭의 주파수 내에서 반복되는 RTC클럭반복회수을 계수하여 출력하고, 제 2 카운터(233)는 분주클럭이 시스템클럭의 주파수 값내에서 반복되는 시스템클럭반복회수을 계수하여 비교기(235)로 출력한다(S4).The first counter 232 receives an error detect event signal that drives the counter to detect error information generated from the clock of the RTC oscillator 210 from the time operator 237 by S3. The clock counts and outputs the number of RTC clock repetitions repeated within the frequency of the RTC clock, and the second counter 233 counts and outputs the system clock repetition times repeated within the frequency value of the system clock to the comparator 235. (S4).

S4과정에 의해 RTC클럭반복회수와 시스템클럭반복회수을 입력 받은 비교기(235)는 시스템클럭반복회수와 RTC클럭반복회수를 표준시의 상기 시스템클럭과 상기 알티씨클럭의 주파수 내에서의 상기 분주클럭의 반복회수를 나타내는 오차보정값과 비교하여 그 편차를 나타내는 값을 상기 시스템클럭에 대한 상기 알티씨클럭의 오차값으로 하여 가산기(236)로 출력한다(S5).The comparator 235 receiving the RTC clock repetition number and the system clock repetition number by the process S4 repeats the system clock repetition number and the RTC clock repetition number in the frequency of the system clock and the ALC clock in standard time. The value indicating the deviation is compared with the error correction value indicating the number of times and is output to the adder 236 as the error value of the RTC clock with respect to the system clock (S5).

일 예로 상술한 도 2의 설명에서와 같이 시스템 클럭이 TCXO의 19.2Mhz, RTC 클럭을 32.768KHz, 분주클럭을 RTC클럭과 시스템클럭의 공약수 중 하나인 2.048KHz로 설정된 경우, 분주클럭이 32.768 KHz의 RTC클럭내에서 16회 반복되는 동안, 19.2MHz의 시스템클럭내에서는 93751 회를 반복하게 된다면, 시간은 5.2083E-9 의 시간 오차가 발생하게 되며, 이 때 오차값은 +1이 된다.As an example, when the system clock is set to 19.2Mhz of TCXO, 32.768KHz of RTC clock, and 2.048KHz of one of the common factors of RTC clock and system clock, as shown in FIG. 2, the division clock is 32.768KHz. While repeating 16 times in the RTC clock and 93751 times in the 19.2 MHz system clock, the time will be 5.2083E-9 and the error will be +1.

S5과정에 의해 비교기(235)로부터 RTC클럭의 오차값을 입력받은 가산기는 메모리(237)에 액세스하여 누적오차값을 읽어 들인 후 누적오차값에 오차값을 합산하여 새로운 누적오차값을 생성한 후 메모리(237)에 저장함으로써 누적오차값을 갱신한다(S6).After adding the error value of the RTC clock from the comparator 235 by the S5 process, the adder accesses the memory 237 to read the cumulative error value, adds the error value to the cumulative error value, and then generates a new cumulative error value. The cumulative error value is updated by storing in the memory 237 (S6).

S6과정이 진행되는 동안 시간연산기(234)는 현재시각을 출력함과 동시에 현재시각 정보를 이용하여 현재시각에 대한 보정을 위해 설정된 주기반복되는 현재시각보정시간이 도래하였는지를 판단한다(S7).While the process S6 is in progress, the time calculator 234 outputs the current time and at the same time determines whether or not a periodic repeated current time correction time that has been set for correction of the current time has arrived (S7).

S7과정의 판단결과 현재시각보정시간이 도래하지 않은 경우 S2과정을 복귀하여 처리과정을 반복수행하고, 현재시각보정시간이 도래한 경우에는 오차시간계산기(238)로 보정이벤트를 출력한다. 상술한 보정이벤트는 시간연산기가 현재시각의 보정을 위하여 오차시간연산기(238)를 구동하기 위한 인터럽트 신호를 말한다(S8).As a result of the determination of step S7, when the current time correction time does not arrive, the process returns to step S2 to repeat the process, and when the current time correction time arrives, a correction event is output to the error time calculator 238. The above-described correction event refers to an interrupt signal for driving the error time calculator 238 to correct the current time by the time calculator (S8).

S8과정에 의해 보정이벤트를 수신한 오차시간계산기(238)는 메모리(237)에 액세스하여 누적오차값, RTC클럭 주파수 값, 시스템클럭주파수값, 보정기준값을 읽어 들인 후 누적오차값에 대응되는 시간정보를 연산한다. 즉, 누적오차값에 의해 시스템클럭에 대한 RTC클럭의 지연 또는 빨라진 시간 간격을 연산하여 출력한 후 이를 시간보정정보로하여 시간연산기(234)로 출력한다. 그리고 메모리(237)의 누적 오차값을 0으로 하여 누적오차값을 초기화한다(S9).The error time calculator 238 receiving the correction event by the process S8 accesses the memory 237, reads the accumulated error value, the RTC clock frequency value, the system clock frequency value, and the correction reference value, and then corresponds to the accumulated error value. Compute the information. That is, the delayed or accelerated time interval of the RTC clock with respect to the system clock is calculated based on the cumulative error value, and then outputted to the time calculator 234 as time correction information. The cumulative error value is initialized by setting the cumulative error value of the memory 237 to 0 (S9).

S9과정에 의해 시간보정정보를 수신한 시간연산기(234)는 현재시각 값을 상기 시간보정정보에 따라 지연시키거나, 빠르게 하여 현재시각을 보정한 후 생성되는 현재시각 정보를 표시부로 출력한다(S10).The time calculator 234 receiving the time correction information by the process S9 outputs the current time information generated after correcting the current time by delaying or speeding up the current time value according to the time correction information (S10). ).

상술한 처리과정에서 상기 S2 내지 S10과정은 주기적으로 계속 반복되며, 이에 따라 주기적으로 현재시각에 대한 보정을 수행할 수 있게 된다.In the above-described processing, the processes S2 to S10 are repeatedly repeated periodically, thereby periodically correcting the current time.

상술한 본원 발명의 실시예에서 오차값 검출을 위한 오차정보검출주기는 1분 단위로, 그리고, 현재시각보정 주기는 24시간 등으로 설정할 수 있으며 이에 한정되는 것은 아니다.In the above-described embodiment of the present invention, the error information detection period for detecting an error value may be set in units of 1 minute, and the current time correction period may be set to 24 hours, but is not limited thereto.

상술한 바와 같은 처리과정에 의하여 본원 발명은 고정도의 시스템클럭을 이용하여 RTC의 시간 정보를 주기적을 보정할 수 있게 된다. By the above-described process, the present invention can periodically correct the time information of the RTC using a high-precision system clock.

상술한 본원 발명은 고정도의 시간 정보를 출력할 것이 기대되는 전자장치에서 전자장치의 내부에 탑재되는 고성능의 TCXO 등의 시스템클럭발진소자를 이용하여 자체 RTC클럭의 오차를 계산하고 보정하도록 함으로써 외부에서 기준 시간 정보의 수신 없이도 정확도가 높은 현재시각(실시간)을 출력할 수 있도록 하는 효과를 제공한다.In the present invention described above, an electronic device that is expected to output high-precision time information can be calculated and corrected to correct an error of its own RTC clock using a system clock oscillation device such as TCXO of high performance mounted inside the electronic device. The present invention provides an effect of outputting a high accuracy current time (real time) without receiving reference time information.

또한, 상술한 본원 발명은 정확도가 높은 실시간 정보의 출력이 필요한 전자기기에서 고가의 RTC용 크리스탈을 사용하지 않고도 시스템클럭의 출력을 위해 일반적으로 구비되는 고정밀도 및 온도 보상 기능을 가지는 TCXO 등의 시스템클럭발 진소자를 이용하여 정확한 현재시각 정보의 출력을 구현할 수 있도록 함으로써 전자기기의 생산비용을 현저히 줄일 수 있도록 하는 효과를 제공한다.In addition, the present invention described above is a system such as TCXO having a high precision and temperature compensation function that is generally provided for the output of the system clock without the use of expensive RTC crystals in electronic devices that require high-precision real-time information output By using the clock oscillator, it is possible to realize the accurate output of the current time information, thereby significantly reducing the production cost of the electronic device.

Claims (8)

알티씨(RTC)클럭을 출력하는 알티씨발진부와;An RTC oscillation unit for outputting an RTC clock; 상기 알티씨발진부의 오차 보정 및 시스템의 구동을 위한 시스템클럭을 제공하는 시스템클럭발진부와;A system clock oscillation unit for providing a system clock for error correction and driving of the system of the ALTC oscillation unit; 상기 알티씨발진부의 클럭 신호를 입력 받아서 현재시각을 연산하여 출력하며, 주기적으로 상기 시스템클럭에 대한 상기 알티씨클럭의 오차값 및 누적오차값을 가지는 오차정보를 검출한 후 상기 오차정보를 이용하여 현재시각을 보정하여 출력하는 알티씨시간출력부를 포함하여 구성되는 것을 특징으로 하는 알티씨 장치.After receiving the clock signal of the RTC oscillator, it calculates and outputs a current time, periodically detects error information having an error value and a cumulative error value of the RTC clock with respect to the system clock, An RTC apparatus comprising: an RTC time output unit configured to correct and output a current time. 제 1 항에 있어서, 상기 알티씨시간출력부는,The method of claim 1, wherein the RTC time output unit, 상기 알티씨클럭을 입력 받은 후 상기 알티씨클럭에 대한 분주클럭의 주파수를 나타내는 초기설정값에 따라 분주클럭을 생성하여 출력하는 분주기와;A divider for generating and outputting a divided clock according to an initial set value indicating a frequency of the divided clock for the RTC clock after receiving the RTC clock; 상기 분주클럭과 상기 알티씨클럭을 입력받은 후 상기 알티씨클럭 내에서의 상기 분주클럭의 반복회수를 카운트하여 알티씨클럭반복회수를 출력하는 제1 카운터와;A first counter for outputting an ATC clock repetition count by counting the repetition number of the division clocks in the ATC clock after receiving the division clock and the ATC clock; 상기 분주클럭과 상기 시스템클럭을 입력받은 후 상기 시스템클럭 내에서의 상기 분주클럭의 반복회수를 카운트하여 시스템클럭반복회수를 출력하는 제2 카운터와;A second counter for outputting a system clock repetition number by counting the number of repetitions of the frequency division clock in the system clock after receiving the division clock and the system clock; 상기 알티씨클럭반복회수와 상기 시스템클럭반복회수를 표준시의 상기 시스 템클럭과 상기 알티씨클럭의 주파수 내에서의 상기 분주클럭의 반복회수를 나타내는 오차보정값과의 차이값을 검출하여 상기 알티씨클럭의 오차값으로 출력하는 비교기와;The RTC clock repeat count and the system clock repeat count are detected by a difference value between the system clock in standard time and an error correction value representing the repeat count of the frequency division clock within the frequency of the ALTC clock. A comparator for outputting an error value of a clock; 상기 오차값을 메모리에 저장된 누적오차값에 합산하여 누적오차값을 갱신하는 가산기와;An adder for adding the error value to a cumulative error value stored in a memory to update a cumulative error value; 상기 누적오차값, 알티씨클럭 주파수, 시스템클럭 주파수, 및 오차보정값을 저장하는 메모리와;A memory for storing the cumulative error value, an RTC clock frequency, a system clock frequency, and an error correction value; 상기 메모리에 저장된 누적오차값에 대응되는 오차시간을 출력하는 오차시간계산기와;An error time calculator for outputting an error time corresponding to an accumulated error value stored in the memory; 상기 오차시간을 이용하여 출력되는 현재시각을 보정하여 출력하는 시간연산기를 포함하여 구성되는 것을 특징으로 하는 알티씨 장치.And a time calculator for correcting and outputting a current time output using the error time. 제 1 항 또는 제 2 항 중 어느 한 항에 있어서, 상기 분주클럭은,The method of claim 1 or 2, wherein the dispensing clock, 상기 알티씨클럭의 주파수 값 또는 상기 알티씨클럭과 상기 시스템클럭 주파수의 공약수 중 어느 하나의 값으로 설정되는 것을 특징으로 하는 알티씨 장치.The RTC device is set to any one of a frequency value of the RTC clock or a common factor of the RTC clock and the system clock frequency. 알티씨발진부와, 시스템클럭발진부와 알티씨시간출력부를 구비한 알티씨 장치에 있어서,In the RTC apparatus having an RTC oscillation unit, a system clock oscillation unit and an RTC time output unit, 상기 시스템클럭발진부에서 출력되는 시스템클럭을 기준으로 한 상기 알티씨발진부의 알티씨클럭의 주파수 편이를 검출하기 위한 초기설정값을 설정하는 초기 설정값설정과정과;An initial setting value setting step of setting an initial setting value for detecting a frequency shift of an AL clock in the ALTC oscillator on the basis of the system clock output from the system clock oscillator; 상기 초기설정값에 따라 상기 알티씨클럭의 분주클럭을 생성하는 분주클럭생성과정과;A division clock generation process of generating a division clock of the RTC clock according to the initial setting value; 상기 분주클럭생성과정 이후 주기적으로 상기 시스템클럭과 상기 알티씨클럭 내에서의 분주클럭의 반복회수를 검출한 후 표준시의 상기 시스템클럭과 상기 알티씨클럭의 주파수 내에서의 상기 분주클럭의 반복회수를 나타내는 오차보정값과의 비교하여 상기 시스템클럭에 대한 상기 알티씨클럭의 오차값과 누적오차값을 가지는 오차정보를 검출하는 오차연산과정과;After the frequency of generating the clock, periodically repeating the frequency of the system clock and the clock in the ALTC clock after detecting the frequency of the system clock and the clock of the ALTC clock in the standard clock An error operation process of detecting error information having an error value and a cumulative error value of the RTC clock with respect to the system clock in comparison with the error correction value indicating; 상기 오차연산과정 이후 현재시각 보정주기마다 상기 오차정보를 이용하여 현재출력시간을 보정하여 출력하는 현재시각보정과정으로 이루어지는 것을 특징으로 하는 알티씨 장치의 현재시각 보정 방법.And a current time correction process of correcting and outputting a current output time by using the error information for each current time correction period after the error calculation process. 제 4 항에 있어서, 상기 오차연산과정은,The method of claim 4, wherein the error calculation process is performed. 상기 알티씨클럭에 대한 일 오차검출주기 동안 상기 시스템클럭 내에서의 상기 분주클럭의 반복회수를 나타내는 시스템클럭반복회수와 상기 알티씨클럭 내에서의 상기 분주클럭의 반복회수를 나타내는 알티씨클럭반복회수를 검출하는 분주클럭반복회수검출과정과;A system clock repetition number representing a repetition frequency of the dispensing clock in the system clock and an ATC clock repetition number indicating a repetition frequency of the dispensing clock in the AL clock. A division clock repeat recovery detection step of detecting a; 상기 분주클럭반복회수검출과정에서 검출된 상기 시스템클럭반복회수와 상기 알티씨클럭반복회수를 표준시의 상기 시스템클럭과 상기 오차보정값과의 차이를 검출하여 상기 시스템클럭에 대한 상기 알티씨클럭의 오차값으로 출력하는 오차값검 출과정과;The difference between the system clock repeat count detected in the divided clock repeat count detection process and the ALTC clock repeat count between the system clock and the error correction value in standard time is detected so that the error of the AL clock falls on the system clock. An error value detection process of outputting a value; 상기 오차값을 기 저장된 누적오차값에 합산하여 누적오차값을 갱신하는 누적오차값검출과정을 포함하여 이루어지는 것을 특징으로 하는 알티씨 장치의 현재시각 보정 방법.And a cumulative error value detecting step of updating the cumulative error value by adding the error value to a previously stored cumulative error value. 제 4 항에 있어서, 상기 현재시각보정과정은,The method of claim 4, wherein the current time correction process, 상기 현재시각 보정 주기마다 상기 누적오차값에 대응되는 오차시간을 검출하는 오차시간검출과정과;An error time detection process of detecting an error time corresponding to the cumulative error value at each current time correction period; 상기 오차시간을 적용하여 현재시각을 보정하여 출력하는 출력시간보정과정으로 이루어지는 것을 특징으로 하는 알티씨 장치의 현재시각 보정 방법.And a current time correction process for correcting and outputting a current time by applying the error time. 제 6 항에 있어서, 상기 현재시각보정과정은,The method of claim 6, wherein the current time correction process, 상기 오차시간검출과정 이후, 상기 누적오차값을 0으로 설정하는 누적오차값초기화과정을 더 포함하여 이루어지는 것을 특징으로 하는 알티씨 장치의 현재시각 보정 방법.And after the error time detection process, further comprising a process of initializing a cumulative error value for setting the cumulative error value to zero. 제 4 항 내지 제 6 항 중 어느 한 항에 있어서, 상기 분주클럭의 주파수는,The frequency of the frequency divider clock according to any one of claims 4 to 6, 상기 알티씨클럭의 주파수 값 또는 상기 알티씨클럭과 상기 시스템클럭 주파수의 공약수 중 어느 하나의 값으로 설정되는 것을 특징으로 하는 알티씨 장치의 현재시각 보정 방법.And a frequency value of the RTC clock or a common divisor of the RTC clock and the system clock frequency.
KR1020050071086A 2005-08-03 2005-08-03 Real time clock apparatus and the real time compensating method thereof KR100687230B1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
KR1020050071086A KR100687230B1 (en) 2005-08-03 2005-08-03 Real time clock apparatus and the real time compensating method thereof
CNA2006101034956A CN1909375A (en) 2005-08-03 2006-07-25 Real-time clock device and current time compensating method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020050071086A KR100687230B1 (en) 2005-08-03 2005-08-03 Real time clock apparatus and the real time compensating method thereof

Publications (2)

Publication Number Publication Date
KR20070016434A true KR20070016434A (en) 2007-02-08
KR100687230B1 KR100687230B1 (en) 2007-02-26

Family

ID=37700383

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020050071086A KR100687230B1 (en) 2005-08-03 2005-08-03 Real time clock apparatus and the real time compensating method thereof

Country Status (2)

Country Link
KR (1) KR100687230B1 (en)
CN (1) CN1909375A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100948179B1 (en) * 2008-01-24 2010-03-16 주식회사 유니크 Electron clock for vehicle enabling self correction and method of correcting the same
KR100948178B1 (en) * 2008-01-24 2010-03-16 주식회사 유니크 Electron clock for vehicle enabling self correction and method of correcting the same
US8797083B2 (en) 2009-03-03 2014-08-05 Samsung Electronics Co., Ltd. Methods of operating timers to inhibit timing error accumulation
KR20190019258A (en) * 2017-08-17 2019-02-27 (주)아이제이일렉트론 Time correction apparatus and method
KR20200038761A (en) * 2018-10-04 2020-04-14 (주)에이피에스아이씨티 The method for correcting a real-time clock(rtc) of an otp generator, the system, otp generator and otp error rate measurement module thereof
CN112462846A (en) * 2020-12-14 2021-03-09 深圳市晨北科技有限公司 Clock correction method, clock correction device, computer equipment and storage medium

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101291143B (en) * 2007-04-19 2010-05-26 联詠科技股份有限公司 Real-time clock integrated circuit and electronic apparatus thereof
CN101645718B (en) * 2008-08-07 2013-08-07 中兴通讯股份有限公司 Method and device for holding clock
CN102193496B (en) * 2010-03-08 2016-01-13 技嘉科技股份有限公司 For detecting method and the calculator system of a RTC oscillator
WO2011118820A1 (en) 2010-03-26 2011-09-29 シチズンホールディングス株式会社 Atomic clock
CN102176112B (en) * 2010-11-29 2013-04-24 江苏林洋电子股份有限公司 Method for achieving accurate clock timing by arranging RTC (real time clock) in MCU (micro control unit)
CN102621873A (en) * 2011-01-26 2012-08-01 富泰华工业(深圳)有限公司 Electronic device with clock correction function and clock correction method thereof
JP5886015B2 (en) * 2011-12-01 2016-03-16 ラピスセミコンダクタ株式会社 Time measuring device, microcontroller, program, and time measuring method
KR101942719B1 (en) * 2012-08-14 2019-04-17 삼성전기 주식회사 Real Time Clock Apparatus
CN104714404A (en) * 2014-12-30 2015-06-17 华立仪表集团股份有限公司 Method for improving clock precision in electric energy meter
CN104868847A (en) * 2015-04-09 2015-08-26 中宇嘉华(北京)科技有限公司 High-performance low-power-consumption real time clock
CN108020808B (en) * 2017-11-21 2020-02-04 浙江晨泰科技股份有限公司 High-reliability high-precision electric energy meter real-time clock design method
CN108733135B (en) * 2018-05-17 2020-11-27 佛山华芯微特科技有限公司 Extremely-low-power-consumption real-time clock circuit and control method
KR102524029B1 (en) 2018-08-09 2023-04-20 삼성전자주식회사 Electronic device including display driver circuit displaying compensated clock information based on thermal information
CN111830892B (en) * 2019-04-22 2022-09-23 新疆金风科技股份有限公司 Wind generating set statistical time calibration method and device and storage medium
CN110943865A (en) * 2019-12-02 2020-03-31 国网智能科技股份有限公司 Method and device for diagnosing equipment fault time and related equipment
CN114428450B (en) * 2022-02-10 2024-01-30 福州三立电子有限公司 Electronic clock high-precision travel time error fine adjustment method
CN115022204B (en) * 2022-05-26 2023-12-05 阿里巴巴(中国)有限公司 RTC transmission delay detection method, device and equipment

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100948179B1 (en) * 2008-01-24 2010-03-16 주식회사 유니크 Electron clock for vehicle enabling self correction and method of correcting the same
KR100948178B1 (en) * 2008-01-24 2010-03-16 주식회사 유니크 Electron clock for vehicle enabling self correction and method of correcting the same
US8797083B2 (en) 2009-03-03 2014-08-05 Samsung Electronics Co., Ltd. Methods of operating timers to inhibit timing error accumulation
KR20190019258A (en) * 2017-08-17 2019-02-27 (주)아이제이일렉트론 Time correction apparatus and method
KR20200038761A (en) * 2018-10-04 2020-04-14 (주)에이피에스아이씨티 The method for correcting a real-time clock(rtc) of an otp generator, the system, otp generator and otp error rate measurement module thereof
CN112462846A (en) * 2020-12-14 2021-03-09 深圳市晨北科技有限公司 Clock correction method, clock correction device, computer equipment and storage medium

Also Published As

Publication number Publication date
KR100687230B1 (en) 2007-02-26
CN1909375A (en) 2007-02-07

Similar Documents

Publication Publication Date Title
KR100687230B1 (en) Real time clock apparatus and the real time compensating method thereof
US7084810B2 (en) Portable terminal and GPS time keeping method
KR100396785B1 (en) Apparatus and method for compensating time error of gsm terminal
US7728684B2 (en) Crystal reference clock and radio localization receiver
JP2007078405A (en) Timing program of software timepiece
AU687177B2 (en) Time correction of an electronic clock
JP2012195932A (en) Oscillation device
US8659364B2 (en) Oscillator device with crystal resonators
US4708491A (en) Time of day clock
US8719614B2 (en) Apparatus and method for generating a timing signal
JP5114218B2 (en) Frequency correction circuit and clock device using the same
KR101942719B1 (en) Real Time Clock Apparatus
EP1371208B1 (en) Method of correcting a real-time clock of an electronic apparatus
JP2000315121A (en) Rtc circuit
US8896359B1 (en) Temperature compensated timing signal generator
KR20170093356A (en) Method for adjusting time information of real time clock device in programmable logic controller and the programmable logic controller
JP2003270369A (en) Time correction method and time correction device for real time clock
JPH0245837Y2 (en)
JP3990331B2 (en) Time correction control circuit, time correction control method, and time correction control program
JP2005156449A (en) Method and device for correcting time
JP2001217708A (en) Frequency oscillator
JP2023101481A (en) integrated circuit
JP2006053008A (en) Timepiece and timepiece error adjustment method
JPH11122103A (en) Frequency correcting circuit
JP2000284077A (en) Electronic apparatus and adjusting method for the electronic apparatus

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
LAPS Lapse due to unpaid annual fee