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

need sample code for ds1307 ram read and write

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
raman00084@gmail.com



Joined: 28 Jul 2014
Posts: 38

View user's profile Send private message

need sample code for ds1307 ram read and write
PostPosted: Mon Jul 28, 2014 11:32 am     Reply with quote

I want it use the 56x8 ram in ds1307. Please tell the procedure and send any sample program. Thank you.
regards
kalyan
temtronic



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

View user's profile Send private message

PostPosted: Mon Jul 28, 2014 12:08 pm     Reply with quote

In the ds1307 driver you should find these 2 functions at the end of the driver....

int8 ds1307_read_byte(int8 addr)
void ds1307_write_byte(int8 addr, int8 data)


hth
jay
raman00084@gmail.com



Joined: 28 Jul 2014
Posts: 38

View user's profile Send private message

ds1307 driver
PostPosted: Mon Jul 28, 2014 5:31 pm     Reply with quote

can you send the ds1307 driver
dyeatman



Joined: 06 Sep 2003
Posts: 1933
Location: Norman, OK

View user's profile Send private message

PostPosted: Mon Jul 28, 2014 6:56 pm     Reply with quote

The driver is copyrighted and that would violate the terms of this board.

The moderator will likely lock this thread...

Forum rule #10:
Quote:
10. Don't post the CCS example code or drivers, or ask for such code and drivers.

CCS examples and drivers that are included with the compiler are only available to licensed CCS users. If you are missing a driver or example that probably means your compiler is out of date, download or purchase the latest version. Please do NOT copy this code into the forums. You MAY #include such files in any libraries or examples that you wish to share.

_________________
Google and Forum Search are some of your best tools!!!!
ezflyr



Joined: 25 Oct 2010
Posts: 1019
Location: Tewksbury, MA

View user's profile Send private message

PostPosted: Mon Jul 28, 2014 8:14 pm     Reply with quote

Hi,

There are freely available DS1307 drivers in the code library, so just do a search and find them yourself. You are using the CCS compiler, right?

John
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