View previous topic :: View next topic |
Author |
Message |
Bombay Guest
|
PIC16F84 and DS1307 dosen't work properly |
Posted: Wed Aug 31, 2005 4:34 am |
|
|
Hi
I 'm start my digital clock project with PIC16F84 and DS1307 but
the PIC16F84PIC16F84 and DS1307 dosen't work properly.
It can't even enable oscillator for DS1307. I use I2C driver from CCS
example.
Now I looking for a new source code for ds1307.
Please |
|
|
Ttelmah Guest
|
|
Posted: Wed Aug 31, 2005 4:52 am |
|
|
I'd look again at your wiring to the chips, things like the pull-up resistors on the I2C lines, which pins are connected, make sure no other peripheral is using the pins, and verify that each line is working properly.
The demo code _does_ work.
If the problem is still not obvious, come back with how you have things connected, what compiler version you are using etc..
Best Wishes |
|
|
asmallri
Joined: 12 Aug 2004 Posts: 1635 Location: Perth, Australia
|
|
Posted: Wed Aug 31, 2005 5:49 am |
|
|
Have you connected the battery? The DS1307 will no work correctly without it. _________________ Regards, Andrew
http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!! |
|
|
MAX3000 Guest
|
|
Posted: Wed Aug 31, 2005 11:35 am |
|
|
Hi Bombay
Are you sure ?
1.You must pull-up SDA and SCL pin with R 10K
2.Connect 3V battery to DS1307
3.What frequency of your crystal
more detail check out this DS1307 Example |
|
|
Bombay Guest
|
|
Posted: Thu Sep 01, 2005 12:05 pm |
|
|
Thank every body.
I have programming as MAX3000 introduce but it still dosen't work.
I don't know what is the problem.
My crystal 4 MHz and also connected 3V battery to DS1307 with R10 K pull-up on SDA and SCL pin.
Please help
Thank.
BB |
|
|
Mark
Joined: 07 Sep 2003 Posts: 2838 Location: Atlanta, GA
|
|
Posted: Thu Sep 01, 2005 12:07 pm |
|
|
I think they are asking the crystal speed connected to the DS1307. |
|
|
Ttelmah Guest
|
|
Posted: Thu Sep 01, 2005 2:21 pm |
|
|
What voltage is the PIC running at?. This one is 'vital'. The DS1307, won't allow you to talk to it, till the main supply rail reaches at least 1.25* the voltage on the battery pin. If the battery pin has (say) a lithium battry operating at 3.3v, the PIC's supply, must be over 4.125v, for the unit to work. This one can be very much a problem, when some batteries 'out of the box', give slightly more voltage than they are meant to give...
Best Wishes |
|
|
|