此帖出自stm32/stm8论坛
最新回复
void BSP_Time_Adjust(u32 ctime){ PWR_BackupAccessCmd(ENABLE); // enable access backup register RTC_WaitForLastTask(); // Wait until last write operation on RTC registers has finished RTC_SetCounter(ctime); // Change the current time RTC_WaitForLastTask(); // Wait until last write operation on RTC registers has finished PWR_BackupAccessCmd(DISABLE);}
详情
回复
发表于 2009-7-23 19:02
| ||
|
||
| |
|
|
用RTC第一次初始化才行
此帖出自stm32/stm8论坛
| ||
|
||
| |
|
|
看看手册,这个问题很好解决
此帖出自stm32/stm8论坛
| ||
|
||
请楼主注意下,两个函数
此帖出自stm32/stm8论坛
| ||
|
||
| |
|
|
| |
|
|
| |
|
|
我的改写RTC计数器的过程,可参考
此帖出自stm32/stm8论坛
| ||
|
||
EEWorld Datasheet 技术支持