Hi,
I want the program to wait for atmost 2ms until the pin becomes high.
//initialise timer for 2ms. on time out set TIMEOUT = true
while(TIMEOUT){
//check value of signal. if (high) {break} else {continue}
}
But executing the while loop every time will be unnecessary wastage of resources.
I would like to know whether it is possible to implement this with interrupts using higher level abstraction methods.
BR
Srikanth
BR
Srikanth