|
If you can't view the Datasheet, Please click here to try to view without PDF Reader . |
|
Datasheet File OCR Text: |
general description the ds17285, ds17485, ds17885, ds17287, ds17487, and ds17887 real-time clocks (rtcs) are designed to be successors to the industry-standard ds12885 and ds12887. the ds17285, ds17485, and ds17885 (here- after referred to as the ds17x85) provide a real-time clock/calendar, one time-of-day alarm, three maskable interrupts with a common interrupt output, a programma- ble square wave, and 114 bytes of battery-backed nv sram. the ds17x85 also incorporates a number of enhanced functions including a silicon serial number, power-on/off control circuitry, and 2k, 4k, or 8kbytes of battery-backed nv sram. the ds17287, ds17487, and ds17887 (hereafter referred to as the ds17x87) integrate a quartz crystal and lithium energy source into a 24-pin encapsulated dip package. the ds17x85 and ds17x87 power-control circuitry allows the system to be powered on by an external stimulus such as a keyboard or by a time-and-date (wake-up) alarm. the pwr output pin is triggered by one or either of these events, and is used to turn on an external power supply. the pwr pin is under software control, so that when a task is complete, the sys- tem power can then be shut down. for all devices, the date at the end of the month is auto- matically adjusted for months with fewer than 31 days, including correction for leap years. it also operates in either 24-hour or 12-hour format with an am/pm indicator. a precision temperature-compensated circuit monitors the status of v cc . if a primary power failure is detected, the device automatically switches to a backup supply. a lithium coin cell battery can be connected to the v bat input pin on the ds17x85 to maintain time and date oper- ation when primary power is absent. the ds17x85 and ds17x87 include a v baux input used to power auxiliary functions such as pwr control. the device is accessed through a multiplexed byte-wide interface. applications embedded systems utility meters security systems network hubs, bridges, and routers features ? incorporates industry-standard ds12887 pc clock plus enhanced functions ? rtc counts seconds, minutes, hours, day, date, month, and year with leap year compensation through 2099 ? optional +3.0v or +5.0v operation ? smi recovery stack ? 64-bit silicon serial number ? power-control circuitry supports system power- on from date/time alarm or key closure ? crystal select bit allows operation with 6pf or 12.5pf crystal ? 12-hour or 24-hour clock with am and pm in 12-hour mode ? 114 bytes of general-purpose, battery-backed nv sram ? extended battery-backed nv sram 2048 bytes (ds17285/ds17287) 4096 bytes (ds17485/ds17487) 8192 bytes (ds17885/ds17887) ? ram clear function ? interrupt output with six independently maskable interrupt flags ? time-of-day alarm once per second to once per day ? end of clock update cycle flag ? programmable square-wave output ? automatic power-fail detect and switch circuitry ? available in pdip, so, or tsop package (ds17285, ds17485, ds17885) ? optional encapsulated dip (edip) package with integrated crystal and battery (ds17287, ds17487, ds17887) ? optional industrial temperature range available ? underwriters laboratory (ul) recognized ds17285/ds17287/ds17485/ds17487/ds17885/ds17887 real-time clocks ______________________________________________ maxim integrated products 1 rev 0; 4/06 for pricing, delivery, and ordering information, please contact maxim/dallas direct! at 1-888-629-4642, or visit maxim? website at www.maxim-ic.com. ordering information, pin configurations, and typical operating circuit appear at end of data sheet.
ds17285/ds17287/ds17485/ds17487/ds17885/ds17887 real-time clocks 2 _____________________________________________________________________ absolute maximum ratings dc electrical characteristics (v cc = +4.5v to +5.5v, or v cc = +2.7v to +3.7v, t a = over the operating temperature range, unless otherwise noted. typical values are with t a = +25?, v cc = 5.0v or 3.0v and v bat = 3.0v, unless otherwise noted.) (note 2) stresses beyond those listed under ?bsolute maximum ratings?may cause permanent damage to the device. these are stress rating s only, and functional operation of the device at these or any other conditions beyond those indicated in the operational sections of the specificatio ns is not implied. exposure to absolute maximum rating conditions for extended periods may affect device reliability. voltage range on v cc pin relative to ground ....-0.3v to +6.0v operating temperature range (noncondensing) commercial.........................................................0? to +70? industrial ..........................................................-40? to +85? storage temperature.........................................-55? to +125? soldering temperature .....................see ipc/jedec j-std-020 specification (note 1) soldering temperature (leads, 10 seconds) ...................+260? parameter symbol conditions min typ max units (-5) 4.5 5.0 5.5 supply voltage (note 3) v cc (-3) 2.7 3.0 3.7 v v bat input voltage v bat (note 3) 2.5 3.0 3.7 v (-5) 2.5 3.0 5.2 v baux input voltage (note 3) v baux (-3) 3.7 v (-5) 2.2 v cc + 0.3 input logic 1 (note 3) v ih (-3) 2.0 v cc + 0.3 v (-5) -0.3 +0.8 input logic 0 (note 3) v il (-3) -0.3 +0.6 v (-5) 25 50 v cc power-supply current (note 4) i cc1 (-3) 15 30 ma (-5) 1.0 3.0 v cc standby current (notes 4, 5) i ccs (-3) 0.5 2.0 ma input leakage i il -1.0 +1.0 ? i/o leakage i ol (note 6) -1.0 +1.0 ? (-5), -1.0ma 2.4 output logic 1 voltage (note 3) v oh (-3), -0.4ma 2.4 v (-5), +2.1ma 0.4 output logic 0 voltage ad0?d7, irq , sqw (note 3) v ol (-3), +0.8ma 0.4 v (-5), +10ma 0.4 output logic 0 voltage pwr (note 3) v ol (-3), +4ma 0.4 v (-5) 4.25 4.37 4.5 power-fail voltage (note 3) v pf (-3) 2.5 2.6 2.7 v vrt trip point vrt trip (note 3) 1.3 v ds17285/ds17287/ds17485/ds17487/ds17885/ds17887 real-time clocks _____________________________________________________________________ 3 dc electrical characteristics (v cc = 0v, v bat = 3.0v, t a = over the operating range, unless otherwise noted.) (note 1) parameter symbol conditions min typ max units v bat or v baux current (oscillator on); t a = +25?, v bat = 3.0v i bat (note 7) 500 700 na v bat or v baux current (oscillator off) i batdr (note 7) 50 400 na ac electrical characteristics ( v cc = +4.5v to +5.5v , t a = over the operating range, unless otherwise noted.) (note 2) parameter symbol conditions min typ max units cycle time t cyc 240 dc ns pulse width, rd or wr low pw rwl 120 ns pulse width, rd or wr high pw rwh 80 ns input rise and fall t r , t f 30 ns chip-select setup time before rd or wr t cs 20 ns chip-select hold time t ch 0ns read-data hold time t dhr 10 50 ns write-data hold time t dhw 0ns address setup time to ale fall t asl 20 ns address hold time to ale fall t ahl 10 ns rd or wr high setup to ale rise t asd 25 ns pulse width ale high pw ash 40 ns delay time ale low to rd low t ased 30 ns output data delay time from rd ddr d s dsw irq release from rd t ird 2 s ds17285/ds17287/ds17485/ds17487/ds17885/ds17887 real-time clocks 4 _____________________________________________________________________ ac electrical characteristics (v cc = +2.7v to +3.7v , t a = over the operating range, unless otherwise noted.) (note 2) parameter symbol conditions min typ max units cycle time t cyc 360 dc ns pulse width, rd or wr low pw rwl 200 ns pulse width, rd or wr high pw rwh 150 ns input rise and fall t r , t f 30 ns chip-select setup time before rd or wr t cs 20 ns chip-select hold time t ch 0ns read-data hold time t dhr 10 90 ns write-data hold time t dhw 0ns address setup time to ale fall t asl 40 ns address hold time to ale fall t ahl 10 ns rd or wr high setup to ale rise t asd 30 ns pulse width ale high pw ash 40 ns delay time ale low to rd low t ased 30 ns output data delay time from rd ddr d s dsw irq release from rd t ird 2 s write timing pw ash t ased pw rwh pw rwl t cs t ahl t asl t dsw t dhw t ch t asd t asd t cyc cs wr as rd ad0?d7 write ds17285/ds17287/ds17485/ds17487/ds17885/ds17887 real-time clocks _____________________________________________________________________ 5 read timing t asl t ddr pw ash cs wr ale rd ad0?d7 t asd pw rwl t cs t dhr t ahl t ch t cyc pw rwh t ased irq t ird t asd ad0?d7 cs, wr, rd high impedance don't care valid recognized recognized valid v cc t f v pf(max) v pf(min) t rec t r power-up/power-down timing ds17285/ds17287/ds17485/ds17487/ds17885/ds17887 real-time clocks 6 _____________________________________________________________________ power-up/power-down characteristics (t a = -40? to +85?) (note 2) parameter symbol conditions min typ max units recovery at power-up t rec (note 9) 20 150 ms v cc fall time, v pf(max) to v pf(min) t f 300 ? v cc fall time, v pf(max) to v pf(min) t r 0 s data retention (ds17x87 only) (t a = +25?) parameter symbol conditions min typ max units expected data retention t dr (note 9) 10 years capacitance (t a = +25?) (note 10) parameter symbol conditions min typ max units capacitance on all input pins except x1 c in (note 10) 12 pf capacitance on irq , sqw, and dq0?q7 pins c io (note 10) 12 pf ac test conditions parameter conditions input pulse levels: 0 to 3.0v output load including scope and jig: 50pf + 1ttl gate input and output timing measurement reference levels: input/output: v il max and v ih min input pulse rise and fall times: 5ns note 1: rtc modules can be successfully processed through conventional wave-soldering techniques as long as temperature exposure to the lithium energy source contained within does not exceed +85?. however, post-solder cleaning with water- washing techniques is acceptable, provided that ultrasonic vibrations not used to prevent damage to the crystal. note 2: limits at -40? are guaranteed by design and not production tested. note 3: all voltages are referenced to ground. note 4: all outputs are open. note 5: specified with cs = rd = wr = v cc , ale, ad0?d7 = 0. note 6: applies to the ad0?d7 pins, irq , and sqw when each is in a high-impedance state. note 7: measured with a 32.768khz crystal attached to x1 and x2. note 8: measured with a 50pf capacitance load plus 1ttl gate. note 9: if the oscillator is disabled in software, or if the countdown chain is in reset, t rec is bypassed, and the part becomes immediately accessible. note 10: guaranteed by design. not production tested. warning: negative undershoots below -0.3v while the part is in battery-backed mode can cause loss of data. ds17285/ds17287/ds17485/ds17487/ds17885/ds17887 real-time clocks _____________________________________________________________________ 7 supply current vs. input voltage ds17285/87 toc01 v bat (v) supply current (na) 3.5 3.3 3.0 2.8 250 300 350 400 200 2.5 3.8 v cc = 0v supply current vs. temperature ds17285/87 toc02 temperature ( c) supply current (na) 65 50 35 20 5 -10 -25 300 350 400 250 -40 80 v bat = 3.0v oscillator frequency vs. supply voltage ds17285/87 toc03 supply voltage (v) oscillator frequency (hz) 5.0 4.5 4.0 3.5 3.0 32768.1 32768.2 32768.3 32768.4 32768.5 32768.6 32768.7 32768.0 2.5 5.5 typical operating characteristics (v cc = +3.3v, t a = +25?, unless otherwise noted.) pin description pin 24 28 name function 18 pwr active-low power-on reset. this open-drain output pin is intended for use as an on/off control for the system power. with v cc voltage removed from the device, pwr can be automatically activated from a kickstart input by the ks pin or from a wake-up interrupt. once the system is powered on, the state of pwr can be controlled by bits in the control registers. the pwr pin can be connected through a pullup resistor to a positive supply. for 5v operation, the voltage of the pullup supply should be no greater than 5.7v. for 3v operation, the voltage on the pullup supply should be no greater than 3.9v. 2, 3 9, 10 x1, x2 connections for standard 32.768khz quartz crystal. the internal oscillator circuitry is designed for operation with a crystal having a specified load capacitance (c l ) of 6pf or 12.5pf. pin x1 is the input to the oscillator and can optionally be connected to an external 32.768khz oscillator. the output of the internal oscillator, pin x2, is floated if an external oscillator is connected to pin x1. these pins are missing (n.c.) on the edip package. 4?1 12?7, 19, 20 ad0?d7 multiplexed bidirectional address/data bus. the addresses are presented during the first portion of the bus cycle and latched into the device by the falling edge of ale. write data is latched by the rising edge of wr . in a read cycle, the device outputs data during the latter portion of the rd low. the read cycle is terminated and the bus returns to a high-impedance state as rd transitions high. 12, 16 21, 22, 26 gnd ground ds17285/ds17287/ds17485/ds17487/ds17885/ds17887 real-time clocks 8 _____________________________________________________________________ pin description (continued) pin 24 28 name function 13 23 cs active-low chip-select input. this pin must be asserted low during a bus cycle for the device to be accessed. cs must be kept in the active state during rd and wr . bus cycles that take place without asserting cs latch addresses, but no access occurs. 14 24 ale address latch enable input, active high. this input pin is used to demultiplex the address/data bus. the falling edge of ale causes the address to be latched within the device. 15 25 wr active-low write input. this pin defines the period during which data is written to the addressed register. 17 27 rd active-low read input. this pin identifies the period when the device drives the bus with read data. it is an enable signal for the output buffers of the device. 18 28 ks active-low kickstart input. when v cc is removed from the device, the system can be powered on in response to an active-low transition on the ks pin, as might be generated from a key closure. v baux must be present and auxiliary-battery-enable bit (abe) must be set to 1 if the kickstart function is used, and the ks pin must be pulled up to the v baux supply. while v cc is applied, the ks pin can be used as an interrupt input. if not used, ks must be grounded and abe set to 0. 19 1 irq active-low interrupt request. this pin is an active-low output that can be used as an interrupt input to a processor. the irq output remains low as long as the status bit causing the interrupt is present and the corresponding interrupt-enable bit is set. to clear the irq pin, the application software must clear all enabled flag bits contributing to the pin? active state. when no interrupt conditions are present, the irq level is in the high-impedance state. multiple interrupting devices can be connected to an irq bus, provided that they are all open drain. the irq pin requires an external pullup resistor to v cc . 20 2 v bat connection for primary battery. this supply input is used to power the normal clock functions when v cc is absent. diodes placed in series between v bat and the battery can prevent proper operation. if v bat is not required, the pin must be grounded. ul recognized to ensure against reverse charging current when used with a lithium battery ( www.maxim- ic.com/qa/info/ul ). this pin is missing (n.c.) on the edip package. ds17285/ds17287/ds17485/ds17487/ds17885/ds17887 real-time clocks _____________________________________________________________________ 9 pin description (continued) pin 24 28 name function 21 3 rclr active-low ram clear input. this pin is used to clear (set to logic 1) all the 114 bytes of general-purpose ram but does not affect the ram associated with the real time clock or extended ram. rclr may be invoked while the part is powered from any supply. the rclr function is designed to be used via a human interface (shorting to ground manually or by a switch) and not to be driven with external buffers. this pin is internally pulled up. do not use an external pullup resistor on this pin. 22 4 v baux auxiliary battery input. required for kickstart and wake-up functions. this input also supports clock/calendar and user ram if v bat is at lower voltage or is not used. a standard +3v lithium cell or other energy source can be used. diodes placed in series between v baux and the battery may prevent proper operation. ul recognized to ensure against reverse charging current when used with a lithium battery ( www.maxim-ic.com/qa/info/ul/ ). for 3v v cc operation, v baux must be held between +2.5v and +3.7v. for 5v v cc operation, v baux must be held between +2.5v and +5.2v. if v baux is not used it should be grounded and the auxiliary-battery-enable bit bank 1, register 4bh, should = 0. 23 5 sqw square-wave output. when v cc rises above v pf , bits dv1 and e32k are set to 1. this condition enables a 32khz square-wave output. a square wave is output if either sqwe = 1 or e32k = 1. if e32k = 1, then 32khz is output regardless of the other control bits. if e32k = 0, then the output frequency is dependent on the control bits in register a. the sqw pin can output a signal from one of 13 taps provided by the 15 internal divider stages of the rtc. the frequency of the sqw pin can be changed by programming register a, as shown in table 3. the sqw signal can be turned on and off using the sqwe bit in register b or the e32k bit in extended register 4bh. a 32khz square wave is also available when v cc is less than v pf if e32k = 1, abe = 1, and voltage is applied to the v baux pin. when disabled, sqw is high impedance when v cc is below v pf . 24 6, 7 v cc dc power pin for primary power supply. when v cc is applied within normal limits, the device is fully accessible and data can be written and read. when v cc is below v pf reads and writes are inhibited. 2, 3, 16, 20 (ds17x87 only) 11, 18 n.c. no connection ds17285/ds17287/ds17485/ds17487/ds17885/ds17887 real-time clocks 10 ____________________________________________________________________ x1 oscillator power control x2 ds17x87 only v bat gnd divide by 8 registers a, b, c, d clock/calendar update logic extended user ram 2k/4k/8k bytes select extended ram addr/ data registers extended control/ status registers 64-bit serial number century counter date alarm rtc address-2 rtc address-3 divide by 64 divide by 64 16:1 mux square- wave generator sqw irq pwr ks rlcr irq generator v cc v baux bus interface cs wr rd ale ad0?d7 clock/calendar and alarm registers buffered clock/ calendar and alarm registers user ram 114 bytes ram clear logic ds17x85/87 figure 1. functional diagram detailed description the ds17x85 is a successor to the ds1285 real-time clock (rtc). the device provides 18 bytes of real-time clock/calendar, alarm, and control/status registers and 114 bytes of nonvolatile battery-backed ram. the device also provides additional extended ram in either 2k/4k/8kbytes (ds17285/ds17485/ds17885). a time- of-day alarm, six maskable interrupts with a common interrupt output, and a programmable square-wave output are available. it also operates in either 24-hour or 12-hour format with an am/pm indicator. a precision temperature-compensated circuit monitors the status of v cc . if a primary power-supply failure is detected, the device automatically switches to a backup supply. the backup supply input supports a primary battery, such as a lithium coin cell. the device is accessed by a mul- tiplexed address/data bus. oscillator circuit the ds17x85 uses an external 32.768khz crystal. the oscillator circuit does not require any external resistors or capacitors to operate. table 1 specifies several crystal parameters for the external crystal, and figure 2 shows a functional schematic of the oscillator circuit. the oscillator is controlled by an enable bit in the con- trol register. oscillator startup times are highly depen- dent upon crystal characteristics, pc board leakage, and layout. high esr and excessive capacitive loads are the major contributors to long startup times. a cir- cuit using a crystal with the recommended characteris- tics and proper layout usually starts within one second. an external 32.768khz oscillator can also drive the ds17x85. in this configuration, the x1 pin is connected to the external oscillator signal and the x2 pin is floated. clock accuracy the accuracy of the clock is dependent upon the accu- racy of the crystal and the accuracy of the match between the capacitive load of the oscillator circuit and the capacitive load for which the crystal was trimmed. additional error will be added by crystal frequency drift caused by temperature shifts. external circuit noise coupled into the oscillator circuit may result in the clock running fast. figure 3 shows a typical pc board layout for isolation of the crystal and oscillator from noise. refer to application note 58: crystal considerations with dallas real-time clocks for detailed information. clock accuracy (ds17287, ds17487, and ds17887) the encapsulated dip (edip) modules are trimmed at the factory to ? minute per month accuracy at 25?. ds17285/ds17287/ds17485/ds17487/ds17885/ds17887 real-time clocks ____________________________________________________________________ 11 parameter symbol min typ max units nominal f o 32.768 khz series resistance esr 50 k ? load capacitance c l 6 or 12.5 pf table 1. crystal specifications* (ds17x85 only) * the crystal, traces, and crystal input pins should be isolated from rf generating signals. refer to application note 58: crystal considerations for dallas real-time clocks for addi- tional specifications. countdown chain x1 x2 crystal c l 1c l 2 rtc registers ds17285/87 ds17485/87 ds17885/87 figure 2. oscillator circuit showing internal bias network local ground plane (top layer) crystal gnd x2 x1 note: avoid routing signal lines in the crosshatched area (upper left quadrant) of the package unless there is a ground plane between the signal line and the device package. figure 3. layout example ds17285/ds17287/ds17485/ds17487/ds17885/ds17887 power-down/power-up considerations the rtc function continues to operate, and all the ram, time, calendar, and alarm memory locations remain nonvolatile regardless of the level of the v cc input. v bat or v baux must remain within the minimum and maximum limits when v cc is not applied. when v cc falls below v pf , the device inhibits all access, putting the part into a low-power mode. when v cc is applied and exceeds v pf (power-fail trip point), the device becomes accessible after t rec , if the oscillator is running and the oscillator countdown chain is not in reset (register a). this time period allows the system to stabilize after power is applied. if the oscillator is not enabled, the oscillator enable bit is enabled on power- up, and the device becomes immediately accessible. power control the power control function is provided by a precise, temperature-compensated voltage reference and a comparator circuit that monitors the v cc level. the device is fully accessible and data can be written and read when v cc is greater than v pf . however, when v cc falls below v pf , the device inhibits read and write access. if v pf is less than v bat , the device power is switched from v cc to the higher of v bat or v baux when v cc drops below v pf . if v pf is greater than the higher of v bat or v baux , the device power is switched from v cc to the higher of v bat or v baux when v cc drops below the higher backup source. the registers are maintained from the v bat or v baux source until v cc is returned to nominal levels. after v cc returns above v pf , read and write access is allowed after t rec . time, calendar, and alarm locations the time and calendar information is obtained by read- ing the appropriate register bytes. the time, calendar, and alarm are set or initialized by writing the appropri- ate register bytes. the contents of the 12 time, calen- dar, and alarm bytes can be either binary or binary-coded decimal (bcd) format. tables 3a and 3b show the bcd and binary formats of the 12 time, date, and alarm registers, control registers a to d, plus the two extended registers that reside in bank 1 only (bank 0 and bank 1 switching is explained later in this text). the day-of-week register increments at midnight, incre- menting from 1 through 7. the day-of-week register is used by the daylight saving function, and so the value 1 is defined as sunday. the date at the end of the month is automatically adjusted for months with fewer than 31 days, including correction for leap years. before writing the internal time, calendar, and alarm registers, the set bit in register b should be written to logic 1 to prevent updates from occurring while access is being attempted. in addition to writing the 12 time, calendar, and alarm registers in a selected format (binary or bcd), the data mode bit (dm) of register b must be set to the appropriate logic level. all 12 time, calendar, and alarm bytes must use the same data mode. the set bit in register b should be cleared after the data mode bit has been written to allow the real time clock to update the time and calendar bytes. once initialized, the real time clock makes all updates in the selected mode. the data mode cannot be changed without reinitializing the 12 data bytes. tables 3a and 3b show the bcd and binary formats of the 12 time, calendar, and alarm locations. the 24-12 bit cannot be changed without reinitializing the hour locations. when the 12-hour format is selected, the high order bit of the hours byte represents pm when it is logic 1. the time, calendar, and alarm bytes are always accessible because they are double-buffered. once per second, the eight bytes are advanced by one second and checked for an alarm condition. if a read of the time and calendar data occurs during an update, a problem exists where seconds, minutes, hours, etc., may not correlate. the probability of read- ing incorrect time and calendar data is low. several methods of avoiding any possible incorrect time and calendar reads are covered later in this text. real-time clocks 12 ____________________________________________________________________ table 2. power control supply condition read/write access powered by v cc < v pf , v cc < (v bat | v baux ) no v bat or v baux v cc < v pf , v cc > (v bat | v baux ) no v cc v cc > v pf , v cc < (v bat | v baux ) yes v cc v cc > v pf , v cc > (v bat | v baux ) yes v cc the alarm bytes can be used in two ways. first, when the alarm time is written in the appropriate hours, min- utes, and seconds alarm locations, the alarm interrupt is initiated at the specified time each day, if the alarm enable bit is high. in this mode, the ??bits in the alarm registers and the corresponding time registers must always be written to 0 (see table 3a and 3b). writing the 0 bits in the alarm and/or time registers to 1 can result in undefined operation. the second use condition is to insert a ?on? care state in one or more of the alarm bytes. the don? care code is any hexadecimal value from c0 to ff. the two most significant bits of each byte set the don? care condition when at logic 1. an alarm will be generated each hour when the ?on? care?bits are set in the hours byte. similarly, an alarm is generated every minute with don? care codes in the hours and minute alarm bytes. an alarm is generated every second with don? care codes in the hours, minutes, and seconds alarm bytes. all 128 bytes can be directly written or read except for the following: 1) registers c and d are read-only. 2) bit 7 of register a is read-only. 3) the msb of the seconds byte is read-only. ds17285/ds17287/ds17485/ds17487/ds17885/ds17887 real-time clocks ____________________________________________________________________ 13 table 3a. time, calendar, and alarm data modes?bcd mode (dm = 0) note: unless otherwise specified, the state of the registers is not defined when power is first applied. except for the seconds regis - ter, 0 bits in the time and date registers can be written to 1, but can be modified when the clock updates. 0 bits should alway s be written to 0 except for alarm mask bits. address bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 function range 00h 0 10 seconds seconds seconds 00?9 01h 0 10 seconds seconds seconds alarm 00?9 02h 0 10 minutes minutes minutes 00?9 03h 0 10 minutes minutes minutes alarm 00?9 am /pm 0 10 hour 04h 0 0 10 hour hours hours 1?2 + am /pm 00?3 am /pm 0 10 hour 05h 0 0 10 hour hours hours alarm 1?2 + am /pm 00?3 06h 0 0 0 0 0 day day 01?7 07h 0 0 10 date date date 01?1 08h 0 0 0 10 month month month 01?2 09h 10 year year year 00?9 0ah uip dv2 dv1 dv0 rs3 rs2 rs1 rs0 control 0bh set pie aie uie sqwe dm 24/12 dse control 0ch irqf pf af uf 0 0 0 0 control 0dh vrt 0 0 0 0 0 0 0 control bank 1, 48h 10 century century century 00?9 bank 1, 49h 10 date date date alarm 01?1 bit 7: update in progress (uip). this bit is a status flag that can be monitored. when the uip bit is 1, the update transfer will soon occur. when uip is 0, the update transfer does not occur for at least 244?. the time, calendar, and alarm information in ram is fully available for access when the uip bit is 0. the uip bit is read-only. writing the set bit in register b to 1 inhibits any update transfer and clears the uip status bit. bits 6, 5, and 4: dv2, dv1, and dv0. these bits are used to turn the oscillator on or off and to reset the countdown chain. a pattern of 01x is the only combina- tion of bits that turns the oscillator on and allows the rtc to keep time. a pattern of 11x enables the oscillator but holds the countdown chain in reset. the next update occurs at 500ms after a pattern of 01x is written to dv0, dv1, and dv2. dv0 is used to select bank 0 or bank 1 as defined in table 5. when dv0 is set to 0, bank 0 is selected. when dv0 is set to 1, bank 1 is selected. ds17285/ds17287/ds17485/ds17487/ds17885/ds17887 real-time clocks 14 ____________________________________________________________________ table 3b. time, calendar, and alarm data modes?binary mode (dm = 1) note: unless otherwise specified, the state of the registers is not defined when power is first applied. except for the seconds regis - ter, 0 bits in the time and date registers can be written to 1, but can be modified when the clock updates. 0 bits should alway s be written to 0 except for alarm mask bits. address bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 function range 00h 0 0 seconds seconds 00?b 01h 0 0 seconds seconds alarm 00?b 02h 0 0 minutes minutes 00?b 03h 0 0 minutes minutes alarm 00?b am /pm 0 hours 04h 0 00 hours hours 1?c +am/pm 00?7 am /pm 0 hours 05h 0 00 hours hours alarm 1?c +am/pm 00?7 06h 0 0 0 0 0 day day 01?7 07h 0 0 0 date date 01?f 08h 0 0 0 0 month month 01?c 09h 0 year year 00?3 0ah uip dv2 dv1 dv0 rs3 rs2 rs1 rs0 control 0bh set pie aie uie sqwe dm 24/12 dse control 0ch irqf pf af uf 0 0 0 0 control 0dh vrt 0 0 0 0 0 0 0 control bank 1, 48h 10 century century century 00?3 bank 1, 49h 10 date date date alarm 01?f control registers the four control registers (a, b, c, and d) reside in both bank 0 and bank 1. these registers are accessi- ble at all times, even during the update cycle. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 uip dv2 dv1 dv0 rs3 rs2 rs1 rs0 register a (0ah) msb lsb bits 3 to 0: rate selector bits (rs3 to rs0). these four rate-selection bits select one of the 13 taps on the 15-stage divider or disable the divider output. the tap selected can be used to generate an output square wave (sqw pin) and/or a periodic interrupt. the user can do one of the following: 1) enable the interrupt with the pie bit; 2) enable the sqw output pin with the sqwe or e32k bits; 3) enable both at the same time and the same rate; or 4) enable neither. table 4 lists the periodic interrupt rates and the square- wave frequencies that can be chosen with the rs bits. ds17285/ds17287/ds17485/ds17487/ds17885/ds17887 real-time clocks ____________________________________________________________________ 15 table 4. periodic interrupt rate and square-wave output frequency ext reg b select bits register a e32k rs3 rs2 rs1 rs0 t pi periodic interrupt rate sqw output frequency 0 0 0 0 0 none none 0 0 0 0 1 3.90625ms 256hz 0 0 0 1 0 7.8125ms 128hz 0 0 0 1 1 122.070? 8.192khz 0 0 1 0 0 244.141? 4.096khz 0 0 1 0 1 488.281? 2.048khz 0 0 1 1 0 976.5625? 1.024khz 0 0 1 1 1 1.953125ms 512hz 0 1 0 0 0 3.90625ms 256hz 0 1 0 0 1 7.8125ms 128hz 0 1 0 1 0 15.625ms 64hz 0 1 0 1 1 31.25ms 32hz 0 1 1 0 0 62.5ms 16hz 0 1 1 0 1 125ms 8hz 0 1 1 1 0 250ms 4hz 0 1 1 1 1 500ms 2hz 1 x x x x * 32.768khz * rs3 to rs0 determine periodic interrupt rates as listed for e32k = 0. ds17285/ds17287/ds17485/ds17487/ds17885/ds17887 bit 7: set. when the set bit is 0, the update transfer functions normally by advancing the counts once per second. when the set bit is written to 1, any update transfer is inhibited, and the program can initialize the time and calendar bytes without an update occurring in the midst of initializing. read cycles can be executed in a similar manner. set is a read/write bit and is not affected by any internal functions of the ds17x85. bit 6: periodic interrupt enable (pie). this bit is a read/write bit that allows the periodic interrupt flag (pf) bit in register c to drive the irq pin low. when pie is set to 1, periodic interrupts are generated by driving the irq pin low at a rate specified by the rs3?s0 bits of register a. a 0 in the pie bit blocks the irq output from being driven by a periodic interrupt, but the pf bit is still set at the periodic rate. pie is not modified by any internal ds17x85 functions. bit 5: alarm interrupt enable (aie). this bit is a read/write bit that, when set to 1, permits the alarm flag (af) bit in register c to assert irq . an alarm interrupt occurs for each second that the three time bytes equal the three alarm bytes, including a don? care alarm code of binary 11xxxxxx. when the aie bit is set to 0, the af bit does not initiate the irq signal. the internal functions of the ds17x285/87 do not affect the aie bit. bit 4: update-ended interrupt enable (uie). this bit is a read/write bit that enables the update-end flag (uf) bit in register c to assert irq . the set bit going high clears the uie bit. bit 3: square-wave enable (sqwe). when this bit is set to 1 and e32k = 0, a square-wave signal at the fre- quency set by rs3?s0 is driven out on the sqw pin. when the sqwe bit is set to 0 and e32k = 0, the sqw pin is held low. sqwe is a read/write bit. sqwe is set to 1 when v cc is powered up. bit 2: data mode (dm). this bit indicates whether time and calendar information is in binary or bcd format. the program sets the dm bit to the appropriate format and can be read as required. this bit is not modified by internal functions. a 1 in dm signifies binary data, while a 0 in dm specifies binary-coded decimal (bcd) data. bit 1: 24/12 control (24/12). this bit establishes the format of the hours byte. a 1 indicates the 24-hour mode and a 0 indicates the 12-hour mode. this bit is read/write and is not affected by internal functions. bit 0: daylight saving enable (dse). this bit is a read/write bit that enables two daylight saving adjust- ments when dse is set to 1. on the first sunday in april, the time increments from 1:59:59am to 3:00:00am. on the last sunday in october when the time first reaches 1:59:59am, it changes to 1:00:00am. when dse is enabled, the internal logic tests for the first/last sunday condition at midnight. if the dse bit is not set when the test occurs, the daylight saving func- tion does not operate correctly. these adjustments do not occur when the dse bit is zero. this bit is not affected by internal functions. real-time clocks 16 ____________________________________________________________________ bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 set pie aie uie sqwe dm 24/12 dse register b (0bh) msb lsb bit 7: interrupt request flag (irqf). this bit is set to 1 when any of the following are true: pf = pie = 1 wf = wie = 1 af = aie = 1 kf = kse = 1 uf = uie = 1 rf = rie = 1 any time the irqf bit is 1, the irq pin is driven low. flag bits pf, af, and uf are cleared after reading register c. bit 6: periodic interrupt flag (pf). this is a read-only bit that is set to 1 when an edge is detected on the selected tap of the divider chain. the rs3?s0 bits establish the periodic rate. pf is set to 1 independent of the state of the pie bit. when both pf and pie are 1s, the irq signal is active and sets the irqf bit. reading register c clears this bit. bit 5: alarm interrupt flag (af). a 1 in this bit indicates that the current time has matched the alarm time. if the aie bit is also 1, the irq pin goes low and a 1 appears in the irqf bit. reading register c clears this bit. bit 4: update-ended interrupt flag (uf). this bit is set after each update cycle. when the uie bit is set to 1, the 1 in uf causes the irqf bit to be 1, which asserts irq . reading register c clears this bit. bits 3 to 0: unused. these unused bits always read 0 and cannot be written. ds17285/ds17287/ds17485/ds17487/ds17885/ds17887 real-time clocks ____________________________________________________________________ 17 bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 irqfpfafuf0000 register c (0ch) msb lsb bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 vrt0000000 register d (0dh) msb lsb register d (0dh) bit 7: valid ram and time (vrt). this bit indicates the condition of the battery connected to the v bat and v baux pin. if either supply is above the internal voltage threshold, vrt trip , the bit will be high. this bit is not writeable and should always be a 1 when read. if a 0 is ever present, an exhausted internal lithium energy source is indicated and both the contents of the rtc data and ram data are questionable. bits 6 to 0: unused. these bits cannot be written and, when read, always read 0. ds17285/ds17287/ds17485/ds17487/ds17885/ds17887 nonvolatile ram the user ram bytes are not dedicated to any special function within the ds17x85. they can be used by the processor program as battery-backed memory and are fully available during the update cycle. the user ram is divided into two separate memory banks. when the bank 0 is selected, the 14 real-time clock registers and 114 bytes of user ram are accessi- ble. when bank 1 is selected, an additional 2kbytes, 4kbytes, or 8kbytes of user ram are accessible through the extended ram address and data registers. interrupts the rtc includes six separate, fully automatic sources of interrupt for a processor: 1) alarm interrupt 2) periodic interrupt 3) update-ended interrupt 4) wake-up interrupt 5) kickstart interrupt 6) ram clear interrupt the conditions that generate each of these indepen- dent interrupt conditions are described in detail in other sections of this data sheet. this section describes the overall control of the interrupts. the application software can select which interrupts, if any, are to be used. there are 6 bits, including 3 bits in register b and 3 bits in extended register 4b, that enable the interrupts. the extended register locations are described later. writing logic 1 to an interrupt- enable bit permits that interrupt to be initiated when the event occurs. a logic 0 in the interrupt-enable bit pro- hibits the irq pin from being asserted from that interrupt condition. if an interrupt flag is already set when an interrupt is enabled, irq is immediately set at an active level, although the event initiating the interrupt condition might have occurred much earlier. therefore, there are cases where the software should clear these earlier generated interrupts before first enabling new interrupts. when an interrupt event occurs, the relating flag bit is set to logic 1 in register c or in extended register 4a. these flag bits are set regardless of the setting of the corresponding enable bit located either in register b or in extended register 4b. the flag bits can be used in a polling mode without enabling the corresponding enable bits. however, care should be taken when using the flag bits of register c as they are automatically cleared to 0 immediately after they are read. double latching is implemented on these bits so that set bits remain sta- ble throughout the read cycle. all bits that were set are cleared when read and new interrupts that are pending during the read cycle are held until after the cycle is completed. one, two, or three bits can be set when reading register c. each used flag bit should be exam- ined when read to ensure that no interrupts are lost. the flag bits in extended register 4a are not automati- cally cleared following a read. instead, each flag bit can be cleared to 0 only by writing 0 to that bit. when using the flag bits with fully enabled interrupts, the irq line is driven low when an interrupt flag bit is set and its corresponding enable bit is also set. irq is held low as long as at least one of the six possible interrupt sources has its flag and enable bits both set. the irqf bit in register c is 1 whenever the irq pin is being driven low as a result of one of the six possible active sources. therefore, determination that the ds17x85/ds17x87 initiated an interrupt is accom- plished by reading register c and finding irqf = 1. irqf remains set until all enabled interrupt flag bits are cleared to 0. oscillator control bits a pattern of 01x in bits 4 to 6 of register a turns the oscillator on and enables the countdown chain. a pat- tern of 11x (dv2 = 1, dv1 = 1, dv0 = x) turns the oscil- lator on, but holds the countdown chain of the oscillator in reset. all other combinations of bits 4 to 6 keep the oscillator off. when the ds17x87 is shipped from the factory, the internal oscillator is turned off. this feature prevents the lithium energy cell from being used until it is installed in a system. square-wave output selection thirteen of the 15 divider taps are made available to a 1-of-16 multiplexer, as shown in figure 1. the square wave and periodic interrupt generators share the out- put of the multiplexer. the rs0?s3 bits in register a establish the output frequency of the multiplexer. these frequencies are listed in table 4. once the frequency is selected, the output of the sqw pin can be turned on and off under program control with the square-wave enable bit (sqwe). if e32k = 0, the square-wave output is determined by the rs3 to rs0 bits. if e32k = 1, a 32khz square wave is output on the sqw pin, regardless of the rs3 to rs0 bits?state. if e32k = abe = 1 and a valid voltage is applied to v baux , a 32khz square wave is output on sqw when v cc is below v tp . real-time clocks 18 ____________________________________________________________________ periodic interrupt selection the periodic interrupt causes the irq pin to go to an active state from once every 500ms to once every 122?. this function is separate from the alarm inter- rupt, which can be output from once per second to once per day. the periodic interrupt rate is selected using the same register a bits that select the square- wave frequency (see table 4). changing the register a bits affects both the square-wave frequency and the periodic interrupt output. however, each function has a separate enable bit in register b. the sqwe and e32k bits control the square-wave output. similarly, the peri- odic interrupt is enabled by the pie bit in register b. the periodic interrupt can be used with software coun- ters to measure inputs, create output intervals, or await the next needed software function. update cycle the ds17x85 executes an update cycle once per sec- ond regardless of the set bit in register b. when the set bit in register b is set to 1, the user copy of the double-buffered time, calendar, and alarm bytes is frozen and does not update as the time increments. however, the time countdown chain continues to update the internal copy of the buffer. this feature allows time to maintain accuracy independent of read- ing or writing the time, calendar, and alarm buffers, and also guarantees that time and calendar information is consistent. the update cycle also compares each alarm byte with the corresponding time byte and issues an alarm if a match or if a don? care code is present in all alarm locations. there are three methods that can handle access of the rtc that avoid any possibility of accessing inconsistent time and calendar data. the first method uses the update-ended interrupt. if enabled, an interrupt occurs after every update cycle that indicates that over 999ms are available to read valid time and date information. if this interrupt is used, the irqf bit in register c should be cleared before leaving the interrupt routine. a second method uses the update-in-progress (uip) bit in register a to determine if the update cycle is in progress. the uip bit pulses once per second. after the uip bit goes high, the update transfer occurs 244? later. if a low is read on the uip bit, the user has at least 244? before the time/calendar data is changed. therefore, the user should avoid interrupt service rou- tines that would cause the time needed to read valid time/calendar data to exceed 244?. the third method uses a periodic interrupt to determine if an update cycle is in progress. the uip bit in register a is set high between the setting of the pf bit in register c (see figure 4). periodic interrupts that occur at a rate of greater than t buc allow valid time and date information to be reached at each occurrence of the periodic interrupt. the reads should be complete within 1 (t pi/2 + t buc ) to ensure that data is not read during the update cycle. ds17285/ds17287/ds17485/ds17487/ds17885/ds17887 real-time clocks ____________________________________________________________________ 19 uip uf pf t buc = delay time before update cycle = 244 s. 1 second t pi t pi/2 t pi/2 t buc figure 4. uip and periodic interrupt timing ds17285/ds17287/ds17485/ds17487/ds17885/ds17887 extended functions the extended functions provided by the ds17x85/ ds17x87 that are new to the ramified rtc family are accessed by a software-controlled bank-switching scheme, as illustrated in table 5. in bank 0, the clock/calendar registers and 50 bytes of user ram are in the same locations as for the ds1287. as a result, existing routines implemented within bios, dos, or application software packages can gain access to the ds17x85/ds17x87 clock registers with no changes. also in bank 0, an extra 64 bytes of ram are provided at addresses just above the original locations for a total of 114 directly addressable bytes of user ram. when bank 1 is selected, the clock/calendar registers and the original 50 bytes of user ram still appear as bank 0. however, the extended registers that provide control and status for the extended functions are accessed in place of the additional 64 bytes of user ram. the major extended functions controlled by the extended registers are listed below: 64-bit silicon serial number century counter rtc write counter date alarm auxiliary battery control/status wake-up kickstart ram clear control/status extended ram access the bank selection is controlled by the state of the dv0 bit in register a. to access bank 0 the dv0 bit should be written to a 0. to access bank 1, dv0 should be written to 1. register locations designated as reserved in the bank 1 map are reserved for future use by dallas semiconductor. bits in these locations cannot be writ- ten and return a 0 if read. silicon serial number a unique 64-bit lasered serial number is located in bank 1, registers 40h?7h. this serial number is divid- ed into three parts. the first byte in register 40h con- tains a model number to identify the device type of the ds17x85/ds17x87. registers 41h?6h contain a unique binary number. register 47h contains a crc byte used to validate the data in registers 40h?6h. the crc polynomial is x 8 + x 5 + x 4 + 1. see figure 5. all 8 bytes of the serial number are read-only registers. the ds17x85/ds17x87 is manufactured such that no two devices contain an identical number in locations 41h?7h. real-time clocks 20 ____________________________________________________________________ 1st stage 2nd stage 3rd stage 4th stage 5th stage 6th stage 7th stage 8th stage input data polynomial = x 8 + x 5 + x 4 + 1 x 0 x 1 x 2 x 3 x 4 x 5 x 6 x 7 x 8 figure 5. crc polynomial device model number ds17285/87 72h ds17485/87 74h ds17885/87 78h ds17285/ds17287/ds17485/ds17487/ds17885/ds17887 real-time clocks ____________________________________________________________________ 21 table 5. extended bank register bank definition note: reserved bits can be written to any value, but always read back as zeros. bank 0 bank 1 dv0 = 0 dv0 = 1 00h 0dh timekeeping and control 00h 0dh timekeeping and control 0eh 3fh 50 bytes ?user ram 0eh 3fh 50 bytes ?user ram 40h 40h model number byte 41h 1st byte serial number 42h 2nd byte serial number 43h 3rd byte serial number 44h 4th byte serial number 45h 5th byte serial number 46h 6th byte serial number 47h crc byte 48h century byte 49h date alarm 4ah extended control register 4a 4bh extended control register 4b 4ch reserved 4dh reserved 4eh rtc address ?2 4fh rtc address ?3 64 bytes ?user ram 50h extended ram address lsb 51h extended ram address msb 52h reserved 53h extended ram data port 54h reserved 55h reserved 56h reserved 57h reserved 58h reserved 59h reserved 5ah reserved 5bh reserved 5ch reserved 5dh reserved 5eh rtc write counter 7fh 5fh 7fh reserved ds17285/ds17287/ds17485/ds17487/ds17885/ds17887 real-time clocks 22 ____________________________________________________________________ century counter a register has been added in bank 1, location 48h, to keep track of centuries. the value is read in either bina- ry or bcd according to the setting of the dm bit. rtc write counter an 8-bit counter located in extended register bank 1, 5eh, counts the number of times the rtc is written to. this counter is incremented on the rising edge of the wr signal every time that the cs signal qualifies it. this counter is a read-only register and rolls over after 256 rtc write pulses. this counter can be used to deter- mine if and how many rtc writes have occurred since the last time this register was read. auxiliary battery the v baux input is provided to supply power from an auxiliary battery for the ds17x85/ds17x87 kickstart, wake-up, and sqw output in the absence of v cc func- tions. this power source must be available to use these auxiliary functions when no v cc is applied to the device. the auxiliary battery enable (abe; bank 1, register 04bh) bit in extended control register 4b is used to turn the auxiliary battery on and off for the above func- tions in the absence of v cc . when set to 1, v baux bat- tery power is enabled; when cleared to 0, v baux battery power is disabled to these functions. in the ds17x85/ds17x87, this auxiliary battery can be used as the primary backup power source for maintain- ing the clock/calendar, user ram, and extended exter- nal ram functions. this occurs if the v bat pin is at a lower voltage than v baux . if the ds17x85 is to be backed up using a single battery with any auxiliary functions enabled, then v baux should be used and v bat should be grounded. if v baux is not to be used, it should be grounded and abe should be cleared to 0. wake-up/kickstart the ds17x85/ds17x87 incorporates a wake-up feature that powers on the system at a predetermined date and time through activation of the pwr output pin. in addi- tion, the kickstart feature allows the system to be pow- ered up in response to a low-going transition on the ks pin, without operating voltage applied to the v cc pin. as a result, system power can be applied upon such events as a key closure or modem ring-detect signal. to use either the wake-up or the kickstart functions, the ds17x85/ds17x87 must have an auxiliary battery con- nected to the v baux pin, the oscillator must be running, and the countdown chain must not be in reset (register a dv2, dv1, dv0 = 01x). if dv2 and dv1 are not in this required state, the pwr pin is not driven low in response to a kickstart or wake-up condition while in battery-backed mode. the wake-up feature is controlled through the wake-up interrupt-enable bit in extended control register 4b (wie, bank 1, 04bh). setting wie to 1 enables the wake-up fea- ture, clearing wie to 0 disables it. similarly, the kickstart interrupt-enable bit in extended control register 4b (kse, bank 1, 04bh) controls the kickstart feature. a wake-up sequence occurs as follows: when wake-up is enabled through wie = 1 while the system is pow- ered down (no v cc voltage), the clock/calendar moni- tors the current date for a match condition with the date alarm register (bank 1, register 049h). with the date alarm register, the hours, minutes, and seconds alarm bytes in the clock/calendar register map (bank 0, regis- ters 05h, 03h, and 01h) are also monitored. as a result, a wake-up occurs at the date and time specified by the date, hours, minutes, and seconds alarm regis- ter values. this additional alarm occurs regardless of the programming of the aie bit (bank 0, register b, 0bh). when the match condition occurs, the pwr pin is automatically driven low. this output can be used to turn on the main system power supply that provides v cc voltage to the ds17x85/ds17x87 as well as the other major components in the system. also at this time, the wake-up flag (wf, bank 1, register 04ah) is set, indicating that a wake-up condition has occurred. a kickstart sequence occurs when kickstarting is enabled through kse = 1. while the system is powered down, the ks input pin is monitored for a low-going transition of minimum pulse width t kspw . when such a transition is detected, the pwr line is pulled low, as it is for a wake-up condition. also at this time, the kickstart flag (kf, bank 1, register 04ah) is set, indicating that a kickstart condition has occurred. the timing associated with both the wake-up and kick- starting sequences is illustrated in the wake- up/kickstart timing diagram (figure 6). the timing associated with these functions is divided into five inter- vals, labeled 1 to 5 on the diagram. the occurrence of either a kickstart or wake-up condition causes the pwr pin to be driven low, as described above. during interval 1, if the supply voltage on the ds17x85/ds17x87 v cc pin rises above the greater of v bat or v pf before the power-on timeout period (t poto ) expires, then pwr remains at the active-low level. if v cc does not rise above the greater of v bat or v pf in this time, then the pwr output pin is turned off and returns to its high-impedance level. in this event, the irq pin also remains tri-stated. the interrupt flag bit (either wf or kf) associated with the attempted power-on sequence remains set until cleared by software during a subse- quent system power-on. if v cc is applied within the timeout period, then the sys- tem power-on sequence continue as shown in intervals 2 to 5 in the timing diagram. during interval 2, pwr remains active and irq is driven to its active-low level, indicating that either wf or kf was set in initiating the power-on. in the diagram ks is assumed to be pulled up to the v baux supply. also at this time, the pab bit is automatically cleared to 0 in response to a successful power-on. the pwr line remains active as long as the pab remains cleared to 0. ds17285/ds17287/ds17485/ds17487/ds17885/ds17887 real-time clocks ____________________________________________________________________ 23 figure 6. wake-up/kickstart timing diagram note: wake-up/kickstart timeout is generated only when the oscillator is enabled and the countdown chain is not reset. v bat v bat v ih t kspw t potp v ih v ih 1 2 3 45 v il v il high-impedance high-impedance v il v pf v pf 0v 0v *condition vpf < vbat *this condition can occur with the 3v device. note: the time intervals shown above are referenced in the wake-up/kickstart section. *condition vbat > vpf wf/kf (internal) ks pwr irq table 6. wake-up/kickstart timing (t a =+25?) parameter symbol conditions min typ max units kickstart-input pulse width t kspw 2 s wake-up/kickstart power-on timeout t poto 2s ds17285/ds17287/ds17485/ds17487/ds17885/ds17887 at the beginning of interval 3, the system processor has begun code execution and clears the interrupt condi- tion of wf and/or kf by writing zeros to both of these control bits. as long as no other interrupt within the ds17x85/ds17x87 is pending, the irq line is taken inactive once these bits are reset. execution of the application software can proceed. during this time, the wake-up and kickstart functions can be used to gener- ate status and interrupts. wf is set in response to a date, hours, minutes, and seconds match condition. kf is set in response to a low-going transition on ks . if the associated interrupt-enable bit is set (wie and/or kse), the irq line is driven active low in response to enabled event. in addition, the other possible interrupt sources within the ds17885/ds17887 can cause irq to be dri- ven low. while system power is applied, the on-chip logic always attempts to drive the pwr pin active in response to the enabled kickstart or wake-up condition. this is true even if pwr was previously inactive as the result of power being applied by some means other than wake-up or kickstart. the system can be powered down under software con- trol by setting the pab bit to logic 1. this causes the open-drain pwr pin to be placed in a high-impedance state, as shown at the beginning of interval 4 in the tim- ing diagram. as v cc voltage decays, the irq output pin is placed in a high-impedance state when v cc goes below v pf . if the system is to be again powered on in response to a wake-up or kickstart, then the wf and kf flags should be cleared, and wie and/or kse should be enabled prior to setting the pab bit. during interval 5, the system is fully powered down. battery backup of the clock calendar and nv ram is in effect and irq is tri-stated, and monitoring of wake-up and kickstart takes place. if prs = 1, pwr stays active; otherwise, if prs = 0, pwr is high impedance. ram clear the ds17x85/ds17x87 provide a ram clear function for the 114 bytes of user ram. when enabled, this function can be performed regardless of the condition of the v cc pin. the ram clear function is enabled or disabled through the ram clear-enable bit (rce; bank 1, register 04bh). when this bit is set to logic 1, the 114 bytes of user ram is cleared (all bits set to 1) when an active-low transition is sensed on the rclr pin. this action has no effect on either the clock/calendar settings or the contents of the extended ram. the ram clear flag (rf, bank 1, register 04ah) is set when the ram clear operation has been completed. if v cc is present at the time of the ram clear and rie = 1, the irq line is also driven low upon completion. writing a zero to the rf bit clears the inter- rupt condition. the irq line then returns to its inactive high level, provided there are no other pending inter- rupts. once the rclr pin is activated, all read/write accesses are locked out for a minimum recover time, specified as t rec in electrical characteristics . when rce is cleared to 0, the ram clear function is disabled. the state of the rclr pin has no effect on the contents of the user ram, and transitions on the rclr pin have no effect on rf. extended ram the ds17x85/ds17x87 provide 2k, 4k, or 8k x 8 of on- chip sram that is controlled as nonvolatile storage sus- tained from a lithium battery. on power-up, the ram is taken out of write-protect status by the internal power- ok signal (pok) generated from the write-protect cir- cuitry. the on-chip sram is accessed through the eight multiplexed address/data lines ad7 to ad0. three on-chip latch registers control access to the sram. two registers are used to hold the sram address, and the other register is used to hold read/write data. access to the extended ram is controlled by three of the registers shown in table 5. the extended registers in bank 1 must first be selected by setting the dv0 bit in register a to logic 1. the address of the ram loca- tion to be accessed must be loaded into the extended ram address registers located at 50h and 51h. the least significant address byte should be written to loca- tion 50h, and the most significant bits (right-justified) should be loaded in location 51h. data in the addressed location can be read by performing a read operation from location 53h, or written to by performing a write operation to location 53h. data in any addressed location can be read or written repeatedly without changing the address in location 50h and 51h. to read or write consecutive extended ram locations, a burst mode feature can be enabled to increment the extended ram address. to enable the burst mode fea- ture, set the bme bit in the extended control register 4ah to logic 1. with burst mode enabled, write the extended ram starting address location to registers 50h and 51h. then read or write the extended ram data from/to register 53h. the extended ram address locations are automatically incremented on the rising edge of rd or wr only when register 53h is being accessed. see the burst mode timing waveform. real-time clocks 24 ____________________________________________________________________ bit 7: valid ram and time 2 (vrt2). this status bit gives the condition of the auxiliary battery. it is set to logic 1 condition when the external lithium battery is connected to the v baux . if this bit is read as logic 0, the external battery should be replaced. bit 6: increment in progress status (incr). this bit is set to 1 when an increment to the time/date registers is in progress and the alarm checks are being made. incr is set to 1 at 122? before the update cycle starts and is cleared to 0 at the end of each update cycle. bit 5: burst mode enable (bme). the burst mode enable bit allows the extended user ram address reg- isters to automatically increment for consecutive reads and writes. when bme is set to logic 1, the automatic incrementing is enabled and when bme is set to a logic 0, the automatic incrementing is disabled. bit 3: power active-bar control (pab). when this bit is 0, the pwr pin is in the active low state. when this bit is 1, the pwr pin is in the high-impedance state. the user can write this bit to logic 1 or 0. if either wf and wie = 1 or kf and kse = 1, the pab bit is cleared to 0. bit 2: ram clear flag (rf). this bit is set to logic 1 when a high-to-low transition occurs on the rclr input if rce = 1. writing this bit to logic 0 clears it. this bit can also be written to logic 1 to force an interrupt con- dition. bit 1: wake-up alarm flag (wf). this bit is set to 1 when a wake-up alarm condition occurs or when the user writes it to 1. wf is cleared by writing it to 0. bit 0: kickstart flag (kf). this bit is set to 1 when a kickstart condition occurs or when the user writes it to 1. this bit is cleared by writing it to logic 0. extended control registers two extended control registers are provided to supply control and status information for the extended func- tions offered by the ds17x85/ds17x87. these are des- ignated as extended control registers 4a and 4b, and are located in register bank 1, locations 04ah and 04bh, respectively. the functions of the bits within these registers are described as follows. ds17285/ds17287/ds17485/ds17487/ds17885/ds17887 real-time clocks ____________________________________________________________________ 25 figure 7. burst mode timing waveform address + 1 as 53h data pw rwl pw rwh data cs ad0-7 ds or r/w address + 2 * reserved bit. this bit is reserved for future use. it can be read and written, but has no effect on operation. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 vrt2 incr bme * pab rf wf kf extended control register (4ah) msb lsb ds17285/ds17287/ds17485/ds17487/ds17885/ds17887 bit 7: auxiliary battery enable (abe). when written to logic 1, this bit enables the v baux pin for extended functions. bit 6: enable 32.768khz output (e32k). when written to logic 1, this bit enables the 32.768khz oscillator fre- quency to be output on the sqw pin. e32k is set to 1 when v cc is powered up. bit 5: crystal select (cs). when cs is set to 0, the oscillator is configured for operation with a crystal that has a 6pf specified load capacitance. when cs = 1, the oscillator is configured for a 12.5pf crystal. cs is disabled in the ds17x87 module and should be set to cs = 0. bit 4: ram clear enable (rce). when set to 1, this bit enables a low level on rclr to clear all 114 bytes of user ram. when rce = 0, rclr and the ram clear function are disabled. bit 3: pab reset select (prs). when set to 0, the pwr pin is set high impedance when the ds17x85 goes into power fail. when set to 1, the pwr pin remains active upon entering power fail. bit 2: ram clear interrupt enable (rie). when rie is set to 1, the irq pin is driven low when a ram clear function is completed. bit 1: wake-up alarm interrupt enable (wie). when v cc voltage is absent and wie is set to 1, the pwr pin is driven active low when a wake-up condition occurs, causing the wf bit to be set to 1. when v cc is then applied, the irq pin is also driven low. if wie is set while system power is applied, both irq and pwr are driven low in response to wf being set to 1. when wie is cleared to 0, the wf bit has no effect on the pwr or irq pins. bit 0: kickstart interrupt enable (kse). when v cc voltage is absent and kse is set to 1, the pwr pin is driven active low when a kickstart condition occurs ( ks pulsed low), causing the kf bit to be set to 1. when v cc is then applied, the irq pin is also driven low. if kse is set to 1 while system power is applied, both irq and pwr are driven low in response to kf being set to 1. when kse is cleared to 0, the kf bit has no effect on the pwr or irq pins. real-time clocks 26 ____________________________________________________________________ bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 abe e32k cs rce prs rie wie kse extended control register (4bh) msb lsb system maintenance interrupt (smi) recovery stack an smi recovery register stack is located in the extend- ed register bank, locations 4eh and 4fh. this register stack, shown below, can be used by the bios to recov- er from an smi occurring during an rtc read or write. the rtc address is latched on the falling edge of the ale signal. each time an rtc address is latched, the register address stack is pushed. the stack is only four registers deep, holding the three previous rtc addresses in addition to the current rtc address being accessed. figure 8 illustrates how the bios could recover the rtc address when an smi occurs. 1) the rtc address is latched. 2) an smi is generated before an rtc read or write occurs. 3 rtc address 0ah is latched and the address from 1 is pushed to the ?tc address??stack location. this step is necessary to change the bank select bit, dv0 = 1. 4) rtc address 4eh is latched and the address from 1 is pushed to location 4eh, ?tc address??while 0ah is pushed to the ?tc address??location. the data in this register, 4eh, is the rtc address lost due to the smi. ds17285/ds17287/ds17485/ds17487/ds17885/ds17887 real-time clocks ____________________________________________________________________ 27 figure 8. ale waveform rtc address rtc address-1 4eh rtc address-2 4fh rtc address-3 smi recovery stack 76543210 dv0 ad6 ad5 ad4 ad3 ad2 ad1 ad0 register bit definition 1 2 3 4 ale ds17285/ds17287/ds17485/ds17487/ds17885/ds17887 real-time clocks 28 ____________________________________________________________________ pin configurations 24 23 22 21 20 19 18 17 1 2 3 4 5 6 7 8 v cc sqw v baux rclr ad0 x2 x1 pwr top view v bat irq ks rd ad4 ad3 ad2 ad1 16 15 14 13 9 10 11 12 gnd wr ale cs gnd ad7 ad6 ad5 so, pdip ds17285 ds17485 ds17885 v cc sqw v baux rclr ad0 n.c. n.c. pwr n.c. irq ks rd ad4 ad3 ad2 ad1 n.c. wr ale cs gnd ad7 ad6 ad5 edip ds17287 ds17487 ds17887 1 2 3 4 5 6 7 8 9 10 11 12 24 23 22 21 20 19 18 17 16 15 14 13 v baux 28 27 26 25 24 23 22 ks rd gnd wr ale cs gnd 21 gnd 20 ad7 19 ad6 18 n.c. 17 ad5 16 ad4 15 ad3 rclr v bat irq v cc v cc pwr x1 x2 n.c. ad0 ad1 4 1 2 3 5 6 7 8 9 10 11 12 13 14 ad2 sqw tsop ds17285 ds17485 ds17885 ds17285/ds17287/ds17485/ds17487/ds17885/ds17887 real-time clocks ____________________________________________________________________ 29 ordering information part temp range pin- package top mark* ds17285 -3 0? to +70? 24 pdip ds17285-3 ds17285-5 0? to +70? 24 pdip ds17285-5 ds17285e-3 0? to +70? 28 tsop ds17285e3 ds17285e-3+ 0? to +70? 28 tsop ds17285e3 ds17285e-5 0? to +70? 28 tsop ds17285e5 ds17285e-5+ 0? to +70? 28 tsop ds17285e5 ds17285en-3 -40? to +85? 28 tsop ds17285e3 ds17285n-5 -40? to +85? 24 so (300 mils) ds17285n5 ds17285s-3 0? to +70? 24 so (300 mils) ds17285s-3 ds17285s-3nt -40? to +85? 24 so (300 mils) ds17285sn3 ds17285s-5 0? to +70? 24 so (300 mils) ds17285s-5 ds17285sn-3 -40? to +85? 24 so (300 mils) ds17285sn3 ds17285sn-5 -40? to +85? 24 so (300 mils) ds17285sn5 ds17287 -3 0? to +70? 24 edip ds17287-3 ds17287-5 0? to +70? 24 edip ds17287-5 ds17485 -3 0? to +70? 24 pdip ds17485-3 ds17485-5 0? to +70? 24 pdip ds17485-5 ds17485e-3 0? to +70? 28 tsop ds17485e3 ds17485e-3+ 0? to +70? 28 tsop ds17485e3 ds17485e-5 0? to +70? 28 tsop ds17485e5 ds17485e-5+ 0? to +70? 28 tsop ds17485e5 ds17485s-3 0? to +70? 24 so (300 mils) ds17485s-3 ds17485s-5 0? to +70? 24 so (300 mils) ds17485s-5 part temp range pin- package top mark* ds17485sn-5 -40? to +85? 24 so (300 mils) ds17485sn5 ds17487 -3 0? to +70? 24 edip ds17487-3 ds17487-3ind -40? to +85? 24 edip ds17487-3 real time ind ds17487-5 0? to +70? 24 edip ds17487-5 ds17487-5ind -40? to +85? 24 edip ds17487-5 real time ind ds17885 -3 0? to +70? 24 pdip ds17885-3 ds17885-5 0? to +70? 24 pdip ds17885-5 ds17885e-3 0? to +70? 28 tsop ds17885e3 ds17885e-3+ 0? to +70? 28 tsop ds17885e3 ds17885e-5 0? to +70? 28 tsop ds17885e5 ds17885e-5+ 0? to +70? 28 tsop ds17885e5 ds17885s-3 0? to +70? 24 so (300 mils) ds17885s-3 ds17885s-5 0? to +70? 24 so (300 mils) ds17885s-5 ds17885sn-5 -40? to +85? 24 so (300 mils) ds17885sn5 ds17887 -3 0? to +70? 24 edip ds17887-3 ds17887-3ind -40? to +85? 24 edip ds17887-3 real time ind ds17887-5 0? to +70? 24 edip ds17887-5 ds17887-5ind -40? to +85? 24 edip ds17887-5 real time ind + denotes lead-free package. * a ??anywhere on the top mark denotes a lead-free package. an ??or ?nd?denotes an industrial temperature range package. note: a ?5?suffix denotes a v cc = 5v?0% device, and a ?3?suffix denotes a v cc = 3v?0% device. ds17285/ds17287/ds17485/ds17487/ds17885/ds17887 real-time clocks maxim cannot assume responsibility for use of any circuitry other than circuitry entirely embodied in a maxim product. no circu it patent licenses are implied. maxim reserves the right to change the circuitry and specifications without notice at any time. 30 ____________________maxim integrated products, 120 san gabriel drive, sunnyvale, ca 94086 408-737-7600 2006 maxim integrated products printed usa is a registered trademark of maxim integrated products, inc. is a registered trademark of dallas semiconductor corporation. package information for the latest package outline information, go to www.maxim-ic.com/dallaspackinfo . chip information transistor count ds17285/7: 139,000 transistor count ds17485/7: 233,000 transistor count ds17885/7: 421,000 substrate connected to ground process: cmos thermal information package theta-ja (?/w) theta-jc (?/w) dip 75 30 so 105 22 package outline document number 24-pin dip (600 mils) 56-g5000-003 24-pin so (300 mils) 56-g4009-001 24-pin edip (720 mils) 56-g0001-001 28-pin tsop 56-g5003-000 typical operating circuit irq x1 x2 v cc v cc ale ds83c520 ds17285 ds17485 ds17885 wr rd cs ad0?d7 gnd pwr v sb v cc supply control circuit sqw crystal v cc ks rclr v baux v bat english ? ???? ? ??? ? ??? what's new products solutions design appnotes support buy company members ds17485 part number table notes: see the ds17485 quickview data sheet for further information on this product family or download the ds17485 full data sheet (pdf, 328kb). 1. other options and links for purchasing parts are listed at: http://www.maxim-ic.com/sales . 2. didn't find what you need? ask our applications engineers. expert assistance in finding parts, usually within one business day. 3. part number suffixes: t or t&r = tape and reel; + = rohs/lead-free; # = rohs/lead-exempt. more: see full data sheet or part naming conventions . 4. * some packages have variations, listed on the drawing. "pkgcode/variation" tells which variation the product uses. 5. part number notes free sample buy direct package: type pins size drawing code/var * temp rohs/lead-free? materials analysis ds17485-3 3v pdip;24 pin;600 dwg: 56-g5000-003a (pdf) use pkgcode/variation: p24-6 * 0c to +70c rohs/lead-free: no materials analysis ds17485-5+ pdip;24 pin;600 dwg: 56-g5000-003a (pdf) use pkgcode/variation: p24+7 * 0c to +70c rohs/lead-free: yes materials analysis ds17485-3+ pdip;24 pin;600 dwg: 56-g5000-003a (pdf) use pkgcode/variation: p24+6 * 0c to +70c rohs/lead-free: yes materials analysis ds17485-5 5v pdip;24 pin;600 dwg: 56-g5000-003a (pdf) use pkgcode/variation: p24-7 * 0c to +70c rohs/lead-free: no materials analysis ds17485s-5+ soic;24 pin;300 dwg: 56-g4009-001b (pdf) use pkgcode/variation: w24+3 * 0c to +70c rohs/lead-free: yes materials analysis ds17485s-3 3v soic;24 pin;300 dwg: 56-g4009-001b (pdf) use pkgcode/variation: w24-4 * 0c to +70c rohs/lead-free: no materials analysis ds17485s-5 5v soic;24 pin;300 dwg: 56-g4009-001b (pdf) use pkgcode/variation: w24-3 * 0c to +70c rohs/lead-free: no materials analysis ds17485s-5+t&r soic;24 pin;300 dwg: 56-g4009-001b (pdf) use pkgcode/variation: w24+3 * 0c to +70c rohs/lead-free: yes materials analysis ds17485s-3/t&r soic;24 pin;300 dwg: 56-g4009-001b (pdf) use pkgcode/variation: w24-4 * 0c to +70c rohs/lead-free: no materials analysis ds17485s-5/t&r soic;24 pin;300 dwg: 56-g4009-001b (pdf) use pkgcode/variation: w24-3 * 0c to +70c rohs/lead-free: no materials analysis ds17485s-3+ soic;24 pin;300 dwg: 56-g4009-001b (pdf) use pkgcode/variation: w24+3 * 0c to +70c rohs/lead-free: yes materials analysis ds17485s-3+t&r soic;24 pin;300 dwg: 56-g4009-001b (pdf) use pkgcode/variation: w24+3 * 0c to +70c rohs/lead-free: yes materials analysis ds17485sn-5/t&r soic;24 pin;300 dwg: 56-g4009-001b (pdf) use pkgcode/variation: w24-4 * -40c to +85c rohs/lead-free: no materials analysis ds17485sn-5 5v soic;24 pin;300 dwg: 56-g4009-001b (pdf) use pkgcode/variation: w24-3 * -40c to +85c rohs/lead-free: no materials analysis ds17485sn-5+ soic;24 pin;300 dwg: 56-g4009-001b (pdf) use pkgcode/variation: w24+3 * -40c to +85c rohs/lead-free: yes materials analysis ds17485e-5+ 0c to +70c rohs/lead-free: yes ds17485e-3+ tsop;28 pin;528 dwg: 56-g5003-000b (pdf) use pkgcode/variation: z28+2 * 0c to +70c rohs/lead-free: yes materials analysis ds17485e-5 5v tsop;28 pin;528 dwg: 56-g5003-000b (pdf) use pkgcode/variation: z28-2 * 0c to +70c rohs/lead-free: no materials analysis ds17485e-3 3v tsop;28 pin;528 dwg: 56-g5003-000b (pdf) use pkgcode/variation: z28-2 * 0c to +70c rohs/lead-free: no materials analysis didn't find what you need? contact us: send us an email copyright 2007 by maxim integrated products, dallas semiconductor ? legal notices ? privacy policy |
Price & Availability of DS17485SN-5TAMPR |
|
|
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] |