# ca Wiki

### Site Tools

2014:vacuum_tube_sr_latch

This is an old revision of the document!

### Abstract

We investigated 1940s era computers—esp. the ENIAC (Electronic Numerical Integrator And Computer)—and, using this knowledge, designed and constructed a basic bistable functioning element used in digital computers—the Set-Reset Latch, or simply SR Latch. Our ENIAC-based SR Latch design uses four triode vacuum tubes, basic analog components, and optional neon lights for output state indication.

### Background Info

#### The SR Latch

The Set-Reset Latch, or SR Latch, is a basic element in digital computing. It has two inputs, Set and Reset, and either one or two outputs (which we refer to as Q and nQ). Q and nQ' are always opposites (hence the binary nomenclature). Our latch is falling-edge triggered, meaning when Set or Reset transitions from a high to low state the states of Q and nQ' are updated. Our latch is transparent, meaning the output is updated immediately upon the inputs changing, and it ignores rising-edge transitions. Some latches have enable inputs that can make them opaque, but ours does not offer this feature. We do, however, offer suggestions on how to extend our latch to have an enable input. The logic table for our latch is shown in \fref{tab:sr-latch-table}. A careful reader might notice that the condition for which both set and reset fall at the same time is not shown on the diagram. This case is not possible—in reality, the second edge will take precedence and

Another basic element of digital circuits is the clocked flip-flop. As we note later, the designers of the ENIAC called our edge-triggered latch a flip-flop, but we typically reserve the term flip-flop for a unit that is opaque until a clock edge. It is possible to make a clocked flip-flop from two SR latches with enable inputs.

% Please add the following required packages to your document preamble: \begin{table}[!ht] \centering \begin{tabular}{@{}cccc@{}} \toprule S & R} & Q & $\overline{Q}$ \midrule $\uparrow$ & $\uparrow$ & Q & $\overline{Q}$ $\downarrow$& 1 & 1 & 0 1 & $\downarrow$& 0 & 1 $\downarrow$& 0 & Q & $\overline{Q}$ 0 & $\downarrow$& Q & $\overline{Q}$ \bottomrule \end{tabular} \caption{Falling-Edge Triggered SR Latch States} \label{tab:sr-latch-table} \end{table} === How Vacuum Tubes Work === \begin{figure}[!ht] \centering \includegraphics[width=.8\textwidth]{triodes.eps} \caption{The simple triode symbol on the left shows the three electrodes cathode (k, heater shown underneath), grid (g), and anode (a). The right side image is the diagram of the 12AX7 with pin layout.} \label{fig:triodes} \end{figure} A vacuum tube is a device that controls a flow of current. Vacuum tubes operate on the principle of thermionic emission. Thermionic emission is the principle that energy in the form of heat can induce a flow of electrons from a filament (the heated cathode) to an anode. In the case of a triode, the grid electrode is a mesh or wire grate that allows or blocks thermionic emission to occur between the filament and the anode. The grid is typically held at a negative potential relative to the cathode. The more negative the grid is, the stronger the negative electric field it produces, the stronger the electrons from the cathode are repelled. Control is possible by pulling the grid closer in potential to the cathode (grid more positive), thus allowing electrons to pass through to the anode and current to flow through the tube. A small change in grid potential can produce a large change in current. The ratio of these changes is called the transconductance of the tube, expressed as $gm$and in units of mhos (inverse ohms). In operation, our tubes have a transconductance of approximately 0.0015 mhos, meaning a change of 1V on the grid produces a change of 1.5mA flowing through the tube. ==== Why bother with old technology? ==== %TODO: make this title better Studying the engineering decisions behind old technology is fascinating. Looking around the Internet, descriptions of how vacuum tubes work are sparse and usually focused on audio electronics. We intend this page to become a resource for any designer looking to build digital logic from vacuum tubes. %A paragraph or so about why the project you chose is worthwhile and interesting. ==== Implementation ==== %TODO: better title % N.M.: better title ideas: % - Implementation % - The Works (minus the poppy seeds) % - %This portion can assume an audience that has taken Computer Architecture, but don’t get burdened by buzzwords. A sure sign of a bad engineer is over reliance on acronyms. How to read tube diagram Explanation of parameters === {Reading ENIAC Documentation} There are a few quirks modern engineers may not be used to when reading the documentation for ENIAC. The first and most obvious is what we call an SR Latch, they call a flip-flop. In current parlance, flip-flops are clocked elements while latches are not—ours are simply transparent.

Another feature of old documentation is the units of capacitance—the only unit available was the microfarad. In schematics, capacitors are often not labelled with units, and instead written as .001 for 1 nanofarad. For even smaller capacitors, the unit we would now call a picofarad was called a micromicrofarad, or $\mu\mu F[itex]. The grid coupling capacitors in our schematic have values of [itex]22\mu\mu F[itex]. Regarding the values of components, it seems the EIA series were not commonly followed for capacitors at the time. 25pF capacitors are rather difficult to find—fortunately 22pF capacitors are perfectly acceptable substitutes and 25pF is within the tolerance for most common 22pF capacitors. ==== Building up from an SR Latch ==== %better title %TODO: Include everything necessary to pick up where you left off. This should include: \begin{itemize} \item Code \item Schematics notes on simulation \item Build Instructions \item List of difficulties and gotchas while doing the project \item Work Plan reflection (OOPS) \item Possible TODO to extend the depth of the project \item ZIP file to submit to the wiki \end{itemize} === The Circuit === \Fref{fig:eniac} shows a circuit diagram of the ENIAC's Accumulator program control circuit. We took the SR Latch from this circuit (subcircuit inside blue dashed lines) to make our SR Latch. Set is the input to the [itex]0.001\mu[itex]F capacitor leading to tube 1, and Reset is the input to the [itex]0.001\mu[itex]F capacitor leading into tube 2. The neon light connected to [itex]Q$indicates the states of Q and [itex]\overline{Q}[itex]. \begin{figure}[!ht] \centering \includegraphics[width=1\textwidth]{eniacSRLatch} \caption{The ENIAC's Accumulator program control circuit.} \label{fig:eniac} \end{figure} Our SR Latch design (\fref{fig:latch}) was simulated in LT Spice and implemented with two 12AX7 dual triode vacuum tubes and two neon lights to indicate the states of Q and [itex]\overline{Q}[itex]. Regarding simulating the circuit, we used tube models that were in the heated state (the model is named NH12AX7). In the same model file, the 12AX7 model includes a heater parameter, so it is possible to simulate what happens when the heater is in an undervoltage condition or during startup when the heater is still warming up (and the tube is not ready to conduct yet).

  \begin{figure}[!ht]
\centering
\includegraphics[width=1\textwidth]{SRLatch}
\caption{Our SR Latch circuit diagram.}
\label{fig:latch}
\end{figure}