I'm trying to use the RTCC on a 24FJ64GA004 with the C30 compiler and
can't get the RTCC to increment, my test code is like this:
rtccTime Time; //typedef that contains the time
RtccInitClock(
RtccWrOn(); //enable RTCC peripheral
mRtccOn(); //switch on the RTCC
while(TRUE)
{
mRtccWaitSync(
RtccReadTime(
sprintf(s,"%
(int)Time.f.
UpdateLCDline1(
}
All I get is a constant "59:52:48" on my LCD display, i.e. the seconds
don't tick over.
Yes, my secondary 32.768KHz oscillator is working fine as I can run my
application from it no problem.
I know I probably have to convert the BCD encoded value to int before
displaying, but I would have expected the display to tick over at least.
I added the mRtccOn() command in addition to what the example shows,
but it makes no difference.
Any ideas?
Thaks
Dave.
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch format to Traditional
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe
__,_._,___
No comments:
Post a Comment