指南针是什么时候发明的| 什么是肝炎| 皇太后是皇上的什么人| 鸟死在家里是什么征兆| 经常落枕是什么原因引起的| 脚心凉是什么原因| 双向情感障碍是什么| 头痛应该挂什么科| 什么是白矮星| 三月七号是什么星座| 慎什么意思| 什么闻什么睹| 93是什么意思| 口苦吃什么好得快| 杏鲍菇炒什么好吃| 颧骨高适合什么发型| 男人肾虚吃什么最补| 饺子是什么意思| 胎儿左心室点状强回声是什么意思| 为什么会甲亢| 空亡是什么意思| 金针菇炒什么好吃| 情窦初开什么意思| 复姓什么意思| 什么牌子的辅酶q10好| 沱茶属于什么茶| 银鱼是什么鱼| 什么空调最省电| 什么是幼小衔接| bv是什么牌子| 来例假头晕是什么原因| 吃哈密瓜有什么好处| sry什么意思| 流产用什么药最快| 草酸对人体有什么危害| 颠茄片是什么药| 卖是什么意思| 水中加什么擦玻璃干净| 丹毒用什么药膏| 前囟门什么时候闭合| 牙齿酸软是什么原因| 缺钾吃什么补得最快| 肌酐是什么病| 常放屁是什么原因| 跖疣是什么样子图片| 三教九流什么意思| 上眼皮肿是什么原因| 心源性猝死是什么意思| 男人勃不起是什么原因造成的| 特殊门诊是什么意思| 吕布是什么生肖| 操逼是什么感觉| 天天想睡觉没精神是什么原因| 中秋节有什么活动| 老是胃疼是什么原因| 猫咪冠状病毒什么症状| 晚上七点是什么时辰| 不可磨灭是什么意思| 什么烧肉好吃| 病理检查是什么意思| 阴阳怪气什么意思| mps是什么意思| 便秘是什么| 女性睾酮高意味着什么| 不值一提是什么意思| 眼睛为什么不怕冷| 吃什么可以增强记忆力| 痛经是什么感觉| 怀孕后不能吃什么| 着床出血什么时候出现| 痢疾吃什么药最有效| 毛周角化症用什么药膏| 牛肚是牛的什么部位| close是什么意思| 吃雪燕有什么好处| 人棍是什么意思| 什么克木| 脸上长疙瘩是什么原因| 牙疼吃什么食物好得快| 二月什么星座| 老农民韩美丽结局是什么| 跪安是什么意思| 香菜什么时候种最合适| 宝宝不爱喝水有什么好的办法吗| 列巴是什么| 胸部有硬块挂什么科| 中医学专业学什么| 子宫增厚是什么原因| 腿部抽筋是什么原因引起的| 老子和孔子是什么关系| 1.8号是什么星座| 脸肿是什么原因| 腹部疼痛挂什么科| 对乙酰氨基酚是什么药| 步步生花是什么意思| 知青为什么要下乡| 五福是什么生肖| 味增是什么| c反应蛋白什么意思| 新型冠状病毒有什么症状| 绌是什么意思| 胎盘厚度代表什么| 锦衣玉食什么意思| 左手臂发麻是什么原因| 为什么会长鸡眼| 火气重喝什么茶| 肌肉萎缩是什么原因| 墨菲定律讲的是什么| 春天可以干什么| 胎心胎芽最晚什么时候出现| 胱抑素c高是什么原因| 流清鼻涕打喷嚏吃什么药| 黄喉是牛的什么部位| 什么鱼炖汤好喝又营养| 女性长胡子是什么原因| 查血型挂什么科| 精制盐是什么盐| 尿黄是因为什么| 中央处理器由什么组成| 脾五行属什么| 扁桃体发炎吃什么药比较好| 什么人不适合戴翡翠| 加湿器什么季节用最好| 地主是什么意思| 属蛇的是什么星座| 01年属什么生肖| 椎间盘变性是什么意思| 蓝色妖姬是什么意思| 什么东东| 科技馆里面有什么| 会考没过有什么影响| 尿液检查白细胞高是什么原因| 鳞状上皮炎症反应性改变是什么意思| 001是什么意思| 往生咒是什么意思| 吃什么能治白头发| 空腹喝牛奶为什么会拉肚子| 额额是什么意思| 持续耳鸣是什么原因引起的| 1977属什么生肖| orf是什么意思| 鹿鞭是什么| 抚今追昔的意思是什么| 复杂囊肿是什么意思| 藏红花是什么| 踢皮球是什么意思| 富三代是什么意思| 弘字五行属什么| 孩子吐了吃什么药| 东星斑为什么这么贵| 胃ca是什么意思| 三伏天是什么时候开始| 痛风喝什么水| 脑梗应该挂什么科| 间接胆红素偏高是什么原因| 海葵是什么| 梦见家里死人了代表什么预兆| 胆囊萎缩是什么原因| 脸色暗沉发黑是什么原因| 胃左边疼是什么原因| 送手镯的寓意是什么| 飧泄是什么意思| 糖皮质激素是什么| 除体内湿热最好的中成药是什么| pgi2在医学是什么意思| 鸣是什么家禽| 自缢是什么意思| 湿疣是什么病| 看腰挂什么科| 小case是什么意思| 乳房检查挂什么科| 梦见小麦粒是什么意思| 周杰伦为什么叫周董| 白细胞低说明什么| 伤元气是什么意思| 做月子要注意什么| 碗打碎了预示着什么| lala是什么意思| 脚底板脱皮是什么原因| 西安香烟有什么牌子| 脚肿是什么原因引起的| 良缘是什么意思| 同好是什么意思| 小孩半夜哭闹是什么原因| 强光斑是什么意思| 什么样人不能吃海参| 为什么阴道会放气| 孕检无创是检查什么的| 血糖高吃什么水果好| 什么的枫树| 泾渭分明是什么意思| 内分泌科主要看什么| 黑白蛇是什么蛇| 什么是盗汗症状| 直系亲属为什么不能输血| 鱼加完念什么| pas什么意思| 冬至是什么时候| 尿毒症吃什么最好| 肾湿热吃什么中成药| 疣是一种什么病| 月经稀发是什么意思| 为什么七星瓢虫是益虫| 如获至宝是什么意思| 什么牌子的蛋白质粉比较好| 冬是什么生肖| 女生肚子疼是什么原因| 微信屏蔽是什么意思| 肠炎吃什么药效果最好| 本色出演是什么意思| 觉是什么结构| 职称是什么| 阿莫西林不能和什么一起吃| 7朵玫瑰花代表什么意思| 性生活过后出血是什么原因| 目鱼和墨鱼有什么区别| 肾出问题了有什么症状| 吃什么对胃好| 状物是什么意思| 行大运是什么意思| 成都市市长是什么级别| 主动脉弓钙化什么意思| 万圣节应该送什么礼物| 麻是什么| used是什么意思| 八九年属什么| 肠道为什么会长息肉| ci是什么意思| 血稠是什么原因引起的| 一什么狼| 短效避孕药什么时候吃| 胃息肉是什么原因造成的| 嫁妆是什么意思| 牛的尾巴有什么作用| 170是什么号码| 黄体酮有什么作用与功效| 蛇什么时候出来活动| 卜卦是什么意思| 88年属什么的生肖| 小米是什么米| 小肚子一直疼是什么原因| 肝囊肿吃什么药| 眼干眼涩眼疲劳用什么眼药水| 东宫是什么生肖| 铁锈是什么| 血压高有什么好办法| 补钙什么季节补最好| 粗粮是什么| 容字五行属什么| 阴部瘙痒用什么药| 伤口好转的迹象是什么| 学位证是什么| 肺纤维化有什么症状| 弓形虫抗体阳性是什么意思| 吃什么去湿气最快最有效| 疯狂动物城狐狸叫什么| 食物中毒拉肚子吃什么药| 血脂高饮食应注意什么| 光动能手表是什么意思| 喝蒲公英根有什么好处| 普外科是看什么病的| 927什么星座| 丝瓜络是什么东西| 梦见收稻谷有什么预兆| 百度Jump to content

营口:曝光2017年度消费者投诉十大热点问题

From Wikipedia, the free encyclopedia
Dallas Semiconductor DS1287 real-time clock manufactured in 1988
Types of hobbyist RTC modules commercially available from China
百度 “我们这个行业对国外品牌的依赖度太大了,所以没有倒逼自主品牌企业提升创新竞争能力。

A real-time clock (RTC) is an electronic device (most often in the form of an integrated circuit) that measures the passage of 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 of day.

Terminology

[edit]

The 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.

Purpose

[edit]

Although keeping time can be done without an RTC,[1] using one has benefits:

  • Reliably maintains and provides current time through disruptive system states such as hangs, sleep, reboots, or if given sufficient backup power, full shutdown and hardware reassembly, without the need to have its time set again.
  • Low power consumption[2] (important when running from alternate power)
  • Frees the main system for time-critical tasks
  • Sometimes more accurate than other methods

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.

Some motherboards are made without RTCs. The RTC may be omitted out of desire to save money or reduce possible sources of hardware failure.

Power source

[edit]
Lithium battery inside the real-time clock IC

RTCs 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]

Timing

[edit]

Most RTCs use a crystal oscillator,[7][8] but some have the option of using the power line frequency.[9] The crystal frequency is usually 32.768 kHz,[7] the same frequency used in quartz clocks and watches. Being exactly 215 cycles per second, it is a convenient rate to use with simple binary counter circuits. The low frequency saves power, while remaining above human hearing range. 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 size and cost of an RTC by reducing its 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]

Typical crystal RTC accuracy specifications are from ±100 to ±20 parts per million (8.6 to 1.7 seconds per day), but temperature-compensated RTC ICs are available accurate to less than 5 parts per million.[11][12] In practical terms, this is good enough to perform celestial navigation, the classic task of a chronometer. In 2011, chip-scale atomic clocks became available. Although vastly more expensive and power-hungry (120 mW vs. <1 μW), they keep time within 50 parts per trillion (5×10?11).[13]

Examples

[edit]
Dallas Semiconductor (DS1387) real-time clock from an older PC. This version also contains a battery-backed SRAM.
Dallas DS1307 RTC chip in DIP-8 package

Many 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.[14][15] 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. A standard CMOS interface is available for the PC RTC.[16]

In newer computer systems, the RTC is integrated into the southbridge chip.[17][18]

Some microcontrollers have a real-time clock built in, generally only the ones with many other features and peripherals.

Radio-based RTCs

[edit]

Some 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[19] or ultra-low frequency radio transmissions broadcast by a national standards organization (i.e. a radio clock[20]).

Software-based RTCs

[edit]

The following system is well-known to embedded systems programmers, who sometimes must construct RTCs in systems that lack them. Most computers have one or more hardware timers that use timing signals from quartz crystals or ceramic resonators. These have inaccurate absolute timing (more than 100 parts per million) that is yet very repeatable (often less than 1 ppm). Software can do the math to make these into accurate RTCs. The hardware timer can produce a periodic interrupt, e.g. 50 Hz, to mimic a historic RTC (see below). However, it uses math to adjust the timing chain for accuracy:

time = time + rate.

When the "time" variable exceeds a constant, usually a power of two, the nominal, calculated clock time (say, for 1/50 of a second) is subtracted from "time", and the clock's timing-chain software is invoked to count fractions of seconds, seconds, etc. With 32-bit variables for time and rate, the mathematical resolution of "rate" can exceed one part per billion. The clock remains accurate because it will occasionally skip a fraction of a second, or increment by two fractions. The tiny skip ("jitter") is imperceptible for almost all real uses of an RTC.

The complexity with this system is determining the instantaneous corrected value for the variable "rate". The simplest system tracks RTC time and reference time between two settings of the clock, and divides reference time by RTC time to find "rate". Internet time is often accurate to less than 20 milliseconds, so 8000 or more seconds (2.2 or more hours) of separation between settings can usually divide the forty milliseconds (or less) of error to less than 5 parts per million to get chronometer-like accuracy. The main complexity with this system is converting dates and times to counts of seconds, but methods are well known.[21]

If the RTC runs when a unit is off, usually the RTC will run at two rates, one when the unit is on and another when off. This is because the temperature and power-supply voltage in each state is consistent. To adjust for these states, the software calculates two rates. First, software records the RTC time, reference time, on seconds and off seconds for the two intervals between the last three times that the clock is set. Using this, it can measure the accuracy of the two intervals, with each interval having a different distribution of on and off seconds. The rate math solves two linear equations to calculate two rates, one for on and the other for off.

Another approach measures the temperature of the oscillator with an electronic thermometer, (e.g. a thermistor and analog-to-digital converter) and uses a polynomial to calculate "rate" about once per minute. These require a calibration that measures the frequency at several temperatures, and then a linear regression to find the equation of temperature. The most common quartz crystals in a system are SC-cut crystals, and their rates over temperature can be characterized with a 3rd-degree polynomial. So, to calibrate these, the frequency is measured at four temperatures. The common tuning-fork-style crystals used in watches and many RTC components have parabolic (2nd-degree) equations of temperature, and can be calibrated with only 3 measurements. MEMS oscillators vary, from 3rd degree to fifth degree polynomials, depending on their mechanical design, and so need from four to six calibration measurements. Something like this approach might be used in commercial RTC ICs, but the actual methods of efficient high-speed manufacturing are proprietary.

Historic RTCs

[edit]

Some computer designs such as smaller IBM System/360s,[22] PDP-8s[23] and Novas used a real-time clock that was accurate, simple and low cost. In Europe, North America and some other grids, the frequency of the AC mains is adjusted to the long-term frequency accuracy of the national standards. In those grids, clocks using AC mains can keep perfect time without adjustment. Such clocks are not practical in portable computers or grids (e.g. in South Asia) that do not regulate the frequency of AC mains.

These computers' power supplies use a transformer or resistor divider to produce a sine wave at logic voltages. This signal is conditioned by a zero crossing detector, either using a linear amplifier, or a schmitt trigger. The result is a square wave with single, fast edges at the mains frequency. This logic signal triggers an interrupt. The interrupt handler software usually counts cycles, seconds, etc. In this way, it can provide an entire clock and calendar. In the IBM 360, the interrupt updates a 64-bit count of microseconds utilized by standardized systems software. The clock's jitter error is half if the clock interrupts for each zero crossing, instead of each cycle.

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.

See also

[edit]

References

[edit]
  1. ^ Ala-Paavola, Jaakko (2025-08-05). "Software interrupt based real time clock source code project for PIC microcontroller". Archived from the original on 2025-08-05. Retrieved 2025-08-05.
  2. ^ Enabling Timekeeping Function and Prolonging Battery Life in Low Power Systems, NXP Semiconductors, 2011
  3. ^ US 5893044  Real time clock apparatus for fast acquisition or GPS signals
  4. ^ New PCF2123 Real Time Clock Sets New Record in Power Efficiency, futurle
  5. ^ Application Note 3816, Maxim/Dallas Semiconductor, 2006
  6. ^ Torres, Gabriel (24 November 2004). "Introduction and Lithium Battery". Replacing the Motherboard Battery. hardwaresecrets.com. Archived from the original on 24 December 2013. Retrieved June 20, 2013.
  7. ^ a b Application Note 10337, ST Microelectronics, 2004, p. 2
  8. ^ Application Note U-502, Texas Instruments, 2004, p. 13
  9. ^ Application Note 1994, Maxim/Dallas Semiconductor, 2003
  10. ^ "Maxim DS3231m" (PDF). Maxim Inc. Retrieved 26 March 2019.
  11. ^ "Highly Accurate Real-Time Clocks". Maxim Semiconductors. Retrieved 20 October 2017.
  12. ^ Drown, Dan (3 February 2017). "RTC comparison".
  13. ^ "Chip Scale Atomic Clock". Microsemi. Retrieved 20 October 2017.
  14. ^ "Real-time Clock/Complementary Metal Oxide Semiconductor (RT/CMOS) RAM Information". IBM PC AT Technical Reference (PDF). International Business Machines Corporation. 1984. p. System Board 1–45.
  15. ^ MC146818A REAL-TIME CLOCK PLUS RAM (RTC) (PDF). Motorola Inc. 1984.
  16. ^ "CMOS RTC - Real Time Clock and Memory (ports 70h & 71h) :: HelpPC 2.10 - Quick Reference Utility :: NetCore2K.net". helppc.netcore2k.net.
  17. ^ "ULi M1573 Southbridge Specifications". AMDboard.com. Retrieved 2025-08-05.
  18. ^ 82430FX PCISET Data Set
  19. ^ "GPS Clock Synchronization". Safran (formerly Orolia). 9 December 2020. Retrieved 6 January 2021.
  20. ^ "Product: USB Radio Clock". Meinburg. Retrieved 20 October 2017.
  21. ^ "Calendrical Applications". U.S. Naval Observatory. U.S. Navy. Archived from the original on 2025-08-05. Retrieved 7 November 2019.
  22. ^ IBM (September 1968), IBM System/360 Principles of Operation (PDF), Eighth Edition, A22-6821-7 Revised by IBM (May 12, 1970), ibid., GN22-0354 and IBM (June 8, 1970), ibid., GN22-0361
  23. ^ Digital Equipment Corp. "PDP-8/E Small Computer Handbook, 19" (PDF). Gibson Research. pp. 7–25, the DK8EA. Retrieved 12 November 2016.
[edit]
胰管扩张是什么意思 河字五行属什么 脚底抽筋是什么原因引起的 尿出红色的尿是什么原因 nike是什么意思
ml代表什么单位 排卵期是什么时候 姝字五行属什么 免疫五项能查出什么病 盆腔积液吃什么药好
台风是什么 什么农药最毒 掉头发是缺什么 11月18日什么星座 打嗝医学术语是什么
肺结核有什么症状 右侧胸口疼是什么原因 女性尿血是什么原因 栀子黄是什么 饱和脂肪是什么意思
脂溶性是什么意思hcv9jop5ns8r.cn 白色虫子是什么虫图片hcv7jop6ns3r.cn 孕妇能吃什么水果hcv8jop0ns8r.cn 淋巴癌有什么症状hcv9jop8ns2r.cn 大脑镰钙化灶是什么意思hcv7jop4ns5r.cn
守望先锋是什么类型的游戏hcv7jop5ns5r.cn 葡萄套袋前打什么药sscsqa.com 酸豆角炒什么好吃hcv8jop6ns8r.cn 什么人容易得胆汁淤积hcv9jop7ns4r.cn 尿白细胞定量高是什么意思hcv8jop0ns1r.cn
照护保险是什么hcv8jop6ns3r.cn 检查颈椎挂什么科hcv8jop9ns0r.cn 梦见大门牙掉了是什么意思hcv9jop0ns4r.cn 什么节气hcv7jop9ns9r.cn trace是什么意思hcv8jop0ns1r.cn
1月22是什么星座hcv8jop0ns3r.cn 贩子是什么意思hcv8jop1ns2r.cn 草字头加西念什么hcv9jop2ns8r.cn 血压高呕吐是什么征兆hcv7jop9ns0r.cn 玉女心经是什么意思dajiketang.com
百度