Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Thread

LPC2106 RTC Init

LPC2106 RTC Init

2004-03-19 by jpsg123

I'm initializing the RTC in this sequence:

1. Clear bit 0 of CCR.
2. Clear CIIR (no interrupts)
3. 0xFF to AMR (no alarms)
4. Set PREINT to 1799 (I'm running the PLL @58982400)
5. Set PREFRAC to 0
6. Set bit 0 of CCR

Should this work? I'm reading CTIME0 every two seconds and it seems the time is getting 
incremented by ~8 Hours. Anybody?

-John G-

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.