****************************************************************************** ******************* Processor Expert Demonstration Project ******************* ****************************************************************************** File: MeasurementEngine.mcp Short description : MeasurementEngine demonstration Target platforms: HCS08. Function Description ==================== This project is simple MeasurementEngine use case. The example shows how to create an application using Processor Expert and C language. The goal of application is to measure internal bandgap voltage (~ 1,2 V) using PDB module selected as HW trigger source for ADC module within MeasuremetnEngine component. Measurement is started by rising edge on the selected external pin (PTA1_KBI1P0_TX1) that invokes appropriate KBI event. and consequently PDB_SWTrigger method from Measurement engine component is executed Within this event to SW trigger of PDB module. ADC module is triggered according to PDB counter setting. PDB runs in One-shot mode. Reading of measured values is done by reading of all ADC result registers within "OnConvComplete" event from MeasurementEngine component. Required Hardware and Settings ============================== MC9S08MM128VLK and some PCB board Building The Project ==================== Build the project usual way in CodeWarrior. No special settings are required. Running The Project =================== Run the project usual way. Rising edge on the a pin selected in KBI component (PTA1_KBI1P0_TX1) will issued start of measurement. Value of resultX variables can be readed in debugger. *** End Of File ***