Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

ds1307 +ch bit activating

Status
Not open for further replies.

omid_juve

Full Member level 1
Joined
Jul 1, 2007
Messages
97
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,990
ds1307 bascom

what conditions can change a predefined ch bit in second register that is set to zero to change to 1 and cause the ds1307 to stop working?
 

ch bit

sorry if i'm wrong understanding your post, but in ds1307 ch bit is in register 00H, however in my experience with ds1307, only leaking backup battery will destroy register value and make the chips stop to works
 

ds1307 code atmega16

in my project i have 3 device on the i2c bus at24c256,atmega16(as master),ds1307
but my project works fine for about 1 month but after it the ds1307 stops working
do u have any idea for this problem?
 

bascom ds1307

Is the at24c256 still working? Any error flag from the ds1307? As far as I know, 1307 is very durable in many condition including over voltage. That problem could be software, try to control the ds1307 manually (such as setting the clock) and see if there is any response.
 

ds1307+bascom+backup

the at24c256 is working properly the only error that i get is that after sometimes(about 2 or 3 weeks) the CH bit will be disabled (tie to 1) and i don`t know why? i use bascom to write code for my atmega16 and i defined i2cdelay=10 (100khz clock) for ds1307 data transfer and i2cdelay=1(400khz) for at24c256 data transfering
 

atmega16 ds1307

omid_juve said:
in my project i have 3 device on the i2c bus at24c256,atmega16(as master),ds1307
but my project works fine for about 1 month but after it the ds1307 stops working
do u have any idea for this problem?


Greetings,

May be a bug in your code when you read the registers from the RTC.

When you read/write them (registers) be sure you don't overwrite the bit 7 of the register 00H....

Additionally, in the circuit, check soldering on VCC and pull-ups resistors....


Good luck!
 

Re: ds1307 code atmega16

May be ur battery stopped working , strange if no voltage is given to DS1307 battery backup pin(3rd pin) it stops working ,no newbie should make the mistake ,i wasted lot of time on it concentrating on software.....
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top