LTC6803-2/LTC6803-4
16
680324fa
OPERATION
ADC REGISTER CLEAR COMMAND
The clear command can be used to clear the cell voltage
registers and temperature registers. The clear command
will set all registers to 0xFFF. This command is used to
make sure conversions are being made. When cell volt-
ages are stable, ADC results could stay the same. If a start
ADC conversion command is sent to the LTC6803 but the
PEC fails to match then the command is ignored and the
voltage register contents also will not change. Sending a
clear command then reading back register contents is a
way to make sure LTC6803 is accepting commands and
performing new measurements. The clear command takes
1ms to execute.
ADC CONVERTER SELF TEST
Two self-test commands can be used to verify the func-
tionality of the digital portions of the ADC. The self tests
also verify the cell voltage registers and temperature
monitoring registers. During these self tests a test signal
is applied to the ADC. If the circuitry is working properly all
cell voltage and temperature registers will contain 0x555
or 0xAAA. The time required for the self-test function is
the same as required to measure all cell voltages or all
temperature sensors.
MULTIPLEXER AND REFERENCE SELF TEST
The LTC6803 uses a multiplexer to measure the 12 bat-
tery cell inputs as well as the temperature signals. A
diagnostic command is used to validate the function of
the multiplexer, the temperature sensor, and the precision
reference circuit. Diagnostic registers will be updated after
each diagnostic test. The muxfail bit of the registers will
be 1 if the multiplexer self test fails.
A constant voltage generated by the 2nd reference circuit
will be measured by the ADC and the results written to the
diagnostic register. The voltage reading should be 2.5V
±16%. Readings outside this range indicate a failure of
the temperature sensor circuit, the precision reference
circuit, or the analog portion of the ADC. The DAGN com-
mand executes in 16.4ms, which is the sum of the 12-cell
t
CYCLE
and the 3 temperature t
CYCLE
. The diagnostic read
command can be used to read the registers.
USING THE GENERAL PURPOSE INPUTS/OUTPUTS
(GPIO1, GPIO2)
The LTC6803 has two general purpose digital input/output
pins. By writing a GPIO configuration register bit to a logic
low, the open-drain output can be activated. The GPIOs
give the user the ability to turn on/off circuitry around
the LTC6803. One example might be a circuit to verify the
operation of the system.
When a GPIO configuration bit is written to a logic high,
the corresponding GPIO pin may be used as an input.
The read back value of that bit will be the logic level that
appears at the GPIO pins.
WATCHDOG TIMER CIRCUIT
The LTC6803 includes a watchdog timer circuit. The
watchdog timer is on for all modes except CDC = 0. The
watchdog timer times out if no valid command is received
for 1 to 2.5 seconds. When the watchdog timer circuit
times out, the WDTB open-drain output is asserted low
and the configuration register bits are reset to their default
(power-up) state. In the power-up state, CDC is 0, the S
outputs are off and the IC is in the low power standby
mode. The WDTB pin remains low until a valid command
is received. The watchdog timer provides a means to turn
off cell discharging should communications to the MPU
be interrupted. There is no need for the watchdog timer
at CDC = 0 since discharging is off. The open-drain WDTB
output can be wire ORd with other external open-drain
signals. Pulling the WDTB signal low will not initiate a
watchdog event, but the CNFGO bit 7 will reflect the state
of this signal. Therefore, the WDTB pin can be used to
monitor external digital events if desired.
SERIAL PORT
Overview
The LTC6803-2/LTC6803-4 has an SPI bus compatible
serial port. Devices can be connected in parallel, using
digital isolators. Multiple devices are uniquely identified by
a part address determined by the A0 to A3 pins. Physical
Layer on the LTC6803-2/LTC6803-4, four pins comprise
the serial interface: CSBI, SCKI, SDI and SDO. The SDO
LTC6803-2/LTC6803-4
17
680324fa
OPERATION
and SDI may be tied together, if desired, to form a single,
bi-directional port. Four address pins (A0 to A3) set the
part address for address commands. The TOS pin desig-
nates the top device (logic high) for polling commands.
All interface pins are voltage mode, with voltage levels
sensed with respect to the V
supply. See Figure 1.
Data Link Layer
Clock Phase And Polarity: The LTC6803 SPI compat-
ible interface is configured to operate in a system using
CPHA = 1 and CPOL = 1. Consequently, data on SDI must
be stable during the rising edge of SCKI.
Data Transfers: Every byte consists of 8 bits. Bytes are
transferred with the most significant bit (MSB) first. On a
write, the data value on SDI is latched into the device on
the rising edge of SCKI (Figure 2). Similarly, on a read, the
data value output on SDO is valid during the rising edge of
SCKI and transitions on the falling edge of SCKI (Figure 3).
CSBI must remain low for the entire duration of a com-
mand sequence, including between a command byte and
subsequent data. On a write command, data is latched in
on the rising edge of CSBI.
Network Layer
PEC Byte: The packet error code (PEC) byte is a cyclic
redundancy check (CRC) value calculated for all of the
bits in a register group in the order they are passed, us-
ing the initial PEC value of 01000001 and the following
characteristic polynomial:
x
8
+ x
2
+ x + 1
To calculate the 8-bit PEC value, a simple procedure can
be established:
1. Initialize the PEC to 0100 0001.
2. For each bit DIN coming into the register group, set IN0
= DIN XOR PEC[7], then IN1 = PEC[0] XOR IN0, IN2 =
PEC[1] XOR IN0.
3. Update the 8-bit PEC as PEC[7] = PEC[6], PEC[6] =
PEC[5],……PEC[3] = PEC[2], PEC[2] = IN2, PEC[1]
= IN1, PEC[0] = IN0.
4. Go back to step 2 until all data are shifted. The 8-bit
result is the final PEC byte.
Figure 2. Transmission Format (Write)
Figure 3. Transmission Format (Read)
SDI MSB (CMD) BIT 6 (CMD) LSB (CMD) MSB (DATA) LSB (DATA)
68034 F02
SCKI
CSBI
SDI
SDO
MSB (CMD) BIT 6 (CMD) LSB (CMD)
MSB (DATA) LSB (DATA)
68034 F03
SCKI
CSBI
LTC6803-2/LTC6803-4
18
680324fa
An example to calculate the PEC is listed in Table 1 and
Figure 4. The PEC of the 1 byte data 0x01 is computed as
0xC7 after the last bit of the byte streamed in. For multiple
byte data, PEC is valid at the end (LSB) of the last byte.
LTC6803 calculates PEC byte for any command or data
received and compares it with the PEC byte following the
command or data. The command or data is regarded as
valid only if the PEC bytes match. LTC6803 also attaches
the calculated PEC byte at the end of the data it shifts out.
Broadcast Commands: A broadcast command is one to
which all devices on the bus will respond, regardless of
device address. See the Bus Protocols and Commands
sections. With broadcast commands all devices can be
sent commands simultaneously. This is useful for ADC
conversion and polling commands. It can also be used
with write commands when all parts are being written with
the same data. Broadcast read commands should not be
used in the parallel configuration.
Address Commands: An address command is one in which
only the addressed device on the bus responds. The first
byte of an address command consists of 4 bits with a
Table 1. Procedure to Calculate PEC Byte
CLOCK
CYCLE DIN IN0 IN1 IN2 PEC[7] PEC[6] PEC[5] PEC[4] PEC[3] PEC[2] PEC[1] PEC[0]
0 0 0 1 0 0 1 0 0 0 0 0 1
1 0 1 1 0 1 0 0 0 0 0 1 0
2 0 0 1 1 0 0 0 0 0 0 1 1
3 0 0 0 1 0 0 0 0 0 1 1 0
4 0 0 0 0 0 0 0 0 1 1 0 0
5 0 0 0 0 0 0 0 1 1 0 0 0
6 0 0 0 0 0 0 1 1 0 0 0 0
7 1 1 1 1 0 1 1 0 0 0 0 0
8 1 1 0 0 0 1 1 1
value of 1000 and 4 address bits. Following the address
command is its PEC byte. The third and fourth bytes are
the command byte and its PEC byte respectively. See the
Bus Protocols and Commands section.
Polling Methods: For ADC conversions, three methods can
be used to determine ADC completion. First, a controller
can start an ADC conversion and wait for the specified
conversion time to pass before reading the results. The
second method is to hold CSBI low after an ADC start
command has been sent. The ADC conversion status will
be output on SDO (Figure 5). A problem with the second
method is that the controller is not free to do other serial
communication while waiting for ADC conversions to
complete. The third method overcomes this limitation.
The controller can send an ADC start command, perform
other tasks, and then send a poll ADC converter status
(PLADC) command to determine the status of the ADC
conversions (Figure 6). For OV/UV interrupt status, the poll
interrupt status (PLINT) command can be used to quickly
determine whether any cell in a stack is in an overvoltage
or undervoltage condition (Figure 6).
OPERATION

LTC6803HG-2#PBF

Mfr. #:
Manufacturer:
Analog Devices / Linear Technology
Description:
Battery Management Battery Stack Monitor, Addressable SPI
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union