Datasheet

DS2788
Stand-Alone Fuel-Gauge IC with
LED Display Drivers
______________________________________________________________________________________ 25
The 1-Wire bus must have a pullup resistor at the bus-
master end of the bus. For short line lengths, the value
of this resistor should be approximately 5kΩ. The idle
state for the 1-Wire bus is high. If, for any reason, a bus
transaction must be suspended, the bus must be left in
the idle state to properly resume the transaction later. If
the bus is left low for more than 120µs (16µs for over-
drive speed), slave devices on the bus begin to inter-
pret the low period as a reset pulse, effectively
terminating the transaction.
The DS2788 can operate in two communication speed
modes, standard and overdrive. The speed mode is
determined by the input logic level of the OVD pin with
a logic 0 selecting standard speed and a logic 1
selecting overdrive speed. The OVD pin must be at a
stable logic level of 0 or 1 before initializing a transac-
tion with a reset pulse. All 1-Wire devices on a multin-
ode bus must operate at the same communication
speed for proper operation. 1-Wire timing for both stan-
dard and overdrive speeds are listed in the
Electrical
Characteristics: 1-Wire Interface
tables.
Transaction Sequence
The protocol for accessing the DS2788 through the
1-Wire port is as follows:
Initialization
Net Address Commands
Function Command
Transaction/Data
The sections that follow describe each of these steps in
detail.
All transactions of the 1-Wire bus begin with an initial-
ization sequence consisting of a reset pulse transmitted
by the bus master, followed by a presence pulse simul-
taneously transmitted by the DS2788 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
op code for that command in square brackets.
Figure 25 presents a transaction flowchart of the net
address commands.
Read Net Address [33h or 39h]. This command allows
the bus master to read the DS2788’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 pre-
sent, a data collision occurs when all slaves try to trans-
mit at the same time (open drain produces a
wired-AND result). The RNAOP bit in the Status register
selects the op code for this command, with RNAOP = 0
indicating 33h and RNAOP = 1 indicating 39h.
Rx
BUS MASTER
Rx = RECEIVE
Tx = TRANSMIT
4.7kΩ
0.2μA
(TYP)
V
PULLUP
(2.0V TO 5.5V)
Tx
Rx
Tx
100Ω MOSFET
DS2788 1-Wire PORT
Figure 24. 1-Wire Bus Interface Circuitry