Hi Friends Wounder if some one out there can help me, I'm trying to write some code to allow a user to enter a 4 digit code (settable) using the 16F84 PIC. The pic must also perform the following task: PORTA,0 Power on PORTA,1 Active (stays on for 10 seconds), if reached, program resets PORTA,2 Keypad pressed (stays on for 2 seconds). PORTA,3 goes high for 2 seconds if the user enters the correct code and resets the program. PORTA,4 goes high for 2 seconss if the user enteres an incorrect code and resets the program. Is there anyone out there who know how to do this. One more thing, is it possible to have the internal timer active and to have all BITS as inputs, currently, all LEDS come (dimmed) but you can still use each BIT as input. Cheers Paul PasswordPIC@Colindale.demon.co.uk