Functional description of the SPI L9951 / L9951XP
22/36 Doc ID 14173 Rev 9
4 Functional description of the SPI
4.1 Serial Peripheral Interface (SPI)
This device uses a standard SPI to communicate with a microcontroller. The SPI can be
driven by a microcontroller with its SPI peripheral running in following mode: CPOL = 0 and
CPHA = 0.
For this mode, input data is sampled by the low to high transition of the clock CLK, and
output data is changed from the high to low transition of CLK.
This device is not limited to microcontroller with a build-in SPI. Only three CMOS-compatible
output pins and one input pin will be needed to communicate with the device. A fault
condition can be detected by setting CSN to low. If CSN = 0, the DO-pin will reflect the
status bit 0 (fault condition) of the device which is a logical-or of all bits in the status registers
0 and 1. The microcontroller can poll the status of the device without the need of a full SPI-
communication cycle.
Note: In contrast to the SPI-standard the least significant bit (LSB) will be transferred first (see
Figure 3).
4.2 Chip Select Not (CSN)
The input pin is used to select the serial interface of this device. When CSN is high, the
output pin (DO) will be in high impedance state. A low signal will activate the output driver
and a serial communication can be started.
The state when CSN is going low until the rising edge of CSN will be called a
communication frame. If the CSN-input pin is driven above 7.5V, the L9951 will go into a test
mode. In the test mode the DO will go from tristate to active mode.
4.3 Serial Data In (DI)
The input pin is used to transfer data serial into the device. The data applied to the DI will be
sampled at the rising edge of the CLK signal and shifted into an internal 16 bit shift register.
At the rising edge of the CSN signal the contents of the shift register will be transferred to
Data Input Register.
The writing to the selected Data Input Register is only enabled if exactly 16 bits are
transmitted within one communication frame (i.e. CSN low). If more or less clock pulses are
counted within one frame the complete frame will be ignored. This safety function is
implemented to avoid an activation of the output stages by a wrong communication frame.
Note: Due to this safety functionality a daisy chaining of SPI is not possible. Instead, a parallel
operation of the SPI bus by controlling the CSN signal of the connected ICs is
recommended.
L9951 / L9951XP Functional description of the SPI
Doc ID 14173 Rev 9 23/36
4.4 Serial Data Out (DO)
The data output driver is activated by a logical low level at the CSN input and will go from
high impedance to a low or high level depending on the status bit 0 (fault condition). The first
rising edge of the CLK input after a high to low transition of the CSN pin will transfer the
content of the selected status register into the data out shift register. Each subsequent
falling edge of the CLK will shift the next bit out.
4.5 Serial clock (CLK)
The CLK input is used to synchronize the input and output serial bit streams. The data input
(DI) is sampled at the rising edge of the CLK and the data output (DO) will change with the
falling edge of the CLK signal.
4.6 Input data register
The device has two input registers. The first bit (bit 0) at the DI-input is used to select one of
the two input registers. All bits are first shifted into an input shift register. After the rising
edge of CSN the contents of the input shift register will be written to the selected input data
register only if a frame of exact 16 data bits are detected. Depending on bit 0 the contents of
the selected status register will be transferred to DO during the current communication
frame. Bit 1-8 control the behavior of the corresponding driver. The bits 9,10 and 11 are
used to control the current monitor multiplexer. Bit 15 is used to reset all status bits in both
status registers. The bits in the status registers will be cleared after the current
communication frame (rising edge of CSN).
4.7 Status register
This devices uses two status registers to store and to monitor the state of the device. Bit 0 is
used as a fault bit and is a logical-NOR combination of bits 1-14 in both status registers. The
state of this bit can be polled by the microcontroller without the need of a full SPI-
communication cycle (see Figure 8.). If one of the over-current bits is set, the corresponding
driver will be disabled. If the over-current recovery bit of the output is not set the
microcontroller has to clear the over-current bit to enable the driver. If the thermal shutdown
bit is set, all drivers will go into a high impedance state. Again the microcontroller has to
clear the bit to enable the drivers.
4.8 Test mode
The test mode can be entered by rising the CSN input to a voltage higher than 7.5V. In the
test mode the inputs CLK, DI, PWM and the internal 2MHz CLK can be multiplexed to data
output DO for testing purpose. Furthermore the over-current thresholds are reduced by a
factor of 4 to allow EWS testing at lower current. The internal logic prevents that the Hi-Side
and Low-Side driver of the same half-bridge can be switched-on at the same time. In the test
mode this combination is used to multiplex the desired signals to the CM output according to
table 18 and 19.
Functional description of the SPI L9951 / L9951XP
24/36 Doc ID 14173 Rev 9
Table 18. Test mode
LS1 HS1 LS2 HS2 LS3 HS3 DO LS1 HS1 LS2 HS2 LS3 HS3 CM
! (both HI) ! (both HI) ! (both HI) NoError ! (both HI) ! (both HI) ! (both HI) N.C
both HI ! (both HI) ! (both HI) DI both HI ! (both HI) ! (both HI) Tsense1
! (both HI) both HI ! (both HI) CLK ! (both HI) both HI ! (both HI) Tsense2
both HI both HI ! (both HI) INT_CLK both HI both HI ! (both HI) Tsense3
! (both HI) ! (both HI) both HI PWM ! (both HI) ! (both HI) both HI Tsense4
both HI ! (both HI) both HI N.C
! (both HI) both HI both HI A Iref
both HI both HI both HI Vbandgap
Table 19. SPI - Input data and status register 0
Input register 0 (write) Status register 0 (read)
Bit Name Comment Name Comment
15 Reset bit
If reset bit is set both status
registers will be cleared after
rising edge of CSN input.
Always 1
A broken VCC-or SPI-
connection of the L9951 can
be detected by the
microcontroller, because all 16
bits low or high is not a valid
frame.
14
Disable open-
load
If the disable open-load bit is
set, the open-load status
bits will be ignored for the
NonErrorBit calculation.
V
S
over-voltage
In case of an over-voltage or
undervoltage event the
corresponding bit is set and
the outputs are deactivated.
13
OC recovery
duty cycle
0: 12% 1: 25%
This bit defines in
combination with the over-
current recovery bit (input
register 1) the duty cycle in
over-current condition of an
activated driver. If
temperature warning bit is
set, L9951 will always use
the lower duty cycle
V
S
undervoltage
If VS voltage recovers to
normal operating conditions
outputs are reactivated
automatically.
12
Overvoltage/
under-voltage
recovery
disable
If this bit is set the
microcontroller has to clear
the status register after
undervoltage/overvoltage
event to enable the outputs.
Thermal
shutdown
In case of an thermal
shutdown all outputs are
switched off. The
microcontroller has to clear the
TSD bit by setting the reset bit
to reactivate the outputs.

L9951XP

Mfr. #:
Manufacturer:
STMicroelectronics
Description:
Motor / Motion / Ignition Controllers & Drivers DOOR ACTUATOR DRIVER
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet