// File : m11_lvd.c #include unsigned int i,j; void delay() { for(i=0;i<0x1000;i++) { for(j=0;j<30;j++); }; } void delay2() { for(i=0;i<0x1000;i++) { for(j=0;j<3;j++); }; } void main() { P0DIR = 0; P0 = 0xFC; delay(); do { P0 = 0xF3; delay2(); P0 = 0xF1; delay2(); } while(1); }