View previous topic :: View next topic |
Author |
Message |
Project_Nightmare HG Master

Joined: 12 Oct 2007 Posts: 119 Location: Gig Harbor, WA
|
Posted: Thu Oct 18, 2007 8:53 am Post subject: Help with interfacing a DS1307 with a PIC16F628 |
|
|
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 |
|
 |
|
 |
BronzeG3 HG Master

Joined: 30 Apr 2006 Posts: 134
|
Posted: Thu Oct 18, 2007 9:00 pm Post subject: |
|
|
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 |
|
 |
Project_Nightmare HG Master

Joined: 12 Oct 2007 Posts: 119 Location: Gig Harbor, WA
|
|
Back to top |
|
 |
Turd HG Ruler

Joined: 18 Aug 2007 Posts: 274 Location: Saskatchewan, Canada
|
Posted: Thu Oct 18, 2007 10:18 pm Post subject: |
|
|
I'm only a Basic noob, but that looks like Assembly to me.
eric |
|
Back to top |
|
 |
Project_Nightmare HG Master

Joined: 12 Oct 2007 Posts: 119 Location: Gig Harbor, WA
|
Posted: Thu Oct 18, 2007 10:28 pm Post subject: |
|
|
I also believe it is. It's written in C so it's most likely. |
|
Back to top |
|
 |
|