3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

DIY RAM Memory- Register Style

Step 2What's Going On?

What\
«
  • SR Flip Flop0.JPG
  • SR Flip Flop.JPG
  • SR Flip Flop2.JPG
  • SR Flip Flop0.JPG
  • SR Flip Flop0.JPG
  • SR Flip Flop3.JPG
  • SR Flip Flop4.JPG
The basis of the circuit is the SR Flip Flop.  This flip flop circuit uses 2 inputs, Set and Reset, to control 2 outputs, Q and ~Q (not Q).  When the Set line goes high, Q will go high and stay high even after Set goes low.  If, however, Reset goes high, then Q will go low and ~Q will go high. 

Now the question becomes how do we make all of this happen with only one input?  We do this by connecting the data line to the Set input and connecting it to the Reset line through an inverter.

So far, when Data is high, Set is high and Reset is low so Q is high. If Data goes low, then Set goes low and Reset goes high making Q go low and ~Q go high.  Now we have another problem.  The register changes states when the Data does, it doesn't latch like we want it to. How do we fix this? By adding a Write Enable.  We can do this by adding a gated buffer.  It acts as a switch so if the switch line goes high or low the buffer will either turn off or on, respectively. Now, even when the data line can change states, the data can remain the same.
« Previous StepDownload PDFView All StepsNext Step »
2 comments
Dec 2, 2010. 9:03 AMparukboy says:
I don't think I understand the gated buffer properly. Okay heres what I know

D = 1
WE = 1
Q will = 1

THEN

D = 0;
WE = 0
Q will = 1 because when R & S = 0 , Q = 1

BUT

D = 0
WE = 1
Q will = 0

THEN

D = 1;
WE = 0;
Q will = 1 because when R & S = 0, Q = 1

Or have I gone wrong somewhere ?



Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
48
Followers
10
Author:Teslaling(Teslaling)
I like to make things that move, sense, calculate, compute, blink, and make noise. I like making things that create high voltages, electrical arcs, and can light fluorescent bulbs at a distance. I li...
more »