- 論壇徽章:
- 0
|
原帖由 jn200002 于 2008-6-11 12:22 發(fā)表 ![]()
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.
在電源關(guān)閉模式(有電池的情況下),電源管理的PMWKUP信號(hào)和ALMINT寄存器都是活動(dòng)的.以設(shè)定的報(bào)警時(shí)間為條件,來(lái)決定RTCALM的使
能狀態(tài).
上面這個(gè)翻出來(lái)了,如果有問(wèn)題請(qǐng)?zhí)岢?
TICK TIME INTERRUPT 滴答時(shí)間中斷
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的滴答時(shí)間用于中斷請(qǐng)求.TICNT積存器有一個(gè)中斷使能位和count value提供中斷.當(dāng)count value為0時(shí),滴答時(shí)間中斷發(fā)生.
中斷的周期公式:周期=( n+1 ) / 128 second n是count value (1~127)
這個(gè)RTC時(shí)間滴答,也能用做時(shí)時(shí)操作系統(tǒng)(RTOS)的核心時(shí)間滴答,如果RTC時(shí)間抵達(dá)發(fā)生,那么RTOS里與時(shí)間相關(guān)的函數(shù)會(huì)總是與它同步的.
后面半句實(shí)在翻的太惡心,因?yàn)椴焕斫鈉ount value是啥意思,那個(gè)公式的意義,最后一句怎么理解,請(qǐng)知道的人給指導(dǎo)下,謝謝
>>The RTC alarm register (RTCALM) determines the alarm enable/disable status and the condition of the alarm time setting.
通過(guò)RTCALM寄存器設(shè)定alarm開(kāi)啟/關(guān)閉以及alarm開(kāi)啟條件
>>The count value reaches '0' when the tick time interrupt occurs.
count value就是計(jì)數(shù)器的值
中斷發(fā)生時(shí)計(jì)數(shù)器的值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就相當(dāng)於時(shí)鍾的"秒針"(並不一定是秒了,總之是你的RTC的最小單位,取決於CPU時(shí)鐘頻率)
這個(gè)"秒針"可能用於實(shí)時(shí)操作系統(tǒng)(RTOS)的核心時(shí)鍾(最小單位).
如果這個(gè)"秒針"由實(shí)時(shí)時(shí)鍾的秒針創(chuàng)建的話, 實(shí)時(shí)操作系統(tǒng)(RTOS)的時(shí)間函數(shù)就會(huì)和實(shí)時(shí)時(shí)鍾同步.
這裏的實(shí)時(shí)時(shí)鐘就是指能提供精確的1s的時(shí)鐘,比如 32.768khz |
|