??? 09/23/08 12:27 Read: times |
#158554 - ok...one more thing Responding to: ???'s previous message |
ok thanks a lot Per...that helped...
but another thing, if suppose key '1' is pressed once and it should keep monitoring the inputs for say the whole day & give outputs accordingly,and simultaneously keep checking for any other keypress(and execute the operation for any other key press),how would the code look like? i did something like... a=P0^0; x=P1^0; while(1) {keyscan(); if key '1' {if(a==1) x=1; else x=0;} if key '2' {do this} if ..... ..... if key '13' {do this} } along with this i need to monitor the value of 'a' infinitely(if key '1' was pressed once),and it should toggle 'x' accordingly,say infinitely. so how to do that infinite monitoring? thanks a lot. |
Topic | Author | Date |
Multi Threading in C for 89S8253 | 01/01/70 00:00 | |
effective? | 01/01/70 00:00 | |
Protothreads | 01/01/70 00:00 | |
What do you mean? | 01/01/70 00:00 | |
What actually you are looking for | 01/01/70 00:00 | |
Seek Help ! for Serial Communication | 01/01/70 00:00 | |
start a new thread | 01/01/70 00:00 | |
Good reply... | 01/01/70 00:00 | |
hehe... | 01/01/70 00:00 | |
purpose | 01/01/70 00:00 | |
What tasks? | 01/01/70 00:00 | |
tasks | 01/01/70 00:00 | |
Superloop | 01/01/70 00:00 | |
ok...one more thing | 01/01/70 00:00 | |
If Key == '1' Then | 01/01/70 00:00 | |
statemachine | 01/01/70 00:00 | |
An alternative | 01/01/70 00:00 | |
why not in FAQ or personal page? | 01/01/70 00:00 | |
Yes | 01/01/70 00:00 | |
An alternative ? | 01/01/70 00:00 | |
Your Mileage May Vary | 01/01/70 00:00 | |
thanks alot![]() | 01/01/70 00:00 |