ELE2120 Digital Circuits and Systems: Tutorial Note 8
ELE2120 Digital Circuits and Systems: Tutorial Note 8
Tutorial Note 8
Outline
1. Register
2. Counters
3. Synchronous Counter
4. Asynchronous Counter
1. Register
Applications:
temporally store bits
Shifting bits for calculation, serial comm.
Shift register, serial adder, USR.
2. Counter
Asynchronous Counters
Synchronous Counters
Shift Register
Array of Flip-Flops
is a synchronous systems
they are driven by the same clocking waveform
Parallel-Access Shift Register
Exercise(1): Register
Exercise(1): Register
Counters
Ripple Counters
Event Driven
Possible of saving hardware
Delay
3-bit Up Counter
Timing diagram
4-bit Up Counter
Timing diagram
Overflow
Conditions:
only when
Q0=1&Q1=1&C
lk=1.
Synchronous Counter
When Load = 0:
When Load = 1:
D0,D1,D2,D3 will be
assign to Q0,Q1,Q2,Q3
Synchronous Counter
Ring Counter
Share the same clocking system
mod 4 counter
1000
0100
0010
0001
Exercise(1)
Exercise(1)
Exercise (2)
Exercise (2)
Sequential Circuit Design
Need to be clear :
Characteristic table and characteristic equations are
referring to latches and Flip Flops.
State equations, state tables and state diagrams are
talking about a particular design.
Sequential Circuit Design
1.Find the smallest number of FFs such that 2NX, and connect
them as a counter. If 2N=X, do not do step 2 and 3.
23=8, 24=16; thus four FFs are required. Since the counter is to
have stable operation up to the count of 1001, it must be reset to
zero when the count of 1010 is reached. Therefore, FF outputs D
and B must be connected as the NAND gate inputs.
1MHz
Exercise
S
S
R Q
C
Q
R
Clock
Solution
S
S
R Q
C
Q
R
Clock
For example:
SR latch: Q(t+1) = S + RQ(t)
D flip-flop: Q(t+1) = D
JK flip-flop: Q(t+1) = JQ(t)+KQ(t)
T flip-flop: Q(t+1) = TQ(t)= TQ(t)+TQ(t)