FAQFAQ   GalleryGallery   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in   Forum RSS Feed   Hacked Gadgets Main Site 

Help with interfacing a DS1307 with a PIC16F628

 
Post new topic   Reply to topic    Hacked Gadgets Forum Index -> Electronic Help
View previous topic :: View next topic  
Author Message
Project_Nightmare
HG Master


Joined: 12 Oct 2007
Posts: 119
Location: Gig Harbor, WA

PostPosted: Thu Oct 18, 2007 8:53 am    Post subject: Help with interfacing a DS1307 with a PIC16F628 Reply with quote

I need help interfacing a RTC (DS1307) to a PIC16F628 in the Basic Language. I'm working on improving Alan's HDD Clock and I don't know how to program the RTC into the base program. I believe I got a second hand working in RB3 so that port can't be used.
Any suggestions?
Back to top
View user's profile Send private message Send e-mail

BronzeG3
HG Master


Joined: 30 Apr 2006
Posts: 134

PostPosted: Thu Oct 18, 2007 9:00 pm    Post subject: Reply with quote

The DS1307 is I2C based, but the 16F628 doesn't have an on board I2C system. You can make a software one by looking at the protocol, but I think it would be easier to get a PIC that has I2C in hardware.
Back to top
View user's profile Send private message
Project_Nightmare
HG Master


Joined: 12 Oct 2007
Posts: 119
Location: Gig Harbor, WA

PostPosted: Thu Oct 18, 2007 9:38 pm    Post subject: Reply with quote

I'm not so sure of it not having a I2C ( http://www.maxim-ic.com/appnotes.cfm/appnote_number/3921 ) Rolling Eyes . But it's in C and I need it in Basic, and even then, I don't know how to interface it into my code Crying or Very sad
Back to top
View user's profile Send private message Send e-mail
Turd
HG Ruler


Joined: 18 Aug 2007
Posts: 274
Location: Saskatchewan, Canada

PostPosted: Thu Oct 18, 2007 10:18 pm    Post subject: Reply with quote

I'm only a Basic noob, but that looks like Assembly to me.


eric
Back to top
View user's profile Send private message Visit poster's website
Project_Nightmare
HG Master


Joined: 12 Oct 2007
Posts: 119
Location: Gig Harbor, WA

PostPosted: Thu Oct 18, 2007 10:28 pm    Post subject: Reply with quote

I also believe it is. It's written in C so it's most likely.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Hacked Gadgets Forum Index -> Electronic Help 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