Problems and Solutions for Adj

2011-05-29 11:12:28来源: 互联网
Abstract: Recent U.S. legislation increased the daylight saving time (DST) period by four weeks. This change will affect systems that adjust for DST by using real-time clocks (RTCs) with an integrated DST adjustment. This note discusses issues related to the DST change, shows how to test and adjust the RTC for DST, and recommends how to manage DST in future designs.

Introduction and Background on DST Implementation

Since 1986 daylight saving time, in the U.S., begins on the first Sunday in April and ends on the last Sunday in October. Canada and Mexico also follow this schedule¹. Beginning in 2007, however, daylight saving time in the U.S. will begin on the second Sunday in March and end on the first Sunday in November².

Historically the DS1287 RTC, used on the IBM AT Personal Computer (PC), integrated the U.S. DST function. If the DST function was enabled, the operation system's (OS) clock used the time and date information from the RTC at boot time to reflect the proper time. For legacy reasons, all other Dallas Semiconductor multiplexed-bus interface RTCs also support the DST function. (See Table 1.)

Table 1. Multiplexed-Bus RTCs with Integrated DST Operation
DS12885/87 DS12R885/CR887/R887 DS14285/87
DS1685/87 DS1688/91 DS1689/93
DS17285/87 DS17485/87 DS17885/87

In modern operating systems the OS, not the RTC, handles the DST function. Since DST is implemented differently worldwide and can change often, using the OS allows relatively easy updates to the DST function and DST support. Embedded systems, in contrast, often have limited software, firmware, or memory resources, are limited to sales in North America, and may still implement DST by using the RTC's integrated DST function.

The DST function is important in some applications where there is no OS DST adjustment. Traffic signal controllers, for example, adjust the signal timing during morning and evening rush hours, which shift with DST. Other applications, such as FAX machines, may depend upon the user to input the correct time when a DST shift occurs, and therefore have little need for automatic DST adjustment.

Recommendations for Managing DST Adjustments

At this time Dallas Semiconductor does not plan to change the DST function on the multiplexed-bus product line. We encourage customers whose applications depend on proper adjustment to DST to update their products so that firmware handles DST changes, not the RTC.

Meanwhile, if you are managing changes for DST with an RTC, the Figure 1 flowchart will help you. It shows the basic steps required to test and adjust for DST. When adjusting back to standard time in November, a flag must be used to determine if the shift from 2:00AM to 1:00AM already occurred. This bit should be nonvolatile in case a power failure occurs in the hour after time has been reset to 1:00AM. A bit in one of the RTC's general-purpose battery-backed registers could be used for this purpose.

Conclusion

New designs should implement the DST function in firmware or software. By doing so, adjustments for changes in the DST schedule are more easily implemented.


Figure 1. Flowchart of the basic steps to test and adjust for DST with an RTC.

Notes

  1. States and provinces within the U.S., Mexico, and Canada choose to observe DST depending on local laws.
  2. Canada will adhere to the new U.S. DST schedule in 2007. As of this writing, it is not known whether Mexico will follow.

关键字:problems  and  solutions  for

编辑:神话 引用地址:http://www.eeworld.com.cn/mndz/2011/0529/article_9279.html
本网站转载的所有的文章、图片、音频视频文件等资料的版权归版权所有人所有,本站采用的非本站原创文章及图片等内容无法一一联系确认版权者。如果本网所选内容的文章作者及编辑认为其作品不宜公开自由传播,或不应无偿使用,请及时通过电子邮件或电话通知我们,以迅速采取适当措施,避免给双方造成不必要的经济损失。
论坛活动 E手掌握
微信扫一扫加关注
论坛活动 E手掌握
芯片资讯 锐利解读
微信扫一扫加关注
芯片资讯 锐利解读
推荐阅读
全部
problems
and
solutions
for

小广播

独家专题更多

TTI携TE传感器样片与你相见,一起传感未来
TTI携TE传感器样片与你相见,一起传感未来
TTI携TE传感器样片与你相见,一起传感未来
富士通铁电随机存储器FRAM主题展馆
富士通铁电随机存储器FRAM主题展馆
馆内包含了 纵览FRAM、独立FRAM存储器专区、FRAM内置LSI专区三大部分内容。 
走,跟Molex一起去看《中国电子消费品趋势》!
走,跟Molex一起去看《中国电子消费品趋势》!
 
电子工程世界版权所有 京ICP证060456号 京ICP备10001474号 电信业务审批[2006]字第258号函 京公海网安备110108001534 Copyright © 2005-2016 EEWORLD.com.cn, Inc. All rights reserved