timer source code using c language

Status
Not open for further replies.

alexang

Newbie level 4
Joined
Oct 7, 2010
Messages
7
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,331
my project is moving a car in and out
SW1 ON = car moving out for 5 second then automatic stop
SW2 or sensor ON=car go in for 5 second then automatic stop
when sensor OFF car will go out for 5 second then automatic stop
<<problem is i just allow this car stop at outside just for 30 second then automatic moving in for 5 second then stop all process>>
how to write command to counting time that car stay at outside for 30 second?
(c language for PIC16f877a)
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…