DELAY_CY - cycles

DELAY_CY - cycles

Language reference ›› Built-in procedures ›› Delay routines ››
Parent Previous Next

DELAY_CY(cycles)

Wait the given number of cycles.


<cycles>:

An integer constant, a WORD-sized variable or a computed expression. Minimum value is 32.


Delays are implemented as loops and / or NOP and GOTO instructions, according to the required number of cycles.


Delays do not use interrupts and so may be non accurate if there is lot of interrupts.


Note: NOP (ConstantCount) may be used for small timings. The generated timing is the same than with DELAY_CY, except if uses only NOPs.


See also: DELAY, DELAY_NS, DELAY_MS, NOP, FREQUENCY.