MSK2 SW framework May 2012 Frankie Chan (IFAP ATV SMD SAE)
MSK2 SW Framework Provide small engine Hardware Platform to user to speed up the Engine Control Unit (ECU) development. The MSK2 SW framework provides general driver code as reference example. With both SW and HW, user may verify the TLE8080, TLE8444, XC2733, BTS3410, KP254, TLE4253 and TLE6250 features and functionality in a quick way. The Electronic Fuel Injection (EFI) System application software shall be implemented by the user in order to meet the emission requirement and user s specification. 2
MSK2 XC2733/XC2764: MCU TLE8080EM: Horseshoe Trot (U chip) TLE8444 Idle speed Stepper Motor Driver BTS3410 Low side Switch TLE4253 5V tracker KP254 Barometric Air Pressure Sensor Debug Interface XTAL XC2733 or XC2764 KP254 BTS 3410 TLE 4253 TLE 8444 TLE 8080 TLE6250 IGBT ECU Connector TLE6250 CAN Transceiver 3
MSK2 Possible minimum solution TLE8080EM + XC2733 + IGBT OPTIONS + TLE8444 (if stepper motor for Idle speed control) + TLE4253 (if need separated Supply for external sensor) + BTS3410 (if additional Low Side Switch needed) + TLE6250 (if need CAN communication) + KP254 (if Barometric pressure sensor needed) 4
MSK2 XC2733 for Development Purpose XC2764 for Calibration purpose 5
SW Framework features The MSK2 basic drivers/framework provides the following functionalities and features as example Support Injection and Ignition for single cylinder Engine Engine speed support from 200 rpm to 10500rpm Support Crank tooth 24 teeth (15degree tooth) and 36 teeth (10 degree tooth) in 1 or 2 missing tooth 6
SW Framework features Virtual tooth tick generation down to 0.5 degree from 15 degree or 10 degree crank tooth Cater for the error correction in virtual ticks if acceleration or deceleration (Injection and ignition timing shall be corrected accordingly) Able get status, diagnostic and control TLE8080, KP254, TLE8444 and BTS3410 Able to get all the sensor information and Battery Voltage and feedback to Application 7
SW Architecture The SW framework basically is divided into 4 portions. DAVE layer : The XC2000 MCU low level code which are generated by DAVE LLD layer : Low Level Drivers are implemented. The driver takes use of DAVE layers driver Application layer: The EFI application shall be implement into this layer by user Scheduler : A simple Scheduler is implemented to link up all layers together and provide scheduling of Tasks. 8
HW and SW tools requirement Hardware: 1) MSK2 2) Miniwriggler - Debugger 3) LIN_to_RS232 or LIN_to_USB Converter Software: 1) Free TASKING VX-toolset Lite for C166 v3.0r3, supporting Infineon XC2000 family of microcontrollers (Integrated Development Environment) 2) DAVE (Auto code generation SW) 3) MTTTY or HyperTerminal 4) Memtools (Programming tools) 9
HW setup For testing (No Load) purpose No load is connected Computer USB or COM LIN-RS232 Convertor or LIN-RS232-USB convertor 10
MTTTY or Hyper terminal Setup Setting: 19200bps, No parity, 8 data bit, 1 stop bit. Example: MTTTY Main Connect COM port number depends on your PC. After power on with Vbat, this message should be seen in the screen. Otherwise, NG 11
DAVE driver 12
Low Level Driver 13
Application 14
Flywheel driver The Flywheel driver is responsible to handle the engine related tasks. It determines engine cycle in 720 degree; generate the injection and ignition signals. Detect the Missing Tooth for Crank tooth (36-2 or 24-1) Determine the Engine Cycle from Crank Signal Determine the Engine Speed (200rpm 10500rpm) Generate Virtual Angle Tick (0.5 degree) base on the 10 degree or 15 degree Crank Tooth. Generate Injection signal to turn on (Angle Start) and off (Time off) of Injector Generate Ignition signal with expected Dwell time to start for charging up the ignition coil and off to start firing. 15
Signals 16
Signal 17
Under Evaluation In Development In Production XC2700 Family Overview January 2012 XC2060E D 100MHz Emulation & Debugging 1600 KB XC2785X 80MHz XC2766X 66MHz XC2786X 66MHz XC2734X 80MHz XC2723X 66MHz 64 KB XC2712X 40MHz XC2722X 40MHz TSSOP 38 VQFN 48 XC2797X 100MHz XC2735X XC2765X 80MHz 768 KB 160 KB XC2787X 100MHz XC2788X 128MHz 80MHz/85 C 320 KB XC2090E D 100MHz XC2768X 128MHz 1088 KB 832 KB XC2080E D 100MHz Low End Transm. AMT CVT Standard Engines 4 cylinder GDI/DDI EU5/6 equivalent XC2705U 80MHz XC2764X 80MHz Simple Engines (Motorcycles) 1-2 cylinders MPI EU3/4 equivalent BRIC markets XC2733X 66MHz QFP 64 QFP 100 Basic Engines 3/4 cylinder MPI EU4-5 equivalent BRIC markets QFP 144 QFP 176 Bare Die Advanced Machinery Pumps Ventilation 18
XC2733 Copyright Infineon Technologies 2009.2010. All rights reserved. Copyright Infineon Technologies All rights reserved. 1919
XC2733 from 8-bit cost to 32-bit performance Key Benefits: Single-cycle 16-bit architecture C166S V2 Core with MAC-unit Optimized Automotive peripheral set for low cost applications: CAN,LIN,PWM, CAPCOM, ADC High speed 12-bit AD-converter: <1µs On-chip power supply, power control, debug support Optimized PIN out to increase I/Os 64 Pin package EEPROM Emulation in separate flash module Best in class Power Consumption (50mA @ 66MHz) Cost savings in heat dissipation and housing Potential cost savings on power supply circuits Embedded Voltage Regulator Only a single voltage in the range of 3.0 to 5.5V is required No external regulator required for digital logic voltage 21/05/2012 20
XC2000 Family - Key Advantages I/O Port Configurability can reduce EMC and external components High Performance PSRAM offers even more performance MAC Unit offers DSP capability Run CPU at 66MHz and reduce power consumption further (50mA) XC2000 Family is Scalable 38-pin to 176-pin Packages are available with the same peripheral set Larger Flash and RAM sizes available 21/05/2012 21