Datasheet DS1305N, DS1305EN, DS1305E, DS1305 Datasheet (Dallas Semiconductor)

Page 1
www.dalsemi.com
N
N
N
N
DS1305
Serial Alarm Real Time Clock (RTC)
FEATURES
Real time clock counts seconds, minutes,
hours, date of the month, month, day of the week and year with leap year compensation valid up to 2100
96-byte nonvolatile RAM for data storageTwo time-of-day alarms programmable on
Serial interface supports Motorola serial
peripheral interface (SPI) serial data ports or standard 3-wire interface
Burst mode for reading/writing successive
addresses in clock/RAM
Dual power supply pins for primary and
backup power supplies
Optional trickle charge output to backup
supply
2.0 - 5.5V operationOptional industrial temperature range
-40°C to +85°C
Available in space-efficient, 20-pin TSSOP
package
Recognized by Underwriters Laboratory
ORDERING INFORMATION
DS1305 16-Pin DIP DS1305N 16-Pin DIP (Industrial) DS1305E 20-Pin TSSOP DS1305EN 20-Pin TSSOP (Industrial)
PIN ASSIGNMENT
V
CC2
V
BAT
X1 3 18 PF
C4 17V
X2 5 16 SD0
C6 15SDI
INT0 7 14 SCLK
C8 13NC INT1 9 12 CE GND 10 11 SERMODE
DS1305 20-Pin TSSOP (173 mil)
V V X1 3 14 V X2 4 13 SDO
INT0 6 11 SCLK INT1 7 10 CE GND 8 9 SERMODE
120V 219NC
CC2
BAT
C5 12SDI
1 16 V 215PF
CC1
CCIF
CC1
CCIF
DS1305 16-Pin DIP (300 mil)
1 of 22 070900
Page 2
DS1305
PIN DESCRIPTION
V
CC1
V
- Backup Power Supply
CC2
V
- +3V Battery Input
BAT
V
- Interface Logic Power Supply Input
CCIF
GND - Ground X1, X2 - 32.768 kHz Crystal Connection
INT0 - Interrupt 0 Output
INT1 - Interrupt 1 Output
SDI - Serial Data In SDO - Serial Data Out CE - Chip Enable SCLK - Serial Clock SERMODE - Serial Interface Mode
PF - Power Fail Output
- Primary Power Supply
DESCRIPTION
The DS1305 Serial Alarm Real Time Clock provides a full BCD clock calendar which is accessed via a simple serial interface. The clock/calendar provides seconds, minutes, hours, day, date, month and year information. The end of the month date is automatically adjusted for months with less than 31 days, including corrections for leap year. The clock operates in either the 24-hour or 12-hour format with AM/PM indicator. In addition 96 bytes of nonvolatile RAM are provided for data storage.
An interface logic power supply input pin (V
) allows the DS1305 to drive SDO and PF pins to a level
CCIF
that is compatible with the interface logic. This allows an easy interface to 3-volt logic in mixed suppl y systems.
The DS1305 offers dual power supplies as well as a battery input pin. The dual power supplies support a programmable trickle charge circuit which allows a rechargeable energy source (such as a super cap or rechargeable battery) to be used for a backup supply. The V
pin allows the device to be backed up b y
BAT
a non-rechargeable battery. The DS1305 is fully operational from 2.0 to 5.5 volts.
Two programmable time of day alarms are provided by the DS1305. Each alarm can generate an interrupt on a programmable combination of seconds, minutes, hours and day. “Don’t care” states can be inserted into one or more fields if it is desired for them to be ignored for the alarm condition. The time of day alarms can be programmed to assert two different interrupt outputs or to assert one common interrupt output. Both interrupt outputs operate when the device is powered by V
CC1
, V
CC2
, or V
BAT
.
The DS1305 supports a direct interface to Motorola SPI serial data ports or standard 3-wir e interface. A straightforward address and data format is implemented in which data transfers can occur 1 byte at a time or in multiple-byte burst mode.
OPERATION
The block diagram in Figure 1 shows the main elements of the Serial Alarm RTC. The following paragraphs describe the function of each pin.
2 of 22
Page 3
DS1305 BLOCK DIAGRAM Figure 1
DS1305
SIGNAL DESCRIPTIONS
V
- DC power is provided to the device on this pin. V
CC1
V
- This is the secondary power supply pin. In systems using the trickle charger, the rechargeable
CC2
energy source is connected to this pin.
V
- Battery input for any standard 3-volt lithium cell or other energy source.
BAT
V
(Interface Logic Power Supply Input) - The V
CCIF
out-put pins to a level that is compati ble with th e interface lo gic, thus allo wing an eas y interface t o 3-volt logic in mixed supply systems. This pin is physically connected to the source connection of the p-channel
transistors in the output buffers of the SDO and PF pins. SERMODE (Serial Interface Mode Input) - The SERMODE pin offers the flexibility to choose
between two serial interface modes. When connected to GND, standard 3-wire communication is selected. When connected to V
, Motorola SPI communication is selected.
CC
SCLK (Serial Clock Input) - SC LK is used to synchronize data movement on the serial interface for either the SPI or 3-wire interface.
SDI (Serial Data Input) - When SPI communication is selected, the SDI pin is the serial data input for the SPI bus. When 3-wire communication is selected, this pin must be tied to the SDO pin (the SDI and SDO pins function as a single I/O pin when tied together).
is the primary power supply.
CC1
pin allows the DS1305 to drive SDO and PF
CCIF
SDO (Serial Data Output) - When SP I communication is selected, the SDO pin is the serial data output for the SPI bus. When 3-wire communication is selected, this pin must be tied to the SDI pin (the SDI and SDO pins function as a single I/O pin when tied together).
3 of 22
Page 4
DS1305
CE (Chip Enable) - The Chip Enable signal must be asserted high during a read or a write for both 3- wire and SPI communication. This pin has an internal 55K pull-down resistor (typical).
INT0 (Interrupt 0 Output) - The INT0 pin is an active low output of the DS1305 that can be used as an
interrupt input to a processor. The INT0 pin can be programmed to be asserted by only Alarm 0 or can be programmed to be asserted by either Alarm 0 or Alarm 1. The INT0 pin remains low as long as the status bit causing the interrupt is present and the corresponding interrupt enable bit is set. The INT0 pin operates when the DS1305 is powered by V
CC1
CC2
, or V
. The INT0 pin is an open drain output and
BAT
, V
requires an external pull-up resistor.
INT1(Interrupt 1 Output) - The INT1 pin is an active low output of the DS1305 that can be used as an
interrupt input to a processor. The INT1 pin can be programmed to be asserted by Alarm 1 only. The
INT1 pin remains low as long as the status bit causing the interrupt is present and the corresponding
interrupt enable bit is set. The INT1 pin operates when the DS1305 is powered by V
CC1
, V
CC2
, or V
BAT
The INT1 pin is an open drain output and requires an external pull-up resistor.
Both INT0 and INT1 are open drain outputs. The two interrupts and the internal clock continue to run regardless of the level of V
(as long as a power source is present).
CC
.
PF (Power Fail Output) - The PF pin is used to indicate loss of the primary power supply (V
When V
is less than V
CC1
or is less than V
CC2
, the PF pin will be driven low.
BAT
CC1
X1, X2 - Connections for a standard 32.768 kHz quartz cr ystal. The internal oscillator is designed for operation with a crystal having a specified load capacitance of 6 pF. For more information on crystal selection and crystal layout considerations, please consult Application Note 58, “Crystal Considerations with Dallas Real Time Clocks.” The DS1305 can also be driven by an external 32.768 kHz oscillator. In this configuration, the X1 pin is connected to the external oscillator signal and the X2 pin is floated.
).
4 of 22
Page 5
DS1305
RTC AND RAM ADDRESS MAP
The address map for the RTC and RAM registers of the DS1305 is shown in Figure 2. Data is written to the RTC by writing to address locations 80h to 9Fh and is written to the RAM by writing to address locations A0h to FFh. RTC data is read by reading address locations 00h to 1Fh and RAM data is read by reading address locations 20h to 7Fh.
ADDRESS MAP Figure 2
00H
CLOCK/CALENDAR
1FH 20H
7FH 80H
9FH
A0H
FFH
READ ADDRESSES ONLY
96-BYTES USER RAM
READ ADDRESSES ONLY
CLOCK/CALENDAR
WRITE ADDRESSES ONLY
96-BYTES USER RAM
WRITE ADDRESSES ONLY
CLOCK, CALENDAR AND ALARM
The time and calendar information is obtained by reading the appropriate register bytes. The real time clock registers are illustrated in Figure 3. The time, calendar and alarm are set or initialized by writing the appropriate register bytes. Note that some bits are set to zero. These bits will always read 0 regardless of how they are written. Also note that registers 12h to 1Fh (read) and r e gisters 92h to 9Fh are reserved. These registers will always read 0 regardless of how they are written. The contents of the time, calendar and alarm registers are in the binary-coded decimal (BCD) format.
Please note that the initial power on state of all registers in not defined. Therefore it is important to enable the oscillator (EOSC = 0) and disable write protect (WP = 0) during initial configuration.
5 of 22
Page 6
RTC REGISTERS Figure 3 RTC Registers DS1305
DS1305
HEX ADDRESS READ WRITE
00H 80H 0 10 SEC SEC 00-59 01H 81H 0 10 MIN MIN 00-59
03H 83H 0 0 0 0 DAY 01-07 04H 84H 0 0 10 DATE DATE 1-31 05H 85H 0 0 10 MONTH MONTH 01-12 06H 86H 10 YEAR YEAR 00-99
07H 87H M 10 SEC ALARM SEC ALARM 00-59 08H 88H M 10 MIN ALARM MIN ALARM 00-59
0AH 8AH M 0 0 0 DAY ALARM 01-07
0BH 8BH M 10 SEC ALARM SEC ALARM 00-59 0CH 8CH M 10 MIN ALARM MIN ALARM 00-59
0EH 8 EH M 0 0 0 DAY ALARM 01-07 0FH 8FH CONTROL REGIST ER 10H 90H STATUS REGISTER 11H 91H TRICKLE CHARGER REGISTER
12-1FH 92-9FH RESERVED
Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 RANGE
10 01-12 + P/A02H 82H 0 12/2
4
P/A
10 01-12 + P/A09H 89H M 12/2
4
P/A
10 01-12 + P/A0DH 8DH M 12/2
4
P/A
10 HR HOURS
00-23
Alarm 0
10 HR HOUR ALARM
00-23
Alarm 1
10 HR HOUR ALARM
00-23
Range For Alarm Registers Does Not Include Mask’m’ Bits.
The DS1305 can be run in either 12-hour or 24-hour mode. Bit 6 of the hours register is defined as the 12- or 24-hour mode select bit. When high, the 12-hour mode is selected. In the 12-hour mode, bit 5 is the AM/PM bit with logic high being PM. In the 24-hour mode, bit 5 is the second 10-hour bit (20-23 hours).
The DS1305 contains two time of day alarms. Time of Day Alarm 0 can be set by writing to re gisters 87h to 8Ah. Time of Day Alarm 1 can be set by writing to registers 8Bh to 8Eh. The alarms can be programmed (by the INTCN bit of the Control Register) to operate in two different modes - each al arm can drive its own separate interrupt output or both alarms can drive a common interrupt output. Bit 7 of each of the time of day alarm registers are mask bits (Table 1). When all of the mask bits are logic 0, a time of day alarm will only occur once per week when the values stored in timekeeping registers 00h to 03h match the values stored in the time of day alarm registers. An alarm will be generated every day when bit 7 of the day alarm register is set to a logic 1. An alarm will be generated every hour when bit 7 of the day and hour alarm registers is set to a logic 1. Similarly, an alarm will be generated every minute when bit 7 of the day, hour and minute alarm registers is set to a logic 1. When bit 7 of the da y, hour, minute and seconds alarm registers is set to a logic 1, alarm will occur every second.
6 of 22
Page 7
DS1305
TIME OF DAY ALARM MASK BITS Table 1
ALARM REGISTER MASK BITS (BIT 7)
SECONDS MINUTES HOURS DAYS
1 1 1 1 Alarm once per second 0 1 1 1 Alarm when seconds match 0 0 1 1 Alarm when minutes and seconds match 0 0 0 1 Alarm hours, minutes and seconds match 0 0 0 0 Alarm day, hours, minutes and seconds match
SPECIAL PURPOSE REGISTERS
The DS1305 has three additional registers (Control Register, Status Register and Trickle Charger Register) that control the real time clock, interrupts and trickle charger.
CONTROL REGISTER (READ 0FH, WRITE 8FH)
BIT7 BIT6 BIT5 BIT4 BIT3 BIT2 BIT1 BIT0
EOSC
EOSC (Enable oscillator) - This bit when set to logic 0 will start the oscillator. When this bit is set to a
WP 0 0 0 INTCN AIE1 AIE0
logic 1, the oscillator is stopped and the DS1305 is placed into a low-power standb y mode with a cu rrent drain of less than 100 nanoamps when power is supplied by V
BAT
or V
. The initial power on state is
CC2
not defined.
WP (Write Protect) - Before any write operation to the clock or RAM, this bit must be logic 0. When high, the write protect bit prevents a write operation to any register, including bits 0, 1, 2 and 7 of the control register. Upon initial power up, the state of the WP bit is undefined. Therefore the WP bit should be cleared before attempting to write to the device.
INTCN (Interrupt Control) - This bit controls the relationship between the two time of day alarms and the interrupt output pins. When the INTCN bit is set to a logic 1, a match between the timekeeping
registers and the Alarm 0 registers will activate the match between the timekeeping registers and the Alarm 1 registers will activate the
INT0 pin (provided that the alarm is enabled) and a
INT1 pin (provided
that the alarm is enabled). When the INTCN bit is set to a logic 0, a match between the timekeeping registers and either Alarm 0 or Alarm 1 will activate the
INT1 has no function when INTCN is set to a logic 0.
INT0 pin (provided that the alarms are enabled).
AIE0 (Alarm Interrupt Enable 0) - When set to a logic 1, this bit permits the Interrupt 0 Request Flag (IRQF0) bit in the status register to assert INT0 . When the AIE0 bit is set to logic 0, the IRQF0 bit does not initiate the
INT0 signal.
AIE1 (Alarm Interrupt Enable 1) - When set to a logic 1, this bit permits the Interrupt 1 Request Flag (IRQF1) bit in the status register to assert INT1 (when INTCN=1) o r to assert INT0 (when INTCN=0).
When the AIE1 bit is set to logic 0, the IRQF1 bit does not initiate an interrupt signal.
7 of 22
Page 8
DS1305
STATUS REGISTER (READ 10H)
BIT7 BIT6 BIT5 BIT4 BIT3 BIT2 BIT1 BIT0
000000IRQF1IRQF0
IRQF0 (Interrupt 0 Request Flag) - A logic 1 in the Interrupt Request Flag bit indicates that the current time has matched the Alarm 0 registers. If the AIE0 bit is also a logic 1, the
INT0 pin will go low.
IRQF0 is cleared when any of the Alarm 0 registers are read or written.
IRQF1 (Interrupt 1 Request Flag) - A logic 1 in the Interrupt Request Flag bit indicates that the current time has matched the Alarm 1 registers. This flag can be used to generate an interrupt on either INT0 or
INT1 depending on the status of the INTCN bit in the Control Register. If the INTCN bit is set to a logic
1 and IRQF1 is at a logic 1 (and AIE1 bit is also a logic 1), the INT1 pin will go low. If the INTCN bit is set to a logic 0 and IRQF1 is at a logic 1 (and AIE1 bit is also a logic 1), the INT0 pin will go low.
IRQF1 is cleared when any of the Alarm 1 registers are read or written.
TRICKLE CHARGE REGISTER (READ 11H, WRITE 91H)
This register controls the trickle charge characteristics of the DS1305. The simplified schematic of Figure 4 shows the basic components of the trickle charger. The trickle ch arge select (TCS) bits (bits 4-7) control the selection of the trickle charger. In order to prevent accidental enabling, only a pattern of 1010 will enable the trickle charger. All other patterns will disable the trickle charger. The DS1305 powers up with the trickle charger disabled. The diode select (DS) bits (bits 2-3) select whether one diode or two diodes are connected between V 10, two diodes are selected. If DS is 00 or 11, the trickle charger is disabled independent of TCS. The RS bits select the resistor that is connected between V select (RS) bits as shown in Table 2.
CC1
and V
CC1
. If DS is 01, one diode is selected. If DS is
CC2
and V
. The resistor is selected by the resister
CC2
PROGRAMMABLE TRICKLE CHARGER Figure 4
8 of 22
Page 9
TRICKLE CHARGER RESISTOR SELECT Table 2
RS BITS RESISITORS TYPICAL VALUE
00 None None
DS1305
01 R1 10 R2 11 R3
2 k 4 k 8 k
If RS is 00, the trickle charger is disabled independent of TCS.
Diode and resistor selection is determined by the user according to the maximum current desired for battery or super cap charging. The maximum charging current can be calculated as illustrated in the following example. Assume that a system power supply of 5 volts is applied to V connected to V between V
CC1
. Also assume that the trickle charger has been enabled with 1 diode and resister R 1
CC2
and V
. The maximum current I MAX would therefore be calculated as follows:
CC2
I
= (5.0V - diode drop)/R1
MAX
and a super cap is
CC1
~ (5.0V - 0.7V)/2 k ~ 2.2 mA
Obviously, as the super cap charges, the voltage drop between V
CC1
and V
will decrease and therefore
CC2
the charge current will decrease.
POWER CONTROL
Power is provided through the V are illustrated in Figure 5. Configuration 1 shows the DS1305 being backed up by a non-rechargeable energy source such as a lithium battery. In this configuration, the system power supply is connected to V
CC1
and V
is grounded. The DS1305 will be write protected if V
CC2
CC1
, V
CC2
and V
pins. Three different power supply configurations
BAT
is less than V
CC1
BAT
.
Configuration 2 illustrates the DS1305 being backed up by a rechargeable energy source. In this case, the
pin is grounded, V
V
BAT
secondary supply (the rechargeable energy source). The DS1305 will operate from the larger of V
. When V
V
CC2
less than V
is greater than V
CC1
CC2
, V
will power the DS1305. The DS1305 does not write protect itself in this
CC2
is connected to the primary power supply and V
CC1
+ 0.2 volt (typical), V
CC2
will power the DS1305. When V
CC1
is connected to the
CC2
CC1
CC1
or
is
configuration.
Configuration 3 shows the DS1305 in battery operate mode where the device is power ed onl y by a single battery. In this case, the V
CC1
and V
pins are grounded and the battery is connected to the V
BAT
CC2
pin.
Only these three configurations are allowed. Unused supply pins must be grounded.
SERIAL INTERFACE
The DS1305 offers the flexibility to choose between two serial interface modes. The DS1305 can communicate with the SPI interface or with a standard 3-wire inter-face. The interface method used is determined by the SERMODE pin. When this pin is connected to V When this pin is connected to ground, standard 3-wire communication is selected.
9 of 22
, SPI communication is selected.
CC
Page 10
DS1305
SERIAL PERIPHERAL INTERFACE (SPI)
The serial peripheral interface (SPI) is a synchronous bus for address and data tr ansfer and is used when interfacing with the SPI bus on specific Motorola microcontrollers such as the 68HC05C4 and the 68HC11A8. The SPI mode of serial communication is selected by tying the SERMODE pin to VCC. Four pins are used for the SPI. The four pins are the SDO (Serial Data Out), SD I (Serial Data In), CE (Chip Enable) and SCLK (Serial Clock). The DS1305 is the slave device in an SPI application, with the microcontroller being the master.
The SDI and SDO pins are the serial data input and output pins for the DS1305, respectively. The CE input is used to initiate and terminate a data transfer. The SCLK pin is used to synchronize data movement between the master (microcontroller) and the slave (DS1305) devices.
The shift clock (SCLK), which is generated by the microcontroller, is active only during address and data transfer to any device on the SPI bus. The inactive clock polarity is programmable in some microcontrollers. The DS1305 offers an important feature in that the level of the inactive clock is determined by sampling SCLK when CE becomes active. Therefore either SCLK polarity can be accommodated. Input data (SDI) is latched on the internal strobe edge and output data (SDO) is shifted out on the shift edge (see Table 3 and Figure 6). There is one clock for each bit transferred. Address and data bits are transferred in groups of eight.
POWER SUPPLY CONFIGURATIONS FOR THE DS1305 Figure 5 Configuration 1: Backup Supply is a Non-Rechargeable Lithium Batter y
10 of 22
Page 11
Configuration 2: Backup Supply is a Rechargeable Battery or Super Capacitor
Configuration 3: Battery Operate Mode
DS1305
FUNCTION TABLE Table 3
MODE CE SCLK SDI SDO
Disable Reset L Input Disabled Input Disabled High Z Write H CPOL=1*
CPOL=0
Read H CPOL=1
CPOL=0
* CPOL is the “Clock Polarity” bit that is set in the control register of the microcontroller.
** SDO remains at High Z until 8 bits of data are ready to be shifted out during a read.
11 of 22
Data Bit Latch High Z
X Next data bit shift**
Page 12
DS1305
NOTE:
CPHA bit polarity (if applicable) may need to be set acco rdingly. SERIAL CLOCK AS A FUNCTION OF MICROCONTROLLER CLOCK POLARITY (CPOL) Figure 6
CE
CPOL = 1
SCLK
CE
CPOL = 0
SCLK
INTERNAL STROBESHIFT
INTERNAL STROBESHIFT
NOTE:
CPOL is a bit that is set in the microcontroller’s Control Register.
ADDRESS AND DATA BYTES
Address and data bytes are shifted MSB first into the serial data input (SDI) and out of the serial data output (SDO). Any transfer requires the address of the byte to specify a write o r read to either a RTC or RAM location, followed by one or more bytes of data. Data is transferred out of the SDO for a read operation and into the SDI for a write operation (see Figure 7 and 8).
SPI SINGLE-BYTE WRITE Figure 7
12 of 22
Page 13
DS1305
SPI SINGLE-BYTE READ Figure 8
*SCLK can be either polarity.
The address byte is always the first byte entered after CE is driven high. The most significant bit (A7) of this byte determines if a read or write will take place. If A7 is 0, one or more read cycles will occur. If A7 is 1, one or more write cycles will occur.
Data transfers can occur 1 byte at a time or in multiple-byte burst mode. After CE is driven high an address is written to the DS1305. After the address, one or more data bytes can be written or re ad. For a single-byte transfer 1 byte is read or written and then CE is driven low. For a multiple-byte transfer, however, multiple bytes can be read or written to the DS1305 after the addr ess has been written. Each read or write cycle causes the RTC re gister or RAM address to automatically increment. Incrementing continues until the device is disabled. When the RTC is selected, the address wraps to 00h after incrementing to 1Fh (during a read) and wraps to 80h after incrementing to 9Fh (during a write). When the RAM is selected, the address wraps to 20h after incrementing to 7Fh (during a read) and wraps to A0h after incrementing to FFh (during a write).
SPI MULTIPLE-BYTE BURST TRANSFER Figure 9
13 of 22
Page 14
DS1305
3-WIRE INTERFACE
The 3-wire interface mode operates similarly to the SPI mode. However, in 3-wire mode there is one I/O instead of separate data in and data out signals. The 3-wire interface consists of the I/O (SD I and SDO pins tied together), CE and SCLK pins. In 3-wire mode, each byte is shifted in LSB first unlike SPI mode where each byte is shifted in MSB first.
As is the case with the SPI mode, an address byte is written to the device followed by a single data byte or multiple data bytes. Figure 10 illustrates a read and write cycle. In 3-wire mode, data is input on the rising edge of SCLK and output on the falling edge of SCLK.
3-WIRE SINGLE-BYTE TRANSFER Figure 10 Single Byte Read
RST
SCLK
I/O
Single Byte Write
RST
SCLK
I/O
In burst mode, RST is kept high and additional SCLK cycles are sent until the end of the burst.
* I/O is SDI and SDO tied together
14 of 22
Page 15
DS1305
ABSOLUTE MAXIMUM RATINGS*
Voltage on Any Pin Relative to Ground -0.5V to +7.0V Operating Temperature 0°C to 70°C or -40°C to +85°C Storage Temperature -55°C to +125°C Soldering Temperature 260°C for 10 seconds (DIP)
See IPC/JEDEC Standard J-STD-020A for Surface Mount Devices
* This is a stress rating only and functional operation of the device at these or an y other conditions above
those indicated in the operation sections of this specification is not implied. Exposure to absolute maximum rating conditions for extended periods of time may affect reliability.
RECOMMENDED DC OPERATING CONDITIONS
(0°C to 70°C or –40°C to +85°C)
PARAMETER SYMBOL MIN TYP MAX UNITS NOTES
Supply Voltage V V
CC2
CC1
,
V
V
CC2
Logic 1 Input V
V
Battery Voltage V
BAT
V
Supply Voltage V
CCIF
CC1
IH IL
BAT
CCIF
,
2.0 5.5 V 1,9
2.0 VCC+0.3 V 1
VCC=2.0V -0.3 +0.3Logic 0 Input V
VCC=5V -0.3 +0.8
2.0 5.5 V 1
2.0 5.5 V 14
V1
15 of 22
Page 16
DC ELECTRICAL CHARACTERISTICS
DS1305
(0°C to 70°C or –40°C to +85°C; V
PARAMETER
Input Leakage I Output Leakage I
Active Supply Current I
CC1
Timekeeping Current I
CC1
Standby Current I
CC1
Active Supply Current I
CC2
Timekeeping Current I
CC2
Standby Current I
CC2
Battery Timekeeping Current I Battery Standby Current I Trickle Charge Resistors R1
Trickle Charge Diode Voltage Drop
*Unless otherwise noted.
SYMBOL MIN TYP MAX UNITS NOTES
LI
LO
OL
OH
CC1A
CC1T
CC1S
CC2A
CC2T
CC2S
BATT
BATS
R2 R3
V
TD
VCC=2.0V 0.4Logic 0 Output V
VCC=5V 0.4
V
=2.0V 1.6Logic 1 Output V
CCIF
V
=5V 2.4
CCIF
V
=2.0V 0.425V
CC1
V
=5V 1.28
CC1
V
=2.0V 25.3V
CC1
V
=5V 81
CC1
V
=2.0V 25V
CC1
V
=5V 80
CC1
V
=2.0V 0.4V
CC2
V
=5V 1.2
CC2
V
=2.0V 0.3V
CC2
V
=5V 1
CC2
V
=2.0V 200V
CC2
V
=5V 200
CC2
V
=3V 400 nA 12
BAT
V
=3V 200 nA 12
BAT
-100 +500 µA
-1 1 µA
2 4
8
0.7 V
= 2.0 to 5.5V*)
CC
V2
V13
mA 4,10
µA 3,10
µA 8,10
mA 4,11
µA 3,11
nA 8,11
k k
k
CAPACITANCE (tA = 25°C)
PARAMETER SYMBOL CONDITION TYP MAX UNITS NOTES
Input Capacitance C Output Capacitance C Crystal Capacitance C
I O X
16 of 22
10 pF 15 pF
6pF
Page 17
3-WIRE AC ELE CTRICAL C HARACTERISTIC S
DS1305
(0°C to 70°C or –40°C to +85°C; V
= 2.0 to 5.5V*)
CC
PARAMETER SYMBOL MIN TYP MAX UNITS NOTES
DC
VCC=2.0V 200Data to CLK Setup t
ns 5,6
VCC=5V 50
CDH
VCC=2.0V 280CLK to Data Hold t
ns 5,6
VCC=5V 70
CDD
VCC=2.0V 800CLK to Data Delay t
ns 5,6,7
VCC=5V 200
CL
VCC=2.0V 1000CLK Low Time t
ns 6
VCC=5V 250
CH
VCC=2.0V 1000CLK High Time t
ns 6
VCC=5V 250
CLK
VCC=2.0V 0.6CLK Frequency t
MHz 6
VCC=5V DC 2.0
R, tF
VCC=2.0V 2000CLK Rise and Fall t
ns
VCC=5V 500
CC
VCC=2.0V 4CE to CLK Setup t
µs6
VCC=5V 1
CCH
VCC=2.0V 240CLK to CE Hold t
ns 6
VCC=5V 60
CWH
VCC=2.0V 4CE Inactive Time t
µs6
VCC=5V 1
CDZ
VCC=2.0V 280CE to Output High Z t
ns 5,6
VCC=5V 70
CCZ
VCC=2.0V 280SCLK to Output High Z t
ns 5,6
VCC=5V 70
*Unless otherwise noted.
TIMING DIAGRAM: 3-WIRE READ DATA TRANSFER Figure 12
17 of 22
Page 18
TIMING DIAGRAM: 3-WIRE WRITE DATA TRANSFER Figure 13
SPI AC ELECTRICAL CHARACTERISTICS
DS1305
(0°C to 70°C or -40°C to +85°C; V
= 2.0 to 5.5V*)
CC
PARAMETER SYMBOL MIN TYP MAX UNITS NOTES
DC
VCC=2.0V 200Data to CLK Setup t
ns 5,6
VCC=5V 50
CDH
VCC=2.0V 280CLK to Data Hold t
ns 5,6
VCC=5V 70
CDD
VCC=2.0V 800CLK to Data Delay t
ns 5,6,7
VCC=5V 200
CL
VCC=2.0V 1000CLK Low Time t
ns 6
VCC=5V 250
CH
VCC=2.0V 1000CLK High Time t
ns 6
VCC=5V 250
CLK
VCC=2.0V 0.6CLK Frequency t
MHz 6
VCC=5V DC 2.0
R, tF
VCC=2.0V 2000CLK Rise and Fall t
ns
VCC=5V 500
CC
VCC=2.0V 4CE to CLK Setup t
µs6
VCC=5V 1
CCH
VCC=2.0V 240CLK to CE Hold t
ns 6
VCC=5V 60
CWH
VCC=2.0V 4CE Inactive Time t
µs6
VCC=5V 1
CDZ
VCC=2.0V 280CE to Output High Z t
ns 5,6
VCC=5V 70
* Unless otherwise noted.
18 of 22
Page 19
TIMING DIAGRAM: SPI READ DATA TRANSFER Figure 14
TIMING DIAGRAM: SPI WRITE DATA TRANSFER Figure 15
DS1305
19 of 22
Page 20
NOTES
1. All voltages are referenced to ground.
2. Logic 0 voltages are specified at a sink current of 4 mA at V
=GND for capacitive loads.
=5V and 1.5 mA at VCC =2.0V, V
CC
DS1305
OL
3. I
4. I
5. Measured at V
and I
CC1T
and I
CC1A
(0-5V) at V
are specified with CE set to a logic 0 and EOSC bit=0 (oscillator enabled).
CC2T
are specified with CE=V
CC2A
=2.0V and EOSC bit=0 (oscillator enabled).
CC
=2.0V or VIL =0.8V and 10 ms maximum rise and fall time.
IH
, SCLK=2 MHz (0-VCC) at V
CC
6. Measured with 50 pF load.
7. Measured at V
8. I
CC1S
and I
CC2S
=2.4V or VOL =0.4V.
OH
are specified with CE set to a logic 0. The EOSC bit must be set to logic 1 (oscillator
disabled).
9. V
10. V
11. V
12. V
=V
CC
CC1
=0V.
CC2
=0V.
CC1 CC1<VBAT.
, when V
CC1
>V
+0.2V (typical); VCC =V
CC2
, when V
CC2
13. Logic one volta ges are specified at a source current of 1 mA at V
=VCC.
14. V
must be less than or equal to the largest of V
CCIF
CC1
, V
CC2
and V
=5V; SCLK=500 kHz
CC
>V
CC2
=5V and 0.4 mA at 2.0V, V
CC
.
BAT
CC1
.
OH
20 of 22
Page 21
DS1305 16-PIN DIP (300-MIL)
DS1305
PKG 16-PIN
DIM MIN MAX A IN
MM
B IN
MM
C IN
MM
D IN
MM
E IN
MM
F IN
MM
G IN
MM
H IN
MM J IN MM
K IN
MM
0.740
18.80
0.240
6.10
0.120
3.05
0.300
7.62
0.015
0.38
0.120
3.05
0.090
2.29
0.320
8.13
0.008
0.20
0.015
0.38
0.780
19.81
0.260
6.60
0.140
3.56
0.325
8.26
0.040
1.02
0.140
3.56
0.110
2.79
0.370
9.40
0.012
0.30
0.021
0.53
21 of 22
Page 22
DS1305 20-PIN TSSOP
DS1305
DIM MIN MAX
A MM
A1
MM
A2
MM C MM L MM
e1 MM
B MM D MM E MM G MM H MM
phi
- 1.10
0.05 -
0.75 1.05
0.09 0.18
0.50 0.70
0.65 BSC
0.18 0.30
6.40 6.90
4.40 NOM
0.25 REF
6.25 6.55 0°
22 of 22
Loading...