/***********************************************************************/ /* */ /* FILE : Main.c */ /* DATE :Tue, Oct 31, 2006 */ /* DESCRIPTION :Main Program */ /* CPU TYPE : */ /* */ /* NOTE:THIS IS A TYPICAL EXAMPLE. */ /* */ /***********************************************************************/ //#include "typedefine.h" #ifdef __cplusplus //#include // Remove the comment when you use ios //_SINT ios_base::Init::init_cnt; // Remove the comment when you use ios #endif #include "iodefine.h" void main(void); #ifdef __cplusplus extern "C" { void abort(void); } #endif void main(void) { unsigned int lp,lp1; PORT1.DDR.BIT.B5 = 1; // P1(5) is Output while(1){ for(lp=0;lp<1000;lp++) for(lp1=0;lp1<1000;lp1++); PORT1.DR.BIT.B5 = 0; // P1(5) is 0(LED ON) for(lp=0;lp<1000;lp++) for(lp1=0;lp1<1000;lp1++); PORT1.DR.BIT.B5 = 1; // P1(5) is 1(LED OFF) } } #ifdef __cplusplus void abort(void) { } #endif