Monostable Flip-Flop

Raising edge, falling edge, either edge monostable flip-flop

  • Library:
  • Simscape / Electrical / Control / General Control

Description

The Monostable Flip-Flop (or monostable multivibrator) block generates a single output pulse of a specified duration when it is triggered externally. The external trigger is a Boolean signal. Pulse generation is triggered when a change is detected in the external trigger signal. The change detection can be:

  • Rising edge

  • Falling edge

  • Either edge

When the output is true, a change in the external trigger signal has no effect.

The operation of a monostable flip-flop is represented in the following figure:

Ports

Input

expand all

Input trigger signal to the flip-flop.

Data Types: Boolean

Output

expand all

Flip-flop output signal.

Data Types: Boolean

Parameters

expand all

Change detection strategy for output pulse generation.

The initial condition of the flip-flop.

Duration of the output pulse, in s.

Time between consecutive block executions. During execution, the block produces outputs and, if appropriate, updates its internal state. For more information, see What Is Sample Time? (Simulink) and Specify Sample Time (Simulink).

For discrete-time operation, set the sample time to a positive value. For continuous-time operation, set the sample time to 0.

If this block is in a masked subsystem, or other variant subsystem that allows either continuous and discrete operation, promote the sample time parameter. Promoting the sample time parameter ensures correct switching between the continuous and discrete implementations of the block. For more information, see Promote Parameter to Mask (Simulink).

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

Introduced in R2018b