MPC563xM-based Cost Effective ECU Chipset: Operation of The Suitcase Demo
MPC563xM-based Cost Effective ECU Chipset: Operation of The Suitcase Demo
Contents
1 Introduction 1 Introduction................................................................1
This document describes the operation of the cost-effective 2 Engine control module reference design
four cylinder Stage V Drive-by-Wire engine control demo. It hardware....................................................................2
is part of a number of documents that cover the MPC563xM- 3 Demonstrations available..........................................2
based Engine Control Unit (ECU) Reference Design and the
4 Collateral available from this
suitcase-based control system demo built around it.1
demonstration platform.............................................8
The demo is a collection of engine sensors and actuators,
5 Summary...................................................................9
along with some other components that simulate sensors or
actuators in a more appropriate, portable, or visual way. These A References.................................................................9
are run by a fully functional ECU based upon an appropriate
B Glossary.....................................................................9
Freescale analog chipset, driven by an MPC5634M
microcontroller.
This document provides the demo operator with discrete
demonstrations to run and knowledge about what these
demonstrations show or simulate, including what this
represents on an engine control system.
The suitcase demonstrator provides an opportunity to interact
with the engine control system.
Much of the collateral used to create the ECU is available for
the creation of new designs. These items are listed at the end
of the document.
Engine control systems can vary in sensors and actuators used and so the ECU contains a little duplication of function in
order to demonstrate alternative drivers. For example, both single and dual 5A H-bridge drivers are present, in different
packages, along with the MC33879 configurable octal switch that can be configured as a dual H-bridge 1A stepper motor
driver. The demo implements one specific set of sensors and actuators. Accordingly, not every chip in the ECU is used in the
demo.
3 Demonstrations available
3.1 Power on
With mains power applied (100–240V), the switch mode power supply hidden behind the engine board produces 13.5V. The
green power LED illuminates. There is no mains switch, but the socket is fused and accessible from the top side.
reluctance sensor output, responds from 30rpm and 150mVp-p up to 15,000rpm and 350Vp-p. The digitized 5V square wave
crank and cam signals are applied to the eTPU, which executes the task of missing tooth detection and 360 degree
synchronization, then 720 degree synchronization after the cam signal is detected. Time window filtering is also applied by
the eTPU on every single tooth over the whole rpm range.
To diagrammatically represent the crank signal, there is a non-working example of a 36-1 crank trigger wheel along with a
variable reluctance cam sensor on the board. Creating an actual toothed spinning trigger wheel at up to 6000rpm for crank,
mechanically linked to a second cam trigger wheel geared for half speed, was considered dangerous; hence, the use of a
simulator board. The simulator board also generates a synchronous analog engine knock signal.
The cranking demo responds in three ways:
1. If the ‘engine’ is cranked for under two seconds it will not start.
2. The engine will continue to be cranked for as long as the key is held in the cranking position.
3. If the engine has been cranked for more than 2s, then when the key is released the engine will ‘start.’
This functionality comes from the engine simulator: the ECU simply responds to the engine signals. Mode 2 is useful for
showing the sequencing of the injections and ignition events. On a four cylinder engine the two middle pistons move together
(cylinders 2 and 3) and the two outer pistons move together (cylinders 1 and 4) for the best engine balance from four
cylinders. This then makes for two possible firing orders: we have used 1-3-4-2 (alternative is 1-2-4-3). This sort of
configuration is performed in C software in the enhanced Timer Processing Unit (eTPU) Application Programing Interface
(API). See AN3678, "eTPU Automotive Function Set" and its associated application notes on the different engine functions.
As soon as engine turning is detected, the fuel pump is re-started. Operating the pump only when the engine is turning is a
safety measure to avoid pumping fuel over the area in the event of an accident that ruptures a fuel pipe.
Because the cranking rpm is relatively slow at 120rpm (two turns a second) the initial synchronization can take a moment or
two. The ECU is set up to run sequential fuelling at crank and because of this it needs to see the cam signal before it will fire
injectors. Sequential Electronic Fuel Injection (SEFI) in crank keeps any unburned fuel from being pushed straight into the
exhaust. It is a requirement for meeting Stage V emissions.
(calibration). Calibration is only possible if the variables are stored in, or copied to, RAM locations. Currently a measurement
demonstration is configured in which some key variables such as rpm and throttle position can be displayed on a dashboard
set up on the PC.
A production ECU always carries some overhead in order to provide a calibration function. This might be, for example, pins
and a communication port, or for the MPC5634M, a hidden bus on the silicon die that is accessible when using a higher pin
count calibration package. One low-cost implementation is to use a larger part in the same family that is pin compatible; that
solution is shown here. The MPC5634M 1.5 MB memory variant has more flash memory and RAM than required by the
application, and thus includes spare RAM that is used to shadow variables for calibration purposes.
The ECU application includes software to administer this calibration function. The protocol used is a standard called XCP, a
development of the CAN Calibration Protocol CCP. The software, provided by ETAS, is available with the INCA tools
package. See your Freescale or ETAS representative for further details.
Note that the Freescale work products remain under Freescale copyright but are generally available under a free license.
CocoOS is released under a GPL or BSD license. Please contact your Freescale representative for further information.
5 Summary
The cost effective Engine Control Unit demonstrator shows how an MPC5634 microcontroller, along with a small number of
analog SMOS devices, can interface with the sensors and control the actuators sufficient for a Stage V or Stage VI four-
cylinder port fuel injection gasoline engine.
Appendix A References
The following references are available on www.freescale.com to support the MPC4563xM Reference Engine Control Unit.
The Document column name can be used as the keyword search.
Table A-1. References
Document Title
e200z3coreRM e200z3 Power Architecture Core Reference Manual
MPC563xMRM MPC563xM Microcontroller Reference Manual
MPC5634M MPC5634M Microcontroller Data Sheet
AN3768 eTPU Automotive Function Set
MC33800 16-way Low Side Driver
MC33905 System Basis Chip
MC33810 Ignition/Injection Driver
MC33926 5A H-Bridge
MC33932 Dual 5A H-Bridge
MC9S08SG 8-bit Microcontroller
MC33879 Configurable Octal Switch
MPXx6115 Pressure Sensor Range
Appendix B Glossary
Below are terms that are commonly used in this document and in the automotive industry.
Table B-1. Glossary
Abbreviation Definition
API Application programming interface
ADC Analog-to-digital converter
BLDC Brushless direct current (motor)
Asia/Pacific:
Freescale Semiconductor China Ltd.
Exchange Building 23F
No. 118 Jianguo Road
Chaoyang District
Beijing 100022
China
+86 10 5879 8000
[email protected]