S12 MagniV Designing Power Window Lifts with the S12VR

Similar documents
Design an Intelligent Distributed Control System with S12 MagniV Mixed-Signal MCUs

Window Lift and relay based DC motor control Reference Design Using the S12VR

S12VR Hardware Design. Guidelines. 1 Introduction. 2 Hardware Design. Guidelines. 2.1 Voltage regulator. Freescale Semiconductor

TRK-S12ZVL Quick Start Guide. MagniV Mixed-signal MCUs for LIN Applications

Quick Start Guide. S12VR64EVB S12 MagniV Mixed-Signal MCUs. S12 MagniV

S12 MagniV Mixed-Signal Microcontrollers Overview

Window Lift and relay based DC motor control Reference Design Using the S12VR(P)

Analog, Mixed-Signal and Power Management

DEVKIT-S12VR QUICK START GUIDE (QSG)

D115 The Fast Optimal Servo Amplifier For Brush, Brushless, Voice Coil Servo Motors

Application Note. Introduction. AN2461/D Rev. 0, 2/2003. Low Power Management using HCS12 and SBC devices

Kinetis EA Ultra-Reliable Microcontrollers. Automotive and Industrial Applications

MC9S12VR Family Demonstration Lab Training Carlos Aceff Automotive & Industrial Solutions Group, Mexico

ILI2303. ILI2303 Capacitive Touch Sensor Controller. Specification

ILI2511. ILI2511 Single Chip Capacitive Touch Sensor Controller. Specification ILI TECHNOLOGY CORP. Version: V1.4. Date: 2018/7/5

AVR XMEGA Product Line Introduction AVR XMEGA TM. Product Introduction.

DEV-1 HamStack Development Board

TouchCore351-ML16IP. Capacitive Touch Sensor Controller

2. Control Pin Functions and Applications

ILI2312. ILI2312 Single Chip Capacitive Touch Sensor Controller. Specification ILI TECHNOLOGY CORP. Version: V1.03.

HARDWARE MANUAL TMCM Hardware Version V1.2 UNIQUE FEATURES: TRINAMIC Motion Control GmbH & Co. KG Hamburg, Germany.

GUIDE OF POWER ON RESET

Frequently Asked Questions

DEMO9S08SH32/SG32 Demonstration Board for Freescale MC9S08SH32/SG32

Freedom FRDM-KV31F Development Platform User s Guide

Industrial Controller Area Network (CAN) Applications

HARDWARE MANUAL TMCM-1613 TMCM-1613-REC. Hardware Version V TRINAMIC Motion Control GmbH & Co. KG Hamburg, Germany.

INTERFACING HARDWARE WITH MICROCONTROLLER

Quick Start Guide TRK S12ZVFP64. S12 MagniV MCU for Automotive Heating, Ventilation and Air Conditioning (HVAC) Applications

Sensorless BLDC Motor Control Based on MC9S08PT60 Tower Board User Guide

Bolt 18F2550 System Hardware Manual

DM9051NP Layout Guide

DEMO9S08SH8/SG8 Demonstration Board for Freescale MC9S08SH8/SG8

User Manual Rev. 0. Freescale Semiconductor Inc. FRDMKL02ZUM

Hello, and welcome to this presentation of the STM32 Touch Sensing Controller (TSC) which enables the designer to simply add touch sensing

EMTRON AUSTRALIA EMTRON ECU OVERVIEW

RN-174 WiFly Super Module

Interconnects, Memory, GPIO

Module Introduction. This training module provides an overview of Freescale s scalable solutions for low data rate 2.4 GHz connectivity.

Frequently Asked Questions

SN8200 LI+ DUAL BATTERY CONTROLLER

Leading Performance - Low Power - Scalability - Industrial-grade reliability & temp

TWR-KV11Z75M Tower System Module User s Guide

Pressure Sensor ICs. Motor Controller / Fan Driver ICs. DACOM West GmbH.

Course Introduction. Content: 21 pages 4 questions. Learning Time: 35 minutes

SS1438 Unipolar Hall Switch

AVR XMEGA TM. A New Reference for 8/16-bit Microcontrollers. Ingar Fredriksen AVR Product Marketing Director

UM0708 User manual. STM8Sxxx three-phase BLDC motor control software library V1.0. Introduction

DS1238A MicroManager PIN ASSIGNMENT PIN DESCRIPTION V BAT V CCO V CC

M68HC08 Microcontroller The MC68HC908GP32. General Description. MCU Block Diagram CPU08 1

PIC Microcontroller Introduction

HL2430/2432/2434/2436

rcube2: Powertrain I/O Module

MicroProcessor. MicroProcessor. MicroProcessor. MicroProcessor

User Manual For CP-JR ARM7 USB-LPC2148 / EXP

TP6836. USB 2.4G RF Dongle. Data Sheet

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

Arduino Uno R3 INTRODUCTION

Nuvoton 4T 8051-based Microcontroller NuTiny-SDK-N78E715 User Manual

SBC65EC. Ethernet enabled Single Board Computer

BATSEL KEY3 KEY2 HOSCO GPIO0 DCDIS HOSCI KEY0 D4 KEY1 D3. Reset Default. 2 D7 BI / L Bit7 of ext. memory data bus

FRDM-KE02Z User s Manual

Frequently Asked Questions

Implementing the MC33903/4/5 CAN and LIN system basis chip

Z8 Encore! XP F1680 Series 8-Bit Flash Solution with Extended Peripherals

Hello, and welcome to this presentation of the STM32L4 power controller. The STM32L4 s power management functions and all power modes will also be

APPLICATION NOTE 655 Supervisor ICs Monitor Battery-Powered Equipment

This manual provides information for the final user application developer on how to use SPC57S-Discovery microcontroller evaluation board.

TWR-S12G128 Demonstration Board for Freescale MC9S12G128 Microcontroller

Freescale Semiconductor Inc. Microcontroller Solutions Group. FRDM-KL46Z User s Manual FRDM-KL46Z-UM Rev. 1.0

Overvoltage Protection in Automotive Systems

TP6825. USB Full Speed Game Pad Controller. Data Sheet. Tenx reserves the right to change or discontinue this product without notice.

Multiple Switch Detection Interface with Suppressed Wake-up

Digital Servo Drive. For Brushless Motor or Brushed Motor MDSC4805 / MDSC4810 / MDSC4830 / MDSC4850. Datasheet V1.1. Jun 2, 2017

RN-171-EK Evaluation Board

RS485 3 click. How does it work? PID: MIKROE-2821

rcube2: Advanced Rapid Prototyping Electronic Control Unit

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.

Getting Started With the Stellaris EK-LM4F120XL LaunchPad Workshop. Version 1.05

Quick Start Guide MagniV MC9S12ZVML128 MCU

MICROCONTROLLER BASED SMART FAN SYSTEM

ET-PIC 24 WEB-V1. o Central Processing Unit (CPU) o System. o nanowatt Power Managed Modes. o Analog Features

Ultra Low Power Microcontroller - Design Criteria - June 2017

Introducing STM32 L0x Series. April

HARDWARE MANUAL TMCM Hardware Version V1.4 UNIQUE FEATURES: TRINAMIC Motion Control GmbH & Co. KG Hamburg, Germany.

HARDWARE MANUAL TMCM-1613 TMCM-1613-REC. Hardware Version V TRINAMIC Motion Control GmbH & Co. KG Hamburg, Germany.

Remote Keyless Entry In a Body Controller Unit Application

Freescale Semiconductor, I

ZigBee Compliant Platform 2.4G RF Low Power Transceiver Module for IEEE Standard. DATA SHEET Version B

Introduction to Microcontroller Apps for Amateur Radio Projects Using the HamStack Platform.

DEMO9S08DZ60 Demonstration Board for Freescale MC9S08DZ60

Flash Core Voltage Supply Requirements and Considerations

This Part-B course discusses design techniques that are used to reduce noise problems in large-scale integration (LSI) devices.

E3B USER'S GUIDE. for QT310 / QT320 QProx IC evaluation and development Overview. Fast Start

Factsheet 16FX Concept Compatible Platform of 16-bit Microcontrollers

Color 7 click. PID: MIKROE 3062 Weight: 19 g

Homework 5: Circuit Design and Theory of Operation Due: Friday, February 24, at NOON

EMBEDDED SYSTEMS COURSE CURRICULUM

RoboClaw 2x30A Dual Channel Motor Controller

PANDORA HACKER GUIDE

Transcription:

S12 MagniV Designing Power Window Lifts with the S12VR Overview Carlos A, Carlos V, Luis O AutoMCU Applications Engineer S E P. 0 3. 2 0 1 4 External Use

Agenda MagniV solutions for motor control S12VR overview TRK-S12VR-WLFT Reference Design: Hardware Safety Measures for Power Window Lifts TRK-S12VR-WLFT Reference Design: Software External Use 1

MCU + High-Voltage Technology External Use 2

A Technology Sweet spot for Sensor and Actuators Digital Logic S12, PWMs, Timers, SRAM, SPI, SCI, GPIO, Watchdogs, etc. Non-Volatile Memory Flash, EEPROM High-Voltage Analog Low Side & High Side Drivers, Voltage Regulator LIN/CAN Phy. etc. Existing Low Leakage 180nm CMOS+NVM 40V UHV Devices External Use 3

Shrink Your Application Traditional Solutions System in Package Standard MCU Multiple analog IC Saves up 30% space Simplifies manufacturing External Use 4

S12VR Target Area S12ZVM Target Area Relay-driven H-Bridge driven DC motors DC motors Brushless DC Motors (BLDC) Permanent Magnet synchronous Motors (PMSM) Relay H-Bridge 3-phase 3-phase Power Stage Permanent magnets placed on stator Permanent magnets placed on rotor Mechanical construction Commutation & Control Technique Magnetic poles in rotor generated by current conducted coil Mechanical commutation by brushes in the rotor Current conducted coils in stator generate changing magnetic flux vector Electronic Commutation takes place in the stator 6-step / block commutation to produce trapezoidal Phase voltage Sinusoidal / vector control to produce sinusoidal phase voltage Topology Advantage Lowest cost No mechanical component (reliability, electrification) No Relay noise PWM speed regulation High Efficiency Power to weight ratio Reliability Noise Best noise behavior High speed & precision Highest efficiency & torque Power to weight ratio External Use 5

MagniV Family for Motor Control < 200W Motors > 200W Motors Brushless DC Motors S12ZVM 16/32KB; 64pin; 50nC S12ZVMC 64-128KB; 64pin 2nd 5V VREG for ext CAN, 100nC S12ZVML 32-128KB; 64pin LIN with PHY, 100nC H-Bridg ge driven DC-m motors H-Bridge S12ZVMC 64-128KB; 64pin 2nd 5V VREG for ext CAN, 100nC S12ZVML 32-128KB; 64pin LIN with PHY, 100nC Relay-driven DC-motors S12VR 48K-64KB; 32/48pin LIN with PHY; LS drivers S12VR 16-32kB, 32pin LIN with PHY; LS-driver LIN applications CAN applications PWM controlled apps External Use 6 High temp option (AEC Grade 0) Switch panel interface Production Execution Family-concept for relay-driven DCmotor window lifter Covering low to high end Planning Planned extension for future H-Bridge DC-WL Proposal

S12 CPU with an integrated Voltage regulator, LIN physical layer and HS/LS-drivers for Relay-driven Window Lift motor External Use 7

S12VR Family Relay based DC Motors Digital Components MCU Core and Memories 5V Analogue Components High-Voltage Components Key Features: S12 (25 MHz max) 16-bit CPU compatible with the S12G family and MM912 solutions. Voltage Regulator operating directly from car battery (No ext regulator needed) capable to drive 20mA to drive off chip components (E-Vdd) LIN Physical Layer: LIN 2.x / J2602 compliant; +/- 8kV ESD capability True 512B EEPROM with ECC, 4 byte erasable 2 Low-Side drivers with active clamps to drive relays (inductive load) for bi-directional brushed DC Motors Up to 2 HS drivers: for indicator LED and Switch supply Up to 4 High Voltage Inputs: 12V Inputs, ESD-protected, wakeup/interrupt capability, 12V analog inputs routed internally to ADC through selectable divider ratio. On chip RC Oscillator; trimmed to +/- 1,3% tolerance over full temperature range G P I O LIN -PHY SCI 1 SCI 0 SPI BDM KWU Win Wdog TIM 16b 4ch PWM 8ch 8b or 4ch 16b 1# EVdd Family options: RCosc. +/-1.3% 16-64kB 64kB Flash (ECC) 128-512B EEPROM (ECC) 4 HV Inputs Pierce Osc. PLL S12 25MHz Bus 2 kb RAM Vbat sense Temp Sense Vreg 70mA Flexible Flash Options: 16kB to 64kB Flash Packaging: 32-LQFP or 48-LQFP 10-Bit ADC 2 HS Drivers 2 Low Side Drivers C / V / M Temperature options (up to 125 C Ta) Vsup sense Target Applications Automotive power window lift / sunroof with anti-pinch Any relay driven DC motors LIN slaves with space constraints External Use 8

Overview of S12VR Family Digital Components MCU Core and Memories 5V Analogue Components High-Voltage Components 2 UARTs One linked to LIN Phy, 2 nd as reardoor communication or indep. test Interface SPI As alternative test Interf. Up to 16 Wakeup pins Combined with Analog Input pins and HV pins 4ch 16bit Timer Hall inputs, SW timing 8ch PWM Routable to HS and LS outputs, for LED dimming External Supply 5V / 20mA switchable for local (same PCB), over current protected. Eg. supplying Hallsensors LIN Physical Layer LIN2.2 and SAE J2602 compliant G P I O LIN -PHY SCI 1 SCI 0 SPI BDM KWU Win Wdog TIM 16b 4ch PWM 8ch 8b or 4ch 16b 1# EVDD 4 High Voltage Inputs 12V Inputs for Switch Monitoring Routable to ADC S12 CPU 16-bit, compatible with S12G Family and existing SiP Solutions. RCosc. +/-1.3% Pierce Osc. PLL S12 25MHz Bus 48-64kB Flash (ECC) 512B EEPROM (ECC) 4 HV Inputs 2 kb RAM VSENSE (battery) EEPROM 4 byte eraseable 100k program/ erase cycles On chip RC OSC factorytrimmed to +/- 1.3%, meets LIN -needs Temp Sense 10-Bit ADC 2 HS Drivers 2 Low Side Drivers VREG 70mA VSUP sense Flash (48/64kB) 512B erasable, 10k p/e cycles Can be used for Data (parameter, config, calibr.) ADC - up to 6 ext. Ch. +4 int. channels for temp sense, supply monitors, HV inputs, internal ref Voltages Up to 2 HS drivers For LED and Switch supply 2 Low-Side Drivers Protected LS Drivers to drive relays directly Voltage Regulator 5V/70mA for the whole system Supply- and Batterysensing Voltage sense before (VSENSE) and after protection diode (VSUP) Packaging Options 32LQFP and 48LQFP External Use 9

Overview of S12VR Family Analog Modules LIN Physical Layer LIN2.2 and SAE J2602 compliant G P I O LIN -PHY SCI 1 SCI 0 SPI BDM KWU Win Wdog TIM 16b 4ch PWM 8ch 8b or 4ch 16b 1# EVDD 4 High Voltage Inputs 12V Inputs for Switch Monitoring Routable to ADC RCosc. +/-1.3% Pierce Osc. PLL S12 25MHz Bus 48-64kB Flash (ECC) 512B EEPROM (ECC) 4 HV Inputs 2 kb RAM VSENSE (battery) Temp Sense 10-Bit ADC 2 HS Drivers 2 LS Drivers VREG 70mA VSUP sense Up to 2 HS drivers For LED and Switch supply 2 Low-Side Drivers Protected LS Drivers to drive relays directly Voltage Regulator 5V/70mA for the whole system Supply- and Batterysensing Voltage sense before (VSENSE) and after protection diode (VSUP) External Use 10

S12VR Package & Feature Options Product Name S12VR Package 32 LQFP 32 LQFP 48 LQFP Status Execution Production Production Flash Memory 32 or 16kB 64/48kB 64/48kB EEPROM 128B 512B 512B RAM 2kB 2kB 2kB Enhanced Clock Module 1 0 0 Clock Module 0 1 1 Enhanced High Side Driver With Slew Rate Control 1 0 0 High Side Drivers 0 1 2 LINPHY Compliant with LIN 2.2 Standard 0 1 1 Enhanced LINPHY Compliant with Lin 2.2 1 0 0 Standard Low Side Drivers 2 2 2 HV Inputs 4 4 4 Sensor Supply (EVDD) 1 1 1 SPI modules - 1 1 Max. 5V GPIOs 32 16 16 32 48 28 LQFP LQFP LQFP Package Body Size 7x7mm 2 7x7mm 2 7x7mm 2 Pin Pitch 0.8mm 0.8mm 0.5mm 0.8mm pitch allows routing signals between pins for PCB space- & layer-savings External Use 11

S12VR Development Tools and Enablement EVB Reference Design HARDWARE: S12VR64EVB: S12VR Evaluation Board ($149,-) TRK-S12VR-WLFT: Window lifter refence design USBMULTILINKBDM: In-Circuit Debugger/Programmer COMPILER, DEBUGGER: CW_V5.1HCS12_VR64SP: CodeWarrior for HCS12(X) v5.1 VR64 Service Pack ZAP 6812 ICD: Cosmic ZAP HCS12 BDM Debugger. APPLICATION NOTE, REFERENCE DESIGN, MIDDLEWARE: AN4540 Comparison Between the MC9S12VR and MM912_634 AN4650 Functional Differences between Tomar 2.1 (2N05E) & Tomar 3 (0N59H) FSL_LIN_2.1_DRIVER: LIN 2.1 / J2602 Driver TRAINING: AN4448: MC9S12VR Family Demonstration Lab Training External Use 12 Not needed with EVB

Achieved LIN2.2/SAE J2602-2 Physical Layer Conformance External Use 13

LINPHY EMC Certifications External Use 14

S12VR Detailed Analog Module Explanation External Use 15

Low Side Drivers Features Power N channel enhancement MOSFETs that can be used to activate coils 2 LSD are included no matter what package is selected. Thus, up/down control is possible in any case. It is included an over current protection circuit with automatic shutdown (not shown in the picture) 2 zener diodes are included to protect the MOSFET from the BEMF generated when switching off the coils. External Use 16

Low Side Drivers Features Power N channel enhancement MOSFETs that can be used to activate coils 2 LSD are included no matter what package is selected. Thus, up/down control is possible in any case. It is included an over current protection circuit with automatic shutdown (not shown in the picture) 2 zener diodes are included to protect the MOSFET from the BEMF generated when switching off the coils. External Use 17

Low Side Drivers Features Power N channel enhancement MOSFETs that can be used to activate coils 2 LSD are included no matter what package is selected It is included an over current protection circuit with automatic shutdown (not shown in the picture) 2 zener diodes are included to protect the MOSFET from the BEMF generated when switching off the coils. External Use 18

Low Side Drivers Use Recommendation in Window Lifters Use one LSD to drive the motor up and the other to drive it down. Example: When activating LS0 turn off LS1 to move the motor up When activating LS1 turn off LS0 to move the motor down External Use 19

Low Side Drivers Use Recommendation in Window Lifters Use one LSD to drive the motor up and the other to drive it down. Example: When activating LS0 turn off LS1 to move the motor up When activating LS1 turn off LS0 to move the motor down External Use 20

High Voltage Input Features Can be used as a digital or analog input that can be operated at battery voltage level. A voltage divider is included to allow routing the divided voltage to an ADC channel. Direct mode used to bypass the voltage divider. Internally it has a 40K ohm resistor and externally the required 10k resistor provide a low leakage path External Use 21

High Voltage Input Features Can be used as a digital or analog input that can be operated at battery voltage level. A voltage divider is included to allow routing the divided voltage to an ADC channel. Direct mode used to bypass the voltage divider. Internally it has a 40K ohm resistor and externally the required 10k resistor provide a low leakage path External Use 22

High Voltage Input Features Can be used as a digital or analog input that can be operated at battery voltage level. A voltage divider is included to allow routing the divided voltage to an ADC channel. Direct mode used to bypass the voltage divider. Internally it has a 40K ohm resistor and externally the required 10k resistor provide a low leakage path External Use 23

High Voltage Input Features Can be used as a digital or analog input that can be operated at battery voltage level. A voltage divider is included to allow routing the divided voltage to an ADC channel. Direct mode used to bypass the voltage divider. Internally it has a 40K ohm resistor and externally the required 10k resistor provide a low leakage path External Use 24

High Voltage Input Use Recommendation in Window Lifters Use them to read the state of switches connected to battery voltage level. Use them to awake the MCU from stop when a relay fault is detected. External Use 25

High Voltage Input Use Recommendation in Window Lifters Use them to read the state of switches connected to battery voltage level. Use them to awake the MCU from stop when a relay fault is detected External Use 26

High Side Driver Features Power P channel enhancement MOSFETs that can be used to activate resistive loads. 1 HSD included in the 32LQFP package and 2 in the 48LQFP An over current protection with automatic shutdown feature is included VGS limited by zeners External Use 27

High Side Driver Features Power P channel enhancement MOSFETs that can be used to activate resistive loads. 1 HSD included in the 32LQFP package and 2 in the 48LQFP An over current protection with automatic shutdown feature is included VGS limited by zeners External Use 28

High Side Driver Features Power P channel enhancement MOSFETs that can be used to activate resistive loads. 1 HSD included in the 32LQFP package and 2 in the 48LQFP An over current protection with automatic shutdown feature is included VGS limited by zeners External Use 29

High Side Drivers Use Recommendation in Window Lifters Use one HSD to drive a search light. Use the second HSD to power the ajar switch External Use 30

High Side Drivers Use Recommendation in Window Lifters Use one HSD to drive a search light. Use the second HSD to power the ajar switch External Use 31

LINPHY Features LSD transistor used as LIN physical layer. Internal selectable slave pull up device. Slew rate control Over current shutdown with mask feature TxD Dominant timeout with automatic shut down feature. Can be configured to generate a wake up pulse during stop mode that can be passed to the SCI to awake the MCU. Compliant with LIN PHY Layer 2.2 spec Compliant with SAE J2602-2 LIN Standard External Use 32

LINPHY Features LSD transistor used as LIN physical layer. Internal selectable slave pull up device. Slew rate control Over current shutdown with mask feature TxD Dominant timeout with automatic shut down feature. Can be configured to generate a wake up pulse during stop mode that can be passed to the SCI to awake the MCU. Compliant with LIN PHY Layer 2.2 spec Compliant with SAE J2602-2 LIN Standard External Use 33

LINPHY Features LSD transistor used as LIN physical layer. Internal selectable slave pull up device. Slew rate control Over current shutdown with mask feature TxD Dominant timeout with automatic shut down feature. Can be configured to generate a wake up pulse during stop mode that can be passed to the SCI to awake the MCU. Compliant with LIN PHY Layer 2.2 spec Compliant with SAE J2602-2 LIN Standard External Use 34

LINPHY Features LSD transistor used as LIN physical layer. Internal selectable slave pull up device. Slew rate control Over current shutdown with mask feature TxD Dominant timeout with automatic shut down feature. Can be configured to generate a wake up pulse during stop mode that can be passed to the SCI to awake the MCU. Compliant with LIN PHY Layer 2.2 spec Compliant with SAE J2602-2 LIN Standard External Use 35

LINPHY Features LSD transistor used as LIN physical layer. Internal selectable slave pull up device. Slew rate control Over current shutdown with mask feature TxD Dominant timeout with automatic shut down feature. Can be configured to generate a wake up pulse during stop mode that can be passed to the SCI to awake the MCU. Compliant with LIN PHY Layer 2.2 spec Compliant with SAE J2602-2 LIN Standard External Use 36

LINPHY Features LSD transistor used as LIN physical layer. Internal selectable slave pull up device. Slew rate control Over current shutdown with mask feature TxD Dominant timeout with automatic shut down feature. Can be configured to generate a wake up pulse during stop mode that can be passed to the SCI to awake the MCU. Compliant with LIN PHY Layer 2.2 spec Compliant with SAE J2602-2 LIN Standard External Use 37

LIN wake up * is twufr period LIN bus < twufr > twufr No LIN wake up 23us after the falling edge at the SCI RX, the bus clock becomes available, then other peripheral modules are transitioned to run mode and CPU fetches the RXEDG interrupt SCI Rx (internal signal) About 3.4us after the LIN bus reaches its recessive level (~60% of VSUP), the SCI RX falling edge occurs MCU state STOP RUN External Use 38

FMVSS Powered Window Lift Required Safety Measures External Use 39

FMVSS 118 ECUs driving power-operated window, partition and roof panels must meet the requirements of the FMVSS: 1. The system is restricted to close the window only if specific conditions are met (see FMVSS for a detail of all conditions), or 2. The system implements an automatic reversal system. This system must stop and reverse the direction of the window either before contacting, or before exerting a squeezing force of 100N The Objective of these measures is to minimize the likelihood of death or injury from accidental operation External Use 40

Self Reversal Systems For self reversal systems, the system needs to be able to compute the force exerted by the window during its operation or detect the proximity of an object obstructing the window Typical implementations: 1. Sense the current in a DC motor while it moves Torque is proportional to the current flowing on the motor Current ripples can be used to detect the window position 2. Use a hall encoder to detect the position and speed of the motor The torque can be computed with the measured speed and the measured voltage at the terminals of the motor 3. Use infrared reflection to detect obstructing objects before contacting them External Use 41

Considerations when Designing Powered Window Lifts External Use 42

Do NOT exceed MCU s maximum operating ratings! External Use 43

Load Dump and Fast Transients Introduction 1. In Automotive it refers to the disconnection of the vehicle battery from the alternator while the battery is being charged. 2. Due to such disconnection other loads will see a voltage peak 3. ISO7637 (and SAE J1113-11) specify standard shapes of pulses against which automotive electronic components must be designed 4. Other ECU cables connected in the same harness than the Battery/Alternator will establish a capacitive/inductive coupling. Thus they will be affected also by fast transients. External Use 44

Load Dump and Fast Transients Introduction 1. In Automotive it refers to the disconnection of the vehicle battery from the alternator while the battery is being charged. 2. Due to such disconnection other loads will see a voltage peak 3. ISO7637 (and SAE J1113-11) specify standard shapes of pulses against which automotive electronic components must be designed. 4. Other ECU cables connected in the same harness than the Battery/Alternator will establish a capacitive/inductive coupling. Thus they will be affected also by fast transients. External Use 45

Load Dump and Fast Transients Introduction 1. In Automotive it refers to the disconnection of the vehicle battery from the alternator while the battery is being charged. 2. Due to such disconnection other loads will see a voltage peak. 3. ISO7637 (and SAE J1113-11) specify standard shapes of pulses against which automotive electronic components must be designed. 4. Other ECU cables connected in the same harness than the Battery/Alternator will establish a capacitive/inductive coupling. Thus they will be affected also by fast transients. External Use 46

Load Dump and Fast Transients Introduction 1. In Automotive it refers to the disconnection of the vehicle battery from the alternator while the battery is being charged. 2. Due to such disconnection other loads will see a voltage peak. 3. ISO7637 (and SAE J1113-11) specify standard shapes of pulses against which automotive electronic components must be designed. 4. Other ECU cables connected in the same harness than the Battery/Alternator will establish a capacitive/inductive coupling. Thus they will be affected also by fast transients. External Use 47

Load Dump and Fast Transients Introduction 1. Modules with connections to VBAT (or VSUP) will be directly affected by transients. Involved pins might be HSD, LSD, HVI, VSENSE, VSUP and LINPHY. 2. 5V pins will be affected also if they are routed thru cables running in parallel to VBAT. External Use 48

Load Dump and Fast Transients Introduction 1. Modules with connections to VBAT (or VSUP) will be directly affected by transients. Involved pins might be HSD, LSD, HVI, VSENSE, VSUP and LINPHY. 2. 5V pins will be affected also if they are routed thru cables running in parallel to VBAT. External Use 49

Load Dump and Fast Transients Recommendations 1. Limit the maximum voltage at VBAT by using a transient suppressing device (for example use a TVS). On load dumps it is recommended to have a centralized external Load dump module. Max voltage at VSUP is 42V. 2. To limit the injected current at 5V pins, add RC filters (low pass filters) at input pins routed outside the board. 3. When possible limit the transient at HVIs and VSENSE by forming a low pass filter with the 10K ohm required resistor and a capacitor. 4. If the module will be subject to transients that require more dissipation power than the one already included in the device add additional suppressing devices. External Use 50

Load Dump and Fast Transients Recommendations 1. Limit the maximum voltage at VBAT by using a transient suppressing device (for example use a TVS). On load dumps it is recommended to have a centralized external Load dump module. Max voltage at VSUP is 42V. 2. To limit the injected current at 5V pins, add RC filters (low pass filters) at input pins routed outside the board.. 3. When possible limit the transient at HVIs and VSENSE by forming a low pass filter with the 10K ohm required resistor and a capacitor. 4. If the module will be subject to transients that require more dissipation power than the one already included in the device add additional suppressing devices. External Use 51

Load Dump and Fast Transients Recommendations 1. Limit the maximum voltage at VBAT by using a transient suppressing device (for example use a TVS). On load dumps it is recommended to have a centralized external Load dump module. Max voltage at VSUP is 42V. 2. To limit the injected current at 5V pins, add RC filters (low pass filters) at input pins routed outside the board.. 3. When possible limit the transient at HVIs and VSENSE by forming a low pass filter with the 10K ohm required resistor and a capacitor. 4. If the module will be subject to transients that require more dissipation power than the one already included in the device add additional suppressing devices. External Use 52

Load Dump and Fast Transients Recommendations 1. Limit the maximum voltage at VBAT by using a transient suppressing device (for example use a TVS). On load dumps it is recommended to have a centralized external Load dump module. Max voltage at VSUP is 42V. 2. To limit the injected current at 5V pins, add RC filters (low pass filters) at input pins routed outside the board.. 3. When possible limit the transient at HVIs and VSENSE by forming a low pass filter with the 10K ohm required resistor and a capacitor. 4. If the module will be subject to transients that require more dissipation power than the one already included in the device add additional suppressing devices. External Use 53

Specific Challenges when Designing for DC motors External Use 54

Mid Freq. Transients During the Motor Activation 1. Several customers detect transients with a frequency content between 10MHz and 50MHz when activating a brushed DC motor. 2. Car manufacturers require the system to remain with no resets during the injection of these transients. E.g. The open Ford test requirement EMC-CS-2009.1. Test CI-220 pulse C-1 External Use 55

Mid Freq. Transients During the Motor Activation To filter such frequencies users can put a Low Pass LC Filter connected between VBAT and GND: External Use 56

Mid. Freq. Transients During the Motor Activation Below it is shown in yellow the high frequency transient in the input and in green the output of the filter. For this filter as L element it was used 2 BLM18AG102SH1 inductors from Murata connected in parallel (1K ohm impedance each @100MHz) and 2 680pF capacitors connected in series. Green plot shows how the transients are removed. External Use 57

TRK-S12VR-WLFT Reference Design Hardware Overview External Use 58

TRK-S12VR-WLFT Characteristics S12VR Package: 32-pin LQFP Motor type: DC, 7A typ. Feedback: Hall Encoder, voltage applied at the Motor PCB: 2-layer board, assembly on top side only. 2.4in x 1.9in (including demo switch and push-buttons) BOM parts = 42 (not including headers, switch and pushbuttons) External Use 59

Simplified Board Description M VBAT Hall Sensor PT0 PT3 EVDD HVI0 HVI1 LS0 LS1 Relay Driver & Interface Hall Supply Input Cap 1 Input Cap 2 Hall Supply & Interface GPIOs PP1 PS2 PAD0 Down Up Ajar Switches HS0 HS0 LIN LIN LIN Physical Interface Bandgap HSD HS0 Debug & Programming Connector BKGD RESET Test Inter- face Vbat Debug&Prog sense Interface S12VR64 Voltage Regulator VSENSE VSUP VBAT GND External Use 60

System Hardware Description Description VSUP: A low Vf Diode protects VSUP from reverse battery conditions. 2 10uF/50V/1210 capacitors are used to decouple transients in the 100KHz to 1MHz range. VSENSE: A 10K resistor and a 6.8nF/50V/0402 cap make a low pass filter for stable VBAT System Measurements. Motor Actuator: The relay takes typically ~1.3ms to open/close the terminals (max 5ms). During this time the TVS1 can clamp transients caused by the rapid decrement in the current in the coils. The Relay is activated by 2 LSDs. No relay discharge coil diode were included given the fact that the LSDs already include an internal active clamp External Use 61

System Hardware Description Description VSUP: A low Vf Diode protects VSUP from reverse battery conditions. 2 10uF/50V/1210 capacitors are used to decouple transients in the 50KHz to 1MHz range. VSENSE: A 10K resistor and a 6.8nF/50V/0402 cap make a low pass filter for stable VBAT System Measurements. Motor Actuator: The relay takes typically ~1.3ms to open/close the terminals (max 5ms). During this time the TVS1 can clamp transients caused by the rapid decrement in the current in the coils. The Relay is activated by 2 LSDs. No relay discharge coil diode were included given the fact that the LSDs already include an internal active clamp. External Use 62

System Hardware Description Description VSUP: A low Vf Diode protects VSUP from reverse battery conditions. 2 10uF/50V/1210 capacitors are used to decouple transients in the 50KHz to 1MHz range. VSENSE: A 10K resistor and a 6.8nF/50V/0402 cap make a low pass filter for stable VBAT System Measurements. Motor Actuator: The relay takes typically ~1.3ms to open/close the terminals (max 5ms). During this time the TVS1 can clamp transients caused by the rapid decrement in the current in the coils. The Relay is activated by 2 LSDs. No relay discharge coil diode were included given the fact that the LSDs already include an internal active clamp. External Use 63

System Hardware Description Description VSUP: A low Vf Diode protects VSUP from reverse battery conditions. 2 10uF/50V/1210 capacitors are used to decouple transients in the 50KHz to 1MHz range. VSENSE: A 10K resistor and a 6.8nF/50V/0402 cap make a low pass filter for stable VBAT System Measurements. Motor Actuator: The relay takes typically ~1.3ms to open/close the terminals (max 5ms). During this time the TVS1 can clamp transients caused by the rapid decrement in the current in the coils. The Relay is activated by 2 LSDs. No relay discharge coil diode were included given the fact that the LSDs already include an internal active clamp. External Use 64

System Hardware Description Description To protect the EVDD pin from short to battery conditions, a very low VF Diode. (Typical VF<0.21V) was added between the EVDD pin and the external hall encoder. The EVDD over current internal structure is used to react against EVDD short to GND conditions. (Diode only needed for off board hall sensors). A 1uF capacitor provides voltage stability against input transients in the 100KHz to 1MHz range. External Use 65

System Hardware Description Description To protect the EVDD pin from short to battery conditions, a very low VF Diode. (Typical VF<0.21V) is added between the EVDD pin and the external hall encoder. The EVDD over current internal structure is used to react against EVDD short to GND conditions. (Diode only needed for off board hall sensors). A 1uF capacitor provides voltage stability against input transients in the 100KHz to 1MHz range. External Use 66

System Hardware Description Description 2 Low pass filters placed at the Timer inputs provide high frequency filtering protection and current injection protection against shorts to VBAT. 2: 4.7K ohm pull up resistors are used to pull up the hall encoder speed and direction signals. External Use 67

System Hardware Description Description 2 Low pass filters placed at the Timer inputs provide high frequency filtering protection and current injection protection against shorts to VBAT. 2: 4.7K ohm pull up resistors are used to pull up the hall encoder speed and direction signals. External Use 68

System Hardware Description Description 2: 47K ohm resistors and a 100nF cap protect the 2, 5V digital inputs from transients coupled thru the HS0. These inputs are used for up/down switch detection. The up/down switch is powered thru the HSD. This allows automatic power off during low current mode. HS0 can provide up to 50mA to switches. External Use 69

System Hardware Description Description 2: 47K ohm resistors and a 100nF cap protect the 2, 5V digital inputs from transients coupled thru the HS0. These inputs are used for up/down switch detection. The up/down switch is powered thru the HSD. This allows automatic power off during low current mode. HS0 can provide up to 50mA to switches. External Use 70

TRK-S12VR-WLFT Reference Design Software Recommendations External Use 71

Knowledge Needed to Implement Anti-pinch Detection Ideal DC Motor dynamics For a constant Voltage: Motor Torque increases linearly as speed reduces For a constant Voltage: Speed reduces as the elevator friction increases For a larger Voltage: Motor speed increases as voltage increases Temperature may affect the speed of the motor as well External Use 72

Knowledge Needed to Implement Anti-pinch Detection Ideal DC Motor dynamics For a constant Voltage: Motor Torque increases linearly as speed reduces For a constant Voltage: Speed reduces as the elevator friction increases For a larger Voltage: Motor speed increases as voltage increases Temperature may affect the speed of the motor as well External Use 73

Knowledge Needed to Implement Anti-pinch Detection Ideal DC Motor dynamics For a constant Voltage: Motor Torque increases linearly as speed reduces For a constant Voltage: Speed reduces as the elevator friction increases For a larger Voltage: Motor speed increases as voltage increases Temperature may affect the speed of the motor as well External Use 74

Knowledge Needed to Implement Anti-pinch Detection Ideal DC Motor dynamics For a constant Voltage: Motor Torque increases linearly as speed reduces For a constant Voltage: Speed reduces as the elevator friction increases For a larger Voltage: Motor speed increases as voltage increases Temperature may affect the speed of the motor as well External Use 75

Knowledge Needed to Implement Anti-pinch Detection Pinch Detection Using the measured motor speed, voltage in the motor and the expected speed at a determined position, it is possible to determine the force exerted by the window to a determined obstacle By establishing a speed maximum period at a determined position and voltage, it is possible to determine if the exerted force was reached External Use 76

Knowledge Needed to Implement Anti-pinch Detection Pinch Detection Using the measured motor speed, voltage in the motor and the expected speed at a determined position, it is possible to determine the force exerted by the window to a determined obstacle By establishing a speed maximum period at a determined position and voltage, it is possible to determine if the exerted force was reached External Use 77

Knowledge Needed to Implement Anti-pinch Detection Pinch Detection Expected speed is determined every time the speed signal toggles. And voltage can be averaged during that time A synchronized timer channel is used to trigger an action when the minimum speed was reached without a speed toggle External Use 78

Knowledge Needed to Implement Anti-pinch Detection Pinch Detection Expected speed is determined every time the speed signal toggles. And voltage can be averaged during that time A synchronized timer channel is used to trigger an action when the minimum speed was reached without a speed toggle External Use 79

Recommended SW Module s Dependence Application Configuration Hardware Abstraction Layer Hardware Interaction Layer LIN Driver HW Modules on Tomar Interrupts Mod A depends on Mod B Mod A Mod B External Use 80

Hardware Interaction Layer Content Routines to control the S12VR HW Modules used in power window lifts ADC Internal/External Channels P-Flash/EEPROM Interaction IFR Content Reading Switches Routines EVDD Control Low Power Control Timer/HVI/HSD/LSD/RTI/COP External Use 81

Hardware Abstraction Layer Content Routines manipulating the HIL to perform Power Window Lifts tasks to: enter low power mode initialize calibrations initialize HAL activate the Self Reversal Routine handle the speed and direction self calibrate perform tasks while powering down (save window position) control system mode based on System Power Supply Voltage execute tasks every 50ms. initialize RAM External Use 82

Recommended Software Subsystems Speed and Direction: Tracks the window position and the measured period of the speed signal Voltage at the Motor: Reads the voltage at the motor up/down terminals Expected Speed at 12V: Uses the Speed and Direction subsystem to provide an expected speed. It depends on stored calibrations. Pinch Detection: Uses the information from the subsystems above to determine the deviation from the computed speed and triggers the self- reversal subsystem when a threshold is passed Self-Reversal: When triggered, it controls the self reversal of the window. It either stops after a certain amount of distance is reversed or after the initial window position was reached. External Use 83

www.freescale.com 2014 Freescale Semiconductor, Inc. External Use