SR flip-flop
This block describes the simplest and the most fundamental latch the SR flip flop. The output Q depends of the state of the inputs S and R. The output !Q is the logical negation of Q
The user can set the initial output state with Initial Value parameter.
This block is almost used as a memory
The truth table of this block is:
Hold Reset Set Forbidden state where * `U`* stands for “Unknown”.
The block supports the following types :
Inputs:
- R: scalar. Scilab’s int8 data type only.
- S: scalar. Scilab’s int8 data type only.
A positive input is considered as logical 1, a negative or a null input as logical 0.
Outputs: scalar. Scilab’s int8 data type.
The following example presents a typical anti-bouncing application of the SR flipflop. The output graph shows the memory effect of the flipflop. Open this example in Xcos