Read Scratchpad [AAh]
The Read Scratchpad command allows verifying the
target address and the integrity of the scratchpad data.
After issuing the command code, the master begins
reading. The first two bytes are the target address. The
next byte is the ending offset/data status byte (E/S) fol-
lowed by the scratchpad data, which may be different
from what the master originally sent. This is of particular
importance if the target address is within the register
page or a page in either Write Protection or EPROM
modes. See the
Write Scratchpad [0Fh]
section for
details. The master should read through the scratchpad
(E2:E0 - T2:T0 + 1 bytes), after which it receives the
inverted CRC, based on data as it was sent by the
DS2431-A1. If the master continues reading after the
CRC, all data are logic 1s.
Copy Scratchpad [55h]
The Copy Scratchpad command is used to copy data
from the scratchpad to writable memory sections. After
issuing the Copy Scratchpad command, the master
must provide a 3-byte authorization pattern, which
should have been obtained by an immediately preced-
ing Read Scratchpad command. This 3-byte pattern
must exactly match the data contained in the three
address registers (TA1, TA2, E/S, in that order). If the
pattern matches, the target address is valid, the PF flag
is not set, and the target memory is not copy protected,
then the AA (authorization accepted) flag is set and the
copy begins. All eight bytes of scratchpad contents are
copied to the target memory location. The duration of
the device’s internal data transfer is tPROG during
which the voltage on the 1-Wire bus must not fall below
2.8V. A pattern of alternating 0s and 1s are transmitted
after the data has been copied until the master issues a
reset pulse. If the PF flag is set or the target memory is
copy protected, the copy does not begin and the AA
flag is not set.
Read Memory [F0h]
The Read Memory command is the general function to
read data from the DS2431-A1. After issuing the com-
mand, the master must provide the 2-byte target
address. After these two bytes, the master reads data
beginning from the target address and may continue
until address 008Fh. If the master continues reading,
the result is logic 1s. The device’s internal TA1, TA2,
E/S, and scratchpad contents are not affected by a
Read Memory command.
1-Wire Bus System
The 1-Wire bus is a system that has a single bus mas-
ter and one or more slaves. In all instances the
DS2431-A1 is a slave device. The bus master is typical-
ly a microcontroller. The discussion of this bus system
is broken down into three topics: hardware configura-
tion, transaction sequence, and 1-Wire signaling (signal
types and timing). The 1-Wire protocol defines bus
transactions in terms of the bus state during specific
time slots, which are initiated on the falling edge of
sync pulses from the bus master.
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
three-state outputs. The 1-Wire port of the DS2431-A1
is open drain with an internal circuit equivalent to that
shown in Figure 8.
A multidrop bus consists of a 1-Wire bus with multiple
slaves attached. The DS2431-A1 communicates at a
maximum data rate of 15.4kbps. Note that legacy
1-Wire products support a standard communication
speed of 16.3kbps. The slightly reduced rates for the
DS2431-A1 are a result of additional recovery times,
which in turn were driven by a 1-Wire physical interface
enhancement to improve noise immunity. The value of
the pullup resistor primarily depends on the network
size and load conditions. The DS2431-A1 requires a
pullup resistor of 2.2kΩ(max).
The idle state for the 1-Wire bus is high. If for any rea-
son 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 120µs, one or more devices on the bus
might be reset.
Transaction Sequence
The protocol for accessing the DS2431-A1 through the
1-Wire port is as follows:
• Initialization
• ROM Function Command
• Memory Function Command
• Transaction/Data
DS2431-A1
1024-Bit, 1-Wire EEPROM
for Automotive Applications
______________________________________________________________________________________ 11