Dec Basic Electronics
Dec Basic Electronics
Mandal
x y x.y x y x+y x x’
Switches in series – logic AND Switches in parallel – logic OR
0 0 0 0 0 0 0 1
0 1 0 0 1 1 1 0
1 0 0 1 0 1
1 1 1 1 1 1
1 2
3 4
1
Sushanta K. Mandal
• A B=A’B+AB’.
1 0 0
1 1 1
5 6
0 0 Q(t) Memory
derived gates. •
•
S-R latch made from cross-coupled NORs
If Q = 1, set state
• If Q = 0, reset state
• Usually S=0 and R=0 is called Memory state
• S=1 and R=1 generates undefined or indeterminate
results.
7 8
2
Sushanta K. Mandal
9 10
Q(t+1)
3
Sushanta K. Mandal
13 14
4
Sushanta K. Mandal
When the clock is "LOW", the outputs from the "master" flip- The Solution
flop are latched and any additional changes to its inputs are
ignored. The gated "slave" flip-flop now responds to the state • A clock pulse goes through two transition from 0 to 1 and the
of its inputs passed over by the "master" section. Then on the return from 1 to 0
"Low-to-High" transition of the clock pulse the inputs of the • The solution: by changing the operation of a flip-flop to
"master" flip-flop are fed through to the gated inputs of the trigger it only during a signal transition.
"slave" flip-flop and on the "High-to-Low" transition the same
inputs are reflected on the output of the "slave" making this • Two types of transition: the positive transition (from 0 t0 1)
type of flip-flop edge or pulse-triggered. and the negative transition (from 1 to 0)
5
Sushanta K. Mandal
Flip-Flop Symbols
J-K flip flop Symbols
Input Input
Q Q
C Q C Q
21 22
Q’
R
Y
D C Q
0 1 0
1 1 1
X 0 Q0 (Memory)
23 24
6
Sushanta K. Mandal
– A single-bit register
25 26
Shift Registers(SISO)
Types of Shift Register
• Serial in serial out (SISO)
• Serial in Parallel out (SIPO)
• Parallel in serial out (PISO)
• Shifts binary information in one or both directions.
• Parallel in Parallel out (PIPO)
• On the positive edge of the first clock pulse, the
signal on the in is latched in the first FF.
7
Sushanta K. Mandal
Counters Counters
• Counter categories:
• Binary counter: follows the binary number
sequence. – Ripple counters
• An n-bit binary counter: – Synchronous counters
– Consists of n flip-flops
• Ripple counters: The flip-flop’s output transition
– Can count in binary from 0 to 2n -1 triggers other flip-flops.
• A counter is a register that goes through a • Synchronous counters: A common clock triggers
sequence of states. all flip-flops simultaneously rather than one at a
time in succession as in ripple counters.
29 30
connected to a logic 1. 0 0 0
0 0 1
• Each flip-flop complement if the signal in its C 0
0
1
1
0
1
input goes through a negative transition. 1 0 0
1 0 1
• The flip-flop holding the LSB receives the 1
1
1
1
0
1
incoming count pulses. 0 0 0
Q0 is complemented with the count pulse. Since Q0 goes from 1 to 0, it triggers
• The count starts with binary 0 and increments by Q1 and complements it. As a result, Q1 goes from 1 0, which in turn complements
one with each count pulse input. Q2 changing it from 0 1. Q2 does not trigger Q3 because Q2 produces a positive
transition. The flip-flops change one bit at a time in succession and the signal
propagates through the counter in a ripple fashion from one stage to the next.
EC402 Digital Electronic Circuits 31 32
Spring 2011
8
Sushanta K. Mandal
J Q2
C
K
J Q3
C
K
J Q4
C
33 34
Logic-1 K