DS1307N Real-Time Clock: Circuit, Pinout, and Datasheet

Sophie

Published: 03 March 2022 | Last Updated: 17 April 2025

1313

DS1307N

DS1307N

Maxim Integrated

8 Terminations 5V 8 Pin DS1307 Real Time Clocks 0.032MHz

Purchase Guide

8 Terminations 5V 8 Pin DS1307 Real Time Clocks 0.032MHz

The DS1307N serial real-time clock (RTC) is a low-power clock/calendar with complete binary-coded decimal (BCD) and 56 bytes of NV SRAM. This article mainly introduces circuit, pinout, datasheet and other detailed information about Maxim Integrated DS1307N.

This video will show you how to use DS1307 Real Time Clock with Arduino code.

How to use DS1307 Real Time Clock with Arduino code

DS1307N Description

The DS1307N serial real-time clock (RTC) is a low-power clock/calendar with complete binary-coded decimal (BCD) and 56 bytes of NV SRAM. An  I2C  bidirectional bus is used to transport address and data serially.

The clock/calendar displays information such as seconds, minutes, hours, days, dates, months, and years. For months with fewer than 31 days, the end of the month date is automatically modified, including leap year corrections. The clock has an AM/PM indicator and works in either a 24-hour or 12-hour mode. The DS1307N includes a built-in power sensor circuit that detects power outages and switches to the backup source automatically. While the part is running on the backup supply, the timekeeping operation continues.


DS1307N Pinout

The following figure is DS1307N Pinout.

pinout.jpg

Pinout

Pin NumberPin NameDescription
1X1Standard 32.768kHz Quartz Crystal Connections The internal oscillator circuitry is set up to work with a crystal that has a load capacitance (CL) of 12.5pF. The oscillator's input, X1, can be connected to an external 32.768kHz oscillator if desired. If an external oscillator is attached to X1, the output of the internal oscillator, X2, is floating.
2X2
3VBATAny standard 3V lithium cell or other energy source can be used as a backup supply. For proper operation, battery voltage must be kept within the minimum and maximum limits. Between the battery and the VBAT pin, there may be diodes in series that prohibit correct operation. VBAT must be grounded if a backup source is not required. Internal circuitry sets the nominal power-fail trip point (VPF) voltage at which access to the RTC and user RAM is disallowed as 1.25 x VBAT nominal. In the absence of power, a lithium battery with 48mAh or more will power the DS1307 for more than 10 years at +25°C.
When utilized with a lithium battery, it is UL recognized to prevent reverse charging current.
4GNDGround.
5SDAInput/output of serial data. SDA is the I2 C serial interface's data input/output port. The SDA pin is open drain and requires a pullup resistor externally. Regardless of the voltage on VCC, the pullup voltage can be up to 5.5V.
6SCLInput for a serial clock. The I2 C interface's clock input, SCL, is used to synchronize data movement on the serial interface. Regardless of the voltage on VCC, the pullup voltage can be up to 5.5V.
7SQW/OUTOutput Driver (Square Wave). The SQW/OUT pin outputs one of four square-wave frequencies when the SQWE bit is set to 1. (1Hz, 4kHz, 8kHz, 32kHz). The SQW/OUT pin is an open drain pin that requires a pullup resistor externally. SQW/OUT can be used with either VCC or VBAT. Regardless of the voltage on VCC, the pullup voltage can be up to 5.5V. This pin can be left floating if not in use.
8VCCThe source of primary energy. The device becomes fully accessible and data can be written and read when voltage is provided within typical limits. Reads and writes are disabled when a backup supply is attached to the device and VCC falls below VTP. The reduced input voltage has no effect on the timekeeping function, though.


DS1307N CAD Model

The following figures are DS1307N Symbol, Footprint and 3D Model.

symbol.png

Symbol

footprint.png

Footprint

3d model.jpg

3D Model


DS1307N Features

• Completely Manages All Timekeeping Functions

o Real-Time Clock Counts Seconds, Minutes, Hours, Date of the Month, Month, Day of the Week, and Year with Leap-Year Compensation Valid Up to 2100

o 56-Byte, Battery-Backed, General-Purpose RAM with Unlimited Writes

o Programmable Square-Wave Output Signal

• Simple  Serial Port  Interfaces to Most Microcontrollers

o I2C Serial Interface

• Low Power Operation Extends Battery Backup Run Time

o Consumes Less than 500nA in Battery Backup Mode with Oscillator Running

o Automatic Power-Fail Detect and Switch Circuitry

• 8-Pin DIP and 8-Pin SO Minimizes Required Space

• Optional Industrial Temperature Range: -40°C to +85°C Supports Operation in a Wide Range of Applications

• Underwriters Laboratories ® (UL) Recognized


Specifications

Maxim Integrated DS1307N technical specifications, attributes, parameters and parts with similar specifications to Maxim Integrated DS1307N .
  • Type
    Parameter
  • Factory Lead Time
    6 Weeks
  • Contact Plating

    Contact plating (finish) provides corrosion protection for base metals and optimizes the mechanical and electrical properties of the contact interfaces.

    Tin
  • Mount

    In electronic components, the term "Mount" typically refers to the method or process of physically attaching or fixing a component onto a circuit board or other electronic device. This can involve soldering, adhesive bonding, or other techniques to secure the component in place. The mounting process is crucial for ensuring proper electrical connections and mechanical stability within the electronic system. Different components may have specific mounting requirements based on their size, shape, and function, and manufacturers provide guidelines for proper mounting procedures to ensure optimal performance and reliability of the electronic device.

    Through Hole
  • Mounting Type

    The "Mounting Type" in electronic components refers to the method used to attach or connect a component to a circuit board or other substrate, such as through-hole, surface-mount, or panel mount.

    Through Hole
  • Package / Case

    refers to the protective housing that encases an electronic component, providing mechanical support, electrical connections, and thermal management.

    8-DIP (0.300, 7.62mm)
  • Number of Pins
    8
  • Weight
    930.006106mg
  • Operating Temperature

    The operating temperature is the range of ambient temperature within which a power supply, or any other electrical equipment, operate in. This ranges from a minimum operating temperature, to a peak or maximum operating temperature, outside which, the power supply may fail.

    -40°C~85°C
  • Packaging

    Semiconductor package is a carrier / shell used to contain and cover one or more semiconductor components or integrated circuits. The material of the shell can be metal, plastic, glass or ceramic.

    Tube
  • Published
    2000
  • JESD-609 Code

    The "JESD-609 Code" in electronic components refers to a standardized marking code that indicates the lead-free solder composition and finish of electronic components for compliance with environmental regulations.

    e3
  • Pbfree Code

    The "Pbfree Code" parameter in electronic components refers to the code or marking used to indicate that the component is lead-free. Lead (Pb) is a toxic substance that has been widely used in electronic components for many years, but due to environmental concerns, there has been a shift towards lead-free alternatives. The Pbfree Code helps manufacturers and users easily identify components that do not contain lead, ensuring compliance with regulations and promoting environmentally friendly practices. It is important to pay attention to the Pbfree Code when selecting electronic components to ensure they meet the necessary requirements for lead-free applications.

    yes
  • Part Status

    Parts can have many statuses as they progress through the configuration, analysis, review, and approval stages.

    Active
  • Moisture Sensitivity Level (MSL)

    Moisture Sensitivity Level (MSL) is a standardized rating that indicates the susceptibility of electronic components, particularly semiconductors, to moisture-induced damage during storage and the soldering process, defining the allowable exposure time to ambient conditions before they require special handling or baking to prevent failures

    1 (Unlimited)
  • Number of Terminations
    8
  • ECCN Code

    An ECCN (Export Control Classification Number) is an alphanumeric code used by the U.S. Bureau of Industry and Security to identify and categorize electronic components and other dual-use items that may require an export license based on their technical characteristics and potential for military use.

    EAR99
  • Type
    Clock/Calendar
  • Voltage - Supply

    Voltage - Supply refers to the range of voltage levels that an electronic component or circuit is designed to operate with. It indicates the minimum and maximum supply voltage that can be applied for the device to function properly. Providing supply voltages outside this range can lead to malfunction, damage, or reduced performance. This parameter is critical for ensuring compatibility between different components in a circuit.

    4.5V~5.5V
  • Terminal Position

    In electronic components, the term "Terminal Position" refers to the physical location of the connection points on the component where external electrical connections can be made. These connection points, known as terminals, are typically used to attach wires, leads, or other components to the main body of the electronic component. The terminal position is important for ensuring proper connectivity and functionality of the component within a circuit. It is often specified in technical datasheets or component specifications to help designers and engineers understand how to properly integrate the component into their circuit designs.

    DUAL
  • Peak Reflow Temperature (Cel)

    Peak Reflow Temperature (Cel) is a parameter that specifies the maximum temperature at which an electronic component can be exposed during the reflow soldering process. Reflow soldering is a common method used to attach electronic components to a circuit board. The Peak Reflow Temperature is crucial because it ensures that the component is not damaged or degraded during the soldering process. Exceeding the specified Peak Reflow Temperature can lead to issues such as component failure, reduced performance, or even permanent damage to the component. It is important for manufacturers and assemblers to adhere to the recommended Peak Reflow Temperature to ensure the reliability and functionality of the electronic components.

    260
  • Supply Voltage

    Supply voltage refers to the electrical potential difference provided to an electronic component or circuit. It is crucial for the proper operation of devices, as it powers their functions and determines performance characteristics. The supply voltage must be within specified limits to ensure reliability and prevent damage to components. Different electronic devices have specific supply voltage requirements, which can vary widely depending on their design and intended application.

    5V
  • Terminal Pitch

    The center distance from one pole to the next.

    2.54mm
  • Time@Peak Reflow Temperature-Max (s)

    Time@Peak Reflow Temperature-Max (s) refers to the maximum duration that an electronic component can be exposed to the peak reflow temperature during the soldering process, which is crucial for ensuring reliable solder joint formation without damaging the component.

    30
  • Base Part Number

    The "Base Part Number" (BPN) in electronic components serves a similar purpose to the "Base Product Number." It refers to the primary identifier for a component that captures the essential characteristics shared by a group of similar components. The BPN provides a fundamental way to reference a family or series of components without specifying all the variations and specific details.

    DS1307
  • Pin Count

    a count of all of the component leads (or pins)

    8
  • Operating Supply Voltage

    The voltage level by which an electrical system is designated and to which certain operating characteristics of the system are related.

    5V
  • Power Supplies

    an electronic circuit that converts the voltage of an alternating current (AC) into a direct current (DC) voltage.?

    5V
  • Interface

    In electronic components, the term "Interface" refers to the point at which two different systems, devices, or components connect and interact with each other. It can involve physical connections such as ports, connectors, or cables, as well as communication protocols and standards that facilitate the exchange of data or signals between the connected entities. The interface serves as a bridge that enables seamless communication and interoperability between different parts of a system or between different systems altogether. Designing a reliable and efficient interface is crucial in ensuring proper functionality and performance of electronic components and systems.

    I2C, 2-Wire Serial
  • Memory Size

    The memory capacity is the amount of data a device can store at any given time in its memory.

    56B
  • Clock Frequency

    Clock frequency, also known as clock speed, refers to the rate at which a processor or electronic component can execute instructions. It is measured in hertz (Hz) and represents the number of cycles per second that the component can perform. A higher clock frequency typically indicates a faster processing speed and better performance. However, it is important to note that other factors such as architecture, efficiency, and workload also play a significant role in determining the overall performance of a component. In summary, clock frequency is a crucial parameter that influences the speed and efficiency of electronic components in processing data and executing tasks.

    0.032MHz
  • Logic Function

    In electronic components, the term "Logic Function" refers to the specific operation or behavior of a component based on its input signals. It describes how the component processes the input signals to produce the desired output. Logic functions are fundamental to digital circuits and are used to perform logical operations such as AND, OR, NOT, and XOR.Each electronic component, such as logic gates or flip-flops, is designed to perform a specific logic function based on its internal circuitry. By understanding the logic function of a component, engineers can design and analyze complex digital systems to ensure proper functionality and performance. Different logic functions can be combined to create more complex operations, allowing for the creation of sophisticated digital devices and systems.

    Clock
  • Number of Timers
    1
  • Time Format

    Time is based on a 24 hour system. This is frequently referred to as "military time". The 24 hour system is the default format.

    HH:MM:SS (12/24 hr)
  • Date Format

    The international standard recommends writing the date as year, then month, then the day:?YYYY-MM-DD.

    YY-MM-DD-dd
  • Current - Timekeeping (Max)

    The parameter "Current - Timekeeping (Max)" in electronic components refers to the maximum current that a device can draw while performing timekeeping functions. Timekeeping functions typically involve maintaining accurate time and date information within a device, such as in a real-time clock (RTC) or a microcontroller with a built-in clock. The maximum current specified for timekeeping is important for determining the power consumption of the device when it is in standby or low-power modes, as excessive current draw can drain the battery quickly. Designers need to consider this parameter when selecting components for battery-powered devices to ensure efficient power management and longer battery life.

    200μA @ 5V
  • Time-Min

    Time-Min is a parameter in electronic components that refers to the minimum amount of time required for a specific operation or function to be completed. This parameter is crucial in determining the speed and efficiency of the component's performance. It is often specified in datasheets and technical documentation to provide users with information on the component's timing characteristics. Understanding the "Time-Min" parameter is essential for designing and integrating electronic components into circuits to ensure proper functionality and timing synchronization.

    SECONDS
  • Interrupt Capability

    Returns the number of interrupts available for a specified hardware device and interrupt type.

    N
  • Voltage - Supply, Battery

    Voltage - Supply, Battery refers to the nominal voltage level provided by a battery to power electronic components or circuits. It indicates the standard voltage output that a battery can deliver under typical operating conditions. This parameter is crucial for ensuring compatibility between the battery and the electronic device, as it affects performance and functionality. The voltage supply rating helps in selecting the appropriate battery for specific applications, ensuring that the device operates efficiently and safely.

    2V~3.5V
  • Volatile

    In the context of electronic components, the term "Volatile" refers to a type of memory or storage that requires power to maintain the stored data. When power is removed or lost, the data stored in volatile memory is also lost. This is in contrast to non-volatile memory, which retains data even when power is turned off.Volatile memory is commonly used in devices like RAM (Random Access Memory) in computers, where data needs to be quickly accessed and modified. However, it is not suitable for long-term storage of important data as it requires continuous power supply to retain information.Overall, the volatile nature of this type of memory makes it fast and efficient for temporary data storage and processing, but it is not ideal for permanent data storage due to its dependency on power supply.

    YES
  • Information Access Method

    Information Access Method refers to the techniques and protocols used to retrieve, manage, and manipulate data stored in electronic systems. It encompasses various approaches such as direct memory access, polling, interrupts, and data buses, enabling efficient communication between different components within a system. This method is crucial for optimizing data retrieval speed and ensuring effective interaction between hardware and software in electronic devices.

    I2C
  • Features

    In the context of electronic components, the term "Features" typically refers to the specific characteristics or functionalities that a particular component offers. These features can vary depending on the type of component and its intended use. For example, a microcontroller may have features such as built-in memory, analog-to-digital converters, and communication interfaces like UART or SPI.When evaluating electronic components, understanding their features is crucial in determining whether they meet the requirements of a particular project or application. Engineers and designers often look at features such as operating voltage, speed, power consumption, and communication protocols to ensure compatibility and optimal performance.In summary, the "Features" parameter in electronic components describes the unique attributes and capabilities that differentiate one component from another, helping users make informed decisions when selecting components for their electronic designs.

    Leap Year, NVSRAM, Square Wave Output
  • Height
    4.45mm
  • Length
    9.91mm
  • Width
    7.87mm
  • REACH SVHC

    The parameter "REACH SVHC" in electronic components refers to the compliance with the Registration, Evaluation, Authorization, and Restriction of Chemicals (REACH) regulation regarding Substances of Very High Concern (SVHC). SVHCs are substances that may have serious effects on human health or the environment, and their use is regulated under REACH to ensure their safe handling and minimize their impact.Manufacturers of electronic components need to declare if their products contain any SVHCs above a certain threshold concentration and provide information on the safe use of these substances. This information allows customers to make informed decisions about the potential risks associated with using the components and take appropriate measures to mitigate any hazards.Ensuring compliance with REACH SVHC requirements is essential for electronics manufacturers to meet regulatory standards, protect human health and the environment, and maintain transparency in their supply chain. It also demonstrates a commitment to sustainability and responsible manufacturing practices in the electronics industry.

    Unknown
  • Radiation Hardening

    Radiation hardening is the process of making electronic components and circuits resistant to damage or malfunction caused by high levels of ionizing radiation, especially for environments in outer space (especially beyond the low Earth orbit), around nuclear reactors and particle accelerators, or during nuclear accidents or nuclear warfare.

    No
  • RoHS Status

    RoHS means “Restriction of Certain Hazardous Substances” in the “Hazardous Substances Directive” in electrical and electronic equipment.

    ROHS3 Compliant
  • Lead Free

    Lead Free is a term used to describe electronic components that do not contain lead as part of their composition. Lead is a toxic material that can have harmful effects on human health and the environment, so the electronics industry has been moving towards lead-free components to reduce these risks. Lead-free components are typically made using alternative materials such as silver, copper, and tin. Manufacturers must comply with regulations such as the Restriction of Hazardous Substances (RoHS) directive to ensure that their products are lead-free and environmentally friendly.

    Lead Free
0 Similar Products Remaining

DS1307N Functional Block Diagram

The following figure is DS1307N Functional Block Diagram.

Block Diagram.png

Functional Block Diagram

DS1307N Typical Operating Circuit

The following shows DS1307N Typical Operating Circuit.

TYPICAL OPERATING CIRCUIT.png

Typical Operating Circuit


DS1307N Alternatives

Part NumberDescriptionManufacturer
DS1307NMICROCONTROLLERS AND PROCESSORSReal Time Clock, Volatile, 1 Timer(s), CMOS, PDIP8, DIP-8Dallas Semiconductor
DS1307INDUCTORSGeneral Purpose Inductor,Falco Electronics
DS1307+MICROCONTROLLERS AND PROCESSORSReal Time Clock, Volatile, 1 Timer(s), CMOS, PDIP8, 0.300 INCH, ROHS COMPLIANT, PLASTIC, DIP-8Maxim Integrated Products


DS1307N Applications

• Backup Supply

• AM/PM Indicator


DS1307N Package

The following figure is DS1307N Package.

package.png

Package


DS1307N Manufacturer

Analog Devices' Maxim Integrated designs, manufactures and sells analog and mixed-signal integrated circuits for automotive, industrial, communications, consumer, and computing applications. Power and battery management ICs, sensors, analog ICs, interface ICs, communications solutions, digital ICs, embedded security, and microcontrollers are all part of Maxim's product line. The company includes design centers, manufacturing facilities, and sales offices all around the world, with its headquarters in San Jose, California.


Trend Analysis

Frequently Asked Questions

What is the difference between DS1307 and DS3231?

The main difference between the DS3231 and DS1370 is the accuracy of time-keeping. DS1307 comes with an external 32kHz crystal for time-keeping whose oscillation frequency is easily affected by external temperature. This usually results in the clock being off by around five or so minutes per month.

What is the purpose of DS1307 pin 3?

Battery input for any standard 3V lithium cell or other energy sources. Battery voltage should be between 2V and 3.5V for suitable operation. The nominal write-protect trip point voltage at which access to the RTC and user RAM is denied is set by the internal circuitry as 1.25 x VBAT nominal.

Is DS3231 compatible with DS1307?

Although the notes and functions in the sketch refer only to the DS3231, the code also works with the DS1307. There may be a lot of code, however, it breaks down well into manageable parts.

How many bytes of NV SRAM is the DS1307N serial real-time clock?

56 bytes.

What is used to transport address and data serially?

An I2C bidirectional bus.

In what mode does the DS1307N clock work?

24-hour or 12-hour.

What does the DS1307N include?

A built-in power sensor circuit.

What happens when the part is running on the backup supply?

The timekeeping operation continues.
DS1307N

Maxim Integrated

In Stock

United States

China

Canada

Japan

Russia

Germany

United Kingdom

Singapore

Italy

Hong Kong(China)

Taiwan(China)

France

Korea

Mexico

Netherlands

Malaysia

Austria

Spain

Switzerland

Poland

Thailand

Vietnam

India

United Arab Emirates

Afghanistan

Åland Islands

Albania

Algeria

American Samoa

Andorra

Angola

Anguilla

Antigua & Barbuda

Argentina

Armenia

Aruba

Australia

Azerbaijan

Bahamas

Bahrain

Bangladesh

Barbados

Belarus

Belgium

Belize

Benin

Bermuda

Bhutan

Bolivia

Bonaire, Sint Eustatius and Saba

Bosnia & Herzegovina

Botswana

Brazil

British Indian Ocean Territory

British Virgin Islands

Brunei

Bulgaria

Burkina Faso

Burundi

Cabo Verde

Cambodia

Cameroon

Cayman Islands

Central African Republic

Chad

Chile

Christmas Island

Cocos (Keeling) Islands

Colombia

Comoros

Congo

Congo (DRC)

Cook Islands

Costa Rica

Côte d’Ivoire

Croatia

Cuba

Curaçao

Cyprus

Czechia

Denmark

Djibouti

Dominica

Dominican Republic

Ecuador

Egypt

El Salvador

Equatorial Guinea

Eritrea

Estonia

Eswatini

Ethiopia

Falkland Islands

Faroe Islands

Fiji

Finland

French Guiana

French Polynesia

Gabon

Gambia

Georgia

Ghana

Gibraltar

Greece

Greenland

Grenada

Guadeloupe

Guam

Guatemala

Guernsey

Guinea

Guinea-Bissau

Guyana

Haiti

Honduras

Hungary

Iceland

Indonesia

Iran

Iraq

Ireland

Isle of Man

Israel

Jamaica

Jersey

Jordan

Kazakhstan

Kenya

Kiribati

Kosovo

Kuwait

Kyrgyzstan

Laos

Latvia

Lebanon

Lesotho

Liberia

Libya

Liechtenstein

Lithuania

Luxembourg

Macao(China)

Madagascar

Malawi

Maldives

Mali

Malta

Marshall Islands

Martinique

Mauritania

Mauritius

Mayotte

Micronesia

Moldova

Monaco

Mongolia

Montenegro

Montserrat

Morocco

Mozambique

Myanmar

Namibia

Nauru

Nepal

New Caledonia

New Zealand

Nicaragua

Niger

Nigeria

Niue

Norfolk Island

North Korea

North Macedonia

Northern Mariana Islands

Norway

Oman

Pakistan

Palau

Palestinian Authority

Panama

Papua New Guinea

Paraguay

Peru

Philippines

Pitcairn Islands

Portugal

Puerto Rico

Qatar

Réunion

Romania

Rwanda

Samoa

San Marino

São Tomé & Príncipe

Saudi Arabia

Senegal

Serbia

Seychelles

Sierra Leone

Sint Maarten

Slovakia

Slovenia

Solomon Islands

Somalia

South Africa

South Sudan

Sri Lanka

St Helena, Ascension, Tristan da Cunha

St. Barthélemy

St. Kitts & Nevis

St. Lucia

St. Martin

St. Pierre & Miquelon

St. Vincent & Grenadines

Sudan

Suriname

Svalbard & Jan Mayen

Sweden

Syria

Tajikistan

Tanzania

Timor-Leste

Togo

Tokelau

Tonga

Trinidad & Tobago

Tunisia

Turkey

Turkmenistan

Turks & Caicos Islands

Tuvalu

U.S. Outlying Islands

U.S. Virgin Islands

Uganda

Ukraine

Uruguay

Uzbekistan

Vanuatu

Vatican City

Venezuela

Wallis & Futuna

Yemen

Zambia

Zimbabwe

Related Parts More