LTC1840IGN#TRPBF

LTC1840
7
1840f
START 1 1 1 B4 B3 B2 B1 X X X X X R2 R1 R0
WR ACK
ACK
D7 D6 D5 D4 D3 D2 D1 D0
ACK STOP
SLAVE
ADDRESS
REGISTER
ADDRESS
S
0
S
0
S
0
0
DATA
BYTE
1
11
111
7
88
START 1 1 1 B4 B3 B2 B1 X X X X X R2 R1 R0
WR ACK ACK D7 D6 D5 D4 D3 D2 D1 D0 ACK STOP
SLAVE
ADDRESS
REGISTER
ADDRESS
S
0
S
0
M
10
DATA
BYTE
111 1
ACK
S
0
111
7
START 1 1 1 B4 B3 B2 B1
RD
SLAVE
ADDRESS
1
11
7
8 8
1840 TD03
Serial Interface
Simple 2-wire interface
Multiple devices on same bus
Idle bus must have SDA and SCL lines high
LTC1840 is read/write
Master controls bus
Devices listen for unique address that precedes data
The START and STOP Conditions
When the bus is not in use, both SCL and SDA must be
high. A bus master signals the beginning of a transmission
with a START condition by transitioning SDA from high to
low while SCL is high. When the master has finished
communicating with the slave, it issues a STOP condition
by transitioning SDA from low to high while SCL is high.
The bus is then free for another transmission.
Acknowledge
The acknowledge signal is used for handshaking between
the master and the slave. An acknowledge (LOW active)
generated by the slave lets the master know that the latest
byte of information was received. The acknowledge-
related clock pulse is generated by the master. The trans-
mitter master releases the SDA line (HIGH) during the
acknowledge clock pulse. The slave receiver must pull
down the SDA line during the acknowledge clock pulse so
that it remains stable LOW during the HIGH period of this
clock pulse.
When a slave receiver doesn’t acknowledge the slave
address (for example, it’s unable to receive because it’s
performing some real-time function), the data line must be
left HIGH by the slave. The master can then generate a
STOP condition to abort the transfer.
If a slave receiver acknowledges the slave address, but
some time later in the transfer cannot receive any more
data bytes, the master must again abort the transfer. This
is indicated by the slave generating the “not acknowledge”
on the first byte to follow. The slave leaves the data line
HIGH and the master generates the STOP condition.
Commands Supported
The LTC1840 supports read byte, write byte, read word
(the second data byte will be all ones) and write word (the
second data byte will be ignored) commands.
Data Transfer Timing for Write Commands
In order to help assure that bad data is not written into the
LTC1840, data from a write command is only stored after
a valid acknowledge has been performed. The part will
detect that SDA is low on the rising edge of SCL that marks
the end of the period in which the LTC1840 acknowledges
the data write and then latch the data during the following
SCL low period.
OPERATIO
U
LTC1840 Write Byte Protocol
LTC1840 Read Byte Protocol
Typical 2-Wire Serial I
2
C or SMBus Transmission
STOP
CONDITION
81-7 9 81-7 9 81-7 9
S
P
START
CONDITION
ADDRESS ACK ACK ACKR/W
DATA DATA
SDA
SCL
1840 TD02
LTC1840
8
1840f
LTC1840 Device Addressing
It is possible to configure the part to operate with any one
of nine separate addresses through the three state A0 and
A1 pins. Table 1 shows the correspondence of addresses
to the states of the pins:
Table 1. Device Addressing
LTC1840 2-Wire Bus Slave Address Bits
Device Address (B7,B6,B5 = 111)
A0 A1 B4 B3 B2 B1
LNC0000
NCH0001
NCNC0010
HNC0011
LL0100
HH0101
NCL0110
HL0111
LH1000
For the A0 and A1 lines, L refers to a grounded pin, H is a
pin shorted to V
CC
and NC is no connect. The pin voltage
will be set to approximately V
CC
/2 when not connected.
Bits B7, B6 and B5 of the address are hardwired to 111.
Register Addresses and Contents
Fault conditions are cleared by the action of writing to the
fault register, but the data byte from the write command is
not actually loaded into the register.
A TACHA/B FLT (fault) bit will be high if the corresponding
TACHA/B FLTEN bit in the status register has been set high
and the corresponding TACHA/B counter has overflowed
its maximum count of 255. These faults are latched
internally and must be cleared by writing to the fault
register or by setting TACHA/B FLTEN low. The fault will be
reasserted if the counter is still in overflow after a write to
the fault register. The TACH FLT bits power-up in the low
state.
The blast and timer bits become high after blasting and
serial access time-out events, respectively.
A high GPIOX FLT bit reflects that the GPIOX pin has
caused a fault condition; to do so, the pin must be enabled
as fault producing in the GPIO setup register (GPIOX
FLTEN set high) and the logic state of the pin must change
after the enable. The fault is latched internally and must be
cleared through software by writing to the fault register or
by setting GPIOX FLTEN low; a change in the state of the
GPIOX pin from its state at the point of the fault register
being written will cause another fault to be signalled.
OPERATIO
U
Register Register
Name Address Data Byte
(R/W) R2 R1 R0 D7 D6 D5 D4 D3 D2 D1 D0
FAULT 000 TACHA FLT TACHB FLT Blast Timer GPI04 FLT GPI03 FLT GPI02 FLT GPI01 FLT
(0) (0) (0) (0) (0) (0) (0) (0)
STATUS 001 TACHA FLTEN TACHB FLTEN DIV1 DIV0 *See Note 2
(0) (0) (0) (0) (0/1) (0) (0) (1)
DACA 010 MSB Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 LSB
(0) (0) (0) (0) (0) (0) (0) (0)
DACB 011 MSB Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 LSB
(0) (0) (0) (0) (0) (0) (0) (0)
TACHA 100 Cnt A7 Cnt A6 Cnt A5 Cnt A4 Cnt A3 Cnt A2 Cnt A1 Cnt A0
(1) (1) (1) (1) (1) (1) (1) (1)
TACHB 101 Cnt B7 Cnt B6 Cnt B5 Cnt B4 Cnt B3 Cnt B2 Cnt B1 Cnt B0
(1) (1) (1) (1) (1) (1) (1) (1)
GPIO Data 110 GPIO4 Pin GPIO3 Pin GPIO2 Pin GPIO1 Pin GPIO4 Reg GPIO3 Reg GPIO2 Reg GPIO1 Reg
(N/A) (N/A) (N/A) (N/A) (1) (1) (1) (1)
GPIO Setup 111 GPIO4 BLNK GPIO3 BLNK GPIO2 BLNK GPIO1 BLNK GPIO4 FLTEN GPIO3 FLTEN GPIO2 FLTEN GPIO1 FLTEN
(0) (0) (0) (0) (0) (0) (0) (0)
Table 2. LTC1840 Register Address and Contents
Note 1: Number in ( )signifies default bit status upon power-up.
Note 2: State of bit depends on slave address used.
LTC1840
9
1840f
DIV1 and DIV0 program the ratio by which the internal
50kHz oscillator frequency is divided down to produce the
tachometer clocks (2, 4, 8, or 16). The DIV bits power-up
low, which corresponds to a frequency division of 16. For
example, if DIV1 and DIV0 are both high, the divide ratio
is set to 2. If DIV1 is high and DIV0 is low, the divide ratio
is set to 4. If DIV1 is low and DIV0 is high, the divide ratio
is set to 8.
The TACHA and TACHB registers will be set to all ones
by a UVLO condition. The tach counters count between
rising edges on the TACHA and TACHB pins. If a counter
overflows its maximum count of 255, the latch holding the
count results is immediately set to 255 without waiting for
the next edge on its TACH pin. This is done so that a
suddenly stopped or locked rotor will be easily detectable
by reading its corresponding tach register; otherwise, the
register would merely hold the previous count and be
waiting for a tach signal edge that isn’t coming to update
the overflow count.
The GPIOX pin bits in the GPIO data register reflect the
logic state of the pin itself, while the GPIOX register bits
reflect the data that is stored in the register that controls
the gate of the internal pull-down for the pin. The logic
polarities of the GPIOX bits are the same as those of the
GPIOX pins assuming an appropriately sized pull-up resis-
tor (for example, a 1 value for the GPIO1 register bit will
force the internal N-channel MOSFET pull-down to an off-
state, resulting in a 1 value at the GPIO1 pin). For a GPIO
to be used as a digital input, the GPIOX register bit is set
high, which turns off the internal pull-down N-channel
MOSFET, and the state of the pin can be controlled
externally and read back via the GPIOX pin bit. The GPIO
register bits power-up in the high state.
The GPIOX BLNK bits in the GPIO setup register control
whether the internal pull-down on a GPIO shuts on and off
at about 1.5Hz when the GPIOX register bit is low, and the
GPIOX FLTEN bits control whether a GPIO pin can trigger
a fault condition by a change in state. The GPIO FLTEN and
GPIO BLNK bits power-up in the low state.
Serial Interface Example
In this example, an LTC1840 has both address pins open
(NC) and the output current of DACA will be programmed
to half of full-scale (50µA current sink).
Provide a start condition on the bus by pulling SDA from
high to low while SCL is high and then write the SDA bit
stream 1110010 to the part for the LTC1840 slave
address, followed by a 0 to indicate that a write operation
will follow. All SDA transitions must happen when SCL is
low, or a start or stop condition will be interpreted. The
LTC1840 will then pull the SDA line low during the next
SCL clock phase to indicate that it is responding to the
communication attempt. To write to the DACA output
register, write 00000010 to the LTC1840 and wait for the
LTC1840 to acknowledge again on the following SCL cycle
by pulling SDA low. Next, send the LTC1840 the value
indicating the DACA current; writing the SDA data stream
10000000 sets the DAC to sink 50µA. The LTC1840 will
then acknowledge a third time by pulling SDA low for the
next SCL cycle. Then the data will be written into the
internal DACA register and I
DACOUTA
pin will sink 50µA.
Now generate a stop condition by forcing SDA from low to
high while SCL is high.
Tachometer Interface Operation
It is common for fans to have tachometer outputs that
produce two pulses per blade revolution. The LTC1840
provides two inputs that interface to circuits that count
between rising edges on these pulses. The frequency at
which the counting is done is programmable via the serial
interface to 25kHz, 12.5kHz, 6.25kHz, and 3.125kHz,
equivalent to divide by 2, 4, 8, and 16 operations on the
internal 50kHz oscillator. The count values corresponding
to these two inputs can also be read via the serial interface.
The output registers storing these counts power-up to all
ones, and they will also be loaded with all ones whenever
a counter overflows between two rising edges to allow for
the detection of a suddenly stopped rotor. The part can
also be configured to produce a fault as soon as the
counter overflows. However, the default state is to not
produce such faults, so as to prevent unnecessary fault
conditions while the fan is spinning up at start-up.
Multiple fans with open drain tachometer output signals
can be connected to a single LTC1840 tachometer input in
a wired-OR fashion, as long as the fans are not active at the
same time. If the fans happen to be spinning simulta-
neously, the counts in the tach registers will not be
meaningful.
OPERATIO
U

LTC1840IGN#TRPBF

Mfr. #:
Manufacturer:
Analog Devices / Linear Technology
Description:
Digital to Analog Converters - DAC Dual I2C Fan Speed Controller
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union