DS2406 Maxim, DS2406 Datasheet - Page 15

no-image

DS2406

Manufacturer Part Number
DS2406
Description
The DS2406 Dual Addressable Switch Plus Memory offers a simple way to remotely control a pair of open drain transistors and to monitor the logic level at each transistor's output via the 1-Wire® bus for closed loop control
Manufacturer
Maxim
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
DS2406
Manufacturer:
DALLAS
Quantity:
20
Part Number:
DS2406
Manufacturer:
DALLAS
Quantity:
5 510
Part Number:
DS2406
Manufacturer:
Dallas
Quantity:
213
Part Number:
DS2406
Manufacturer:
DALLAS
Quantity:
20 000
Part Number:
DS2406+
Manufacturer:
Maxim
Quantity:
164
Part Number:
DS2406P
Manufacturer:
MAXIM/美信
Quantity:
20 000
Part Number:
DS2406P+
Manufacturer:
NXP
Quantity:
3 978
Part Number:
DS2406P+
Manufacturer:
MAXIM/美信
Quantity:
20 000
The TOG bit of Channel Control Byte 1 specifies if one is always reading or writing (TOG = 0) or if one
is going to change from reading to writing or vice versa after every data byte that has been sent to or
received from the DS2406 (TOG = 1). When accessing one channel, one byte is equivalent to eight reads
from or writes to the selected PIO pin. When accessing two channels, one byte is equivalent to four reads
or writes from/to each channel.
The initial mode (reading or writing) for accessing the PIO channels is specified in the IM bit. For read-
ing, IM has to be set to 1, for writing IM needs to be 0. If the TOG bit is set to 0, the device will always
read or write as specified by the IM bit. If TOG is 1, the device will use the setting of IM for the first byte
to be transmitted and will alternate between reading and writing after every byte. Table 1 illustrates the
effect of TOG and IM for one-channel as well as for two-channel operation.
THE EFFECT OF TOGGLE MODE AND INITIAL MODE Table 1
The ALR bit of Channel Control Byte 1 controls whether the activity latch of each channel gets reset.
Both activity latches are cleared simultaneously if the ALR bit is 1. They are not changed if the ALR bit
is 0. An activity latch is set with a negative or positive edge that occurs at its associated PIO channel.
Channel Control Byte 1 also controls the internal CRC generator to safeguard data transmission between
the bus master and the DS2406 for channel access. It does not affect reading from or writing to the
memory sections of the DS2406. The CRC control bits (bit 0 and bit 1) can be set to create and protect
data packets that have the size of 8 bytes or 32 bytes. If desired, the device can safeguard even single
bytes by a 16-bit CRC. This setting, however, limits the average PIO sampling rate to about one third of
its maximum possible value. The codes for the CRC control are shown in the table below.
The CRC provides a high level of safeguarding data. A detailed description of CRCs is found in
Application Note 27. If the CRC is disabled, the CRC-related sections in the flow chart are skipped.
TOG
0
0
1
1
0
0
1
1
IM
0
1
0
1
0
1
0
1
CRC1
0
0
1
1
CHANNELS
two channels
two channels
two channels
two channels
one channel
one channel
one channel
one channel
CRC0
0
1
0
1
Write all bits to the selected channel
Read all bits from the selected channel
Write 8 bits, read 8 bits, write, read, etc. to/from
the selected channel
Read 8 bits, write 8 bits, read, write, etc. from/to
the selected channel
Repeat: four times (write A, write B)
Repeat: four times (read A, read B)
Four times: (write A, write B), four times: (read
A, read B), write, read, etc.
Four times: (read A, read B), four times: (write A,
write B), read, write, etc.
Description
CRC disabled (no CRC at all)
CRC after every byte
CRC after 8 bytes
CRC after 32 bytes
15 of 32
EFFECT

Related parts for DS2406