DelayUs

Delay BLOCK

This block supports microsecond-precise delay functionality on STM microcontrollers.

Contents

Inputs

  • Delay [us] – Delay time in [us]

Outputs

None

Block parameters

  • Timer number – timer peripheral index used for delay implementation
  • Timer clock [MHz] – timer base clock
  • Use input – option to use delay value from system or predefined value
  • Delay [us] – predefined delay interval in [us]
  • Sample time [s] – period of function refreshing (-1 means that a particular block takes sample time from its input block or if it doesn’t have any input block it takes the fastest sample time in a model)

CubeMX settings

  • Middleware and Software Packs->FREERTOS->Interface->Disable
  • Timers->TIMx->Clocku Source->Internal Clock