DS2760
16
All transactions of the 1-Wire bus begin with an initialization sequence consisting of a Reset Pulse
transmitted by the bus master followed by a presence pulse simultaneously transmitted by the DS2760
and any other slaves on the bus. The presence pulse tells the bus master that one or more devices are on
the bus and ready to operate. For more details, see the
1-Wire Signaling section.
NET ADDRESS COMMANDS
Once the bus master has detected the presence of one or more slaves, it can issue one of the Net Address
Commands described in the following paragraphs. The name of each ROM Command is followed by the
8-bit opcode for that command in square brackets. Figure 16 presents a transaction flowchart of the Net
Address Commands.
Read Net Address [33h or 39h]. This command allows the bus master to read the DS2760’s 1-Wire net
address. This command can only be used if there is a single slave on the bus. If more than one slave is
present, a data collision occurs when all slaves try to transmit at the same time (open-drain produces a
wired-AND result). The RNAOP bit in the Status Register selects the opcode for this command, with
RNAOP=0 indicating 33h and RNAOP=1 indicating 39h.
Match Net Address [55h]. This command allows the bus master to specifically address one DS2760 on
the 1-Wire bus. Only the addressed DS2760 responds to any subsequent Function Command. All other
slave devices ignore the Function Command and wait for a reset pulse. This command can be used with
one or more slave devices on the bus.
Skip Net Address [CCh]. This command saves time when there is only one DS2760 on the bus by
allowing the bus master to issue a Function Command without specifying the address of the slave. If
more than one slave device is present on the bus, a subsequent Function Command can cause a data
collision when all slaves transmit data at the same time.
Search Net Address [F0h]. This command allows the bus master to use a process of elimination to
identify the 1-Wire net addresses of all slave devices on the bus. The search process involves the
repetition of a simple three-step routine: read a bit, read the complement of the bit, then write the desired
value of that bit. The bus master performs this simple three-step routine on each bit location of the net
address. After one complete pass through all 64 bits, the bus master knows the address of one device.
The remaining devices can then be identified on additional iterations of the process. See Chapter 5 of the
Book of DS19xx iButton
®
Standards for a comprehensive discussion of a net address search, including an
actual example. (This publication can be found on the Maxim/Dallas Semiconductor website at
www.maxim-ic.com).
SWAP [AAh]. SWAP is a Net Address level command specifically intended to aid in distributed
multiplexing applications and is described specifically with regards to power control using the 27xx series
of products. The term power control refers to the ability of the DS2760 to control the flow of power into
or out the battery pack using control pins
DC and CC . The SWAP command is issued followed by the
Net Address. The effect is to cause the addressed device to enable power to or from the system while
simultaneously (break-before-make) deselecting and powering down (SLEEP) all other packs. This
switching sequence is controlled by a timing pulse issued on the DQ line following the net address. The
falling edge of the pulse is used to disable power with the rising edge enabling power flow by the selected
device. The DS2760 will recognize a SWAP command, device address, and timing pulse if and only if
the SWEN bit is set.
iButton is a registered trademark of Dallas Semiconductor.
DS2760
17
FUNCTION COMMANDS
After successfully completing one of the Net Address Commands, the bus master can access the features
of the DS2760 with any of the Function Commands described in the following paragraphs. The name of
each function is followed by the 8-bit opcode for that command in square brackets.
Read Data [69h, XX]. This command reads data from the DS2760 starting at memory address XX. The
LSb of the data in address XX is available to be read immediately after the MSb of the address has been
entered. Because the address is automatically incremented after the MSb of each byte is received, the
LSb of the data at address XX+1 is available to be read immediately after the MSb of the data at address
XX. If the bus master continues to read beyond address FFh, the DS2760 outputs logic 1 until a Reset
Pulse occurs. Addresses labeled “Reserved” in the Memory Map contain undefined data. The Read Data
command may be terminated by the bus master with a Reset Pulse at any bit boundary.
Write Data [6 Ch, XX]. This command writes data to the DS2760 starting at memory address XX. The
LSb of the data to be stored at address XX can be written immediately after the MSb of address has been
entered. Because the address is automatically incremented after the MSb of each byte is written, the LSb
to be stored at address XX+1 can be written immediately after the MSb to be stored at address XX. If the
bus master continues to write beyond address FFh, the DS2760 ignores the data. Writes to read-only
addresses, reserved addresses and locked EEPROM blocks are ignored. Incomplete bytes are not written.
Writes to unlocked EEPROM blocks are to shadow RAM rather than EEPROM. See the
Memory section
for more details.
Copy Data [48h, XX]. This command copies the contents of shadow RAM to EEPROM for the 16-byte
EEPROM block containing address XX. Copy Data commands that address locked blocks are ignored.
While the Copy Data command is executing, the EEC bit in the EEPROM Register is set to 1 and writes
to EEPROM addresses are ignored. Reads and writes to non-EEPROM addresses can still occur while
the copy is in progress. The Copy Data command takes t
EEC
time to execute, starting on the next falling
edge after the address is transmitted.
Recall Data [B8h, XX]. This command recalls the contents of the 16-byte EEPROM block containing
address XX to shadow RAM.
Lock [6 Ah, XX]. This command locks (write-protects) the 16-byte block of EEPROM memory
containing memory address XX. The LOCK bit in the EEPROM Register must be set to l before the
Lock command is executed. If the LOCK bit is 0, the Lock command has no effect. The Lock command
is permanent; a locked block can never be written again.
DS2760
18
FUNCTION COMMANDS Table 4
Command
Description
Command
Protocol
Bus State After
Command Protocol
Bus Data
Read Data
Reads data from memory
starting at address XX
69h, XX
Master Rx
up to 256 bytes
of data
Write Data Writes data to memory
starting at address XX
6Ch, XX Master Tx up to 256 bytes
of data
Copy Data Copies shadow RAM data
to EEPROM block
containing address XX
48h, XX
Bus Idle
none
Recall Data Recalls EEPROM block
containing address XX to
shadow RAM
B8h, XX
Bus Idle
none
Lock
Permanently locks the
block of EEPROM
containing address XX
6Ah, XX
Bus Idle
none

DS2760BE+

Mfr. #:
Manufacturer:
Maxim Integrated
Description:
Battery Management
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet