latha pasham

on reset --- RTC in 52235

Discussion created by latha pasham on Aug 25, 2009
Latest reply on Oct 2, 2009 by Xbot

Hi,

 

I am working on these issue from couple of days and i am not able to figure why it is happening so.

 

On reset all the RTC registers (seconds,minutes,hours days,alm  ) are reseting to zero. In the manual it is given as the values will be  arbitary .So I expected  on reset the values would be same before the shutdown but it is reseting on each power on and also reset. Can some body explain about this .

 

 

my plan is to provide back up using  battery for the RTC and make it to run continously to maintain real time .

 

I am also including the intailizatiopn code here.

 

 

MCF_CLOCK_RTCDR = ( (SYSTEM_CLOCK_KHZ * 1000 ) )  /* for configuring tjhe clock */

 

MCF_RTC_RTCCTL = (MCF_RTC_RTCCTL_EN ) ; 

MCF_SCM_PPMRL &= (0xFFFFEFFF)  ;                           /* enables the RTC*/

 

 

Please help me......i am stuck at this simple thing............

 

 

Thanks for your time 

Outcomes