DS1306
7 of 22
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
ALARM REGISTER MASK BITS (BIT 7)
SECONDS
MINUTES
HOURS
DAYS
FUNCTION
1
Alarm once per second
0
1
Alarm when seconds match
0
1
Alarm when minutes and seconds match
0
1
Alarm hours, minutes, and seconds match
0
Alarm day, hours, minutes and seconds match
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)
BIT7
BIT6
BIT5
BIT4
BIT3
BIT2
BIT1
BIT0
0
WP
0
1Hz
AIE1
AIE0
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 INT0 . When the AIE0 bit is set to logic 0, the IRQF0 bit does
not initiate the INT0 signal.
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.
相关PDF资料
DS1307N IC RTC SERIAL 512K IND 8-DIP
DS1308U-3+ IC RTC 56BYTE NVRAM I2C 8UMAX
DS1315EN-5/T&R IC TIME CHIP PHANTOM 20-TSSOP
DS1318E+ IC COUNTER ELAPSED TIME 24-TSSOP
DS1337S+C01 IC RTC SERIAL 2WIRE LP 8-SOIC
DS1338C-33#T&R IC RTC 56BYTE NV SRAM 16SOIC
DS1339AU+ IC RTC I2C W/ALARM 8USOP
DS1339C-2# IC RTC I2C W/ALARM 16-SOIC
相关代理商/技术参数
DS1306EN/T&R/C04 功能描述:实时时钟 RoHS:否 制造商:Microchip Technology 功能:Clock, Calendar. Alarm RTC 总线接口:I2C 日期格式:DW:DM:M:Y 时间格式:HH:MM:SS RTC 存储容量:64 B 电源电压-最大:5.5 V 电源电压-最小:1.8 V 最大工作温度:+ 85 C 最小工作温度: 安装风格:Through Hole 封装 / 箱体:PDIP-8 封装:Tube
DS1306EN/TR 制造商:DALLAS 制造商全称:Dallas Semiconductor 功能描述:Serial Alarm Real-Time Clock
DS1306EN+ 功能描述:实时时钟 Serial Alarm RTC 3-Wire RoHS:否 制造商:Microchip Technology 功能:Clock, Calendar. Alarm RTC 总线接口:I2C 日期格式:DW:DM:M:Y 时间格式:HH:MM:SS RTC 存储容量:64 B 电源电压-最大:5.5 V 电源电压-最小:1.8 V 最大工作温度:+ 85 C 最小工作温度: 安装风格:Through Hole 封装 / 箱体:PDIP-8 封装:Tube
DS1306EN+T&R 制造商:Maxim Integrated Products 功能描述:REAL TIME CLOCK SERL 96BYTE 20TSSOP - Tape and Reel 制造商:Maxim Integrated Products 功能描述:REAL TIME CLOCK SERL 96BYTE 20TSSOP - Cut TR (SOS) 制造商:Maxim Integrated Products 功能描述:Maxim Integrated DS1306EN+T&R Real Time Clocks (RTC) 制造商:Maxim Integrated Products 功能描述:IC RTC SERIAL ALARM IND 20-TSSOP
DS1306EN+T&R 功能描述:实时时钟 Serial Alarm RTC 3-Wire RoHS:否 制造商:Microchip Technology 功能:Clock, Calendar. Alarm RTC 总线接口:I2C 日期格式:DW:DM:M:Y 时间格式:HH:MM:SS RTC 存储容量:64 B 电源电压-最大:5.5 V 电源电压-最小:1.8 V 最大工作温度:+ 85 C 最小工作温度: 安装风格:Through Hole 封装 / 箱体:PDIP-8 封装:Tube
DS1306EN+TR 制造商:MAXIM 制造商全称:Maxim Integrated Products 功能描述:Serial Alarm Real-Time Clock
DS1306N 功能描述:实时时钟 Serial Alarm RTC 3-Wire RoHS:否 制造商:Microchip Technology 功能:Clock, Calendar. Alarm RTC 总线接口:I2C 日期格式:DW:DM:M:Y 时间格式:HH:MM:SS RTC 存储容量:64 B 电源电压-最大:5.5 V 电源电压-最小:1.8 V 最大工作温度:+ 85 C 最小工作温度: 安装风格:Through Hole 封装 / 箱体:PDIP-8 封装:Tube
DS1306N+ 功能描述:实时时钟 Serial Alarm RTC 3-Wire RoHS:否 制造商:Microchip Technology 功能:Clock, Calendar. Alarm RTC 总线接口:I2C 日期格式:DW:DM:M:Y 时间格式:HH:MM:SS RTC 存储容量:64 B 电源电压-最大:5.5 V 电源电压-最小:1.8 V 最大工作温度:+ 85 C 最小工作温度: 安装风格:Through Hole 封装 / 箱体:PDIP-8 封装:Tube