DS1306E+T&R Maxim Integrated Products, DS1306E+T&R Datasheet - Page 7
![IC RTC SERIAL ALARM 20-TSSOP](/photos/6/52/65243/175-20-tssop_sml.jpg)
DS1306E+T&R
Manufacturer Part Number
DS1306E+T&R
Description
IC RTC SERIAL ALARM 20-TSSOP
Manufacturer
Maxim Integrated Products
Type
Clock/Calendar/Alarmr
Datasheet
1.DS1306E.pdf
(22 pages)
Specifications of DS1306E+T&R
Memory Size
96B
Time Format
HH:MM:SS (12/24 hr)
Date Format
YY-MM-DD-dd
Interface
SPI, 3-Wire Serial
Voltage - Supply
2 V ~ 5.5 V
Operating Temperature
0°C ~ 70°C
Mounting Type
Surface Mount
Package / Case
20-TSSOP
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
registers is set to a logic 1. Similarly, an alarm is generated every minute when bit 7 of the day, hour, and
minute alarm registers is set to a logic 1. When bit 7 of the day, hour, minute, and seconds alarm registers
is set to a logic 1, an alarm occurs every second.
During each clock update, the RTC compares the Alarm 0 and Alarm 1 registers with the corresponding
clock registers. When a match occurs, the corresponding alarm flag bit in the status register is set to a 1. If
the corresponding alarm interrupt enable bit is enabled, an interrupt output is activated.
Table 2. TIME-OF-DAY ALARM MASK BITS
SPECIAL PURPOSE REGISTERS
The DS1306 has three additional registers (control register, status register, and trickle charger register)
that control the real-time clock, interrupts, and trickle charger.
CONTROL REGISTER (READ 0Fh, WRITE 8Fh)
WP (Write Protect) – Before any write operation to the clock or RAM, this bit must be logic 0. When
high, the write protect bit prevents a write operation to any register, including bits 0, 1, and 2 of the
control register. Upon initial power-up, the state of the WP bit is undefined. Therefore, the WP bit should
be cleared before attempting to write to the device. When WP is set, it must be cleared before any other
control register bit can be written.
1Hz (1Hz Output Enable) – This bit controls the 1Hz output. When this bit is a logic 1, the 1Hz output
is enabled. When this bit is a logic 0, the 1Hz output is high-Z.
AIE0 (Alarm Interrupt Enable 0) – When set to a logic 1, this bit permits the interrupt 0 request flag
(IRQF0) bit in the status register to assert
not initiate the
AIE1 (Alarm Interrupt Enable 1) – When set to a logic 1, this bit permits the interrupt 1 request flag
(IRQF1) bit in the status register to assert INT1. When the AIE1 bit is set to logic 0, the IRQF1 bit does
not initiate an interrupt signal, and the INT1 pin is set to a logic 0 state.
SECONDS MINUTES
ALARM REGISTER MASK BITS (BIT 7)
BIT7
0
1
0
0
0
0
INT0
BIT6
WP
1
1
0
0
0
signal.
HOURS
BIT5
1
1
1
0
0
0
DAYS
1
1
1
1
0
INT0
BIT4
0
. When the AIE0 bit is set to logic 0, the IRQF0 bit does
Alarm once per second
Alarm when seconds match
Alarm when minutes and seconds match
Alarm hours, minutes, and seconds match
Alarm day, hours, minutes and seconds match
7 of 22
BIT3
0
FUNCTION
BIT2
1Hz
BIT1
AIE1
BIT0
AIE0