CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

PCD RTCC functions

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Douglas Kennedy



Joined: 07 Sep 2003
Posts: 755
Location: Florida

View user's profile Send private message AIM Address

PCD RTCC functions
PostPosted: Sat Oct 31, 2009 2:12 am     Reply with quote

Quote:

setup_rtc (options, calibration);
This will setup the RTCC module for operation and also allows for calibration setup.
rtc_write(time_t datetime)
Writes the date and time to the RTCC module.
rtc_read(time_t datetime)
Reads the current value of Time and Date from the RTCC module.
setup_rtc_alarm(options, mask, repeat);
Configures the alarm of the RTCC module.
rtc_alarm_write(time_t datetime);
Writes the date and time to the alarm in the RTCC module.
rtc_alarm_read(time_t datetime);
Reads the date and time to the alarm in the RTCC module.


Has anyone had any success in working with the above
FvM



Joined: 27 Aug 2008
Posts: 2337
Location: Germany

View user's profile Send private message

PostPosted: Sat Oct 31, 2009 3:10 am     Reply with quote

I found, that PIC24 RTC isn't of much use because of the rather high current consumption and complicated
handling of power supply for battery backup, so I decided to use a DS1337.

But I wouldn't be surprized, if PCD built-in RTC functions are not fully operational.
Did you observe particular problems?
Douglas Kennedy



Joined: 07 Sep 2003
Posts: 755
Location: Florida

View user's profile Send private message AIM Address

PostPosted: Sat Oct 31, 2009 1:00 pm     Reply with quote

No I haven't tried it. I was thinking of using it as an alternative to Dallas DS RTC parts. I thought with 4.100 on the horizon it might be working and I'd take the plunge and move to PCD and try it. Anyway if anyone has it working it would be nice to have some feedback.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group