Has anybody software for MCF54415 RTC ?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Has anybody software for MCF54415 RTC ?

跳至解决方案
1,272 次查看
pierreschneider
Contributor I

Has anybody software for MCF54415 RTC ?

标签 (1)
1 解答
1,105 次查看
PaoloRenzo
Contributor V

Hope attachment might help

------------------

//do something

    rtc_unlock_seq();

    printf("RTC: %x\n\r",MCF_RB_RTC_CFG_DATA);    

    MCF_RB_RTC_CFG_DATA = 0x00000008;

    printf("RTC: %x\n\r",MCF_RB_RTC_CFG_DATA);

    RTC_GetTime();

------------------

Good luck


在原帖中查看解决方案

3 回复数
1,106 次查看
PaoloRenzo
Contributor V

Hope attachment might help

------------------

//do something

    rtc_unlock_seq();

    printf("RTC: %x\n\r",MCF_RB_RTC_CFG_DATA);    

    MCF_RB_RTC_CFG_DATA = 0x00000008;

    printf("RTC: %x\n\r",MCF_RB_RTC_CFG_DATA);

    RTC_GetTime();

------------------

Good luck


1,104 次查看
pierreschneider
Contributor I

Hi Paolo,

Thanks for the information. It was helpfull, now my RTC is clocking.

One question about RTC:

What is the meaning of OSCBYP=0 On-chip 32-kHz oscillator not bypassed ?

Does it mean that the 32Khz is taken from the internally clock system and not from the external 32KHz crystal at RTC_EXTAL ?

Best regards

Pierre Schneider

0 项奖励
回复
1,105 次查看
PaoloRenzo
Contributor V

Nice to hear things are working at your side Pierre. OSCBYP=0 means ext 32.768KHz is used as the RTC reference. If this post helps you, don't forget to mark it as the solution :-)

0 项奖励
回复