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

PIC16F84 and DS1307 dosen't work properly

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







PIC16F84 and DS1307 dosen't work properly
PostPosted: Wed Aug 31, 2005 4:34 am     Reply with quote

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







PostPosted: Wed Aug 31, 2005 4:52 am     Reply with quote

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

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Wed Aug 31, 2005 5:49 am     Reply with quote

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







PostPosted: Wed Aug 31, 2005 11:35 am     Reply with quote

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







PostPosted: Thu Sep 01, 2005 12:05 pm     Reply with quote

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

View user's profile Send private message Send e-mail

PostPosted: Thu Sep 01, 2005 12:07 pm     Reply with quote

I think they are asking the crystal speed connected to the DS1307.
Ttelmah
Guest







PostPosted: Thu Sep 01, 2005 2:21 pm     Reply with quote

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