打印

RTC的分频

[复制链接]
1823|4
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
TT5656|  楼主 | 2013-1-23 10:48 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
为什么STM32参考手册里说RTC的秒中断最长可产生1秒的中断?实验显示明明可以超过一秒啊
沙发
logokfu| | 2013-1-23 22:13 | 只看该作者
具体代码呢

使用特权

评论回复
板凳
TT5656|  楼主 | 2013-1-23 23:32 | 只看该作者
**kfu 发表于 2013-1-23 22:13
具体代码呢

参考手册中关于RTC prescaler load register的描述:If the input clock frequency (fRTCCLK) is 32.768 kHz, write 7FFFh in this register to get a signal period of 1 second.只要给这个寄存器写的值大于7FFFh就比一秒长了啊

使用特权

评论回复
地板
JasonWangFAE| | 2013-1-24 08:16 | 只看该作者
If you used inpute colck is 32.768 and wrote the 7FFFH in the register , you can get a signal period of 1 second .
of course, you can write other value into the register .
for example :
   if you write 3FFFH into register , I think you will get a signal period of 2 second.

使用特权

评论回复
5
TT5656|  楼主 | 2013-1-24 09:10 | 只看该作者
JasonWangFAE 发表于 2013-1-24 08:16
If you used inpute colck is 32.768 and wrote the 7FFFH in the register , you can get a signal period ...

写3FFF时间应该是变短了吧

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

13

主题

61

帖子

0

粉丝