/* ** ################################################################### ** ** Filename : FreescaleAnalogComp.C ** ** Project : FreescaleAnalogComp ** ** Processor : MC9S08RC16_44 ** ** Version : Driver 01.01 ** ** Compiler : Metrowerks HCS08 C Compiler ** ** Date/Time : 30.4.2003, 19:04 ** ** Abstract : ** ** Main module. ** Here is to be placed user's code. ** ** Settings : ** ** ** Contents : ** ** No public methods ** ** ** Copyright: 1997 - 2009 Freescale Semiconductor, Inc. All Rights Reserved. ** ** ** ** http : www.freescale.com ** mail : support@freescale.com ** ** ################################################################### */ /* MODULE FreescaleAnalogComp */ /* Including used modules for compilling procedure */ #include "Cpu.h" #include "Events.h" #include "Cmp1.h" /* Include shared modules, which are used for whole project */ #include "PE_Types.h" #include "PE_Error.h" #include "PE_Const.h" #include "IO_Map.h" volatile byte cnt; void main(void) { /*** Processor Expert internal initialization. DON'T REMOVE THIS CODE!!! ***/ PE_low_level_init(); /*** End of Processor Expert internal initialization. ***/ /* Write your code here */ for(;;){ cnt=0; (void)Cmp1_Enable(); while(cnt!=100); /* wait for 100 events */ (void)Cmp1_Disable(); } /*** Processor Expert end of main routine. DON'T MODIFY THIS CODE!!! ***/ for(;;){} /*** Processor Expert end of main routine. DON'T WRITE CODE BELOW!!! ***/ } /*** End of main routine. DO NOT MODIFY THIS TEXT!!! ***/ /* END FreescaleAnalogComp */ /* ** ################################################################### ** ** This file was created by Processor Expert 02.86 for ** the Freescale HCS08 series of microcontrollers. ** ** ################################################################### */