KR19990077438A - Method and apparatus for driving a battery-backed up clock while a system is powered-down - Google Patents

Method and apparatus for driving a battery-backed up clock while a system is powered-down Download PDF

Info

Publication number
KR19990077438A
KR19990077438A KR1019990005459A KR19990005459A KR19990077438A KR 19990077438 A KR19990077438 A KR 19990077438A KR 1019990005459 A KR1019990005459 A KR 1019990005459A KR 19990005459 A KR19990005459 A KR 19990005459A KR 19990077438 A KR19990077438 A KR 19990077438A
Authority
KR
South Korea
Prior art keywords
signal
oscillator
frequency
computer system
generating
Prior art date
Application number
KR1019990005459A
Other languages
Korean (ko)
Other versions
KR100335860B1 (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 포만 제프리 엘
Publication of KR19990077438A publication Critical patent/KR19990077438A/en
Application granted granted Critical
Publication of KR100335860B1 publication Critical patent/KR100335860B1/en

Links

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/06Clock generators producing several clock signals
    • GPHYSICS
    • G04HOROLOGY
    • G04GELECTRONIC TIME-PIECES
    • G04G19/00Electric power supply circuits specially adapted for use in electronic time-pieces
    • G04G19/10Arrangements for supplying back-up power
    • 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

Abstract

본 발명은 컴퓨터 시스템이 전력 강하된 동안 배터리 백업 클럭을 구동하는 방법 및 장치에 관한 것이다. 본 발명은 보조 전력 공급장치 VAUX을 사용하여 마이크로프로세서 버스 발진기에 전력을 제공한다. 마이크로프로세서 버스 발진기는 통상적으로 고주파수의 매우 정밀한 발진기이다. 마이크로프로세서 버스 발진기는, 컴퓨터 시스템이 벽면 콘센트에는 연결되어 있지만 전력 강하된 동안에도, 계속 실행된다. 따라서, 정확한 시간 베이스(time base)를 합성하여 배터리 백업 클럭 입력을 구동할 수 있다. 마이크로 콘트롤러 PAL, 또는 다른 회로를 사용하여 마이크로프로세서 버스 발진기의 고주파 신호를 배터리 백업 클럭에 적합한 주파수로 변환시킬 수 있다. 따라서, 하나의 발진기를 사용하여 정상 동작을 위한 시간을 유지한다. 시스템이 이동되거나, 주 전력에 장애가 있는 경우에만 배터리 백업 크리스탈 발진기를 사용하여 시간을 유지한다. 이렇게 하여 시스템이 턴 오프되고 다시 턴온되는 경우 타이밍 에러의 발생을 최소화한다.The present invention relates to a method and apparatus for driving a battery backup clock while a computer system is powered down. The present invention uses auxiliary power supply VAUX to provide power to the microprocessor bus oscillator. Microprocessor bus oscillators are typically high frequency, very precise oscillators. The microprocessor bus oscillator remains running while the computer system is plugged into a wall outlet but is powered down. Thus, an accurate time base can be synthesized to drive the battery backup clock input. Microcontroller PAL, or other circuitry, can be used to convert the high-frequency signals from the microprocessor bus oscillator to a frequency suitable for the battery backup clock. Thus, one oscillator is used to maintain time for normal operation. Use a battery-backed crystal oscillator to keep time only if the system is moved or if mains power fails. This minimizes the occurrence of timing errors when the system is turned off and back on.

Description

시스템 정전시의 배터리 백업 클럭 구동 방법 및 장치{METHOD AND APPARATUS FOR DRIVING A BATTERY-BACKED UP CLOCK WHILE A SYSTEM IS POWERED-DOWN}TECHNICAL AND APPARATUS FOR DRIVING A BATTERY-BACKED UP CLOCK WHILE A SYSTEM IS POWERED-DOWN

본 발명은 컴퓨터 시스템에서 시간을 계산하는 것에 관한 것으로, 특히 시스템이 전력-강하된 동안 배터리 백업 클럭을 구동하는 방법 및 장치에 관한 것이다.The present invention relates to calculating time in a computer system, and more particularly, to a method and apparatus for driving a battery backup clock while a system is powered down.

대부분의 컴퓨터 시스템에서 실제 시간은 마이크로프로세서에 의해 내부적으로 계산된다. 매우 정밀한 마이크로프로세서 버스 발진기가 클럭 소스로서 작용한다. 예를 들어, 초당 14,300,000 번의 틱(tick)(즉, 사이클)을 발생시키는 14.3 MHz 발진기를 클럭 소스로 사용할 수 있다. 클럭 틱은 고속 카운터 (예컨대, 감산 계수기)나 시스템 실시간 클럭(RTC)에서 누산된다. 실제 시간은 감산 계수기 값과 알고 있는 발진기 주파수의 함수로서 계산된다. 예를 들어, 계수기가 시간 1에서 3 백만 틱의 값을 갖고 시간 2에서 2 백만 틱의 값을 갖는다면, 시간 1과 시간 2 사이에 0.0699초((3 백만 - 2 백만)/14.3 백만)가 경과되었다고 판단할 수 있다. 마이크로프로세서 버스 발진기의 주파수는 주어진 온도 및 전압 범위로 특정된다. 이는 마이크로프로세서 버스 발진기의 주파수가 주어진 온도 및 전압 범위의 특정 범위내에 유지된다는 것을 의미한다.In most computer systems, the actual time is calculated internally by the microprocessor. A very precise microprocessor bus oscillator acts as the clock source. For example, a 14.3 MHz oscillator that generates 14,300,000 ticks (ie cycles) per second can be used as the clock source. Clock ticks are accumulated in a high speed counter (eg, a subtraction counter) or a system real time clock (RTC). The actual time is calculated as a function of the subtractor value and the known oscillator frequency. For example, if the counter has a value of 1 to 3 million ticks and a value of 2 to 2 million ticks, then 0.0699 seconds ((3 million-2 million) /14.3 million) between time 1 and time 2 It can be judged that it has passed. The frequency of the microprocessor bus oscillator is specified with a given temperature and voltage range. This means that the frequency of the microprocessor bus oscillator remains within a certain range of a given temperature and voltage range.

컴퓨터 시스템이 전력 강하되면, 시스템 RTC 값이 배터리 백업 RTC에 저장되어야 한다. 배터리 백업 RTC는 통상적으로 32,768 Hz (32 KHz)의 시간 베이스로 동작하는 저 전력 회로이다. 컴퓨터 시스템이 전력 강하된 동안 시간은 배터리 백업 RTC에서 계산되고 저장된다. 그러나, 배터리 백업 RTC는 시스템 RTC 처럼 정확하지 못하다. 왜냐하면, 배터리 백업 RTC를 구동하는 32 KHz 발진기의 주파수는 온도의 작용에 따라 크게 변동하기 때문이다. 전형적인 에러 마진은 -0.04 x (델타 T) x (델타 T)인데, 여기서 (델타 T)는 섭씨 25도의 통상 온도로부터의 편차이다. 그러므로, 32 KHz 발진기는 역 포물선 함수의 온도 계수를 가지며, 온도가 섭씨 25도로부터 더 많이 변동할수록 배터리 백업 RTC는 더 느리게 주행한다.When the computer system is powered down, the system RTC value should be stored in the battery backup RTC. Battery-backed RTCs are low-power circuits that typically operate on a 32,768 Hz (32 KHz) time base. The time is calculated and stored in the battery backup RTC while the computer system is powered down. However, the battery backup RTC is not as accurate as the system RTC. This is because the frequency of the 32 KHz oscillator driving the battery-backed RTC fluctuates greatly with the action of temperature. A typical error margin is -0.04 x (delta T) x (delta T), where (delta T) is the deviation from normal temperature of 25 degrees Celsius. Therefore, the 32 KHz oscillator has an inverse parabolic function temperature coefficient, and the more the temperature fluctuates from 25 degrees Celsius, the slower the battery backup RTC runs.

컴퓨터에 전력이 복원되면, 배터리 백업 RTC가 시스템 RTC에 복사되고 마이크로프로세서는 다시 실시간을 유지한다. 그런데, 컴퓨터가 파워 오프되었을 때 누산된 에러는 컴퓨터가 파워 온될 때 시스템 RTC에 전가된다. 이러한 문제를 다루는 종래의 방법은 시스템이 전력 강하되었을 때 온도-보상형 32 KHz 발진기를 사용하여 배터리 백업 클럭을 구동하는 것이었다. 그러나, 온도-보상형 발진기는 값비싸며 통상적으로 배터리 작동용으로는 적합하지 않은 것이다.When the computer is restored to power, the battery backup RTC is copied to the system RTC and the microprocessor is back in real time. However, the accumulated error when the computer is powered off passes to the system RTC when the computer is powered on. The conventional way to deal with this problem has been to use a temperature-compensated 32 KHz oscillator to drive the battery backup clock when the system is powered down. However, temperature-compensated oscillators are expensive and are typically not suitable for battery operation.

결론적으로, 컴퓨터 시스템이 전력 강하되었을 때 배터리 백업 RTC를 구동하기 위한 저렴한 방법 및 장치가 요구되고 있다. 또한, 시스템이 전력 강하된 동안 배터리 백업 클럭을 통해 정확한 시간 유지를 확보하고, 시스템이 파워 온될 때 시스템 RTC에 전가되는 타이밍 에러를 최소화하는 것이 바람직하다.In conclusion, there is a need for an inexpensive method and apparatus for driving a battery backup RTC when the computer system is powered down. It is also desirable to ensure accurate timekeeping through the battery backup clock while the system is powered down and to minimize timing errors that are passed to the system RTC when the system is powered on.

따라서, 본 발명은 컴퓨터 시스템이 전력 강하된 동안 배터리 백업 클럭을 구동하는 방법 및 장치에 관한 것이다. 본 발명은, 보조 전력 공급장치 VAUX를 사용하여 마이크로프로세서 버스 발진기에 전력을 제공한다. 마이크로프로세서 버스 발진기는 통상적으로 고주파수의 매우 정밀한 발진기이다. 마이크로프로세서 버스 발진기는, 컴퓨터 시스템이 벽면 콘센트에는 연결되어 있지만 전력 강하된 동안에도, 계속 실행된다. 따라서, 정확한 시간 베이스(time base)를 합성하여 배터리 백업 클럭 입력을 구동할 수 있다. 마이크로 콘트롤러 PAL, 또는 다른 회로를 사용하여 마이크로프로세서 버스 발진기의 고주파 신호를 배터리 백업 클럭에 적합한 주파수로 변환시킬 수 있다.Accordingly, the present invention relates to a method and apparatus for driving a battery backup clock while a computer system is powered down. The present invention uses an auxiliary power supply VAUX to provide power to the microprocessor bus oscillator. Microprocessor bus oscillators are typically high frequency, very precise oscillators. The microprocessor bus oscillator remains running while the computer system is plugged into a wall outlet but is powered down. Thus, an accurate time base can be synthesized to drive the battery backup clock input. Microcontroller PAL, or other circuitry, can be used to convert the high-frequency signals from the microprocessor bus oscillator to a frequency suitable for the battery backup clock.

본 발명의 장점은 하나의 발진기를 사용하여 정상 동작을 위한 시간을 유지한다는 것이다. 시스템이 이동되거나 주 전력에 장애가 있는 경우에만, 배터리 백업 크리스탈 발진기를 사용하여 시간을 유지한다. 본 발명의 다른 장점은 시스템이 턴 오프되고 다시 턴온되는 경우 타이밍 에러가 최소화된다는 것이다.An advantage of the present invention is that one oscillator is used to maintain time for normal operation. Only when the system is moved or if there is a mains power failure, a battery-backed crystal oscillator is used to maintain time. Another advantage of the present invention is that timing errors are minimized when the system is turned off and back on.

도 1은 본 발명에 따른 마스터/슬레이브 시간 베이스 회로의 한 실시예의 회로도.1 is a circuit diagram of one embodiment of a master / slave time base circuit in accordance with the present invention.

도 2는 마스터/슬레이브 시간 베이스 회로의 대안 실시예의 회로도.2 is a circuit diagram of an alternative embodiment of a master / slave time base circuit.

<도면의 주요 부분에 대한 부호의 설명><Explanation of symbols for the main parts of the drawings>

10 : VAUX10: VAUX

12 : 버스 발진기12: bus oscillator

13 : 버스 발진기의 신호13: Bus Oscillator Signal

36 : PAL(850)36: PAL (850)

44 : 입력 비교기44: input comparator

54 : 동기 신호54: sync signal

308 : 배터리 백업 클럭 회로308: Battery Backup Clock Circuit

850 : PAL850: PAL

전술한 본 발명의 특징 및 장점과 그 밖의 특징 및 장점들은 후술되는 본 발명의 양호한 실시예의 상세한 설명을 보면 더욱 명백해질 것이다. 후술하는 설명에는 첨부 도면에 대한 참조 번호가 부여되는데, 동일한 참조 번호는 여러 도면에서 동일한 부분을 가리키는 것이다.The above features and advantages of the present invention and other features and advantages will become more apparent from the following detailed description of the preferred embodiments of the present invention. In the following description, reference numerals are given to the accompanying drawings in which the same reference numbers indicate the same parts in the various drawings.

대부분의 컴퓨터 시스템은 시스템이 주 벽면 콘센트에 연결된 상태로 턴 오프되는 경우 시스템에 전력을 계속 공급해주는, 통상적으로 VAUX로 인용되는, 보조 전력 공급장치를 갖는다. 보조 전력 공급장치는 전력 관리 유닛이나 유지 보수 프로세서에 전력을 공급하는데에도 종종 사용된다. 본 발명은 VAUX를 사용하여 마이크로프로세서 버스 발진기에 전력을 공급하므로, 발진기는 컴퓨터 시스템이 벽면 콘센트에 연결되어 있는 동안에도 계속 실행된다. 마이크로프로세서 버스 발진기는 통상적으로 고주파수의 매우 정밀한 발진기이다. 따라서, 정확한 시간 베이스를 합성하여 배터리 백업 클럭 입력을 구동할 수 있다. 본 발명의 장점은 하나의 발진기를 사용하여 정상 동작을 위한 시간을 유지한다는 것이다. 시스템이 이동되거나 주 전력에 장애가 있는 경우에만, 배터리 백업 크리스탈 발진기를 사용하여 시간을 유지한다. 컴퓨터 시스템이 전력 강하되었을 때, 실시간 값(예컨대 날짜 및 시간)이 백업 클럭에 복사된다. 컴퓨터 시스템이 시스템 초기화등으로 전력 상승되는 경우 실시간 값은 백업 클럭으로부터 마이크로프로세서 실시간 클럭으로 복사된다.Most computer systems have auxiliary power supplies, commonly referred to as VAUX, that continue to power the system when the system is turned off while connected to the main wall outlet. Auxiliary power supplies are also often used to power power management units or maintenance processors. Since the present invention uses VAUX to power the microprocessor bus oscillator, the oscillator continues to run while the computer system is connected to a wall outlet. Microprocessor bus oscillators are typically high frequency, very precise oscillators. Thus, an accurate time base can be synthesized to drive the battery backup clock input. An advantage of the present invention is that one oscillator is used to maintain time for normal operation. Only when the system is moved or if there is a mains power failure, a battery-backed crystal oscillator is used to maintain time. When the computer system is powered down, real-time values (such as date and time) are copied to the backup clock. When a computer system is powered up by system initialization, the real time value is copied from the backup clock to the microprocessor real time clock.

이하, 도 1을 참고하여 본 발명의 실시예를 설명하겠다. 도 1에 도시된 바와 같이, VAUX(10)를 사용하여 고주파수의 매우 정밀한 마이크로프로세서 버스 발진기(12)에 전력을 공급한다. 이 실시예에서, 발진기(12)는 14.3 MHz 발진기이며, 그 주파수는 동작 온도 및 전압 범위에서 백만당 +/- 10 (ppm)으로 특정되어 있다. 발진기(12)는 마이크로프로세서 RTC를 구동한다. 도 1에 도시된 것처럼, 발진기(12)의 신호(13)는 버퍼(14)에 입력된다. 전력 양호 표시(16)는 전력 공급장치(비 도시)의 출력이 안정하며 특정 범위내에 있다는 것을 가리키는 표시이다. 버퍼(14)의 신호(18)는 위상 동기 루프(phase locked loop) 마이크로프로세서 클럭 발생기(20)에 입력된다. 클럭 신호(22)는 마이크로프로세서(26)의 계수기(24)에 입력되며, 클럭 틱을 누산하여 시스템이 전력 상승되었을 때 실제 시간, 예컨대 날짜 및 시간을 계산한다.Hereinafter, an embodiment of the present invention will be described with reference to FIG. 1. As shown in FIG. 1, the VAUX 10 is used to power a high frequency, very precise microprocessor bus oscillator 12. In this embodiment, oscillator 12 is a 14.3 MHz oscillator, the frequency of which is specified at +/- 10 (ppm) per million in operating temperature and voltage range. Oscillator 12 drives a microprocessor RTC. As shown in FIG. 1, the signal 13 of the oscillator 12 is input to the buffer 14. The power good indication 16 is an indication that the output of the power supply (not shown) is stable and within a certain range. The signal 18 of the buffer 14 is input to a phase locked loop microprocessor clock generator 20. Clock signal 22 is input to counter 24 of microprocessor 26, which accumulates clock ticks to calculate the actual time, such as date and time, when the system is powered up.

발진기(12)의 신호(13)는 회로(750)에도 입력된다. 설명중인 실시예에서 회로(750)는 어셈블리 언어로 프로그래밍될 수 있는 마이크로 콘트롤러이다. 본 기술에 숙련된 사람이면 임의 개수의 회로를 사용하여 회로(750)의 논리 구조를 구현할 수 있다는 것을 알 것이다. 회로(750)는 발진기(12)의 14.3 MHz 입력을 사용하여 32 KHz 시간 베이스, 32768 A를 합성한다. 32 KHz 시간 베이스, 32768 A는 시간 경과에 따라 평균 32 KHz로 되면 충분하다. 예를 들어, 설명중인 실시예에서 32768 A의 순간 주파수는 32 KHz 보다 크거나 작을 수 있지만, 1초 간격 동안 평균 주파수는 32 KHz에 근접한다. 설명중인 실시예에서, 회로(750)는 일정한 시간 주기 동안 대부분 무 오퍼랜드(no operand, nop) 명령인 일련의 명령을 실행하여 발진기(12)의 14.3 MHz 입력을 32 KHz 출력 32768 A으로 변환시킨다. 명령들은 14.3 MHz의 주파수로 실행된다. 적절한 시간 포인트에서 (예컨대, 특정 수의 사이클이 경과한 후), 32768 A는 펄스화된다(말하자면, 하이에서 로우로 또는 로우에서 하이로 스위칭된다). 따라서, 32 KHz 주파수가 생성되어 멀티플렉서(30)에 입력된다. 복수의 입력 주파수는 상이한 타이밍 루프를 불러내어 일정한 32 KHz 출력이 만들어지도록 조절할 수 있다.The signal 13 of the oscillator 12 is also input to the circuit 750. In the embodiment being described, circuit 750 is a microcontroller that can be programmed in assembly language. Those skilled in the art will appreciate that any number of circuits may be used to implement the logic structure of circuit 750. Circuit 750 synthesizes a 32 KHz time base, 32768 A, using 14.3 MHz input of oscillator 12. A 32 KHz time base, 32768 A, is sufficient for an average of 32 KHz over time. For example, in the illustrative embodiment the instantaneous frequency of 32768 A may be greater than or less than 32 KHz, but the average frequency is close to 32 KHz during the one second interval. In the illustrative embodiment, circuit 750 executes a series of instructions, mostly no operand (nop) instructions, for a period of time to convert the 14.3 MHz input of oscillator 12 to a 32 KHz output 32768 A. The instructions are executed at a frequency of 14.3 MHz. At the appropriate time point (eg, after a certain number of cycles have elapsed), 32768 A is pulsed (ie, switched from high to low or from low to high). Thus, a 32 KHz frequency is generated and input to the multiplexer 30. Multiple input frequencies can be adjusted to invoke different timing loops to produce a constant 32 KHz output.

32 KHz 발진기(32)는 입력 신호(34)를 멀티플렉서(30)에도 공급한다. 발진기(32)에는 입력 NVRAMVcc(36)로 표시된 것처럼 배터리(비 도시)를 통해 전력이 공급된다. 회로(750)는 온/오프 회로(38)를 모니터하여 VAUX(10)가 작동중인지를 판단하고, 신호(42)를 멀티플렉서(30)로 보낸다. 신호(42)는 회로(750)의 출력이며, 32768 A 또는 입력 신호(34)가 배터리 백업 클럭 회로(308)를 구동하는데 사용되는지 판단한다. 배터리 백업 클럭 회로(308)는 배터리에 의해 전력 공급되므로(Vbat 및 Vcc), VAUX(10)가 작동하지 않아도 동작을 계속한다. 전계효과 트랜지스터(FET) 입력 비교기(44)의 도움을 받아 회로(750)는 32 KHz 발진기(32)를 모니터하여 멀티플렉서(30)를 32768 A 및 발진기(32)의 신호(34)간에 동기적으로 스위칭할 수 있다. 시스템의 플러그가 뽑히거나 주전력에 장애가 생기면, 온/오프 회로(38)는 임계 전압 이하로 떨어지는 VAUX(10)를 검출하고, 회로(750)는 발진기(32)가 32 KHz 신호를 제공하도록 결정한다. 이렇게 하여 발진기(32)가 동작 주파수를 제어한다.The 32 KHz oscillator 32 also supplies an input signal 34 to the multiplexer 30. Oscillator 32 is powered through a battery (not shown) as indicated by input NVRAMVcc 36. Circuit 750 monitors on / off circuit 38 to determine if VAUX 10 is operating and sends signal 42 to multiplexer 30. Signal 42 is the output of circuit 750 and determines whether 32768 A or input signal 34 is used to drive battery backup clock circuit 308. The battery backup clock circuit 308 is powered by a battery (Vbat and Vcc), so that operation continues even if the VAUX 10 is not in operation. With the help of the field effect transistor (FET) input comparator 44, the circuit 750 monitors the 32 KHz oscillator 32 to synchronize the multiplexer 30 between 32768 A and the signal 34 of the oscillator 32. Can switch When the system is unplugged or the mains power fails, the on / off circuit 38 detects the VAUX 10 falling below the threshold voltage, and the circuit 750 determines that the oscillator 32 provides a 32 KHz signal. do. In this way, the oscillator 32 controls the operating frequency.

시스템의 플러그를 다시 꼽거나 주전력이 복원되면, 배터리 백업 RTC(308)는 다시 32768 A를 시간 베이스로 사용할 수 있다. 온/오프 스위치(38)가 임계 전압 이상의 VAUX(10)를 검출하면, 회로(750)는 다시 32768 A를 사용하도록 결정한다. 회로(750)는 비교기(44)에서 출력된 동기 신호(54)를 모니터하여 멀티플렉서(30)를 동기적으로 스위칭한다. 동기 신호(54)가 로우로 판단되면, 회로(750)는 신호 32768 A 로우인 32768 A 사이클을 시작하며 멀티플렉서(30)를 스위칭하여 신호 32768 A를 선택한다.When the system is plugged in again or main power is restored, the battery backup RTC 308 can again use 32768 A as the time base. If the on / off switch 38 detects the VAUX 10 above the threshold voltage, the circuit 750 again decides to use 32768 A. The circuit 750 monitors the synchronization signal 54 output from the comparator 44 to synchronously switch the multiplexer 30. If the sync signal 54 is determined to be low, the circuit 750 begins a 32768 A cycle, which is a signal 32768 A low, and switches the multiplexer 30 to select signal 32768 A.

이하, 도 2를 참고하여 본 발명의 대안 실시예를 설명하겠다. 도 2를 보면, 도 1을 참고하여 전술한 바와 같이, VAUX(10)가 14.3 MHz 발진기(12)에 전력을 공급하여 마이크로프로세서 클럭 발생기를 구동한다. 발진기(12)의 신호(13)는 PAL(프로그래머블 어레이 논리회로)(850)에도 입력된다. PAL(850)은 14.3 MHz 입력 주파수를 32 KHz 출력 주파수, 32768 A로 변환하도록 프로그램된다. 스위치(46)는 온/오프 회로(48)에 의해 제어되며, VAUX가 변동하는 동안 32768 A 신호를 차단하는데 사용된다. 스위치(50)는 VAUX(10)가 안정화되면 32768 A 신호를 배터리 백업 클럭, 회로(308)에 접속하는데 사용된다.Hereinafter, an alternative embodiment of the present invention will be described with reference to FIG. 2. Referring to FIG. 2, as described above with reference to FIG. 1, the VAUX 10 powers a 14.3 MHz oscillator 12 to drive a microprocessor clock generator. The signal 13 of the oscillator 12 is also input to the PAL (programmable array logic circuit) 850. PAL 850 is programmed to convert the 14.3 MHz input frequency to 32 KHz output frequency, 32768 A. The switch 46 is controlled by the on / off circuit 48 and is used to block the 32768 A signal while the VAUX is fluctuating. The switch 50 is used to connect the 32768 A signal to the battery backup clock, circuit 308 once the VAUX 10 is stabilized.

시스템의 플러그가 뽑히거나 주전력에 장애가 생기면, 온/오프 회로(48)는 임계 전압 이하로 떨어지는 VAUX(10)를 검출하고, 스위치(46)를 개방한다. 이렇게 하면 크리스탈(52)이 동작 주파수를 제어한다. 설명중인 실시예에서, 크리스탈(52)은 32 KHz 크리스탈이다. 발진기(비 도시)는 회로(308)내에 통합되어 있으며, 크리스탈(52)에 의해 구동된다. 크리스탈(52) 및 32768 A에 의해 구동되는 발진기의 주파수들은 근접하지만 정확하게 동일하지는 않으므로, 발진기는 그 주파수가 공진 주파수로 될때까지 약간 조절한다. 다시 말해, 스위치(46) 및 스위치(50)가 모두 닫혀지면, 신호 32768 A가 회로(308)의 X1 입력을 구동한다. 스위치(46)나 스위치(50)중 하나가 (또는 두 개 모두) 개방되면, 회로(308)내의 발진기는 크리스탈(52)의 크리스탈 주파수를 조절한다.When the system is unplugged or the main power fails, the on / off circuit 48 detects the VAUX 10 falling below the threshold voltage and opens the switch 46. This allows the crystal 52 to control the operating frequency. In the illustrative embodiment, the crystal 52 is a 32 KHz crystal. An oscillator (not shown) is integrated into the circuit 308 and driven by the crystal 52. Since the frequencies of the oscillator driven by crystal 52 and 32768 A are close but not exactly the same, the oscillator adjusts slightly until its frequency is at the resonant frequency. In other words, when both switch 46 and switch 50 are closed, signal 32768 A drives the X1 input of circuit 308. When either switch 46 or switch 50 (or both) is open, the oscillator in circuit 308 adjusts the crystal frequency of crystal 52.

시스템의 플러그를 다시 꼽거나 주전력이 복원되면, 배터리 백업 RTC(308)는 다시 32768 A를 시간 베이스로 사용할 수 있다. PAL(850)은 비교기(44)의 출력 신호(54)를 모니터하는 논리회로를 포함한다. VAUX(10)가 이용가능하면, 크리스탈(52)에 동기 접속이 이루어진다. 비교기(44)는 PAL(850)이 동기 신호(54)를 모니터할 수 있게 해준다. 동기 신호(54)가 로우로 판단되면, PAL(850)는 신호 32768 A 로우인 32768 A 사이클을 시작하며, 스위치(50)를 닫는다. 일단 32768 A 신호가 RTC 회로(308)의 입력 X1에 연결되면, 다시 32768 A 신호를 시간 베이스로 사용하여 동작하기 시작한다.When the system is plugged in again or main power is restored, the battery backup RTC 308 can again use 32768 A as the time base. PAL 850 includes logic circuitry to monitor output signal 54 of comparator 44. If VAUX 10 is available, a synchronous connection is made to crystal 52. Comparator 44 allows PAL 850 to monitor sync signal 54. If the sync signal 54 is determined to be low, the PAL 850 starts a 32768 A cycle with a signal of 32768 A low and closes the switch 50. Once the 32768 A signal is connected to the input X1 of the RTC circuit 308, it again begins to operate using the 32768 A signal as a time base.

본 발명이 어느 정도 특정하게 설명되었지만, 본 기술에 숙련된 사람이면 본 발명의 취지 및 범위에서 벗어나지 않고도 발명의 요소들을 변경할 수 있다는 것을 알것이다. 본 발명은 하기의 청구범위 및 그 균등물에 의해서만 한정되는 것이다.While the present invention has been described to some extent, it will be understood by those skilled in the art that modifications may be made in the elements of the invention without departing from the spirit and scope of the invention. The invention is limited only by the following claims and their equivalents.

본 발명에 따르면, 하나의 발진기를 사용하여 정상 동작을 위한 시간을 유지하고, 시스템이 이동되거나, 주 전력에 장애가 있는 경우에만 배터리 백업 크리스탈 발진기를 사용함으로써 시간을 유지한다. 본 발명의 다른 양태에 따르면, 시스템이 턴 오프되고 다시 턴온되는 경우 타이밍 에러가 최소화되는 효과가 있다.According to the present invention, one oscillator is used to maintain time for normal operation, and the time is maintained by using a battery backup crystal oscillator only when the system is moved or when main power fails. According to another aspect of the present invention, there is an effect that the timing error is minimized when the system is turned off and back on.

Claims (14)

컴퓨터 시스템에서 경과 시간을 계산하는 방법에 있어서,In a method for calculating elapsed time in a computer system, 상기 컴퓨터 시스템이 전력 강하되었을 때에도 동작을 유지하는 전력원으로부터 전력을 수신하는 제1 발진기에 의해 발생되는 제1 주파수를 갖는 제1 신호를 프로세서 클럭에 제공하는 단계와;Providing a processor clock with a first signal having a first frequency generated by a first oscillator receiving power from a power source that maintains operation even when the computer system is powered down; 상기 제1 신호를 제2 주파수를 갖는 제2 신호로 변환하는 단계와;Converting the first signal into a second signal having a second frequency; 상기 제2 신호를 백업 클럭(backup clock)에 제공하는 단계를 포함하는 방법.Providing the second signal to a backup clock. 제 1 항에 있어서,The method of claim 1, 상기 전력원이 이용가능하지 않다고 검출되는 경우 제3 신호를 상기 백업 클럭에 제공하는 단계를 더 포함하며, 상기 제3 신호는 상기 제2 주파수와 사실상 등가인 제3 주파수를 갖는 제2 발진기에 의해 발생되는 방법.Providing a third signal to the backup clock if it is detected that the power source is unavailable, the third signal being caused by a second oscillator having a third frequency that is substantially equivalent to the second frequency. How it occurs. 제 2 항에 있어서,The method of claim 2, 상기 제2 발진기는 배터리에 의해 전력 공급되는 방법.And the second oscillator is powered by a battery. 제 2 항에 있어서,The method of claim 2, 상기 제3 신호를 상기 백업 클럭에 제공하는 상기 단계는 상기 전력원이 이용가능하지 않다고 검출되는 경우 상기 제2 신호를 상기 제3 신호로 전이시키는 단계를 더 포함하는 방법.Providing the third signal to the backup clock further comprises transitioning the second signal to the third signal when it is detected that the power source is unavailable. 제 4 항에 있어서,The method of claim 4, wherein 상기 전력원이 이용가능하다고 검출되는 경우, 상기 제3 신호를 상기 제2 신호로 전이시키는 단계를 더 포함하는 방법.If it is detected that the power source is available, transitioning the third signal to the second signal. 컴퓨터 시스템에서 경과 시간을 계산하는 방법에 있어서,In a method for calculating elapsed time in a computer system, 기본 전력 공급장치를 통해, 프로세서, 제1 발진기, 및 주파수 변환기에 전력을 공급하는 단계와;Powering the processor, the first oscillator, and the frequency converter via a basic power supply; 상기 제1 발진기에 의해, 제1 주파수를 갖는 제1 신호를 발생시키는 단계와;Generating, by the first oscillator, a first signal having a first frequency; 상기 프로세서가 전력 상승되어 있는 동안, 상기 프로세서에 의해 날짜 및 시간을 발생시키는 단계와;Generating a date and time by the processor while the processor is powered up; 상기 제1 신호에 응답하여, 상기 주파수 변환기에 의해, 제2 주파수를 갖는 제2 신호를 발생시키는 단계와;In response to the first signal, generating, by the frequency converter, a second signal having a second frequency; 백업 전력 공급장치에 의해 제2 발진기 및 백업 클럭에 전력을 공급하는 단계와;Supplying power to the second oscillator and backup clock by a backup power supply; 상기 제2 발진기에 의해 상기 제2 주파수와 사실상 등가인 제3 주파수를 갖는 제3 신호를 발생시키는 단계와;Generating a third signal having a third frequency substantially equivalent to the second frequency by the second oscillator; 상기 컴퓨터 시스템이 전력 강하되고 상기 기본 전력 공급장치가 이용가능한 경우, 상기 제2 신호에 응답하여 상기 백업 클럭에 의해 날짜 및 시간을 발생시키는 단계와;When the computer system is powered down and the primary power supply is available, generating a date and time by the backup clock in response to the second signal; 상기 컴퓨터 시스템이 전력 강하되고 상기 기본 전력 공급장치가 이용가능하지 않은 경우, 상기 제3 신호에 응답하여 상기 백업 클럭에 의해 날짜 및 시간을 발생시키는 단계를 포함하는 방법.Generating a date and time by the backup clock in response to the third signal when the computer system is powered down and the primary power supply is not available. 컴퓨터 시스템에서 경과 시간을 계산하는 회로에 있어서,In a circuit for calculating elapsed time in a computer system, 상기 컴퓨터 시스템이 전력 강하되었을 때에도 동작을 유지하는 전력원과;A power source that maintains operation even when the computer system is powered down; 상기 전력원에 의해 전력을 공급받고 제1 주파수로 동작하는 제1 발진기와;A first oscillator powered by the power source and operating at a first frequency; 상기 제1 발진기의 제1 신호에 의해 구동되는 제1 클럭과;A first clock driven by the first signal of the first oscillator; 상기 제1 신호를 제2 주파수를 갖는 제2 신호로 변환하는 수단과;Means for converting the first signal into a second signal having a second frequency; 상기 제2 신호에 의해 구동되는 백업 클럭을 포함하는 회로.A backup clock driven by the second signal. 제 7 항에 있어서,The method of claim 7, wherein 배터리에 의해 전력을 공급받고 제3 주파수로 동작하는 제2 발진기를 더 포함하며, 상기 제3 주파수는 상기 제2 주파수와 사실상 등가인 회로.And a second oscillator powered by a battery and operating at a third frequency, the third frequency being substantially equivalent to the second frequency. 제 8 항에 있어서,The method of claim 8, 상기 전력원이 이용가능하지 않은지를 판단하는 수단과;Means for determining if the power source is unavailable; 상기 제2 발진기에 의해 발생되는 제3 신호로 상기 백업 클럭을 구동시키는 수단을 더 포함하는 회로.Means for driving the backup clock with a third signal generated by the second oscillator. 제 9 항에 있어서,The method of claim 9, 상기 제3 신호로 상기 백업 클럭을 구동시키는 상기 수단은 상기 제2 신호를 상기 제3 신호로 전이시키는 수단을 더 포함하는 회로.The means for driving the backup clock with the third signal further comprises means for transitioning the second signal to the third signal. 제 10 항에 있어서,The method of claim 10, 상기 전력원이 이용가능한지 판단하는 수단과;Means for determining if the power source is available; 상기 제3 신호를 상기 제2 신호로 전이시켜서 상기 백업 클럭을 구동시키는 수단을 더 포함하는 회로.Means for transitioning said third signal to said second signal to drive said backup clock. 제 7 항에 있어서,The method of claim 7, wherein 상기 제1 신호를 상기 제2 신호로 변환하는 상기 수단은 마이크로 콘트롤러를 포함하는 회로.Said means for converting said first signal into said second signal comprises a microcontroller. 제 7 항에 있어서,The method of claim 7, wherein 상기 제1 신호를 상기 제2 신호로 변환하는 상기 수단은 프로그래머블 어레이 논리회로를 포함하는 회로.Said means for converting said first signal into said second signal comprises a programmable array logic circuit. 기본 전력 공급장치에 의해 전력 공급되는, 프로세서, 제1 발진기, 및 주파수 변환기를 포함하는 컴퓨터 시스템에서 경과 시간을 계산하는 회로에 있어서,12. A circuit for calculating elapsed time in a computer system comprising a processor, a first oscillator, and a frequency converter, powered by a basic power supply, 제1 발진기에 의해 제1 주파수를 갖는 제1 신호를 발생시키는 수단과;Means for generating a first signal having a first frequency by a first oscillator; 상기 프로세서가 전력 상승되어 있는 동안 상기 프로세서에 의해 날짜 및 시간을 발생시키는 수단과;Means for generating a date and time by the processor while the processor is powered up; 상기 제1 신호에 응답하여 상기 주파수 변환기에 의해 제2 주파수를 갖는 제2 신호를 발생시키는 수단과;Means for generating, by the frequency converter, a second signal having a second frequency in response to the first signal; 백업 전력 공급장치에 의해 제2 발진기 및 백업 클럭에 전력을 공급하는 수단과;Means for powering the second oscillator and backup clock by a backup power supply; 상기 제2 발진기에 의해, 상기 제2 주파수와 사실상 등가인 제3 주파수를 갖는 제3 신호를 발생시키는 수단과;Means for generating, by the second oscillator, a third signal having a third frequency substantially equivalent to the second frequency; 상기 컴퓨터 시스템이 전력 강하되고 상기 기본 전력 공급장치가 이용가능한 경우, 상기 제2 신호에 응답하여 상기 백업 클럭에 의해 날짜 및 시간을 발생시키는 수단과;Means for generating a date and time by the backup clock in response to the second signal when the computer system is powered down and the primary power supply is available; 상기 컴퓨터 시스템이 전력 강하되고 상기 기본 전력 공급장치가 이용가능하지 않은 경우, 상기 제3 신호에 응답하여 상기 백업 클럭에 의해 날짜 및 시간을 발생시키는 수단을 포함하는 회로.Means for generating a date and time by the backup clock in response to the third signal when the computer system is powered down and the primary power supply is unavailable.
KR1019990005459A 1998-03-18 1999-02-18 Method and apparatus for driving a battery-backed up clock while a system is powered-down KR100335860B1 (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
US09/040,430 US6069850A (en) 1998-03-18 1998-03-18 Method and apparatus for driving a battery-backed up clock while a system is powered-down
US09/040,430 1998-03-18
US9/040,430 1998-03-18

Publications (2)

Publication Number Publication Date
KR19990077438A true KR19990077438A (en) 1999-10-25
KR100335860B1 KR100335860B1 (en) 2002-05-09

Family

ID=21910948

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019990005459A KR100335860B1 (en) 1998-03-18 1999-02-18 Method and apparatus for driving a battery-backed up clock while a system is powered-down

Country Status (3)

Country Link
US (1) US6069850A (en)
JP (1) JP3427924B2 (en)
KR (1) KR100335860B1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE19944053C2 (en) * 1999-09-14 2001-08-02 Infineon Technologies Ag Device and method for the power supply of computer accessories via the bus system of the computer
US6958953B2 (en) * 2003-05-13 2005-10-25 International Business Machines Corporation Real time clock circuit having an internal clock generator
US8171336B2 (en) * 2008-06-27 2012-05-01 Freescale Semiconductor, Inc. Method for protecting a secured real time clock module and a device having protection capabilities
US8954778B2 (en) 2011-06-30 2015-02-10 Nxp B.V. Electronic timekeeping circuit and a method for operating timekeeping circuit
CN109729235B (en) * 2019-01-03 2021-05-14 威创集团股份有限公司 Clock backup circuit in video processor and video processor

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE2246487C2 (en) * 1972-09-22 1974-10-24 Siemens Ag, 1000 Berlin Und 8000 Muenchen Vibration generator for particularly short electromagnetic waves
JPS56168833A (en) * 1980-06-02 1981-12-25 Mitsubishi Heavy Ind Ltd Oxygen absorbent from two-component gas of oxygen and nitrogen and its using method
JPS58113889A (en) * 1981-12-28 1983-07-06 Matsushita Electric Ind Co Ltd Timer device
US4575848A (en) * 1984-02-01 1986-03-11 Westinghouse Electric Corp. Methods and apparatus for correcting a software clock from an accurate clock
US4582434A (en) * 1984-04-23 1986-04-15 Heath Company Time corrected, continuously updated clock
JPS61195388A (en) * 1985-02-26 1986-08-29 Mitsubishi Electric Corp Timepiece device
US4667328A (en) * 1985-04-29 1987-05-19 Mieczyslaw Mirowski Clocking circuit with back-up clock source
JPS62189520A (en) * 1986-02-14 1987-08-19 Nec Corp Clock count system for microcomputer
JPH03131795A (en) * 1989-10-18 1991-06-05 Matsushita Electric Ind Co Ltd Timepiece circuit with backup function
US5381542A (en) * 1991-07-29 1995-01-10 Unisys Corporation System for switching between a plurality of clock sources upon detection of phase alignment thereof and disabling all other clock sources
US5142247A (en) * 1991-08-06 1992-08-25 Compaq Computer Corporation Multiple frequency phase-locked loop clock generator with stable transitions between frequencies
DE4336239A1 (en) * 1993-10-23 1995-04-27 Sel Alcatel Ag Circuit arrangement for a clock generator
US5568064A (en) * 1995-01-23 1996-10-22 International Business Machines Corporation Bidirectional transmission line driver/receiver
US5623234A (en) * 1996-03-04 1997-04-22 Motorola Clock system

Also Published As

Publication number Publication date
JPH11296253A (en) 1999-10-29
KR100335860B1 (en) 2002-05-09
US6069850A (en) 2000-05-30
JP3427924B2 (en) 2003-07-22

Similar Documents

Publication Publication Date Title
US5550489A (en) Secondary clock source for low power, fast response clocking
JP5159316B2 (en) On-demand power management method and equipment
JP3437174B2 (en) Power saving integrated circuit and control method of power saving integrated circuit
US20040181699A1 (en) Power supply controller and information processor
KR100335860B1 (en) Method and apparatus for driving a battery-backed up clock while a system is powered-down
KR19990014219A (en) Clock generation method and apparatus
JPH0450629B2 (en)
EP1416634A4 (en) Start circuit
US6356128B2 (en) Method and circuitry for supplying clock to internal circuit
US6304979B1 (en) Logic to enable/disable a clock generator in a secure way
US8341443B2 (en) System and method for secure real time clocks
JP2006285823A (en) Semiconductor integrated circuit
JP2002196845A (en) Method for controlling microcomputer
US6496078B1 (en) Activating on-chip oscillator using ring oscillator
JP3551907B2 (en) Clock signal supply device and control method therefor
US7010709B2 (en) Information processing device
JP2954199B1 (en) Oscillation control circuit
JP3040635B2 (en) Clock generation circuit
KR100365590B1 (en) Micro wave oven which operates on dual-clock
KR960027548A (en) TF in Code Division Multiple Access Mobile Communication System
JPS5797130A (en) Data processor
JPS59189426A (en) Clock supply controlling system
JP2830216B2 (en) Standby circuit
JPS6348203B2 (en)
KR100651510B1 (en) Dynamic clock changing apparatus and method thereof

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
FPAY Annual fee payment

Payment date: 20050221

Year of fee payment: 4

LAPS Lapse due to unpaid annual fee