DS1307Z+

DS1307Z+


Specifications
SKU
4390468
Details

BUY DS1307Z+ https://www.utsource.net/itm/p/4390468.html
IC RTC CLK/CALENDAR I2C 8-SOIC
Parameter Description Min Typ Max Unit
Operating Voltage (Vcc) Supply voltage range 4.5 - 5.5 V
Operating Temperature Operating temperature range -40 - +85 °C
Standby Current Current consumption in standby mode - 500 - nA
Active Current Current consumption in active mode - 250 - μA
Frequency Accuracy Accuracy of the 32.768 kHz oscillator - ±2 - ppm/°C
Timekeeping Accuracy Accuracy over temperature range - ±2 - min/month
I2C Bus Speed Maximum I2C bus speed - 400 - kbps
Output Drive Capability Maximum output drive capability - 15 - mA
Oscillator Start-up Time Time to start the oscillator - 100 - ms
Write Cycle Time Time to complete a write cycle - 5 - ms

Instructions for Using DS1307Z+

  1. Power Supply:

    • Connect the Vcc pin to a supply voltage between 4.5V and 5.5V.
    • Connect the GND pin to the ground.
  2. Oscillator Connection:

    • Connect a 32.768 kHz crystal between the X1 and X2 pins for accurate timekeeping.
    • Alternatively, you can connect an external 32.768 kHz clock source to the X1 pin.
  3. I2C Interface:

    • Connect the SDA (Serial Data) and SCL (Serial Clock) pins to the I2C bus.
    • Use pull-up resistors on both SDA and SCL lines, typically 4.7kΩ to Vcc.
  4. Initialization:

    • Send a start condition followed by the device address (0xD0 for write, 0xD1 for read).
    • Send the register address where you want to read from or write to.
    • For writing, send the data byte(s) to the specified register.
    • For reading, send a repeated start condition, then the device address with read bit set, and read the data byte(s).
  5. Time Setting:

    • Set the time by writing to the appropriate registers (seconds, minutes, hours, day, date, month, year).
    • Use BCD (Binary-Coded Decimal) format for the time values.
  6. Reading Time:

    • Read the time by accessing the same registers used for setting the time.
    • Convert the BCD values to decimal for easier interpretation.
  7. Square Wave Output:

    • Enable the square wave output by setting the appropriate bits in the control register.
    • The frequency can be selected as 1Hz, 4.096kHz, 8.192kHz, or 32.768kHz.
  8. Battery Backup:

    • Optionally, connect a backup battery to the Vbat pin to maintain timekeeping when the main power is off.
  9. Reset:

    • The DS1307Z+ does not have a reset pin. To reset, power cycle the device or write a specific value to the control register to stop and restart the oscillator.
  10. Troubleshooting:

    • Ensure the crystal is properly connected and functioning.
    • Check the I2C bus for proper communication and correct pull-up resistor values.
    • Verify that the power supply voltage is within the specified range.
(For reference only)

View more about DS1307Z+ on main site