

We'll use the PS a bit later in our Airlock example. The missions use these a lot in their traps and doors to keep things activated once they've been triggered. You'll find the PS to be a surprisingly useful little block, it's good for turning things on (or off) only once. PS gets set, SR-Latch stays the same (or has undefined output - depends on implementation).Įg2. The Persistent Switch is edge-sensitive (it changes when an input changes from 0 to 1), while an SR latch is level-sensitive (it changes when one input is 1 and the other is 0).Įg. Side note: If you know what an SR-Latch is, A PS is similar, but not the same. When the Reset switch goes from 0 to 1, the switch turns off.

When the Set input goes from 0 to 1, the switch turns on. Persistent Switch ("Edge-triggered SR-Latch")Īs of Upbeat Giraffe, there's now a new and easy way to lock things - the Persistent Switch (PS).
#STARBOUND WIRING GUIDE UPDATE#
This is connected to Enable, which will update the output to be off. If I step off, the trap will stay on - this is because Enable and D turn off at the same time, so the output freezes in the on state.Ī reset button is needed to deactivate the trap. If I step on the pressure plate, this turns on both Enable and D, activating the trap. The simplest and most common use for latches is to "lock" things. This isn't technically correct, but not a terribly bad analogy. If you like, you can imagine Enable as controlling a switch between D and the output. D will not have any effect while Enable is off.

When Enable is turned off (0), the output will freeze at the last value it had. When Enable is on (1), the output is the same as the D input (ie. It has two inputs and one output.ĭata (or D for short) : This is what you want the output to become.Įnable (or EN for short): Determines whether D is connected to the output or not. A single latch can remember a single binary digit or bit (1 or 0). Latches are a very simple unit of memory. Persistent Switch ("Edge-triggered SR-Latch").If you're new to wiring, you should read the basic guide first! It was originally a guide on latches and flipflops.
