Hello, you miss a loop and another delay. A. while(1) { //set RB1 as output TRISBbits.TRISB1=0; //turn on LED on RB1 LATBbits.LATB1 = 0; PORTBbits.RB1 = 0; //wait a little Delay10KTCYx(1); //turn off LED on RB1 LATBbits.LATB1 = 1; PORTBbits.RB1 = 1; Delay(); }; _________________________________________________________________ Join the world s largest e-mail service with MSN Hotmail. http://www.hotmail.com -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads