DS2790 Maxim Integrated Products, DS2790 Datasheet - Page 26

no-image

DS2790

Manufacturer Part Number
DS2790
Description
Programmable 1-Cell Li-Ion Fuel Gauge and Protector
Manufacturer
Maxim Integrated Products
Datasheet
www.DataSheet4U.com
DataSheet U .com
ADDR
reserved
TOUT_LONG
TLS_DIS
TTO_DIS
CMD_HM
CMD_HM_DIS
Figure 9. 2-Wire Slave Configuration Register (TWSCFG)
Note: The peripheral handles clock extension and Ack/Nack generation without intervention from the MAXQ20 core. Bus timeout conditions
detailed in the 2-Wire Specification, T
Command Register and Handshaking
During a write, the first byte after the slave address is the command byte. The command byte signifies how the
data following the command byte should be interpreted. It is useful for software to have access to this command
byte during the entire 2-wire transaction. Therefore, the command byte is stored in the Command Register
(TWSCMD) and handshaking between the 2-wire master and CPU is implemented to ensure that the command
byte has been processed by the CPU before a new command byte can be received. Handshaking is configured in
the 2-wire Configuration Register (TWSCFG); and the following handshaking modes can be implemented:
4
FIELD
·
·
·
CMD_HM_DIS=1, CMD_HM=X Handshaking disabled. All new command bytes are unconditionally
written to the TWSCMD register and acknowledged (ACK) by the 2-wire hardware.
CMD_HM_DIS=0, CMD_HM=0 Upon receipt of a new command byte, the TWSCMD register becomes
“busy”. The TWSCMD register will remain busy and can not accept a new command byte until the CPU
executes a “dummy” write to the TWSCMD register. The dummy write clears the busy state of the
TWSCMD register so that it can accept a new command byte. If the master attempts to send additional
command bytes while the TWSCMD register is busy, the 2-wire hardware will begin clock extending;
which will continue until the CPU executes a dummy write to the TWSCMD register or the SMBus
timeout limits are reached (if enabled).
CMD_HM_DIS=0, CMD_HM=1 In this mode, If the master attempts to send additional command bytes
while the TWSCMD register is busy, the 2-wire hardware will not acknowledge (Nack) the command
byte. The master can re-attempt to send the command byte until it is Ack’ed.
15:9
BIT
8:5
4
3
2
1
0
TIMEOUT
and T
FORMAT
R/W
R/W
R/W
R/W
R/W
R/W
LOW:SEXT
R
, are also handled directly by the TWS hardware.
2-Wire Slave Address.
Default = 0001011b
Reserved bits read as 0000b
Lengthen Timeouts. Only valid if T
enabled.
0 = T
1 = T
T
0 = T
1 = T
T
0 = T
1 = T
Only valid if CMD_HS_DIS = 0.
0 = (CE) Clock Extend until command register release latch is
cleared or clock extend timeout.
1 = (NACK) Nack the command byte if command register
release latch is clear.
Command Handshake Mode Disable.
0 = Command Handshake Mode is enabled.
1 = Command unconditionally accepted.
DS2790 Programmable 1-Cell Li-Ion Fuel Gauge and Protector
LOW:SEXT
TIMEOUT
26 of 41
T
T
TIMEOUT
TIMEOUT
LOW:SEXT
LOW:SEXT
LOW:SEXT
LOW:SEXT
TIMEOUT
TIMEOUT
Disable
Disable
– Nominal 30ms
– Nominal 120ms
is enabled
is disabled
– Nominal 15ms
– Nominal 60ms
timeout is enabled
timeout is disabled
ALLOWABLE VALUES
TIMEOUT
or T
LOW:SEXT
timout is

Related parts for DS2790