DS2413 Datasheet
DS2413 Datasheet
DS2413
1-Wire Dual Channel
Addressable Switch
PIOB
R2 ORDERING INFORMATION
µC Local PART TEMP RANGE PIN-PACKAGE
GND Switch Power
DS2413P+ 0°C to +70°C TSOC
DS2413P+T&R 0°C to +70°C TSOC
DS2413Q+T&R 0°C to +70°C TDFN
PIN CONFIGURATION + Denotes a lead(Pb)-free package/RoHS-compliant
package.
T&R = Tape and reel.
TSOC TDFN
Commands, Registers, and Modes are capitalized for
1 6 1 6 clarity.
ymrrF
2413
ywwrr
2413
2 5 2 5
1-Wire is a registered trademark of Maxim Integrated Products, Inc.
DS
3 4
3 4
Exposed Paddle
Top View with Marking. TDFN Contacts
Not Visible in this View.
Note: Some revisions of this device may incorporate deviations from published specifications known as errata. Multiple revisions of any device
may be simultaneously available through various sales channels. For information about device errata, click here: www.maxim-ic.com/errata.
1 of 18
DS2413: 1-Wire Dual Channel Addressable Switch
Stresses beyond those listed under “Absolute Maximum Ratings” may cause permanent damage to the device. These are stress ratings only,
and functional operation of the device at these or any other conditions beyond those indicated in the operational sections of the specifications is
not implied. Exposure to the absolute maximum rating conditions for extended periods may affect device reliability.
ELECTRICAL CHARACTERISTICS TA = 0°C to +70°C
PARAMETER SYMBOL CONDITIONS MIN TYP MAX UNITS
IO PIN GENERAL DATA
Standard speed 2.8 5.25
1-Wire Pullup Voltage
(Note 1)
VPUP Overdrive speed 2.9 5.25 V
DC only; no 1-Wire communication 28
1-Wire Pullup Resistance RPUP (Notes 1, 2) 1.5 2.2 kΩ
VPUP ≤ 5.25V 3.5 70
Input Load Current IL VPUP ≤ 3.30V 3.5 15 µA
V(IO) = 28V (Note 3) 400 950
Input Capacitance CIO At 25°C (Notes 4, 5) 800 pF
Input Low Voltage VIL (Notes 1, 6) 0.4 V
High-to-Low Switching
VTL (Notes 5, 7, 8) 0.4 3.2 V
Threshold
Low-to-High Switching
VTH (Notes 5, 7, 9) 0.7 3.6 V
Threshold
Switching Hysteresis VHY
(Notes 5, 10) 0.2 V
Output Low Voltage VOL
At 4mA Current Load (Note 11) 0.4 V
Standard speed, RPUP = 2.2kΩ 5
Recovery Time Overdrive speed, RPUP = 2.2kΩ 2
tREC µs
(Notes 1, 12) Overdrive speed, directly prior to reset
5
pulse; RPUP = 2.2kΩ
Rising-Edge Hold-off Time Standard speed 0.5 5.0
tREH µs
(Notes 5, 13) Overdrive speed Not applicable (0)
Standard speed, VPUP ≥ 4.5V 65
Standard speed (Note 14) 67
Time slot Duration
(Note 1, 5)
tSLOT Overdrive speed, VPUP ≥ 4.5V µs
9
(Note 14)
Overdrive speed (Note 14) 10
IO PIN, 1-Wire RESET, PRESENCE DETECT CYCLE
Standard speed, VPUP ≥ 4.5V 480 960
Standard speed (Note 14) 600 960
Reset Low Time (Note 1) tRSTL µs
Overdrive speed, VPUP ≥ 4.5V 48 80
Overdrive speed (Note 14) 63 80
Standard speed, VPUP ≥ 4.5V 15 66
Presence Detect High Standard speed 15 68
tPDH µs
Time (Notes 14, 15) Overdrive speed, VPUP ≥ 4.5V 2 7.0
Overdrive speed 2 8.2
Standard speed, VPUP > 4.5V 0.24 1.4
Presence Detect Fall Time Standard speed 0.24 1.6
tFPD µs
(Notes 5, 16) Overdrive speed, VPUP ≥ 4.5V 0 0.7
Overdrive speed 0 0.9
Standard speed, VPUP > 4.5V 60 240
Standard speed (Note 14) 60 260
Presence Detect Low
tPDL Overdrive speed, VPUP ≥ 4.5V µs
Time (Note 15) 8 25
(Note 14)
Overdrive speed (Note 14) 8 32
2 of 18
DS2413: 1-Wire Dual Channel Addressable Switch
3 of 18
DS2413: 1-Wire Dual Channel Addressable Switch
PIN DESCRIPTION
NAME TSOC PIN # TDFN PIN # FUNCTION
IO 2 2 1-Wire bus interface. Open-drain, requires external pullup resistor.
PIOA 6 4 Programmable I/O pin, open-drain with weak pulldown, power-on
default is off (PIOA = 1).
PIOB 4 6 Programmable I/O pin, open-drain with weak pulldown, power-on
default is off (PIOB = 1).
GND1 1 3 Ground reference 1
GND2 5 5 Ground reference 2; both GND pins must be connected in the
application.
NC 3 1 Not connected
Exposed Paddle (TDFN only). Solder evenly to the board’s ground
GND — EP plane for proper operation. See Application Note 3273 for additional
information.
DESCRIPTION
The DS2413 combines two PIO pins and a fully featured 1-Wire interface in a single chip. PIO outputs are open-
drain, operate at up to 28V and provide an on resistance of 20Ω max. A robust communication protocol ensures
that PIO output changes occur error-free. Each DS2413 has a Registration Number that is 64 bits long. The
Registration Number guarantees unique identification and is used to address the device in a multidrop 1-Wire
network environment, where multiple devices reside on a common 1-Wire bus and operate independently of each
other. Device power is supplied parasitically from the 1-Wire bus. The DS2413’s applications of include accessory
identification and control, system monitoring, and general-purpose input/output.
OVERVIEW
The block diagram in Figure 1 shows the relationships between the major sections of the DS2413. The DS2413
has two main components: 64-bit Registration Number, and PIO Control. The hierarchical structure of the 1-Wire
protocol is shown in Figure 2. The bus master must first provide one of the seven ROM Function Commands, 1)
Read ROM, 2) Match ROM, 3) Search ROM, 4) Skip ROM, 5) Resume, 6) Overdrive-Skip ROM or 7) Overdrive-
Match ROM. Upon completion of an Overdrive ROM command byte executed at standard speed, the device enters
Overdrive mode where all subsequent communication occurs at a higher speed. The protocol required for these
ROM function commands is described in Figure 10. After a ROM function command is successfully executed, the
PIO functions become accessible and the master may provide one of the two PIO Function commands. The
protocol for these commands is described in Figure 6. All data is read and written least significant bit first.
PIOA
IO
1-Wire PIO
Interface Control
64-Bit Registration
Number
4 of 18
DS2413: 1-Wire Dual Channel Addressable Switch
DS2413
8-Bit CRC Code 48-Bit Serial Number 8-Bit Family Code (3Ah)
st nd rd th th th th th
1 2 3 4 5 6 7 8
STAGE STAGE STAGE STAGE STAGE STAGE STAGE STAGE
0 1 2 3 4 5 6 7 8
X X X X X X X X X
INPUT DATA
5 of 18
DS2413: 1-Wire Dual Channel Addressable Switch
PIO STUCTURE
Each PIO consists of an open-drain pulldown transistor with 28V capability. The transistor is controlled by the PIO
Output Latch, as shown in Figure 5. The PIO Control unit connects the PIOs to the 1-Wire interface.
The state of both PIO channels is sampled at the same time. The first sampling occurs during the last (most
significant) bit of the command code F5h. The PIO status is then reported to the bus master. While the master
receives the last (most significant) bit of the PIO status byte, the next sampling occurs and so on until the master
generates a 1-Wire Reset. The sampling occurs with a delay of tREH+x from the rising edge of the MS bit of the
previous byte, as shown in Figure 7. The value of "x" is approximately 0.2µs.
IO
tREH+x
Sampling Point
Notes:
1 The "previous byte" could be the command code or the data byte resulting from the previous PIO sample.
2 The sample point timing also applies to the PIO Access Write command, with the "previous byte" being the
write confirmation byte (AAh).
6 of 18
DS2413: 1-Wire Dual Channel Addressable Switch
7 of 18
DS2413: 1-Wire Dual Channel Addressable Switch
After the command code the master transmits a PIO Output Data byte that determines the new state of the PIO
output transistors. The first (least significant) bit is associated to PIOA; the next bit affects PIOB. The other 6 bits of
the new state byte do not have corresponding PIO pins. These bits should always be transmitted as "1"s. To switch
the output transistor on, the corresponding bit value is 0. To switch the output transistor off (non-conducting) the bit
must be 1. This way the bit transmitted as the new PIO output state arrives in its true form at the PIO pin. To
protect the transmission against data errors, the master must repeat the PIO Output Data byte in its inverted form.
Only if the transmission was error-free will the PIO status change. The actual PIO transition to the new state occurs
with a delay of tREH+x from the rising edge of the MS bit of the inverted PIO byte, as shown in Figure 8. The value
of "x" is approximately 0.2µs. To inform the master about the successful communication of the PIO byte, the
DS2413 transmits a confirmation byte with the data pattern AAh. While the MS bit of the confirmation byte is
transmitted, the DS2413 samples the state of the PIO pins, as shown in Figure 7, and sends it to the master. The
master can either continue writing more data to the PIO or issue a 1-Wire Reset to end the command.
VTH
IO
tREH+x
PIO
HARDWARE CONFIGURATION
The 1-Wire bus has only a single line by definition; it is important that each device on the bus be able to drive it at
the appropriate time. To facilitate this, each device attached to the 1-Wire bus must have open-drain or tri-state
outputs. The 1-Wire port of the DS2413 is open drain with an internal circuit equivalent to that shown in Figure 9.
A multidrop bus consists of a 1-Wire bus with multiple slaves attached. The DS2413 supports both a Standard and
Overdrive communication speed of 14.9kbps (max) and 100kbps (max), respectively. Note that legacy 1-Wire
products support a standard communication speed of 16.3kbps and Overdrive of 142kbps. The value of the pullup
resistor primarily depends on the network size and load conditions. The DS2413 requires a pullup resistor of 2.2kΩ
(max) at any speed.
8 of 18
DS2413: 1-Wire Dual Channel Addressable Switch
The idle state for the 1-Wire bus is high. If for any reason a transaction needs to be suspended, the bus MUST be
left in the idle state if the transaction is to resume. If this does not occur and the bus is left low for more than 16µs
(Overdrive speed) or more than 120µs (standard speed), one or more devices on the bus may be reset.
RX DATA RX
IL TX
TX RX = RECEIVE
100 Ω
Open Drain TX = TRANSMIT
MOSFET
Port Pin
TRANSACTION SEQUENCE
The protocol for accessing the DS2413 through the 1-Wire port is as follows:
Initialization
ROM Function Command
PIO Function Command
Data
INITIALIZATION
All transactions on the 1-Wire bus begin with an initialization sequence. The initialization sequence consists of a
reset pulse transmitted by the bus master followed by presence pulse(s) transmitted by the slave(s). The presence
pulse lets the bus master know that the DS2413 is on the bus and is ready to operate. For more details, see the 1-
Wire Signaling section.
9 of 18
DS2413: 1-Wire Dual Channel Addressable Switch
RESUME [A5h]
To maximize the data throughput in a multidrop environment, the Resume function is available. This function
checks the status of the RC bit and, if it is set, directly transfers control to the PIO functions, similar to a Skip ROM
command. The only way to set the RC bit is through successfully executing the Match ROM, Search ROM, or
Overdrive Match ROM command. Once the RC bit is set, the device can repeatedly be accessed through the
Resume Command function. Accessing another device on the bus clears the RC bit, preventing two or more
devices from simultaneously responding to the Resume Command function.
When issued on a multidrop bus, this command sets all Overdrive-supporting devices into Overdrive mode. To
subsequently address a specific Overdrive-supporting device, a reset pulse at Overdrive speed has to be issued
followed by a Match ROM or Search ROM command sequence. This speeds up the time for the search process. If
more than one slave supporting Overdrive is present on the bus and the Overdrive Skip ROM command is followed
by a Read command, data collision occurs on the bus as multiple slaves transmit simultaneously (open-drain
pulldowns produce a wired-AND result).
10 of 18
DS2413: 1-Wire Dual Channel Addressable Switch
To Figure 10
nd
33h N 55h N F0h N CCh 2 Part
Read ROM Match ROM Search ROM Skip ROM
Command ? Command ? Command ? Command ? N
Y Y Y Y
RC = 0 RC = 0 RC = 0 RC = 0
Bit 0 N N Bit 0
Match ? Match ?
Y Y
DS2413 TX DS2413 TX Bit 1
Serial Number Master TX Bit 1 DS2413 TX Bit 1
(6 Bytes)
Master TX Bit 1
Bit 1 N N Bit 1
Match ? Match ?
Y Y
DS2413 TX Bit 63
DS2413 TX
Master TX Bit 63 DS2413 TX Bit 63
CRC Byte
Master TX Bit 63
Bit 63 N N Bit 63
Match ? Match ?
Y Y
RC = 1 RC = 1 To Figure 10
nd
2 Part
From Figure 10
nd
2 Part
To PIO Functions Flow
Chart (Figure 6)
11 of 18
DS2413: 1-Wire Dual Channel Addressable Switch
st
To Figure 10, 1 Part
From Figure 10
st
1 Part A5h N 3Ch N 69h N
Resume Overdrive Overdrive Match
Command ? Skip ROM ? ROM ?
Y Y Y
RC = 0 ; OD = 1 RC = 0 ; OD = 1
N
RC = 1 ? Master TX Bit 0
Y
Master Y Bit 0 N
TX Reset ? Match ?
N Y
Master TX Bit 1
Master Y Bit 1 N
TX Reset ? Match ?
N Y
Master TX Bit 63
Bit 63 N
Match ?
Y
From Figure 10 RC = 1
st
1 Part
To Figure 10
st
1 Part
12 of 18
DS2413: 1-Wire Dual Channel Addressable Switch
1-Wire SIGNALING
The DS2413 requires strict protocols to ensure data integrity. The protocol consists of four types of signaling on
one line: Reset Sequence with Reset Pulse and Presence Pulse, Write-Zero, Write-One, and Read-Data. Except
for the Presence pulse, the bus master initiates all falling edges. The DS2413 can communicate at two different
speeds, standard speed, and Overdrive Speed. If not explicitly set into the Overdrive mode, the DS2413
communicates at standard speed. While in Overdrive Mode the fast timing applies to all waveforms.
To get from idle to active, the voltage on the 1-Wire line needs to fall from VPUP below the threshold VTL. To get
from active to idle, the voltage needs to rise from VILMAX past the threshold VTH. The time it takes for the voltage to
make this rise is seen in Figure 11 as 'ε' and its duration depends on the pullup resistor (RPUP) used and the
capacitance of the 1-Wire network attached. The voltage VILMAX is relevant for the DS2413 when determining a
logical level, not triggering any events.
Figure 11 shows the initialization sequence required to begin any communication with the DS2413. A Reset Pulse
followed by a Presence Pulse indicates the DS2413 is ready to receive data, given the correct ROM and PIO
Function command. If the bus master uses slew-rate control on the falling edge, it must pull down the line for tRSTL
+ tF to compensate for the edge. A tRSTL duration of 480µs or longer exits the Overdrive Mode, returning the device
to standard speed. If the DS2413 is in Overdrive Mode and tRSTL is no longer than 80µs, the device remains in
Overdrive Mode. If the device is in Overdrive Mode and tRSTL is between 80µs and 480µs, the device will reset, but
the communication speed is undetermined.
After the bus master has released the line it goes into receive mode. Now the 1-Wire bus is pulled to VPUP through
the pullup resistor, or in case of a DS2482-x00 or DS2480B driver, by active circuitry. When the threshold VTH is
crossed, the DS2413 waits for tPDH and then transmits a Presence Pulse by pulling the line low for tPDL. To detect a
presence pulse, the master must test the logical state of the 1-Wire line at tMSP.
The tRSTH window must be at least the sum of tPDHMAX, tPDLMAX, and tRECMIN. Immediately after tRSTH is expired, the
DS2413 is ready for data communication. In a mixed population network, tRSTH should be extended to minimum
480µs at standard speed and 48µs at Overdrive speed to accommodate other 1-Wire devices.
13 of 18
DS2413: 1-Wire Dual Channel Addressable Switch
All communication begins with the master pulling the data line low. As the voltage on the 1-Wire line falls below the
threshold VTL, the DS2413 starts its internal timing generator that determines when the data line is sampled during
a write-time slot and how long data is valid during a read-time slot.
RESISTOR MASTER
RESISTOR MASTER
14 of 18
DS2413: 1-Wire Dual Channel Addressable Switch
Master-to-Slave
For a write-one time slot, the voltage on the data line must have crossed the VTH threshold before the write-one
low time tW1LMAX is expired. For a write-zero time slot, the voltage on the data line must stay below the VTH
threshold until the write-zero low time tW0LMIN is expired. For the most reliable communication, the voltage on the
data line should not exceed VILMAX during the entire tW0L or tW1L window. After the VTH threshold has been crossed,
the DS2413 needs a recovery time tREC before it is ready for the next time slot.
Slave-to-Master
A read-data time slot begins like a write-one time slot. The voltage on the data line must remain below VTL until the
read low time tRL is expired. During the tRL window, when responding with a 0, the DS2413 starts pulling the data
line low; its internal timing generator determines when this pulldown ends and the voltage starts rising again. When
responding with a 1, the DS2413 does not hold the data line low at all, and the voltage starts rising as soon as tRL is
over.
The sum of tRL + δ (rise time) on one side and the internal timing generator of the DS2413 on the other side define
the master sampling window (tMSRMIN to tMSRMAX) in which the master must perform a read from the data line. For the
most reliable communication, tRL should be as short as permissible, and the master should read close to but no
later than tMSRMAX. After reading from the data line, the master must wait until tSLOT is expired. This guarantees
sufficient recovery time tREC for the DS2413 to get ready for the next time slot. Note that tREC specified herein
applies only to a single DS2413 attached to a 1-Wire line. For multidevice configurations, tREC needs to be
extended to accommodate the additional 1-Wire device input capacitance. Alternatively, an interface that performs
active pullup during the 1-Wire recovery time such as the DS2482-x00 or DS2480B 1-Wire line drivers can be
used.
The 1-Wire front end of the DS2413 differs from traditional slave devices in four characteristics.
1) The falling edge of the presence pulse has a controlled slew rate. This provides a better match to the line
impedance than a digitally switched transistor, converting the high-frequency ringing known from traditional
devices into a smoother low-bandwidth transition. The slew-rate control is specified by the parameter tFPD,
which has different values for standard and Overdrive speed.
2) There is additional low-pass filtering in the circuit that detects the falling edge at the beginning of a time slot.
This reduces the sensitivity to high-frequency noise. This additional filtering does not apply at Overdrive speed.
3) There is a hysteresis at the low-to-high switching threshold VTH. If a negative glitch crosses VTH but does not go
below VTH - VHY, it will not be recognized (Figure 13, Case A). The hysteresis is effective at any 1-Wire speed.
4) There is a time window specified by the rising edge hold-off time tREH during which glitches are ignored, even if
they extend below VTH - VHY threshold (Figure 13, Case B, tGL < tREH). Deep voltage droops or glitches that
appear late after crossing the VTH threshold and extend beyond the tREH window cannot be filtered out and are
taken as the beginning of a new time slot (Figure 13, Case C, tGL ≥ tREH).
Devices that have the parameters tFPD, VHY, and tREH specified in their electrical characteristics use the improved 1-
Wire front end.
15 of 18
DS2413: 1-Wire Dual Channel Addressable Switch
VTH
VHY
Case A Case B Case C
0V
tGL tGL
16 of 18
DS2413: 1-Wire Dual Channel Addressable Switch
Note: Usually, the PIO pin state and PIO Output Latch State are the same. To read from a PIO, the PIO Output
Latch must be 1. If the PIO pin is then pulled low by a switch or external circuitry, the output latch state and pin
state are different.
PACKAGE INFORMATION
For the latest package outline information, go to www.maxim-ic.com/packages. Note that a “+”, “#”, or “-“ in the
package code indicates RoHS status only. Package drawings may show a different suffix character, but the
drawing pertains to the package regardless of RoHS status.
17 of 18
DS2413: 1-Wire Dual Channel Addressable Switch
REVISION HISTORY
REVISION PAGES
DESCRIPTION
DATE CHANGED
• Remove epsilon from the tW1L spec in the EC table.
• Apply EC table note 17 also to tWOL.
• Add to EC table notes 17 and 18 the reference to Figure 12 and the text
"The actual maximum duration...."
11/07 • Show epsilon also in the write zero time slot graphic. 1, 3, 4, 14,
17, 18
• Add note that the VTH and VTL maximum spec values apply at VPUP max (VTH
and VTL are GBD, not tested).
• Added 3mm x 3mm x 0.8mm TDFN package.
• LF update, delete standard versions (with lead) from ordering info.
• Added Package Information Table.
• Added “TDFN Packages Available” within the Features section.
• Added new TDFN part number “DS2413Q+T&R,” and information to the
11/08 Ordering Information table. 1
• Removed the note to “Contact factory for availability of the TDFN package”
from the Ordering Information table.
• Changed soldering temperature from JEDEC reference to explicit values.
• Added DS2482-related application hints to EC table, Note 2.
07/10 2–3, 17
• Removed reference to the DS2490.
• Added land pattern reference.
11/14 • Updated SEARCH ROM [F0h] section 10
3/15 • Updated Benefits and Features section 1
18 of 18
Maxim cannot assume responsibility for use of any circuitry other than circuitry entirely embodied in a Maxim product. No circuit patent licenses are implied. Maxim
reserves the right to change the circuitry and specifications without notice at any time. The parametric values (min and max limits) shown in the Electrical
Characteristics table are guaranteed. Other parametric values quoted in this data sheet are provided for guidance.
Maxim Integrated 160 Rio Robles, San Jose, CA 95134 USA 1-408-601-1000
© 2015 Maxim Integrated Products The Maxim logo and Maxim Integrated are trademarks of Maxim Integrated Products, Inc.