Robert and others First, I admit that I have no idea how to write a code for pic's. this is the reason I ask for help. What I am looking for is very simple, a circuit that start when a switch is pressed for a brief time I call it "start". this switch is ignored if pressed again until "reset" switch is activate. another switch is activating a led while is pressed alternately this I call it "running". the "reset" switch function in this way: if the switch is pressed for lets say 10 seconds (no less) then a buzzer is activate. any time less then 10 sec will keep the circuit running (led is blinking while "running" is alternately pressed) and "start" switch is ignored. if "reset" is activated more than 10 sec then "start" switch can start the circuit all over again, and so on. like a loop. hope I explain my self coherently. I'll appreciate any help! Tal -----Original Message----- From: pic microcontroller discussion list [mailto:PICLIST@MITVMA.MIT.EDU]On Behalf Of Robert Rolf Sent: Tuesday, October 21, 2003 3:45 AM To: PICLIST@MITVMA.MIT.EDU Subject: Re: [PIC]: Monitoring switch(s) state Sounds more like a homework assignment. Not enough detail. Monitor for days, hours, minutes, miliseconds? R "Jan-Erik Soderholm XA (TN/PAC)" wrote: > > Tal wrote : > > Did anyone come across a circuit that can monitor the state of some > > switches? > > The general idea is to monitor the state of any switch (high/low) and > > measure the elapsed time that the switch is on or off. > > any circuit or idea will be most appreciate. > > > > Thanks > > I must be missing something here... > > A circuit to measure elapsed time ? > Using a PIC seams in line with the general topic of this maillist :-) > A pin with the internal pullup enabled maybe ? > > Is this an old thread ? > > Jan-Erik. > > -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.