Overview
The D Latch is essentially a modification of the SR Latch. It has a Data pin and an Enable pin. When the Redstone signal at the Enable pin is greater than 0, the D Latch reads the Data pin and remembers its state. Based on whether the Redstone Signal at the Data pin is greater than 0 or equal to 0, the Output pin will output 15 or 0 accordingly.
When the Redstone Signal at the Enable pin is 0, the Output remains in the same state it was when the Enable pin was last powered. If the Enable pin is powered, the D Latch changes its state immediately as the Data pin changes.
To properly set the D Latch Output pin's state, you must configure it in at least three Minecraft ticks:
- On the first tick, set the Data pin's state according to your needs.
- On the second tick, set the Redstone signal at the Enable pin to at least 1.
- On the third tick, set the Redstone signal at the Enable pin back to 0.
Boolean Logic Table
The D Latch operates according to the following Boolean logic table:
Data | Enable | Output |
---|---|---|
0 | 0 | Q |
1 | 0 | Q |
0 | 1 | 0 |
1 | 1 | 1 |
The Q state represents the stored state of the latch, that being the last set Output.
Configuration
The Normal D Latch has three connections: Data (Pin Mark A), Enable (Pin Mark B), and Output. Inputs are configurable by right-clicking to face the desired sides.