L9663_V01 STM | Alldatasheet

Document overview

  • Manufacturer or author: Provided By alldatasheet.com(free datasheet download site)
  • PDF pages: 106

Technical content

Datasheet sections

  • 1 Overall description
  • 1.1 Simplified block diagram
  • 1.2 Main functionality
  • 1.3 VQFPN28 pins description
  • 1.4 TQFP32 pins description
  • 1.5 Maximum ratings
  • 1.6 Detailed block diagram
  • 1.7 Power up sequence
  • 2 Power supply
  • 2.1 Internal supply
  • 2.2 V AS supply and pre-regulator
  • 2.3 Voltage supply for synchronous pulse generation V SYNCx
  • 2.4 Power supply for PSI5 sensor line
  • 2.5 Frequency references
  • 2.6 Reset handling
  • 3 Satellite interface
  • 3.1 Receiver with digital s ampling and filtering
  • 3.2 Manchester decoder and error detection
  • 3.3 Receive block
  • 3.3.1 PSI5 receive register
  • 3.3.2 Sensor data buffer
  • 3.3.3 Interrupt generator
  • 3.3.4 Automatic stora ge of sensor initialization data
  • 3.4 Upstream data buffer
  • 3.5 Trigger pulse generator for synchronous pulses
  • 3.6 Synchronous pulse generator
  • 3.7 Safety concepts
  • 3.7.1 Voltage monitoring ch eck
  • 3.7.2 Sensor data consistency
  • 3.7.3 Buffer empty check

Features

 AEC-Q100 qualified  2-channel PSI5 transceiver compatible with rev. 1.3 and rev. 2.x  Manchester coded digital data transmission  High data transmission speed of 125 kbps (optional 83.3 kbps and 189 kbps)  High EMC robustness and low emission  Bootstrap circuits for sync pulses  Current limitation and voltage clamp on interface pins  Integrated charge pump stage for pre- regulation with spread spectrum approach  Integrated FLL module for high accuracy timing control  Reverse voltage protection structure  Short to ground tolerant with ±1.5 V ground shift  32-bit SPI interface with address multiplexing  Operating voltage: VB = 4.8 V (5.2 V for sync pulses with 3.5 V step) to 35 V  Ambient temperature range: -40°C to 140 °C  Package: VFQFPN28 or TQFP32EP

Description

The Peripheral Sensor Interface (PSI5) is an interface for automotive sensor applications. PSI5 is an open standard based on existing sensor interfaces for peripheral sensors and offers a universal and flexible solution for multiple sensor applications. The PSI5 interface allows asynchronous or synchronous operations and different bus modes. The device is compatible with both v1.3 and v2.x PSI5 revisions (limitations are specified inside this document). It operates with a wide range of sensor supply current and variable data word length (8 to 28 bit). The sensors are connected to the ECU using the same line for power supply and data transmission. The transceiver IC provides a pre- regulated voltage to the sensors and reads in the transmitted sensor data. The PSI5 interface allows either point to point connection or bussed mode. GADG2202171507PS VFQFPN28 GAPG1610150829PS TQFP32 (Exposed pad down) Table 1. Device summary

1 Overall description

1.1 Simplified block diagram

Figure 1. Simplified block diagram

1.2 Main functionality

The transceiver IC can be used in two different modes (Mode 1 or Mode 2)(a) . The system configuration called Mode 1 performs the decoding effort of sensor signals in the IC. The system configuration called Mode 2 is a front-end to a PSI5 decoder contained in an external device (typically a µC with a dedicated module). The transceiver IC can monitor all internally generated relevant voltages, such as VSYNCx VAS and V_PSIx. The PSI5 interfaces inside the IC are supplied by a separate input pin VAS. If only asynchronous mode is required, the VAS voltage is sufficient for the sensor power supply. When synchronous mode is required, a higher voltage than VAS is needed in order to generate the synchronous pulses. This voltage VSYNCx is generated by a dedicated bootstrap circuit for each channel. For direct supply from battery, the transceiver IC includes a VAS pre-regulator supplied by VASSUP-pin: the pre-regulator can drive an external FET to regulate the VAS voltage to 7.6 V or 5.3 V. In case of low voltage level at VASSUP, an integrated charge pump is implemented, with supply from VASSUP. The internal analog and digital circuits are supplied by VB. The external voltage on VDD pin is used to supply the digital output pins; VDD pin can be used to switch the digital outputs from 5 V output level (default) to 3.3 V output level. The PSI5 transceiver is functional in the whole VDD, VB, VASSUP and VAS power supply range. The internal voltage supplies (VSYNCx) are automatically activated by the transceiver IC depending on the operating mode whenever they are needed. Each transceiver interface can be activated and deactivated by an SPI command. At start- up, the interfaces are off by default. The communication interface block includes two different interfaces. In mode 1, SPI is used for data transfer. In mode 2, the direct interface is used. The data from and to the sensors will be transmitted bit-wise between the transceiver IC and the µC. The data evaluation and error handling for frame errors will be done in the PSI5 controller which is integrated in the µC. Transceiver 1 and 2 supply the sensors and generate the synchronous pulses for synchronous data transfer (if required) from the sensors to the transceiver and for data transfer from the ECU to the sensors. A data transfer from the ECU to the sensors can be performed:  by using sync pulses with different duration (PSI5 2.x standard)  by masking of sync pulses (PSI5 1.3 and 2.x standard) The sync pulse trigger can be generated by an SPI command, by a dedicated pin (for connection to the Synchronous Pulse Output Block included in the microcontroller) or by an integrated automatic timer. a. Mode 1 and Mode 2 are two system architectures which relate o n the way L9663 communicates with the microcontroller. Depending on the chosen architecture, the µC must configure the IC with the correct setup.

The Transceivers 1 and 2 limit the current and the PSIx voltage (PSI5-requirement when VAS is too high because of failure in the VAS power supply, less than 11 V in data transmission or less than 16.5 V in sync pulse). The current modulated signal received from sensor is detected and digitally converted. This sensor data will then either be:  First Manchester decoded by the Manchester Decoder block with mark space error correction and then transferred to the "receive data buffer" module (Mode 1). The data from the new sensor frames will be saved in a buffer and then will be transferred to the µC via SPI.  Transferred directly to the µC (Mode 2). In this case the output of the transceiver is a Manchester-coded signal without error correction that falls under microcontroller responsibility.

1.3 VQFPN28 pins description

Figure 2. VQFPN28 pins connection diagram (top view) Table 2. VQFPN28 pin-out

1 SYNC1 Direct interface sync pulse trigger 1 I local

2 DOUT1 Direct interface 1/Interrupt 1 O local

3 CLKIN External clock input I local

4 SYNC2 Direct Interface syn c pulse trigger 2 I local

5 DOUT2 Direct interface 2/Interrupt 2 O local

8 BL1 Bootstrap capacitor pin 2, transceiver 1 I/O local

9 GND1 Ground return for PSI5 interface (analog ground and

10 PSI1 PSI5 Interface 1 I/O global

11 V AS PSI5 Interface pre-regulated voltage supply supply local

12 PSI2 PSI5 Interface 2 I/O global

13 GND2 Ground return for PSI5 interface (analog ground and

14 BL2 Bootstrap capacitor pin 2, transceiver 2 I/O local

15 BH2 Bootstrap capacitor pin 1 or SYNC voltage supply

16 V B Input voltage supply supply global

17 V ASSUP VAS pre-regulator and charge pump voltage supply supply global

18 V GS Gate driver for VAS pre-regulator I/O local

19 NC (2) -- -

20 MOSI SPI input I local

21 SCLK SPI Clock I local

22 CS SPI Chip Select I local

23 RESETN Reset I local

24 TM Test-mode pin

25 V INTD Internal digital supply voltage supply local

26 DGND Digital ground supply local

27 V DD Digital I/O supply supply local

28 MISO SPI output O local

  1. Not connected internally, must be left open.
  2. Not connected internally, it c an be connected to GND externally.
  3. It must be connected to G ND, for safety reasons.

Table 2. VQFPN28 pin-out (continued)

1.4 TQFP32 pins description

Figure 3. TQFP32 pins connection diagram (top view) Note: The exposed pad is electrically shorted to the substrate and to pins GND1 and GND2. These three nodes have to be kept shorted on the application. Table 3. TQFP32 pin-out

5 SYNC2 Direct Interface syn c pulse trigger 2 I local

6 DOUT2 Direct interface 2/Interrupt 2 O local

9 BL1 Bootstrap capacitor pin 2, transceiver 1 I/O local

10 GND1 Ground return for PSI5 interface (analog

11 PSI1 PSI5 Interface 1 I/O global

12 V AS PSI5 Interface pre-regulated voltage supply supply local

13 NC (2) -- -

14 PSI2 PSI5 Interface 2 I/O global

15 GND2 Ground return for PSI5 interface (analog

16 BL2 Bootstrap capacitor pin 2, transceiver 2 I/O local

17 BH2 Bootstrap capacitor pin 1 or SYNC voltage

18 NC (1) -- -

19 V B Input voltage supply supply global

20 V ASSUP

21 V GS Gate driver for VAS pre-regulator I/O local

22 NC (2) -- -

23 MOSI SPI input I local

24 SCLK SPI Clock I local

25 CS SPI Chip Select I local

26 RESETN Reset I local

27 TM Test-mode pin

28 NC (2) -- -

29 V INTD Internal digital supply voltage supply local

30 DGND Digital ground supply local

32 MISO SPI output O local

  1. Not connected internally, must be left open.
  2. Not connected internally, it c an be left open or connected to GND externally.
  3. It must be connected to G ND, for safety reasons.

Table 3. TQFP32 pin-out (continued)

1.5 Maximum ratings

absolute maximum rated conditions for extended periods may affect device reliability. All maximum ratings can occur at the same time. internally shorted), all digital voltages are related to DGND. Operative voltage conditions are specified in Section 6. Table 4. Pin maximum ratings

maximum power dissipation can reach 1.6 W considering the worst case configuration.

1.6 Detailed block diagram

Figure 4. Detailed block diagram Table 4. Pin maximum ratings (continued)

PSIx interface and therefore lead to bit errors, a PI filter can be employed in the supply line. an external source and VSYNCx generated by the IC with external components. Figure 5. Supply line model for PSI5 b. The high supply voltage VSUP must be in the correct operative range of connected pins.

1.7 Power up sequence

When VDD is higher than the startup threshold and VB is available the IC is switched on. its internal voltage supplies. The following figure shows a power-up example. Figure 6. Power-up sequence of transceiver IC

2 Power supply

2.1 Internal supply

transceiver IC performs a power on reset (POR). Figure 7. Internal power supply and reset generation Figure 8. Input structure of supply

A ceramic capacitor with a typical capacitance of 100 nF is required as a blocking capacitor close to the pins VDD and VB. The internal supply voltages VINTD (supply voltage for digital part) and VINTA (supply voltage for analog part) are monitored for under voltage and over voltage to prevent the transceiver IC from malfunction. The reference for the voltage monitoring is a bandgap voltage, supplied by VINTA. The device integrates two separated instances of bandgap voltage regulators; one of these bandgaps is used as voltage reference for the internal regulators, while the other one is used for monitoring the voltage levels. In case of under or over voltage, the transceiver IC is set into reset: outside reset thresholds full functionality is granted. The functionality of the digital part only depends on the voltages on VINTD. In order to improve noise emissions and stability of the regulator, the digital supply line needs an external decoupling 100 nF ceramic capacitor to be connected between VINTD and DGND and close to them. DGND ground line is protected against ground loss scenarios. In case DGND line would be at least DGNDOPEN above the reference ground lines GND1/2, a POR is asserted. The transceiver IC returns to normal operation with full functionality as soon as the POR is released.

2.2 V AS supply and pre-regulator

The VAS pre-regulator sets the VAS voltage if no regulated voltage with the necessary value is available in the ECU. The pre-regulator is designed for two different regulated voltages at VAS: 5.3 V or 7.6 V, selectable by a SPI command. The supply of external FET can be chosen at application level according to the required voltage at VAS pin. Two possible applications are:  VAS typical of 5.3 V; external FET supplied by ECU internal voltage, typically 6 V .  VAS typical of 7.6 V; external FET directly supplied from battery, from 8 V to 35 V. Basic features:  Gate control for an external n-ch FET transistor with integrated charge pump stage  Gate control is switched on if no power on reset condition is present  Configurable output voltage: either 5.3 V or 7.6 V.

Figure 9. VAS application diagram When POR is active, the VGS output pin is driven low to keep external N-ch switched off. passive clamp is implemented on VGS. is high enough to allow proper regulation. regulated voltage in the ECU. internal analog/digital circuits is available.

2.3 Voltage supply for synch ronous pulse generation VSYNCx

gap between the first and second block).

circuit can be bypassed by disabling it through the dedicated SPI command (bit 12 of CH1_CR2, CH2_CR2, writable during PROG phase). The bootstrap blocks are automatically switched off in case the voltage on VB is high enough to allow proper regulation. In this case both CBx capacitors should be omitted. The VSYNCx voltage can supply a 2.5 V minimum sync pulse as per PSI5 v2.x low power mode down to VB = 4.8 V and a 3.5 V minimum sync pulse down to VB = 5.2 V, with a maximum quiescent current level of 35mA and down to minimum 200 µs period between sync pulses. The block is protected against reverse feeding to VB. The bootstrap module is fully functional while VB and VDD are all inside their specified voltage ranges.

2.4 Power supply for PSI5 sensor line

Basic features:  Reverse voltage protection structure  Voltage limitation and current limitation for PSIx input/output  Protection against negative voltages on PSIx transceiver pin due to ground shifts  Disconnection of PSIx from VAS in failure cases The PSI5 transceiver IC is supplied directly from the pin VAS. It includes blocks with the following functionalities:  Reverse voltage protection structure and gate driver block for – Voltage clamp on PSIx in case of V AS fault – Backward voltage supply bloc king mechanism from PSIx to VAS – Sensor supply by switching V AS to the PSIx pin – Disconnection of PSIx from the VAS if required or in failure cases  Under voltage detection block to implement cross coupling test between the two channels (see Section 3.7.5 and 4.2)  Receiver block for Sensor Data receive (see Section 3.1 for details). The reverse voltage protection structure is also used to switch off the PSIx transceiver channel, if:  the local junction temperature exceeds its maximum rating and the channel is in overcurrent  an overcurrent condition on PSIx is detected (STG)  a short to battery is detected  it is requested via SPI or RESETN pin. In case of short to battery on the PSIx lines, there is no interference to any other IC pin/supply including SPI. The two interfaces can be enabled by SPI command, and the enable has effect only if VAS under voltage signals are not asserted. If an over temperature condition (OT) occurs, the interface that is also in overcurrent condition is switched off and a failure bit is set. The fault bit is latched and cleared only when a SPI switch off command is sent for confirmation on the line that was automatically switched off. The shutoff of one interface does not affect the second interface.

interface must be first switched off by SPI and then switched on, as for over temperature. STG_MASK for every channel are set in the SPI registers. diagnostic register is set (SR2). (OLx in SR2) after a transient time. Figure 10. Block diagram Transceiver 1

2.5 Frequency references

The device comes with an integrated accurate oscillator, used for any of the internal circuitry, with no need of external connections or components. The nominal clock frequency is 16 MHz with a ±5% accuracy. Should the application need some more accurate timing reference, a discrete pin CLKIN is provided. An external clock reference can be connected to this pin. The PSI5 transceiver IC offers an integrated FLL module that tracks this input to provide a high accurate clock reference (±1%). This feature can be used especially if accurate timeslot control needs to be achieved. External signal on CLKIN can be configured as follows (see CLKIN_CFG bits in GCR1 SPI register):  1 MHz square signal  4 MHz square signal  No signal (Not connected pin) Pin CLKIN can be grounded when not used. The pin input circuit implements a pull-down structure. The FLL module tracking the CLKIN signal is off by default. The PSI5 transceiver IC implements a safety function for monitoring the device clock reference, both in case it is derived from the CLKIN signal through the FLL module or internally generated. In the first condition the monitoring is always activated, while in the second condition it can be enabled by programming in ST (storing a '1' in a dedicated OTP(c) bit) and another oscillator generator is used for monitoring.(d) When the CLKIN_CFG is set, the FLL tries to close the LOOP and a mask counter of T_CKMSK (16 ms MAX) is used to count the maximum transient time. During this time, regardless of the CLK frequency the CKER_DETECT is masked, i.e the device doesn't detect a clock error. After this time, if the CLKIN frequency is in the correct range, the loop is closed and the CLK frequency is inside the 1% tolerance; if the CLKIN frequency is outside the malfunction detecting range, a clock error is detected after a detection time T_CKERD, the device is reset and the CLK_FLT is set so that the µC can read the reset source. The T_CKERD and the transient during detection time depend on the CLKIN frequency behavior; the figure below shows the behavior of the internal oscillator as function of the external one. c. One Time Programmable bit: i t can be programmed by ST only. d. For clock error detection by i nternal monitor oscillator see errata n.3367, Section 7: Errata.

Figure 11. Internal oscillator vs external clock frequency Figure 12. FLL clock error detection

16 MHz ± 5%

16 MHz ± 1%

2.6 Reset handling

Four different sources are considered in resetting the IC:  POR (Power On Reset, see Section 2.1)  RESETN pin  SW_RESET  CKER_DETECT All these sources of reset, when asserted, will switch off the PSIx lines and reset to default value the device registers (including those registers for configuration). Additionally to the hardware resets (by pin/POR), a reset can also be initiated by software (SW_RESET). The command SW_RESET initiates a soft reset-sequence if all of the following conditions are fulfilled (see also the DCR register in SPI section):  unlocked state: it means that if the UNLOCK command is not received the command SW_RESET has no effect;  The command SW_RESET is sent in the next SPI communication of the unlock command. A SW_RESET initiates soft reset-sequence and resets all digital parts of the device, except POR and RST flag that is set in SR3 register.

3 Satellite interface

3.1 Receiver with digita l sampling and filtering

This module has the following features:  The output current signal is mirrored and converted to the digital domain  Automatic synchronization on entire PSI5 frames  Fast DAC digital conversion of sensed currents with digital filtering  Static DC current set point tracking of PSI5 quiescent current.  Tracking of modulated PSI5 current signal The quiescent current tracking can be configured to work in two ways (reg. ADVSET1, ADVSET3, bits FREEZE_DIS): continuous mode tracking or tracking between consecutive frames till the first edge of a new frame is recognized. In the second case, the quiescent current is frozen till the end of the frame. To recognize the PSI5 current signal level the receiver compares the digitally converted and filtered current with a threshold. This threshold can be fixed or dynamic, depending on the configuration selected by SPI (reg. ADVSET). In fixed threshold mode the user must program the right delta current threshold, according to the application requirements. The threshold is obtained as tracked quiescent current plus the programmed threshold. In dynamic threshold mode, the threshold is dynamically adapted considering the PSI5 current input signal. For detailed explanation on all the possible configurations refer to ADVSET registers section. Depending on the selected configuration, the threshold for the sensor signal can be permanently tracked, separately for each PSI5 interface. The IC is designed to compensate erratic changes of the quiescent current in the bus according to PSI5 standard requirements. The v2.x standard low power mode is not supported with dynamic threshold mode. Micro cuts up to 10µs do not affect the DC current tracking in a way that more than one frame will be lost. The PSI5 Receiver is designed to operate at:  83.3 Kbps typical (slow mode)  125 Kbps typical (standard mode)  189 Kbps typical (fast mode).

3.2 Manchester decoder and error detection

Basic features:  Detection of start bits "00"  Synchronization with sensor to ECU frame  Manchester decoding according to PSI5 specification (v 1.3 or v 2.x, depending on the chosen configuration) The Manchester decoder takes the bit stream which the receiver has as its output and decodes the incoming data frames from this bit stream. It can be programmed to measure the period of start bits sent by the sensors and double- check the timing of the following data bits with respect to the synchronization given by the start bits or to validate the data bits according to the PSI5 protocol baud rate configured by the microcontroller. The tolerance for timing checks is 20%: in case of timing error a Manchester error is reported. A Manchester Decoder Error occurs if one or more of the following are true:  Start bit error outside of selected operating range  Data length error or stop bit error  Bit time error (a data bit edge is not received inside the expected time window)  Timing violation on slot when standard timeslot monitor is enabled In case a Manchester error is detected the corresponding error code is set [v. Error codes table, Section 3.3.2].

3.3 Receive block

This block includes the buffer for incoming sensor data and diagnostic results. It includes:  PSI5 receive registers  Sensor data buffer  Interrupt generation for the microcontroller

3.3.1 PSI5 receive register

This module includes the sensor data storage and diagnostic. Figure 13. Block diagram of incoming data buffer The transceiver IC has a PSI5 Receive Register for each PSI5 transceiver. CRC calculation shows a wrong result, the Parity Error code is stored. The SPI register bit CRC_CK is valid for all sensors of both interfaces.

In case of PSI5 v2.x, the length of the data region can vary between k = 10 … 28 bits, with 1-bit granularity. The data region can be split into the following fields and regions:  Signal payload region 1 with data bits A0 … A[n-1] (scalable n = 10…24 with 1-bit granularity)  Signal payload region 2 with data bits B0 … B[m-1] (scalable m = 0…12 with 1-bit granularity)  Sensor status E0.. E[r-1] (optional r = 0, 1 or 2 bit) – This optional status bit can b e used to show that the data of the current frame are faulty.  Frame control, type of frame F0, …F[q-1] (optional q = 0, 1, 2, 3 or 4 bit) – This frame control can be used to number the frames which are sent after a sync pulse.  Serial (slow) messaging channel (optional) M0, M1 (optional 0 or 2 bit) Time slot monitoring The time slot monitoring is active only in synchronous mode. The time slot monitoring is required to check if the sensors connected to the transceiver work properly in terms of timing, i.e. if they are sending data frames within their defined time slot. Basic features:  3 configurable modes  Failure bit During a synchronous pulse period (TSYNC), a maximum number of 6 frames can be configured. Each frame has its own time slot, to be configured through dedicated configuration registers. The registers contain the reference time needed to check if the sensor data is transmitted during the defined time slot. The resolution of time slots is 1 µs. The time slot monitoring timings are applied starting from the internal sync pulse trigger. This internal trigger falls td_SPI (or td_SYNC, depending on sync pulse trigger configuration) after the external one (via SPI or SYNC pin). Three different configurations for the time slot monitoring are available:  Standard configuration: monitoring the correct start and end time of a unique frame within a time slot  Simple configuration: monitoring only the end time of a frame within a time slot  No monitoring configuration: monitoring is disabled and data are stored in successive slots. The time slot monitoring can be activated/deactivated separately for each interface (registers CHx_CR1, bits TSMx_SEL). In case of standard configuration, the IC accepts as valid frame in a timeslot only a frame which starts and ends within its timeslot; if more than one valid frame is received within its timeslot, only the last one received is kept. On the other side, in case frames span across slots, the frame is discarded and the error code 1FC (timing violation) is stored in the correspondent buffer; in this case the decoder is reset at every slot start. After this reset if a frame was being decoded, a slot error is set in the previous slot but no slot error is set. Then the Manchester FSM after reset checks again

in this timeslot, the old data are overwritten). In this mode slot error is never set. invalid (Manchester communication error). After reset, the default mode for the time slot monitoring is "monitoring disabled".

3.3.2 Sensor data buffer

cleared and a new data frame can be accepted. fetched by the µC before the next transmission cycle starts. The figure below shows how sensor buffers are updated in synchronous mode. Figure 16. Sensor buffer in synchronous mode diagram Table 5. Time (t0-t2) vs SensorData

of the data field. The lower 10 bits are filled with '0'. Table 6. Error codes in sensor communication

  1. Used only in case the CRC che ck computation is assigned to the IC (CRC_CK bit set to 1); otherwise the

sensor data will be written in the buffer. Table 7. Faults priority

2 Over Temperature channel 1F1

3 Short To Ground channel 1F1

4 Short To Battery channel 1F2

5 Leakage To Ground channel 1F1

6 Open Load channel 1F1

7 Manchester Error Sensor related 1FC

8 CRC/Parity Error Sensor related 1F8

10 Data Buffer Empty Sensor related 1F0

Table 5. Time (t0-t2) vs SensorData (continued)

Figure 17. Sensor buffer in asynchronous mode diagram highest priority is written in the FIFO. code 1F0 is written in the buffer. e. For the lock of the FIFO see errata n.1526, Section 7: Errata. Table 8. Time (t0-t7) vs SensorData

after SPI read. Buffer empty fault asserts also Global Status Bit. Section 3.7.3 and STSR register for details).

3.3.3 Interrupt generator

a microcontroller interrupt if the data buffers are filled with sensor data. when the receive buffer is empty. pin is set to low when all the buffers are empty. Figure 18. Block diagram with interrupt pins After reset, the output pin is configured as DOUTx.

3.3.4 Automatic storage of sensor initialization data

initialization data is stored in the transceiver IC and can be read via SPI. In case of serial messaging method, the data must be extracted at application layer.

Figure 19. Timing diagram triggered by the configuration bit READ_INIT_DATA on that channel. 1). In case only one interface is active, the IC can store up to 6 init data on that interface. both the interfaces, the init_data_rdy is set and the µC can read all the init data by SPI.

3.4 Upstream data buffer

Figure 20. ECU to sensor communication diagram upstream data buffer by the microcontroller. UDBx_BUSY is still '1', the write command is ignored and the error flag UDBx_FLT is set.

Besides if a new trigger is sent while the buffer is busy, again the command is ignored and the fault bit is set. The buffer register can be reset by writing 0x00FF for channel 1 (respectively 0xFF00 for channel 2) to the SPI register DCR. After such a reset, the module will flag that it is ready for new data. The behaviour of the sync pulse trigger generator then depends on the configuration of the transceiver IC:  In PSI5 1.3 and 2.x mode (tooth gap method), it will mask out (i.e. ignore) the incoming sync pulse trigger if the bit is '0'. The resulting gap is defined to be a '0' in the ECU-to- sensor communication.  In PSI5 2.x mode (pulse length method), it will generate a long sync pulse if the bit is '1' and a standard sync pulse otherwise. The transceiver IC provides a transparent interface for ECU-to-sensor communication. This means that any data in the upstream data buffer will directly be transmitted onto the PSIx interface. The CRC calculation and data layer handling are done by the microcontroller.

3.5 Trigger pulse gener ator for synchronous pulses

This module generates the trigger signals for the transceiver interfaces. It has the following sub-modules:  SPI-programmable sync pulse timer  SPI command triggering  2 pins named SYNC1, SYNC2 The module contains the sync pulse trigger generators (one for each transceiver). Basic features:  Generates the sync pulse trigger at the configured time intervals  Generates the sync pulse trigger upon the corresponding command via SPI or discrete SYNCx pins. The trigger pulse generator generates the trigger signal which the sync pulse generator uses as its input. The trigger pulse generator has five different configurations, which can be properly selected via SPI command:  Triggering via SPI without upstream data buffer. The microcontroller sends the corresponding SPI command for a sync pulse. The sync pulse trigger generator then internally generates the appropriate sync pulses, based on the specific SPI command sent.  Triggering via SPI with upstream data buffer. The microcontroller sends the corresponding SPI command for a sync pulse. Then the sync pulse trigger generator internally generates the appropriate sync pulses, depending on the value in the upstream data buffer.  Triggering via SYNCx pins without upstream data buffer (tooth gap method only). When the SYNCx pin is triggered, the sync pulse trigger generator internally generates the appropriate sync pulses, based on the trigger received on the input pin.

 Triggering via SYNCx pins with upstream data buffer. When the SYNCx pin is triggered, the sync pulse trigger generator internally generates the appropriate sync pulses, depending on the value in the upstream data buffer.  Triggering via trigger pulse timer: the transceiver IC automatically generates the sync pulses at fixed time intervals, depending on the value in the upstream data buffer. The default configuration at startup is to use the triggering via SYNCx pins without upstream data buffer. If the triggering with upstream data buffer is used and there aren't data to be sent to the sensor, a short pulse is sent. The switch matrix is configurable by an SPI command. It determines whether the sync pulses are triggered via SPI by the trigger generator (transceiver IC in mode 1) or by the external trigger pins (transceiver IC in mode 2). If the trigger pulse timer is used to generate the sync pulse trigger, the interval between two pulses on interface x is configured by the SPI register SYNC Pulse Timer (SPT). It's possible also to program the delay between interface 1 and interface 2 sync pulses through the SYNC_DELAY_PSI1_PSI2 bits in ADVSET2 register. In case the sync pulse trigger comes from SPI commands or SYNCx pins, the programmed pulse timer still has the functionality of a filtering time with respect to those triggering commands. If full flexibility for the sync pulse interval is required, use direct triggering either via SPI or direct interface.

3.6 Synchronous pulse generator

The Synchronous Pulse Generator is designed to generate synchronous pulses conform to The sync pulse is granted according to PSI5 standard with the Ibase current range up to 35 mA. If the pulse trigger generation is configured with an external trigger and without the upstream data buffer, the external source must manage the encoding via SPI CHCNT register (for tooth gap and pulse width methods) or via PIN (tooth gap method only), for what concerns the duration of the sync pulse (i.e. ECU to sensor communication), otherwise the IC manages the encoding (tooth gap or pulse width methods, specified in register GCR1, bit PSIx_TGAP_PW). An automatic hardware based slew rate control (SRC) ensures PSI5 compliant slew rates for the rising and falling edge of the sync pulse for an overall capacitive bus load of 15 to 107 nF. The Sync Pulse is shaped like raised cosine instead of trapezoidal to reduce EMC emission. During the duration of the sync pulse, the corresponding PSI5 receiver is frozen to avoid erroneous data detection. VDD, VAS and VB and other supply voltages are protected against reverse feeding from the sync pulse. The pulse length at PSIx will be generated using the Sync Pulse Trigger Generator. In case of trigger by pin without UDB, the Sync Pulse Generator starts the sync pulse with the positive edge of the trigger signal, after SYNCx pin filter. The duration of the sync pulse

Figure 21. Short (in case 1 µs < tw < 5 µs) Sync Pulse trigger, compliant to PSI5

3.7 Safety concepts

3.7.1 Voltage monitoring check

3.7.2 Sensor data consistency

f. For sync pulse triggering vi a pin see errata n.1822, Section 7: Errata.

performs a sensor data read operation via SPI, the L9663 returns the SID code to the MCU, along with the requested sensor data, for the MCU to check. If the SID is used, a diagnostic bit (G bit) is also present in the SPI frame sent to the MCU. This bit signals the occurrence of specific faults, namely an under voltage on the VAS supply, or a parity check fault on a critical register(g) . The data register containing SID bits and PSI5 sensor data is written with one single access: data from the Manchester decoder is identified with reference to the time slot counter and written in the same access when the information of the transmitting sensor is written. Each failure case, CRC checksum and SID identification mismatch, can be forced via test SPI commands through STS and STSR register after a special "self test" mode is entered through an SPI command (see DCR (PROG) register for details).

3.7.3 Buffer empty check

As described in Section 3.3.2, the IC always checks that, after a valid data read, the code 1F0 is written in the buffer. This feature is the "Buffer Empty check", implemented for safety: if the check fails a Buffer Empty Fault is asserted and latched (BEx bits in SR2 register) and it is cleared after reading through SPI. In order to allow the µC to test this feature at startup or during normal operation, a Test of buffer empty check is provided in the STSR register (bit0). If this bit is set, after a read operation the old data is left in the buffer; in this way a buffer empty fault is set and the µC can test the safety feature.

3.7.4 DOUTx path check

DOUTx paths can be checked against fault conditions through dedicated test SPI register (STS register). In order to test the input structures of the connected microcontroller, the L9663 features a DOUTx test mode that allows test patterns to be applied on the two outputs DOUT1- DOUT2. The test mode can be entered via SPI and the test patterns can also be controlled via SPI commands. Test patterns can be composed only of static high or low signals, which can be selected via SPI. For failsafe reasons only one channel at a time can be switched into test mode. g. The fault "clock error" is not included in the G bit because in this case the device enters immediately reset state, if the bit REACTTIME of ADVSET2 register is '0' (default).

3.7.5 Cross coupling test

 XCT test both in master and slave mode is triggered only if both PSIx interfaces are off. and in this case the XCT results register will be reset. master mode, an "abort" flag will be set (XCT_ABT bit).  While XCT test is running a "busy" flag will be asserted (XCT_RUN bit).  Once XCT test is finished a "done" flag will be asserted (XCT_COMPL). Table 9. Doutx test mode bit value

10 DOUTTP

 Short to battery test – Enable PSI1 channel – Wait for a 512 µs time in order to reach steady state condition (short to ground and overcurrent masked in this phase) – Check psi1_stb='0': in case psi 1_stb='1' the fault flag is asserted and the channel 1 is not involved in the following tests – Switch off PSI1 channel and switch on I XCT pull down current for a 128 µs time on PSI1 interface – Once PSI5 line is supposed to be discharged (128 µs time elapsed), pull-down current is switched OFF – Enable PSI2 channel – Repeat the above flow for PSI2 channel  X coupling test phase 1 (only if channel 1 was not excluded in previous short to battery test) – Enable PSI1 channel, PSI2 channel switched off – Wait for 512 µs time in order to reach steady state condition and allow PSI under voltage filter time to elapse (short to ground and overcurrent masked in this phase) – Check psi1_uv='0' and psi2_uv='1' : in case of psi1_uv='1' a short to GND on PSI1 is detected while in case psi2_uv='0' a cross coupling is detected and XCT2_R bit is set (h) – Switch off PSI1 chann el and switch on IXCT pull down current for a 128 µs time – Once PSI5 line is supposed to be discharged (128 µs time elapsed), pull-down current is switched off.  X coupling test phase 2 (only if channel 2 was not excluded in previous short to battery test) – Enable PSI2 channel, PSI1 channel switched off – Wait for 512us time in order to reach steady state condition and allow PSI under voltage filter time to expire (short to ground and overcurrent masked in this phase) – Check psi2_uv='0' and psi1_uv='1' : in case of psi2_uv='1' a short to GND on PSI2 is detected while in case psi1_uv='0' a cross coupling is detected and XCT1_R bit is set – Switch off PSI2 chann el and switch on I XCT pull down current for a 128 µs time – Once PSI5 line is supposed to be discharged (128 µs time elapsed), pull-down current is switched off Short to battery test in master mode is executed in two phases for the two channels to avoid enabling simultaneously PSIx interfaces and avoid overloading ECU supply line. Cross coupling test in master mode stops automatically when the time required by this test is elapsed. Cross coupling test in slave mode can be stopped with "Abort cross coupling test" command; only in this case, the flag "cross-coupling test aborted" is not set, because this is not a faulty condition. h. Cross coupling test flags sw apped in master mode, see errata n.1830, Section 7: Errata.

4 Diagnosis

in case of negative voltages or excessive voltage on the PSIx outputs.

4.1 PSIx output vol tage clamping circuit

a possible over voltage fault on the VAS line. 16.5 V in sync pulse with a 50 mA typical sink current.

4.2 PSIx output unde r voltage monitoring

The under voltage monitoring detects a low voltage level of the sensor supply line PSIx. Figure 22. Timing for PSIx under voltage detection

The PSIx lines (sensor supply lines) are monitored for under voltage if the PSIx line is switched on. The current status of the under voltage comparators is shown in the SPI register SR2. The logical state of the voltage comparator is debounced internally by a filter. While any reset is active (POR, RESETN or SW_RESET), the PSIx lines are switched off. After reset is released, the failure bits are reset and the voltage supply at PSIx lines kept off.

4.3 PSIx short c ircuit detection

The short circuit monitoring detects a short of the sensor supply line PSIx to GND, limits the current to ISTG (max 130mA) for tIfilt and then switches off the affected PSIx line. Basic features:  Short to ground circuit monitoring with filter time  Automatic deactivation of the PSIx line in case of a short to GND  Readable via SPI The PSIx lines (sensor supply lines) are monitored to detect a short circuit to GND if the PSIx line is switched on. In this case, the corresponding fault SPI bit STGx in SR2 register is set to '1' and the PSIx line is switched off (the status of the interfaces is reported in SR3 register). The fault bit is latched and cleared only when a SPI switch off command for confirmation is sent on the line that was under short to ground condition. The current status (on/off) of the PSI interfaces can be read via SPI. The line can be switched on again by switching off and on via SPI. The logical state of the short to ground monitoring is debounced internally by a filter. The monitoring is deactivated during a configurable blanking time after startup of the interface. This time is selectable through BLANKING_SEL parameter in SPI register ADVSET1 (default value is 128 µs) During reset is active, the PSIx lines are switched off. After reset is released, the failure bits are reset and the voltage supply at PSIx lines can be switched on by SPI command. It is possible to reset the transceiver IC by sending an SPI command (SW Reset).

4.4 PSIx reverse voltage monitoring

Figure 23. Timing for PSIx reverse voltage detection cleared upon reading via SPI).

4.5 V AS under/over voltage monitoring

The VAS voltage is monitored for under voltage and over voltage. Figure 24. Timing for VAS under voltage detection

SPI bit VAS_UV in SR1 reg is set to '1' and it is latched and cleared upon read. for confirmation is sent. The current status (on/off) can be read via SPI (SR3). The regulator can be switched on again by switching off and on via SPI. to switch on the regulator (1 ms). During reset, the under/over voltage bits are set to 0.

4.6 Monitoring of Synchr onous Pulse amplitude

Figure 25. Timing for sync pulse voltage monitoring

The sync pulses(i) are monitored for under voltage, duration and rising edge transient speed. The circuit evaluates the output voltage versus internal sync trigger signal and sets the corresponding bit(s) in Status Register 1 (SR1):  Bit SYNCx_SLOW if a delayed sync pulse or pulse with Vt2< 2.5V /3.5V was generated (slow Vsync rising time)  Bit SYNCx_UV if the sync pulse amplitude goes below 2.5V/3.5V for a time longer than the specified filtering time (spec parameter tAsync_V). STB is detected by the over voltage monitoring (see Section 4.4). i. For sync pulse triggering vi a pin see errata n.1822, Section 7: Errata

L9663 Communication interface 105

5 Communication interface

As interface to the microcontroller, either the SPI interface or the direct interface shall be used. The following pins are used for SPI communication:  MOSI  MISO  SCLK  CS

5.1 Device registers

The following registers are available for writing configuration data and reading information data. Registers can be of 4 different types:  WO: writeable only  RO: readable only  R/W: both readable and writeable  RC : readable and cleared upon reading Device configuration registers are marked with "PROG". These registers can only be written before the microcontroller sends an EOP (End Of Programming) command through the Direct Command Register (DCR). The registers which have a special safety importance contain a parity bit (PAR) which must be written by the µC with an odd parity. A periodic check (every 150 us) is done and if a parity error is found on one of these registers the GBIT is set.

Communication interface L9663 48/106 DS11401 Rev 6 GCR1 (PROG) General Con figuration Register 1 Address: 000001 Type: R/W Description: 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 PAR DIS_ADD_MUX PSI2_EXT_UDB PSI2_TRIG_SEL PSI2_TGAP_PW PSI1_EXT_UDB PSI1_TRIG_SEL PSI1_TGAP_PW RESERVED CLKIN_CFG SIDG_EN CRC_CK VAS_SEL Default value: 1000000000000000 R/W [15] PAR: Register parity Odd parity bit for register bits [15:0] [14] DIS_ADD_MUX: SPI address multiplexing disable 0: address multiplexing enabled 1: address multiplexing disabled [13] PSI2_EXT_UDB: SYNC pulse generation for PSI5 interface 2 0: the trigger on SYNC2 pin or the SPI command determine the SYNC pulse length 1: the contents of UDB2 determine the SYNC pulse length (always true if timer enabled bit[12:11]=10) [12:11] PSI2_TRIG_SEL: SYNC pulse trigger source for PSI5 interface 2 00: SYNC pulse generated by SYNC2 pin 11: SYNC pulse generated by SYNC2 pin 01: SYNC pulse generated by SPI command 10: automatic SYNC pulse generation [10] PSI2_TGAP_PW: SYNC pulse method for PSI5 interface 2 This bit takes effect only in case bit [13] = 1 0: tooth gap method 1: pulse width method [9] PSI1_EXT_UDB: SYNC pulse generation for PSI5 interface 1 0: the trigger on SYNC1 pin or the SPI command determine the SYNC pulse length 1: the contents of UDB1 determine the SYNC pulse length(always true if timer enabled bit[8:7]=11) [8:7] PSI1_TRIG_SEL: SYNC pulse trigger source for PSI5 interface 1 00: SYNC pulse generated by SYNC1 pin 11: SYNC pulse generated by SYNC1 pin 01: SYNC pulse generated by SPI command 10: automatic SYNC pulse generation

L9663 Communication interface 105 [6] PSI1_TGAP_PW: SYNC pulse method for PSI5 interface 1 This bit takes effect only in case bit [9]=1 0: tooth gap method 1: pulse width method [5] RESERVED [4:3] CLKIN_CFG: Clock input configuration 00: no external clock used 11: no external clock used 01: 1MHz external clock 10: 4MHz external clock [2] SIDG_EN: SID and Gbit This bit takes effect only in case of payload of 10 or 16 bits 0: SID bits and G bit not used 1: SID bits and G bit used [1] CRC_CK: CRC / parity check on sensor data 0: the CRC bits on SPI MISO are those from the sensor 1: the CRC bits on SPI MISO are calculated by the transceiver [0] VAS_SEL: VAS voltage regulator output 0: 5.3 V 1: 7.6 V

Communication interface L9663 50/106 DS11401 Rev 6 CHCNT Channel Control Address: 000010 Type: R/W Description: 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 RESERVED RESERVED RESERVED RESERVED RESERVED VAS_EN SPI_SYNC_TRIG2 RESERVED MASK_SYNC2 PSI2_EN SPI_SYNC_TRIG1 RESERVED MASK_SYNC1 PSI1_EN Default value: 0000010001000010 R/W [15:11] RESERVED [10] PVAS_EN: Enable / disable VAS regulator 0: disabled 1: enabled [9:8] SPI_SYNC_TRIG2: SPI SYNC pulse trigger for PSI5 interface 2 00, 11: no SYNC pulse generated 01: short SYNC pulse 10: long SYNC pulse Notes: if interface 2 is off, these bits are ignored and no sync pulse is generated bits are evaluated only once, after writing; If upstream data buffer is used, both codes "01" and "10" are equivalent. Information on sync pulse length is provided by the UDB [7] RESERVED [6] MASK_SYNC2: SYNC pulse enable / disable for PSI5 interface 2 0: SYNC pulse disabled 1: SYNC pulse enabled (if in synchronous mode, otherwise ignored) [5] PSI2_EN: Enable PSI5 interface 2 0: interface off 1: interface on [4:3] SPI_SYNC_TRIG1: SPI SYNC pulse trigger for PSI5 interface 100: no external clock used 00: no SYNC pulse generated 11: no SYNC pulse generated 01: short SYNC pulse 10: long SYNC pulse Notes: if interface 1 is off, these bits are ignored and no sync pulse is generated. if interface 1 is on, these bits are evaluated only once, after writing; If upstream data buffer is used, both codes "01" and "10" are equivalent. Information on sync pulse length is provided by the UDB

L9663 Communication interface 105 NOPR No Operation Register Address: 000011 Type: R/W Description: SR1 Status Register 1 Address: 000100 Type: RC (latched and cleared on read, except if otherwise specified) Description: [2] RESERVED [1] MASK_SYNC1: SYNC pulse enable / disable for PSI5 interface 1 0: SYNC pulse disabled 1: SYNC pulse enabled (if in synchronous mode, otherwise ignored) [0] PSI1_EN: Enable PSI5 interface 1 0: interface off 1: interface on 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Default value: 0000000000000000 R/W Write into this register to perform no operation and read the Global Status Bits. 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 XCT_COMPL XCT_ABT XCT_RUN SPI_FLT OTP_CRC_ERR VAS_UV VAS_OV VAS_UVL SYNC2_TOUT UDB2_FLT SYNC2_SLOW SYNC2_UV SYNC1_TOUT UDB1_FLT SYNC1_SLOW SYNC1_UV Default value: RC [15] XCT_COMPL: Cross-coupling test completed [14] XCT_ABT: Cross-coupling test aborted [13] XCT_RUN: Cross-coupling test running [realtime] [12] SPI_FLT: SPI fault (CRC error, clock cycles, wrong H/L read operation on sensor data, register address not valid)

Communication interface L9663 52/106 DS11401 Rev 6 SR2 Status Register 2 Address: 000101 Type: RC (latched and cleared on read, except if otherwise specified) Description: [11] OTP_CRC_ERR: Error from OTP trimming bits [realtime] [10] VAS_UV: Under voltage detected on VAS. Latched bit [9] VAS_OV: Over voltage detected on VAS [realtime] [8] VAS_UVL: Under voltage detected on VAS. When below VVASU_off, VAS is switched off. Latched bit. Cleared upon VAS_EN=’0’ confirmation from MCU [7] SYNC2_TOUT: Exceeded tw timeout of 100 µs on SYNC2 pin during sync pulse (sync pulse driven by pin source) [6] UDB2_FLT: Write operation on Upstream Data Buffer 2 occurred while buffer is busy (i.e. UDB2_BUSY=1) [5] SYNC2_SLOW: No SYNC pulse generated, delayed SYNC pulse or SYNC voltage < 2.5V/3.5V on PSI5 interface 2 [4] SYNC2_UV: SYNC pulse < 2.5V/3.5V for a time longer than specified on PSI5 interface 2 [3] SYNC1_TOUT: Exceeded tw timeout of 100 µs on SYNC1 pin during sync pulse (sync pulse driven by pin source) [2] UDB1_FLT: Write operation on Upstream Data Buffer 1 occurred while buffer is not empty (i.e. UDB1_BUSY=1) [1] SYNC1_SLOW: No SYNC pulse generated, delayed SYNC pulse or SYNC voltage < 2.5V/3.5V on PSI5 interface 1 [0] SYNC1_UV: SYNC pulse < 2.5V/3.5V for a time longer than specified on PSI5 interface 1 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 XCT2_R BE2 OL2 STB2 LKG2 STG2 OT2 UV2/XCT_STG2 XCT1_R BE1 OL1 STB1 LKG1 STG1 OT1 UV1/XCT_STG1 Default value: RC [15] XCT2_R(1): Result of cross-coupling test on PSI5 interface 2 [14] BE2: Buffer empty fault on PSI5 interface 2 [13] OL2: Open load on PSI5 interface 2 [12] STB2Short to VBAT on PSI5 interface 2 Masked towards FSR2 status bit during cross coupling test [11] LKG2: Leakage to GND on PSI5 interface 2

L9663 Communication interface 105 [10] STG2: Short to GND on PSI5 interface 2 Cleared upon PSI2_EN='0' confirmation from MCU [9] OT2: Over temperature on PSI5 interface 2 Cleared upon PSI2_EN='0' confirmation from MCU [8] UV2/XCT_STG2: Under voltage on PSI5 interface 2 Masked towards FSR2 status bit during cross coupling test [real time bit except when XCT test is used] [7] XCT1_R: Result of cross-coupling test on PSI5 interface 1 [6] BE1: Buffer empty fault on PSI5 interface 1 [5] OL1: Open load on PSI5 interface 1 [4] STB1: Short to VBAT on PSI5 interface 1 Masked towards FSR2 status bit during cross coupling test [3] LKG1: Leakage to GND on PSI5 interface 1 [2] STG1: Short to GND on PSI5 interface 1 Cleared upon PSI1_EN='0' confirmation from MCU [1] OT1: Over temperature on PSI5 interface 2 Cleared upon PSI1_EN='0' confirmation from MCU [0] UV1/XCT_STG1: Under voltage on PSI5 interface 1 Masked towards FSR2 status bit during cross coupling test [real time bit except when XCT test is used] 1. Cross coupling test flags sw apped in master mode, see errata n.1830, Section 7: Errata.

Communication interface L9663 54/106 DS11401 Rev 6 SR3 Status Register 3 Address: 000110 Type: R (except if otherwise specified) Description: 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 STS_EN INITDATA_RDY VAS_ON FIFO_LCK RESERVED RESERVED SYNC2_STAT UDB2_BUSY PSI2_ON RESERVED SYNC1_STAT UDB1_BUSY PSI1_ON RESERVED CLK_FLT RST Default value: R [15] STS_EN: Enable self test status 0: disabled: STS/STSR register not WR (depending on PROG state STS will not be enabled) 1: enabled: STS/STSR register WR [14] INITDATA_RDY: Initialization data ready 0: not ready 1: ready [13] VAS_ON: VAS regulator status 0: disabled 1: enabled [12] FIFO_LCK: FIFO locked status Note: This bit is set to '1' when first data is read after FIFO has been filled up Cleared to '0' as soon as FIFO gets emptied [11:10] RESERVED [9] SYNC2_STAT: SYNC2 pin status 0: SYNC2 pin is low 1: SYNC2 pin is high for more than pin filter time. It can be used to detect short condition on this pin. Cleared upon read. [8] UDB2_BUSY: Upstream data buffer 2 is busy with data to be sent Not cleared upon read 0: not busy 1: busy [7] PSI2_ON: PSI 2 interface status 0: disabled 1: enabled [6] RESERVED

L9663 Communication interface 105 [5] SYNC1_STAT: SYNC1 pin status 0: SYNC1 pin is low, 1: SYNC1 pin is high for more than pin filter time. It can be used to detect short condition on this pin. Cleared upon read. [4] UDB1_BUSY: Upstream data buffer 1 is busy with data to be sent 0: not busy 1: busy [3] PSI1_ON: PSI 1 interface status 0: disabled 1: enabled [2] RESERVED [1] CLK_FLT: 0: no CLK fault 1: reset by internal CLK fault Cleared upon read. [0] RST: Reset occurred via internal POR, SW reset (via SPI) or HW reset (via RESET pin) 0: no reset 1: reset occurred Cleared upon read.

Communication interface L9663 56/106 DS11401 Rev 6 UDBCR Upstream Data Buffer Configuration Register Address: 000111 Type: R/W Description: 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 RESERVED UDB2_RDY UDB2_NOB RESERVED UDB1_RDY UDB1_NOB Default value: 0000000000000000 R/W [15] RESERVED [14] UDB2_RDY: Upstream data confirmation. 0: NOP . 1: UDB2 data are ready for sending, and are sent based on the trigger source. Note: This bit is used only once, after writing [13:8] UDB2_NOB: Number of bits in UDB2 to be sent on the PSI5 interface 2. 000000: 1 bit 000001: 2 bits 111111: 64 bits [7] RESERVED [6] UDB1_RDY: Upstream data confirmation. 0: NOP . 1: UDB1 data are ready for sending and are sent based on the trigger source. Note: This bit is used only once, after writing. [5:0] UDB1_NOB: Number of bits in UDB1 to be sent on the PSI5 interface 1 000000: 1 bit 000001: 2 bits 111111: 64 bits

L9663 Communication interface 105 UDB1_X (X = 1…4) Upst ream Data Buffer 1 Address: 001000 (UDB1_1) .. 001011 (UDB1_4) Type: R/W Description: UDB2_X (X = 1…4) Upst ream Data Buffer 2 Address: 001100 (UDB2_1) .. 001111 (UDB2_4) Type: R/W Description: 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 UDB1_X Default value: 0000000000000000 R/W The Upstream Data Buffer 1 (4x 16 bits = 64 bits) contains the bits to be sent to sensors as SYNC pulses on the PSI5 interface 1. The Upstream Data Buffer 1 is formed by the concatenation of UDB1_1, UDB1_2, UDB1_3 and UDB1_4:UDB1_1 (bits [63:48]), UDB1_2 (bits [47:32]), UDB1_3 (bits [31:16]), UDB1_4 (bits [15:0]). Data are sent on the interface with LSB first. If the upstream data buffer is empty (UDBx_BUSY flag is set to '0'), when the trigger source (SPI, SYNCx pin or timer) is active, a short sync pulse is generated on the interface by default (independently from tooth gap or pulse width method selection). 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 UDB2_X Default value: 0000000000000000 R/W The Upstream Data Buffer 2 (4x 16 bits = 64 bits) contains the bits to be sent to sensors as SYNC pulses on the PSI5 interface 2. The Upstream Data Buffer 2 is formed by the concatenation of UDB2_1, UDB2_2, UDB2_3 and UDB2_4: UDB2_1 (bits [63:48]), UDB2_2 (bits [47:32]), UDB2_3 (bits [31:16]), UDB2_4 (bits [15:0]). Data are sent on the interface with LSB first. If the upstream data buffer is empty (UDBx_BUSY flag is set to '0'), when the trigger source (SPI, SYNCx pin or timer) is active, a short sync pulse is generated on the interface by default (independently from tooth gap or pulse width method selection).

Communication interface L9663 58/106 DS11401 Rev 6 SPT (PROG) SYNC Pulse Timer Address: 010000 Type: R/W Description: 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 SPT1 SPT2 Default value: 0000100100001001 R/W [15:8] SPT1 Sync pulse timer 1: Period for automatic SYNC pulse generation on PSI5 interface 2 (if automatic SYNC pulse generation is selected). Minimum allowed period (if SYNC pulse trigger is generated by PIN or SPI). 00000000: 200 µs 00001001: 488 µs (default) 11111111: 8360 µs Steps of 32 µs. [7:0] SPT2 Sync pulse timer 2: Period for automatic SYNC pulse generation on PSI5 interface 1 (if automatic SYNC pulse generation is selected) Minimum allowed period (if SYNC pulse trigger is generated by PIN or SPI). 00000000: 200 µs 00001001: 488 µs (default) 11111111: 8360 µs Steps of 32 µs.

L9663 Communication interface 105 CH1_CR1 (PROG) Channel 1 Co nfiguration Register 1 Address: 010001 Type: R/W Description: 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 PAR RESERVED VT2_SYNC1_SEL DOUT1_SEL TSM1_SEL QC1_SEL READ_INIT_DATA1 NOTS1 RESERVED BR1 SYNC1_EN Default value: 0000000100000001 R/W [15] PAR: Register parity Odd parity bit for register bits [15:0] [14] RESERVED [13] VT2_SYNC1_SEL: Sync pulse voltage selector for channel 1 0: 2.5 V (PSI5 ver. 2.x common and low power mode) [12] DOUT1_SE: Configuration of DOUT1 pin 0: DOUT1 transmits PSI5 data 1: DOUT1 is an interrupt output [11:10] TSM1_SEL: Time slot monitoring on PSI5 channel 1 00: monitoring disabled 11: monitoring disabled 01: standard monitoring enabled 10: simple monitoring enabled [9:8] QC1_SEL: Quiescent current limit on PSI5 interface 1 00: standard current (19 mA) 01: extended current (35 mA) 11: extended current (35 mA) 10: extended current (45 mA) [7] READ_INIT_DATA1: Read sensor initialization data on ch 1 0: init data not stored 1:init data stored in dedicated buffer [6:4] NOTS1: Number of time slots on PSI5 interface 1 001: 1 time slot 110: 6 time slots others: default (3 slots)

Communication interface L9663 60/106 DS11401 Rev 6 [3] RESERVED [2:1] BR1: Baud rate of PSI5 interface 1 00: 125 kb/s 11: 125 kb/s 01: 189 kb/s 10: 83.3 kb/s [0] SYNC1_EN: Asynchronous or synchronous mode on PSI5 interface 1 0: asynchronous mode (SYNC pulse disabled, FIFO data buffer) 1: synchronous mode

L9663 Communication interface 105 CH1_CR2 (PROG) Channel 1 Co nfiguration Register 2 Address: 010010 Type: R/W Description: 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 RESERVED RESERVED RESERVED CH1_BT1_DIS1 CH1_CRCP2 CH1_NOB2 CH1_CRCP1 CH1_NOB1 Default value: 0000010100010100 R/W [15:13] RESERVED [12] CH1_BT1_DIS1: Bootstrap ch1 disable 0: enabled 1: disabled [11] CH1_CRCP2: Parity or CRC in time slot 2 0: CRC 1: parity [10:6] CH1_NOB2: Number of data bits in time slot 2 01000: 8 data bits 11100: 28 data bits others: default (20 bit) [5] CH1_CRCP1: Parity or CRC in time slot 1 0: CRC 1: parity [4:0] CH1_NOB1: Number of data bits in time slot 1 01000: 8 data bits 11100: 28 data bits others: default (20 bit) Settings programmed for time slot 1 are automatically applied to the other time slots in case at least one of the following conditions in CH1_CR1 register is verified: – READ_INIT_DATA1='1' – TSM1_SEL="10" (simple configuration) – SYNC1_EN='0' (asynchronous mode) Although the settings of time slot 1 are automatically applied by the logic to other time slots, these are not written in the corresponding configuration registers. In order to avoid not up-to-date readout of the time slot configuration by SPI and to prevent from wrong SPI errors in case of mismatches in the number of SPI transfers (refer to Section 5.2.4 case 2), it is recommended to confirm the time slot 1 configuration also for the other times slots.

Communication interface L9663 62/106 DS11401 Rev 6 CH1_CR3 (PROG) Channel 1 Co nfiguration Register 3 Address: 010011 Type: R/W Description: 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 RESERVED RESERVED RESERVED RESERVED CH1_CRCP4 CH1_NOB4 CH1_CRCP3 CH1_NOB3 Default value: 0000010100010100 R/W [15:12] RESERVED [11] CH1_CRCP4: Parity or CRC in time slot 4 0: CRC 1: parity [10:6] CH1_NOB4: Number of data bits in time slot 4 01000: 8 data bits 11100: 28 data bits others: default (20 bit) [5] CH1_CRCP3: Parity or CRC in time slot 3 0: CRC 1: parity [4:0] CH1_NOB3: Number of data bits in time slot 3 01000: 8 data bits 11100: 28 data bits others: default (20 bit)

L9663 Communication interface 105 CH1_CR4 (PROG) Channel 1 Co nfiguration Register 4 Address: 010100 Type: R/W Description: 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 RESERVED RESERVED RESERVED RESERVED CH1_CRCP6 CH1_NOB6 CH1_CRCP5 CH1_NOB5 Default value: 0000010100010100 R/W [15:12] RESERVED [11] CH1_CRCP6: Parity or CRC in time slot 6 0: CRC 1: parity [10:6] CH1_NOB6: Number of data bits in time slot 6 01000: 8 data bits 11100: 28 data bits others: default (20 bit) [5] CH1_CRCP5: Parity or CRC in time slot 5 0: CRC 1: parity [4:0] CH1_NOB5: Number of data bits in time slot 5 01000: 8 data bits 11100: 28 data bits others: default (20 bit)

Communication interface L9663 64/106 DS11401 Rev 6 SID1 (PROG) SID1 Conf iguration Register Address: 010101 Type: R/W Description: SID2 (PROG) SID2 Conf iguration Register Address: 010110 Type: R/W Description: 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 RESERVED SID1_3 SID1_2 SID1_1 Default value: 0010110101001001 R/W [15] RESERVED [14:10] SID1_3: SID bits for time slot 3 of PSI5 interface 1 [9:5] SID1_2: SID bits for time slot 2 of PSI5 interface 1 [4:0] SID1_1: SID bits for time slot 1 of PSI5 interface 1 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 RESERVED SID1_6 SID1_5 SID1_4 Default value: 0011100110101100 R/W [15] RESERVED [14:10] SID1_6: SID bits for time slot 6 of PSI5 interface 1 [9:5] SID1_5: SID bits for time slot 5 of PSI5 interface 1 [4:0] SID1_5: SID bits for time slot 4 of PSI5 interface 1

L9663 Communication interface 105 TSM1_ESn, n=1…6 (PROG) Time Slot Monitoring Channel 1, Earliest Start of Slot n Address: 010111 (TSM1_ES1) .. 011100 (TSM1_ES6) Type: R/W Description: default values: TSM1_TES1=0x002c , TSM1_TES2=0x00b5, TSM1 _TES3=0x8149, TSM1_ES4,5,6= 0x8000. TSM1_END (PROG) Time Slot Monito ring Channel 1, End of last Slot Address: 011101 Type: R/W Description: default value: 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 PAR RESERVED ST_CH1_n Default value: R/W [15] PAR: Odd parity bit for register bits [15:0] [14:12] RESERVED [11:0] ST_CH1_n: Start time of time slot n on PSI5 channel 1 The start time for the given time slot after the sync pulse trigger Steps of 1 µs 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 PAR RESERVED ET_CH1_n Default value: 1000000111101100 R/W [15] PAR: Odd parity bit for register bits [15:0] [14:12] RESERVED [11:0] ET_CH1_n: End time of time slot on PSI5 channel 1 The end time of the last given slot after the sync pulse trigger Steps of 1 µs

Communication interface L9663 66/106 DS11401 Rev 6 DCR (PROG) Direct Command Register Address: 011110 Type: WO Description: A write operation on this register carries out specific actions, depending on the bits written. 1) In order to perform a software reset of the L9663, the hexadecimal value 0x5555 ("unlock reset" command) has first to be written into this register, followed by the hexadecimal value 0xA5A5 ("reset" command) in the next SPI cycle. If this condition is not met, no software reset will occur. 2) In order to reset the UDB1 (Upstream Data Buffer 1) for ECU-to-sensor communication on the PSI5 channel 1, 0x00FF has to be written to this register. This also resets the UDB1_RDY bit in the UDBCR register to 0. 3) In order to reset the UDB2 (Upstream Data Buffer 2) for ECU-to-sensor communication on the PSI5 channel 2, 0xFF00 has to be written to this register. This also resets the UDB2_RDY bit in the UDBCR register to 0. 4) Writing the hexadecimal value 0x1111 into this register locks the configuration registers (EOP, End Of Programming), i.e. it is no longer possible to write the configuration registers (marked with PROG). The PROG bit in the SPI Status bits is '0' after the EOP command has been sent. This bit is reset to '1' at device reset (POR, RESETN, SW_RESET or clock error). 5) If value 0x9999 is written into this register the writing of STS or STSR registers is allowed. This is intended to grant a safety enabler for writing these couple of registers. If value 0x9999 is written in PROG phase, then both STS and STSR registers are allowed to be written, otherwise only STSR is allowed. To disable writing these two registers, value 0x9090 has to be written here. The status of the configuration (STS and STSR registers writeable or not) is shown with the STS_EN bit in the SR3 register. 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 DCR Default value: WO

L9663 Communication interface 105 CH2_CR1 (PROG) Channel 2 Co nfiguration Register 1 Address: 011111 Type: R/W Description: 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 PAR RESERVED VT2_SYNC2_SEL DOUT2_SEL TSM2_SEL QC2_SEL READ_INIT_DATA2 NOTS2 RESERVED BR2 SYNC2_EN Default value: 0000000110000001 R/W [15] PAR: Odd parity bit for register bits [15:0] [14] RESERVED [13] VT2_SYNC2_SEL: Sync pulse voltage selector for channel 2 0: 2.5 V (PSI5 ver. 2.x common and low power mode) [12] DOUT2_SEL: Configuration of DOUT2 pin 0: DOUT1 transmits PSI5 data 1: DOUT1 is an interrupt output [11:10] TSM2_SEL: Time slot monitoring on PSI5 channel 2 00: monitoring disabled 11: monitoring disabled 01: standard monitoring enabled 10: simple monitoring enabled [9:8] QC2_SEL: Quiescent current limit (extended+ current) on PSI5 interface 2 00: standard current (19 mA) 01: extended current (35 mA) 11: extended current (35 mA) 10: extended+ current (45 mA) [7] READ_INIT_DATA2: Read sensor initialization data on ch 2 0: init data not stored 1:init data stored in dedicated buffer. [6:4] NOTS2: Number of time slots on PSI5 interface 2 001: 1 time slot 110: 6 time slots others: default (3 slots)

Communication interface L9663 68/106 DS11401 Rev 6 CH2_CR2 (PROG) Channel 2 Co nfiguration Register 2 Address: 100000 Type: R/W Description: [3] RESERVED [2:1] BR2: Baud rate of PSI5 interface 2 00: 125 kb/s 11: 125 kb/s 01: 189 kb/s 10: 83.3 kb/s [0] SYNC2_EN: Asynchronous or synchronous mode on PSI5 interface 2 0: asynchronous mode (SYNC pulse disabled, FIFO data buffer) 1: synchronous mode 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 RESERVED RESERVED RESERVED CH2_BT_DIS2 CH2_CRCP2 CH2_NOB2 CH2_CRCP1 CH2_NOB1 Default value: 0000010100010100 R/W [15:13] RESERVED [12] CH2_BT_DIS2: Bootstrap ch2 disable 0: enabled 1: disabled [11] CH2_CRCP2: Parity or CRC in time slot 2 0: CRC 1: parity [10:6] CH2_NOB2: Number of data bits in time slot 2 01000: 8 data bits 11100: 28 data bits others: default (20 bit) [5] CH2_CRCP1: Parity or CRC in time slot 1 0: CRC 1: parity

L9663 Communication interface 105 CH2_CR3 (PROG) Channel 2 Co nfiguration Register 3 Address: 100001 Type: R/W Description: [4:0] CH2_NOB1: Number of data bits in time slot 1 01000: 8 data bits 11100: 28 data bits others: default (20 bit) Settings programmed for time slot 1 are automatically applied to the other time slots in case at least one of the following conditions in CH2_CR2 register is verified: – READ_INIT_DATA2 = '1' – TSM2_SEL = ‘10’ (simple configuration) – SYNC2_EN = '0' (asynchronous mode) Although the settings of time slot 1 are automatically applied by the logic to other time slots, these are not written in the corresponding configuration registers. In order to avoid not up-to-date readout of the time slot configuration by SPI and to prevent from wrong SPI errors in case of mismatches in the number of SPI transfers (refer to Section 5.2.4 case 2), it is recommended to confirm the time slot 1 configuration also for the other times slots. 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 RESERVED RESERVED RESERVED RESERVED CH2_CRCP4 CH2_NOB4 CH2_CRCP3 CH2_NOB3 Default value: 0000010100010100 R/W [15:12] RESERVED [11] CH2_CRCP4: Parity or CRC in time slot 4 0: CRC 1: parity [10:6] CH2_NOB4: Number of data bits in time slot 4 01000: 8 data bits 11100: 28 data bits others: default (20 bit) [5] CH2_CRCP3: Parity or CRC in time slot 3 0: CRC 1: parity [4:0] CH2_NOB3: Number of data bits in time slot 3 01000: 8 data bits 11100: 28 data bits others: default (20 bit)

Communication interface L9663 70/106 DS11401 Rev 6 CH2_CR4 (PROG) Channel 2 Co nfiguration Register 4 Address: 100010 Type: R/W Description: 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 RESERVED RESERVED RESERVED RESERVED CH2_CRCP6 CH2_NOB6 CH2_CRCP5 CH2_NOB5 Default value: 0000010100010100 R/W [15:12] RESERVED [11] CH2_CRCP6: Parity or CRC in time slot 6 0: CRC 1: parity [10:6] CH2_NOB6: Number of data bits in time slot 6 01000: 8 data bits 11100: 28 data bits others: default (20 bit) [5] CH2_CRCP5: Parity or CRC in time slot 5 0: CRC 1: parity [4:0] CH2_NOB5: Number of data bits in time slot 5 01000: 8 data bits 11100: 28 data bits others: default (20 bit)

L9663 Communication interface 105 SID3 (PROG) SID3 Conf iguration Register Address: 100011 Type: R/W Description: SID4 (PROG) SID4 Conf iguration Register Address: 100100 Type: R/W Description: 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 RESERVED SID_CH2_S3 SID_CH2_S2 SID_CH2_S1 Default value: 0100111001010001 R/W [15] RESERVED [14:10] SID_CH2_S3: SID bits for time slot 3 of PSI5 interface 2 [9:5] SID_CH2_S2: SID bits for time slot 2 of PSI5 interface 2 [4:0] SID_CH2_S1: SID bits for time slot 1 of PSI5 interface 2 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 RESERVED SID_CH2_S6 SID_CH2_S5 SID_CH2_S4 Default value: 0101101010110100 R/W [15] RESERVED [14:10] SID_CH2_S6: SID bits for time slot 6 of PSI5 interface 2 [9:5] SID_CH2_S5: SID bits for time slot 5 of PSI5 interface 2 [4:0] SID_CH2_S4: SID bits for time slot 4 of PSI5 interface 2

Communication interface L9663 72/106 DS11401 Rev 6 TSM2_ESn, n=1…6 (PROG) Time Slot Monitoring Channel 2, Earliest Start of Slot n Address: 100101 (TSM1_ES1) .. 101010 (TSM1_ES6) Type: R/W Description: default values: TSM2_TES1=0x002c, TSM2_TES2=0x00b5, TSM2 _TES3=0x8149, TSM2_ES4,5,6= 0x8000. TSM2_END (PROG) Time Slot Monito ring Channel 2, End of last Slot Address: 101011 Type: R/W Description: 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 PAR RESERVED ST_CH2_n Default value: 1000000000000000 R/W [15] PAR: Odd parity bit for register bits [15:0] [14:12] RESERVED [11:0] ST_CH2_n: Start time of time slot n on PSI5 channel 2 The start time for the given time slot after the sync pulse trigger Steps of 1 µs 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 PAR RESERVED ET_CH2_n Default value: 1000000111101100 R/W [15] PAR: Odd parity bit for register bits [15:0] [14:12] RESERVED [11:0] ET_CH2_n: End time of time slot on PSI5 channel 2 The end time of the last given slot after the sync pulse trigger Steps of 1 µs

L9663 Communication interface 105 STS (PROG) Self-Test Setting - prog time Address: 101100 Type: R/W Description: 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 FCRCM RESERVED DOUTTP DOUTSEL RESERVED Default value: 0000000000000000 R/W [15] FCRCM: Force CRC mismatch on MISO 0: NOP 1: the least significant bit of CRC is inverted [14:11] RESERVED [10] DOUTTP Value ('0' or '1') to be output on DOUTx pin [9:5] DOUTSEL: DOUTx channel activation 10101: DOUT1 10110: DOUT2 others: ignored [4:0] RESERVED

Communication interface L9663 74/106 DS11401 Rev 6 STRS Self-Test Setting - run time Address: 101101 Type: R/W Description: 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 RESERVED FSIDM FTSIDM RESERVED ACCT SCCT RESERVED TBEC Default value: 0000000000000000 R/W [15] RESERVED [14] FSIDM: Force SID mismatch 0: NOP 1: the behavior of the MUX which selects SID, CRC/parity and Number of bits, is changed according to the following table: slot1 <-->slot2 slot3<-->slot4 slot6<-->slot5 [13] FTSIDM: Force TSID mismatch 0: NOP 1: the behavior of MUX that selects sensor data (and SID) for each time slot is modified in this way: – slot2 sensor data -> slot1 sensor data – slot4 sensor data ->slot3 sensor data – slot6 sensor data ->slot5 sensor data Sensor data of time slots 1, 3 and 5 keep a buffer empty value. [12:6] RESERVED [5] ACCT: Abort cross-coupling test 0: NOP 1: Stop cross-coupling test immediately [4:3] SCCT: Start cross-coupling test 11: ignored 00: ignored 01: start cross-coupling test in master mode 10: start cross-coupling test in slave mode [2:1] RESERVED [0] TBEC: Test buffer empty check 0 : after a read operation 1F0 is written into the buffer (normal operation) 1 : after a read operation old data are left In the buffer

L9663 Communication interface 105 ADVSET1 (PROG) Advanced Settings 1 Address: 101110 Type: R/W Description: Advanced settings for interface 1 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 STG_MASK FIXED_THR_SEL RESERVED TRACKING_SEL BLANKING_SEL DATA_FILT_SEL FREEZE_DIS RESERVED FIXED_THR Default value: 0100010000000000 R/W [15] STG_MASK: Short to ground does not switch off channel 0: short to ground switches off the channel after filter time 1: short to ground does NOT switch off the channel [14:11] FIXED_THR_SEL: Fixed threshold setting for PSI5 channel 1 Ibase + 5.5mA + (15-5.5)/16*bits[14:11]mA (1) [10] RESERVED [9] TRACKING_SEL 0: Standard threshold tracking algorithm (default, recommended) 1: Fast tracking algorithm [8:7] BLANKING_SEL: Blanking time selector at sensor startup: 00/11 : 128 µs 01 : 5 ms 10: 10 ms [6:3] DATA_FILT_SEL: Deglitch filter adjust Baud rate = 189K: filter time = (16 + <DATA_FILT_SEL>) * Tosc Baud rate = 125K or 83.3K: filter time = (24 + <DATA_FILT_SEL>) * Tosc Note:Tosc is the period of the 16 MHz oscillator [2] FREEZE_DIS: Freezing of base current tracking after start bits are detected 0: frozen 1: not frozen [1] RESERVED [0] FIXED_THR: Adaptive / fixed threshold 0: adaptive threshold 1: fixed threshold 1. The selectable threshold is i n the range: Ibase+5.5 mA to Ibase+14.4 mA

Communication interface L9663 76/106 DS11401 Rev 6 ADVSET2 (PROG) Advanced Settings 2 Address: 101111 Type: R/W Description: Advanced settings for interface 2 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 REACTTIME RESERVED BITTIME_H_DET2 PERIOD_M_DIS2 STBIT_DC_CK_DIS2 STBITERR_RST_CNT2 RESERVED BITTIME_H_DET1 PERIOD_M_DIS1 STBIT_DC_CK_DIS1 STBITERR_RST_CNT1 SYNC_DELAY_PSI1_PSI2 Default value: 0000000000000000 R/W [15] REACTTIME: Reaction time for FLL module reset after error detection 0: 0ms 1: 20ms [14:13] RESERVED [12] BITTIME_H_DET2: Manchester decoder Bit time error detect on PSI2 0: bittime too high error is not detected as error 1: bittime too high error is detected as error [11] PERIOD_M_DIS2: Disable bit time Period measurement for frame decoding on PSI2 0: measurement of start bits period enabled 1: measurement of start bits period disabled [10] STBIT_DC_CK_DIS2: Duty cycle check (DC>0.25) on start bits 0: duty cycle check enabled 1: duty cycle check disabled [9] STBITERR_RST_CNT2: Manchester decoder Bit counter reset upon start bit error 0: start bit error does not reset the counter 1: start bit error resets the counter [8:7] RESERVED [6] BITTIME_H_DET1: Manchester decoder Bit time error detect on PSI1 0: bittime too high error is not detected as error 1: bittime too high error is detected as error [5] PERIOD_M_DIS1: Disable bittime Period measurement for frame decoding on PSI1 0: measurement of start bits period enabled 1: measurement of start bits period disabled

L9663 Communication interface 105 ADVSET3 (PROG) Advanced Settings 3 Address: 110000 Type: R/W Description: Advanced settings for interface 3 [4] STBIT_DC_CK_DIS1: Duty cycle check (DC>0.25) on start bits 0: duty cycle check enabled 1: duty cycle check disabled [3] STBITERR_RST_CNT1: Manchester decoder Bit counter reset upon start bit error 0: start bit error does not reset the counter 1: start bit error resets the counter [2:0] SYNC_DELAY_PSI1_PSI2: SYNC pulse time delay between PSI5 interface 1 and 2 in case of automatic SYNC pulse generation This bit takes effect only in case of automatic generation on both interfaces 000: no delay 001 - 111: 2µs/LSB 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 STG_MASK FIXED_THR_SEL RESERVED TRACKING_SEL BLANKING_SEL DATA_FILT_SEL FREEZE_DIS RESERVED FIXED_THR Default value: 0100010000000000 R/W [15] STG_MASK: Short to ground does not switch off channel 0: short to ground switches off the channel after filter time 1: short to ground does NOT switch off the channel [14:11] FIXED_THR_SEL: Fixed threshold setting for PSI5 channel 2 Ibase + 5.5mA + (15-5.5)/16*bits[14:11]mA (1) [10] RESERVED [9] TRACKING_SEL: 0: Standard threshold tracking algorithm (default, recommended) 1: Fast tracking algorithm [8:7] BLANKING_SEL: Blanking time selector at sensor startup: 00 : 128 µs 11: 128 µs 01: 5 ms 10: 10 ms

Communication interface L9663 78/106 DS11401 Rev 6 ADVRD1 Advanced Read 1 Address: 110010 Type: RO Description: [6:3] DATA_FILT_SEL: Deglitch filter adjust Baud rate = 189K: filter time = (16 + <DATA_FILT_SEL>) * Tosc Baud rate = 125K or 83.3K: filter time = (24 + <DATA_FILT_SEL>) * Tosc Note: Tosc is the period of the 16 MHz oscillator [2] FREEZE_DIS: Freezing of base current tracking after start bits are detected 0: frozen 1: not frozen [1] RESERVED [0] FIXED_THR: Adaptive / fixed threshold 0: adaptive threshold 1: fixed threshold 1. The selectable threshold is i n the range: Ibase+5.5 mA to Ibase+14.4 mA. 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 RESERVED BASE1 Default value: R/W [15:10] RESERVED [9:0] BASE1: Base current level on PSI5 channel 1

L9663 Communication interface 105 ADVRD2 Advanced Read 2 Address: 110011 Type: RO Description: ADVRD3 Advanced Read 3 Address: 110100 Type: RO Description: 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 RESERVED DELTA1 Default value: RO [15:10] RESERVED [9:0] DELTA1: Delta current level I(threshold) - I(base) on PSI5 channel 1 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 RESERVED THRESH1 Default value: RO [15:10] RESERVED [9:0] THRESH1: Threshold current level on PSI5 channel 1 (absolute value)

Communication interface L9663 80/106 DS11401 Rev 6 ADVRD4 Advanced Read 4 Address: 110101 Type: RO Description: ADVRD5 Advanced Read 5 Address: 110110 Type: RO Description: 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 RESERVED BASE2 Default value: RO [15:10] RESERVED [9:0] BASE2: Base current level on PSI5 channel 2 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 RESERVED DELTA2 Default value: RO [15:10] RESERVED [9:0] DELTA2: Delta current level I(threshold) - I(base) on PSI5 channel 2

L9663 Communication interface 105 ADVRD6 Advanced Read 6 Address: 110111 Type: RO Description: DEVID Device Version ID Address: 111000 Type: RO Description: 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 RESERVED THRESH2 Default value: RO [15:10] RESERVED [9:0] THRESH2: Threshold current level on PSI5 channel 2 (absolute value) 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 RESERVED VER_ID Default value: RO [15:10] RESERVED [9:0] VER_ID: Device Version ID Static value for silicon version. b<9:6>: ST reserved b<5:3>: mask set reference "000"=A,"001"=B,… b<2:0>: mask set revision "000"=A,"001"=B,…

5.2 SPI interface

5.2.1 Physical layer a nd signal description

Figure 26. SPI interface line is in high impedance when CS is high. the device with cabled address "00". frame matches the device address. This feature can be disabled by SW, writing a dedicated SPI bit. internal shift registers are shifted out on the MISO line on the rising edge.

L9663 Communication interface 105 MISO This output signal is used to transfer data serially out of the device. Data is shifted out on the rising edge of Serial Clock (SCLK). MISO is in high impedance under POR condition.

5.2.2 Clock and da ta characteristics

A microcontroller with its SPI peripheral running in the following mode can drive the SPI: CPOL = '0' and CPHA = '1'. The communication frame starts with the falling edge of the CS (Communication Start). SCLK has to be low. The MOSI data are then latched on all following falling SCLK edges into the internal shift registers. After Communication Start, the MISO will leave tri-state and shift the MSB of the output data on MISO. On all following rising SCLK edges data are shifted out through the internal shift registers to MISO. The communication frame is finished with the rising edge of CS. If a valid communication took place (e.g. correct number of SCLK cycles), the operation requested will be performed (Write or Clear operation).

Communication interface L9663 84/106 DS11401 Rev 6

5.2.3 Frame definition

Global status bits (standard mode) Global status bits (address multiplexing mode) Type: R The global status bits are shifted out on the MISO line on every SPI access. They provide information about the current device status.

5.2.4 Communication frames

In the following frames, all fields are written with MSB at left side and 'X' represents a "don't care" value. The bit RW is used to select the operation type on the internal register: read (RW=0), write (RW=1). CRC on MOSI is calculated over bits 31:5, with "000" appended after LSB. CRC on MISO instead, depends on the setting of GCR1[1]: a) CRC calculated from the sensor. b) CRC calculated over MISO bits 26:3, with "000" appended after LSB. 31 30 29 28 27 26 SPIE FSR1 FSR2 RSTB PROG GSB 31 30 29 28 27 26 - - - RSTB PROG GSB Bit Description [31] SPIE: SPI error The SPIE bit is a logical OR combination of errors related to wrong SPI communication (wrong SCLK count, wrong CRC, wrong SPI operation). It is also reported as SR1[12] bit and it is automatically cleared when this register is read. [30] FSR1: Fault status register 1 flag The FSR1 bit is set to '1' if at least one of the bits SR1[11:0] is active. [29] FSR2: Fault status register 2 flag The FSR2 bit is set to '1' if at least one of the bits SR2[14:8] or SR2[6:0] is active. [28] RSTB: Reset bit The RSTB bit indicates a device reset (POR, RESETN or SW_RESET). In case this bit is set, all internal Control Registers are set to their default values and kept in that state until the bit is cleared after a read access on SR3 register and the fault is not present anymore. [27] PROG: End of programming The EOP bit indicates the end of the device programming phase (PROG registers). [26] GSB: Global Status Bit The GSB bit is a logical OR combination of Bit 31 to Bit 27 and buffer empty error bit. This stands also for address multiplexing mode.

Figure 29. Sensor data reading (see Table 6 on page 31). The lower 10 bits are filled with '0'.

L9663 Communication interface 105 SPI error handling The SPI message from the external microcontroller is monitored. The following errors are detected:  the CRC on the MOSI line is not correct;  incorrect SPI operation (e.g. an attempt to write a read-only register);  the number of SPI clock cycles is not equal to 32. In case any of the above-mentioned errors is detected, the MOSI message is rejected, the SPI failure bit in the SR1 register is set and the SPIE status bit in the next MISO message is set to '1'.

5.3 Direct interface

The direct interface has the following features:  DOUTx output for Manchester-coded sensor data  SYNCx input for synchronous pulse voltage trigger  Deglitch filter for SYNCx input of PSI5 transceiver The reference voltage for the threshold levels of DOUTx pins is VDD. The direct interface is only used in transceiver IC mode 2 (data decoding in the µC). To use direct mode slot monitor should be disabled on the channel. In order to have good device functionality all registers, except the ones listed below, must be configured if default values do not match the application.(j) The registers that do not need a configuration are the following: SIDx, TSMx_ESy, TSMx_END. Optional configuration: SPT (if sync pulse period is smaller than 500 µs), ADVSET1/2/3 if a particular set of tracking is required, UDBCR, UDBx_y to use tooth gap method, DCR, STS, STSR. j. Registers needing a configurat ion: CHCNT, CHx_CR1, CHx_CR2, CHx_CR3, CHx_CR4, GCR1.

6 Electrical characteristics

Table 10. Operating conditions

  1. Unless otherwise specified.

Table 11. VINTx internal supply

Table 12. VAS supply

  1. This voltage ripple, that will anyhow not exceed minimum V AS voltage value, does not lead to corrupted

Table 13. VAS external MOS

  1. Main parameters for choice of external component.

Table 14. VAS pre regulator

5.3 V output selection

7.6 V output selection

Table 15. VSYNCx are long (for logical 1, pulse width); VB = 5.2 V. Table 16. PSI5 output supply Max. output voltage excluding sync. Max. output voltage including sync.

Table 17. PSI5 receiver

  1. Also 8 bit compatibility according to PSI5 v1.3.

Table 16. PSI5 output supply (continued)

Figure 30. Sync generator Table 18. Sync generator

  1. Only the short sync pulse can be triggered by PIN (tw ≤5 µs), see errata 1822, Section 7.

Table 19. Reset Table 20. VAS under/over voltage monitoring Table 18. Sync generator (continued)

Table 21. Synchronous pulse amplitude monitoring

  1. The sync pulse amplitude and the diagnostic threshold voltage level are referred to the inputs of the

difference amplifier, i.e. VAsync = V(PSIx-VAS). Table 22. Time slot monitoring Table 23. Digital I/O Table 24. Frequency references

6.1 SPI interface

Figure 31. SPI communication timing diagram Table 24. Frequency references (continued)

Table 25. SPI communication timing Table 26. Direct interface

deglitch filter with default value. Table 26. Direct interface (continued)

7 Errata

Table 27. Errata

1526 Asynchronous

registers of the 2 PSI5 channels.

1822 Sync Pulse

depending on the trigger pulse duration tw.

1830 Cross coupling

3367 Clock monitor by

(burning a dedicated OTP bit). If enabled it could detect false errors. => Activation is forbidden.

8 Package information

specifications, grade definitions and product status are available at: www.st.com. Figure 32. TQFP32 (7x7x1.0 mm exp. pad down) package outline

Table 28. TQFP32 (7x7x1.0 mm exp. pad down) package mechanical data

Figure 33. VFQFPN-28 (5x5x1.0 mm) package outline Table 29. VFQFPN-28 (5x5x1.0 mm) package mechanical data

Table 29. VFQFPN-28 (5x5x1.0 mm) package mechanical data (continued)

9 Revision history

Table 30. Document revision history 19-Jan-2016 1 Initial release. qualified in Features section. tLatency_Jitter_ DOUTx parameter. – Section 5.2.4: Communication frames.