Rainbow-electronics DS2788 Bedienungsanleitung Seite 24

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 30
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 23
DS2788
separate output and input pins can be connected
together.
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 Command
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 com-
mands 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 21 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.
Stand-Alone Fuel-Gauge IC with
LED Display Drivers
24 ______________________________________________________________________________________
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 20. 1-Wire Bus Interface Circuitry
Seitenansicht 23
1 2 ... 19 20 21 22 23 24 25 26 27 28 29 30

Kommentare zu diesen Handbüchern

Keine Kommentare