Posted: Wed Jul 07, 2004 4:51 pm
Latches and Flipflops:
The design of digital circuitry is the design of machines for pushing zeroes and ones around. But after all that pushing zeroes and ones around is done, you have to put them somewhere.
A latch is a place you can put a zero or a one. Imagine a box with three wires sticking out of it. Let's call these wires the "in" "out", and "control" wires.
Now suppose I may connect a battery to either the "in" or "control" line (a one) or not (a zero). Here's a table of what happens:
That's really all there is to it. The diagrams you might see of cross-coupled NAND gates and so on are just to give students an idea of how such things might be made (although in real circuits, these devices are -rarely- made by cross-coupling gates)
Flipflops are just pairs of latches in series, with the "control" lines always forced to be opposite one another. If you work it out on paper, you should be able to see that these gizmos actually "sample" the input at the moment the "control" lines switch. These are called "edge-triggered" storage devices, and they are -very- common, particularly in microprocessors like the ones in your computer, calculator, or toaster.
(They'll put microcontrollers in ANYTHING these days!)
The design of digital circuitry is the design of machines for pushing zeroes and ones around. But after all that pushing zeroes and ones around is done, you have to put them somewhere.
A latch is a place you can put a zero or a one. Imagine a box with three wires sticking out of it. Let's call these wires the "in" "out", and "control" wires.
Now suppose I may connect a battery to either the "in" or "control" line (a one) or not (a zero). Here's a table of what happens:
Code: Select all
IN CONTROL OUT
0 0 0
1 0 1
0 or 1 1 Whatever was there last
Flipflops are just pairs of latches in series, with the "control" lines always forced to be opposite one another. If you work it out on paper, you should be able to see that these gizmos actually "sample" the input at the moment the "control" lines switch. These are called "edge-triggered" storage devices, and they are -very- common, particularly in microprocessors like the ones in your computer, calculator, or toaster.
(They'll put microcontrollers in ANYTHING these days!)