Previous Topic

Next Topic

Book Contents

Book Index

fSetTimer t

Sets the nominated "classic" timer to the integer value of the floating point register W. Also, returns a Result Code in R. This is the complementary instruction to fGetTimer. Don't confuse with the newer SuperTimer (D>=16) instructions.

For values of 0 <= W <= 32,767 the timer is set to the next smallest integer <=W (i.e. W is truncated, not rounded).

For values >32,767 the timer is set to 32,767.

For all other values the timer is set to 0.

If there is any chance that W could have a bad value you should check the R register after doing the fSetTimer.

Dialect restriction: This instruction is not implemented in boards with dialect numbers less than 6, or which do not have the FP processor.

See also SetTimer, Test, fGetTimer

Previous Topic

Next Topic