Skip to content

Commit c6ad48b

Browse files
committed
Edited section on NOT gate; added photo of XNOR.
1 parent 929b4c6 commit c6ad48b

File tree

6 files changed

+20
-10
lines changed

6 files changed

+20
-10
lines changed

chapters/logiccircuits.tex

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,16 @@ \subsection*{Equality}
132132
\end{center}
133133
\end{figure}
134134

135+
\begin{figure}[hb!]
136+
\begin{center}
137+
\includegraphics[scale=0.17]{XNORgate.jpg}
138+
\caption{A discrete-transistor XOR and NOT gate. Tying the output of the XOR gate to the input of the NOT gate makes the result of the NOT gate an XNOR of the original two XOR gate inputs---answering the question ``are the two inputs equal?"}
139+
\end{center}
140+
\end{figure}
141+
142+
\clearpage
143+
144+
135145
%---------------------------
136146
\newpage
137147
\section*{Memory}

chapters/logicgates.tex

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ \subsection*{The AND Gate}
213213

214214
\subsection*{The NOT Gate}
215215

216-
NOT gates take one input and reverse the value of that input. So a 1 becomes a 0, or vice versa. Also note this is the \emph{complement} of the input value, as seen above.
216+
NOT gates, sometimes called \emph{inverters}, take one input and reverse the value of that input. So a 1 becomes a 0, or vice versa. Also note this is the \emph{complement} of the input value, as seen above.
217217

218218
\medskip
219219
\begin{center}
@@ -259,7 +259,7 @@ \subsection*{The NOT Gate}
259259

260260
\bigskip
261261

262-
A simple NOT circuit is easy to understand, though this example is not how NOT gates are actually implemented, because of the poor efficiency (and wasted energy turns into heat, which then has to be cooled somehow; it is better to not make the heat in the first place).
262+
A simple NOT circuit is easy to understand, though this example is not how NOT gates are actually implemented, because of the poor efficiency---wasted energy turns into heat, which then has to be cooled somehow. It is better to not make the heat in the first place.
263263

264264
\begin{figure}[!h]
265265
\begin{center}
@@ -274,7 +274,7 @@ \subsection*{The NOT Gate}
274274
\begin{center}
275275
\input{./include/CMOSNOT.tex}
276276

277-
\caption{A practical inverter (NOT) circuit. While more complicated than a simple NOT circuit, it is more efficient, wasting much less energy. It uses one P-type and one N-type \emph{field effect transistor} (FET). Each transistor gate (the ``switch" you turn on or off with voltage) is tied to ground through a fairly high value resistor. P-type transistors clamp off electricity when their gate \emph{has} voltage on it. N-type transistors clamp off when their gate \emph{does not have} voltage on it. So, here, when the input is high, the top transistor clamps off voltage input, and the bottom transistor opens up, allowing any current to flow to ground--but there's no current available! The situation nicely reverses itself when the input is low: the top transistor opens up, allowing current to flow, and the bottom transistor clamps off, preventing current from going anywhere -- but putting a high signal at the output. }
277+
\caption{A practical inverter (NOT) circuit. While more complicated than a simple NOT circuit, it is more efficient, wasting much less energy. It uses one P-type and one N-type \emph{field effect transistor} (FET). P-type transistors clamp off electricity when their gate \emph{has} voltage on it. N-type transistors clamp off when their gate \emph{does not have} voltage on it. So, here, when the input is high, the top transistor clamps off voltage input, and the bottom transistor opens up, allowing any current to flow to ground--but there's no current available! The situation reverses when the input is low: the top transistor opens up, allowing current to flow, and the bottom transistor clamps off, preventing current from going anywhere -- but putting a high signal at the output.}
278278
\label{fig:cmosnot}
279279
\end{center}
280280
\end{figure}
@@ -283,14 +283,14 @@ \subsection*{The NOT Gate}
283283
\begin{figure}[!ht]
284284
\begin{center}
285285
\includegraphics[scale=0.25]{trimmednotgate.png} % convert NOTgate.png -alpha off -trim trimmednotgate.png
286-
\caption{A circuit board designed using the more elegant NOT gate schematic seen in Figure \ref{fig:cmosnot}. This one looks almost exactly like the OR gate and the AND gate, but the wiring is different! Also, it has only one input and one output. The NOT gate takes one \emph{input}, A, and produces one \emph{result}, R.}
286+
\caption{A circuit board designed using the more elegant NOT gate schematic seen in Figure \ref{fig:cmosnot}. The NOT gate takes exactly one \emph{input}, A, and produces a \emph{result}, R.}
287287
\label{fig:notgateboard}
288288
\end{center}
289289
\end{figure}
290290

291291
\begin{table}
292292
\input{./include/NOTgateBOM.tex}
293-
\caption{The list of components needed to solder up the NOT gate seen in Figures \ref{fig:cmosnot} and \ref{fig:notgateboard}.}
293+
\caption{The list of components needed to make the NOT gate seen in Figures \ref{fig:cmosnot} and \ref{fig:notgateboard}.}
294294

295295
\end{table}
296296

computertheoryforkids.pdf

612 KB
Binary file not shown.

images/XNORgate.jpg

570 KB
Loading

images/trimmednotgate.png

56.8 KB
Loading

include/NOTgateBOM.tex

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
\hline\\[\negsep]
33
\textbf{Part} & \textbf{Value} & \textbf{Device} & \textbf{Package} & \textbf{Description} \\[\sep]
44
\hline\\[\negsep]
5-
JP1 & Input/Output & Pin header & 1X02 header & Standard 2-pin 0.1" header \\[\sep]
6-
JP2 & $V_{in}$ \& $GND$ & Pin header & 1X02 header & Standard 2-pin 0.1" header \\[\sep]
7-
Q1 & ZVP3306A & ZVP3306A & TO-92-3 & P-type MOSFET transistor \\[\sep]
8-
Q2 & 2N7000 & 2N7000 & TO-92-3 & N-type MOSFET transistor \\[\sep]
9-
R1 & 100K & Small resistor & 0204/5 & Pull-\emph{down} resistor \\[\sep]
5+
JP1 & Input/Output & pin header & 1x2 header & Standard 2-pin 0.1" header \\[\sep]
6+
JP2 & $V_{in}$ \& $GND$ & pin header & 1x2 header & Standard 2-pin 0.1" header \\[\sep]
7+
Q1 & ZVP3306A & transistor & TO-92-3 & P-type MOSFET transistor \\[\sep]
8+
Q2 & BS270 & transistor & TO-92-3 & N-type MOSFET transistor \\[\sep]
9+
R1 & 100K & small resistor & 0204/5 & Pull-\emph{down} resistor \\[\sep]
1010
R2 & 10K (10,000$\Omega$) & Small resistor & 0204/5 & Current-limiting resistor \\[\sep]
1111
R3 & 100R (100$\Omega$) & $\frac{1}{4}$-watt resistor & 0207/7 & Current-limiting resistor \\[\sep]
1212

0 commit comments

Comments
 (0)