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.
Anyone gotten the RTC timer to work without interrupts - only using the RTCF flag on the LPC93x? I can't seem to get the timer to start. I've used this chip for a while on various designs, and use Timer0 and Timer1. But, can't seem to figure out RTC Timer. It never moves from 0x3842, and sits in the while loop forever. What flag/bit am I missing? Thanks.
void delayrtc(unsigned int x) { PCONA &= 0x7F; // Power on RTC RTCCON &= 0x7F; // flag reset RTCH = 0x38; // roughly 1 MS RTCL = 0x42; RTCCON = 0x61; // uses internal clock, start timer while ((RTCCON & 0x80) == 0); RTCCON = 0x60; // stop timer and reset flag Print_Text(1,1,"Delay Done"); }
Not that I know anything about your uC, but ...
PCONA &= 0x7F; // Power on RTC RTCCON &= 0x7F; // flag reset
... don't you have any flags to set? You're only deleting bit 8 from PCONA and RTCCON. I'd expect you'd have to turn something on, too.
OK, now I feel dumb. Please ignore my post.
you are aware of the CodeArchitect free from http://www.esacademy.com I hope
Erik
I didn't find anything applicable to the RTC timer for the LPC9xx chip.