DS2407
15 of 33
9a). If the bus master transmits a 1 (Write One Time Slot), the output transistor of the selected channel
will change its status after time td1, which is 15 µs to 60 µs after the begin of the time slot. If the bus
master transmits a 0 (Write-0 Time Slot), the output transistor will change its status with a delay of td0
after the 1-Wire line has returned to its idle level. The value of td0 ma y var y between 200 and 300 ns (see
Figure 9a). Depending on the load conditions, there may be additional delay until the voltage at the PIO
reaches a new logical level.
If one is communicatin g with both channels, the Interleave Control Bit IC controls when data is sampled
and when data arrives at the PIO pins. There is an as yn chronous mode (IC = 0) and a s ynch ronous mode
(IC = 1). For the asynchronous mode, both channels are accessed in an alternating way. For the
synchronous mode, both channels are accessed simultaneously.
When reading in the asynchronous mode each channel is sampled alternately at the start of each Read
Time Slot, beginning with channel A. The logic level detected at the PIO is immediately transmitted to
the master during the same time slot. When reading in the synchronous mode, both channels will be
sampled at the same time; the data bit from channel A will be sent to the master immediately during the
same time slot while the data bit from channel B follows with the next time slot which does not sample
the PIOs. Both channels will be sampled again with the time slot that follows the transmission of the data
bit from PIO-B (Figure 9b).
When writing in the asynchronous mode, each channel will change its status independently of the other.
The change of status occurs with the same timing relations as for communication with one channel.
However, every second write time slot addresses the same channel. The first time slot is directed to
channel A, the s econd to channel B, the nex t to channel A and so on. As a consequenc e, in asynchronous
mode both PIOs can never change their status at the same time. When writing in the synchronous mode,
both channels operate together. After the new values for both channels have arrived at the DS2407 the
change of status at both channels occurs with the same timing relations as for communication with one
channel. As with the asynchronous mode, every second write time slot contains data for the same
channel. The first time slot addresses channel A, the second ch annel B and so on. Depending on the data
values, in the synchronous mode both PIOs can change their status at the same time ( Figure 9c). In any of
these cases, the information of channel A and channel B will appear alternating on the 1-Wire line,
always starting with channel A. By varying the idle-time between time slots on the 1-Wire line one has
full control over the time points of sampling and the waveforms generated at the PIO-pins when writing
to the device.
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 DS2407 (TOG = 1). When accessing one channel, 1 byte is equivalent to eight reads
from or writes to the selected P IO pin. When accessin g two ch annels, 1 byte is equival ent to four re ads or
writes from/to each channel.
The initial mode (reading or writing) for accessing the PIO channels is specified in the IM bit. For
reading, 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. Figure 7c
illustrates the effect of TOG and IM for one-channel as well as for two-channel operation.
Bit 7 of the Channel Control Byte 1 allows resetting of the activity latch of each channel. The activity
latch is set with the first negative or positive edge detected on its associated PIO channel. Both activity