词条 | Real-time clock |
释义 |
A real-time clock (RTC) is a computer clock (most often in the form of an integrated circuit) that keeps track of the current time. Although the term often refers to the devices in personal computers, servers and embedded systems, RTCs are present in almost any electronic device which needs to keep accurate time. TerminologyThe term real-time clock is used to avoid confusion with ordinary hardware clocks which are only signals that govern digital electronics, and do not count time in human units. RTC should not be confused with real-time computing, which shares its three-letter acronym but does not directly relate to time of day. PurposeAlthough keeping time can be done without an RTC,[1] using one has benefits:
A GPS receiver can shorten its startup time by comparing the current time, according to its RTC, with the time at which it last had a valid signal.[3] If it has been less than a few hours, then the previous ephemeris is still usable. Power sourceRTCs often have an alternate source of power, so they can continue to keep time while the primary source of power is off or unavailable. This alternate source of power is normally a lithium battery in older systems, but some newer systems use a supercapacitor,[4][5] because they are rechargeable and can be soldered. The alternate power source can also supply power to battery backed RAM.[6] TimingMost RTCs use a crystal oscillator,[7][8] but some have the option of using the power line frequency.[9] In many cases, the oscillator's frequency is 32.768 kHz.[7] This is the same frequency used in quartz clocks and watches. This frequency is exactly 215 cycles per second. It is a convenient rate to use with simple binary counter circuits. Also, it is too high for humans to hear. The quartz tuning fork of these crystals does not change size much from temperature, so temperature does not change its frequency much. Some RTCs use a micromechanical resonator on the silicon chip of the RTC. This reduces the cost of an RTC by reducing its complexity and parts count. Micromechanical resonators are much more sensitive to temperature than quartz resonators. So, these compensate for temperature changes using an electronic thermometer and electronic logic.[10] Many commercial RTC ICs are accurate to less than 5 parts per million.[11] In practical terms, this is good enough to perform celestial navigation, the classic task of a chronometer. In 2011, Chip-scale atomic clocks were invented. Although more expensive, they keep time within 50 picoseconds (5x10^-11).[12] ExamplesMany integrated circuit manufacturers make RTCs, including Epson, Intersil, IDT, Maxim, NXP Semiconductors, Texas Instruments, STMicroelectronics and Ricoh. A common RTC used in single-board computers is the Maxim Integrated DS1307. The RTC was introduced to PC compatibles by the IBM PC/AT in 1984, which used a Motorola MC146818 RTC. Later, Dallas Semiconductor made compatible RTCs, which were often used in older personal computers, and are easily found on motherboards because of their distinctive black battery cap and silkscreened logo. In newer systems, the RTC is integrated into the southbridge chip.[13] Some microcontrollers have a real-time clock built in, generally only the ones with many other features and peripherals. Radio-based RTCsSome modern computers receive clock information by digital radio and use it to promote time-standards. There are two common methods: Most cell phone protocols (e.g. LTE) directly provide the current local time. If an internet radio is available, a computer may use the network time protocol. Computers used as local time servers occasionally use GPS[14] or ultra-low frequency radio transmissions broadcast by a national standards organization (i.e. a radio clock[15]). Historic RTCsSome older computer designs such as Novas and PDP-8s[16] used a real-time clock that was notable for its high accuracy, simplicity, flexibility and low cost. The computer's power supply produces a pulse at logic voltages for either each half-wave or each zero crossing of AC mains. A wire carries the pulse to an interrupt. The interrupt handler software counts cycles, seconds, etc. In this way, it can provide an entire clock and calendar. The clock also usually formed the basis of computers' software timing chains; e.g. it was usually the timer used to switch tasks in an operating system. Counting timers used in modern computers provide similar features at lower precision, and may trace their requirements to this type of clock. (e.g. in the PDP-8, the mains-based clock, model DK8EA, came first, and was later followed by a crystal-based clock, DK8EC.) A software-based clock must be set each time its computer is turned on. Originally this was done by computer operators. When the Internet became commonplace, network time protocols were used to automatically set clocks of this type. In Europe, North America and some other grids, this RTC works because the frequency of the AC mains is adjusted to have a long-term frequency accuracy as good as the national standard clocks. That is, in those grids this RTC is superior to quartz clocks and less costly. This design of RTC is not practical in portable computers or grids (e.g. in South Asia) that do not regulate the frequency of AC mains. Also it might be thought inconvenient without Internet access to set the clock. Clockless CPUsSome motherboards are made without real time clocks. The real time clock is omitted either out of the desire to save money (as in the Raspberry Pi system architecture) or because real time clocks may not be needed at all (as in the Arduino system architecture). See also{{Portal|Computer Science}}
References1. ^{{cite web |first = Jaakko |last = Ala-Paavola |coauthors = |title = Software interrupt based real time clock source code project for PIC microcontroller |date = 2000-01-16 |accessdate = 2007-08-23 |url = http://users.tkk.fi/~jalapaav/Electronics/Pic/Clock/index.html |deadurl = yes |archiveurl = https://web.archive.org/web/20070717134822/http://users.tkk.fi/~jalapaav/Electronics/Pic/Clock/index.html |archivedate = 2007-07-17 |df = }} 2. ^{{Citation | title = Enabling Timekeeping Function and Prolonging Battery Life in Low Power Systems | publisher = NXP Semiconductors | year =2011 | url =https://www.digikey.com/en/articles/techzone/2011/dec/enabling-timekeeping-function-and-prolonging-battery-life-in-low-power-systems}} 3. ^{{Patent|US|5893044|Real time clock apparatus for fast acquisition or GPS signals}} 4. ^{{Citation | title = New PCF2123 Real Time Clock Sets New Record in Power Efficiency | publisher = futurle | url = http://www.futurlec.com/News/Philips/PCF2123.shtml}} 5. ^{{Citation | title =Application Note 3816 | publisher =Maxim/Dallas Semiconductor | year =2006 | url =http://www.maxim-ic.com/appnotes.cfm/an_pk/3816}} 6. ^{{cite web |last = Torres |first = Gabriel |title = Introduction and Lithium Battery |url = http://www.hardwaresecrets.com/article/81 |work = Replacing the Motherboard Battery |publisher = hardwaresecrets.com |accessdate = June 20, 2013 |date = 24 November 2004 |deadurl = yes |archiveurl = https://web.archive.org/web/20131224085334/http://www.hardwaresecrets.com/article/81 |archivedate = 24 December 2013 |df = }} 7. ^1 {{Citation | title =Application Note 10337 | publisher =ST Microelectronics | year =2004 | pages = 2 | url =}} 8. ^{{Citation | title =Application Note U-502 | publisher =Texas Instruments | year =2004 | pages = 13 | url =http://focus.ti.com/analog/docs/techdocsabstract.tsp?familyId=475&abstractName=slua051}} 9. ^{{Citation | title =Application Note 1994 | publisher =Maxim/Dallas Semiconductor | year =2003 | url =http://www.maxim-ic.com/appnotes.cfm/an_pk/1994}} 10. ^{{cite web|title=Maxim DS3231m|url=https://datasheets.maximintegrated.com/en/ds/DS3231M.pdf |website=Maxim ds3231m RTC |publisher=Maxim Inc. |accessdate=26 March 2019}} 11. ^{{cite web|title=Highly Accurate Real-Time Clocks|url=https://www.maximintegrated.com/en/products/digital/real-time-clocks/highly-accurate-real-time-clocks.html|publisher=Maxim Semiconductors|accessdate=20 October 2017}} 12. ^{{cite web|title=Chip Scale Atomic Clock|url=https://www.microsemi.com/product-directory/clocks-frequency-references/3824-chip-scale-atomic-clock-csac|website=Microsemi|accessdate=20 October 2017}} 13. ^{{cite web | title = ULi M1573 Southbridge Specifications | publisher = AMDboard.com | url = http://www.amdboard.com/ali_uli_m1573.html | accessdate = 2007-08-23 }} 14. ^{{cite web|title=GPS Clock Synchronization|url=https://spectracom.com/resources/essential-education/gps-clock-synchronization|publisher=Spectracom|accessdate=20 October 2017}} 15. ^{{cite web|title=Product: USB Radio Clock|url=https://www.meinbergglobal.com/english/products/usb-wwvb-clock.htm|publisher=Meinburg|accessdate=20 October 2017}} 16. ^{{cite web|last1=Digital Equipment Corp.|title=PDP-8/E Small Computer Handbook, 19|url=https://www.grc.com/pdp-8/docs/PDP-8_Small_Computer_Handbook_1972.pdf|publisher=Gibson Research|accessdate=12 November 2016|pages=7-25, the DK8EA}} External links
3 : Computer real-time clocks|Clocks|Integrated circuits |
随便看 |
|
开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。