Electronic – multilevel storage elements

analogflipfloplatchsample and holdternary

I've been experimenting with three-valued logic (yeah, I know) and have had quite a bit of success by using voltage comparators to implement the combinatorial logic. All 27 1-input gates and many useful 2-input gates are functioning as expected. The progress is documented at
https://hackaday.io/project/6284-tern-physical-implementations-of-ternary-logic

The problem comes about when I start getting into sequential logic. Specificly, SR latches, D Flip Flops, etc. Just elementary memory elements. Not only do the circuits become quite complex but they also exhibit behavior I just don't anticipate. I'm not knowlegable enought in analog design to debug them and I don't even own a scope so I'm nearly blind as well. However, I do know that this is a solved problem because Flash chips use anywhere from 2 to 8 (maybe even higher) voltage levels. Because this stuff already exists in the realm of integrated circuits I'm not going to be picky about staying strictly away from binary-digital solutions for storage.

What I'm looking for is a relatively simple solution that will fit within these parameters:
1) will accept an input voltage between -5V and 5V
2) will store that voltage until directed otherwise (volatile is okay)
3) will output that voltage while it is stored
4) is available in a dip package

My best case scenario (even though it doesn't exist) is a family of dip IC's that are analog equivalents to 8 bit latches, shift registers, etc. My worst case scenario is throwing an arduino into the mix to read analog voltages and PWM them out.

I'm looking for a solution that falls inbtween the two. Is there a family of multi-input sample and hold chips that will keep a charge for a reasonable amount of time (at least several minutes). Or maybe an ADC with PWM output that can hold a level until directed and can accept -5 volts. Any other ideas? Thanks much for your help!

Best Answer

What I'm looking for is a relatively simple solution that will fit within these parameters: 1) will accept an input voltage between -5V and 5V 2) will store that voltage until directed otherwise (volatile is okay) 3) will output that voltage while it is stored 4) is available in a dip package.

Looks like a sample and hold IC is what you're looking for. The LF398 fits your requirements. There are lots of other chips that do the same basic function with different trade-offs. I've seen sample and hold IC's with multiple channels as well.

Note that analog sample and hold circuits are never ideal. You will see the output voltage drift over time. You can minimize this effect by doing good pcb layout and picking high quality components, but the effect will always be there.