This documentation is out of date.
The new version of the documentation is here: https://cannylogic.com/docs |
Difference between revisions of "RS latch"
From CANNY Wiki
[unchecked revision] | [unchecked revision] |
(Created page with " <div style="float:right;margin:5px;"> {|class="cannytable" width="350px" |- !colspan="2" style="background-color:#AFEEEE;"|Appearance |- |colspan="2" align="center" style="...") |
|||
(4 intermediate revisions by 2 users not shown) | |||
Line 6: | Line 6: | ||
!colspan="2" style="background-color:#AFEEEE;"|Appearance | !colspan="2" style="background-color:#AFEEEE;"|Appearance | ||
|- | |- | ||
− | |colspan="2" align="center" style="padding:10px;"|[[File: | + | |colspan="2" align="center" style="padding:10px;"|[[File:5_7_2_2.png]] |
|- | |- | ||
!colspan="2" style="background-color:#AFEEEE;"|Symbol | !colspan="2" style="background-color:#AFEEEE;"|Symbol | ||
Line 19: | Line 19: | ||
|- | |- | ||
|style="padding-left:1em;"|Input S: | |style="padding-left:1em;"|Input S: | ||
− | |style="padding-left:1em;"|[[CFD Language#Data| | + | |style="padding-left:1em;"|[[CFD Language#Data|Integer]] |
|- | |- | ||
|style="padding-left:1em;"|Input R: | |style="padding-left:1em;"|Input R: | ||
|style="padding-left:1em;"|[[CFD Language#Data|Logical]] | |style="padding-left:1em;"|[[CFD Language#Data|Logical]] | ||
|- | |- | ||
− | !colspan="2" style="background-color:#AFEEEE;"| | + | !colspan="2" style="background-color:#AFEEEE;"|Outputs |
|- | |- | ||
|style="padding-left:1em;"|Output: | |style="padding-left:1em;"|Output: | ||
− | |style="padding-left:1em;"|[[CFD Language#Data| | + | |style="padding-left:1em;"|[[CFD Language#Data|Integer]] |
|- | |- | ||
!colspan="2" style="background-color:#AFEEEE;"|Version [[CANNY Lab]] | !colspan="2" style="background-color:#AFEEEE;"|Version [[CANNY Lab]] | ||
Line 41: | Line 41: | ||
<div> | <div> | ||
− | The latch, that does not change the output value if both inputs are zero and change its output if one of inputs is not zero.At presence of a non-zero value at the input «S» (from Set), this value is copied to the output. And with a non-zero value on the input «R» (from Reset), the output state becomes zero. | + | The latch, that does not change the output value if both inputs are zero and change its output if one of the inputs is not zero. At presence of a non-zero value at the input «S» (from Set), this value is copied to the output. And with a non-zero value on the input «R» (from Reset), the output state becomes zero. |
</div> | </div> | ||
</div> | </div> | ||
== Features == | == Features == | ||
− | In a situation, when both inputs are set to non-zero values, priority is given to the input | + | In a situation, when both inputs are set to non-zero values, priority is given to the input «R» (the output state becomes zero). |
− | + | ||
== Examples == | == Examples == |
Latest revision as of 08:42, 8 April 2016
Appearance | |
---|---|
Symbol | |
TRS | |
Group | |
Flip-flops / Latches | |
Inputs | |
Input S: | Integer |
Input R: | Logical |
Outputs | |
Output: | Integer |
Version CANNY Lab | |
from 0.6b |
The latch, that does not change the output value if both inputs are zero and change its output if one of the inputs is not zero. At presence of a non-zero value at the input «S» (from Set), this value is copied to the output. And with a non-zero value on the input «R» (from Reset), the output state becomes zero.
Features
In a situation, when both inputs are set to non-zero values, priority is given to the input «R» (the output state becomes zero).