Problem with RTC & PIT MPC5604B

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Problem with RTC & PIT MPC5604B

1,004 Views
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;

Tags (2)
0 Kudos
Reply
0 Replies