This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

rtc problem

i am using simulator lpc2378. my code is proper but rtc time not matching with clock time .there is various difference.

PCONP = 0x00000200; CLKSRCSEL = 0x01; RTC_CCR = 0x00000011; PCLKSEL0 =0x00000000; CCLKCFG = 5; RTC_PREINT = 0x016D; RTC_PREFRAC = 0x1B00; PLLCFG = 0x0000000B; //RTC_CISS = 0x01; RTC_CIIR = 0x00; RTC_SEC = 0x00; RTC_DOM = 0x08; RTC_DOW = 0x01; RTC_DOY = 0x0E0; RTC_MONTH = 0x08; RTC_YEAR =0x07DD;

is there any mistek ?

Parents
  • What is "various difference"?

    Where is the code - you didn't post anything you thought to be code and in need of being placed inside "pre" tags.

    It isn't enough to see code to know if everything is correct - without knowing crystal frequency and peripherial clocking settings it is unknown what input clock that RTC gets.

Reply
  • What is "various difference"?

    Where is the code - you didn't post anything you thought to be code and in need of being placed inside "pre" tags.

    It isn't enough to see code to know if everything is correct - without knowing crystal frequency and peripherial clocking settings it is unknown what input clock that RTC gets.

Children
No data