Scrap Mechanic

Scrap Mechanic

Not enough ratings
D Latch
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
8.569 KB
Sep 6, 2021 @ 8:48am
1 Change Note ( view )

Subscribe to download
D Latch

In 1 collection by Tiny Desk Engineer
Tiny Desk Engineer's Logic Circuit Collection
3 items
Description
A simple D Latch

A D Latch is a logic circuit which is very similar to an SR Latch, with the main difference in how it handles input.

While an SR Latch's inputs both set the state separately, a D Latch's inputs consist of a Data signal, and a Store signal.

When the Store signal is 1, the output is the same as the Data signal. When the the Store signal is 0, the output remembers what the Data signal was when the Store signal was turned off.


Bugs:

When the creation is placed on the lift, or sometimes when switching states, the output will start rapidly cycling between 1 and 0 like a repeating clock. For now this can be fixed by using a regular switch for the Store signal instead of a button.

Any help with this problem would be much appreciated.

You can find the SR Latch workshop page here: https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2595159755