10
FN6313.0
June 22, 2006
Write capability is allowable into the RTC registers (00h to
06h) only when the WRTC bit (bit 4 of address 07h) is set to
“1”. A multi-byte read or write operation is limited to one
section per operation. Access to another section requires a
new operation. A read or write can begin at any address
within the section.
A register can be read by performing a random read at any
address at any time. This returns the contents of that register
location. Additional registers are read by performing a
sequential read. For the RTC and Alarm registers, the read
instruction latches all clock registers into a buffer, so an
update of the clock does not change the time being read. A
sequential read will not result in the output of data from the
memory array. At the end of a read, the master supplies a
stop condition to end the operation and free the bus. After a
read, the address remains at the previous address +1 so the
user can execute a current address read and continue
reading the next register.
It is not necessary to set the WRTC bit prior to writing into
the control and status, alarm, and user SRAM registers.
TABLE 1. REGISTER MEMORY MAP
ADDR. SECTION
REG
NAME
BIT
RANGE DEFAULT 76543210
00h
RTC
SC 0 SC22 SC21 SC20 SC13 SC12 SC11 SC10 0-59 00h
01h MN 0 MN22 MN21 MN20 MN13 MN12 MN11 MN10 0-59 00h
02h HR MIL 0 HR21 HR20 HR13 HR12 HR11 HR10 0-23 00h
03h DT 0 0 DT21 DT20 DT13 DT12 DT11 DT10 1-31 00h
04h MO 0 0 0 MO20 MO13 MO12 MO11 MO10 1-12 00h
05h YR YR23 YR22 YR21 YR20 YR13 YR12 YR11 YR10 0-99 00h
06h DW00000DW2DW1DW00-600h
07h
Control
and
Status
SR ARST XTOSCB Reserved WRTC Reserved ALM BAT RTCF N/A 01h
08h INT IM ALME LPMODE FOBATB FO3 FO2 FO1 FO0 N/A 00h
09h Reserved N/A 00h
0Ah ATR BMATR1 BMATR0 ATR5 ATR4 ATR3 ATR2 ATR1 ATR0 N/A 00h
0Bh DTR Reserved DTR2 DTR1 DTR0 N/A 00h
0Ch
Alarm
SCA ESCA ASC22 ASC21 ASC20 ASC13 ASC12 ASC11 ASC10 00-59 00h
0Dh MNA EMNA AMN22 AMN21 AMN20 AMN13 AMN12 AMN11 AMN10 00-59 00h
0Eh HRA EHRA 0 AHR21 AHR20 AHR13 AHR12 AHR11 AHR10 0-23 00h
0Fh DTA EDTA 0 ADT21 ADT20 ADT13 ADT12 ADT11 ADT10 1-31 00h
10h MOA EMOA 0 0 AMO20 AMO13 AMO12 AMO11 AMO10 1-12 00h
11h DWAEDWA0000ADW12ADW11ADW100-600h
12h
User
USR1 USR17 USR16 USR15 USR14 USR13 USR12 USR11 USR10 N/A 00h
13h USR2 USR27 USR26 USR25 USR24 USR23 USR22 USR21 USR20 N/A 00h
14h USR3 USR37 USR36 USR35 USR34 USR33 USR32 USR31 USR30 N/A 00h
15h USR4 USR47 USR46 USR45 USR44 USR43 USR42 USR41 USR40 N/A 00h
16h USR5 USR57 USR56 USR55 USR54 USR53 USR52 USR51 USR50 N/A 00h
17h USR6 USR67 USR66 USR65 USR64 USR63 USR62 USR61 USR60 N/A 00h
18h USR7 USR77 USR76 USR75 USR74 USR73 USR72 USR71 USR70 N/A 00h
19h USR8 USR87 USR86 USR85 USR84 USR83 USR82 USR81 USR80 N/A 00h
ISL1218
11
FN6313.0
June 22, 2006
Real Time Clock Registers
Addresses [00h to 06h]
RTC REGISTERS (SC, MN, HR, DT, MO, YR, DW)
These registers depict BCD representations of the time. As
such, SC (Seconds) and MN (Minutes) range from 0 to 59,
HR (Hour) can either be a 12-hour or 24-hour mode, DT
(Date) is 1 to 31, MO (Month) is 1 to 12, YR (Year) is 0 to 99,
and DW (Day of the Week) is 0 to 6.
The DW register provides a Day of the Week status and uses
three bits DW2 to DW0 to represent the seven days of the
week. The counter advances in the cycle 0-1-2-3-4-5-6-0-1-
2-… The assignment of a numerical value to a specific day
of the week is arbitrary and may be decided by the system
software designer. The default value is defined as “0”.
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”.
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 ISL1218
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 and Alarm Register, Analog Trimming and
Digital Trimming Registers.
Status Register (SR)
The Status Register is located in the memory map at
address 07h. This is a volatile register that provides either
control or status of RTC failure, battery mode, alarm trigger,
write protection of clock counter, crystal oscillator enable and
auto reset of status bits.
REAL TIME CLOCK FAIL BIT (RTCF)
This bit is set to a “1” after a total power failure. This is a read
only bit that is set by hardware (ISL1218 internally) when the
device powers up after having lost all power to the device.
The bit is set regardless of whether V
DD
or V
BAT
is applied
first. The loss of only one of the supplies does not set the
RTCF bit to “1”. The first valid write to the RTC section after
a complete power failure resets the RTCF bit to “0” (writing
one byte is sufficient).
BATTERY BIT (BAT)
This bit is set to a “1” when the device enters battery backup
mode. This bit can be reset either manually by the user or
automatically reset by enabling the auto-reset bit (see ARST
bit). A write to this bit in the SR can only set it to “0”, not “1”.
ALARM BIT (ALM)
These bits announce if the alarm matches the real time
clock. If there is a match, the respective bit is set to “1”. This
bit can be manually reset to “0” by the user or automatically
reset by enabling the auto-reset bit (see ARST bit). A write to
this bit in the SR can only set it to “0”, not “1”.
NOTE: An alarm bit that is set by an alarm occurring during an SR
read operation will remain set after the read operation is complete.
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 (XTOSCB)
This bit enables/disables the internal crystal oscillator. When
the XTOSCB is set to “1”, the oscillator is disabled, and the
X1 pin allows for an external 32kHz signal to drive the RTC.
The XTOSCB bit is set to “0” on powerup.
AUTO RESET ENABLE BIT (ARST)
This bit enables/disables the automatic reset of the BAT and
ALM 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
BAT and ALM bits.
Interrupt Control Register (INT)
The interrupt control register contains Frequency Output,
Alarm, and Battery switchover control bits.
TABLE 2. STATUS REGISTER (SR)
ADDR 7 6 5 4 3 2 1 0
07h ARST XTOSCB reserved WRTC reserved ALM BAT RTCF
Default00 000000
TABLE 3. INTERRUPT CONTROL REGISTER (INT)
ADDR7 6 5 4 3210
08h IM ALME LPMODE FOBATB FO3 FO2 FO1 FO0
Default0 0 0 0 0000
ISL1218
12
FN6313.0
June 22, 2006
NOTE: Writing to register 08h has restrictions. If V
BAT
>V
DD
, then no
byte writes to register 08h are allowed, only page writes beginning
with register 07h. If V
DD
>V
BAT
, then a byte write to register 08h IS
allowed, as well as page writes.
FREQUENCY OUT CONTROL BITS (FO <3:0>)
These bits enable/disable the frequency output function and
select the output frequency at the IRQ/F
OUT
pin. See
Table 4 for frequency selection. When the frequency mode is
enabled, it will override the alarm mode at the IRQ
/F
OUT
pin.
FREQUENCY OUTPUT AND INTERRUPT BIT (FOBATB)
This bit enables/disables the F
OUT
/IRQ pin during battery
backup mode (i.e. V
BAT
power source active). When the
FOBATB is set to “1” the F
OUT
/IRQ pin is disabled during
battery backup mode. This means that both the frequency
output and alarm output functions are disabled. When the
FOBATB is cleared to “0”, the F
OUT
/IRQ pin is enabled
during battery backup mode.
LOW POWER MODE BIT (LPMODE)
This bit enables/disables low power mode. With
LPMODE = “0”, the device will be in normal mode and the
V
BAT
supply will be used when V
DD
< V
BAT
- V
BATHYS
and
V
DD
< V
TRIP
. With LPMODE = “1”, the device will be in low
power mode and the V
BAT
supply will be used when
V
DD
< V
BAT
-V
BATHYS
. There is a supply current saving of
about 600nA when using LPMODE = “1” with V
DD
= 5V.
(See Typical Performance Curves: I
DD
vs V
CC
with
LPMODE ON and OFF.)
It should be noted that any writes to the LPMODE bit that
may put the device into Low Power Mode should be avoided
if V
DD
<V
BAT
, as the device will no longer communicate over
the I
2
C interface (until V
DD
rises above V
BAT
).
ALARM ENABLE BIT (ALME)
This bit enables/disables the alarm function. When the ALME
bit is set to “1”, the alarm function is enabled. When the ALME
is cleared to “0”, the alarm function is disabled. The alarm
function can operate in either a single event alarm or a periodic
interrupt alarm (see IM bit).
NOTE: When the frequency output mode is enabled, the alarm function
is disabled.
INTERRUPT/ALARM MODE BIT (IM)
This bit enables/disables the interrupt mode of the alarm
function. When the IM bit is set to “1”, the alarm will operate
in the interrupt mode, where an active low pulse width of
250ms will appear at the IRQ
/F
OUT
pin when the RTC is
triggered by the alarm as defined by the alarm registers (0Ch
to 11h). When the IM bit is cleared to “0”, the alarm will
operate in standard mode, where the IRQ
/F
OUT
pin will be
tied low until the ALM status bit is cleared to “0”.
Analog Trimming Register
ANALOG TRIMMING REGISTER (ATR<5:0>)
Six analog trimming bits, ATR0 to ATR5, are provided in
order to adjust the on-chip load capacitance value for
frequency compensation of the RTC. Each bit has a different
weight for capacitance adjustment. For example, using a
Citizen CFS-206 crystal with different ATR bit combinations
provides an estimated ppm adjustment range from -34 to
+80ppm to the nominal frequency compensation. The
combination of analog and digital trimming can give up to -94
to +140ppm of total adjustment.
TABLE 4. FREQUENCY SELECTION OF F
OUT
PIN
FREQUENCY,
F
OUT
UNITS FO3 FO2 FO1 FO0
0 Hz0 000
32768 Hz 0 0 0 1
4096 Hz 0 0 1 0
1024 Hz 0 0 1 1
64 Hz0 100
32 Hz0 101
16 Hz0 110
8 Hz0 111
4 Hz1 000
2 Hz1 001
1 Hz1 010
1/2 Hz1 011
1/4 Hz1 100
1/8 Hz1 101
1/16 Hz 1 1 1 0
1/32 Hz 1 1 1 1
IM BIT INTERRUPT/ALARM FREQUENCY
0 Single Time Event Set By Alarm
1 Repetitive/Recurring Time Event Set By Alarm
FIGURE 11. DIAGRAM OF ATR
C
X1
X1
X2
CRYSTAL
OSCILLATOR
C
X2
ISL1218

ISL1218IUZ

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

Products related to this Datasheet