Appendix B: Software Reference Manual
11.2.4 Engine_Management()
The interface to the spark and fuel controllers is through the Engine_Management() task. Using the RPM
and load data provided by the User_Management() and crank position function, the
Engine_Management() task makes function calls which perform a table look up of fuel and spark
parameters based on the current operating point. These parameters can then be compensated based on
other modifiers determined by the User_Management() and then sent to the fuel and spark controllers for
use on the next fuel or spark event.
A lock out mechanism exists between the fuel and spark controllers and the Engine_Management()
function to prevent undesired operation. The fuel and spark controllers create events based on a current
variable. Engine_Management() can only modify a next variable. When a fuel or spark event completes,
the current variable is updated with the next variable.
11.2.5 Application Maps
The table look up performed by the Engine_Management() task works with the Application Map source
and header files. These two files create the fuel and spark tables used to control the engine. The header
file is used to configure the size of the tables. The C source file contains the actual data for the table look
up procedure. In addition to the table parameters, the values associated with the table indices must also
be created. This includes a data array of the RPM values and an array of the load values that correspond
to the indices of the fuel and spark tables. All data in the application maps is based on microcontroller
timer units, not engineering units. This is noted in the example files. As a fundamental exercise in running
an engine, these tables must be created based on the engine and system design. A starting point can be
obtained by collecting data from an existing engine controller running the same engine or by engine
modeling software capable of creating a baseline volumetric efficiency map.
11.2.6 Low Level Driver Files
The software architecture for the example application uses a hardware abstraction layer that removes
details of working with the S12P microcontroller. As a result, exercising the signals of the ECU do not
require specific references to MCU signals or peripherals. However, it is worth noting that there are
limitations and simple tasks at an application level may have significant overhead associated with them.
For example, the S12 is a 16 bit microcontroller that does not have a floating point unit. Use of 32 bit data
and floating point numbers should be extremely limited and is not recommended for highest performance.
Also it is important to note that the reference design is a system and modifying engine control signals may
require interaction with another integrated circuit. This type of interaction and system architecture results
in many low level software drivers that are behind the scenes. These drivers provide high level
functionality for the application and are a key to rapid application development. While it is not vital to
knowing all the low level functions, if will be important during the debugging phase that they exist as
stepping through them will occur.
60
Freescale Semiconductor
相关PDF资料
KIT33812EKEVBE BOARD EVALUATION FOR MC33812
KIT33879AEKEVBE BOARD EVALUATION FOR MC33879
KIT33880DWBEVB KIT EVAL FOR MC33880 8X SW W/SPI
KIT33886DHEVB KIT EVAL FOR MC33886 H-BRIDGE
KIT33887EKEVBE BOARD EVALUATION FOR MC33887
KIT33887PNBEVB KIT EVAL 33887 5A H-BRIDGE PQFN
KIT33905D5EKEVBE KIT EVALUATION FOR MC33905
KIT33912EVME KIT EVALUATION FOR MC33912
相关代理商/技术参数
KIT33812ECUEVME 制造商:Freescale Semiconductor 功能描述:Small Engine Control Reference Design
KIT33812EKEVBE 功能描述:电源管理IC开发工具 INTEGRATED DUAL LOW & HI RoHS:否 制造商:Maxim Integrated 产品:Evaluation Kits 类型:Battery Management 工具用于评估:MAX17710GB 输入电压: 输出电压:1.8 V
KIT33813AEEVBE 功能描述:电源管理IC开发工具 2 Cylinder Small Engine RoHS:否 制造商:Maxim Integrated 产品:Evaluation Kits 类型:Battery Management 工具用于评估:MAX17710GB 输入电压: 输出电压:1.8 V
KIT33814AEEVBE 功能描述:交换机 IC 开发工具 2 Cylinder Small Engine RoHS:否 制造商:Maxim Integrated 产品:Evaluation Kits 类型:USB Power Switches 工具用于评估:MAX4984E 工作电源电压:2.8 V to 5.5 V
KIT33816AEEVM 功能描述:电源管理IC开发工具 Engine Control Module RoHS:否 制造商:Freescale Semiconductor 产品: 类型: 工具用于评估: 输入电压: 输出电压:
KIT33879AEKEVBE 功能描述:电源管理IC开发工具 CONFIGURABLE OCTAL RoHS:否 制造商:Maxim Integrated 产品:Evaluation Kits 类型:Battery Management 工具用于评估:MAX17710GB 输入电压: 输出电压:1.8 V
KIT33880DWBEVB 功能描述:电源管理IC开发工具 33880DWB COSS KIT RoHS:否 制造商:Maxim Integrated 产品:Evaluation Kits 类型:Battery Management 工具用于评估:MAX17710GB 输入电压: 输出电压:1.8 V
KIT33883DWEVB 功能描述:KIT EVAL FOR MC33883 PRE-DRIVER RoHS:否 类别:编程器,开发系统 >> 过时/停产零件编号 系列:- 标准包装:1 系列:- 传感器类型:CMOS 成像,彩色(RGB) 传感范围:WVGA 接口:I²C 灵敏度:60 fps 电源电压:5.7 V ~ 6.3 V 嵌入式:否 已供物品:成像器板 已用 IC / 零件:KAC-00401 相关产品:4H2099-ND - SENSOR IMAGE WVGA COLOR 48-PQFP4H2094-ND - SENSOR IMAGE WVGA MONO 48-PQFP