v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Difference between revisions of "User:Root Infinity"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
Line 3: Line 3:
  
 
===T Flip-flop===
 
===T Flip-flop===
This flip-flop changes states every 101 steps or so when both C and T are on.
+
This flip-flop toggles states when both C and T are on. Either Q or R are on at all times, but not both. It can be kind of hard to trigger properly the first time. If that happens (both Q and R are alternating on and off), disconnect all power and manually pump one of each of (Q or R) and (H or I), then reconnect power while the two pumps are both being forced on.
 +
====Truth Table====
 +
{| class="wikitable"
 +
|-
 +
! C
 +
! T
 +
! Q
 +
! R
 +
|-
 +
| 0
 +
| 0
 +
| Q
 +
| R
 +
|-
 +
| 0
 +
| 1
 +
| Q
 +
| R
 +
|-
 +
| 1
 +
| 0
 +
| Q
 +
| R
 +
|-
 +
| 1
 +
| 1
 +
| R
 +
| Q
 +
|}
 +
====Design====
 +
CQ= <-- to power sensor for R (inverted)
 +
pI
 +
 
 +
pr
 +
ti= <-- To power sensor for H
 +
pc
 +
th= <-- To power sensor for I
 +
pq
 +
 
 +
pH
 +
CR= <-- To power sensor for Q (inverted)
 +
 
 +
These three sections do not need to be placed together.
 +
 
 +
===Legend===
 +
{| class="wikitable"
 +
|-
 +
! Gear
 +
! Connected to
 +
|-
 +
| P
 +
| Power in
 +
|-
 +
| C
 +
| Clock
 +
|-
 +
| T
 +
| Toggle in
 +
|-
 +
| Q
 +
| Q Output
 +
|-
 +
| R
 +
| R Output
 +
|-
 +
| H
 +
| H "Output"
 +
|-
 +
| I
 +
| I "Output"
 +
|-
 +
| *
 +
| Gear Assembly
 +
|}
 +
Note: Letters that are upper-case mean that the gear assembly has been pre-toggled.

Revision as of 01:52, 12 June 2011

Flip-flops

A flip-flop is a logic gate with "memory" - see Wikipedia for more.

T Flip-flop

This flip-flop toggles states when both C and T are on. Either Q or R are on at all times, but not both. It can be kind of hard to trigger properly the first time. If that happens (both Q and R are alternating on and off), disconnect all power and manually pump one of each of (Q or R) and (H or I), then reconnect power while the two pumps are both being forced on.

Truth Table

C T Q R
0 0 Q R
0 1 Q R
1 0 Q R
1 1 R Q

Design

CQ= <-- to power sensor for R (inverted)
pI
pr
ti= <-- To power sensor for H
pc
th= <-- To power sensor for I
pq
pH
CR= <-- To power sensor for Q (inverted)

These three sections do not need to be placed together.

Legend

Gear Connected to
P Power in
C Clock
T Toggle in
Q Q Output
R R Output
H H "Output"
I I "Output"
* Gear Assembly

Note: Letters that are upper-case mean that the gear assembly has been pre-toggled.