Hi, > How is the LED connected and to which pin of the PIC? I'm working with a breadboard and I have tried different PINs of the PIC...but the result is always the same. The LED is always on. There's a 150 ohm resistor in series with the LED. I have also corrected the code as Matthew suggested, but the LED is still always on... Dan -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist