AnsweredAssumed Answered

Problem with RTC & PIT MPC5604B

Question asked by Dmitriy Yakushin on Apr 11, 2013

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;

 

Outcomes