- 论坛徽章:
- 0
|
原帖由 jn200002 于 2008-6-11 12:22 发表
In the power-off mode, the power management wakeup (PMWKUP) signal is activated as well as the ALMINT. The RTC
alarm register (RTCALM) determines the alarm enable/disable status and the condition of the alarm time setting.
在电源关闭模式(有电池的情况下),电源管理的PMWKUP信号和ALMINT寄存器都是活动的.以设定的报警时间为条件,来决定RTCALM的使
能状态.
上面这个翻出来了,如果有问题请提出.
TICK TIME INTERRUPT 滴答时间中断
The RTC tick time is used for interrupt request. The TICNT register has an interrupt enable bit and the count
value for the interrupt. The count value reaches '0' when the tick time interrupt occurs. Then the period of
interrupt is as follows:
Period = ( n+1 ) / 128 second
n: Tick time count value (1~127)
This RTC time tick may be used for real time operating system (RTOS) kernel time tick. If time tick is generated
by the RTC time tick, the time related function of RTOS will always synchronized in real time.
RTC的滴答时间用于中断请求.TICNT积存器有一个中断使能位和count value提供中断.当count value为0时,滴答时间中断发生.
中断的周期公式:周期=( n+1 ) / 128 second n是count value (1~127)
这个RTC时间滴答,也能用做时时操作系统(RTOS)的核心时间滴答,如果RTC时间抵达发生,那么RTOS里与时间相关的函数会总是与它同步的.
后面半句实在翻的太恶心,因为不理解count value是啥意思,那个公式的意义,最后一句怎么理解,请知道的人给指导下,谢谢
>>The RTC alarm register (RTCALM) determines the alarm enable/disable status and the condition of the alarm time setting.
通過RTCALM寄存器設定alarm開啟/關閉以及alarm開啟條件
>>The count value reaches '0' when the tick time interrupt occurs.
count value就是計數器的值
中斷發生時計數器的值count value置0
>>This RTC time tick may be used for real time operating system (RTOS) kernel time tick.
>> If time tick is generated by the RTC time tick, the time related function of RTOS will always synchronized in real time.
time tick就相當於時鍾的"秒針"(並不一定是秒了,總之是你的RTC的最小單位,取決於CPU時鐘頻率)
這個"秒針"可能用於實時操作系統(RTOS)的核心時鍾(最小單位).
如果這個"秒針"由實時時鍾的秒針創建的話, 實時操作系統(RTOS)的時間函數就會和實時時鍾同步.
這裏的實時時鐘就是指能提供精確的1s的時鐘,比如 32.768khz |
|