Function WaitExprChange

Top 

Declaration:

void WaitExprChange(char str[]);

Description

Suspends execution of the script file until the expression specified in the str line changes its value.

The peculiarities of this function for the ChipProg are the same as for .

Note that you should not precede the variable names with '$' sign in the expression string.

Example:

while (1)     // the endless cycle

{

WaitExprChange("P1 & 2");  // to wait until value of bit 1

                           // of port P1 changes

P2 |= P1 & 2;              // to execute certain action

}