微波EDA网,见证研发工程师的成长!
首页 > 硬件设计 > 嵌入式设计 > s3c6410硬件RTC实时时钟

s3c6410硬件RTC实时时钟

时间:11-09 来源:互联网 点击:

3.4 、ALARM FUNCTION报警功能,可以对照看上面的那个结构框图
The RTC generates ALARM_INT(alarm interrupt) and ALARM_WK(alarm wake-up) at a specified time in the
power-down mode, power off mode or normal operation mode.

实时时钟在断电模式或正常操作模式的某一特定时间内产生一个报警信号

In normal operation mode, If ALARM registervalue is a same to BCD register, ALARM_INT is activated as well as the ALARM_WK.正常模式下,ALARM_INT和ALARM_WK都被激活

In the power-off and powerdown,If ALARM register value is a same to BCD register,ALARM_WK is activated.在断电模式下或省电模式下,ALARM_WK被激活

The RTC alarm register(RTCALM) determines the alarm enable/disable status and the condition of the alarm time setting.实时时钟报警寄存器(RTCALM),决定了报警启用/禁用的状态和报警时间设置的条件

3.5、 TICK TIME INTERRUPT 中断

The RTC tick time is used for interrupt request. TheRTCCON[8]register has an interrupt enable bit. The count
value reaches ‘0’ when the tick time interrupt occurs.实时时钟标记时间被用于中断请求。TICNT寄存器有一个中断使能位和一个相关的计数器值。每个时钟脉冲,计数值减一。当TICK TIME中断发生计数器的值达到‘0’,TICK TIME中断发生。中断周期

Then the period of interrupt is as follows:
Period = (n+1)/32768 second (n= tick counter value)

看下图,那个32768是可选的。


这个和下面这个寄存器有关:



公式中的n= tick counter value和下面这个寄存器有关:


3.6、 32.768 KHZ X-TAL CONNECTION EXAMPLE时钟晶振电路

4、寄存器:

s3c6410的RTC在linux中的驱动(1)的链接地址

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top