/* ** ################################################################### ** ** Filename : test.C ** ** Project : test ** ** Processor : MC68HC908LJ12CFB ** ** Version : Driver 01.00 ** ** Compiler : Metrowerks HC08 C Compiler V-5.0.13 ** ** Date/Time : 12.06. 2002, 16:37 ** ** 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 test */ //#pragma MESSAGE DISABLE C1420 /* WARNING C1420: Result of function-call is ignored. You can uncomment this line to disable this compiler warning */ /*Including used modules for compilling procedure*/ #include "Cpu.h" #include "LCD1.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" /* This project requires a LCD seven segmet display with one backplane. The backplane pin is connected ** connected to BP0 and the frontplanes A,B,C,D,E,F,G pins are connected to FP0 - FP6 pins. */ /* A B C D E F G */ static byte codeTable[10][7] = {{1,1,1,1,1,1,0}, {0,1,1,0,0,0,0}, {1,1,0,1,1,0,1}, {1,1,1,1,0,0,1}, {0,1,1,0,0,1,1}, {1,0,1,1,0,1,1}, {1,0,1,1,1,1,1}, {1,1,1,0,0,0,0}, {1,1,1,1,1,1,1}, {1,1,1,1,0,1,1}}; void wait() { int i; byte j; for(i=0; i<5000; i++) { for(j=0; j<10; j++); // display numbers } } void main(void) { byte i,err; /*** Processor Expert internal initialization. DON'T REMOVE THIS CODE!!! ***/ PE_low_level_init(); /*** End of Processor Expert internal initialization. ***/ for(;;) { // display numbers for (i=0; i<=9; i++) { // display number i err=LCD1_SetData(codeTable[i]); // wait for a time wait(); } } /*** 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 test */ /* ** ################################################################### ** ** This file was created by Processor Expert 02.87 for ** the Freescale HC08 series of microcontrollers. ** ** ################################################################### */