How to Build 1 Bit of RAM Using Transistors
avrillion.com
How to Build 1 Bit of RAM Using Transistors
1–10 of 46 posts
Re: How to Build 1 Bit of RAM Using Transistors
#2Re: How to Build 1 Bit of RAM Using Transistors
#3Four transistors? I can do it with only 2, it's called bi-stable circuit: https://en.wikipedia.org/wiki/Flip-flop_(electronics)
The value of an HN comment is its impact on current and future discussion, or (to put it in a pseudo-technical way) the expected value of the subthread it forms the root of [2]. I've been struggling for a way to explain this that doesn't sound smarmy (like "be nice" or "tone"), since it's not about being nice. It's about what leads to richer improvisation and curious conversation, which is what we're trying to optimize for here [3].
Edit: elsewhere in this thread are some great examples of opening-up responses:
https://news.ycombinator.com/item?id=22798780 ("even more interesting...")
https://news.ycombinator.com/item?id=22798746 ("I once...")
If you ask yourself and sense into what kinds of responses such comments invite, you'll get the spirit of what we're going for. I don't mean you personally—I mean all of us. This is a community project.
[1] https://hn.algolia.com/?dateRange=all&page=0&prefix=false&qu...
[2] https://hn.algolia.com/?dateRange=all&page=0&prefix=false&qu...
[3] https://hn.algolia.com/?dateRange=all&page=0&prefix=true&que...
Re: How to Build 1 Bit of RAM Using Transistors
#4Re: How to Build 1 Bit of RAM Using Transistors
#5I had been making magnetic snap-together circuits, so I had a bunch of small PCBs with simple 2- and 3-pin footprints and holes that I soldered neodymium disc magnets into.
I put a big TO-220 N-fet on one of them, and stuck it to a laminated whiteboard so that the magnets stuck without shorting together, then I hooked it up to an LED as a simple high-side switch.
When I bent the transistor so that its metal plane rested against the magnetic whiteboard, its gate would latch after briefly tapping either V+ or ground to the magnet which was connected to the pin. When the transistor's metal plane was perpendicular to the board, it didn't latch. Disconnecting and reconnecting the LED didn't perturb the 'saved' value, and neither did removing power overnight. And the same thing happened with a similar P-fet connected as a low-side switch.
It probably wasn't a "real" latch; it was a very over-sized transistor with low gate capacitance, and I didn't try it with something like a 3904. I think it might have had something to do with the principles behind nonvolatile ferroelectric RAM, but I never did get to the bottom of it.
Re: How to Build 1 Bit of RAM Using Transistors
#6Four transistors? I can do it with only 2, it's called bi-stable circuit: https://en.wikipedia.org/wiki/Flip-flop_(electronics)
Re: How to Build 1 Bit of RAM Using Transistors
#7Re: How to Build 1 Bit of RAM Using Transistors
#8Re: How to Build 1 Bit of RAM Using Transistors
#9A capacitor is 1 bit of memory.
Re: How to Build 1 Bit of RAM Using Transistors
#10I once made a single-transistor latch by accident. It acted as a single bit of memory and retained its value for weeks until I got bored with the project. I had been making magnetic snap-together circuits, so I had a bunch of small PCBs with simple 2- and 3-pin footprints and holes that I soldered neodymium disc magnets into. I put a big TO-220 N-fet on one of them, and stuck it to a laminated whiteboard so that the…