SPI Protocol of the TLE941xy family

Similar documents
NovalithIC H-Bridge Demo Board

Smart High-Side Power Switch for Industrial Applications One channel: 1 x 1 Ω

Application Note No. 097

Operating temperature T a

Industrial PROFET. Universal Application Board User s Manual

Smart High-Side Power Switch BSP742RI PG-DSO8. AEC qualified Green product (RoHS compliant)

LOW EMI PWM INTELLIGENT POWER HIGH SIDE SWITCH

XE166 Family AP Application Note. Microcontrollers. X E D r i v e C a r d H a r d w a r e D e s c r i p t i o n Board REV.

Relaisdriving with HITFETs and SPIDERs

Application Note, V 1.1, Feb AP DAP Connector. Microcontrollers

TLS202B1. Demonstration Board Manual. Automotive Power. Demonstration Board Manual. Rev. 1.0,

PROFET TM + Demoboard. Automotive Power. Smart High-Side Power Switch - Demoboard Description. Rev. 1.4,

XC82x/XC83x. DMX512 Receiving Device with XC836. Application Note. Microcontrollers AP08131 V1.1,

Application Note, V1.0, Jul AP08049 XC886/888CLM. Migration of Flash to ROM Device: Memory Protection Configurations.

XC2000 Family AP Application Note. Microcontrollers. XC2236N Drive Card Description V1.0,

Application Note, V 1.1, Apr AP08006 C868. Interfacing SPI/I2C Serial EEPROM with C868 Microcontroller. Microcontrollers. Never stop thinking.

Application Note, V1.0, Jul AP XC16x. Interfacing the XC16x Microcontroller to a Serial SPI EEPROM. Microcontrollers

Application Note, V1.0, Aug AP08064 XC866/886/888. Safeguarding the Microcontroller under Out-of-Spec Noise Conditions.

Dual H-Bridge shield. Dual H-Bridge shield - board user manual. Shield for DC motor control with IFX9202. About this document.

Chip Card & Security ICs SLE Intelligent 1024 Byte EEPROM with Write Protection and Programmable Security Code

TLT807B0EPV Demoboard

Scope: SW Installation: Start the Package PROG-KIT. Current. Page 1

AN4241 Application note

Power Management & Drives. Application Note. February AN-EVAL 2x8-ISO1H815G-1

Chip Card & Security ICs SLE Intelligent 256-Byte EEPROM with Write Protection function and Programmable Security Code

TxD GND V CC. RxD WAKE V IO SCLK MISO. (Top-side x-ray view) SCLK INH

AP XC2000 & XE166 Families. Design Guidelines for XC2000 & XE166 Microcontroller Board Layout. Microcontrollers

Application Note AN V1.3 August Module with adapted driver electronics

Application Note TLE9252V. About this document. Application Note. Safety Recommendations Z8F

Documentation Addendum, V1.2, Aug TC Bit Single-Chip Microcontroller Delta BC-to-BE Step. Microcontrollers

Application Note - PCB Layout & PIN Behavior Assessment

ASCLIN Asynchronous Synchronous Interface

Design Guideline for TC1782 Microcontroller Board Layout

Application Note No. 100

AP16050 SAB C161V/K/O. Emulating an asynchronous serial interface (ASC) via software routines. Microcontrollers. Application Note, V 1.0, Feb.

Design Guideline for TC1791 Microcontroller Board Layout

Easy Kit Board Manual

Getting Started with ESPI Interface Using the Z8 Encore! XP F1680

Using the Z8051 MCU s USI Peripheral as an SPI Interface

Application Note, V1.3, September 2008 AP XC2000/XE166 Family. Microcontrollers

App Note Application Note: Addressing Multiple FPAAs Using a SPI Interface

Application Note No. 104

Application Note, V1.0, November AP XC2000/XE166 family. ADC Result Handling on XC2000/XE166 family of Microcontrollers.

TLx5012B 2go Evaluation Kit

XE166 Family AP Application Note. Microcontrollers. UConnect XE162N Hardware Description V1.0,

DatasheetDirect.com. Visit to get your free datasheets. This datasheet has been downloaded by

An SPI interface for the 65(C)02 family of microprocessors

Application Note, V 1.0, April 2005 AP32086 EMC. Design Guideline for TC1796 Microcontroller Board Layout. Microcontrollers. Never stop thinking.

Understanding SPI with Precision Data Converters

Queued SSC V

Security & Chip Card ICs SLE 55R04. Intelligent 770 Byte EEPROM with Contactless Interface complying to ISO/IEC Type A and Security Logic

Section 5 SERCOM. Tasks SPI. In this section you will learn:

+Denotes a lead(pb)-free/rohs-compliant package.

Sensor supply in bus mode

ESD8V0L... ESD8V0L1B-02LRH. Type Package Configuration Marking ESD8V0L1B-02EL

ESD5V3U4RRS. Type Package Configuration Marking ESD5V3U4RRS SOT363 6 pins, uni-directional E8s

spi 1 Fri Oct 13 13:04:

SILICON MICROSTRUCTURES

SPI Overview and Operation

Microcontrollers and Interfacing

Design Guideline for TC1798 Microcontroller Board Layout

User Guide for MA Evaluation Boards MA12040/MA12040P/MA12070/MA12070P

EE 456 Fall, Table 1 SPI bus signals. Figure 1 SPI Bus exchange of information between a master and a slave.

Absolute Pressure Sensor

Digital Thermometer and Thermostat

TLE 6208-x The universal Driver Family

SPOC +2 User Manual Multichannel SPI High-Side Power Controller

Temperature Sensor TMP2 PMOD Part 1

EVAL6235PD. L6235 three-phase brushless DC motor driver demonstration board. Features. Description

Digital Thermometers and Thermostats with SPI/3-Wire Interface

EV-VND7040AJ. VND7040AJ evaluation board. Features. Applications

XEN1210 Magnetic Sensor

An SPI Temperature Sensor Interface with the Z8 Encore! SPI Bus

Security & Chip Card ICs SLE 4436/36E

CRC Computation using PCP

AN2737 Application note Basic in-application programming example using the STM8 I 2 C and SPI peripherals Introduction

Frequently Asked Questions

12 Push-Pull Outputs and 4 Inputs

PMBus Power System Management Protocol Specification Part I General Requirements, Transport And Electrical Interface

64-Kbit (8K 8) SPI nvsram

ECE 471 Embedded Systems Lecture 20

XE164 UConnect Manual, V.1.1, February XE164 UConnect. Board REV. 2007/40. Microcontrollers. Never stop thinking.

STEF12E. Electronic fuse for 12 V line. Datasheet. Features. Applications. Description

NuSpeech Family N5132 High Sound Quality Voice Synthesizer Technical Reference Manual

PMBus. Specification

and 8 Open-Drain I/Os

Embedded Systems and Software. Serial Interconnect Buses I 2 C (SMB) and SPI

I 2 C Port Expander with Eight Inputs. Features

Figure 1: TSSOP-24 ( Top View ) Figure 2: TQFN 4x4-24 ( Top View )

ORDERING INFORMATION. OPERATION Measuring Temperature A block diagram of the DS1621 is shown in Figure 1. DESCRIPTION ORDERING PACKAGE

AP16051 SAB C161K/V/O. Emulating an asynchronous serial interface (ASC) via the on-chip synchronous serial interface (SSC) Microcontrollers


PIN ASSIGNMENT PIN DESCRIPTION

Standard EEPROM ICs. Interfacing SLx 24Cxx I 2 C-Bus Serial EEPROMs to 8051 Controller Family, especially to the Siemens C500 Controller Family

SPI Block User Guide V02.07

Pmod modules are powered by the host via the interface s power and ground pins.

EV-VNQ7003SY. VNQ7003SY Evaluation Board. Data brief. Features. Applications. Description

Low Voltage, 10-Bit Digital Temperature Sensor in 8-Lead MSOP AD7314

Linear movement with a 3D sensor

Features. Ordering Information. Selector Guide. Applications. Pin Configurations. I 2 C Port Expander with 8 Open-Drain I/Os

Transcription:

Protocol of the TLE941xy family Application Note Rev 1.0, 2016-04-25 Automotive Power

Table of Contents 1 Abstract........................................................................ 3 2 Introduction..................................................................... 3 3 List of acronyms................................................................. 4 4 General description of interfaces................................................ 5 5 protocol of the TLE941xy...................................................... 6 5.1 Structure of an Frame.......................................................... 6 5.2 Transmission mode............................................................... 6 5.3 Communication Protocol............................................................ 8 5.4 In-Frame Response.............................................................. 11 5.5 Comparison with the TLE841xy Family............................................... 14 6 bus with multiple slaves...................................................... 15 6.1 Individual Slave Configuration...................................................... 15 6.2 Daisy Chain.................................................................... 16 6.2.1 Daisy chain only with TLE941xy devices............................................. 16 6.2.2 Daisy chain with devices not belonging to the TLE941xy family........................... 19 7 Fast diagnostic................................................................. 23 8 Failure Mode and Effect Analysis............................................... 24 8.1 Detection of failures on........................................................ 24 8.2 Failure on line.............................................................. 25 8.3 Failure on line.............................................................. 26 8.4 Failure on line............................................................... 28 8.5 Failure Mode and Effect Analysis of the bus........................................ 29 9 Conclusion.................................................................... 30 10 Additional Information........................................................... 31 11 Revision History................................................................ 32 Application Note 2 Rev 1.0, 2016-04-25

Abstract 1 Abstract Note: The following information is given as a hint for the implementation of the device only and shall not be regarded as a description or warranty of a certain functionality, condition or quality of the device. This application note is gives information for the handling of the Serial Peripheral Interface () between a device of the TLE941xy family and a microcontroller. After a general description of interfaces, this document presents the protocol of the TLE941xy and gives examples of communications in different configurations. The last section of this document deals with failure detections on the bus. 2 Introduction The TLE941xy family consists of multiple half-bridge drivers designed especially for automotive motion control application such as Heating, Ventilation, and Air Conditioning (HVAC) and exterior side mirror. The product family offers devices from three to twelve half-bridges. Figure 1 shows the block diagram of the 12-fold half-bridge driver: TLE94112EL. The devices integrate a interface to configure and control the outputs and for diagnostic purpose. VDD VS1 VS2 12-Fold Half Bridge Driver Interface UNDERVOLTAGE & OVERVOLTAGE MONITOR CHARGE PUMP EN BIAS & MONITOR PWM GENERATOR LOGIC CONTROL & LATCH INTERFACE ERROR DETECTION short short to to battery short to to open to load to battery short to detection battery short detection to detection detection battery detection detection short to ground detection overtemperature detection open open load load detection detection open open load load detection detection current current open load control current control current detection control current current control control short control to battery short short to to battery to battery short to detection battery short detection to to short to detection battery detection detection battery overtemperature detection detection detection Power driver high-side high-side driver high-side driver driver driver high-side driver temp temp sensor temp sensor temp sensor temp sensor sensor low-side low-side driver low-side driver low-side low-side driver driver driver low-side driver Power stage temp sensor OUT 1 OUT 2 OUT 3 OUT 4 OUT 5 OUT 6 OUT 7 OUT 8 OUT 9 OUT 10 OUT 11 OUT 12 Figure 1 Block Diagram of TLE94112EL GND GND GND GND Application Note 3 Rev 1.0, 2016-04-25

List of acronyms 3 List of acronyms Table 1 Acronyms CPHA CPOL GEF GSR LABT LE LSB M MISO MOSI MSB NPOR OP POR _ERR TPW TSD VS_OV VS_UV List of acronyms Meaning Clock Phase Clock Polarity Chip Select Not Global Error Flag of TLE941xy Global Status Register of TLE941xy Last Address Byte Token of TLE941xy Load Error bit of the TLE941xy devices Least Significant Bit Master output Master Input Slave Output Master Output Slave Input Most Significant Bit Negated Power-On Reset bit of the Global Status Register of the TLE941xy Operation bit of the TLE941xy (Bit7 of the address byte) Power-On Reset Serial Clock Serial Data Input Serial Data Output Serial Parallel Interface Error bit of the TLE941xy Temperature Pre-Warning bit of the TLE941xy Temperature Shutdown bit of the TLE941xy VS Overvoltage bit of the TLE941xy VS Undervoltage bit of the TLE941xy Application Note 4 Rev 1.0, 2016-04-25

General description of interfaces 4 General description of interfaces A system with an interface consists of one master (microcontroller) and one or several slave devices. The interface supports a synchronous data transfer. The microcontroller provides the clock signal and initiates every communication. This interface is often used when few I/O lines are available, but the communication between two or more devices must be fast and easy to implement. The bus consists of four unidirectional signal lines: : Chip Select Not. The is always an input for the slave device, and is controlled by the master. A slave is selected when its pin is pulled Low by the microcontroller, and the communication starts. When the pin of a device is High, this device is not selected and its pin is in high impedance. : Serial Clock. This pin receives the clock signal from the microcontroller, which is used for the timing of the serial interface. : Serial Data Input. This pin receives the data from the microcontroller output, often called Master Output / Slave Input or MOSI : Serial Data Output. This pin drives the data signal of the microcontroller input, often called Master Input / Slave Output or MISO Microcontroller M M MOSI MISO TLE941xyEL Figure 2 Definition of signals Application Note 5 Rev 1.0, 2016-04-25

protocol of the TLE941xy 5 protocol of the TLE941xy This section summarizes the communication protocol implemented by the TLE941xy family. For further information, refer to the datasheets of the corresponding devices. 5.1 Structure of an Frame The microcontroller sends to the TLE941xy an address byte followed by a data byte, with the Least Significant Bit (LSB) transmitted first. The LSB of the address byte must be 1 (Figure 5, A0 = 1). 8 CLOCK CYCLES 8 CLOCK CYCLES ADDRESS BYTE DATA BYTE GEF OR GLOBAL STATUS REGISTER BYTE Figure 3 TLE941xy - Structure of a Frame 5.2 Transmission mode A communication starts when the master selects the addressed slave by pulling Low its pin. This allows to have one master and several slaves, sharing the same, and signals. During each communication a full-duplex data transfer is supported: the master and the addressed slave receive and transfer data at the same time. Transmission mode depends on: the level when the transmission is initiated (often called Clock Polarity or CPOL) when the communication starts ( is pulled Low) the sampling edge of the data (often called Clock Phase or CPHA) The TLE941xy family is compatible with the following setting: CPOL = 0 and CPHA = 1 (Figure 4): The must be Low during the falling edge (CPOL = 0) The TLE941xy accepts data at the pin on the falling edges and shifts out new data at on the rising edges (CPHA = 1) The first bit received by the TLE941xy (during the first falling edge) is interpreted as the Least Significant Bit (LSB, Bit0). The first transmitted bit by must be interpreted by the microcontroller as LSB as well. Refer to Figure 4 and Figure 5. Application Note 6 Rev 1.0, 2016-04-25

protocol of the TLE941xy CPOL = 0, CPHA = 1 Data bit is accepted at falling edge New data bit is shifted out at rising edge is Low during falling edge time time LSB Bit0 MSB Bit15 time HiZ GEF OR LSB Bit0 MSB Bit15 HiZ time Figure 4 Transmission Mode for the TLE941xy: CPOL = 0, CPHA = 1, LSB sent first LSB A0 =1 A1 (LABT) Address Byte 0 1 2 3 4 5 6 7 A2 A3 A4 A5 A6 A7 (OP) Data Byte MSB 8 9 10 11 12 13 14 15 D0 D1 D2 D3 D4 D5 D6 D7 LSB Global Status Register 0 1 2 3 4 5 6 7 0 TPW TSD NPOR VS_OV VS_UV LE _ ERR Response Byte MSB 8 9 10 11 12 13 14 15 D0 D1 D2 D3 D4 D5 D6 D7 Figure 5 TLE941xy - Content of the address byte and Global Status Register Read, write and clear access A read access, respectively a write access, to a control register is done when the OP bit (Bit 7 of the address byte) is equal to 0, respectively equal to 1 (see Figure 5). A read access, respectively a clear access, to status register is done when the OP bit (Bit 7 of the address byte) is equal to 0, respectively equal to 1 (see Figure 5). Application Note 7 Rev 1.0, 2016-04-25

protocol of the TLE941xy Figure 6 shows an example of frame with one TLE941xy: received frame: 0b 0000 0000 0000 0011 Address byte = 0b 0000 0011: Read control register HB_ACT_1_CTRL Data byte = 0b 0 transmitted frame: 0b 0000 1001 0000 1000 GEF = 0 Global Status Register = 0b 0000 1000: NPOR bit = 1, the device does not come from a power-on reset. Response Byte (content of the HB_ACT_1_CTRL): 0b 0000 1001 (Low Side 1 and High Side 2 are ON) LSB sent first 1 1 = 0b 0000 0000 0000 0011 0 0 0 0 0 0 1 1 1 0 0 0 0 0 0 0 0 = 0b 0000 1001 0000 1000 0 0 0 0 0 0 0 0 0 0 0 0 0 Figure 6 Example of frame between the microcontroller and one TLE941xy 5.3 Communication Protocol During each communication, the microcontroller sends an address byte followed by a data byte. Simultaneously, the TLE941xy sends to the microcontroller the following response: (Figure 4) before the first rising edge: Alogic OR between the Global Error Flag (GEF) and the signal present at (see Figure 7) 1) followed by the Global Status Register (GSR) during the first eight cycles followed by the response byte during the next eight cycles The GSR provides to the microcontroller an overview of the device status. All failures detectable by the TLE941xy are reported in this byte (Table 3): Protocol Error (_ERR) Load Error (LE): Logical OR combination between open load and overcurrent for one of the outputs VS Undervoltage (VS_UV) VS Overvoltage (VS_OV) Negated Power-On Reset (NPOR) Temperature Shutdown (TSD) 1) should be 0 between the falling edge and the first rising edge to enable the microcontroller to read the GEF. Application Note 8 Rev 1.0, 2016-04-25

protocol of the TLE941xy Temperature Pre-Warning (TPW) Note: The protocol requires the LSB of the GSR to be 0. Table 2 Description of the Global Error Register Bit Type of Failure Status bit Polarity Comment Bit 7 Protocol Error _ERR Active High - Bit 6 Open Load or Overcurrent LE Active High - Bit 5 VS Undervoltage VS_UV Active High - Bit 4 VS Overvoltage VS_OV Active High - Bit 3 Power-On Reset NPOR Active Low NPOR = 0 in POR condition NPOR = 1 if no POR is detected Bit 2 Thermal Shutdown TSD Active High - Bit 1 Thermal Pre-Warning TPW Active High - Bit 0 Not Applicable - - The LSB of the GSR is always 0 All the status bits of the GSR are active High, with the exception of the NPOR. As we will see in Chapter 8.2, this enables the microcontroller to detect and distinguish the following failures: is shorted to 0, is shorted to 1, the device comes from a power-on reset. The Global Error Flag is an logic OR combination of the status bits of the GSR, with the exception of the NPOR (Figure 7): GEF = (_ERR) OR (LE) OR (VS_UV) OR (VS_OV) OR Negated (NPOR) OR (TSD) OR (TPW). monitor monitor OR Global Status Register 1) OR GEF Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 _ERR LE VS_UV VS_OV NPOR TSD TPW 0 NOT OR 1) = Low, = Low Before first rising edge Figure 7 Global Error Flag Application Note 9 Rev 1.0, 2016-04-25

protocol of the TLE941xy Table 3 Failure reporting in the Global Status Register and by the Global Error Flag Condition Status bit in GSR Global Error Flag Protocol Error _ERR = 1 GEF = 1 Open Load or Overcurrent LE = 1 GEF = 1 VS Undervoltage VS_UV = 1 GEF = 1 VS Overvoltage VS_OV = 1 GEF = 1 Power-On Reset NPOR = 0 (Figure 8) GEF = 1 Thermal Shutdown TSD = 1 GEF = 1 Thermal Pre-Warning TPW = 1 GEF = 1 No Failure _ERR = 0 LE = 0 VS_UV = 0 VS_OV = 0 NPOR = 1 TSD = 0 TPW = 0 See Figure 9 GEF = 0 Figure 8 shows the Global Error Flag and the Global Status Register when the TLE941xy comes from a poweron reset, and no other failure is detected: The GEF is set and NPOR bit = 0. GEF SET 0 NPOR (bit 3 of the GSB) = 0 The TLE941xy comes from a POR Figure 8 Transmission of the Global Status Byte Example of NPOR bit and GEF when the device come from a power-on reset Application Note 10 Rev 1.0, 2016-04-25

protocol of the TLE941xy Figure 9 shows the Global Error Flag and the Global Status Register when the TLE941xy does not detect any failure: GEF = 0, and NPOR =1, the other bits of the status register are reset. NPOR (bit 3 of the GSB) = 1 No POR condition GEF = 0 1 Transmission of the Global Status Byte Figure 9 Example of GEF and Global Status Register when no failure is detected 5.4 In-Frame Response The protocol of the TLE941xy family supports an in-frame response: A request and the corresponding response are sent during the same frame. The TLE941xy receives during the first eight cycles the address byte (request). The address byte is decoded by the device when the first byte is received. Then it sends the corresponding response data during the following eight cycles. Figure 10, Figure 11, Figure 12 and Figure 13 show the in-frame response of the TLE941xy devices during: a read access to a control register a write access to a control register a read access to a status register a clear access to a status register Application Note 11 Rev 1.0, 2016-04-25

protocol of the TLE941xy 0 8 CLOCK CYCLES 8 CLOCK CYLES 1 0 Read control register ADDRESS BYTE DON T CARE HiZ GEF GLOBAL STATUS 2 HiZ 1 The address byte is decoded (e.g. read control register HB_ACT1_CTRL) Figure 10 Reading a control register 2 The content of the addressed control register (e.g. register HB_ACT1_CTRL) is sent by within the same frame For a write access to a control register, the new data byte is written into the corresponding register at the rising edge of signal (see Figure 11). 0 8 CLOCK CYCLES 8 CLOCK CYLES 1 3 0 Write control register ADDRESS BYTE DATA BYTE HiZ GEF GLOBAL STATUS 2 HiZ 1 The address byte is decoded (e.g. write control register e.g. HB_ACT1_CTRL) 2 The previous content ofthe addressed control register is sent by within the same frame Figure 11 3 The new data byte is written in the addressed control register Writing new data in a control register Application Note 12 Rev 1.0, 2016-04-25

protocol of the TLE941xy 0 8 CLOCK CYCLES 8 CLOCK CYLES 1 0 Read status register ADDRESS BYTE DON T CARE HiZ GEF GLOBAL STATUS 2 HiZ 1 The address byte is decoded (e.g. Read status register SYS_DIAG_2) 2 The content of the addressed status register is sent by within the same frame Figure 12 Reading a status register A status register is cleared at the rising edge of the signal (see Figure 13). 0 8 CLOCK CYCLES 8 CLOCK CY CLES 1 3 0 Clear status register ADDRESS BYTE DON T CARE HiZ GEF GLOBAL STATUS 2 HiZ 1 2 The address byte is decoded (e.g. Clear status register SYS_DIAG_2) The content of the addressed status register is sent by within the same frame Figure 13 3 Clearing a status register The addressed status register is cleared Application Note 13 Rev 1.0, 2016-04-25

protocol of the TLE941xy 5.5 Comparison with the TLE841xy Family The TLE84110EL and TLE84106EL are the predecessors of the TLE94110EL and TLE94106EL. This section gives an overview of the differences between the protocols of the TLE941xy and the TLE841xyEL families. Table 4 protocol - Comparison between TLE941xy and TLE841xyEL TLE941xy TLE84110/06EL The least significant bit is sent first The most significant bit is sent first In-frame response is supported In-frame response is not supported Reading the content of the control registers is possible Reading the content of the control registers is not possible Additional control and status registers to support new features and a more detailed diagnostic: e.g. internal PWM generator, frequency modulation of the oscillator, individual diagnostic of overcurrent and open load failure for each high side and low sides Application Note 14 Rev 1.0, 2016-04-25

bus with multiple slaves 6 bus with multiple slaves Two configurations are possible when the bus consists of several slave devices: the individual slave configuration and the daisy chain configuration. The TLE941xy devices are compatible with both options. 6.1 Individual Slave Configuration In the individual slave configuration, the microcontroller controls the pin of each slave separately to select one single slave at the beginning of each transmission. See example with three slaves in Figure 14. Because the slaves share the same clock signal and data lines, only the slave, whose is pulled Low accepts the communication and responds to the incoming request. In this configuration, frames are shorter compared to a daisy chain, but at the cost of additional microcontroller outputs for each slave pin. Microcontroller Slave1 Slave2 Slave3 M1 M2 M3 M MOSI MISO Figure 14 Bus in independent slave configuration The LABT bit must be 1 in this configuration. Otherwise the TLE941xy interprets the incoming frame as a protocol error. Application Note 15 Rev 1.0, 2016-04-25

bus with multiple slaves 6.2 Daisy Chain In the daisy chain topology, one master is connected to several slaves as shown in Figure 15. The main benefit of this configuration is the lower number of required microcontroller outputs: One single output controls the pins of all slaves. The frame for the last device in the daisy chain must first go through the previous slaves. Therefore, the frames in this configuration are longer: the number of pulses for one frame in daisy chain is the sum of the pulses of each device present in the chain. With standard protocols supporting daisy chain configurations, the requests are interpreted at the end of the frames, after the rising edge. The requests and the corresponding responses cannot be transmitted during the same frame. Therefore two consecutive frames are required in order to read a status register. The first one for the request, the second one for the response corresponding to the request. Such protocols do not support an in-frame response. In contrast to standard protocols, the patent-pending protocol of the TLE941xy supports in-frame responses in daisy chain configuration. One single frame is necessary to send the request to read a register of the TLE941xy and to receive the corresponding response, reducing the bus load. Microcontroller Master MOSI 1 Slave 1 1 2 Slave 2 2 3 Slave 3 3 Figure 15 M M MISO Bus in daisy chain configuration By convention, the first slave device (Slave 1) is the device whose is connected to the MOSI. The of the last device (Slave3 in Figure 15) is connected to the MISO. 6.2.1 Daisy chain only with TLE941xy devices This section deals with daisy chains consisting only of devices belonging to the TLE941xy family. In this configuration, the microcontroller must send the address and data bytes in the following order: 1. All address bytes are sent first: a) the address byte of TLE941xy_1 is sent first, followed by the address byte of the TLE941xy_2 etc,... b) the LSB of each address byte must be equal to 1 1). c) the LABT 2) of the last address byte must be equal to 1, while the LABT of the other address byte must be equal to 0. 1) An address byte with LSB = 0 is reported by the TLE941xy as a communication failure. Consequently the _ERR bit is set. 2) See Figure 5 Application Note 16 Rev 1.0, 2016-04-25

bus with multiple slaves 2. Then, the data bytes are sent altogether once the address bytes have been transmitted a) the data of the TLE941xy_1 is sent first followed by, the data of the TLE941xy_2 etc,... During the same frame, the microcontroller receives: 1. an OR combination of the GEF of each TLE941xy, between the falling edge and the first rising edge 1) 2. the Global Status Registers of the different devices in the reverse order. 3. the response bytes of the TLE941xy in reverse order. Figure 17 and Figure 18 respectively Figure 20 and Figure 21, show the structure of the frames for two, respectively three TLE941xy in daisy chain. Microcontroller MOSI 1 Device1 1 2 Device2 2 M M MISO Figure 16 Daisy chain with two TLE941xy 0 8 CLOCK CYCLES 8 CLOCK CYLES 8 CLOCK CYCLES 8 CLOCK CYLES MOSI = 1 0 LSB = 1, LABT = 0 ADDRESS BYTE LSB = 1, LABT = 1 ADDRESS BYTE DATA BYTE DATA BYTE MISO= 2 OR GEF1/2 GLOBAL STATUS GLOBAL STATUS 1 Figure 17 Frame with two TLE941xy in daisy chain 1) MOSI must be 0 between the falling edge and the first rising edge Application Note 17 Rev 1.0, 2016-04-25

bus with multiple slaves LSB = 1, LABT = 0 LSB = 1, LABT = 1 MOSI /1 LSB Address Byte 1 0 LABT 2 3 4 5 6 7 1 0 A2 A3 A4 A5 A6 OP LSB Address Byte 2 0 LABT 2 3 4 5 6 7 1 1 A2 A3 A4 A5 A6 OP Data Byte 1 Data Byte 2 LSB Global Status Register 2 - LSB Global Status Register 1 - Response 2 Response 1 MISO / 2 0 1 2 3 4 5 6 7 0 TPW TSD NPOR VS_OV VS_UV LE _ ERR 0 1 2 3 4 5 6 7 0 TPW TSD NPOR VS_OV VS_UV LE _ ERR Figure 18 Detailed Frame with two TLE941xy in daisy chain Microcontroller MOSI 1 Device1 1 2 Device2 2 3 Device3 TLE941xy3 3 M M MISO Figure 19 Daisy chain with three TLE941xy 0 8 CLOCK CYCLES 8 CLOCK CYLES 8 CLOCK CYCLES 8 CLOCK CYLES 8 CLOCK CYCLES 8 CLOCK CYLES MOSI = 1 0 LSB = 1, LABT = 0 LSB = 1, LABT = 0 ADDRESS BYTE ADDRESS BYTE LSB = 1, LABT = 1 ADDRESS BYTE DATA BYTE DATA BYTE DATA BYTE TLE941xy3 MISO= 3 OR GEF1/2/3 GLOBAL STATUS TLE941xy3 GLOBAL STATUS GLOBAL STATUS TLE941xy3 Figure 20 Frame with three TLE941xy in daisy chain MOSI /1 LSB = 1, LABT = 0 LSB = 1, LABT = 0 LSB = 1, LABT = 1 LSB Address Byte 1 0 LABT 2 3 4 5 6 7 1 0 A2 A3 A4 A5 A6 OP LSB Address Byte 2 0 LABT 2 3 4 5 6 7 1 0 A2 A3 A4 A5 A6 OP LSB Address Byte 3 TLE941xy3 0 LABT 2 3 4 5 6 7 1 1 A2 A3 A4 A5 A6 OP Data Byte 1 Data Byte 2 Data Byte 3 TLE941xy3 MISO / 3 LSB Global Status Register 3 - TLE941xy3 0 1 2 3 4 5 6 7 0 TPW TSD NPOR VS_OV VS_UV LE _ ERR LSB Global Status Register 2-0 1 2 3 4 5 6 7 0 TPW TSD NPOR VS_OV VS_UV LE _ ERR LSB Global Status Register 1-0 1 2 3 4 5 6 7 0 TPW TSD NPOR VS_OV VS_UV LE _ ERR Response 3 TLE941xy3 Response 2 Response 1 Figure 21 Detailed Frame with three TLE941xy in daisy chain Application Note 18 Rev 1.0, 2016-04-25

bus with multiple slaves 6.2.2 Daisy chain with devices not belonging to the TLE941xy family The TLE941xy can also be connected in daisy chain with devices not belonging to the TLE941xy family, provided that these devices fulfill the following requirements: they support the same Clock Polarity and Clock Phase: CPOL = 0, CPHA = 1 the number of cycles during one frame is a multiple of 8 the required timings are compatible with those of the TLE941xy family they are connected at the end of the daisy chain, whereas the TLE941xy are connected at the beginning of the daisy chain (refer to examples Figure 22, Figure 24, and Figure 26). In this configuration, the microcontroller must send the information in the following order: 1. All address bytes of the TLE941xy are sent first: a) the address byte of TLE941xy_1 is sent first, followed by the address byte of the TLE941xy_2 etc,... b) the LSB of all address bytes must be equal to 1 c) the LABT of the last address byte must be equal to 1, while the LABT of the other address bytes must be equal to 0 2. The data bytes are sent altogether once the address bytes have been transmitted a) the data of the TLE941xy_1 is sent first followed by, the data of the TLE941xy_2 etc,... 3. Then the requests of the devices not belonging to the TLE941xy family must be sent in the reverse order The microcontroller receives: 1. an OR combination of the GEF of each TLE941xy, between the falling edge and the first rising edge, provided that the other devices copy the signal present on their to their 1) 2. the response bytes of the devices not belonging to the TLE941xy family in reverse order 3. the Global Status Registers of the TLE941xy devices in the reverse order 4. the response of the TLE941xy devices in reverse order 1) MOSI must be 0 between the falling edge and the first rising edge Application Note 19 Rev 1.0, 2016-04-25

bus with multiple slaves Example of daisy chain with one TLE941xy and one TLE84110EL Between the falling edge and the first rising edge, the TLE84110EL copies the signal present to its (= GEF) to its, which allows the microcontroller to read the GEF during this phase (Figure 23). Note: the TLE84110EL does not support an in-frame response. Instead, the response sent during a frame corresponds to the request from the previous frame. Microcontroller Device1 TLE941xy Device2 TLE84110EL MOSI 1 1 2 2 M M MISO Figure 22 Daisy chain with one TLE941xy and one TLE84110EL 0 8 CLOCK CYCLES 8 CLOCK CYLES 8 CLOCK CYCLES 8 CLOCK CYLES MOSI = 1 0 LSB = 1, LABT = 1 ADDRESS BYTE TLE941xy DATA BYTE TLE941xy REQUEST TLE84110EL MISO= 2 GEF1 TLE84110EL GLOBAL STATUS TLE941xy TLE941xyEL Figure 23 frame with one TLE941xy and one TLE84110EL in daisy chain Application Note 20 Rev 1.0, 2016-04-25

bus with multiple slaves Example of daisy chain with two TLE941xy and one TLE84110EL Microcontroller MOSI 1 Device1 1 2 Device2 2 3 Device3 TLE84110EL 3 M M MISO Figure 24 Daisy chain with two TLE941xy and one TLE84110EL 0 8 CLOCK CYCLES 8 CLOCK CYLES 8 CLOCK CYCLES 8 CLOCK CYLES 8 CLOCK CYCLES 8 CLOCK CYLES LSB = 1, LABT = 0 LSB = 1, LABT = 1 MOSI = 1 0 ADDRESS BYTE ADDRESS BYTE DATA BYTE DATA BYTE REQUEST TLE84110EL MISO= 3 OR GEF1/2 TLE84110EL GLOBAL STATUS GLOBAL STATUS 1 Figure 25 frame with two TLE941xy and one TLE84110EL in daisy chain Application Note 21 Rev 1.0, 2016-04-25

bus with multiple slaves Example of daisy chain with one TLE941xy and two TLE84110EL Figure 26 shows the daisy chain with one TLE941xy and two TLE84110EL. The microcontroller sends first the address byte of the TLE941xy followed by the request for the TLE84110EL_2, followed by the request for the TLE84110EL_1 (refer to Figure 27). Microcontroller MOSI 1 Device1 TLE941xy 1 2 Device2 TLE84110EL1 2 Device3 TLE84110EL2 3 3 M M MISO Figure 26 Daisy chain with one TLE941xy and twotle84110el 0 8 CLOCK CYCLES 8 CLOCK CYLES 8 CLOCK CYCLES 8 CLOCK CYLES 8 CLOCK CYCLES 8 CLOCK CYLES MOSI = 1 0 LSB = 1, LABT = 1 ADDRESS BYTE TLE941xy DATA BYTE TLE941xy REQUEST TLE84110EL2 REQUEST TLE84110EL1 MISO= 3 GEF1 TLE84110EL2 TLE84110EL1 GLOBAL STATUS TLE941xy TLE941xy Figure 27 frame with one TLE941xy and twotle84110el in daisy chain Application Note 22 Rev 1.0, 2016-04-25

Fast diagnostic 7 Fast diagnostic The TLE941xy family offers the possibility to verify if one or several devices have detected a fault condition without sending a complete frame. Instead, it is sufficient to pull down the pin of the corresponding device, without any clock cycle, to read the Global Error Flag. In this case, the pin acts as an fault pin. The duration of Low phase must be at least 75ns, in order to have a valid Global Error Flag at the pin (t EN is the relevant datasheet parameter). Attention: must be Low when is pulled down. If = 0, when = 0, reports the Global Error Flag (see Figure 28). time 0 Microcontroller M time M 0 MOSI time MISO TLE941xyEL High Impedance Global Error Flag OR High Impedance Figure 28 Example of fast diagnostic with one TLE941xy device The advantages of this fast diagnostic is even bigger in daisy chain configuration, because a long frame is saved. If 1 = 0 when =0 (see Figure 28), then the microcontroller reads directly and OR combination of the Global Error Flags of each TLE941xy present in the daisy chain. time Microcontroller MOSI 1 Device3 TLE941xyEL1 1 2 Device2 TLE941xyEL2 2 3 Device2 TLE941xyEL2 3 M MCLK MISO time 0 time _1 0 time 3 = MISO High Impedance (GEF1) OR (GEF2) OR (GEF3) OR (1) High Impedance Figure 29 Example of fast diagnostic with three TLE941xy devices in daisy chain time Application Note 23 Rev 1.0, 2016-04-25

Failure Mode and Effect Analysis 8 Failure Mode and Effect Analysis This chapter deals with the detection of failures of one of the line and give a Failure Mode Effect Analysis (FMEA) of the interface. The common failures are considered: One of the signal is either shorted to 0, shorted to 1, or left open. Microcontroller M M MOSI MISO TLE941xyEL Figure 30 Definition of signals 8.1 Detection of failures on The TLE941xy reports a error by setting the _ERR bit if the line is shorted to 0 or to 1: line is shorted to 0 The communication protocol of the TLE941xy requires the LSB (Less Significant Bit or Bit0) of an address byte to be 1. If the line is shorted to 0, no address byte is detected during the frame. Consequently the TLE941xy reports a error (_ERR = 1) during the next frame and the GEF is set to 1. line is left open The TLE941xy integrates a pull-down resistor at the input. If the microcontroller initiates a communication, while the line is open, the device will react as if was shorted to 0. Consequently, the _ERR bit and the GEF are set. line is shorted to 1 If the line is shorted to 1, in particular the TLE941xy receives the address byte 0xFF. That is interpreted by the TLE941xy as an access to an invalid address. The TLE941xy reports a error and the GEF is set to 1. Application Note 24 Rev 1.0, 2016-04-25

Failure Mode and Effect Analysis 8.2 Failure on line This section shows that the protocol of the TLE941xy enables the microcontroller to distinguish the following conditions: shorted to 0 shorted to 1 The device comes from a power-on reset is not shorted and does not come from a power-on reset Table 5 shows the content of the Global Error Flag and of the Global Status Register (GSR) in the different conditions. Table 5 GEF and Global Status Register in different conditions 1) Global Status Register - Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Condition GEF _ERR LE VUV VSOV NPOR TSD TPW LSB line Shorted to 0 0 0 0 0 0 0 0 0 0 line Shorted to 1 1 1 1 1 1 1 1 1 1 Power-On Reset (and no 1 x x x x 0 x x 0 shorted line) No Power-On Reset (and no shorted line) x x x x x 1 x x 0 1) x = don t care Condition 1: line is shorted to 0 The microcontroller reads GEF = 0 and all bits of the GSR are 0 Condition 2: line is shorted is to 1 The microcontroller reads GEF = 1 and all bits of the GSR are 1 Condition 3: Power-On Reset (and no shorted line) The microcontroller reads GEF = 1 and NPOR = 0 (refer to example in Figure 8). This combination is distinct from Condition 1 and Condition 2. Condition 4: No Power-On Reset (and no shorted line) The microcontroller reads: NPOR = 1 and LSB of the GSR = 0 (refer to example in Figure 9). This combination is distinct from Condition 1, Condition 2 and Condition 3. The microcontroller can differentiate these four conditions based on the information provided by the GEF and the GSR. It can also detect the first three conditions as a failure of the bus. line open The microcontroller detects that shorted either to 0 or to 1, depending on the stray resistance which determines the level on Application Note 25 Rev 1.0, 2016-04-25

Failure Mode and Effect Analysis 8.3 Failure on line line is shorted to 0 If is shorted to 0 during the communication, then no clock cycle is detected by the TLE941xy and is equal to (GEF) AND () when is Low. Two cases are possible: Either GEF = 0 or GEF = 1 before the failure. Case 1: If GEF = 0 before the failure, then = (GEF) OR () = (see Figure 31). The microcontroller expects the first byte to be the Global Status Register, whose LSB must be 0 (refer to Table 2). However, since =, the microcontroller receives the address byte, whose LSB = 1 (See Chapter 5.1). According to the protocol of the TLE941xy, the LSB received by should be 0. This inconsistency can be used by the microcontroller to detect the failure. = 0 No pulse: = GEF AND with GEF = 0 Figure 31 Example of frame with signal shorted to 0 and GEF = 0 Application Note 26 Rev 1.0, 2016-04-25

Failure Mode and Effect Analysis Case 2: If GEF = 1 before the failure, then = (GEF) OR () = 1 during the complete frame. The microcontroller interprets the incoming frame as a shorted line. See Figure 32. = 0 No pulse: = GEF AND with GEF = 1 Figure 32 Example of frame with signal shorted to 0 and GEF = 1 In both cases, the microcontroller reads frames which are not allowed in normal conditions. Application Note 27 Rev 1.0, 2016-04-25

Failure Mode and Effect Analysis line is open has an internal pull-down resistor. This case is equivalent to shorted to 0. line is shorted to 1 The TLE941xy family requires the signal to be 0 at least 125 ns before the falling edge (refer to the datasheet, parameter t BEF ). This condition is not met, therefore the TLE941xy sets _ERR and GEF bits. In the following frames, the GEF (=1) is reported during the complete frame. The microcontroller interprets the incoming frame as a shorted to 1. Refer to Figure 33. According to the protocol of the TLE941xy, the LSB received by should be 0. This inconsistency can be used by the microcontroller to detect the failure. During the previous frame, = 1 during falling edge An error detected _ERR and GEF = 1 shorted to 1 No clock cycle, = GEF OR = 1 during the complete frame Figure 33 Example of frame with signal shorted to 1 8.4 Failure on line line is shorted to 0 If is shorted to 0, then during the second frame (while is kept to 0) the TLE941xy copies the signal present on to (see Figure 34). This failure is similar to shorted to 0 with GEF = 0: The microcontroller expects the first byte to be the Global Status Register, whose LSB must be 0 (refer to Table 2). However, since =, the microcontroller receives the address byte, whose LSB = 1 (See Chapter 5.1). According to the protocol of the TLE941xy, the LSB received by should be 0. This inconsistency can be used by the microcontroller to detect the failure. Application Note 28 Rev 1.0, 2016-04-25

Failure Mode and Effect Analysis is shorted to 0 Address Byte LSB = 1 Bit interpreted as GSB with LSB = 1 The TLE941xy copies to starting from the second frame byte interpreted as GSB with LSB = 1 Figure 34 frame with shorted to 0 line is shorted to 1 If the is shorted to 1, of the TLE941xy is in high impedance. The microcontroller detects that shorted either to 0 or to 1, depending on the stray resistance which determines the level on. 8.5 Failure Mode and Effect Analysis of the bus This section provides a FMEA of the bus, considering the following failures: an signal shorted to 0 an signal shorted to 1 an signal left open Table 6 Failure Mode and Effect Analysis Failure Mode Potential Effect Detection Comments shorted to 0 commands are not Yes _ERR bit set, see Chapter 8.1 transmitted to the TLE941xy 1) shorted to 1 commands are not Yes _ERR bit set, see Chapter 8.1 transmitted to the TLE941xy 1) disconnected commands are not Yes _ERR bit set, see Chapter 8.1 transmitted to the TLE941xy shorted to 0 µc does not receive correct Yes See Chapter 8.2 data from TLE941xy shorted to 1 µc does not receive correct Yes See Chapter 8.2 data from TLE941xy disconnected µc does not receive correct Yes See Chapter 8.2 data from TLE941xy shorted to 0 No communication 1) Yes See Chapter 8.3 Application Note 29 Rev 1.0, 2016-04-25

Conclusion Table 6 Failure Mode and Effect Analysis Failure Mode Potential Effect Detection Comments shorted to 1 No communication 1) Yes See Chapter 8.3 disconnected No communication Yes See Chapter 8.3 shorted to 0 Write and clear commands Yes See Chapter 8.4 are not executed shorted to 1 No communication 1) Yes See Chapter 8.4 disconnected No communication 1) Yes See shorted to 1 1) The short circuit can cause the microcontroller output to deliver a high current. If the current exceeds the maximum rating of the microcontroller I/O, it is recommended to place a serial resistor. 9 Conclusion The patent-pending protocol of the TLE941xy family presents two main advantages: It supports an in-frame response in daisy chain and with independent slave selection. This feature reduces the number of frames required to read a status register and lowers the bus load. It also enables the detection of a failure on the bus. This document has also given hints to handle the communication with multiple slaves in daisy chain configuration, provided that the devices not belonging to the TLE941xy fulfill the pre-requisites. Application Note 30 Rev 1.0, 2016-04-25

Additional Information 10 Additional Information References: Datasheet of TLE94112EL TLE94110EL TLE94108EL TLE94106EL TLE94104EP TLE94103EP For further information you may contact http://www.infineon.com/ Application Note 31 Rev 1.0, 2016-04-25

Revision History 11 Revision History Revision Date Changes 1.0 2016-04-25 First release Application Note 32 Rev 1.0, 2016-04-25

Edition 2016-04-25 Published by Infineon Technologies AG 81726 Munich, Germany 2016 Infineon Technologies AG All Rights Reserved. LEGAL DISCLAIMER THE INFORMATION GIVEN IN THIS APPLICATION NOTE IS GIVEN AS A HINT FOR THE IMPLEMENTATION OF THE INFINEON TECHNOLOGIES COMPONENT ONLY AND SHALL NOT BE REGARDED AS ANY DESCRIPTION OR WARRANTY OF A CERTAIN FUNCTIONALITY, CONDITION OR QUALITY OF THE INFINEON TECHNOLOGIES COMPONENT. THE RECIPIENT OF THIS APPLICATION NOTE MUST VERIFY ANY FUNCTION DESCRIBED HEREIN IN THE REAL APPLICATION. INFINEON TECHNOLOGIES HEREBY DISCLAIMS ANY AND ALL WARRANTIES AND LIABILITIES OF ANY KIND (INCLUDING WITHOUT LIMITATION WARRANTIES OF NON-INFRINGEMENT OF INTELLECTUAL PROPERTY RIGHTS OF ANY THIRD PARTY) WITH RESPECT TO ANY AND ALL INFORMATION GIVEN IN THIS APPLICATION NOTE. Information For further information on technology, delivery terms and conditions and prices, please contact the nearest Infineon Technologies Office (www.infineon.com). Warnings Due to technical requirements, components may contain dangerous substances. For information on the types in question, please contact the nearest Infineon Technologies Office. Infineon Technologies components may be used in life-support devices or systems only with the express written approval of Infineon Technologies, if a failure of such components can reasonably be expected to cause the failure of that life-support device or system or to affect the safety or effectiveness of that device or system. Life support devices or systems are intended to be implanted in the human body or to support and/or maintain and sustain and/or protect human life. If they fail, it is reasonable to assume that the health of the user or other persons may be endangered.