Notes 1
Notes 1
By converting continuous analog signals into a finite number of discrete states, a process
called digitization, then to the extent that the states are sufficiently well separated so that
noise does create errors, the resulting digital signals allow the following (slightly idealized):
The convention for naming these states is illustrated in Fig. 1. The “positive true” case
is illustrated. The relationship between the logic state and label (in this case “switch open”)
at some point in the circuit can be summarized with the following:
The labelled voltage is High (Low) when the label’s stated function is True (False).
In the figure, the stated function is certainly true (switch open), and this does correspond to
a high voltage at the labelled point. (Recall that with the switch open, Ohm’s Law implies
that with zero current, the voltage difference across the “pull up” resistor is zero, so that
1
the labelled point is at +5 Volts. With a closed switch, the labelled point is connected to
ground, with a 5 Volt drop across the resistor and a current of I = V /R = 5 mA through
it.)
+5 V
1k
switch open
With the convention known as “negative true”, the label would be changed to “switch
closed” with a bar over it: switch closed. Our statement becomes:
The labelled voltage is Low (High) when the label’s stated function is True (False).
So in the figure, the stated function (switch closed) is true when the voltage is low. The bar
is meant to envoke the boolean inversion operation: T̄ = F, F̄ = T, T̄¯ = T, and so forth.
2
Yet another convention is Gray code. You have a homework problem to practice this.
This is less commonly used.
2. Add some number to −2MSB to get the number you want. For 4-bit numbers an
example of finding the 2’s complement of 5 is −5 = −8 + 3 = 1000 + 0011 = 1011.