<<

AN2334 Application Note

Complete module

Introduction A car door module typically consists of a rubber-sealed carrier, onto which a variety of door components such as the window lift mechanism, the electric motor, the wiring harness, the loud speaker, the door latch inner release cable, locks and various switches are fitted, forming a “cassette”. The trend in both Europe and the U.S. is to increase the complexity of the door module by adding more electronic features needed to drive all door loads and functions, with the possibility to connect the module to other car subsystems via standard automotive communication protocols (LIN, CAN). Among many of these automotive subsystems, the connectivity via a single wire, decentralizing electronic modules, reduces the number of wires required and in turn reduces wiring harness weight, contributes significantly to overall weight reduction. This is of concern to auto manufacturers, who are constantly striving to reduce vehicle weight and to improve fuel efficiency. In this document, an electronic module is presented that controls all the car door functions, including the window lift, all latching/locking operations, wing mirror movement, mirror turn indicator light, defroster and some lamps. To reduce the risk of bodily injury, especially to children, this module also includes an advanced trapping detection feature for the window lift motor, which stops the window if a body member such as a finger, a hand or an arm is introduced into the window climbing area during the window climbing process. A low-cost, high performance, antipinch algorithm based on monitoring the window motor driver current, has been developed.

September 2013 Rev 2 1/22

www.st.com Contents AN2334

Contents

1 Car door module description ...... 5

2 Algorithms ...... 7

3 Local Interconnect Network (LIN) messages ...... 10

4 PC Keypad software ...... 14

5 Hardware implementation ...... 18

Appendix A Schematic...... 20

Revision history ...... 21

2/22 AN2334 List of tables

List of tables

Table 1. Door module actuators ...... 5 Table 2. Application Messages...... 12 Table 3. FR RL RR data ...... 12 Table 4. Front Right Door ...... 12 Table 5. PC-VNH2 Diag. data...... 12 Table 6. Dashboard data ...... 13 Table 7. PC - L9950 Diag. data ...... 13 Table 8. Window and door lock coding...... 14 Table 9. Mirror and door lock coding ...... 15 Table 10. L9950 Loads ...... 19 Table 11. Document revision history ...... 21

3/22 List of figures AN2334

List of figures

Figure 1. Door module block diagram ...... 5 Figure 2. VNH2 PWM signal ...... 8 Figure 3. Simplified algorithm flowcharts ...... 9 Figure 4. Master/slave diagram ...... 10 Figure 5. LIN message frame format diagram ...... 11 Figure 6. PC keypad screenshot ...... 16 Figure 7. Adjust thresholds screenshot ...... 17 Figure 8. Board connectors ...... 18 Figure 9. Board Layout ...... 19 Figure 10. Board Schematic ...... 20

4/22 AN2334 Car door module description

1 Car door module description

This note describes a complete electronic module used to drive all loads in a car door, connected via a LIN bus to the dashboard and to other , and via a parallel port to a PC (for demonstration purposes). The block diagram in Figure 1 shows the system configuration.

Figure 1. Door module block diagram

Table 1. Door module actuators

Load Load Working Stall Actuators P speed current nom voltage current (Typ) (Typ)

Window Lift 1 DC motor >78 rpm <2.5A <20A Door lock 1 DC motor Mirror axis 2 DC motors <2A <10A control Mirror fold 1 DC motor 12 V 1 grounded resistive Mirror defroster 100W load 4 grounded resistive Light bulbs 5W loads

5/22 Car door module description AN2334

The microcontroller is the ST72F561, a member of the ST7 microcontroller family, designed for mid-range applications with CAN (Controller Area Network) and LIN (Local Interconnect Network) interfaces. It is based on an industry standard 8-bit core, featuring an enhanced instruction set. The enhanced instruction set and addressing modes of the ST7 offer both power and flexibility to software developers, enabling the design of highly efficient and compact application codes. In addition to standard 8-bit data management, all ST7 microcontrollers feature true bit manipulation, 8x8 unsigned multiplication and indirect addressing modes. The voltage regulator is the L4979 which offers high precision output voltage and a programmable watchdog timer with an external capacitor. The programmable watchdog timer allows microcontroller auto-recovery from software runaway failures. The L9638 performs LIN-bus interface functions between the protocol handler in the microcontroller and the physical bus in automotive applications. It has a Sleep mode that allows the lowest current consumption of the transceiver. It is possible to wake up the transceiver through LIN-bus, Enable input or Wake-up input. The new VNH2SP30 window power bridge driver provides a smooth and fully-protected motor drive via 20 kHz PWM. A current sense (CS) output is used to monitor motor torque that provides an antitrap function via the ADC inputs of the microcontroller. Finally, the L9950 actuator driver controls mirror adjustment and fold-in/-out, as well as an advanced locking system, driving the door latch and the dead bolt motor. Five intrinsic high- side drivers are available to control various lamps or LEDs, including the mirror defroster, and sophisticated diagnostic algorithms allow digital and analog load status to be monitored by reading fold, lock motors and defroster currents.

6/22 AN2334 Algorithms

2 Algorithms

After turn on or resetting, the microcontroller initializes all used peripherals (I/Os, Timers, ADC and LIN-SCI) and variables, drives the L9950 to open the left wing-mirror and sends a LIN message to do the same for the right wing-mirror. Afterward, it starts an infinite loop that can be stopped only by resetting or turning off the board. The microcontroller starts polling on both key pins (for driving window lift) and the keypad. As soon as a load is turned on, the L9950 Enable Bit is set to switch the device into active mode, turning on the Charge Pump Output. This output drives the gate of an external n- channel power MOS used for reverse polarity protection. This action, guaranteeing the reverse battery protection, needs about 300µs, which is the activation delay for every load. When no load is driven, the Enable Bit is cleared and the device goes into standby mode for power saving. It is possible to drive the window lift by using both the PC keypad and board keys (#4 / #5 - Figure 9). The "Up key" and "Down key" pins are configured in the input pull-up mode, so they are normally at a high value (5V); if the UP or DOWN buttons are pressed, two different behaviors are shown, depending on the duration of the pressing time. If the button is pressed for less than 100 ms, the glass moves up or down (depending on the key pressed) until the top or bottom part of the window is reached; if the pressed time exceeds 100 ms, the window moves up or down following the touch temporization. The same behavior occurs when a PC software keypad is used. The "Window Up switch" pin (#9 - Figure 9), also configured in input pull-up mode, must be connected using a mechanical switch that senses the window end run, indicating that the door upper limit has been reached. The PWM 8-bit Autoreload Timer is used to perform a task temporized at 1 ms. This task is in charge of all temporized events: – It counts 250 ms before sending a LIN request message to the dashboard – In case of window lift activation, it manages current sampling – It also controls the mirror folding, locking and turn indicator light on and off switching timings When either the Down or Up key (both in the board or on the PC keypad) are pressed, the Window_Lift routine is called: – VNH2 InA and InB pins are, then, set or reset, depending on the key pressed, to lift the window up or down and, – the 16-bit Timer is used to provide to the VNH2 a PWM signal with 20 kHz frequency and 30% duty cycle – during a 1 ms task, the current sense voltage is acquired via ST7 ADC; the acquisition is averaged over a 10 ms period to eliminate noise. Motor power is calculated by multiplying the current sense by the estimated angular velocity. This value is averaged over 100 ms, providing a delayed signal compared to the original. The difference between power and averaged power must be compared with a threshold to determine whether a pinch event occurs. This threshold depends on the motor status (soft start up or steady state conditions). Unless a Down/Up key is pressed or a pinch occurs, the duty cycle increases linearly until 100% is reached and the PWM becomes a constant (steady state phase, see Figure 2.)

7/22 Algorithms AN2334

Figure 2. VNH2 PWM signal

Duty Duty Duty Duty PWM Cycle Cycle Cycle Cycle 5V 30% 50% 70% 100%

t Soft Start

At this point the system waits for any event: A pressed key or a pinch. If a key is pressed, the motor is stops, resetting VNH2 PWM and setting InA and InB for braking to Vbatt the motor and stopping the glass. In case of a pinch event, the Window Up switch is first checked. If this switch is closed (upper limit reached), the glass is locked driving the motor up for 800 ms. Otherwise, if the glass moves up, it is driven down for 800 ms to release the pinched object; if it goes down the motor is stopped immediately. When an abnormal condition is detected (Open Load, Short circuit or thermal shutdown), a LIN message is sent to the PC VNH2 diagnostic node. Open Load is detected by current sense voltage monitoring (value) while a short circuit and thermal shutdown are detected using the VNH2 DIAGx pin. When DIAGx pin is reset, while INx is set, the status pin indicates a thermal shutdown; otherwise, if INx is reset the status pin detects a short circuit. For further information about antipinch algorithms, please refer to “AN2095 - VNH2 for window lift with antipinch routine”. When a command for L9950 loads is detected through keypad input pins, the microcontroller drives such loads through the L9950 SPI bus. Serial data for controlling outputs and for receiving status registers is sent via this bus. For example, if one of the over-current bits is set, the corresponding driver is disabled. If the over-current recovery bit of the output is not set, the microcontroller must clear the over- current bit to enable the driver again. If the thermal shutdown bit is set, all drivers go to high impedance state. Again, the microcontroller must clear the bit to enable the drivers. When the Fold Mirror motor is activated, the relevant motor is driven for 4 seconds with a fully charged battery and for 6 seconds in other cases. Since the OUT1 is common to all mirror motors, it is impossible to drive two or more mirror motors at the same time. The turn indicator and the defroster are driven using PWM2 and PWM1 respectively. For all lights, the over-current Recovery Enable bit is set by the microcontroller; this automatically reactivates the output after a delay time, resulting in a PWM modulated current with a programmable duty cycle. The over-current recovery feature is intended for loads which have an initial current higher than the over-current limit of the output (for example, cold light bulbs). The described algorithm, including LIN message managing, is stored in less than 10 kB on the microcontroller Flash memory.

8/22 AN2334 Algorithms

Figure 3. Simplified algorithm flowcharts

Reset

Init Load Turn ON/OFF

Ext. WDG reload Turn On Charge Pump Paral. Port and keys read

VNH2 or L9950 Key or keypad Pushed VNH2LOAD ? L9950 NO

Load turn ON/OFF Window Lift Routine SPI send MSG NO

Diagnostic

Send LIN Msg to PC

250 ms Task

LIN Msg Request to Dashboard

Receive Data

Defroster ON YES NO PWM1 On

SPI send Msg

Turn Light ON YES

PWM2 On NO

SPI send Msg

9/22 Local Interconnect Network (LIN) messages AN2334

3 Local Interconnect Network (LIN) messages

Created by the LIN Consortium (a collection of automotive, software and semiconductor manufacturers), LIN is a low speed bus with a maximum speed of 20kbaud. The most significant advantage offered by LIN bus is the low cost of implementation. Implementing a LIN node costs approximately half of an equivalent CAN bus node. The LIN bus protocol is based on the common UART byte interface. Any microcontroller with a UART interface can be used as a node on the LIN bus since the basic transmission uses the UART format. The LIN bus protocol specification 1.2 defines three standard baud rates: 2400 baud, 9600 baud and 19200 baud. Communication is based on a master/slave mechanism. The bus is composed of one master node (Driver door) and five slave nodes (All Doors, Front Right Door, Dashboard, PC VNH2 Diagnostic and PC UH22/L9950 Diagnostic). All arbitration and collision management takes place in the master node to further simplify and lower the cost of the slave nodes.

Figure 4. Master/slave diagram

CAN Bus MASTER Driver Door LIN Bus

SLAVE SLAVE SLAVE SLAVE SLAVE All Doors Front Right Door Dashboard PC-VNH2 Diag PC-UH22/L9950 Diag

– All Doors is used for locking/unlocking all doors – Front Right Door is the slave node in the front right door that receives all messages for mirror positioning (X-Y and fold) and for front right window lift – Dashboard is questioned from the master node each 250 ms in order to give information for turning on/off turn indicator and defroster – PC-VNH2 is used for demonstration purposes to send VNH2 diagnostic information to PC – PC-UH22/L9950 is also used for demonstration purposes to send L9950 diagnostic information to PC All communications on the bus take the form of messages, which have a defined format known as the message frame. A diagram showing the format of the message is shown in Figure 5. The message frame is composed of a header and a response. The header is further broken down into three fields: – The synchronization break field, composed of 13 dominant bits (0) and at least one recessive bit (1), which indicates the beginning of a frame. – The synchronization field, which allows a slave to be synchronized on the current master baud rate. – The identifier field, which identifies the requested message and the length of the response field.

10/22 AN2334 Local Interconnect Network (LIN) messages

Figure 5. LIN bus message frame format diagram

Only the master node can initiate a message by sending a header field that is received by all nodes. Each slave node analyses the header and must be ready to send or receive data during the response field of the frame. The identifier field within the header informs all slave nodes in the network of the appropriate action to take. Such actions include: – Receiving bytes transmitted in the response field – Transmitting bytes in the response field – Doing nothing ST72F561 has a flexible microcontroller architecture that makes the implementation of LIN bus communication much easier than on other devices. The LIN bus transmission of a master node, as this demoboard, has three distinct phases: – Synchronization break field transmission: The length of this field is 13 dominant bits and 1 recessive bit – Data byte transmission: The synchronization field, the identifier field, the data fields and the checksum field are each one byte fields. – Data byte reception: The data fields and the checksum field are also transmitted in a byte wise manner. The LIN bus protocol uses a standard baud rate: 19200 baud. In case of microcontroller debugging, when CPU frequency is divided by two, a 9600 baud protocol is also possible. The software PC allows users to change the baud rate. It is necessary to define a specific ID (6 bits long) for each message, which is used for reception or transmission. The message ID is written in a hexadecimal format with the parity bits included. According to the LIN specification, the data field can be 1 to 8 bytes long (for LIN 1.2 and newer). The parity bits P0 and P1 are calculated as follows: P0=ID0 ID1 ID2 ID4 P0=ID1 ID3 ID4 ID5 Because the application is for demonstration purposes, it uses two LIN messages for transmission with PC (2 bytes long for VNH2 diagnostic and 8 bytes long for L9950 diagnostic).

11/22 Local Interconnect Network (LIN) messages AN2334

Table 2. Application Messages Slave Slave response N.transmit Message Message ID response Description destination [bytes] Data source

LinMsg1 FR RL RR Master transmit doors lock / unlock Driver Door (M) 2See Table 3 (0xc1) Doors (S) command LinMsg2 Front Right Master transmit FR Door Driver Door (M) 2See Table 4 (0x42) Door (S) commands LinMsg4 PC-L9950 Driver Door (M) 8See Table 7 Master transmit diagnostic signals (0x73) Diag (S) LinMsg3 PC-VNH2 Master transmit RL Door Driver Door (M) 2See Table 5 (0xC4) Diag (S) commands LinMsg5 Dashboard (S) Driver Door (M) 2 See Table 6 Master data request (0x11)

Table 3. FR RL RR data Description Data Value

Unlock Doors 0x01 Lock Doors 0x02

Table 4. Front Right Door Description Data Value

Front Right Mirror Dx 0x01 Front Right Mirror Sx 0x02 Front Right Mirror Up 0x03 Front Right Mirror Down 0x04 Front Right Mirror Close 0x05 Front Right Mirror open 0x06 Front Right Window Up 0x07 Front Right Window Down 0x08

Table 5. PC-VNH2 Diag. data Description Data Value

No diag err 0x01 Therm. Shutdown Leg A 0x27 Therm. Shutdown Leg B 0x28 Short Circ. Leg A 0x29 Short Circ. Leg B 0x2A Open Load 0x2B

12/22 AN2334 Local Interconnect Network (LIN) messages

Table 6. Dashboard data Description Data Value No action 0x01 Defroster turn on 0x02 Turn light turn on 0x03 Defroster and Turn light turn on 0x04

Table 7. PC - L9950 Diag. data Data0 Data1 Data2 Data3 Data4

Bit Description Bit Description Bit Description Bit Description Bit Description

VS Over Out 2 HS Out 6 HS Out 2 LS Out 6 LS 0 0 0 0 0 Voltage Over Current Over Current Open Load Open Load VS Under Out 3 LS Out 7 HS Out 2 HS Out 6 HS 1 1 1 1 1 Voltage Over Current Over Current Open Load Open Load Thermal Out 3 HS Out 8 HS Out 3 LS Out 7 HS 2 2 2 2 2 Shutdown Over Current Over Current Open Load Open Load

Temperature Out 4 LS Out 9 HS Out 3 HS Out 8 HS 3 3 3 3 3 Warning Over Current Over Current Open Load Open Load Out 4 HS Out 10 HS Out 4 LS Out 9 HS 4N.U. 4 4 4 4 Over Current Over Current Open Load Open Load Out 1 LS Out 5 LS Out 11 HS Out 4 HS Out 10 HS 5 5 5 5 5 Over Current Over Current Over Current Open Load Open Load

Out 1 HS Out 5 HS Out 1 LS Open Out 5 LS Out 11 HS 6 6 6 6 6 Over Current Over Current Load Open Load Open Load Out 2 LS Out 6 LS Out 1 HS Open Out 5 HS 7 7 7 7 7 N.U. Over Current Over Current Load Open Load

13/22 PC Keypad software AN2334

4 PC Keypad software

Before switching on the board, the PC “Keypad” software must be run, defining the parallel port base address (see Windows Device Manager) and the COM serial port to be used. PC software has four different functions: Keyboard, dashboard, LIN analyzer, VNH2 and L9950 diagnostic view. – Keyboard is connected to the microcontroller via a parallel port and provides to the microcontroller an 8-bit word that encodes all possible user actions as described in the following Table 8 and Table 9:

Table 8. Window and door lock coding Window Door Parallel Port Up Left Down Left Up Right Down Right Lock / Unlock

0000 0 192 0001 0 194 0101 0 202 0100 0 200 0010 0 196 1010 0 212 1000 0 208 0000 1 193 0001 1 195 0101 1 203 0100 1 201 0010 1 197 1010 1 213 1000 1 209

14/22 AN2334 PC Keypad software

Table 9. Mirror and door lock coding Mirror Door Parallel Port Left / Lock / Open Close Up Down Left Right Right Unlock

00 0 0 0 00 0 0 10 0 0 0 00 0 128 01 0 0 0 00 0 64 10 1 0 0 00 0 160 01 1 0 0 00 0 96 00 0 1 0 00 0 16 00 0 0 1 00 0 8 00 0 0 0 10 0 4 00 0 0 0 01 0 2 00 1 1 0 00 0 48 00 1 0 1 00 0 40 00 1 0 0 10 0 36 00 1 0 0 01 0 34 00 0 0 0 00 1 1 10 0 0 0 00 1 129 01 0 0 0 00 1 65 10 1 0 0 00 1 161 01 1 0 0 00 1 97 00 0 1 0 00 1 17 00 0 0 1 00 1 9 00 0 0 0 10 1 5 00 0 0 0 01 1 3 00 1 1 0 00 1 49 00 1 0 1 00 1 41 00 1 0 0 10 1 37 00 1 0 0 01 1 35

– Dashboard is a LIN slave node and is used to switch on or off the turn indicator light and the defroster. – LIN Analyzer “sniffs” all LIN messages that flow through bus. – VNH2 and L9950 diagnostic graphically shows the LIN messages addressing VNH2 and L9950 diagnostic nodes. Figure 6 displays the program main window snapshot.

15/22 PC Keypad software AN2334

Figure 6. PC keypad screenshot

Keyboard VNH2 and L9950 diagnostics

Dashboard

LIN analyzer

16/22 AN2334 PC Keypad software

PC software can also change the thresholds for the window lift routine. Any threshold change modifies the motor torque in a pinch state. For further details, please refer to “AN2095 - VNH2 for window lift with antipinch routine”.

Figure 7. Adjust thresholds screenshot

17/22 Hardware implementation AN2334

5 Hardware implementation

The voltage regulator, which provides the required 5V during normal mode, is enabled by the LIN transceiver through Inhibit Output pin INH. To reset the microcontroller with the watchdog timer in case of a missing pulse, a jumper must be installed in the Voltage Regulator Reset connector (#1 - Figure 8). The jumper must be removed in case of microcontroller reprogramming; in fact, in this phase, the microcontroller cannot provide pulses to the voltage regulator that should provide a low level reset. Moreover, during the programming phase, to enable the Voltage regulator a jumper must be installed in the Voltage Regulator Enable connector (#2 - Figure 8) because in this case the LIN bus interface L9638 cannot provide the enabling voltage. In summary, the microcontroller can be reprogrammed using the ICP connector (#10 - Figure 8) by removing the Reset jumper (#1 - Figure 8) and settling the Enable jumper (#2 - Figure 8). See the ST72F561 datasheet for more details. A jumper on CB4 connector (#8 - Figure 8) allows using the board without using the LIN Interface as detailed in Section 3: Local Interconnect Network (LIN) messages. The board connector locations are given in Figure 8.

Figure 8. Board connectors

3 L9950 Outputs 4 Down Key 5 Up Key 6 - CB5 / 7 – CB3 / 8 - CB4 9 - Window Up Switch

1 Reset 10 ICP Conn

2 Enable 11 Window Motor

16 LIN Conn.

12 Power Supply 15 Wake Up

13 L9950 Outputs 14 Parallel 1 3 5 7 9 11 13 15 Port 2 4 6 8 10 12 14 16

18/22 AN2334 Hardware implementation

The L9950 loads are shown in the following table:

Table 10. L9950 Loads L9950 Outputs Load

OUT1 Common Mirror Motors OUT2 X Mirror Motor OUT3 Y Mirror Motor OUT4 Lock Motor OUT5 Lock Motor OUT6 Mirror Fold Motor OUT7 Exterior Light OUT8 Footstep Light OUT9 Safety Light OUT10 Turn Indicator OUT11 Defroster

The input signals INA and INB are directly interfaced with the microcontroller to select the motor direction and the condition. The DIAGA/ENA or DIAGB/ENB, connected to the I/O microcontroller and configured as input pull-up, enable the legs of the bridge. They also provide a digital diagnostic signal. The CS pin allows monitoring the motor current by delivering a current proportional to its value. The PWM, up to 20 KHz, allows control of the motor speed in all possible conditions. The reverse polarity protection MOSFET needs a zener diode and a resistor between gate and source to protect against ISO pulses and for proper turn off in static reverse polarity. In master node application, a LOW ohmic resistor must be connected externally between LIN and battery to allow the maximum transmission rate. Finally, all outputs need a 10nF capacitor to protect the module against 8 kV ESD events.

Figure 9. Board Layout

Reset ICP Connector Down Out4 Out6 Out5 Out3 Out3 Out2 Out1 Out1 Enable Window Up A Window B

Gnd +12 Lin +12 Gnd Gnd Parallel Port Wake Up Out7 Out10 Out8 Out9 Out11 Connector

19/22 Schematic AN2334

Appendix A Schematic

Figure 10. Board Schematic 1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 J3 CON8 J9 CON7 10nF 1 2 3 4 5 6 7 8 9 10 C1 4 J4 Program ICC 10nF 10nF C1 9 Vd d Osc1 RESET C9 ICCDATA 10nF Defroster ICCCLOCK Mi rror Ret ract Mo to r Vp p/I CCS EL 10nF 10nF C6 C1 8 C1 3 Left-Rig ht Mi rror Moto r Lock Mot.B 10nF Turn Indicator Turn 10nF Common Mirror Common Motors 10nF C7 C1 2 C1 6 Safet y Lig ht 10nF Up-Down Mirror Motor Mirror Up-Down Co Mi mmon rror Moto rs C1 7 10nF 10nF C1 0 C8 Footstep Light 10nF LockA Mot. C1 1 Co Mi mmon rror Moto rs Exteri ou r Li ght C2 9 10nF C2 6 CM 33nF MOTOR DC PWM1 J5 10nF R3 4 C2 7 R3 2 2.7k R3 6 50k 20 19 18 17 1 2 30 25 29 28 27 26 14 15 16 21 LockB Mot. Safet y Lig ht LockA Mot. Turn Indicator Turn Footstep Light Exteriour Light 10k Common Mirror Common Motors Up-Down Mi rror Mot or Motor Retract Mirror Left-Right Mirror Motor Defroster R3 3 10k OutB OutB OutB OutB OutA OutA OutA OutA 13 34 35 2 27 3 4 5 16 17 20 21 22 30 31 33 9 GNDB GNDB GNDB GNDB GNDA GNDA GNDA GNDA Sp iCl ock Cl k Out1 Out2 Out3 Out4 Out4 Out5 Out5 Out6 Out7 Out8 Out9 Out10 Out11 Out11 PWM1 CM/ PWM2 VCC VCC VCC VCC VCC VCC VCC A IN B IN PWM PWM DiagA/EnA DiagB/EnB CSens VNH2 SP 30 SO30 Power Multi 3 4 5 7 8 6 9 Vs Vs Vs Vs Vs Vs Vs Vs Vs Vs Ta b CP DO CSN Di Vc c GND GND GND GND 12 13 24 23 22 11 10 R2 2 2.2K L9950 SO36 Power VBAT 7 6 8 1 C5 32 29 28 25 24 23 15 14 26 11 10 12 36 19 18 Ta b 100uF VBAT CP R1 7 R2 1 R3 5 R1 9 R2 0 C4 R1 8 100nF 10K 10K 10K 10K 2.7K 2.7K CSN C2 5 10nF 33nF Master out-SlaveMaster in Master in-Slave out in-Slave Master +5 V R8 47K +5 V Master in-Slave out in-Slave Master Mas ter o ut-Sl av e in RESET C2 8 R6 R7 1K Vd d 10nF Vpp/ICCSEL R1 6 10 K 1K ICCDATA Ext Wdg PWM1 ICCCLOCK EN Sp iCl ock TxD RxD C3 +5 V 40 39 16 26 27 10 28 36 21 12 11 9 19 22 13 14 17 38 43 42 37 15 35 41 10nF C2 4 PE4 Vs sa Vs s2 Vd d2 Vd dA Vs s_0 RESET +5 V Vdd_0 RESET MCO/ PB3 PD6/AIN10 ICCSEL /Vp p PC7/SPI_SCK C2 3 PC5/SPI_MISO PC6/SPI_MOSI T8 _ICAP1/ PB2 100uF T8 _OCMP1 /PB1 PD4/linSCL2_RDl PD5/linSCL2_TDO ICCCLK/ AIN0/ PB4 CB1 ICCDATA/AIN1/PB5 T16_ICAP2/(HS)/P C1 PD3(HS)/linSCL2_SCK T16_OCMP1/AIN2/PB6 T16_OCMP2/AIN3/PB7 Ext Wdg 47nF 1 2 3 J6 CON3 5 6 7 3 C2 2 Wi Vo Vc w 100Ohm VBAT Res out Res R2 7 10nF R2 5 500 Ohm Osc1 Osc2 T16_ICAP1/AIN4/PC0 PWM0/PA1 PWM1/(HS)P A2 PWM3/PA3 PWM3/PA4 ARTCLK/(HS)PA5 ARTIC2/(HS)PA6 PD1/linSCL1_RD1 PD2/linSCL1_TDO PC4/CAN_TX PD7/AIN11 PD0/SPI_ss/AIN6 T1 6_EXTCLK/ (PC3/CAN_RX HS) /P C2 PF5 PF1/AIN7 PE6/AIN5 PF2/AIN8 ST72F561 TQFP44 VBAT

En Vs Ground Vc r L4979D SO8 C1 5 Close d Door d Close 1 2 3 4 5 6 7 8 18 32 33 24 44 29 20 23 34 30 25 31 1 8 2 4 C2 1 1nF R3 R4 R5 R1 0 R1 4 R1 1 R1 2 R1 3 INH CM CB5 100uF 7 6 8 5 1K J1 C2 0 R1 5 1K 1K 1K 1K 1K 1K 1K C2 18pF R2 3 1K PF1 1K CB4 Vs LIN INH GND R3 1 100k 1 2 3 4 5 6 7 8 9 PE6 CB3 10 XT1 INH 16 MHz D2 R3 0 10 K CSN M2 BATTERY J2 RxD EN WUP TxD to PC Parallel Port Parallel PC to SO8 L9638D J8 C1 Osc1 18pF VBAT 1 2 3 4 U5 M1 10k +5 V EN R9 TxD RxD D1

R2 9 10 0K

CB2 VBAT Switch Up Window 10k R2 4 1k R2 6 1KOhm R2 8 R2 10k R1 4.7k VBAT 3 2 1 CP J7 Up Wake

20/22 AN2334 Revision history

Revision history

Table 11. Document revision history Date Revision Changes

07-Apr-2006 1 Initial release. 19-Sep-2013 2 Updated disclaimer.

21/22 AN2334

Please Read Carefully:

Information in this document is provided solely in connection with ST products. STMicroelectronics NV and its subsidiaries (“ST”) reserve the right to make changes, corrections, modifications or improvements, to this document, and the products and services described herein at any time, without notice. All ST products are sold pursuant to ST’s terms and conditions of sale. Purchasers are solely responsible for the choice, selection and use of the ST products and services described herein, and ST assumes no liability whatsoever relating to the choice, selection or use of the ST products and services described herein. No license, express or implied, by estoppel or otherwise, to any intellectual property rights is granted under this document. If any part of this document refers to any third party products or services it shall not be deemed a license grant by ST for the use of such third party products or services, or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoever of such third party products or services or any intellectual property contained therein.

UNLESS OTHERWISE SET FORTH IN ST’S TERMS AND CONDITIONS OF SALE ST DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTY WITH RESPECT TO THE USE AND/OR SALE OF ST PRODUCTS INCLUDING WITHOUT LIMITATION IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE (AND THEIR EQUIVALENTS UNDER THE LAWS OF ANY JURISDICTION), OR INFRINGEMENT OF ANY PATENT, COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT. ST PRODUCTS ARE NOT DESIGNED OR AUTHORIZED FOR USE IN: (A) SAFETY CRITICAL APPLICATIONS SUCH AS LIFE SUPPORTING, ACTIVE IMPLANTED DEVICES OR SYSTEMS WITH PRODUCT FUNCTIONAL SAFETY REQUIREMENTS; (B) AERONAUTIC APPLICATIONS; (C) AUTOMOTIVE APPLICATIONS OR ENVIRONMENTS, AND/OR (D) AEROSPACE APPLICATIONS OR ENVIRONMENTS. WHERE ST PRODUCTS ARE NOT DESIGNED FOR SUCH USE, THE PURCHASER SHALL USE PRODUCTS AT PURCHASER’S SOLE RISK, EVEN IF ST HAS BEEN INFORMED IN WRITING OF SUCH USAGE, UNLESS A PRODUCT IS EXPRESSLY DESIGNATED BY ST AS BEING INTENDED FOR “AUTOMOTIVE, OR MEDICAL” INDUSTRY DOMAINS ACCORDING TO ST PRODUCT DESIGN SPECIFICATIONS. PRODUCTS FORMALLY ESCC, QML OR JAN QUALIFIED ARE DEEMED SUITABLE FOR USE IN AEROSPACE BY THE CORRESPONDING GOVERNMENTAL AGENCY.

Resale of ST products with provisions different from the statements and/or technical features set forth in this document shall immediately void any warranty granted by ST for the ST product or service described herein and shall not create or extend in any manner whatsoever, any liability of ST. ST and the ST logo are trademarks or registered trademarks of ST in various countries. Information in this document supersedes and replaces all information previously supplied. The ST logo is a registered trademark of STMicroelectronics. All other names are the property of their respective owners.

© 2013 STMicroelectronics - All rights reserved

STMicroelectronics group of companies Australia - Belgium - Brazil - Canada - China - Czech Republic - Finland - France - Germany - Hong Kong - India - Israel - Italy - Japan - Malaysia - Malta - Morocco - Philippines - Singapore - Spain - Sweden - Switzerland - United Kingdom - United States of America www.st.com

22/22