RTC的分频

[复制链接]
 楼主| 发表于 2013-1-23 10:48 | 显示全部楼层 |阅读模式
为什么STM32参考手册里说RTC的秒中断最长可产生1秒的中断?实验显示明明可以超过一秒啊
 楼主| 发表于 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时间应该是变短了吧
发表于 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.
 楼主| 发表于 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就比一秒长了啊
发表于 2013-1-23 22:13 | 显示全部楼层
具体代码呢
您需要登录后才可以回帖 登录 | 注册

本版积分规则

13

主题

61

帖子

0

粉丝
快速回复 返回顶部 返回列表