Problem with RTC & PIT MPC5604B

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

Problem with RTC & PIT MPC5604B

1,524 次查看
Dmitriy1z
Contributor I

Hi all,

I am try to use RTC or PIT, but cant launch it. Here Init code of RTC. What can be missed for sucsessful launch of RTC?

thx for help)

RTC.RTCC.B.CNTEN = 1;

   

    RTC.RTCC.B.CNTEN=0;  

    RTC.RTCC.B.RTCIE=1;

    RTC.RTCC.B.FRZEN=0;

    RTC.RTCC.B.ROVREN=0;

    RTC.RTCC.B.RTCVAL=0x64;

    RTC.RTCC.B.APIEN=0;

    RTC.RTCC.B.APIIE=0;

    RTC.RTCC.B.CLKSEL=2; //16 MHz, 1 ms resolution

    RTC.RTCC.B.DIV512EN=1;

    RTC.RTCC.B.DIV32EN=1;

    RTC.RTCC.B.CNTEN=1;

    RTC.RTCS.B.RTCF=1;

标记 (2)
0 项奖励
回复
0 回复数