PreviousNext
waitNewTick
Help > OS functions > Timing > waitNewTick

Function

 

Wait for a new tick

Purpose

 

Timing synchronization of user operations

Syntax

 

void waitNewTick()

Parameters

 

  –

Return value

 

  –

Output values

 

  –

Preconditions

 

  –

Remarks

 

Active waiting (on OS foreground) until a new tick starts. No other operation runs on OS foreground during this waiting.

Side effects

 

  –

See also

 

waitMS, waitDelay

Example

 

 

waitNewTick();      // To generate a 10 ms pulse as precise as possible

IO1 = 1;

  ...               // Something shorter than 10 ms

waitNewTick();      // 10 ms

IO1 = 0;