KR101917526B1 - Real time clock and method for input/output of time information using the same - Google Patents

Real time clock and method for input/output of time information using the same Download PDF

Info

Publication number
KR101917526B1
KR101917526B1 KR1020170092252A KR20170092252A KR101917526B1 KR 101917526 B1 KR101917526 B1 KR 101917526B1 KR 1020170092252 A KR1020170092252 A KR 1020170092252A KR 20170092252 A KR20170092252 A KR 20170092252A KR 101917526 B1 KR101917526 B1 KR 101917526B1
Authority
KR
South Korea
Prior art keywords
time information
input
time
external device
register
Prior art date
Application number
KR1020170092252A
Other languages
Korean (ko)
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 KR1020170092252A priority Critical patent/KR101917526B1/en
Application granted granted Critical
Publication of KR101917526B1 publication Critical patent/KR101917526B1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/04Generating or distributing clock signals or signals derived directly therefrom
    • G06F1/14Time supervision arrangements, e.g. real time clock
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/16Handling requests for interconnection or transfer for access to memory bus
    • G06F13/1668Details of memory controller
    • G06F13/1673Details of memory controller using buffers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0655Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
    • G06F3/0659Command handling arrangements, e.g. command buffers, queues, command scheduling

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Electric Clocks (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

Disclosed are a real time clock and a method for inputting and outputting time information using the same. According to the present invention, the real time clock comprises: a clock input part; a time information register counting a clock in the clock input part to generate and store time information in real time; and an interface part outputting the time information stored in the time information register to an external device or outputting or storing the time information to the external device by using a buffer when receiving the time information of the external device and storing the time information to the time information register. Therefore, the accuracy and reliability for the time information can be increased by copying the time information to a buffer to be transmitted to the external device or to receive the time information through the buffer so as to provide the time information to the external device without an error due to time delay or store the time information in the time information register.

Description

리얼 타임 클럭 및 이를 이용한 시간 정보 입출력 방법{REAL TIME CLOCK AND METHOD FOR INPUT/OUTPUT OF TIME INFORMATION USING THE SAME} BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a real-time clock and a time information input / output method using the real-

본 발명은 리얼 타임 클럭(Real Time Clock)에 관한 것으로, 상세하게는 시간 지연에 따른 오차 없이 시간 정보를 외부 장치로 제공하거나 시간 정보를 저장할 수 있는 리얼 타임 클럭 및 이를 이용한 시간 정보 입출력 방법에 관한 것이다. The present invention relates to a real-time clock, more particularly, to a real-time clock capable of providing time information to an external device or storing time information without an error according to a time delay, and a time information input / output method using the same will be.

리얼 타임 클럭, 즉 실시간 시계는 자동차 등의 전자 제어 시스템이 정확하게 현재 시각을 기억할 수 있도록, 일정한 시간 간격으로 펄스를 내보내는 장치이다. 이러한 리얼 타임 클럭은 전자 제어 시스템의 전원이 아닌 별도의 전원에 의해 동작되므로 전자 제어 시스템의 전원이 꺼지더라도 동작하며, 전자 제어 시스템에 시간뿐만 아니라 날짜도 제공한다. 통상적으로, 리얼 타임 클럭이 구비되는 전자 제어 시스템의 예로는 사용자에게 시간 및 날짜를 제공하는 컴퓨터, TV, 캠코더, 팩스, 및 자동차의 전자 제어 장치 등이 있다. A real time clock, that is, a real time clock, is a device that emits pulses at regular time intervals so that an electronic control system such as an automobile can accurately memorize the current time. Since the real-time clock is operated by a separate power source instead of the power source of the electronic control system, it operates even when the power of the electronic control system is turned off and provides the electronic control system with the time as well as the date. Typically, an example of an electronic control system having a real-time clock is a computer, a TV, a camcorder, a facsimile, and an electronic control device of a car that provide time and date to the user.

리얼 타임 클럭은 원 칩(1 chip) 형태로 구현될 수 있으며, SPI(Serial Programming Interface) 등의 인터페이스 통신을 통해서 외부 장치와 시간 정보를 주고받을 수 있다. 구체적으로, 리얼 타임 클럭은 외부 장치와 통신을 수행하여, 저장된 시간 정보를 외부 장치에 제공하거나, 외부 장치에 의해서 설정된 시간 정보를 저장할 수 있다. The real-time clock can be implemented as a single chip, and time information can be exchanged with external devices through interface communication such as SPI (Serial Programming Interface). Specifically, the real-time clock may communicate with the external device, provide the stored time information to the external device, or store the time information set by the external device.

종래 기술에 따른 리얼 타임 클럭은 이와 같은 시간 정보를 저장하기 위한 시간 정보 레지스터를 구비한다. 시간 정보 레지스터에는 각각의 시간 정보, 즉 초, 분, 시, 일, 주, 월, 년 단위의 시간 정보를 저장하기 위한 개별적인 저장 공간이 마련된다. The real-time clock according to the related art has a time information register for storing the time information. The time information register is provided with a separate storage space for storing time information of each time information, i.e., seconds, minutes, hours, days, weeks, months, and years.

그런데 종래 기술에 따르면, 리얼 타임 클럭이 시간 정보를 외부 장치에 제공할 때, 저장된 시간 정보를 읽고 이를 출력하는 과정에서 시간 지연이 발생할 수 있다. 반면, 리얼 타임 클럭이 외부 장치에 의해서 설정된 시간 정보를 저장하는 과정에서도 초, 분, 시, 일, 주, 월, 년 단위의 모든 시간 정보가 수신되기까지 시간 지연이 발생할 수 있다. 이와 같은 시간 지연으로 인해서, 리얼 타임 클럭에서 외부 장치에 제공되는 시간 정보, 또는 외부 장치에서 리얼 타임 클럭으로 입력되는 시간 정보에 오차가 발생할 수 있다. However, according to the related art, when the real-time clock provides the time information to the external device, a time delay may occur in the process of reading and outputting the stored time information. On the other hand, in the process of storing the time information set by the external device, the real time clock may have a delay time until all the time information in seconds, minutes, hours, days, weeks, months, and years is received. Due to the time delay, an error may occur in time information provided to an external device in a real time clock or in time information input in a real time clock in an external device.

구체적인 예를 들면, 외부 장치의 요청에 따라서 리얼 타임 클럭이 2016년 12월 31일 23시 59분 59초의 시간 정보를 제공할 경우, 리얼 타임 클럭에 의해서 '59초', '59분', '23시', '31일', '12월'의 시간 정보가 순차적으로 외부 장치에 제공되는 과정에서 1초의 시간 지연이 발생하면, 리얼 타임 클럭에 저장된 시간 정보는 2017년 1월 1일 0시 0분 0초로 바뀌게 된다. 하지만, 외부 장치에는 1초의 지연으로 인해, 시간 정보가 전송되는 과정에서 '2016년'이 아닌 '2017년'의 시간 정보가 전달될 수 있다. 결과적으로 외부 장치는 리얼 타임 클럭에서 2017년 12월 31일 23시 59분 59초의 잘못된 시간 정보를 전달받게 될 수 있다. For example, if a real-time clock provides time information of 23:59:59 on December 31, 2016 in response to a request from an external device, the real-time clock may be set to '59 seconds', '59 minutes' The time information stored in the real time clock is stored at 0:00 on January 1, 2017. In this case, 0 minutes 0 seconds. However, due to a delay of 1 second, time information of '2017' rather than '2016' may be transmitted in the process of transmitting the time information to the external device. As a result, external devices may receive incorrect time information on the real-time clock at 23:59:59 on December 31, 2017.

이러한 문제를 해결하기 위하여 리얼 타임 클럭이 외부 장치에 시간 정보를 제공하는 동안 시간 정보 레지스터의 시간 정보 갱신을 일시 정지시키는 방법이 제안된 바 있다. 그러나 시간 정보 레지스터의 시간 정보 갱신이 일시적으로 정지되는 횟수가 누적될 경우 리얼 타임 클럭이 제공하는 시간 정보가 점차적으로 부정확해지는 문제가 있었다. In order to solve this problem, a method has been proposed in which the time information update of the time information register is suspended while the real time clock provides the time information to the external device. However, when the number of times that the updating of the time information in the time information register is temporarily stopped is accumulated, the time information provided by the real time clock gradually becomes inaccurate.

본 발명은 상기와 같은 문제점을 해결하기 위한 것으로, 시간 정보를 버퍼에 복사하여 외부 장치로 전송하거나, 버퍼를 통해 시간 정보가 수신될 수 있도록 함으로써, 종래의 시간 정보 제공 또는 저장 과정에서 발생하는 시간 지연 발생을 방지할 수 있는 리얼 타임 클럭 및 이를 이용한 시간 정보 입출력 방법을 제공하는데 그 목적이 있다. SUMMARY OF THE INVENTION The present invention has been made in order to solve the above problems, and it is an object of the present invention to provide a time information generating apparatus and a time information generating method, in which time information is copied to a buffer and transmitted to an external apparatus, A real time clock capable of preventing a delay occurrence and a time information input / output method using the real time clock.

상기와 같은 목적을 달성하기 위한 본 발명의 실시 예에 따른 리얼 타임 클럭은 클럭 입력부, 클럭 입력부에서 입력되는 클럭을 카운트하여 실시간으로 시간 정보를 생성 및 저장하는 시간 정보 레지스터, 및 시간 정보 레지스터에 저장된 시간 정보를 외부 장치로 출력하거나, 외부 장치에서 시간 정보를 입력받아 시간 정보 레지스터에 저장할 때는 버퍼를 이용해서 외부 장치로 출력하거나 저장하는 인터페이스부를 포함한다. According to an aspect of the present invention, there is provided a real-time clock including a clock input unit, a time information register for generating and storing time information in real time by counting clocks input from a clock input unit, And an interface unit for outputting time information to an external device or receiving or storing time information in an external device and storing the time information in a time information register using an external device.

인터페이스부는 외부 장치에서 시간 정보가 수신되면 버퍼에 외부 장치의 시간 정보를 복사한 후, 복사된 외부 장치의 시간 정보를 시간 정보 레지스터에 입력하고, 시간 정보 레지스터의 시간 정보를 외부 장치로 전송할 때는 버퍼에 시간 정보 레지스터의 시간 정보를 복사한 후, 복사된 시간 정보 레지스터의 시간 정보를 외부 장치로 전송한다. When the time information is received from the external device, the interface unit copies the time information of the external device into the buffer, and then inputs the time information of the copied external device to the time information register. When the time information of the time information register is transmitted to the external device, And transfers the time information of the copied time information register to the external device.

인터페이스부는 외부 장치에서 시간 정보가 수신되면 미리 설정된 버퍼에 상기 수신된 시간 정보를 복사함과 동시에, 수신된 시간 정보가 버퍼에 저장되는 입력 시간을 카운트하고, 버퍼에 저장된 시간 정보에 카운터에서 카운트된 입력 시간을 반영한 후, 카운트된 입력 시간이 반영된 시간 정보가 시간 정보 레지스터에 입력되도록 한다. The interface unit copies the received time information to a preset buffer when the time information is received from the external device, counts the input time at which the received time information is stored in the buffer, counts the time information stored in the buffer, After reflecting the input time, the time information reflecting the counted input time is inputted to the time information register.

인터페이스부는 외부 장치에서 시간 정보가 수신되면 미리 설정된 버퍼에 상기 수신된 시간 정보를 복사하고, 미리 설정된 입력 시간 정보를 수신하여, 버퍼에 복사된 시간 정보에 미리 설정된 입력 시간 정보를 반영한 후, 미리 설정된 입력 시간 정보가 반영된 상태의 시간 정보가 시간 정보 레지스터에 입력되도록 한다. When the time information is received from the external device, the interface unit copies the received time information into a preset buffer, receives the preset input time information, reflects the preset input time information to the time information copied to the buffer, The time information of the state in which the input time information is reflected is inputted to the time information register.

본 발명의 리얼 타임 클럭은 적어도 하나의 타이밍 신호를 이용하여 외부 장치의 시간 정보가 버퍼에 저장되는 입력 시간을 카운트하는 카운터, 및 버퍼에 저장된 시간 정보에 카운터에서 카운트된 입력 시간을 합산한 후, 카운트된 입력 시간이 반영된 시간 정보를 시간 정보 레지스터에 저장하는 가산 레지스터를 포함한다. The real-time clock of the present invention includes a counter for counting an input time at which time information of an external device is stored in a buffer using at least one timing signal, and an input time counted by the counter to the time information stored in the buffer, And an addition register for storing the time information reflecting the counted input time in the time information register.

또한, 상기와 같은 목적을 달성하기 위한 본 발명의 실시 예에 따른 리얼 타임 클럭을 이용한 시간 정보 입출력 방법은 클럭 입력부에서 입력되는 클럭을 카운트하여 실시간으로 시간 정보를 생성하고 시간 정보 레지스터에 저장하는 단계, 및 시간 정보 레지스터에 저장된 시간 정보를 외부 장치로 출력하거나, 외부 장치에서 시간 정보를 입력받아 시간 정보 레지스터에 저장할 때, 버퍼를 이용해서 외부 장치로 출력하거나 저장하는 인터페이스 단계를 포함한다. According to another aspect of the present invention, there is provided a method for inputting and outputting time information using a real time clock, the method comprising: counting a clock input from a clock input unit to generate time information in real time and storing the time information in a time information register; And an interface step of outputting time information stored in the time information register to an external device or receiving or storing time information in an external device and storing the time information in a time information register using an external device.

인터페이스 단계는 외부 장치에서 시간 정보가 수신되면 미리 설정된 버퍼에 상기 수신된 시간 정보를 복사함과 동시에, 수신된 시간 정보가 버퍼에 저장되는 입력 시간을 카운트하는 단계, 및 시간 정보 레지스터의 시간 정보를 외부 장치로 전송할 때는 버퍼에 시간 정보 레지스터의 시간 정보를 복사한 후, 복사된 시간 정보 레지스터의 시간 정보를 외부 장치로 전송하는 단계를 포함한다. Wherein the interface step comprises the steps of: copying the received time information to a preset buffer when the time information is received from the external device, counting an input time at which the received time information is stored in the buffer, And transferring the time information of the time information register to the buffer and then transmitting the time information of the copied time information register to the external device.

인터페이스 단계는 외부 장치의 시간 정보가 수신되면 미리 설정된 버퍼에 수신된 시간 정보를 복사함과 동시에, 수신된 시간 정보가 버퍼에 저장되는 입력 시간을 카운트하는 단계, 및 버퍼에 저장된 시간 정보에 카운터에서 카운트된 입력 시간을 반영한 후, 카운트된 입력 시간이 반영된 시간 정보가 시간 정보 레지스터에 입력되도록 하는 단계를 포함한다. The interface step includes the steps of: copying the received time information to a preset buffer when the time information of the external device is received, counting an input time at which the received time information is stored in the buffer, After the counted input time is reflected, time information reflecting the counted input time is input to the time information register.

인터페이스 단계는 외부 장치에서 시간 정보가 수신되면 미리 설정된 버퍼에 수신된 시간 정보를 복사하는 동안 상수 입력부에 미리 설정된 입력 시간 정보를 수신하는 단계, 버퍼에 복사된 시간 정보에 미리 설정된 입력 시간 정보를 반영한 후, 미리 설정된 입력 시간 정보가 반영된 상태의 시간 정보가 시간 정보 레지스터에 입력되도록 하는 단계를 포함한다. The interface step includes receiving input time information preset in the constant input unit while copying the received time information into a preset buffer when the time information is received from the external device, reflecting input time information preset in the time information copied to the buffer So that time information of a state in which preset input time information is reflected is input to the time information register.

시간 정보 레지스터에 시간 정보를 저장하는 단계는 실시간으로 입력되는 클럭을 초 단위로 카운트하여 초, 분, 시, 일, 주, 월, 년 단위의 시간 정보를 생성하는 단계, 외부 장치에서 시간 정보를 입력받는 단계, 및 카운트해서 생성된 시간 정보나 외부 장치에서 입력된 시간 정보를 초, 분, 시간, 일, 주, 월, 년 단위로 레지스터 공간에 순차 저장하는 단계를 포함한다. The step of storing the time information in the time information register includes the steps of generating time information in units of seconds, minutes, hours, days, weeks, months, and years by counting a clock inputted in real time in seconds, And sequentially storing the time information generated by counting and the time information input from the external device into the register space in units of seconds, minutes, hours, days, weeks, months, and years.

상기와 같은 다양한 기술 특징을 갖는 본 발명의 실시 예에 따른 리얼 타임 클럭 및 이를 이용한 시간 정보 입출력 방법은 시간 정보 전송 및 수신 시, 시간 정보가 버퍼에 복사된 후 전송되거나 수신될 수 있도록 한다. 이에 따라, 종래의 시간 정보 제공 또는 저장 과정에서 발생하는 시간 지연에 따른 오류를 방지할 수 있는 효과가 있다. The real-time clock and the time information input / output method using the real time clock according to the present invention having various technical features as described above enable time information to be transmitted or received after being copied to the buffer when transmitting and receiving time information. Accordingly, it is possible to prevent an error due to a time delay occurring in the conventional time information providing or storing process.

도 1은 본 발명의 실시 예에 따른 리얼 타임 클럭을 구체적으로 나타낸 구성 블록도이다.
도 2는 도 1에 도시된 인터페이스부 및 시간 정보 레지스터를 구체적으로 나타낸 구성 블록도이다.
도 3은 도 1에 도시된 인터페이스부 및 시간 정보 레지스터를 나타낸 다른 구성 블록도이다.
도 4는 도 3의 시간 정보 레지스터에 외부 장치에서 입력되는 시간 정보를 입력하는 방법을 구체적으로 설명하기 위한 도면이다.
도 5는 도 2의 시간 정보 레지스터에 외부 장치에서 입력되는 시간 정보를 입력하는 다른 방법을 설명하기 위한 도면이다.
FIG. 1 is a block diagram specifically illustrating a real-time clock according to an embodiment of the present invention.
2 is a block diagram specifically showing the interface unit and the time information register shown in FIG.
3 is another configuration block diagram showing the interface part and the time information register shown in FIG.
FIG. 4 is a diagram for explaining a method for inputting time information input from an external device into the time information register of FIG. 3;
5 is a diagram for explaining another method of inputting time information inputted from an external device into the time information register of FIG.

전술한 목적, 특징 및 장점은 첨부된 도면을 참조하여 상세하게 후술되며, 이에 따라 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자가 본 발명의 기술적 사상을 용이하게 실시할 수 있을 것이다. 본 발명을 설명 함에 있어서 본 발명과 관련된 공지 기술에 대한 구체적인 설명이 본 발명의 요지를 불필요하게 흐릴 수 있다고 판단되는 경우에는 상세한 설명을 생략한다. 이하, 첨부된 도면을 참조하여 본 발명에 따른 바람직한 실시 예를 상세히 설명하기로 한다. The above and other objects, features, and advantages of the present invention will become more apparent by describing in detail exemplary embodiments thereof with reference to the attached drawings, which are not intended to limit the scope of the present invention. In the following description, well-known functions or constructions are not described in detail since they would obscure the invention in unnecessary detail. Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings.

도 1은 본 발명의 실시 예에 따른 리얼 타임 클럭을 구체적으로 나타낸 구성 블록도이다. FIG. 1 is a block diagram specifically illustrating a real-time clock according to an embodiment of the present invention.

도 1에 도시된 리얼 타임 클럭은 오실레이터에서 입력되는 신호(OSCI)를 이용하여 미리 설정된 대역의 주파수 클럭을 생성 및 출력하는 클럭 발생부(100), 주파수 클럭을 적어도 1초 간격의 타임 클럭(CLK)으로 변환하여 입력하는 클럭 입력부(120), 타임 클럭을 카운트하여 실시간으로 시간 정보를 생성 및 저장하는 시간 정보 레지스터(200), 주파수 클럭이나 타임 클럭을 외부 장치로 출력하는 클럭 출력부(300), 및 시간 정보 레지스터(200)에 저장된 시간 정보를 외부 장치로 출력하거나, 외부 장치의 시간 정보를 입력받아 시간 정보 레지스터(200)에 저장할 때는 버퍼를 이용해서 외부 장치로 출력하거나 저장하는 인터페이스부(400)를 포함한다. The real-time clock shown in FIG. 1 includes a clock generator 100 for generating and outputting a frequency clock of a preset frequency band using a signal OSCI input from the oscillator, a clock CLK A time information register 200 for generating and storing time information in real time by counting a time clock, a clock output unit 300 for outputting a frequency clock or a time clock to an external device, And an interface unit for outputting time information stored in the time information register 200 to an external device or storing the time information of the external device in the time information register 200 by using a buffer, 400).

클럭 발생부(100)는 외부의 오실레이터에서 입력되는 신호(OSCI)를 이용하여, 미리 설정된 대역의 주파수 클럭을 생성 및 출력한다. 예를 들면, 클럭 발생부(100)는 32.768kHz 등의 미리 설정된 대역의 주파수 클럭을 생성하여, 클럭 입력부(120)로 전송할 수 있다. The clock generator 100 generates and outputs a frequency clock of a preset band using a signal OSCI input from an external oscillator. For example, the clock generator 100 may generate a frequency clock of a predetermined band such as 32.768 kHz and transmit it to the clock input unit 120.

클럭 입력부(120)는 클럭 발생부(100)에서 입력되는 주파수 클럭을 적어도 1초 간격의 타임 클럭(CLK)으로 변환하고, 변환된 타임 클럭(CLK)을 시간 정보 레지스터(200), 및 클럭 출력부(300)로 전송한다. The clock input unit 120 converts the frequency clock input from the clock generator 100 into a time clock CLK at intervals of at least one second and outputs the converted time clock CLK to the time information register 200 and the clock output (300).

시간 정보 레지스터(200)는 초, 분, 시, 일, 주, 월, 년 단위의 시간 정보를 개별적으로 레지스터의 저장 공간들에 저장한다. 이러한 시간 정보 레지스터(200)는 클럭 입력부(120)에서 입력되는 타임 클럭(CLK)을 기초로 저장된 시간 정보를 초 단위로 실시간 갱신시켜 저장한다. The time information register 200 stores time information in units of seconds, minutes, hours, days, weeks, months, and years in the storage spaces of the registers individually. The time information register 200 updates the stored time information in real time based on the time clock CLK input from the clock input unit 120 and stores the updated time information.

인터페이스부(400)는 MCU(Micro Controller Unit), CPU(Central Processing Unit) 등의 외부 장치에서 시간 정보가 입력되면, 입력된 시간 정보가 버퍼를 통해 시간 정보 레지스터(200)에 저장될 수 있도록 한다. 그리고 외부 장치에서 현재의 시간 정보가 요청되면, 시간 정보 레지스터(200)에 실시간으로 저장 및 갱신되고 있는 현재의 시간 정보가 버퍼를 통해 외부 장치로 전송되도록 한다. When the time information is input from an external device such as a microcontroller unit (MCU) or a central processing unit (CPU), the interface unit 400 allows the inputted time information to be stored in the time information register 200 through the buffer . When the current time information is requested from the external device, the current time information stored and updated in real time in the time information register 200 is transmitted to the external device through the buffer.

인터페이스부(400)는 시간 정보 입력 및 출력시, 시간 정보를 읽거나 쓰는 시간에 따른 지연 오차가 발생하지 않도록 하기 위해, 미리 설정된 버퍼에 시간 정보를 복사해둔 후, 복사된 시간 정보를 전송하게 된다. The interface unit 400 copies the time information to a preset buffer and transmits the copied time information so that a delay error does not occur according to time for reading or writing time information when inputting and outputting time information .

구체적으로, 인터페이스부(400)는 외부 장치에서 시간 정보가 수신되면 버퍼에 수신된 시간 정보를 복사한다. 그리고 버퍼에 복사된 시간 정보를 시간 정보 레지스터(200)에 입력한다. 반면, 시간 정보 레지스터(200)의 시간 정보를 외부 장치로 전송할 때는 버퍼에 먼저 시간 정보 레지스터(200)의 시간 정보를 복사한다. 그리고 복사된 시간 정보 레지스터(200)의 시간 정보를 외부 장치로 전송하게 된다. 이렇게, 버퍼를 이용하면 시간 카운트 동작이나 시간 정보 레지스터(200)의 시간 정보 갱신 동작을 정지시키지 않고도 잘못된 시간 정보가 전송되는 문제를 막을 수 있다. Specifically, when the time information is received from the external device, the interface unit 400 copies the received time information to the buffer. The time information copied to the buffer is input to the time information register 200. On the other hand, when the time information of the time information register 200 is transmitted to an external device, the time information of the time information register 200 is first copied to the buffer. Then, the time information of the copied time information register 200 is transmitted to the external device. By using the buffer in this way, it is possible to prevent the problem that incorrect time information is transmitted without stopping the time counting operation or the time information updating operation of the time information register 200.

인터페이스부(400)는 외부 장치에서 입력되는 시간 정보를 버퍼에 복사하는 과정에서, 초, 분, 시, 일, 주, 월, 년 단위의 시간 정보들이 지연 없이 입력되면, 초, 분, 시, 일, 주, 월, 년 단위의 시간 정보를 순차적으로 버퍼에 입력할 수 있다. 하지만, 초, 분, 시, 일, 주, 월, 년 단위의 시간 정보들이 입력되는 동안 시간이 지연되어, 시간 정보가 또한 지연되는 상태로 입력될 수 있다. 이렇게 시간 정보가 지연 입력되는 경우, 버퍼에 시간 정보가 복사되는 기간과 시간 정보 레지스터(200)에 기입 또는 저장되는 기간이 상이해질 수 있다. When the time information of the seconds, minutes, hours, days, weeks, months, and years is input without delay in the process of copying the time information input from the external device into the buffer, Time information in units of days, weeks, months, and years can be sequentially input to the buffer. However, the time may be delayed while the time information in units of seconds, minutes, hours, days, weeks, months, and years are input, and the time information may be input in a state of being delayed. When the time information is delayed, the period in which the time information is copied into the buffer may differ from the period in which the time information is written or stored in the time information register 200.

버퍼에 시간 정보가 복사되는 기간과 시간 정보 레지스터(200)에 기입되는 기간이 상이해지는 문제를 해결하기 위해, 인터페이스부(400)는 외부 장치에서 시간 정보가 수신되면, 버퍼에 수신된 시간 정보를 복사함과 동시에 수신된 시간 정보가 버퍼에 저장되는 입력 시간을 카운트한다. 그리고 버퍼에 저장된 시간 정보를 시간 정보 레지스터(200)로 전송할 때는 버퍼에 저장되었던 시간 정보에 카운트된 입력 시간이 반영되도록 카운트된 시간을 합산하여 전송할 수 있다. 즉, 시간 정보가 입력될 때의 지연 시간까지 반영(또는, 합산)되어 시간 정보 레지스터(200)에 시간 정보가 저장될 수 있도록 한다. In order to solve the problem that the period in which the time information is copied to the buffer differs from the period in which the time information is written in the time information register 200, the interface unit 400 receives the time information received in the buffer At the same time as copying, the input time at which the received time information is stored in the buffer is counted. When the time information stored in the buffer is transmitted to the time information register 200, the counted time may be added to the time information stored in the buffer so as to reflect the counted input time. That is, the delay time when the time information is inputted is reflected (or summed) so that the time information can be stored in the time information register 200.

결과적으로 시간 정보 레지스터(200)에는 외부 장치에서 시간 정보가 수신되는 수신 시작 시점부터 시간 정보 수신이 완료되어 시간 정보 레지스터(200)에 시간 정보가 저장되는 시점까지의 지연 시간이 반영된 시간 정보가 저장되므로 정확한 시간 기록이 가능하다. As a result, in the time information register 200, the time information reflecting the delay time from the reception start time at which the time information is received at the external device to the time point at which the time information is received and the time information is stored in the time information register 200 is stored Accurate time recording is possible.

반면, 외부의 시간 정보가 입력되는 입력 시간 정보를 상수로 미리 설정해 둔 후, 시간 정보와 미리 설정해둔 입력 시간 정보를 합산시켜 시간 정보 레지스터(200)로 전송할 수도 있다. 이 경우에는 실질적인 지연 기간에 상관없이 미리 설정된 입력 시간 정보를 반영(또는, 합산)하여 시간 정보를 저장할 수 있다. 이렇게, 지연 시간까지 합산시켜 반영되도록 하거나, 미리 설정된 입력 시간 정보가 반영되어 시간 정보 레지스터(200)에 시간 정보가 저장될 수 있도록 한 기술 특징에 대해서는 첨부된 도면들을 참조하여 이후에 좀 더 구체적으로 설명하기로 한다. On the other hand, after setting the input time information into which the external time information is input as a constant, the time information and the preset input time information may be summed and transmitted to the time information register 200. In this case, the time information can be stored by reflecting (or summing) preset input time information irrespective of a substantial delay time. In this way, the technical features that allow the delay time to be summed and reflected or the time information to be stored in the time information register 200 by reflecting preset input time information will be described in more detail with reference to the accompanying drawings I will explain.

도 2는 도 1에 도시된 인터페이스부 및 시간 정보 레지스터를 구체적으로 나타낸 구성 블록도이다. 도 2를 참조하여, 시간 정보를 출력하는 구성과 방법을 먼저 설명하면 다음과 같다. 2 is a block diagram specifically showing the interface unit and the time information register shown in FIG. Referring to FIG. 2, a configuration and a method for outputting time information will be described first.

도 2에 도시된 시간 정보 레지스터(200)는 클럭 입력부(120)에서 실시간 입력되는 타임 클럭(CLK)을 초 단위로 카운트하여 초, 분, 시간, 일, 주, 월, 년 단위의 시간 정보를 생성한다. 구체적으로, 시간 정보 레지스터(200)는 클럭 입력부(120)에서 입력되는 타임 클럭(CLK)을 기초로 초 단위로 시간 정보를 갱신시키고, 초, 분, 시, 일, 주, 월, 년 단위의 시간 정보를 개별적으로 레지스터 저장 공간들에 저장한다. The time information register 200 shown in FIG. 2 counts the time clock CLK input in real time in the clock input unit 120 in units of seconds and outputs time information in units of seconds, minutes, hours, days, weeks, . Specifically, the time information register 200 updates the time information in units of seconds based on the time clock CLK input from the clock input unit 120, and updates the time information in units of seconds, minutes, hours, days, The time information is individually stored in the register storage spaces.

이렇게, 시간 정보 레지스터(200)에서 초 단위로 갱신되고 있는 시간 정보를 외부 장치로 전송할 때는, 버퍼(430)에 먼저 시간 정보 레지스터(200)의 시간 정보를 복사한다. 그리고 복사된 시간 정보 레지스터(200)의 시간 정보가 인터페이스부(400)를 통해 외부 장치로 전송되도록 한다. 반대로, 외부 장치의 시간 정보를 수신할 때도 버퍼(430)에 수신된 시간 정보가 복사되도록 한 후, 버퍼(430)에 복사된 시간 정보를 시간 정보 레지스터(200)에서 읽어들인다. When the time information updated in seconds in the time information register 200 is transferred to the external device, the time information of the time information register 200 is copied to the buffer 430 first. And the time information of the copied time information register 200 is transmitted to the external device through the interface unit 400. [ On the contrary, when the time information of the external device is received, the time information received in the buffer 430 is copied, and then the time information copied in the buffer 430 is read from the time information register 200.

전술한 바와 같이, 시간 정보 레지스터(200)에서 갱신되고 있는 시간 정보를 외부 장치로 전송할 때는, 버퍼(430)에 시간 정보를 복사한 후 복사된 시간 정보가 외부 장치로 제공되도록 하면 된다. 하지만, 외부 장치의 시간 정보를 수신해서 버퍼(430)에 저장한 후 시간 정보 레지스터(200)에서 수신할 때는 시간이 지연될 수 있다. As described above, when the time information updated in the time information register 200 is transferred to the external device, the time information may be copied to the buffer 430, and the copied time information may be provided to the external device. However, the time may be delayed when receiving the time information of the external device and storing it in the buffer 430 and then receiving it in the time information register 200.

구체적으로, 인터페이스부(400)는 외부 장치에서 입력되는 시간 정보를 버퍼에 복사하는 과정에서, 초, 분, 시, 일, 주, 월, 년 단위의 시간 정보들이 지연 없이 입력되면, 초, 분, 시, 일, 주, 월, 년 단위의 시간 정보를 순차적으로 버퍼에 입력할 수 있다. 하지만, 초, 분, 시, 일, 주, 월, 년 단위의 시간 정보들이 입력되는 동안 시간 지연되어, 전체적인 시간 정보가 지연되는 상태로 입력될 수 있다. 이 경우, 버퍼(430)에 시간 정보가 복사되는 기간과 시간 정보 레지스터(200)에 시간 정보가 기입되는 기간이 상이해질 수 있다. 이렇게, 버퍼(430)에 시간 정보가 복사되는 기간과 시간 정보 레지스터(200)에 기입되는 기간이 상이해지는 문제를 해결하기 위해, 시간 정보 레지스터(200)에 시간 정보가 저장될 때, 지연 시간까지 반영되어 저장될 수 있도록 하는 기술 구성은 다음과 같다. Specifically, when the time information input in seconds, minutes, hours, days, weeks, months, and years is input without delay in the process of copying the time information input from the external device into the buffer, , Hour, day, week, month, and year can be sequentially input to the buffer. However, it is possible to input the time information in units of seconds, minutes, hours, days, weeks, months, and years while delaying the whole time information. In this case, the period in which the time information is copied in the buffer 430 and the period in which the time information is written in the time information register 200 may be different. In order to solve the problem that the period of time information is copied in the buffer 430 and the period of time written in the time information register 200, when the time information is stored in the time information register 200, The following is a description of the technology that allows the data to be reflected and stored.

도 3은 도 1에 도시된 인터페이스부 및 시간 정보 레지스터를 나타낸 다른 구성 블록도이다. 3 is another configuration block diagram showing the interface part and the time information register shown in FIG.

도 3에 도시된 바와 같이, 인터페이스부(400)와 시간 정보 레지스터(200) 간에는 카운터(440), 및 가산 레지스터(450)가 더 포함될 수 있다. As shown in FIG. 3, a counter 440 and an adder register 450 may be further included between the interface unit 400 and the time information register 200.

외부 장치의 시간 정보를 입력받는 경우, 인터페이스부(400)는 타이밍 클럭(SCLK) 및 인에이블 신호(CS)에 응답하여 외부 장치의 시간 정보를 입력받아 버퍼(430)에 저장하고, 버퍼(430)에 저장된 시간 정보가 시간 정보 레지스터(200)로 전송되도록 한다. The interface unit 400 receives the time information of the external device in response to the timing clock SCLK and the enable signal CS and stores the received time information in the buffer 430, The time information stored in the time information register 200 is transferred to the time information register 200.

이때, 카운터(440)는 인터페이스 클럭(SCLK) 및 인에이블 신호(CS) 중 적어도 하나의 타이밍 신호를 이용하여 외부 장치의 시간 정보가 버퍼(430)에 저장되는 입력 시간을 카운트한다. 이때는, '초(Sec)'가 수신되는 시점부터 '년(Years)'이 수신되는 시점까지 경과된 시간을 카운트한다. 카운트된 시간 정보는 가산 레지스터(450)로 전송한다. At this time, the counter 440 counts the input time when the time information of the external device is stored in the buffer 430 using at least one timing signal of the interface clock SCLK and the enable signal CS. In this case, the elapsed time is counted from the time when 'Sec' is received until the time when 'Years' is received. The counted time information is transmitted to the addition register 450.

가산 레지스터(450)는 버퍼(430)에 저장된 시간 정보에 카운터(440)에서 카운트된 입력 시간 정보를 합산하여 시간 정보 레지스터(200)로 전송한다. 즉, 가산 레지스터(450)는 버퍼(430)에 저장된 시간 정보에 지연 시간까지 반영된 시간 정보가 시간 정보 레지스터(200)에 저장될 수 있도록 한다. The addition register 450 sums the input time information counted by the counter 440 with the time information stored in the buffer 430 and transmits the sum to the time information register 200. That is, the addition register 450 allows the time information reflected up to the delay time to be stored in the time information register 200 in the time information stored in the buffer 430.

도 4는 도 3의 시간 정보 레지스터에 외부 장치의 시간 정보를 입력하는 방법을 구체적으로 설명하기 위한 도면이다. 4 is a diagram for explaining a method for inputting time information of an external device to the time information register of FIG.

외부 장치에서 입력되는 시간 정보를 버퍼에 복사하는 과정에서, 초, 분, 시, 일, 주, 월, 년 단위의 시간 정보들이 입력되는 동안 지연시간이 발생되어, 시간 정보가 지연되는 상태로 입력될 수 있다. In the process of copying the time information input from the external device into the buffer, a delay time is generated while time information in units of seconds, minutes, hours, days, weeks, months, and years is input, .

이렇게 외부 장치에서 시간 정보를 입력받는 경우, 인터페이스부(400)는 타이밍 클럭(SCLK) 및 인에이블 신호(CS)에 응답하여 외부 장치에서 입력되는 시간 정보를 입력받아 버퍼(430)에 저장하고, 버퍼(430)에 저장된 시간 정보가 가산 레지스터(450)로 전송되도록 한다. When receiving the time information from the external device, the interface unit 400 receives the time information input from the external device in response to the timing clock SCLK and the enable signal CS, stores the time information in the buffer 430, So that the time information stored in the buffer 430 is transferred to the addition register 450.

외부 장치의 시간 정보가 버퍼(430)로 입력되는 동안, 카운터(440)는 인터페이스 클럭(SCLK) 및 인에이블 신호(CS) 중 적어도 하나의 타이밍 신호를 이용하여 시간 정보가 버퍼(430)에 저장되는 입력 시간을 카운트한다. 이때 '초(Sec)'가 수신되는 시점부터 '년(Years)'이 수신되는 시점까지 경과된 시간을 카운트하게 되고, 순차적으로 카운트된 시간 정보는 가산 레지스터(450)로 전송한다. While the time information of the external device is input to the buffer 430, the counter 440 stores the time information in the buffer 430 using at least one timing signal of the interface clock SCLK and the enable signal CS The input time is counted. At this time, the elapsed time from the reception of 'Sec' to the reception of 'Years' is counted, and the sequentially counted time information is transmitted to the addition register 450.

이에, 가산 레지스터(450)는 버퍼(430)에 저장된 시간 정보에 카운터(440)에서 카운트된 입력 시간 정보를 합산하여, 시간 정보 레지스터(200)로 전송한다. Thus, the addition register 450 sums the input time information counted by the counter 440 with the time information stored in the buffer 430, and transmits the sum to the time information register 200.

도 4에 도시된 바와 같이, 카운터(440), 및 가산 레지스터(450)의 구성으로, 본 발명에서는 버퍼(430)에 저장되는 외부 장치의 시간 정보에 지연 시간까지 반영한 후, 시간 정보 레지스터(200)에 지연 시간까지 합산된 시간 정보가 저장될 수 있도록 한다. 4, the counter 440 and the adder register 450 are configured to reflect the delay time to the time information of the external device stored in the buffer 430 and then to the time information register 200 The time information added up to the delay time can be stored.

따라서, 시간 정보 레지스터(200)에는 외부 장치에서 시간 정보가 수신되는 시작 시점부터 시간 정보 수신이 완료되는 시점까지의 지연 시간이 반영된, 정확한 시간 정보가 저장되므로, 지연 기간의 영향을 받지 않고 정확한 시간 기록이 가능하다. Therefore, the time information register 200 stores accurate time information reflecting the delay time from the start time of receiving the time information from the external device to the completion of the time information reception. Therefore, Recordable.

도 5는 도 2의 시간 정보 레지스터에 외부 장치의 시간 정보를 입력하는 방법을 설명하기 위한 또 다른 도면이다. 5 is a diagram for explaining a method of inputting time information of an external device to the time information register of FIG.

도 5에 도시된 바와 같이, 인터페이스부(400)와 시간 정보 레지스터(200) 간에는 상수 입력부(460), 및 가산 레지스터(450)가 더 포함될 수 있다. 5, a constant input unit 460 and an adder register 450 may be further included between the interface unit 400 and the time information register 200. [

외부 장치에서 시간 정보를 입력받는 경우, 인터페이스부(400)는 타이밍 클럭(SCLK) 및 인에이블 신호(CS)에 응답하여 외부 장치의 시간 정보를 입력받아 버퍼(430)에 저장하고, 버퍼(430)에 저장된 시간 정보가 가산 레지스터(450)로 전송되도록 한다. The interface unit 400 receives the time information of the external device in response to the timing clock SCLK and the enable signal CS and stores the received time information in the buffer 430. The buffer 430 To be transferred to the addition register 450.

이때, 상수 입력부(460)는 외부 장치의 시간 정보 입력 기간을 미리 상수로 설정해둔 후, 상수로 미리 설정된 입력 시간 정보를 가산 레지스터(450)로 전송한다. 상수로 미리 설정된 입력 시간 정보는 실질적인 지연 기간에 상관없이, 지연될 시간을 고려하여 미리 설정된 시간 정보이다. At this time, the constant input unit 460 sets the time information input period of the external device in advance as a constant, and then transmits the input time information set in advance to the addition register 450 as a constant. The input time information preset as a constant is preset time information in consideration of a delay time regardless of a substantial delay time.

이에, 가산 레지스터(450)는 버퍼(430)에 저장된 시간 정보에 상수 입력부(460)의 입력 시간 정보를 합산하여 시간 정보 레지스터(200)로 전송한다. The adder 450 adds the input time information of the constant input unit 460 to the time information stored in the buffer 430 and transmits the sum to the time information register 200.

이렇게, 상수 입력부(460), 및 가산 레지스터(450)는 버퍼(430)에 저장되는 시간 정보에 상수로 미리 설정된 입력 시간 정보까지 반영하여, 시간 정보 레지스터(200)에 외부의 시간 정보가 저장될 수 있도록 한다. In this way, the constant input unit 460 and the addition register 450 reflect the input time information set in advance as constants in the time information stored in the buffer 430, so that external time information is stored in the time information register 200 .

따라서, 시간 정보 레지스터(200)에는 외부 장치의 시간 정보가 수신되는 시작된 시점부터 시간 정보 수신이 완료되는 시점까지, 미리 설정된 입력 시간 정보가 반영된, 정확한 시간 정보가 저장되므로, 지연 기간의 영향을 받지 않고 정확한 시간 기록이 가능하다. Therefore, the time information register 200 stores accurate time information reflecting preset input time information from the time when the time information of the external device is received until the time information reception is completed. Therefore, the time information register 200 is not affected by the delay time Accurate time recording is possible.

상기와 같은 다양한 기술 특징을 갖는 본 발명의 실시 예에 따른 리얼 타임 클럭 및 이를 이용한 시간 정보 입출력 방법은 시간 정보 전송 및 수신 시, 시간 정보가 버퍼에 복사된 후 전송되거나 수신될 수 있도록 한다. 이에 따라, 시간 지연에 따른 오차 없이 시간 정보 입력 및 출력될 수 있도록 하여, 시간 정보에 대한 정확성과 신뢰성을 높일 수 있는 효과가 있다. The real-time clock and the time information input / output method using the real time clock according to the present invention having various technical features as described above enable time information to be transmitted or received after being copied to the buffer when transmitting and receiving time information. Accordingly, it is possible to input and output the time information without an error according to the time delay, thereby improving the accuracy and reliability of the time information.

또한, 시간 정보 수신 시, 버퍼에 수신된 시간 정보를 복사함과 동시에, 시간 정보가 버퍼에 저장되는 입력 시간을 카운트한다. 그리고 버퍼에 저장된 시간 정보를 전송할 때, 버퍼(430)에 시간 정보가 복사되는 기간과 시간 정보 레지스터(200)에 기입되는 기간이 상이해지는 문제를 해결하기 위해, 지연 시간까지 반영되어 시간 정보 레지스터(200)에 시간 정보가 저장될 수 있도록 한다. 이렇게, 시간 정보 입력 기간과 저장 기간이 동일해지도록 하여 시간 정보 입출력 기간 지연에 따른 오차와 오류를 없애고 그 신뢰성을 더욱 향상시킬 수 있다. When the time information is received, the time information received in the buffer is copied, and the input time at which the time information is stored in the buffer is counted. In order to solve the problem that the period in which the time information is copied in the buffer 430 and the period in which the time information is written in the time information register 200 are different when the time information stored in the buffer is transmitted, 200 so that the time information can be stored. In this way, the time information input period and the storage period are equal to each other, thereby eliminating errors and errors caused by the delay of the time information input / output period and further improving the reliability thereof.

상기에서는 도면 및 실시 예를 참조하여 설명하였지만, 해당 기술 분야의 숙련된 당업자는 하기의 특허청구범위에 기재된 실시 예의 기술적 사상에서 벗어나지 않는 범위 내에서 실시 예는 다양하게 수정 및 변경시킬 수 있음은 이해할 수 있을 것이다. It will be apparent to those skilled in the art that various modifications and variations can be made in the present invention without departing from the spirit or scope of the following claims. It will be possible.

100: 클럭 발생부
120: 클럭 입력부
200: 시간 정보 레지스터
300: 클럭 출력부
400: 인터페이스부
430: 버퍼
440: 카운터
450: 가산 레지스터
100: clock generator
120: clock input unit
200: Time information register
300: Clock output section
400:
430: buffer
440: Counter
450: Addition register

Claims (10)

클럭 입력부;
상기 클럭 입력부에서 입력되는 클럭을 카운트하여 실시간으로 시간 정보를 생성 및 저장하는 시간 정보 레지스터; 및
상기 시간 정보 레지스터에 저장된 시간 정보를 외부 장치로 출력하거나, 외부 장치에서 시간 정보를 입력받아 상기 시간 정보 레지스터에 저장할 때는 버퍼를 이용해서 외부 장치로 출력하거나 저장하는 인터페이스부를 포함하며,
상기 인터페이스부는
상기 외부장치로부터의 시간정보가 상기 버퍼에 입력되는 기간에 대한 입력 시간 정보를 미리 상수로 설정하고, 상기 외부장치로부터 상기 버퍼에 저장된 시간 정보에 상기 상수로 설정된 입력 시간 정보가 반영되도록 함으로써, 상기 입력 시간 정보가 반영된 시간 정보가 상기 시간 정보 레지스터에 입력되도록 하는
리얼 타임 클럭.
A clock input unit;
A time information register for generating and storing time information in real time by counting a clock input from the clock input unit; And
And an interface unit for outputting time information stored in the time information register to an external device or receiving or storing time information in an external device and storing the time information in the time information register using an external device,
The interface unit
Setting input time information for a period in which time information from the external device is input to the buffer as a constant and reflecting input time information set as the constant to time information stored in the buffer from the external device, Time information reflecting the input time information is input to the time information register
Real-time clock.
제 1 항에 있어서,
상기 인터페이스부는
상기 외부 장치에서 시간 정보가 수신되면 상기 버퍼에 상기 외부 장치의 시간 정보를 복사한 후, 상기 복사된 외부 장치의 시간 정보를 상기 시간 정보 레지스터에 입력하고,
상기 시간 정보 레지스터의 시간 정보를 외부 장치로 전송할 때는 상기 버퍼에 상기 시간 정보 레지스터의 시간 정보를 복사한 후, 상기 복사된 시간 정보 레지스터의 시간 정보를 외부 장치로 전송하는
리얼 타임 클럭.
The method according to claim 1,
The interface unit
Wherein when the time information is received from the external device, the time information of the external device is copied to the buffer, the time information of the copied external device is input to the time information register,
When the time information of the time information register is transferred to the external device, the time information of the time information register is copied to the buffer, and the time information of the copied time information register is transmitted to the external device
Real-time clock.
삭제delete 제 1 항에 있어서,
상기 인터페이스부는
외부 장치에서 시간 정보가 수신되면 미리 설정된 버퍼에 상기 수신된 시간 정보를 복사하고,
미리 설정된 입력 시간 정보를 수신하여, 상기 버퍼에 복사된 시간 정보에 상기 미리 설정된 입력 시간 정보를 반영한 후, 상기 미리 설정된 입력 시간 정보가 반영된 상태의 상기 시간 정보가 상기 시간 정보 레지스터에 입력되도록 하는
리얼 타임 클럭.
The method according to claim 1,
The interface unit
And when the time information is received from the external device, the time information is copied to the preset buffer,
The preset time information reflecting the preset input time information is input to the time information register after receiving the preset input time information and reflecting the preset input time information to the time information copied to the buffer
Real-time clock.
삭제delete 클럭 입력부에서 입력되는 클럭을 카운트하여 실시간으로 시간 정보를 생성하고 시간 정보 레지스터에 저장하는 단계; 및
상기 시간 정보 레지스터에 저장된 시간 정보를 외부 장치로 출력하거나, 외부 장치에서 시간 정보를 입력받아 상기 시간 정보 레지스터에 저장할 때, 버퍼를 이용해서 외부 장치로 출력하거나 저장하는 인터페이스 단계를 포함하며,
상기 인터페이스 단계는
상기 외부장치로부터의 시간정보가 상기 버퍼에 입력되는 기간에 대한 입력 시간 정보를 미리 상수로 설정하고, 상기 외부장치로부터 상기 버퍼에 저장된 시간 정보에 상기 상수로 설정된 입력 시간 정보가 반영하는 단계, 및
상기 입력 시간 정보가 반영된 시간 정보를 상기 시간 정보 레지스터에 입력하는 단계를 더 포함하는
리얼 타임 클럭을 이용한 시간 정보 입출력 방법.
Counting a clock input from a clock input unit to generate time information in real time and storing the time information in a time information register; And
And an interface step of outputting the time information stored in the time information register to an external device or receiving the time information from an external device and storing the time information in the time information register,
The interface step
Setting input time information for a period in which time information from the external device is input to the buffer in advance as a constant and reflecting input time information set as the constant to time information stored in the buffer from the external device;
And inputting time information reflecting the input time information to the time information register
Time information input / output method using real time clock.
제 6 항에 있어서,
상기 인터페이스 단계는
외부 장치의 시간 정보가 수신되면 미리 설정된 버퍼에 상기 수신된 시간 정보를 복사함과 동시에, 상기 수신된 시간 정보가 상기 버퍼에 저장되는 입력 시간을 카운트하는 단계, 및
상기 시간 정보 레지스터의 시간 정보를 외부 장치로 전송할 때는 상기 버퍼에 상기 시간 정보 레지스터의 시간 정보를 복사한 후, 상기 복사된 시간 정보 레지스터의 시간 정보를 외부 장치로 전송하는
리얼 타임 클럭을 이용한 시간 정보 입출력 방법.
The method according to claim 6,
The interface step
When the time information of the external device is received, copying the received time information to a preset buffer and counting the input time when the received time information is stored in the buffer, and
When the time information of the time information register is transferred to the external device, the time information of the time information register is copied to the buffer, and the time information of the copied time information register is transmitted to the external device
Time information input / output method using real time clock.
삭제delete 제 6 항에 있어서,
상기 인터페이스 단계는
상기 외부 장치의 시간 정보가 수신되면 미리 설정된 버퍼에 상기 수신된 시간 정보를 복사하는 동안 상수 입력부에 미리 설정된 입력 시간 정보를 수신하는 단계,
상기 버퍼에 복사된 시간 정보에 상기 미리 설정된 입력 시간 정보를 반영한 후, 상기 미리 설정된 입력 시간 정보가 반영된 상태의 상기 시간 정보가 상기 시간 정보 레지스터에 입력되도록 하는 단계를 포함하는
리얼 타임 클럭을 이용한 시간 정보 입출력 방법.
The method according to claim 6,
The interface step
Receiving preset time information in a constant input unit during copying of the received time information into a preset buffer when time information of the external device is received,
And a step of reflecting the preset input time information into the time information copied to the buffer and then inputting the time information reflecting the preset input time information into the time information register
Time information input / output method using real time clock.
삭제delete
KR1020170092252A 2017-07-20 2017-07-20 Real time clock and method for input/output of time information using the same KR101917526B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020170092252A KR101917526B1 (en) 2017-07-20 2017-07-20 Real time clock and method for input/output of time information using the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020170092252A KR101917526B1 (en) 2017-07-20 2017-07-20 Real time clock and method for input/output of time information using the same

Publications (1)

Publication Number Publication Date
KR101917526B1 true KR101917526B1 (en) 2018-11-12

Family

ID=64398015

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020170092252A KR101917526B1 (en) 2017-07-20 2017-07-20 Real time clock and method for input/output of time information using the same

Country Status (1)

Country Link
KR (1) KR101917526B1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000181569A (en) * 1998-12-18 2000-06-30 Nec Corp Counter device and storage medium storing program
KR100819735B1 (en) * 2001-06-21 2008-04-07 삼성전자주식회사 Computer system and control method thereof
JP2008518709A (en) 2004-11-08 2008-06-05 イデシア・リミテッド Method and apparatus for electronic biometric identification recognition

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000181569A (en) * 1998-12-18 2000-06-30 Nec Corp Counter device and storage medium storing program
KR100819735B1 (en) * 2001-06-21 2008-04-07 삼성전자주식회사 Computer system and control method thereof
JP2008518709A (en) 2004-11-08 2008-06-05 イデシア・リミテッド Method and apparatus for electronic biometric identification recognition

Similar Documents

Publication Publication Date Title
US5715438A (en) System and method for providing time base adjustment
CN100530134C (en) System and method of measurement for a distributed computer system
WO2022077224A1 (en) Clock synchronization method and apparatus, chip system, unmanned aerial vehicle, and terminal
CN112653533B (en) Intelligent time service management method for complex system
US8458506B2 (en) Real time clock and method for recording data in real time clock
CN109782841B (en) Real-time clock implementation method based on RTC chip, terminal equipment and storage medium
KR101917526B1 (en) Real time clock and method for input/output of time information using the same
JPH0323956B2 (en)
CN111198521B (en) Real-time clock device for vehicle and operation method thereof
US20230168710A1 (en) Enhanced time resolution for real-time clocks
JP2011113173A (en) Real-time clock device, information processor and electronic apparatus
JPS63184125A (en) Time coinciding system
WO2020134636A1 (en) Method and apparatus for improving wake-up precision of low-resolution real time clock, and electronic device
CN115987477A (en) Multi-reference source time synchronization method, system, module and medium
JP7392576B2 (en) Real-time clock circuit, real-time clock module, electronic equipment and real-time clock circuit correction method
JP5845771B2 (en) Information transmission system and information transmission method
CN102855172B (en) Method for recording network card receiving time at high precision
JP6871048B2 (en) Time setting device, time setting method and program
JPWO2004107064A1 (en) Time management apparatus and time management method
JP7103697B1 (en) Time synchronizer, time synchronization method, and program
US6850561B1 (en) Predictable updating of a baud divisor of an asynchronous serial port during data reception
JPH08285970A (en) Electronic timepiece
JP2017220208A (en) Timer counter device, timer counting method, and timer counting program
JP2004053428A (en) Method of acquiring flow rate data, and system for automatic meter reading
CN113098939A (en) Data transmission method, data transmission device and electronic equipment

Legal Events

Date Code Title Description
E701 Decision to grant or registration of patent right
GRNT Written decision to grant