S3C6410硬件RTC(实时时钟)


1、OVERVIEW综述
The Real Time Clock (RTC) unit can be operated by the backup battery when the system power is off. The data
include the time by second, minute, hour, date, day, month, and year. The RTC unit works with an external 32.768

KHz crystal and can perform the alarm function.

当系统电源关闭时,通过备用电源可以运行实时时钟(RTC)单元。数据包含的时间,即秒,分钟,小时,日期,日,月和年。RTC 工作由一个外部32.768kHz 的晶体驱动,并可以执行报警功能。

2、FEATURES特性

The Real Time Clock includes the following features:
• BCD number: second, minute, hour, date, day, month, and year. BCD编码。
• Leap year generator 闰年发生器。
• Alarm function: alarm-interrupt or wake-up from power-off mode.报警功能:报警中断或从断电模式中唤醒。
• Tick counter function: tick-interrupt or wake-up from power-off mode.时钟计数功能:时钟节拍中断或从断电模式中唤醒。
• Year 2000 problem is removed.这个在下面说,千年虫问题。
• Independent power pin (RTCVDD).
• Supports millisecond tick time interrupt for RTOS kernel time tick.可以用于实时操作系统的系统时钟

3、REAL TIME CLOCK OPERATION DESCRIPTION实时时钟的结构框图

3.1、 LEAP YEAR GENERATOR闰年发生器

The leap year generator can determine the last date of each month out of 28, 29, 30, or 31, based on data from
BCDDAY, BCDMON, and BCDYEAR. This block considers leap year in deciding on the last date. An 8-bit counter
can only represent 2 BCD digits, therefore it cannot decide whether “00” year (the year with its last two digitszeros) is a leap year or not.To solve this problem,the RTC block in 6410 has hard-wired logic to support the leap year in 2000. Note 1900 is not leap year while2000 is leap year. Therefore, two digits of 00 in 6410 denote 2000, not 1900.So, RTC in 6410 supports from 1901 to 2099.

闰年发生器通过BCDDAY, BCDMON 和BCDYEAR 的数据来决定每个月的最后一天是28,29,30 还是31。
这个模块是通过决定最后的日期来判断闰年的。一个8 位的计数器只能代表两个BCD 数字,因此它不能决
定‘00’年(年的最后两个数字为‘00’)是不是闰年. 举例来说,它不能区分1900 年和2000 年。要解决这个问题,S3C6410 中的实时时钟模块,在2000 年中,硬连接逻辑支持闰年。注意1900 年不是闰年,
而2000 年是闰年。因此在S3C6410 中的‘00’的两个数字表示2000 而不是1900。所以6410支持1901年到2099年。

  • 1
  • 2
  • 3
  • 下一页

相关内容