Please create an account or Login! Have fun!

Wire: Difference between revisions

Jump to navigation Jump to search
781 bytes added ,  18 January 2019
→‎Counter: Added info from CC2 wikia
(Added counter)
(→‎Counter: Added info from CC2 wikia)
Line 213: Line 213:
|moves = No
|moves = No
}}
}}
The '''counter''' is a gate with two inputs and two outputs. When the ADD ONE input goes from a FALSE state to a TRUE state, the digit is incremented by one. This is known as a positive edge trigger. If the digit wraps from 9 to 0, the OVERFLOW output will pulse TRUE for one clock cycle. This can be used to trigger some device, or it can be fed into another counter. When the SUBTRACT ONE input goes from a FALSE to a TRUE state, the digit is decremented by one. When the digit wraps from 0 to 9, the UNDERFLOW output will become TRUE until the digit is raised to 0 or lowered to 8.
Pictured is an example of a countdown timer that will close the door and start the flame jet, stopping the ball from continuing to push the button connected to it.
[[Image:CounterExample.png]]


{{clear}}
{{clear}}

Navigation menu