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

Please help with problems reading day and dow on DS1307

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



Joined: 07 Jan 2006
Posts: 64
Location: Braga

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

Please help with problems reading day and dow on DS1307
PostPosted: Thu Mar 03, 2011 10:40 pm     Reply with quote

I use this driver DS1307 founded on drivers directory of CCS http://www.ccsinfo.com/forum/viewtopic.php?t=23255
connected DS1307 as follows :

pin 1: Crystal 32.768Khz
pin 2: Crystal 32.768Khz
pin 3: V + bat
pin 4: GND
pin 5: SDA pull-up resistor 4.7 K to +5V
pin 6: SCL pull-up resistor 4.7 K to +5V
pin 7: NC
pin 8: +5V

Vbat is 3.0 V.

I write once during program this date and hours eg.: ds1307_set_date_time(04,03,11,1,23,59,30)

1 - 4/03/2011 23:59'30 and if I wait for 0:00:00 just for test, date and dow will increase, day now is "5" and dow is "2" but if I remove power from pic, the reading date will be:
day->"0"
dow->"7"
month ->"03"
year ->"11"
0 - 0/03/2011 0:00'xx

It seems that is now handling very well with day and dow values
any ideas, please ?
jruibarroso



Joined: 07 Jan 2006
Posts: 64
Location: Braga

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

PostPosted: Fri Mar 04, 2011 8:43 am     Reply with quote

PROBLEM SOLVED !! DS1307 from china supplier !! they don't store day and dow
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