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.

[General] TWO RTC- DS1307 Interfacing with any microcontroller Using I2c

Status
Not open for further replies.

cnandha19

Member level 3
Member level 3
Joined
Aug 28, 2015
Messages
59
Helped
1
Reputation
2
Reaction score
1
Trophy points
8
Activity points
604
1.How to interface 2 RTC DS1307 with any microcontroller ??
2. wheather address for 2 devices will be same address or different address (NOTE:Both connected in same bus) and why explain it please
 

Easyrider83

Advanced Member level 5
Advanced Member level 5
Joined
Oct 11, 2011
Messages
1,608
Helped
374
Reputation
748
Reaction score
362
Trophy points
1,363
Location
Tallinn, Estonia
Activity points
8,575
They will not work on same bus without multiplexing. Use two buses will be easier I assume.
 

chandu.kurapati

Full Member level 3
Full Member level 3
Joined
Oct 31, 2013
Messages
186
Helped
5
Reputation
10
Reaction score
5
Trophy points
1,298
Location
Bengaluru, India
Activity points
2,778
Hi cnandha19,

The address of slave depends on address lines(hardware), go through DS1307 datasheet. Observe the pinning diagram then you come to know about it.

In software also can configure different address for different slaves on the same bus.

Let me know if you need more information..
 

hobbyckts

Advanced Member level 1
Advanced Member level 1
Joined
Mar 12, 2015
Messages
480
Helped
88
Reputation
176
Reaction score
85
Trophy points
28
Activity points
2,457
Connecting dual DS1307 on the same line will not be possible due to the address of the device which is 1101000 for all the DS1307. So it is not possible to change the address of the part. If you want to use same line for connecting dual RTC's then another type of RTC which works on I2C whose device address will be different. So that you can able to connect on the same line or else use same DS1307 but with different lines for two devices.


Even in Maxim Integarted website they were not shown any glimpses of connecting dual DS1307 on the same bus. Attaching the snapshot found on the website which could be useful if you are willing to use different RTC.

1.JPG
 

ahmed-agt

Member level 5
Member level 5
Joined
Nov 12, 2012
Messages
88
Helped
8
Reputation
16
Reaction score
9
Trophy points
1,288
Location
Nigeria
Activity points
1,825
For DS1307 as a slave device has a fixed address. However, why did you need two of the rtc? One can solve multi time application. Meanwhile, you can use a bilateral switch to select the SCL and SDA terminal of any one of the device. Also logic base mosfet can also be use.
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top