Hi! I'm a beginner with PIC a is supposed to make a car larm with a 16F84 and have a big problem! First, can anyone tell me how to initialize the ports and how to send a signal to a specified output like RB4 and to take a signal in from a specified input like RA1. I need my port settings like this: RA1 - Input from the doors RA2 - Input from the doorlock RA3 - Input from a button to press when the larm is activated and should be unactivated RB1 - Output to a LED RB2 - Output to relay (the relay hold a siren for 1 min.) through a circuit (I don't remember the name right now and I don't have my scheme here either.) RB3 - Same as RB2 but the alarm time is 2 min. I would be very happy if someone chould help me with the code too. The alarm works like this: When you lock the door a signal comes in at RA2 and when someone open a door (signal in at RA1) the alarm starts. But if you open the door with the key then the alarm wait for 10 sec. until it starts. If you hold the button (RA3) after 10 seconds you the alarm will not start. When the alarm starts it's on for 1 or 2 minutes (depending of if you use RB2 or RB3). (I have seen a bike alarm for 16C54 but I don't know that code work for 16F84, and even if it works it still have to be changed.) I hope I didn't forget anything and someone will help me with this, if you need a scheme just tell me and I'll send it to you (but it's still just on paper). I'll hope you'll understand my engish. I can't reply your mail until Friday but please send me your comments about my alarm!! Thanks! Andreas