秋天有什么| 鼠疫是由什么引起的| 脾主什么| 大拇指旁边的手指叫什么| 紫癜有什么症状| 鹿的部首是什么| pof是什么意思| 不可理喻什么意思| 凉皮加什么才柔软筋道| 新鲜感是什么意思| 3月14号是什么星座| 甲沟炎是什么引起的| 什么是烤瓷牙| 峦读什么| 肾结石有什么表现症状| 拉肚子应该吃什么| 什么大山| 记吃不记打的下一句是什么| 属鸡和什么属相相克| saucony是什么牌子| 长针眼是什么意思| 睾丸痒用什么药膏最好| 摩羯座和什么座最配| 依从性是什么意思| 减肥吃什么瘦的快| 经期血量少是什么原因| 男孩学什么技术最好| 情趣什么意思| 冰岛茶属于什么茶| 发腮是什么意思| k值是什么意思| 公共关系是什么意思| 梦见死人笑什么预兆| 女性尿频繁是什么原因| 腹部胀痛什么原因| 腮腺炎反复发作是什么原因| 右派是什么意思| 高血脂吃什么药效果好| 吝啬的意思是什么| 风平浪静是什么生肖| 巨蟹和什么星座最配| 姑娘是什么意思| 同病相怜是什么意思| 脑梗什么不能吃| 芒果有什么功效| 刘禅属什么生肖| 茯苓什么人不能吃| ox什么意思| 胆囊炎有什么症状表现| 天才是指什么生肖| 十月30号是什么星座| 梦见坐牢是什么预兆| ket是什么意思| 玫瑰花和什么一起泡水喝好| md是什么意思| 过氧化氢弱阳性什么意思| 身份是什么意思| 咖啡对身体有什么危害| 1990属什么生肖| 兽医是什么专业| 生酮是什么意思| 肾上腺瘤吃什么药可以消除| pigeon是什么牌子自行车| 冥寿是什么意思| 脚为什么会痒越抓越痒| 阴到炎用什么药好得快| 挫是什么意思| 玉兔是什么意思| 补充镁有什么好处| 脖子上长小肉粒是什么原因| 保质期是什么意思| 云指什么生肖| 松鼠咬人后为什么会死| dx是什么药| AG是什么| 三百年前是什么朝代| 为什么长鸡眼| 攒劲是什么意思| 家五行属什么| 奠什么意思| 弱视是什么| 什么情况下必须做胃镜| 手电筒的金属外壳相当于电路中的什么| 接骨草长什么样| 什么水果补充维生素c| 飞黄腾达是什么意思| 血糖高可以吃什么蔬菜| 沸去掉三点水念什么| 青城之恋是什么生肖| 玉树临风是什么生肖| 梦见手指流血是什么预兆| 脾挂什么科| 滢字五行属什么| 右胳膊发麻是什么原因| 为什么英文怎么说| nb是什么意思| nike是什么意思| 卫生院院长是什么级别| 丈夫的弟弟叫什么| lg是什么| 开除公职是什么意思| 便血挂什么科| 什么是白内障症状| 修身养性是什么意思| 户籍类型是什么| 炖乌鸡汤放什么配料| 羊排和什么一起炖好吃| 为什么会得骨癌| 梦之蓝是什么香型| 摘胆对身体有什么影响| 早上起来手麻是什么原因| 加德纳菌阳性是什么意思| 口干口臭口苦吃什么药| 草缸适合养什么鱼| 刚产下的蚕卵是什么颜色| 天天喝豆浆有什么好处和坏处| 经常胃疼是什么原因| 乳腺结节是什么引起的| 蛋白质用什么试剂鉴定| 77年的蛇是什么命| 大男子主义的男人喜欢什么样的女人| 没有高中毕业证有什么影响| 滇红是什么茶| 吃什么药头脑立刻清醒| 肺活量5000什么水平| 龟头是什么意思| 脚痒用什么药好| 木灵念什么| 舌头变黑是什么原因| 十二月二号是什么星座| 胃不舒服喝什么| 蜱虫咬了什么症状| 一个虫一个冉读什么| 四十岁月经量少是什么原因| 2012年属什么生肖| 前列腺回声欠均匀什么意思| 九月24日是什么星座| 非浅表性胃炎是什么意思| 束缚是什么意思| 低压高有什么症状| 什么是钙化结节| 激情什么意思| 小暑节气吃什么| 大便为什么是黑色的是什么原因| 牛油果有什么功效| 老化是什么意思| 今天吃什么菜| 打破伤风挂什么科| 手抽筋吃什么药| 秋天什么时候| feel是什么意思| 1号来月经什么时候是排卵期| 皮疹长什么样| 脾肾阴虚有什么症状| 产检挂什么科| 禾末念什么| 今年是什么| 凌晨五点是什么时辰| 第一次见家长送什么礼物好| 1218是什么星座| 坐久了脚肿是什么原因| 禁忌是什么意思| 周杰伦为什么喜欢昆凌| 教师节唱什么歌| 为什么宫颈会肥大| 吃了避孕药有什么反应| 夫字五行属什么| 阳痿吃什么| 蒸馏酒是什么酒| 比熊吃什么牌子的狗粮好| 小孩什么时候长牙| 红肉是指什么肉| 春梦了无痕是什么意思| 疱疹吃什么药可以根治| 男人纹身纹什么运气好| 九分裤配什么鞋| 省长什么级别| 怀孕吃什么宝宝会白| ye是什么颜色| 孕初期需要注意些什么| 喝椰子水有什么好处| 什么妖魔鬼怪什么美女画皮| 什么程度算精神出轨| 米酒不甜是什么原因| 6月18日什么星座| 云南小黄姜有什么功效| 早饱是什么意思| 全身酸痛吃什么药| 六味地黄丸有什么功效与作用| 用盐水洗脸有什么效果| 头晕去医院看什么科| decaf是什么意思| 腱鞘炎在什么位置| 垂直同步有什么用| 脸肿挂什么科| 生意盎然什么意思| 这个季节吃什么菜好| development是什么意思| 梦见打老婆是什么预兆| 伽马刀是什么| 用热毛巾敷眼睛有什么好处| 老司机什么意思| 脚面疼痛什么原因| 症瘕病是什么病| 什么是肾阳虚| jumper是什么衣服| 鼻窦炎吃什么药效果好| cold什么意思| 医院手环颜色代表什么| 梦见黑蛇是什么意思| 什么的草坪| 鱼油不适合什么人吃| 宝宝发烧拉肚子是什么原因| 羊胡子疮用什么药膏| 头晕吃什么可以缓解| 下体有异味是什么原因| 精神病吃什么药最好| 为什么手脚冰凉还出汗| 甲状腺囊肿是什么病| 喉咙疼痛吃什么药效果最好| 6月13日是什么星座| 农历六月初四是什么日子| 尿比重1.030是什么意思| 木命和什么命最配| 为什么不建议女人上环| 什么夺目| 吃燕麦片有什么好处| 镇委书记是什么级别| 下巴的痣代表什么| 三羊念什么字| 心绞痛用什么药最好| 梦到抓鱼是什么意思| 做肝功能检查挂什么科| 政法委是干什么的| 什么是点映| 为什么智齿老是发炎| 32年婚姻是什么婚| 手小的男人代表什么| kpi什么意思| 孕妇喝什么牛奶| 内科检查什么| 海南有什么水果| cin是什么意思| 发烧挂什么科| 撇嘴是什么意思| 孕妇应该吃什么蔬菜| 口腔溃疡要吃什么药| 中二是什么意思| 爱放屁是什么原因引起的| math是什么意思| 鬼针草有什么作用| 梦见很多小孩是什么意思| 犀利什么意思| 男生腿毛旺盛说明什么| 猫叫是什么意思| husky是什么牌子| 左侧头疼是什么原因引起的| 一本万利是什么意思| 全身发抖是什么原因| 行政助理是干什么的| 拿的起放的下是什么意思| 宾字五行属什么| cob是什么意思| 这是什么车| 百度Jump to content

依法查处"e租宝"等案 斩断伸向群众的黑手

From Wikipedia, the free encyclopedia
Dallas Semiconductor DS1287 real-time clock manufactured in 1988
Types of hobbyist RTC modules commercially available from China
百度 申请更方便5年内有过房屋交易也可申请新《细则》不再对公共租赁住房申请者5年内房产产权转移进行限制,也就是说5年内有过房屋买卖的市民,也能申请公租房。

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-06). "Software interrupt based real time clock source code project for PIC microcontroller". Archived from the original on 2025-08-06. Retrieved 2025-08-06.
  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-06.
  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-06. 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]
绿鼻涕是什么原因 得五行属什么 鳌虾吃什么 女兔配什么属相最好 长明灯是什么意思
中国是什么时区 雌激素过高吃什么药 脸霜什么牌子的好 虚心接受是什么意思 瘦了是什么原因
白头发吃什么药 得意门生是什么意思 老鹰代表什么生肖 阳痿是什么原因造成的 最贵的烟是什么
八七年属什么的 五月出生是什么星座 洗牙喷砂是什么意思 不显山不露水是什么意思 兵马未动粮草先行是什么意思
熟地是什么hcv7jop6ns8r.cn 眉毛白了是什么原因引起的inbungee.com 什么是海啸naasee.com cc代表什么意思hcv8jop4ns4r.cn 健脾胃吃什么食物好hcv9jop0ns5r.cn
子宫肌瘤是什么病严重吗hcv7jop4ns8r.cn 民兵是干什么的kuyehao.com 梓树为什么叫梧桐树dayuxmw.com 天团是什么意思hcv8jop2ns2r.cn 恋爱观是什么hcv8jop9ns7r.cn
下肢肿胀是什么原因hcv8jop6ns8r.cn 六月六吃什么hcv9jop1ns1r.cn 中途疲软吃什么药hcv9jop3ns0r.cn 转氨酶高挂什么科hcv8jop8ns5r.cn 梦见乌龟是什么意思hcv8jop4ns1r.cn
龙涎香什么味道inbungee.com 88什么意思tiangongnft.com 难于上青天是什么意思hcv8jop2ns4r.cn 如日中天是什么生肖hcv9jop0ns9r.cn 二黑是什么意思hcv8jop8ns7r.cn
百度