Datasheet
DS2413: 1-Wire Dual Channel Addressable Switch
PIO ACCESS READ EXAMPLE
Read
the state of the PIOs 3 times.
With only a single DS2413 connected to the bus master, the communication looks like this:
MASTER MODE
DATA (LSB FIRST)
COMMENTS
TX
(Reset)
Reset pulse
RX
(Presence)
Presence pulse
TX
CCh
Issue “Skip ROM” command
TX
F5h
Issue “PIO Access Read” command
RX
<3 data bytes>
Read 3 PIO samples
TX
(Reset)
Reset pulse
RX
(Presence)
Presence pulse
PIO ACCESS WRITE EXAMPLE
Set
both PIOs to 0 and then set PIOA to 1. Both PIOs are pulled high to V
CC
or V
PUP
by a resistor.
With only a single DS2413 connected to the bus master, the communication looks like this:
MASTER MODE
DATA (LSB FIRST)
COMMENTS
TX
(Reset)
Reset pulse
RX
(Presence)
Presence pulse
TX
CCh
Issue “Skip ROM” command
TX
5Ah
Issue “PIO Access Write” command
TX
FCh
Write new PIO output state
TX
03h
Write inverted new PIO output state
RX
AAh
Read confirmation byte
RX
F0h
Read new PIO pin status
TX
FDh
Write new PIO output state
TX
02h
Write inverted new PIO output state
RX
AAh
Read confirmation byte
RX
C3h
Read new PIO pin status
TX
(Reset)
Reset pulse
RX
(Presence)
Presence pulse
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.
PACKAGE TYPE
PACKAGE CODE
DOCUMENT NO.
LAND PATTERN
6 TSOC
D6+1
21-0382 90-0321
6 TDFN
T633+2
21-0137 90-0058
17 of 18










