免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3421 | 回复: 9
打印 上一主题 下一主题

s3c2410手册RTC看的时候有点问题... [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-06-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是啥意思,那个公式的意义,最后一句怎么理解,请知道的人给指导下,谢谢

[ 本帖最后由 jn200002 于 2008-6-11 13:10 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2008-06-11 13:30 |只看该作者
原帖由 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

论坛徽章:
0
3 [报告]
发表于 2008-06-11 13:50 |只看该作者

回复 #2 bitmilong 的帖子

汗ING偶错的挺离谱的~ 果然贴切!多谢解释!继续向下~我发现我以为正确的好象多有出入,
KEEP MOVING!

论坛徽章:
0
4 [报告]
发表于 2008-06-11 14:12 |只看该作者
ROUND RESET FUNCTION 重置XX不知怎么翻译~~
The round reset function can be performed by the RTC round reset register (RTCRST). The round boundary (30,
40, or 50 sec.) of the second carry generation can be selected, and the second value is rounded to zero in the
round reset. For example, when the current time is 23:37:47 and the round boundary is selected to 40 sec, the
round reset changes the current time to 23:38:00.

NOTE
All RTC registers have to be accessed for each byte unit using the STRB and LDRB instructions or char
type pointer.

ROUND RESET FUNCTION能被RTCRST寄存器执行,这个边界为30 40 50秒,如果选中其中一个,那秒的值就会变0.举例,当前时间为

23:37:47,如果设定边界为40秒的话,当前时间变为 23:38:00.
注意:
所有的RTC寄存器不得不被 STRB和LDRB或者字符型的指针按字节存取.


实在不明白,设置这样一个边界有什么意义...哪里会用到这样的进位啊?STRB或LDRB是什么DONGDONG?


接下来是各寄存器位代表的意义及如何设置,这就不用拿上来了.

THANKS FOR MR.位米龙 歪哩歪哩 嘛去!

论坛徽章:
0
5 [报告]
发表于 2008-06-11 22:22 |只看该作者
樓主的翻譯著實很讓人崩潰,呵呵

STRB和LTRB是ARM的彙編指令

詳細資料可以參考http://linux.chinaunix.net/bbs/thread-999392-1-3.html

论坛徽章:
0
6 [报告]
发表于 2008-06-12 08:46 |只看该作者
其实翻译出来就怕理解错了~哈哈~因为要是认识都错了,后面会比较郁闷的~感谢指正哇~

[ 本帖最后由 jn200002 于 2008-6-12 08:48 编辑 ]

论坛徽章:
0
7 [报告]
发表于 2008-06-12 10:00 |只看该作者
原帖由 jn200002 于 2008-6-12 08:46 发表
其实翻译出来就怕理解错了~哈哈~因为要是认识都错了,后面会比较郁闷的~感谢指正哇~



恭喜恭喜

人呀,最恐怖的就是每天都有進步,後果不堪設想

论坛徽章:
0
8 [报告]
发表于 2008-06-12 11:12 |只看该作者

回复 #7 bitmilong 的帖子

晕,我是真想每天都能有进步~可是奈何不懂的太多,底子太差,最近很多在一个问题上迂回好多次,然后才能有稍微清晰一些的认识,就象这手册,2周前扫过一次,昨天又看完才有些认识~把这块儿弄懂了后以后还会有让你崩溃的翻译出现的~哈哈哈


THANK U

nanosecond 是毫秒还是 纳秒腻~?嘿嘿,问题总是有很多滴~

论坛徽章:
0
9 [报告]
发表于 2008-06-12 11:14 |只看该作者

回复 #8 jn200002 的帖子

納秒=毫微秒=十亿分之一秒

论坛徽章:
0
10 [报告]
发表于 2008-06-12 13:21 |只看该作者

回复 #9 bitmilong 的帖子

OK! 3Q
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP