We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi!
I had inicialize RTC and it's work fine. Than I tested some other example and then I flash again first program with RTC and didn't work.
I'm using MCB2300 with LPC2378.
My inicialization
void RTC_init() { RTC_AMR = 0; RTC_CIIR = 0; RTC_CISS = 0; RTC_CCR = 0x00000010; // 32kHz osc RTC_PREINT = PREINT_RTC; //0 RTC_PREFRAC = PREFRAC_RTC; //0 RTC_CIIR |= 0x0001; //sec irq VICVectAddr13 = (unsigned long)rtc_irq; VICVectCntl13 = 10; //priority VICIntEnable |= 1<<13; RTC_CCR|=0x00000001; // RTC enable }
It could be a problem, that at start of procesor the most of registers are not init - have old values and have to be set? I looked all registers, but I didnt find nothing.
Thanke for your help
Peter
I have HW problem. The code was tested on another bord and works.
by
Does the 32kHz crystal oscillate?
No.
On VBAT pin is 3.1V, thats good. I will change oscillator and if will not be good, I will change CPU.