__orderInterrupt
In this section:
Syntax
__orderInterrupt(specification, first_activation, repeat_interval, variance,infinite_hold_time, hold_time, probability)
Parameters
first_activationThe first activation time in cycles (integer)
repeat_intervalThe periodicity in cycles (integer)
varianceThe timing variation range in percent (integer between 0 and 100)
infinite_hold_time1 if infinite, otherwise 0.
hold_timeThe hold time (integer)
probabilityThe probability in percent (integer between 0 and 100)
Return value
The macro returns an interrupt identifier (unsigned long).
If the syntax of specification is incorrect, it returns -1.
For use with
The C-SPY simulator.
Description
Generates an interrupt.
Example
This example generates a repeating interrupt using an infinite hold time first activated after 4000 cycles:
__orderInterrupt( "USARTR_VECTOR", 4000, 2000, 0, 1, 0, 100 );