My C program for flashing leds is not working. I was wondering if someone would know what might be the problem, This is the source code, for a device pic18f4620 with internal osc #include #pragma config WDT = OFF #pragma config OSC = INTIO67 void delay (void) { int i; for (i = 0; i < 10000; i++) ; } void main (void) { /* Make all bits on the Port B (LEDs) output bits. * If bit is cleared, then the bit is an output bit. */ TRISD = 0; LATD = 3; //d0 and d1 are on while (1) { /* Delay so human eye can see change */ delay (); /* Light the LEDs */ LATD += 1; } } -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist