Application Development
directive of the C programming language. The following examples goes through various definitions found
in the application header file and show possibilities for configuration. It is important to keep in mind the
limitations of the hardware as the software incorporates functionality beyond what is found on the
reference design hardware.
Example: Configuring the number of cylinders.
//How many cylinders? Choose one.
#define ONE_CYLINDER
//#define TWO_CYLINDER
To change this application from one cylinder to two cylinders, modify the lines as follows:
//How many cylinders? Choose one.
//#define ONE_CYLINDER
#define TWO_CYLINDER
Other configuration of the application header file will require modifying parameters that are numerical in
nature. Each value must be customized to your application. Default values are provided but may not be
relevant.
Example: Configuring maximum RPM of engine.
//Set the maximum RPM for engine rotation
#define RPM_MAX 10000
This parameter can be modified to reduce the maximum RPM from 10 KRPM to 500 RPM as follows:
//Set the maximum RPM for engine rotation
#define RPM_MAX 500
For system signals that are configurable, multiple definitions are required. Only if the signal is used do
any of the associated parameters need to be defined.
Example: Removing definition of an analog signal.
//Oxygen Sensor(O2)
//Define the signal for the system to enable functionality.
#define O2
//Define for O2 filter algorithm selection. Only average is
//available.
//Leave undefined for using raw data only.
#define AVERAGE_FILTER_O2
//Data collection periodic rate can be from 1 - 255ms.
#define O2_DATA_COLECTION_RATE 16
/* O2 data buffer size */
#define O2_BUFFER_SIZE 16
In this example, if the Oxygen Sensor is not used, then all pound defines should be changed to comments
as follows:
//Oxygen Sensor(O2)
//Define the signal for the system to enable functionality.
//#define O2
//Define for O2 filter algorithm selection. Only average is
//available.
//Leave undefined for using raw data only.
//#define AVERAGE_FILTER_O2
//Data collection periodic rate can be from 1 - 255ms.
//#define O2_DATA_COLECTION_RATE 16
/* O2 data buffer size */
//#define O2_BUFFER_SIZE 16
16
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