Appendix B: Software Reference Manual
11
11.1
Appendix B: Software Reference Manual
Software Architecture
The example application software package is designed to abstract the low level details of using a
microcontroller in an engine control application. This will allow a developer to focus attention on the
signals and application tasks instead of on the very specific functionality of the MCU. Software
applications can then be created based on a higher level of understanding. For the Small Engine
Reference Design, this high level approach breaks the engine control application into three tasks: 1) User
Management, 2) Data Management, and 3) Engine Management. Each of these tasks must be developed
by the user. Working examples for running a real engine are provided as model of successful using this
architecture.
The hardware abstraction layer uses complier directives to associate software signals with hardware
functionality. This is best shown in the following example:
/** RIN3, Port P, Channel 2 */
#define RIN3 (PTP_PTP2)
/** RIN3, Port P, Channel 2, Low */
DDRP_DDRP2 = OUTPUT;
RIN3 = LOW;
In this example the relay 3 control signal, RIN3 is being removed from the hardware in two ways. First,
the actual control pin PTP2 is associated with the system signal name RIN3. If a change is made, based
on a hardware level modification, it can quickly be made at for every instance of the signal by only
changing one line of code. Also the control for the signal is referenced by functionality, in this case a low
signal. This is important as a signal could have reverse logic due to other components outside the MCU
and can be easily modified to accommodate such a situation.
Under the high level functions, are control tasks. All control tasks operate regardless of the completion of
the high level tasks. This creates a hybrid operating system where high level tasks are in the time domain
and the low level tasks are in the crankshaft or angle domain. Low level tasks in the angle domain operate
on an event basis and then get the latest operation parameters from the time domain tasks on the
conclusion of an event. As a result, if a time domain task did not complete before the next angle domain
event associated with the task, the angle domain event will occur with the previous parameters. This is
an acceptable practice as the response time of an engine is proportional to its operating speed. As the
engine rotation rate increases, there is less time for the application to execute. However, the inertia of the
engine changes with the rotation rate, which makes the engine less sensitive to fine control adjustments
as engine speed increases.
Freescale Semiconductor
55
相关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