DS2417
1-WIRE CRC GENERATOR Figure 4
Polynomial = X
8
+ X
5
+ X
4
+ 1
4 of 15
R
X
2
X
1
X
0
X
8
X
7
X
6
X
5
X
4
X
3
8TH
STAGE
7TH
STAGE
6TH
STAGE
S
2ND
STAGE
3RD
STAGE
4TH
STAGE
5TH
STAGE
1ST
STAGE
INPUT DATA
TIMEKEEPING
A 32.768kHz crystal oscillator is used as the time base for the real-time clock counter. The oscillator can
be turned on or off under software control. The oscillator must be on for the real-time clock to function.
The real-time clock counter is double buffered. This allows the master to read time without the data
changing while it is being read. To accomplish this, a snapshot of the counter data is transferred to a
read/write buffer, which the user accesses.
DEVICE CONTROL BYTE
The DS2417 can generate interrupt pulses to trigger activities that have to occur at regular intervals. The
selection of this interval and the on/off control of the 32.768kHz crystal oscillator are done through the
device control byte. This byte can be read and written through the Clock Function commands.
Device Control Byte
7 6 5 4 3 2 1 0
IE IS2 IS1 IS0
OSC
OSC 0 0
Bit 0 - 1
0 No function
Bits 0 and 1 are hard-wired to read all 0’s.
Bit 2 - 3
OSC Oscillator Enable/Disable
These bits control/report whether the 32.768kHz crystal oscillator is running. If the oscillator is running,
both OSC bits will read 1. If the oscillator is turned off these bits will all read 0. When writing the
device control byte both occurrences of the OSC bit should have identical data. Otherwise, the value in
bit address 3 (bold) takes precedence.
DS2417
Bit 4 - 6
IS Interval Select
These bits determine the time between interrupt pulses. The values available are shown below.
IS2 IS1 IS0 Interrupt Interval
0 0 0 1s
0 0 1 4s
0 1 0 32s = 0.53 min.
0 1 1 64s = 1.07 min.
1 0 0 2048s = 34.13 min.
1 0 1 4096s = 68.27 min.
1 1 0 65536s = 18.20 hours
1 1 1 131072s = 36.41 hours
Bit 7
IE Interrupt Enable
This bit controls whether the interrupt pulse will be generated at the selected interval. To enable
interrupts this bit needs to be 1.
REAL-TIME CLOCK
The real-time clock is a 32-bit binary counter. It is incremented once per second. The real-time clock
can accumulate 136 years of seconds before rolling over. Time/date is represented by the number of
seconds since a reference point, which is determined by the user. For example, 12:00 a.m., January 1,
1970 could be a reference point.
CLOCK FUNCTION COMMANDS
The “Clock Function Flow Chart” (Figure 5) describes the protocols necessary for accessing the real-time
clock. With only four bytes of real-time clock and one control byte the DS2417 does not provide random
access. Reading and writing always starts with the device control byte followed by the least significant
byte of the time data.
READ CLOCK [66h]
The read clock command is used to read the device control byte and the contents of the real-time clock
counter. After having received the most significant bit of the command code the device copies the actual
contents of the real-time clock counter to the read/write buffer. Now, the bus master reads data beginning
with the device control byte followed by the least significant byte through the most significant byte of the
real-time clock. After this the bus master may continue reading from the DS2417. The data received will
be the same as in the first pass through the command flow. The read clock command can be ended at any
point by issuing a Reset Pulse.
WRITE CLOCK [99h]
The write clock command is used to set the real-time clock counter and to write the device control byte.
After issuing the command, the bus master writes first the device control byte, which becomes immedi-
ately effective. After this the bus master sends the least significant byte through the most significant byte
to be written to the real-time clock counter. The new time data is copied from the read/write buffer to the
real-time clock counter and becomes effective as the bus master generates a reset pulse. If enabled, an
interrupt pulse will be generated either immediately or delayed, depending on the actual time and the se-
lected interval duration (see Figure 11). If the oscillator is intentionally stopped the real-time clock
counter behaves as a four-byte nonvolatile memory.
5 of 15
DS2417
6 of 15
CLOCK FUNCTION COMMAND FLOW CHART Figure 5
Master TX Control
Function Command
66H
Read Clock
?
Y
N
Bus Master
TX Reset
?
N
Y
N
Bus Master
TX Reset
?
DS2417 copies
RTC Counter
to R/W Buffer
99H
Write Clock
?
N
Y
Y
N
Bus Master
TX Reset
?
Bus Master TX
LS Byte (7:0)
Bus Master TX
next Byte (15:8)
Bus Master TX
next Byte (23:16)
Bus Master TX
MS Byte (31:24)
Bus Master TX
Device Control Byte
DS2417 copies
R/W Buffer
to RTC Counter
DS2417 TX
Presence Pulse
Bus Master RX
next Byte (15:8)
Bus Master RX
next Byte (23:16)
Bus Master RX
MS Byte (31:24)
Bus Master RX
LS Byte (7:0)
Bus Master RX
Device Control Byte
Y

DS2417P

Mfr. #:
Manufacturer:
Description:
IC RTC BINARY CNT SER 6-TSOC
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet