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 CCS Technical Support

DS1302 parameters

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



Joined: 25 Apr 2011
Posts: 297

View user's profile Send private message

DS1302 parameters
PostPosted: Sun Dec 30, 2012 1:16 pm     Reply with quote

Dear All,

I am using the DS1302 RTC and in the program, I have the following code:

Code:
rtc_set_datetime(BYTE day, BYTE mth, BYTE year, BYTE dow, BYTE hr, BYTE min)


Now I made a button to vary the minutes. How I write on the minutes to the RTC and not all the parameters?

At the moment I am using the
Code:
rtc_set_datetime
derivative but I am sending all the parameters and I am getting a mess!

Thank
temtronic



Joined: 01 Jul 2010
Posts: 9246
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Sun Dec 30, 2012 1:20 pm     Reply with quote

simple...

Just modify YOUR version of the 1302 driver to add a 'function' that writes the minutes(or other unique) variable to the appropriate 1302 register.

Since the 1302 driver is fairly well documented (along with the 1302 datasheet) this is an easy task...less than 1 hour.

hth
jay
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