Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/30/02 00:43
Read: times


 
#23624 - Need some expert help on a timing issue
I am in need of some help.
This is what I am wanting to accomplish:

P2.0 is set as an input
P0.1 is set as an output
P0.0 is set as an output
If P2.0 is pulled low then P0.0 will go high, if P2.0 is held low for more than 5 minutes then P0.0 is turned off and P0.1 is set high for 4 seconds then turned off and P0.0 is set high again.

The problem I am having is trying to write a routine that will have a timer running and monitor P2.0 at the same time and when the 5 minutes is up it will switch P0.0 off and P0.1 on for 5 seconds.

Does anyone have any ideas on how I can accomplish this task or some examples I can look at? I would appreciate any help!

Thank you!
Craig


List of 5 messages in thread
TopicAuthorDate
Need some expert help on a timing issue            01/01/70 00:00      
RE: Need some expert help on a timing issue            01/01/70 00:00      
RE: rtc example decrementing variables            01/01/70 00:00      
RE: Need some expert help on a timing is            01/01/70 00:00      
RE: Need some expert help on a timing issue            01/01/70 00:00      

Back to Subject List