Code: The Hidden Language of Computer Hardware and Software
Rate it:
34%
Flag icon
The time required for one cycle is called the period of the oscillator.
34%
Flag icon
The frequency of the oscillator is 1 divided by the period.
34%
Flag icon
But cycles per second isn’t used much any more. In commemoration of Heinrich Rudolph Hertz (1857–1894), who was the first person to transmit and receive radio waves, the word hertz is now used instead.
34%
Flag icon
Thus, we can say that our oscillator has a frequency of 20 hertz, or (to abbreviate) 20 Hz.
34%
Flag icon
The strangeness of this circuit is that sometimes when both switches are open the light is on, and sometimes when both switches are open, the light is off.
34%
Flag icon
We can say that this circuit has two stable states when both switches are open. Such a circuit is called a flip-flop
34%
Flag icon
A flip-flop circuit retains information. It “remembers.”
34%
Flag icon
In particular, the flip-flop shown previously remembers which switch was most recently closed. If
34%
Flag icon
Although it might not be apparent yet, flip-flops are essential tools. They add memory to a circuit to give it a history of what’s gone on before.
34%
Flag icon
What I’ve just shown is the simplest and is called an R-S (or Reset-Set) flip-flop.
34%
Flag icon
The two inputs are called S for set and R for reset. You can think of these verbs as meaning “set Q to 1” and “reset Q to 0.”
35%
Flag icon
This is called a function table or a logic table or a truth table. It shows the outputs that result from particular combinations of inputs.
35%
Flag icon
The final row of the table indicates that a situation in which the S and R inputs are both 1 is disallowed or illegal
35%
Flag icon
So when you’re designing circuitry that uses the R-S flip-flop, avoid situations in which the S and R inputs are both 1.
35%
Flag icon
The R-S flip-flop is certainly interesting as a first example of a circuit that seems to “remember” which of two inputs was last a voltage.
35%
Flag icon
This circuit is called a level-triggered D-type flip-flop. The D stands for Data. Level-triggered
35%
Flag icon
But for now, the Clock input simply indicates when the Data input is to be saved:
35%
Flag icon
This circuit is also known as a level-triggered D-type latch, and that term simply means that the circuit latches onto one bit of data and keeps it around for further use.
36%
Flag icon
This latch is capable of saving 8 bits at once.
36%
Flag icon
When the Clock signal is 1, the 8-bit value on the D inputs is transferred to the Q outputs. When the Clock signal goes back to 0, that 8-bit value stays there until the next time the Clock signal is 1.
38%
Flag icon
For this reason, such a circuit—in which the output is routed back to the Data input of a flip-flop—is also known as a frequency divider.
38%
Flag icon
We have now persuaded telegraph relays to add, subtract, and count in binary numbers.
39%
Flag icon
The two improved adding machines of the last chapter illustrate clearly the concept of data paths. Throughout the circuitry, 8-bit values move from one component to another.
39%
Flag icon
The word byte originated at IBM, probably around 1956. The word had its origins in the word bite but was spelled with a y so that nobody would mistake the word for bit.
39%
Flag icon
Because bytes show up a lot in the internals of computers, it’s convenient to be able to refer to their values in as succinct a manner as possible.
43%
Flag icon
We write and we later read. We save and we later retrieve. We store and we later access.
43%
Flag icon
Telegraph relays too—when assembled into logic gates and then flip-flops—can store information.
43%
Flag icon
a flip-flop is capable of storing 1 bit.
43%
Flag icon
we encountered the level-triggered D-type flip-flop, which is made out of an inverter, two AND gates, and two NOR gates:
43%
Flag icon
But whenever we want to store the Data In signal in the flip-flop, we make the Write input 1 and then 0 again. As I mentioned in Chapter 14, this type of circuit is also called a latch because it latches onto data.
43%
Flag icon
Three switches can represent eight different values: 000, 001, 010, 011, 100, 101, 110, and 111.
« Prev 1 2 Next »