??? 02/27/08 14:51 Read: times |
#151532 - Code snippet analysis |
The code below shows an input being monitored, if the clock is assummed to be 12Mhz, my question is between wait states of the commands processing shown below. They use the name of the monitor and then a !monitor, what is the purpose of the name and then the NOT, am I assuming that in C that the transition edge is being searched for? I've modified all the name from the original and cut only the part i have a question on within the function. Please ask for more if my question is not clear. Thanks
Wait(5); //wait for 5ms Time_Out(500ms); //time out = 1 second; while(DRIVER); <<<<<<<\ while(!DRIVER); <<<<<<</ These are the question, why driver and then !....? Wait(0); if(DRIVER) |
Topic | Author | Date |
Code snippet analysis | 01/01/70 00:00 | |
Context needed! | 01/01/70 00:00 | |
Correction![]() | 01/01/70 00:00 | |
analyzed | 01/01/70 00:00 | |
Just High-Low | 01/01/70 00:00 | |
No, he was right | 01/01/70 00:00 | |
You're Right | 01/01/70 00:00 | |
Depends | 01/01/70 00:00 | |
neon | 01/01/70 00:00 | |
Both wrong | 01/01/70 00:00 | |
glad I 'illuminated' :) | 01/01/70 00:00 | |
Equivalent to ... | 01/01/70 00:00 | |
thank guys.... | 01/01/70 00:00 | |
Could this hang forever? | 01/01/70 00:00 | |
hanging cha.. eh loops | 01/01/70 00:00 | |
Not forever by design | 01/01/70 00:00 |