Implement prioritized S-R flip-flop (bistable multivibrator)
Control and Measurements/Logic
The Bistable block implements the following logic:
When S input is true and R input is false, the flip-flop goes to the Set state. This is the first stable state, where Q is true.
When R is true and S is false, the flip-flop goes to the reset state. This is the second stable state, where Q is false.
When both S and R are true, the flip-flop goes to the prioritized state defined by the Select priority parameter.
When both S and R are false, the flip-flop stays in its previous state.
Specify the prioritized state of Q.
Specify the initial value of the output Q.
Specify the sample time of the block, in seconds. Set to 0 to implement a continuous block.
The Set input. Must be Boolean. When the Select priority parameter
Set, the input is named
The Reset input. Must be Boolean. When the Select
priority parameter value is
input is named
Bistable output. The signal is Boolean.
Bistable complement output. The signal is Boolean.
|Sample Time||Specified in the Sample Time parameter|
|Scalar Expansion||Yes, of parameters|
The model sample time is parameterized with the variable Ts (default value Ts = 50e-3). To simulate a continuous Bistable block, specify Ts = 0 in the MATLAB® Command Window.