This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2530, best method to wait on signal?

Other Parts Discussed in Thread: Z-STACK

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