Main Content
Set-Reset Flip-Flop
Set-reset flip-flop or bistable multivibrator
Libraries:
Simscape /
Electrical /
Control /
General Control
Description
The Set-Reset Flip-Flop block implements a set-reset flip-flop or bistable multivibrator.
The block maintains the output signals, Q and !Q, unless an external trigger is applied. An external trigger (Set) produces a change of state, which is maintained until a second external trigger (Reset) is applied.
The table shows the relationship between the block input and output signals.
Set | Reset | Q | !Q |
---|---|---|---|
0 | 0 | Last Q | Last !Q |
0 | 1 | 0 | 1 |
1 | 0 | 1 | 0 |
1 | 1 | Undefined | Undefined |
When the state is undefined, the priority is provided as an external parameter.
Ports
Input
Output
Parameters
Extended Capabilities
Version History
Introduced in R2018b