SET_UPDATE_TO_UPDATE_INTERVAL
The SET_UPDATE_TO_UPDATE_INTERVAL function is used to set a minimum interval between each scan update (change in output). This value is used between all types of scans - JTAG, PIO and external hardware that can be synchronised. It is guaranteed the interval will never be less than the value set.
The initial minimum interval is defined on the General Settings panel of the Advanced Configuration Options tab. Calling SET_UPDATE_TO_UPDATE_INTERVAL will override the project setting, applying the given minimum interval. Later calls to RESET_UPDATE_TO_UPDATE_INTERVAL reset the minimum interval back to the project setting.
SET_UPDATE_TO_UPDATE_INTERVAL was added in XJTAG v4.0 and is not recognised in versions prior to that.
Syntax
SET_UPDATE_TO_UPDATE_INTERVAL ( interval )Parameters
- interval
-
The minimum interval between updates in nanoseconds. The range of values is between 0 nanoseconds and 100000000 nanoseconds (100 milliseconds).
Example
I2CTest()(INT result) SET_UPDATE_TO_UPDATE_INTERVAL(5000); //perform I2C scans here at reduced speed RESET_UPDATE_TO_UPDATE_INTERVAL(); END;
See Also
XJTAG v4.2.5
