
Application Note
DS1307 Hardware Interface
AN1759
3
The DS1307 has built-in power management circuitry to detect power
failures on the V
DD
pin and when detected will switch power over to the
battery back-up pin, V
BAT
. Access to the device is terminated when V
DD
falls below 1.25 x V
BAT
. Further accesses to the device are not allowed.
Onpowerup,thedeviceswitchespowerfromV
BAT
toV
DD
whentheV
DD
pin is 0.2 volts above V
BAT
. Once V
DD
is higher than 1.25 x V
BAT
, normal
operations can continue.
Address and data are communicated via the 2-wire bus. The DS1307
operates as a slave at all times and is accessed by first transmitting the
DS1307’s identification code on the bus.
DS1307 Hardware Interface
Pinout and Pin
Descriptions
Figure 1. DS1307 Pinout
V
DD
 and GND
These pins serve as the main power source for the device. When
+5 volts is applied to this pin, the device is fully accessible and data can
be read or written. If the power on the V
DD
pin falls below 1.25 x V
DD
, the
device switches its power supply to V
BAT
. At this point, reading and
writing to the device is prohibited. The timekeeping function and non-
volatile RAM are unaffected.
V
BAT
This pin is the power input for any standard 3-volt lithium battery or other
3-volt source. For proper operation, this voltage must be held between
2.5 and 3.5 volts. A lithium battery with at least a 35-mA hours rating will
back up the DS1307 for more than 10 years in the absence of power.
1
2
3
4
8
7
6
5
X2
V
BAT
GND
X1
SQW/OUT
SCL
SDA
V
DD
F
Freescale Semiconductor, Inc.
For More Information On This Product,
  Go to: www.freescale.com
n
.