10
FN6756.1
December 10, 2015
24 HOUR TIME
If the MIL bit of the HR register is “1”, the RTC uses a
24-hour format. If the MIL bit is “0”, the RTC uses a 12-hour
format and HR21 bit functions as an AM/PM indicator with a
“1” representing PM. The clock defaults to 12-hour format
time with HR21 = “0”.
If the A1HR and/or A2HR registers are used for alarm
interrupt, the A1HR and/or A2HR registers must set to the
same hour format as the HR register. For example, if the HR
register is set to 24-hour format by setting the MIL bit to “1”,
then the AxHR register must be set to 24-hour format with
AxMIL bit set to “1”. If the hour format does not match
between the HR register and the AxHR register, then the
alarm interrupt will not trigger.
LEAP YEARS
Leap years add the day February 29 and are defined as those
years that are divisible by 4. Years divisible by 100 are not leap
years, unless they are also divisible by 400. This means that
the year 2000 is a leap year, the year 2100 is not. The
ISL12058 does not correct for the leap year in the year 2100.
Control and Status Registers
Addresses [07h to 0Bh]
The Control and Status Registers consist of the Status
Register, Interrupt Register, and Alarm Registers.
Status Register (SR) [Address 07h]
The Status Register is located in the memory map at
address 0Bh. This is a volatile register that provides either
control or status of alarm interrupt and crystal oscillator
enable. Refer to Table 2.
NOTE: read operation will remain set after the read operation is
complete.
POWER FAILURE BIT (PF)
This bit is set to a1 after a total power failure. This is a read
only bit that is set by hardware (ISL12058 internally) when
the device powers up after having lost power to the device.
On power-up after a total power failure, all registers are set
to their default states. The first valid write to the RTC section
after a complete power failure resets the PF bit to “0” (writing
one RTC register is sufficient).
ALARM1 INTERRUPT BIT (A1F)
These bits announce if the Alarm1 matches the real time
clock. If there is a match, the respective bit is set to “1”. This
bit is manually reset to “0” by the user. A write to this bit in
the SR can only set it to “0”, not “1”.
ALARM2 INTERRUPT BIT (A2F)
These bits announce if the Alarm2 matches the real time
clock. If there is a match, the respective bit is set to “1”. This
bit is manually reset to “0” by the user. A write to this bit in
the SR can only set it to “0”, not “1”.
OSCILLATOR FAIL BIT (OSF)
Oscillator Fail Indicator bit (OSF). This bit is set to a “1” when
there is no oscillation on X1 pin. The OSF bit can only be
reset by having an oscillation on X1 and manually reset to
“0” to reset it.
WRITE RTC ENABLE BIT (WRTC)
The WRTC bit enables or disables write capability into the
RTC Timing Registers. The factory default setting of this bit
is “0”. Upon initialization or power-up, the WRTC must be set
to “1” to enable the RTC. Upon the completion of a valid
write (STOP), the RTC starts counting. The RTC internal
1Hz signal is synchronized to the STOP condition during a
valid write cycle.
CRYSTAL OSCILLATOR ENABLE BIT (XSTOP)
This bit enables/disables the internal crystal oscillator. When
the XSTOP is set to “1”, the oscillator is disabled. The
XSTOP bit is set to “0” on power-up for normal operation.
AUTO RESET ENABLE BIT (ARST)
This bit enables/disables the automatic reset of the A1F and
A2F status bits only. When ARST bit is set to “1”, these
status bits are reset to “0” after a valid read of the respective
status register (with a valid STOP condition). When the
ARST is cleared to “0”, the user must manually reset the
A1F and A2F bits.
Interrupt Control Register (INT) [Address 08h]
ALARM1 INTERRUPT ENABLE BIT (A1E)
This bit enables the hardware interrupt function of ALARM1
to IRQ/F
OUT
pin. When A1E set to ‘1’, IRQE set to ‘1’ and
ALM1E set to ‘1’, the IRQ
/F
OUT
pin will pull low when the
A1F bit is set by the ALARM1 interrupt.
IRQ/
F
OUT
FUNCTION SELECTION BIT (IRQE)
This bit selects the function of the IRQ
/F
OUT
pin. Refer to
Table 4 for function selection of IRQ
/F
OUT
PIN.
TABLE 2. STATUS REGISTER (SR)
ADDR 7 6 5 4 3 2 1 0
07h ARST XSTOP 0 WRTC OSF A1F A2F PF
Default0 0 001001
TABLE 3. INTERRUPT CONTROL REGISTER (INT)
ADDR 7 6 5 4 3 2 1 0
08h 0 ALM1E ALM2E FO1 FO0 IRQE 0 A1E
Default 0 0 0 1 1 0 0 0
TABLE 4. FUNCTION SELECTION OF IRQ
/F
OUT
PIN WITH
A1E AND IRQE BITS
A1E IRQE IRQ
/F
OUT
FUNCTION
00 F
OUT
0 1 High Impedance
ISL12058
11
FN6756.1
December 10, 2015
FREQUENCY OUT CONTROL BITS (FO <1:0>)
These bits select the output frequency at the IRQ
/F
OUT
pin.
IRQE must be set to “0” for frequency output at the
IRQ
/F
OUT
pin. Refer to Table 5 for frequency selection.
ALARM ENABLE BITS (ALM1E, ALM2E)
This bit enables/disables the Alarm1 and Alarm2 function.
When the ALM1E bit is set to “1”, the Alarm1 function is
enabled. When the ALM1E is cleared to “0”, the alarm function
is disabled. ALM1E bit is set to “0” at power-up.
When the ALM2E bit is set to “1”, the Alarm2 function is
enabled. When the ALM2E is cleared to “0”, the alarm function
is disabled. ALM2E bit is set to “0” at power-up.
NOTE: The Alarm1 has hardware function via the IRQ/F
OUT
pin.
Alarm2 does not have hardware interrupt function.
Alarm1 Registers
Addresses [Address 0Ch to 11h]
The Alarm1 register bytes are set up identical to the RTC
register bytes, except that the MSB of each byte functions as
an enable bit (enable = “1”). These enable bits specify which
alarm registers (seconds, minutes, etc) are used to make the
comparison. Note that there is no alarm byte for year. When
all the enable bits are set to “0” with ALM1E set to “1”, the
Alarm 1 will triggered once a second.
The Alarm1 function works as a comparison between the
Alarm1 registers and the RTC registers. As the RTC
advances, the Alarm1 will be triggered once a match occurs
between the Alarm1 registers and the RTC registers. Any
one Alarm1 register, multiple registers, or all registers can be
enabled for a match.
To clear an Alarm1, the A1F status bit can be set to “0” with a
write or use the ARST bit auto reset function.
Following is example of Alarm1 Interrupt.
Example – A single alarm will occur on January 1 at
11:30am.
A. Set Alarm1 registers as follows:
10 F
OUT
1 1 Alarm 1 Interrupt
TABLE 5. FREQUENCY SELECTION OF IRQ
/F
OUT
PIN WITH
FO1 AND FO0 BITS
FO1 FO0
FREQUENCY,
F
OUT
(Hz) COMMENT
1 1 32768 Free running crystal clock
1 0 8192 Free running crystal clock
0 1 4096 Free running crystal clock
0 0 1 Sync. at RTC write
TABLE 4. FUNCTION SELECTION OF IRQ
/F
OUT
PIN WITH
A1E AND IRQE BITS (Continued)
A1E IRQE IRQ
/F
OUT
FUNCTION
TABLE 6. ALARM1 INTERRUPT WITH ENABLE BITS SELECTION
A1M1 A1M2 A1M3 A1M4 A1M5 A1M6
ALARM1
Interrupt
000000Every Second
1 0 0 0 0 0 Match Second
010000Match Minute
001000Match Hour
000100Match Date
000010Match Month
000001 Match Day
1 1 0 0 0 0 Match Second
and Minute
1 0 1 0 0 0 Match Second
and Hour
1 1 1 0 0 0 Match Second,
Minute, and Hour
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
000111Match Date,
Month, and Day
1 0 0 1 1 1 Match Second,
Date, Month, and
Day
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
011111Match MInute,
Hour, Date,
Month, and Day
1 1 1 1 1 1 Match Second,
MInute, Hour,
Date, Month, and
Day
ISL12058
12
FN6756.1
December 10, 2015
B. Also the ALME bit must be set as follows:
xx indicate other control bits and these bit can be set to 0 or
1.
After these registers are set, the Alarm1 interrupt will be
generated when the RTC advances to exactly 11:30am on
January 1 (after seconds changes from 59 to 00) by setting
the A1F bit in the status register to “1” and also bringing the
IRQ
/F
OUT
output low.
Alarm2 Registers
Addresses [Address 12h to 14h]
The Alarm2 register bytes are set up identical to the RTC
register bytes except that the MSB of each byte functions as
an enable bit (enable = “1”). These enable bits specify which
alarm registers (minutes, hour, and date/day) are used to
make the comparison. Note that there are no alarm bytes for
second, month and year. When all the enable bits are set to
“0” with ALM2E set to “1”, the Alarm2 will triggered once a
minute when second hits “00”.
The Alarm2 function works as a comparison between the
Alarm2 registers and the RTC registers. As the RTC
advances, the Alarm2 will be triggered once a match occurs
between the Alarm2 registers and the RTC registers. Any
one Alarm2 register, multiple registers, or all registers can be
enabled for a match.
To clear an Alarm2, the A2F status bit can be set to “0” with a
write or use the ARST bit auto reset function.
Following is example of Alarm2 Interrupt.
Example – A single alarm will occur on every Monday at
20:00 military time (Monday is when DW = 1).
A. Set Alarm registers as follows:
After these registers are set, an alarm will be generated when
the RTC advances to exactly 20:00 on Monday (after minutes
changes from 59 to 00) by setting the A2F bit in the status
register to “1”.
I
2
C Serial Interface
The ISL12058 supports a bi-directional bus oriented
protocol. The protocol defines any device that sends data
onto the bus as a transmitter and the receiving device as the
receiver. The device controlling the transfer is the master
and the device being controlled is the slave. The master
always initiates data transfers and provides the clock for
both transmit and receive operations. Therefore, the
ISL12058 operates as a slave device in all applications.
All communication over the I
2
C interface is conducted by
sending the MSB of each byte of data first.
ALARM1
REGISTER
BIT
DESCRIPTION76543210HEX
A1SC 00000000 00hSeconds disabled
A1MN 10110000 B0hMinutes set to 30,
enabled
A1HR 10010001 91hHours set to 11,
enabled
A1DT 10000001 81hDate set to 1,
enabled
A1MO 10000001 81hMonth set to 1,
enabled
A1DW 00000000 00hDay of week
disabled
CONTROL
REGISTER
BIT
DESCRIPTION76543210HEX
INT 0 1 x x x 1 0 1 45h Enable Alarm1,
and Alarm1
Interrupt to
IRQ
/F
OUT
TABLE 7. ALARM2 INTERRUPT WITH ENABLE BITS
SELECTION
A2DW/DT
A2M2 A2M3 A2M4 ALARM2 Interrupt
0 0 0 0 Every Minute (Second=00)
0 1 0 0 Match Minute
0 0 1 0 Match Hour
0 0 0 1 Match Date
1 001 Match Day
0 1 1 0 Match Minute and Hour
0 1 0 1 Match Minute and Date
0 0 1 1 Match Hour and Date
0 1 1 1 Match Minute, Hour, and Date
1 1 1 0 Match Minute and Hour
1 1 0 1 Match Minute and Day
1 0 1 1 Match Hour and Day
1 1 1 1 Match Minute, Hour, and Day
ALARM2
REGISTER
BIT
DESCRIPTION76543210HEX
A2MN 00000000 00hMinutes disabled
A2HR 11100000 E0hHours set to 20,
enabled
A2DW/DT
11000001 C1hDay set to Monday,
enabled
ISL12058

ISL12058IRUZ-T

Mfr. #:
Manufacturer:
Renesas / Intersil
Description:
Real Time Clock REAL TIME CLK W/ ALARM & TIMR FUNCTNS
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union