Skip to Content

DelayUs Block Description

This block handles the program execution delay functionality in STM microcontrollers. It accepts a delay value specified in microseconds.



DelayUs block

Table of Contents

Inputs

Input NameTypeDescription
Delay [us]uint32Optional input
Delay value in microseconds. The presence of this input depends on the Use input parameter.

Outputs

This block has no outputs.

Block Parameters

ParameterDescription
Timer numberSelection of the timer used to generate the delay.
Timer clock [MHz]Timer clock frequency in MHz.
Use inputOption to use an external input port to set the delay time.
Delay [us]Conditional Parameter
Delay value in microseconds. This parameter is only available when the Use input option is disabled.
Sample time [s]Function refresh period, minimal interval for sampling parameters from the input.


Block parameters for DelayUs

CubeMX Configuration for a Given MCU Model

CubeMX Settings

No.NamePathSettingDescriptionScreenshot
1vTaskDelayUntilPinout & Configuration > Middleware and Software Packs > FREERTOS > Include parameters > Include definitions > vTaskDelayUntilEnabledOptional setting
When using FreeRTOS, this option must be set to enabled.
vTaskDelayUntil

See Also

Last updated on