Part Number Hot Search : 
APA2037 MX7828CQ T28C64B TDA5143T MB89V625 THGBM 2951C PM800
Product Description
Full Text Search
 

To Download ISL12082IB8Z-T Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
 (R)
ISL12082
I2C-BusTM Real Time Clock with Two Interrupts, Alarm, and Timer
Data Sheet November 24, 2008 FN6731.3
Low Power RTC with Battery ReSealTM, 2 IRQs, Hundredths of a Second Time, and Crystal Compensation
The ISL12082 device is a low power real time clock with timing and crystal compensation, clock/calendar, power fail indicator, 2 IRQs, periodic or polled alarm, timer/watchdog, and intelligent battery backup switching. The oscillator uses an external, low-cost 32.768kHz crystal. The real time clock tracks time with separate registers for hours, minutes, seconds and hundredths of a second. The device has calendar registers for date, month, year and day of the week. The calendar is accurate through 2099, with automatic leap year correction.
Features
* Real Time Clock/Calendar - Tracks Time in Hours, Minutes, Seconds, and Hundredths of a Second - Day of the Week, Day, Month, and Year * 4 Selectable Frequency Outputs * Alarm - Settable to the Second, Minute, Hour, Day of the Week, Day, or Month - Single Event or Pulse Interrupt Mode * Timer - 4 Selectable Timer Functions - 4 Selectable Timer Clock Frequencies - Single Event or Pulse Interrupt Mode * Automatic Backup to Battery or Supercapacitor * Power Failure Detection * Battery ReSealTM
Pinouts
ISL12082 (8 LD SOIC) TOP VIEW
X1 X2 GND IRQ2 1 2 3 4 8 7 6 5 VDD IRQ1/fOUT SCL SDA
* On-Chip Oscillator Compensation * I2C Interface - 400kHz Data Transfer Rate * 800nA Battery Supply Current
ISL12082 (10 LD MSOP) TOP VIEW
X1 X2 VBAT GND NC 1 2 3 4 5 10 9 8 7 6 VDD
* Small Package Options - 8 Ld SOIC Package - 10 Ld MSOP Package * Pb-Free (RoHS Compliant)
Applications
IRQ1/fOUT SCL SDA IRQ2
* Utility Meters * HVAC Equipment * Audio/Video Components * Set-Top Box/Television * Modems * Network Routers, Hubs, Switches, Bridges * Cellular Infrastructure Equipment * Fixed Broadband Wireless Equipment * Pagers/PDA * POS Equipment * Test Meters/Fixtures * Office Automation (Copiers, Fax) * Home Appliances * Computer Products
1
I2C BusTM is a trademark owned by NXP Semiconductors Netherlands, B.V. Copyright Intersil Americas Inc. 2008. All Rights Reserved. All other trademarks mentioned are the property of their respective owners.
CAUTION: These devices are sensitive to electrostatic discharge; follow proper IC Handling Procedures. 1-888-INTERSIL or 1-888-468-3774 | Intersil (and design) is a registered trademark of Intersil Americas Inc.
ISL12082
.
Ordering Information
PART NUMBER (Note) ISL12082IB8Z ISL12082IB8Z-T* ISL12082IUZ ISL12082IUZ-T* PART MARKING 12082 IBZ 12082 IBZ 12082 12082 VDD RANGE (V) 2.7 to 5.5 2.7 to 5.5 2.7 to 5.5 2.7 to 5.5 TEMP. RANGE (C) -40 to +85 -40 to +85 -40 to +85 -40 to +85 PACKAGE (Pb-Free) 8 Ld SOIC 8 Ld SOIC (Tape and Reel) 10 Ld MSOP 10 Ld MSOP (Tape and Reel) M8.15 M8.15 M10.118 M10.118 PKG. DWG. #
*Please refer to TB347 for details on reel specifications. NOTE: These Intersil Pb-free plastic packaged products employ special Pb-free material sets, molding compounds/die attach materials, and 100% matte tin plate plus anneal (e3 termination finish, which is RoHS compliant and compatible with both SnPb and Pb-free soldering operations). Intersil Pb-free products are MSL classified at Pb-free peak reflow temperatures that meet or exceed the Pb-free requirements of IPC/JEDEC J STD-020.
Block Diagram
SDA SCL SDA BUFFER SCL BUFFER SECONDS I2C INTERFACE RTC CONTROL LOGIC MINUTES HOURS DAY OF WEEK X1 X2 VDD CRYSTAL OSCILLATOR RTC DIVIDER DATE MONTH POR VTRIP SWITCH IRQ2 VBAT INTERNAL SUPPLY IRQ1/fOUT YEAR FREQUENCY OUT ALARM TIMER CONTROL REGISTERS
2
FN6731.3 November 24, 2008
ISL12082 Pin Descriptions
PIN NUMBER SOIC 1 2 3 4 5 6 7 8 MSOP 1 2 3 4 5 6 7 8 9 10 SYMBOL X1 X2 VBAT GND NC IRQ2 SDA SCL DESCRIPTION The X1 pin is the input of an inverting amplifier and is intended to be connected to one pin of an external 32.768kHz quartz crystal. X1 can also be driven directly from a 32.768kHz source. The X2 pin is the output of an inverting amplifier and is intended to be connected to one pin of an external 32.768kHz quartz crystal. This input provides a backup supply voltage to the device. VBAT supplies power to the device in the event that the VDD supply fails. This pin should be tied to ground if not used. Ground No Connect Interrupt Output 2 is a multi-functional pin that can be used as alarm interrupt or timer interrupt pin. The function is set via the configuration register. Serial Data (SDA) is a bi-directional pin used to transfer serial data into and out of the device. It has an open drain output and may be wire OR'ed with other open drain or open collector outputs. The Serial Clock (SCL) input is used to clock all serial data into and out of the device.
IRQ1/fOUT Interrupt Output 1/Frequency Output is a multi-functional pin that can be used as alarm interrupt or frequency output pin. The function is set via the configuration register. VDD Power supply
3
FN6731.3 November 24, 2008
ISL12082
Absolute Maximum Ratings
Voltage on VDD, VBAT, SCL, SDA, IRQ1/fOUT and IRQ2 Pins (respect to GND) . . . . . . . . . . . . . . . . . . . . . . . . . . . -0.5V to 6.5V Voltage on X1 and X2 Pins (respect to GND) . . . . . . . . . . . . .-0.5V to VDD + 0.5 (VDD Mode) -0.5V to VBAT + 0.5 (VBAT Mode)
Thermal Information
Thermal Resistance (Typical, Note 1) JA (C/W) 8 Ld SOIC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120 10 Ld MSOP. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152 Maximum Storage Temperature Range . . . . . . . . . .-65C to +150C Pb-Free Reflow Profile. . . . . . . . . . . . . . . . . . . . . . . . .see link below http://www.intersil.com/pbfree/Pb-FreeReflow.asp
CAUTION: Do not operate at or near the maximum ratings listed for extended periods of time. Exposure to such conditions may adversely impact product reliability and result in failures not covered by warranty.
NOTE: 1. JA is measured with the component mounted on a high effective thermal conductivity test board in free air. See Tech Brief TB379 for details. DC Operating Characteristics - RTC SYMBOL VDD VBAT IDD1 Temperature = -40C to +85C, unless otherwise stated. CONDITIONS MIN (Note 6) 2.7 1.8 VDD = 5V VDD = 3V IDD2 IDD3 IBAT ILI ILO VTRIP VTRIPHYS VBATHYS Supply Current With I2C Active Supply Current (Low Power Mode) Battery Supply Current Input Leakage Current on SCL I/O Leakage Current on SDA VBAT Mode Threshold VTRIP Hysteresis VBAT Hysteresis VDD = 5V VDD = 5V, LPMODE = 1 VBAT = 3V, +25C -1 -1 1.8 2.8 1.6 40 2.3 800 0.1 0.1 2.15 36 53 TYP (Note 5) MAX (Note 6) 5.5 5.5 6 4 120 5 950 +1 +1 2.4 UNITS V V A A A A nA A A V mV mV 9 7, 9 7, 9 2, 3 2 2, 9 2, 3 NOTES
PARAMETER Main Power Supply Battery Supply Voltage Supply Current
IRQ1/fOUT and IRQ2 VOL Output Low Voltage VDD = 5V IOL = 3mA VDD = 2.7V IOL = 1mA 0.02 0.02 0.4 0.4 V V
Power-Down Timing
SYMBOL VDD SR-
Timing Temperature = -40C to +85C, unless otherwise stated. PARAMETER CONDITIONS MIN (Note 6) TYP (Note 5) MAX (Note 6) 5 UNITS V/ms NOTES 4, 9
VDD Negative Slewrate
Serial Interface Specifications Over the recommended operating conditions, unless otherwise specified.
SYMBOL VIL VIH Hysteresis VOL PARAMETER SDA and SCL Input Buffer LOW Voltage SDA and SCL Input Buffer HIGH Voltage SDA and SCL Input Buffer Hysteresis SDA Output Buffer LOW Voltage, Sinking 3mA 0 TEST CONDITIONS MIN TYP MAX (Note 6) (Note 5) (Note 6) -0.3 0.7 x VDD 0.05 x VDD 0.02 0.4 0.3 x VDD VDD + 0.3 UNITS V V V V 7, 8 NOTES
4
FN6731.3 November 24, 2008
ISL12082
Serial Interface Specifications Over the recommended operating conditions, unless otherwise specified. (Continued)
SYMBOL Cpin fSCL tIN tAA tBUF PARAMETER SDA and SCL Pin Capacitance SCL Frequency Pulse Width Suppression Time at SDA and SCL Inputs SCL Falling Edge to SDA Output Data Valid Any pulse narrower than the max spec is suppressed SCL falling edge crossing 30% of VDD, until SDA exits the 30% to 70% of VDD window 1300 TEST CONDITIONS TA = +25C, f = 1MHz, VDD = 5V, VIN = 0V, VOUT = 0V MIN TYP MAX (Note 6) (Note 5) (Note 6) 10 400 50 900 UNITS pF kHz ns ns ns NOTES 7, 8
Time the Bus Must Be Free Before SDA crossing 70% of VDD during a STOP the Start of a New Transmission condition, to SDA crossing 70% of VDD during the following START condition Clock LOW Time Clock HIGH Time START Condition Setup Time START Condition Hold Time Input Data Setup Time Measured at the 30% of VDD crossing Measured at the 70% of VDD crossing SCL rising edge to SDA falling edge. Both crossing 70% of VDD From SDA falling edge crossing 30% of VDD to SCL falling edge crossing 70% of VDD From SDA exiting the 30% to 70% of VDD window, to SCL rising edge crossing 30% of VDD From SCL falling edge crossing 30% of VDD to SDA entering the 30% to 70% of VDD window From SCL rising edge crossing 70% of VDD, to SDA rising edge crossing 30% of VDD From SDA rising edge to SCL falling edge Both crossing 70% of VDD From SCL falling edge crossing 30% of VDD, until SDA enters the 30% to 70% of VDD window From 30% to 70% of VDD From 70% to 30% of VDD
tLOW tHIGH tSU:STA tHD:STA tSU:DAT
1300 600 600 600 100
ns ns ns ns ns
tHD:DAT
Input Data Hold Time
0
900
ns
tSU:STO tHD:STO tDH
STOP Condition Setup Time STOP Condition Hold Time Output Data Hold Time
600 600 0
ns ns ns
tR tF Cb Rpu
SDA and SCL Rise Time SDA and SCL Fall Time
20 + 0.1 x Cb 20 + 0.1 x Cb 10 1
300 300 400
ns ns pF k
7, 8 7, 8 7, 8 7, 8
Capacitive Loading of SDA or SCL Total on-chip and off-chip SDA and SCL Bus Pull-Up Resistor Off-Chip Maximum is determined by tR and tF For Cb = 400pF, max is about 2k to ~2.5k For Cb = 40pF, max is about 15k to ~20k
NOTES: 2. IRQ and fOUT Inactive. 3. LPMODE = 0 (default). 4. In order to ensure proper timekeeping, the VDD SR- specification must be followed. 5. Typical values are for T = +25C and 3.3V supply voltage. 6. Parameters with MIN and/or MAX limits are 100% tested at +25C, unless otherwise specified. Temperature limits established by characterization and are not production tested. 7. Limits should be considered typical and are not production tested. 8. These are I2C specific parameters and are not tested, however, they are used to set conditions for testing devices to validate specification. 9. Parameters are for 10 Ld MSOP package only.
5
FN6731.3 November 24, 2008
ISL12082 SDA vs SCL Timing
tF tHIGH tLOW tR
SCL tSU:STA tHD:STA SDA (INPUT TIMING)
tSU:DAT tHD:DAT tSU:STO
tAA SDA (OUTPUT TIMING)
tDH
tBUF
Symbol Table
WAVEFORM INPUTS Must be steady OUTPUTS Will be steady
May change from LOW to HIGH May change from HIGH to LOW DonAoNt Changes Allowed N/A
Will change from LOW to HIGH Will change from HIGH to LOW Changing: State Not Known Center Line is High Impedance
6
FN6731.3 November 24, 2008
ISL12082 Typical Performance Curves
0.2 1.8 1.6 1.4 IBAT (A) IBAT (A) 1.2 1.0 0.8 0.6 0.4 0.2 0 1.8 2.3 2.8 3.3 3.8 VBAT (V) 4.3 4.8 5.3
Temperature is +25C unless otherwise specified
1.00 0.95 0.90 0.85 0.80 0.75 0.70 0.65 0.60 0.55 0.50 -40 -20 0 20 40 TEMPERATURE (C) 60 80
FIGURE 1. IBAT vs VBAT
FIGURE 2. IBAT vs TEMPERATURE AT VBAT = 3V
3.5 VDD = 5V 3.0
3.5 3.0 2.5
IDD (A)
ICC (A)
2.5
2.0 1.5
LP MODE OFF
2.0 VDD = 3.3V
LP MODE ON 1.0 0.5 1.8
1.5
1.0 -40
-20
0
20 VDD (V)
40
60
80
2.3
2.8
3.3
3.8 VCC (V)
4.3
4.8
5.3
FIGURE 3. IDD1 vs TEMPERATURE
FIGURE 4. IDD1 vs VCC WITH LPMODE ON AND OFF
3.5
4.5
IDD (A)
2.5
IDD (A)
3.5
1.5 1 512 FOUT (Hz) 4096 32768
2.5
1
512
4096 FOUT (Hz)
32768
FIGURE 5. IDD1 vs fOUT AT VDD = 3.3V
FIGURE 6. IDD1 vs fOUT AT VDD = 5V
7
FN6731.3 November 24, 2008
ISL12082
EQUIVALENT AC OUTPUT LOAD CIRCUIT FOR VDD = 5V 5.0V 1533 SDA IRQ1/fOUT AND IRQ2 FOR VOL= 0.4V AND IOL = 3mA X1 X2
100pF
FIGURE 8. RECOMMENDED CRYSTAL CONNECTION
FIGURE 7. STANDARD OUTPUT LOAD FOR TESTING THE DEVICE WITH VDD = 5.0V
VBAT
This input provides a backup supply voltage to the device. VBAT supplies power to the device in the event that the VDD supply fails. This pin can be connected to a battery, a Supercapacitor or tied to ground if not used.
General Description
The ISL12082 device is a low power real time clock with timing and crystal compensation, clock/calendar, power fail indicator, periodic or polled alarm, timer/watchdog, and intelligent battery backup switching. The oscillator uses an external, low-cost 32.768kHz crystal. The real time clock tracks time with separate registers for hours, minutes, seconds, and sub-seconds. The device has calendar registers for date, month, year and day of the week. The calendar is accurate through 2099, with automatic leap year correction. The ISL12082's powerful alarm can be set to any clock/calendar value for a match. For example, every minute, every Tuesday or at 5:23 AM on March 21. The alarm status is available by checking the Status Register, or the device can be configured to provide a hardware interrupt via the IRQ1/fOUT or IRQ2 pin. There is a repeat mode for the alarm allowing a periodic interrupt every minute, every hour, every day, etc. The ISL12082 has a powerful timer function. The timer status is available by checking the Status Register, or the device can be configured to provide a hardware interrupt via the IRQ2 pin. The device also offers a backup power input pin. This VBAT pin allows the device to be backed up by battery or Supercapacitor with automatic switchover from VDD to VBAT. The entire ISL12082 device is fully operational from 2.7V to 5.5V and the clock/calendar portion of the device remains fully operational down to 1.8V (Standby Mode).
IRQ1/fOUT (Interrupt Output 1/Frequency Output)
The IRQ1/fOUT is an open drain output. This dual function pin can be used as an interrupt or frequency output pin. The IRQ1/fOUT mode is selected via the IRQ1E bit of the control register (address 08h). * Interrupt Mode. The pin provides an interrupt signal output. This signal notifies a host processor that an alarm has occurred and requests action. * Frequency Output Mode. The pin outputs a clock signal which is related to the crystal frequency. The frequency output is user selectable and enabled via the I2C bus.
IRQ2 (Interrupt Output 2)
The IRQ2 is an open drain output. The IRQ2 pin can be used as an alarm interrupt or timer interrupt output pin. The IRQ2 mode is selected via the IRQ2E control bits of the control register (address 08h). The pin provides an interrupt signal output. This signal notifies a host processor that an alarm or timer has occurred and requests action.
Serial Clock (SCL)
The SCL input is used to clock all serial data into and out of the device. The input buffer on this pin is always active (not gated). It is disabled when the backup power supply on the VBAT pin is activated to minimize power consumption.
Serial Data (SDA)
Pin Description
X1, X2
The X1 and X2 pins are the input and output, respectively, of an inverting amplifier. An external 32.768kHz quartz crystal is used with the ISL12082 to supply a timebase for the real time clock. Internal compensation circuitry provides high accuracy over the operating temperature range from -40C to +85C. This oscillator compensation network can be used to calibrate the crystal timing accuracy over-temperature either during manufacturing or with an external temperature sensor and microcontroller for active compensation. The device can also be driven directly from a 32.768kHz source at pin X1.
SDA is a bi-directional pin used to transfer data into and out of the device. It has an open drain output and may be ORed with other open drain or open collector outputs. The input buffer is always active (not gated) in normal mode. An open drain output requires the use of a pull-up resistor. The output circuitry controls the fall time of the output signal with the use of a slope controlled pull-down. The circuit is designed for 400kHz I2C interface speeds. It is disabled when the backup power supply on the VBAT pin is activated.
VDD, GND
Chip power supply and ground pins. The device will operate with a power supply from 2.7V to 5.5VDC. A 0.1F
FN6731.3 November 24, 2008
8
ISL12082
decoupling capacitor is recommended on the VDD pin to ground.
Functional Description
Power Control Operation
The power control circuit accepts a VDD and a VBAT input. Many types of batteries can be used with Intersil RTC products. For example, 3.0V or 3.6V Lithium batteries are appropriate, and battery sizes are available that can power the ISL12082 for up to 10 years. Another option is to use a Supercapacitor for applications where VDD is interrupted for up to a month. See the "Application Section" on page 22 for more information.
VDD VBAT VTRIP VTRIP
BATTERY BACKUP MODE
3.0V 2.2V
VTRIP + VTRIPHYS
FIGURE 10. BATTERY SWITCHOVER WHEN VBAT > VTRIP
Normal Mode (VDD) to Battery Backup Mode (VBAT)
To transition from the VDD to VBAT mode, both of the following conditions must be met: Condition 1: VDD < VBAT - VBATHYS where VBATHYS 50mV Condition 2: VDD < VTRIP where VTRIP 2.2V
The I2C bus is deactivated in battery backup mode to provide lower power. Aside from this, all RTC functions are operational during battery backup mode. Except for SCL and SDA, all the inputs and outputs of the ISL12082 are active during battery backup mode unless disabled via the control register.
Power Failure Detection
The ISL12082 provides a Real Time Clock Failure Bit (RTCF, address 0Bh) to detect total power failure. It allows users to determine if the device has powered up after having lost all power to the device (both VDD and VBAT).
Low Power Mode
The normal power switching of the ISL12082 is designed to switch into battery backup mode only if the VDD power is lost. This will ensure that the device can accept a wide range of backup voltages from many types of sources while reliably switching into backup mode. Another mode, called Low Power Mode, is available to allow direct switching from VDD to VBAT without requiring VDD to drop below VTRIP. Since the additional monitoring of VDD vs VTRIP is no longer needed, that circuitry is shut down and less power is used while operating from VDD. Power savings are typically 600nA at VDD = 5V. Low Power Mode is activated via the LPMODE bit in the control and status registers. Low Power Mode is useful in systems where VDD is normally higher than VBAT at all times. The device will switch from VDD to VBAT when VDD drops below VBAT, with about 50mV of hysteresis to prevent any switchback of VDD after switchover. In a system with a VDD = 5V and backup lithium battery of VBAT = 3V, Low Power Mode can be used. However, it is not recommended to use Low Power Mode in a system with VDD = 3.3V 10%, VBAT 3.0V, and when there is a finite I-R voltage drop in the VDD line.
Battery Backup Mode (VBAT) to Normal Mode (VDD)
The ISL12082 device will switch from the VBAT to VDD mode when one of the following conditions occurs: Condition 1: VDD > VBAT + VBATHYS where VBATHYS 50mV Condition 2: VDD > VTRIP + VTRIPHYS where VTRIPHYS 30mV These power control situations are illustrated in Figures 9 and 10.
VDD VTRIP VBAT VBAT - VBATHYS
BATTERY BACKUP MODE
2.2V 1.8V VBAT + VBATHYS
InterSealTM and ReSealTM Battery Saver
The ISL12082 has the InterSealTM Battery Saver, which prevents initial battery current drain before it is first used. For example, battery-backed RTCs are commonly packaged on a board with a battery connected. In order to preserve battery life, the ISL12082 will not draw any power from the battery source until after the device is first powered up from the VDD source. Thereafter, the device will switchover to battery backup mode whenever VDD power is lost.
FIGURE 9. BATTERY SWITCHOVER WHEN VBAT < VTRIP
9
FN6731.3 November 24, 2008
ISL12082
The ISL12082 has the ReSealTM function, which allows the device to enter into the InterSealTM Battery Saver mode after manufacture testing for board functionality. To use the ReSealTM function, simply set RESEAL bit to "1" (address 07h) after the testing is completed. It will enable the InterSealTM Battery Saver mode and prevents battery current drain before it is first used. The alarm function can be enabled/disabled during battery backup mode using the FOBATB bit (address 08h). For more information on the alarm, see "Alarm Registers" on page 14.
Frequency Output Mode
The ISL12082 has the option to provide a frequency output signal using the IRQ/fOUT pin. The frequency output mode is set by using the FO bits to select 4 possible output frequency values from 1kHz to 32.768kHz. The frequency output can be enabled/disabled during battery backup mode using the FOBATB bit (address 08h).
Real Time Clock Operation
The Real Time Clock (RTC) uses an external 32.768kHz quartz crystal to maintain an accurate internal representation of sub-second, second, minute, hour, day of week, date, month, and year. The RTC also has leap-year correction. The RTC also corrects for months having fewer than 31 days and has a bit that controls 24 hour or AM/PM format. When the ISL12082 powers up after the loss of both VDD and VBAT, the clock will not begin incrementing until at least one byte is written to the clock register.
I2C Serial Interface
The ISL12082 has an I2C serial bus interface that provides access to the control and status registers and the user SRAM. The I2C serial interface is compatible with other industry I2C serial bus protocols using a bi-directional data signal (SDA) and a clock signal (SCL).
Accuracy of the Real Time Clock
The accuracy of the Real Time Clock depends on the frequency of the quartz crystal that is used as the time base for the RTC. Since the resonant frequency of a crystal is temperature dependent, the RTC performance will also be dependent upon temperature. The frequency deviation of the crystal is a function of the turnover-temperature of the crystal from the crystal's nominal frequency. For example, a ~20ppm frequency deviation translates into an accuracy of ~1 minute per month. These parameters are available from the crystal manufacturer. The ISL12082 provides on-chip crystal compensation networks to adjust load capacitance to tune oscillator frequency from -94ppm to +140ppm. For more detailed information, see "Application Section" on page 22.
Oscillator Compensation
The ISL12082 provides the option of timing correction due to temperature variation of the crystal oscillator for either manufacturing calibration or active calibration. The total possible compensation is typically -94ppm to +140ppm. Two compensation mechanisms that are available are as follows: 1. An analog trimming (ATR) register that can be used to adjust individual on-chip digital capacitors for oscillator capacitance trimming. The individual digital capacitor is selectable from a range of 9pF to 40.5pF (based upon 32.758kHz). This translates to a calculated compensation of approximately -34ppm to +80ppm. See "ATR description" on page 22. 2. A digital trimming register (DTR) that can be used to adjust the timing counter by -63ppm to +126ppm. See "DTR description" on page 22. Also provided is the ability to adjust the crystal capacitance when the ISL12082 switches from VDD to battery backup mode.
Single Event and Interrupt
The alarm mode is enabled via the ALME bit (address 08h). Choosing single event or interrupt alarm mode is selected via the IM bit (address 08h). Note that when the frequency output function is enabled, the alarm function is disabled. The standard alarm allows for alarms of time, date, day of the week, month, and year. When a time alarm occurs in single event mode, an IRQ1/fOUT and/or IRQ2 pin will be pulled low and the alarm status bit (ALM) will be set to "1". The pulsed interrupt mode allows for repetitive or recurring alarm functionality. Hence, once the alarm is set, the device will continue to alarm for each occurring match of the alarm and present time. Thus, it will alarm as often as every minute (if only the nth second is set) or as infrequently as once a year (if at least the nth month is set). During pulsed interrupt mode, the IRQ1/fOUT and/or IRQ2 pin will be pulled low for 210ms and the alarm status bit (ALM) will be set to "1". Note: The ALM bit can be reset by the user or cleared automatically using the auto reset mode (see ARST bit, address 07h). 10
Register Descriptions
The battery-backed registers are accessible following a slave byte of "1101111x" and reads or writes to addresses [00h:1Fh]. The defined addresses and default values are described in Table 1. Address 16h to 1Eh are not used. Reads or writes to addresses 16h to 1Eh will not affect operation of the device but should be avoided.
Register Access
The contents of the registers can be modified by performing a byte or a page write operation directly to any register address. The registers are divided into 4 sections. These are: 1. Real Time Clock (8 bytes): Address 00h to 06h, and 1Fh, with address 1Fh as read-only byte. 2. Control and Status (5 bytes): Address 07h to 0Bh.
FN6731.3 November 24, 2008
ISL12082
3. Alarm (6 bytes): Address 0Ch to 11h. 4. TIMER (4 bytes): Address 12h to 14h, with address 14h as write-only byte and read back `0'.. There are no addresses above 1Fh. Address 15h to 1Eh are not used. Reads or writes to addresses 15h to 1Eh will not affect operation of the device but should be avoided. Write capability is allowable into the RTC registers (00h to 06h, and 1Fh) 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.
TABLE 1. REGISTER MEMORY MAP REG NAME SS SC MN HR DT MO YR DW Status Control SR INT TMRC ATR DTR SCA MNA HRA Alarm0 0Fh 10h 11h 12h 13h 14h TIMER DTA MOA DWA TDAT TCNT TSDAT EDTA EMOA EDWA TDAT7 TCNT7 X 0 0 0 TDAT6 TCNT6 TSDAT6 ADT21 0 0 TDAT5 TCNT5 TSDAT5 ADT20 AMO20 0 TDAT4 TCNT4 TSDAT4 ADT13 AMO13 0 TDAT3 TCNT3 TSDAT3 ADT12 AMO12 ADW12 TDAT2 TCNT2 TSDAT2 ADT11 AMO11 ADW11 TDAT1 TCNT1 TSDAT1 ADT10 AMO10 ADW10 TDAT0 TCNT0 TSDAT0 1 to 31 1 to 12 0 to 6 0 to 255 0 to 255 0 to 99 00h 00h 00h 00h 00h 00h BIT 7 SS23 0 OF MIL 0 0 YR23 0 ARST IM TIM BMATR1 0 ESCA EMNA EHRA 6 SS22 SC22 MN22 0 0 0 YR22 0 XSTOP ALME TMRE BMATR0 0 ASC22 AMN22 0 5 SS21 SC21 MN21 HR21 DT21 0 YR21 0 RESEAL LPMODE TMOD1 ATR5 DTR5 ASC21 AMN21 AHR21 4 SS20 SC20 MN20 HR20 DT20 MO20 YR20 0 WRTC FOBATB TMOD0 ATR4 DTR4 ASC20 AMN20 AHR20 3 SS13 SC13 MN13 HR13 DT13 MO13 YR13 0 TMR IRQ2E 0 ATR3 DTR3 ASC13 AMN13 AHR13 2 SS12 SC12 MN12 HR12 DT12 MO12 YR12 DW12 ALM IRQ1E 0 ATR2 DTR2 ASC12 AMN12 AHR12 1 SS11 SC11 MN11 HR11 DT11 MO11 YR11 DW11 BAT FO1 TCLK1 ATR1 DTR1 ASC11 AMN11 AHR11 0 SS10 SC10 MN10 HR10 DT10 MO10 YR10 DW10 RTCF FO0 TCLK0 ATR0 DTR0 ASC10 AMN10 AHR10 REG RANGE DEFAULT 0 to 99 0 to 59 0 to 59 0 to 23 1 to 31 1 to 12 0 to 99 0 to 6 N/A N/A N/A N/A N/A 00 to 59 00 to 59 0 to 23 00h 00h 80h 00h 00h 00h 00h 00h 03h 00h 00h 00h 80h 00h 00h 00h
ADDR. SECTION 1Fh 00h 01h 02h 03h 04h 05h 06h 07h 08h 09h 0Ah 0Bh 0Ch 0Dh 0Eh RTC
11
FN6731.3 November 24, 2008
ISL12082 Real Time Clock Registers
Addresses [00h to 06h, and 1Fh]
RTC REGISTERS (SC, MN, HR, DW, DT, MO, YR, SS) These registers depict BCD representations of the time. As such, SC (Seconds, address 00h) and MN (Minutes, address 01h) range from 0 to 59, HR (Hour, address 02h) can either be a 12-hour or 24-hour mode, DT (Date, address 03h) is 1 to 31, MO (Month, address 04h) is 1 to 12, YR (Year, address 05h) is 0 to 99, DW (Day of the Week, address 03h) is 0 to 6, and SS (Sub-Seconds/Hundredths of a Second, address 1Fh) is 0 to 99. The SS register is read only. A Page read operation to read all the RTC regsiters is possible by setting up the address to 1Fh then do a page read of 8 bytes. The first data read will be SS, then follows by SC, MN, HR, DT, MO, YR, and DW at the end. This is done by using address wrap around feature of the ISL12082. The address wraps around from 1Fh to 00h in page read instruction. 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-12-... 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". Bit D7 of MN register contains the Oscillator Fail Indicator bit (OF). This bit is set to a "1" when there is no oscillation on X1 pin. The OF bit can only be reset by having an oscillation on X1 and a write operation to reset it. 24 HOUR TIME If the MIL bit of the HR register is "1", the RTC uses a 24hour 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 formattime 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 ISL12082 does not correct for the leap year in the year 2100. write protection of clock counter, crystal oscillator enable and auto reset of status bits.
TABLE 2. STATUS REGISTER (SR) ADDR 07h Default 7 6 5 4 3 2 1 0
ARST XSTOP RESEAL WRTC TMR ALM BAT RTCF 0 0 1 0 0 0 1 1
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 (ISL12082 internally) when the device powers up after having lost all power (both VDD and VBAT go to 0V). The bit is set regardless of whether VDD or VBAT is applied first. The loss of only one of the supplies does not set the RTCF bit to "1". On power-up after a total power failure, all registers are set to their default states and the clock will not increment until at least one byte is written to the clock register. 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) This bit announces that 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. TIMER BIT (TMR) This bit announces that the timer has expired. If the timer has expired, 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". WRITE RTC ENABLE BIT (WRTC)
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) [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 RTC failure, battery mode, alarm trigger,
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. ReSealTM (RESEAL) The ReSealTM enables the device enter into the InterSealTM Battery Saver mode after board functional testing. The factory
12
FN6731.3 November 24, 2008
ISL12082
default setting of this bit is "0" to enable the backup battery operation. To use the ReSealTM function, simply set RESEAL bit to "1" after the testing is completed. It will enable the InterSealTM Battery Saver mode and prevents battery current drain before it is first used. Upon the next VDD powerup, the bit will reset to "0" and the backup battery will be utilized. CRYSTAL OSCILLATOR ENABLE BIT (XSTOP) This bit enables/disables the 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 BAT, ALM and TMR 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, ALM and TMR bits.
TABLE 5. FUNCTION SELECTION OF IRQ1/fOUT PIN (Continued) IRQ1/fOUT FUNCTION ALARM IRQ IRQ2E X IRQ1E 1
TABLE 6. FUNCTION SELECTION OF IRQ2 PIN IRQ2 FUNCTION ALARM IRQ TIMER IRQ IRQ2E 0 1 IRQ1E X X
FREQUENCY OUTPUT AND INTERRUPT BIT (FOBATB) This bit enables/disables the IRQ1/fOUT pin during battery backup mode (i.e. VBAT power source active). When the FOBATB is set to "1", the IRQ1/fOUT 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 IRQ1/fOUT pin is enabled during battery backup mode. LOW POWER MODE BIT (LPMODE)
0
Interrupt Control Register (INT) [Address 08h]
TABLE 3. INTERRUPT CONTROL REGISTER (INT) ADDR 08h Default 7 6 5 4 3 2 1
IM ALME LPMODE FOBATB IRQ2E IRQ1E FO1 FO0 0 0 0 0 0 0 0 0
FREQUENCY OUT CONTROL BITS (FO <1:0>) These bits select the output frequency at the IRQ/fOUT pin. IRQ1E must be set to "0" for frequency output at the IRQ/fOUT pin. See Table 4 for frequency selection.
TABLE 4. FREQUENCY SELECTION OF fOUT PIN FREQUENCY, fOUT 32768 4096 512 1 UNITS Hz Hz Hz Hz FO1 0 0 1 1 FO0 0 1 0 1 COMMENT Free running crystal clock Free running crystal clock Free running crystal clock Sync. with second, 30s jitter
This bit enables/disables low power mode. With LPMODE = "0", the device will be in normal mode and the VBAT supply will be used when VDD < VBAT - VBATHYS and VDD < VTRIP. With LPMODE = "1", the device will be in low power mode and the VBAT supply will be used when VDD < VBAT - VBATHYS. There is a supply current saving of about 600nA when using LPMODE = "1" with VDD = 5V (See "Typical Performance Curves" on page 7: IDD vs VCC with LPMODE ON and OFF). see also "Power Control Operation" under "Functional Description" on page 9. 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. ALARM PULSE/EVENT INTERRUPT 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 210ms will appear at the IRQ1/fOUT and/or IRQ2 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 IRQ1/FOUT and/or IRQ2 pin will be tied low until the ALM status bit is cleared to "0". The IM bit is set to "0" on power-up.
IM BIT ALARM PULSE/EVENT INTERRUPT FUNCTION Single Time Event Set By Alarm
Note: The falling edge of 1Hz frequency output is synchronized with the seconds. IRQ FUNCTION SELECTION BITS (IRQ1E, IRQ2E) These bits select the function of IRQ1/fOUT and IRQ2 pin. See Table 5 for function selection of IRQ1/fOUT pin and Table 6 for function selection of IRQ2 pin.
TABLE 5. FUNCTION SELECTION OF IRQ1/fOUT PIN IRQ1/fOUT FUNCTION fOUT IRQ2E X IRQ1E 0
0
13
FN6731.3 November 24, 2008
ISL12082
IM BIT 1 ALARM PULSE/EVENT INTERRUPT FUNCTION Repetitive/Recurring Time Event Set By Alarm
BATTERY MODE ATR SELECTION (BMATR <1:0>) Since the accuracy of the crystal oscillator is dependent on the VDD/VBAT operation, the ISL12082 provides the capability to adjust the capacitance between VDD and VBAT when the device switches between power sources.
Analog Trimming Register (ATR) [Address 0Ah]
TABLE 7. ANALOG TRIMMING REGISTER (ATR) ADDR 0Ah Default 7 6 5 4 3 2 1 0
BMATR1 BMATR0 ATR5 ATR4 ATR3 ATR2 ATR1 ATR0 0 0 0 0 0 0 0 0
BMATR1 0 0 1
BMATR0 0 1 0 1 0pF
DELTA CAPACITANCE (CBAT TO CVDD)
ANALOG TRIMMING REGISTER (ATR<5:0>)
X1 CX1 X2
-0.5pF ( +2ppm) +0.5pF ( -2ppm) +1pF ( -4ppm)
1
CRYSTAL OSCILLATOR
Digital Trimming Register (DTR) [Address 07h]
TABLE 8. DIGITAL TRIMMING REGISTER (DTR) ADDR 7 0 0 6 0 0 5 4 3 2 1 0
CX2
07h Default
DTR5 DTR4 DTR3 DTR2 DTR1 DTR0 0 0 0 0 0 0
FIGURE 11. DIAGRAM OF ATR
DIGITAL TRIMMING REGISTER (DTR<5:0>) Six digital trimming bits, DTR0 to DTR5, are provided to adjust the average number of counts per second and average the ppm error to achieve better accuracy. * DTR5 is a sign bit. DTR5 = "0" means frequency compensation is < 0. DTR5 = "1" means frequency compensation is > 0. * DTR<4:0> are scale bits. With DTR5 = "0", DTR<4:0> gives 2.0345ppm adjustment per step. With DTR5 = "1", DTR<4:0> gives 4.0690ppm adjustment per step. A range from -63.0696ppm to +126.139ppm can be represented by using these 6 bits. For example, with DTR = 11111, the digital adjustment is (1111b[15d]*4.0690) = +126.139ppm. With DTR = 01111, the digital adjustment is (-(1111b[15d]*2.0345)) = -63.0696ppm.
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 -34ppm to +80ppm to the nominal frequency compensation. The combination of analog and digital trimming can give up to -97ppm to +206ppm of total adjustment. The effective on-chip series load capacitance, CLOAD, ranges from 4.5pF to 20.25pF with a mid-scale value of 12.5pF (default). CLOAD is changed via two digitally controlled capacitors, CX1 and CX2, connected from the X1 and X2 pins to ground (see Figure 11). The value of CX1 and CX2 are given in Equation 1:
C X = ( 16 b5 + 8 b4 + 4 b3 + 2 b2 + 1 b1 + 0.5 b0 + 9 )pF (EQ. 1)
Alarm Registers
Addresses [Address 0Ch to 11h]
The alarm 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 and sub-second, and the register order for alarm register is not a 100% matching to the RTC register so please take caution on programming the alarm function. The alarm function works as a comparison between the alarm registers and the RTC registers. As the RTC advances, the alarm will be triggered once a match occurs between the alarm registers and the RTC registers. Any one
The effective series load capacitance is the combination of CX1 and CX2 in Equation 2:
C LOAD
= ---------------------------------X1 X2
1 1 1 ---------- + ---------- C C
(EQ. 2) 2
16 b5 + 8 b4 + 4 b3 + 2 b2 + 1 b1 + 0.5 b0 + 9 C LOAD = ---------------------------------------------------------------------------------------------------------------------------- pF
For example, CLOAD(ATR = 00000) = 12.5pF, CLOAD (ATR = 100000) = 4.5pF and CLOAD (ATR = 011111) = 20.25pF. The entire range for the series combination of load capacitance goes from 4.5pF to 20.25pF in 0.25pF steps. Note that these are typical values.
14
FN6731.3 November 24, 2008
ISL12082
alarm register, multiple registers, or all registers can be enabled for a match. There are two alarm operation modes: Single Event and Periodic Interrupt Mode: * Single Event Mode is enabled by setting the ALME bit to "1", the IM bit to "0", and IRQ1E bit to "1" and/or IRQ2E bit to "0". This mode permits a one-time match between the alarm registers and the RTC registers. Once this match occurs, the ALM status bit is set to "1" and the IRQ1/fOUT and/or IRQ2 output will be pulled low and will remain low until the ALM status bit is reset to "0". This can be done manually or by using the auto-reset feature. * Periodic Interrupt Mode is enabled by setting the ALME bit to "1", the IM bit to "1", and IRQ1E bit to "1" and/or IRQ2E bit to "0". The IRQ1/fOUT and/or IRQ2 output will now be pulsed each time an alarm occurs. This means that once the interrupt mode alarm is set, it will continue to alarm for each occurring match of the alarm and present time. This mode is convenient for hourly or daily hardware interrupts in microcontroller applications such as security cameras or utility meter reading. To clear an alarm, the ALM status bit must be set to "0" with a write. Note that if the ARST bit is set to "1" (address 07h, Bit 7), the ALM bit will automatically be cleared when the status register is read. Following are examples of both Single Event and periodic Interrupt Mode alarms. Example 1 - Alarm set with single interrupt (IM = "0") A single alarm will occur on January 1 at 11:30am. A. Set Alarm registers as follows:
ALARM REGISTER 7 SCA MNA HRA DTA MOA DWA 0 1 1 1 1 0 BIT 6 0 0 0 0 0 0 5 0 1 0 0 0 0 4 0 1 1 0 0 0 3 0 0 0 0 0 0 2 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 1 1 0 HEX DESCRIPTION
seconds changes from 59 to 00) by setting the ALM bit in the status register to "1" and also bringing the IRQ1/fOUT and IRQ2 output low if IRQ1E bit is set to "1" and IRQ2E bit is set to "0". Example 2 - Pulsed interrupt once per minute (IM = "1") Interrupts at one minute intervals when the seconds register is at 30s. A. Set alarm registers as follows:
BIT ALARM REGISTER 7 6 5 4 3 2 1 0 HEX SCA MNA HRA DTA MOA DWA
DESCRIPTION
1 0 1 1 0 0 0 0 B0h Seconds set to 30, enabled 0 0 0 0 0 0 0 0 00h Minutes disabled 0 0 0 0 0 0 0 0 00h Hours disabled 0 0 0 0 0 0 0 0 00h Date disabled 0 0 0 0 0 0 0 0 00h Month disabled 0 0 0 0 0 0 0 0 00h Day of week disabled
B. Set the Interrupt register as follows:
BIT CONTROL REGISTER 7 6 5 4 3 2 1 0 HEX INT
DESCRIPTION
1 1 x x 0 0 0 0 x0h Enable Alarm and Int Mode
NOTE: x indicate other control bits Once the registers are set, the following waveform will be seen at IRQ:
RTC AND ALARM REGISTERS ARE BOTH 30s
00h Seconds disabled B0h Minutes set to 30, enabled 91h Hours set to 11, enabled 81h Date set to 1, enabled 81h Month set to 1, enabled 00h Day of week disabled
60s
Note that the status register ALM bit will be set each time the alarm is triggered, but does not need to be read or cleared.
Timer Control Register (TMRC) [Address 09h]
TABLE 9. TIMER CONTROL REGISTER (TMRC) ADDR 09h Default 7 6 5 4 3 0 0 2 0 0 1 0
TIM TMRE TMOD1 TMOD0 0 0 0 0
TCLK1 TCLK0 0 0
B. Set the ALME bit as follows:
CONTROL REGISTER 7 INT 0 BIT 6 1 5 x 4 x 3 0 2 0 1 0 0 0 HEX x0h DESCRIPTION Enable Alarm
TIMER CLOCK FREQUENCY SELECTION BITS (TCLK <1:0>) For detailed timer operation, please refer to "TIMER COUNTER OPERATION" on page 17. These bits select the Timer/Watchdog clock frequency for the Timer Counter Register (TCNT, address 13h) and the internal Sub-Timer Counter Register (TSCNT). When the
FN6731.3 November 24, 2008
NOTE: x indicate other control bits After these registers are set, an alarm will be generated when the RTC advances to exactly 11:30am on January 1 (after 15
ISL12082
Sub-Timer Initial Register (TSDAT, address 14h) is set to "0", the number of counts changes to the default value. The maximum register value for the TSDAT register is 127 which means the maximum limit for the internal Sub-Timer Counter Register is also 127. See Table 10 for Timer/Watchdog clock frequency selection and the default counts for the Sub-Timer Counter Register.
TABLE 10. TIMER CLOCK FREQUENCY SELECTION AND DEFAULT VALUE FOR TSDAT REGISTER TCLK1 TCLK0 FUNCTION 0 0 COMMENT 0 1
1. Count Down Timer 2. Secondary Alarm Timer 3. Watchdog Timer 4. Power Fail Count-up Timer Please see Table 11 for Timer counting functions selection.
TABLE 11. TIMER COUNTING FUNCTION SELECTION TMOD1 TMOD0 0 0 FUNCTION Count Down Timer Secondary Alarm Timer Watchdog Timer Power Fail Count-up Timer COMMENT Basic count down timer (TCNT register decrement) Basic count down timer activated by ALARM IRQ (ALM bit) (TCNT register decrement) Count up timer with periodic interrupt (TCNT register increment) Count up after device entered into battery mode (TCNT register increment)
100Hz/4kHz 100Hz for TCNT, 4kHz for TSCNT Default Value for TSDAT = 41 (41 TSCNT counts = 1ms) (Not available for Watchdog Timer) 1sec/100Hz 1sec for TCNT, 100Hz for TSCNT Default Value for TSDAT = 100 (100 TSCNT counts = 1s)
1 0 1
0
1 1 0 1min/1sec 1min for TCNT, 1sec for TSCNT Default Value for TSDAT = 60 (60 TSCNT counts = 1min) (RTC must be enabled) 1hour for TCNT, 1min for TSCNT Default Value for TSDAT = 60 (60 TSCNT counts = 1hr) (RTC must be enabled)
1
TIMER ENABLE BIT (TMRE)
1 1 1hr/1min
The Timer Counter and Sub-Timer Counter Registers advance the counter value based on the frequency or time setting by the TCLK<1:0> bits. The following are examples of Timer clock frequency selection bits on Timer Counter and Sub-Timer Counter Registers. Example 1 - TCLK1 is set to "1", TCLK0 is set to "0", and Sub-Timer Initial Register is set to "0". The internal Sub-Timer Counter will increment every 1s. When the internal Sub-Timer Counter reaches to 60, the default value, the Timer Counter will increment by one which means the Timer Counter will increment every one minute. Example 2- TCLK1 is set to "1", TCLK0 is set to "0", and Sub-Timer Initial Register is set to "10d". The internal Sub-Timer Counter will increment every 1s. When the internal Sub-Timer Counter reaches to 10, the Timer Counter will increment by one which means the Timer Counter will increment every ten seconds. Example 3- TCLK1 is set to "0", TCLK0 is set to "1", and Sub-Timer Initial Register is set to "0". The internal Sub-Timer Counter will increment every 1ms (100Hz). When the internal Sub-Timer Counter reaches to 100, the default value2, the Timer Counter will increment by one which means the Timer Counter will increment every one second. TIMER FUNCTION SELECTION BITS (TMOD <1:0>) The Timer interrupt has four different functions:
This bit enables/disables the timer function. When the TMRE bit is set to "1", the timer is enabled. To display timer interrupt on the IRQ2 pin, the IRQ2E has to be set to "1". When the TMRE bit is cleared to "0", the timer function is disabled. The TMRE bit is set to "0" on power-up. TIMER PULSE/EVENT INTERRUPT BIT (TIM) This bit enables/disables the interrupt mode of the timer function. When the TIM bit is set to "1", the timer will operate in the interrupt mode. An active low pulse width of 210ms will appear at the IRQ2 pin when the RTC is triggered by the timer as defined by the timer registers (12h to 15h). When the TIM bit is cleared to "0", the timer will operate in standard mode, where the IRQ2 pin will be held low until TMR status bit is cleared to "0". The TIM bit is set to "0" on power-up.
TIM BIT 0 1 TIMER PULSE/EVENT INTERRUPT FUNCTION Single Time Event Set By Timer Repetitive/Recurring Time Event Set By Timer
Timer Registers
Addresses [12h to 15h] Timer Initial Register (TDAT) [Address 12h]
The Timer Initial Register is located in the memory map at address 12h. This is a volatile register that stores the timer limit for the timer counter register.
TABLE 12. TIMER INITIAL REGISTER (TDAT) ADDR 12h Default 7 6 5 4 3 2 1 0
TDAT7 TDAT6 TDAT5 TDAT4 TDAT3 TDAT2 TDAT1 TDAT0 0 0 0 0 0 0 0 0
16
FN6731.3 November 24, 2008
ISL12082
Timer Counter Register (TCNT) [Address 13h]
The Timer Counter Register is located in the memory map at address 13h. This is a volatile register that keeps the current timer counter value. This byte is read only.
TABLE 13. TIMER COUNTER REGISTER (TCNT) ADDR 13h Default 7 6 5 4 3 2 1 0
TCNT7 TCNT6 TCNT5 TCNT4 TCNT3 TCNT2 TCNT1 TCNT0 0 0 0 0 0 0 0 0
Sub-Timer Initial Register (TSDAT) [Address 14h]
The Sub-Timer Initial Register is located in the memory map at address 14h. This is a volatile register that stores the timer limit for the internal sub-timer counter register. This byte is write only and only read back a "0"
TABLE 14. SUB-TIMER INITIAL REGISTER (TSDAT) ADDR
14h
TSCNT will count up to the default TSDAT register value to overflow. If the internal TSCNT register overflows, the TCNT register will increment or decrement by one depending on the setting of the TMOD[1:0] bits and the internal TSCNT register resets back to "1" and repeats the counting cycle. The timer expires when the TCNT register increments to the TDAT register value or decrements to zero depending on the setting of the TMOD[1:0] bits. The TMR bit is set and the IRQ2 is held low to indicate the timer interrupt. The IRQ2 only activates for the timer interrupt when the IRQ2E (address 8h, bit 3) sets to "1". There are two timer operation modes for the IRQ2: Single Event and Periodic Interrupt Mode: * Single Event Mode is enabled by setting the TMRE bit to "1", the TIM bit to "0", and IRQ2E bit to "1". This mode permits a one-time timer counting cycle. Once the timer expires, the TMR status bit is set to "1" and the IRQ2 output will be held low until the TMR status bit is reset to "0". This can be done manually or by using the auto-reset feature. Once the TMR status bit is reset, the timer will reset and restart the counting cycle. If the TMRE bit is set to "0" before the TMR status bit is reset, then counting is halted. The IRQ2 can be reset by setting the TMRE bit to "0" but the TMR status bit will remain at "1". The timer can be re-enabled with TMR status remaining at "1". * Periodic Interrupt Mode is enabled by setting the TMRE bit to "1", the TIM bit to "1", and IRQ2E bit to "1". The timer must be disabled prior to setting TIM bit to "1" in order to enable the Periodic Interrupt Mode. In the Periodic Interrupt Mode, the IRQ2 output will be pulsed each time a timer expires. The low and the high pulse width of the IRQ2 can be calculated by the TCLK[1:0] bits, the TDAT register and the TSDAT register. After the interrupt, the internal TSCNT register will keep counting until it overflows. When the internal TSCNT register overflows, the IRQ2 pin is pulled high and the TSCNT register is reset to the value in TDAT register or "1" depended on the TMOD[1:0] setting. Then the new counting cycle begins. The TMR bit is still set each time when the timer expired. Resetting the TMR status bit to "0" from "1" in the Periodic Interrupt Mode will cause the TCNT register and the internal TSCNT register to reset. Depending on when the TMR bit is being reset, the low pulse width or the high pulse width will be prolonged for the amount of time the counter has counted. The Interrupt Mode can be disabled by setting the TIM bit to "0" when timer is enabled. The interrupt mode can not be enabled after the timer is enabled. When the timer is disabled by setting the TMRE bit to "0", the register value for the timer counter and the sub-timer are set back to the default value. The default value for the Timer Counter Register (TCNT, address 13h) is "0" and Sub-Timer Counter Register (TSCNT, address 15h) is "1".
7
6
5
4
3
2
1
0
TSDAT7 TSDAT6 TSDAT5 TSDAT4 TSDAT3 TSDAT2 TSDAT1 TSDAT0
Default
0
0
0
0
0
0
0
0
Internal Sub-Timer Counter Register (TSCNT)
The Internal Sub-Timer Counter Register is an internal volatile register that keeps the current sub-timer counter value. This byte is not accessible.
Timer Counter Operation
The ISL12082 timer consists of a timer counter and a sub-timer counter. The timer counter can be an incremental or a decremental counter which depends on the setting of the Timer Function Selection Bits (TMOD[1:0], address 09h, bits 5 and 4). Sub-timer counter works as an incremental counter. The timer counter is represented by the Timer Counter Register (TCNT, address 13h) and the sub-timer counter is represented by the internal Sub-Timer Counter Register (TSCNT) which is not accessible by the user. The Timer Initial Register (TDAT, address 12h) and the Sub-Timer Initial Register (TSDAT, address 14h) are used to set the limit for the TCNT register and internal TSCNT register respectively. The TDAT register must contain a minimum value of 2 in order to operate the timer properly and the TSAT register can be set to any value up to 127 decimal. If the TSDAT register is set to "0", the TSDAT will reset to the default value which depends on the TCLK[1:0] bits setting which is shown in Table 10. Once the timer function is enabled by setting the TMRE bit to "1", the TCNT register is set to the TDAT value or one depending on the setting of the TMOD[1:0] bits, and the internal TSCNT register is set to one. Then the internal TSCNT will increment one bit at a time and at a frequency set by the Timer Clock Frequency Selection Bits ( TCLK[1:0], address 09h bits 1 and 0). The internal TSCNT register will overflow when it counts up to the value in the TSDAT register. If the TSDAT register is set to "0", the internal 17
FN6731.3 November 24, 2008
ISL12082
Following are the detailed descriptions of the four different timer modes. and succeeding timer expiration, the time interval can be treated as the high pulse width of IRQ2 pin (THIGH_CDT), and it is calculated by using Equation 4. The low interrupt pulse width of IRQ2 pin (TLOW_CDT) is calculated by using Equation 5. Since the TMR status bit is not reset automatically by the device at the new count cycle, if the user resets it, the timer will reset and the next count cycle will be seen as the first count cycle by the device. THIGH_CDT = (TDAT-1)*TSDAT*TCLK
(EQ. 4)
Count Down Timer
The Count Down timer is a basic countdown timer. Once the timer is enabled by setting TMRE bit to "1", the TCNT register is set to the value in TDAT register. The TDAT register must have a value of two or greater in order for the timer to start. If the timer is enabled with TDAT register less than two, then the timer is disabled and the TDAT register has to be set to an appropriate value before the timer can be enabled again. The internal TSCNT register increments from one, and the incremental frequency is set by the TCLK[1:0] bits. Once the internal TSCNT register overflows, the TCNT register will decrement by one and the internal TSCNT register will reset back to one and start counting again until the TCNT register reaches zero. Once the TCNT register reaches zero, the timer will issue an interrupt that will set the TMR status bit to "1" and set the IRQ2 pin to low (if IRQ2E bit is set to "1"). When the TIM = "0" (single event mode), the timer stops after the timer expires. The timer will restart and the IRQ2 pin will be high when the TMR bit is cleared to "0". The timer can also be restarted by resetting the TMRE bit to "1" after setting it to "0". This method is not recommended since the TMR status will not clear by this method and may cause confusion in the system. In single event mode, the time interval for the timer expiration is calculated by using Equation 3. Timer Interval = TDAT*TSDAT*TCLK
(EQ. 3)
Where, TDAT is the value in the TDAT register. TSDAT is the value in the TSDAT register (use default if 0). TCLK is the period set by the TCLK[1:0] bits. For 4kHz setting, please use 244s for the period. For 100Hz setting please use 10ms for the period. TLOW_CDT = TSDAT*TCLK
(EQ. 5)
Where, TSDAT is the value in the TSDAT register (use default if 0). TCLK is the period set by the TCLK[1:0] bits. For 4kHz setting, please use 244s for the period. For 100Hz setting please use 10ms for the period. Since the pulse width of the IRQ2 pin is adjustable with setting in the TDAT register, the TSDAT register and the TCLK[1:0] bits, the IRQ2 pin can be use as a variable frequency/pulse width generator.
Secondary Alarm Timer
The secondary alarm timer function has the exact same function as the count down timer function except the timer activates when the device has an alarm interrupt (ALM set to "1") with TMRE set to "1" to enable the timer. Once the timer is activated by the alarm interrupt, the timer will work independently. Another alarm interrupt will not reset the timer function while the timer is counting. When the timer is stopped by the timer interrupt or disabled by the TMRE bit, the timer has to wait for the new alarm interrupt to activate it. Please refer to the "Count Down Timer" on page 18 for the detailed timer function.
Where, TDAT is the value in the TDAT register. TSDAT is the value in the TSDAT register (use default if 0). TCLK is the period set by the TCLK[1:0] bits. For 4kHz setting, please use 244s for the period. For 100Hz setting please use 10ms for the period. When the TIM = "1" (periodic interrupt mode), the timer repeats the countdown function automatically after the timer expires. The periodic interrupt function can only be monitored on the IRQ2 pin; therefore, the IRQ2E bit must be set to "1" to show timer interrupt on the IRQ2 pin. The IRQ2 pin is pulsed each time the timer expires. Once the timer expires, the TMR status bit set to "1" and the IRQ2 pin goes low. The internal TSCNT register will reset and continue counting. Once the internal TSCNT overflows after the timer expires, the IRQ2 pin will pull back to high but the TMR status bit will remain at "1" until the user clears it. The TCNT register will reset back to the value in the TDAT register to start the new count cycle. The timer will continue counting until the TMRE = "0" to disable the timer. In periodic interrupt mode, the time interval for the timer expiration is calculated differently for the first timer expiration and for the next and succeeding timer expiration. For the first timer expiration, the time interval is calculated by using Equation 3. For the next
Watchdog Timer
The watchdog timer is used as an I2C bus activity monitor. If the I2C bus does not have an activity for a period of time which is longer than its normal condition, then the watchdog timer will issue an interrupt to set the TMR status bit to "1" and pulse the IRQ2 pin low for 210ms if IRQ2E bit is set to "1" for timer interrupt. It is recommended to set the IRQ2E to "1" for IRQ2 pin to show the timer interrupt because the I2C may be in a fault condition where monitoring the TMR status bit will be impossible. The watchdog timer is reset and will start a new count cycle by an I2C "start" condition on the I2C bus. The watchdog timer only works with the TCLK[1:0] setting of "01", "10" and "11". The timer is disabled with the TCLK[1:0] setting of "00".
18
FN6731.3 November 24, 2008
ISL12082
Once the timer is enabled by setting TMRE="1", the TCNT register is set to "1" and counts up to the TDAT register value. The TDAT register must has a value of one or greater in order for the timer to start. If the timer is enabled with TDAT register less than one, then the timer is disabled and the TDAT register has to be set to an appropriate value before the timer can be enabled again. The internal TSCNT register increments from one, and the incremental frequency is set by the TCLK[1:0] bits. Once the internal TSCNT register overflows, the TCNT register will increment by one and the internal TSCNT register will reset back to one and start counting again until the TCNT register reaches the TDAT register value. Once the TCNT register reaches the TDAT register value, the timer will issue an interrupt that will set the TMR status bit to "1". The IRQ2 pin will pulse low for 210ms if the IRQ2E bit is set to "1" for timer interrupt and TSDAT register is set to "0" for default count value (refer to Table 10 for the default count values). The timer will reset and start a new count cycle after the interrupt; therefore, the watchdog timer is in periodic interrupt mode only with TIM bit set to "0" or "1". The time interval for the watchdog interrupt is calculated differently for the first watchdog interrupt and for the next and succeeding watchdog interrupt. For the first watchdog interrupt (TWD_1st), the time interval is calculated by using Equation 6. For the next and succeeding watchdog interrupt (TWD_2nd), the time interval is calculated by using Equation 7. The low interrupt pulse width of IRQ2 pin (TWD_IRQ) is calculated by using Equation 8. The interrupt pulse width has a maximum pulse width of 210ms. If the interrupt is less than 210ms, then the remaining time (210ms-actual interrupt pulse) from the interrupt pulse width will be added to the time interval of the next count cycle. TWD_1st = TDAT*TSDAT*TCLK
(EQ. 6)
Where, TSDAT is the value in the TSDAT register (use default if 0). TCLK is the period set by the TCLK[1:0] bits. For 100Hz setting, please use 10ms for the period.
Power Fail Timer
In Power Fail Timer function, the Timer will start counting when the device is switched from normal mode to battery mode. The power fail timer only works with the TCLK[1:0] setting of "01", "10" and "11". The timer is disabled with the TCLK[1:0] setting of "00". Once the timer is enabled by setting TMRE bit to "1" and the device switches from normal mode to battery mode, the TCNT register is set to "1". The timer expires when TCNT counts to FFh (255d) and the value in the TDAT register is ignored. The internal TSCNT register increments from one, and the incremental frequency is set by the TCLK[1:0] bits. Once the internal TSCNT register overflows, the TCNT register increments by one and the internal TSCNT register resets back to one and starts counting again until the TCNT register reaches FFh (255d). Once the TCNT register reaches FFh (255d), the timer issues an interrupt to set the TMR status bit to "1" and pull IRQ2 pin low if IRQ2E = "1" (timer interrupt). The timer stops after the time expires, and the power fail timer is in single event mode only regarding the status of TIM bit. The timer restarts and the IRQ2 pin pulls high when the TMR bit is cleared by the user. The timer can also restart by resetting the TMRE bit to "1" after setting it to "0" but this method is not recommended since the TMR status will not clear by this method and may cause confusion in the system. In single event mode, the time interval for the timer expiration is calculated by using Equation 3. The power fail timer will store the timer value in the TCNT register after the device switches back to normal mode from battery mode. The next time the device enters battery mode from normal mode, the timer will start its count from the value stored in the TCNT register. The stored value in TCNT register is only clear when the timer is disabled by setting the TMRE bit to "0".
Where, TDAT is the value in the TDAT register. TSDAT is the value in the TSDAT register (use default if 0). TCLK is the period set by the TCLK[1:0] bits. For 100Hz setting, please use 10ms for the period. TWD_2nd = (TDAT-1)*TSDAT*TCLK+[(TWD_IRQ)-210ms]
(EQ. 7)
Where, TDAT is the value in the TDAT register. TSDAT is the value in the TSDAT register (use default if 0). TCLK is the period set by the TCLK[1:0] bits. For 100Hz setting, please use 10ms for the period. Note: Apply Equation 7 only when TWD_IRQ is greater than 210ms. TWD_IRQ(maximum 210ms) = TSDAT*TCLK
(EQ. 8)
I2C Serial Interface
The ISL12082 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 ISL12082 operates as a slave device in all applications. All communication over the I2C interface is conducted by sending the MSB of each byte of data first.
19
FN6731.3 November 24, 2008
ISL12082
Protocol Conventions
Data states on the SDA line can change only during SCL LOW periods. SDA state changes during SCL HIGH are reserved for indicating START and STOP conditions (see Figure 12). On power-up of the ISL12082, the SDA pin is in the input mode. All I2C interface operations must begin with a START condition, which is a HIGH to LOW transition of SDA while SCL is HIGH. The ISL12082 continuously monitors the SDA and SCL lines for the START condition and does not respond to any command until this condition is met (see Figure 12). A START condition is ignored during the power-up sequence. All I2C interface operations must be terminated by a STOP condition, which is a LOW to HIGH transition of SDA while SCL is HIGH (see Figure 13). A STOP condition at the end of a read operation or at the end of a write operation to memory only places the device in its standby mode. An acknowledge (ACK) is a software convention used to indicate a successful data transfer. The transmitting device, either master or slave, releases the SDA bus after transmitting eight bits. During the ninth clock cycle, the receiver pulls the SDA line LOW to acknowledge the reception of the eight bits of data (see Figure 14). The ISL12082 responds with an ACK after recognition of a START condition followed by a valid Identification Byte, and once again after successful receipt of an Address Byte. The ISL12082 also responds with an ACK after receiving a Data Byte of a write operation. The master must respond with an ACK after receiving a Data Byte of a read operation.
SCL
SDA
START
DATA STABLE
DATA CHANGE
DATA STABLE
STOP
FIGURE 12. VALID DATA CHANGES, START, AND STOP CONDITIONS
SCL FROM MASTER
1
8
9
SDA OUTPUT FROM TRANSMITTER
HIGH IMPEDANCE
SDA OUTPUT FROM RECEIVER
HIGH IMPEDANCE
START
ACK
FIGURE 13. ACKNOWLEDGE RESPONSE FROM RECEIVER
WRITE SIGNALS FROM THE MASTER S T A R T LAST DATA BYTE S T O P
IDENTIFICATION BYTE
ADDRESS BYTE
FIRST DATA BYTE
SIGNAL AT SDA SIGNALS FROM THE ISL12082
11011110 A C K
0000 A C K A C K A C K A C K
FIGURE 14. SEQUENTIAL BYTE WRITE SEQUENCE
20
FN6731.3 November 24, 2008
ISL12082 Device Addressing
Following a start condition, the master must output a Slave Address Byte. The 7 MSBs are the device identifier. These bits are "1101111". Slave bits "1101" access the register. Slave bits "111" specify the device select bits. The last bit of the Slave Address Byte defines a read or write operation to be performed. When this R/W bit is a "1", then a read operation is selected. A "0" selects a write operation (see Figure 15). After loading the entire Slave Address Byte from the SDA bus, the ISL12082 compares the device identifier and device select bits with "1101111". Upon a correct compare, the device outputs an acknowledge on the SDA line. Following the Slave Byte is a one byte word address. The word address is either supplied by the master device or obtained from an internal counter. On power-up the internal address counter is set to address 0h, so a current address read of the CCR array starts at address 0h. When required, as part of a random read, the master must supply the 1 Word Address Bytes as shown in Figure 16. In a random read operation, the slave byte in the "dummy write" portion must match the slave byte in the "read" section. For a random read of the Clock/Control Registers, the slave byte must be "1101111x" in both places.
SLAVE ADDRESS BYTE
Write Operation
A Write operation requires a START condition, followed by a valid Identification Byte, a valid Address Byte, a Data Byte, and a STOP condition. After each of the three bytes, the ISL12082 responds with an ACK. At this time, the I2C interface enters a standby state.
Read Operation
A Read operation consists of a three byte instruction followed by one or more Data Bytes (see Figure 16). The master initiates the operation issuing the following sequence: a START, the Identification byte with the R/W bit set to "0", an Address Byte, a second START, and a second Identification byte with the R/W bit set to "1". After each of the three bytes, the ISL12082 responds with an ACK. Then the ISL12082 transmits Data Bytes as long as the master responds with an ACK during the SCL cycle following the eighth bit of each byte. The master terminates the read operation (issuing a STOP condition) following the last bit of the last Data Byte (see Figure 16). The Data Bytes are from the memory location indicated by an internal pointer. This pointer initial value is determined by the Address Byte in the Read operation instruction, and increments by one during transmission of each Data Byte. After reaching the memory location 13h the pointer "rolls over" to 00h, and the device continues to output data for each ACK received.
1
1
0
1
1
1
1
R/W
A7
A6
A5
A4
A3
A2
A1
A0
WORD ADDRESS
D7
D6
D5
D4
D3
D2
D1
D0
DATA BYTE
FIGURE 15. SLAVE ADDRESS, WORD ADDRESS, AND DATA BYTES
SIGNALS FROM THE MASTER
S T A R T
IDENTIFICATION BYTE WITH R/W = 0
ADDRESS BYTE
S T IDENTIFICATION A BYTE WITH R R/W = 1 T
A C K
A C K
S T O P
SIGNAL AT SDA SIGNALS FROM THE SLAVE
11011110 A C K A C K
11011111 A C K
FIRST READ DATA BYTE
LAST READ DATA BYTE
FIGURE 16. SEQUENTIAL BYTE READ SEQUENCE
21
FN6731.3 November 24, 2008
ISL12082 Application Section
Oscillator Crystal Requirements
The ISL12082 uses a standard 32.768kHz crystal. Either through hole or surface mount crystals can be used. Table 15 lists some recommended surface mount crystals and the parameters of each. This list is not exhaustive and other surface mount devices can be used with the ISL12082 if their specifications are very similar to the devices listed. The crystal should have a required parallel load capacitance of 12.5pF and an equivalent series resistance of <50k. The crystal's temperature range specification should match the application. Many crystals are rated for -10C to +60C (especially through-hole and tuning fork types), so an appropriate crystal should be selected if extended temperature range is required.
TABLE 15. SUGGESTED SURFACE MOUNT CRYSTALS MANUFACTURER Citizen Epson Raltron SaRonix Ecliptek ECS Fox CM200S MC-405, MC-406 RSM-200S 32S12 ECPSM29T-32.768K ECX-306 FSM-327 PART NUMBER
In addition to the analog compensation afforded by the adjustable load capacitance, a digital compensation feature is available for the ISL12082. There are 6 bits known as the Digital Trimming Register (DTR). The range provided is 63.0696ppm to +126.139ppm. DTR operates by adding or skipping pulses in the clock counter. It is very useful for coarse adjustments of frequency drift over-temperature or extending the adjustment range available with the ATR register. Initial accuracy is best adjusted by enabling the frequency output (using the INT register, address 08h), and monitoring the ~IRQ/fOUT pin with a calibrated frequency counter. The frequency used is unimportant, although 1Hz is the easiest to monitor. The gating time should be set long enough to ensure accuracy to at least 1ppm. The ATR should be set to the center position, or 100000Bh, to begin with. Once the initial measurement is made, then the ATR register can be changed to adjust the frequency. Note that increasing the ATR register for increased capacitance will lower the frequency, and vice-versa. If the initial measurement shows the frequency is far off, it will be necessary to use the DTR register to do a coarse adjustment. Also, note that most all crystals will have tight enough initial accuracy at room temperature so that a small ATR register adjustment should be all that is needed.
Temperature Compensation
The ATR and DTR controls can be combined to provide crystal drift temperature compensation. The typical 32.768kHz crystal has a drift characteristic that is similar to that shown in Figure 17. There is a turnover-temperature (T0) where the drift is very near zero. The shape is parabolic as it varies with the square of the difference between the actual temperature and the turnover-temperature.
0 -20 -40 -60 PPM -80 -100 -120 -140 -160 -40 -30 -20 -10 0 10 20 30 40 50 60 70 80
Crystal Oscillator Frequency Adjustment
The ISL12082 device contains circuitry for adjusting the frequency of the crystal oscillator. This circuitry can be used to trim oscillator initial accuracy as well as adjust the frequency to compensate for temperature changes. The Analog Trimming Register (ATR) is used to adjust the load capacitance seen by the crystal. There are 6 bits of ATR control, with linear capacitance increments available for adjustment. Since the ATR adjustment is essentially "pulling" the frequency of the oscillator, the resulting frequency changes will not be linear with incremental capacitance changes. The equations which govern pulling show that lower capacitor values of ATR adjustment will provide larger increments. Also, the higher values of ATR adjustment will produce smaller incremental frequency changes. These values typically vary from 6ppm to 10ppm/bit at the low end to <1ppm/bit at the highest capacitance settings. The range afforded by the ATR adjustment with a typical surface mount crystal is typically -34ppm to +80ppm around the ATR = 0 default setting because of this property. The user should note this when using the ATR for calibration. The temperature drift of the capacitance used in the ATR control is extremely low, so this feature can be used for temperature compensation with good accuracy.
TEMPERATURE (C)
FIGURE 17. RTC CRYSTAL TEMPERATURE DRIFT
If full industrial temperature compensation is desired in an ISL12082 circuit, then both the DTR and ATR registers will need to be utilized (total correction range = -97ppm to +206ppm). A system to implement temperature compensation would consist of the ISL12082, a temperature sensor, and a micro controller. These devices may already be in the system so
22
FN6731.3 November 24, 2008
ISL12082
the function will just be a matter of implementing software and performing some calculations. Fairly accurate temperature compensation can be implemented just by using the crystal manufacturer's specifications for the turnover-temperature T0 and the drift coefficient (). The formula for calculating the oscillator adjustment necessary is shown in Equation 9:
Adjustment(ppm) = ( T - T 0 )2 (EQ. 9)
can induce noise in the oscillator circuit to cause misclocking. 2. Add a ground trace around the crystal with one end terminated at the chip ground. This will provide termination for emitted noise in the vicinity of the RTC device.
U1
1
Once the temperature curve for a crystal is established, then the designer should decide at what discrete temperatures the compensation will change. Since drift is higher at extreme temperatures, the compensation may not be needed until the temperature is greater than +20C from T0. A sample curve of the ATR setting vs Frequency Adjustment for the ISL12082 and a typical RTC crystal is given in Figure 18. This curve may vary with different crystals, so it is good practice to evaluate a given crystal in an ISL12082 circuit before establishing the adjustment values.
90 80 70 60 50 40 30 20 10 0 -10 -20 -30 -400 0 5 10 15 20 25 30 35 40 45 50 55 60 ATR SETTING
Y1
FIGURE 19. SUGGESTED LAYOUT FOR ISL12082 AND CRYSTAL
PPM ADJUSTMENT
In addition, it is a good idea to avoid a ground plane under the X1 and X2 pins and the crystal, as this will affect the load capacitance and therefore the oscillator accuracy of the circuit. If the IRQ1/fOUT pin is used as a clock, it should be routed away from the RTC device as well. The traces for the VBAT and VCC pins can be treated as a ground, and should be routed around the crystal.
Supercapacitor Backup
The ISL12082 device provides a VBAT pin which is used for a battery backup input. A Supercapacitor can be used as an alternative to a battery in cases where shorter backup times are required. Since the battery backup supply current required by the ISL12082 is extremely low, it is possible to get months of backup operation using a Supercapacitor. Typical capacitor values are a few F to 1F or more depending on the application. If backup is only needed for a few minutes, then a small inexpensive electrolytic capacitor can be used. For extended periods, a low leakage, high capacity Supercapacitor is the best choice. These devices are available from such vendors as Panasonic and Murata. The main specifications include working voltage and leakage current. If the application is for charging the capacitor from a +5V 5% supply with a signal diode, then the voltage on the capacitor can vary from ~4.5V to slightly over 5.0V. A capacitor with a rated WV of 5.0V may have a reduced lifetime if the supply voltage is slightly high. The leakage current should be as small as possible. For example, a Supercapacitor should be specified with leakage of well below 1A. A standard electrolytic capacitor with DC leakage current in the microamps will have a severely shortened backup time. Following are some examples with equations to assist with calculating backup times and required capacitance for the ISL12082 device. The backup supply current plays a major part in these equations, and a typical value was chosen for example purposes. For a robust design, a margin of 30% should be included to cover supply current and capacitance tolerances over the results of the calculations. Even more
FN6731.3 November 24, 2008
FIGURE 18. ATR SETTING vs OSCILLATOR FREQUENCY ADJUSTMENT
This curve is then used to figure what ATR and DTR settings are used for compensation. The results would be placed in a lookup table for the microcontroller to access.
Layout Considerations
The crystal input at X1 has a very high impedance, and oscillator circuits operating at low frequencies such as 32.768kHz are known to pick up noise very easily if layout precautions are not followed. Most instances of erratic clocking or large accuracy errors can be traced to the susceptibility of the oscillator circuit to interference from adjacent high speed clock or data lines. Careful layout of the RTC circuit will avoid noise pickup and insure accurate clocking. Figure 19 shows a suggested layout for the ISL12082 device using a surface mount crystal. Two main precautions should be followed: 1. Do not run the serial bus lines or any high speed logic lines in the vicinity of the crystal. These logic level lines
23
ISL12082
margin should be included if periods of very warm temperature operation are expected. where: CBAT = 0.47F VBAT2 = 4.7V VBAT1 = 1.8V ILKG = 0 (assumed minimal) Solving Equation 13 for this example, IBATAVG = 4.387E-7 A
2.7V TO 5.5V VCC VBAT CBAT
GND
Example 1. Calculating Backup Time Given Voltages and Capacitor Value
1N4148
TBACKUP = 0.47 * (2.9) / 4.38E-7 = 3.107E6 sec Since there are 86,400 seconds in a day, this corresponds to 35.96 days. If the 30% tolerance is included for capacitor and supply current tolerances, then worst case backup time would be:
C BAT = 0.70 * 35.96 = 25.2 days (EQ. 15)
FIGURE 20. SUPERCAPACITOR CHARGING CIRCUIT
In Figure 20, use CBAT = 0.47F and VCC = 5.0V. With VCC = 5.0V, the voltage at VBAT will approach 4.7V as the diode turns off completely. The ISL12082 is specified to operate down to VBAT = 1.8V. The capacitance charge/discharge equation is used to estimate the total backup time as shown in Equation 10: I = CBAT*dV/dT Rearranging gives Equation 11. dT = CBAT*dV/ITOT to solve for backup time.
(EQ. 11) (EQ. 10)
Example 2. Calculating a Capacitor Value for a Given Backup Time
Referring to Figure 20 again, the capacitor value needs to be calculated to give 2 months (60 days) of backup time, given VCC = 5.0V. As in Example 1, the VBAT voltage will vary from 4.7V down to 1.8V. We will need to rearrange Equation 11 to solve for capacitance in Equation 16: CBAT = dT*I/dV
(EQ. 16)
Using the terms previously, this Equation 16 becomes Equation 17: CBAT = TBACKUP*(IBATAVG + ILKG)/(VBAT2 - VBAT1)
(EQ. 17)
CBAT is the backup capacitance and dV is the change in voltage from fully charged to loss of operation. Note that ITOT is the total of the supply current of the ISL12082 (IBAT) plus the leakage current of the capacitor and the diode, ILKG. In these calculations, ILKG is assumed to be extremely small and will be ignored. If an application requires extended operation at temperatures over +50C, these leakages will increase and hence reduce backup time. Note that IBAT changes with VBAT almost linearly (see "Typical Performance Curves" on page 7). This allows us to make an approximation of IBAT, using a value midway between the two endpoints. The typical linear equation for IBAT vs VBAT is shown in Equation 12: IBAT = 1.031E-7*(VBAT) + 1.036E-7A
(EQ. 12)
Where: TBACKUP = 60 days*86,400 sec/day = 5.18 E6 seconds IBATAVG = 4.387 E-7 A (same as Example 1) ILKG = 0 (assumed) VBAT2 = 4.7V VBAT1 = 1.8VSolving gives CBAT = 5.18 E6*(4.387 E-7)/(2.9) = 0.784F If the 30% tolerance is included for tolerances, then worst case capacitor value would be as shown in Equation 18. CBAT = 1.3*0.784 = 1.02F
(EQ. 18)
Using this equation to solve for the average current given 2 voltage points gives Equation 13: IBATAVG = 5.155E-8*(VBAT2 + VBAT1) + 1.036E-7A
(EQ. 13)
Combining with Equation 11 gives the equation for backup time in Equation 14: TBACKUP = CBAT*(VBAT2 - VBAT1)/(IBATAVG + ILKG) seconds (EQ. 14)
24
FN6731.3 November 24, 2008
ISL12082 Small Outline Plastic Packages (SOIC)
N INDEX AREA E -B1 2 3 SEATING PLANE -AD -CA h x 45 H 0.25(0.010) M BM
M8.15 (JEDEC MS-012-AA ISSUE C)
8 LEAD NARROW BODY SMALL OUTLINE PLASTIC PACKAGE INCHES SYMBOL A A1
L
MILLIMETERS MIN 1.35 0.10 0.33 0.19 4.80 3.80 5.80 0.25 0.40 8 8 0 8 MAX 1.75 0.25 0.51 0.25 5.00 4.00 6.20 0.50 1.27 NOTES 9 3 4 5 6 7 Rev. 1 6/05
MIN 0.0532 0.0040 0.013 0.0075 0.1890 0.1497 0.2284 0.0099 0.016 8 0
MAX 0.0688 0.0098 0.020 0.0098 0.1968 0.1574 0.2440 0.0196 0.050
B C D E e H
C
A1 0.10(0.004)
0.050 BSC
1.27 BSC
e
B 0.25(0.010) M C AM BS
h L N
NOTES: 1. Symbols are defined in the "MO Series Symbol List" in Section 2.2 of Publication Number 95. 2. Dimensioning and tolerancing per ANSI Y14.5M-1982. 3. Dimension "D" does not include mold flash, protrusions or gate burrs. Mold flash, protrusion and gate burrs shall not exceed 0.15mm (0.006 inch) per side. 4. Dimension "E" does not include interlead flash or protrusions. Interlead flash and protrusions shall not exceed 0.25mm (0.010 inch) per side. 5. The chamfer on the body is optional. If it is not present, a visual index feature must be located within the crosshatched area. 6. "L" is the length of terminal for soldering to a substrate. 7. "N" is the number of terminal positions. 8. Terminal numbers are shown for reference only. 9. The lead width "B", as measured 0.36mm (0.014 inch) or greater above the seating plane, shall not exceed a maximum value of 0.61mm (0.024 inch). 10. Controlling dimension: MILLIMETER. Converted inch dimensions are not necessarily exact.
25
FN6731.3 November 24, 2008
ISL12082 Mini Small Outline Plastic Packages (MSOP)
N
M10.118 (JEDEC MO-187BA)
10 LEAD MINI SMALL OUTLINE PLASTIC PACKAGE
E1 -B12 TOP VIEW 0.25 (0.010) GAUGE PLANE SEATING PLANE -CL L1 4X R1 R 0.20 (0.008) ABC E
INCHES SYMBOL A A1 A2 b c D
4X
MILLIMETERS MIN 0.94 0.05 0.75 0.18 0.09 2.95 2.95 4.75 0.40 10 0.07 0.07 5o 0o 15o 6o MAX 1.10 0.15 0.95 0.27 0.20 3.05 3.05 5.05 0.70 NOTES 9 3 4 6 7 Rev. 0 12/02
MIN 0.037 0.002 0.030 0.007 0.004 0.116 0.116 0.187 0.016 10 0.003 0.003 5o 0o
MAX 0.043 0.006 0.037 0.011 0.008 0.120 0.120 0.199 0.028
INDEX AREA
E1 e E L L1 N R R1
-B-
A
A2
0.020 BSC
0.50 BSC
A1
-He D
b
0.10 (0.004) -A0.20 (0.008)
C
SEATING PLANE
0.037 REF
0.95 REF
C a C L E1
C
SIDE VIEW
15o 6o
0.20 (0.008)
CD
END VIEW
NOTES: 1. These package dimensions are within allowable dimensions of JEDEC MO-187BA. 2. Dimensioning and tolerancing per ANSI Y14.5M-1994. 3. Dimension "D" does not include mold flash, protrusions or gate burrs and are measured at Datum Plane. Mold flash, protrusion and gate burrs shall not exceed 0.15mm (0.006 inch) per side. 4. Dimension "E1" does not include interlead flash or protrusions and are measured at Datum Plane. - H - Interlead flash and protrusions shall not exceed 0.15mm (0.006 inch) per side. 5. Formed leads shall be planar with respect to one another within 0.10mm (.004) at seating Plane. 6. "L" is the length of terminal for soldering to a substrate. 7. "N" is the number of terminal positions. 8. Terminal numbers are shown for reference only. 9. Dimension "b" does not include dambar protrusion. Allowable dambar protrusion shall be 0.08mm (0.003 inch) total in excess of "b" dimension at maximum material condition. Minimum space between protrusion and adjacent lead is 0.07mm (0.0027 inch). 10. Datums -A -H- . and - B to be determined at Datum plane
11. Controlling dimension: MILLIMETER. Converted inch dimensions are for reference only
All Intersil U.S. products are manufactured, assembled and tested utilizing ISO9000 quality systems. Intersil Corporation's quality certifications can be viewed at www.intersil.com/design/quality
Intersil products are sold by description only. Intersil Corporation reserves the right to make changes in circuit design, software and/or specifications at any time without notice. Accordingly, the reader is cautioned to verify that data sheets are current before placing orders. Information furnished by Intersil is believed to be accurate and reliable. However, no responsibility is assumed by Intersil or its subsidiaries for its use; nor for any infringements of patents or other rights of third parties which may result from its use. No license is granted by implication or otherwise under any patent or patent rights of Intersil or its subsidiaries.
For information regarding Intersil Corporation and its products, see www.intersil.com 26
FN6731.3 November 24, 2008


▲Up To Search▲   

 
Price & Availability of ISL12082IB8Z-T

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X