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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/06/08 11:52
Read: times


 
#160667 - Scan keys and do accordingly
Responding to: ???'s previous message
main()
{
while(1)
{
if key1 pressed {do task1};
if key2 pressed {do task2};
if key3 pressed {do task3};
}
}

Keys other then key1/key2/key3 or no key is pressed, the program just loop and loop.

List of 14 messages in thread
TopicAuthorDate
multitasking using 8051            01/01/70 00:00      
   Seems fairly simple            01/01/70 00:00      
   use a loop            01/01/70 00:00      
   What does it do when NO BUTTONS are pressed?            01/01/70 00:00      
   State machine            01/01/70 00:00      
   Not multitasking?            01/01/70 00:00      
      Scan keys and do accordingly            01/01/70 00:00      
      I am agree with Andy            01/01/70 00:00      
         Guessing?            01/01/70 00:00      
            Guess            01/01/70 00:00      
            Dear, i think you havent fully got my words...            01/01/70 00:00      
   Here are some guide lines...            01/01/70 00:00      
   Is there something wrong on this thread?            01/01/70 00:00      
      Yes It was Revived by John Smith //eom//            01/01/70 00:00      

Back to Subject List