registers and counters by dr. amin danial asham. references digital design 5 th edition, morris...
TRANSCRIPT
![Page 1: Registers and Counters by Dr. Amin Danial Asham. References Digital Design 5 th Edition, Morris Mano](https://reader035.vdocuments.net/reader035/viewer/2022081421/56649f045503460f94c190dc/html5/thumbnails/1.jpg)
Registers and Counters
byDr. Amin Danial Asham
![Page 2: Registers and Counters by Dr. Amin Danial Asham. References Digital Design 5 th Edition, Morris Mano](https://reader035.vdocuments.net/reader035/viewer/2022081421/56649f045503460f94c190dc/html5/thumbnails/2.jpg)
References
Digital Design 5th Edition, Morris Mano
![Page 3: Registers and Counters by Dr. Amin Danial Asham. References Digital Design 5 th Edition, Morris Mano](https://reader035.vdocuments.net/reader035/viewer/2022081421/56649f045503460f94c190dc/html5/thumbnails/3.jpg)
Registers are group of FF’s.
Each FF stores a binary bit .
Therefore, n-bits registers has n-
FF’s.
![Page 4: Registers and Counters by Dr. Amin Danial Asham. References Digital Design 5 th Edition, Morris Mano](https://reader035.vdocuments.net/reader035/viewer/2022081421/56649f045503460f94c190dc/html5/thumbnails/4.jpg)
4-bits Register.
This register has a clear signal to reset all FF’s.
This register is positive edge trigger.
Each input is mapped to output at the clock positive edge.
![Page 5: Registers and Counters by Dr. Amin Danial Asham. References Digital Design 5 th Edition, Morris Mano](https://reader035.vdocuments.net/reader035/viewer/2022081421/56649f045503460f94c190dc/html5/thumbnails/5.jpg)
Shift Register Data is injected serially in serial input SI into the register with each
clock pulse.
Sine the data is shifted inside the register it comes out serially as well from serial output SO
SI SO
![Page 6: Registers and Counters by Dr. Amin Danial Asham. References Digital Design 5 th Edition, Morris Mano](https://reader035.vdocuments.net/reader035/viewer/2022081421/56649f045503460f94c190dc/html5/thumbnails/6.jpg)
Counters A counter is a register that goes though a predetermined
sequence of binary states upon the applications of input pulses.
An n-bits binary counter has states that count from 0 up to .
An n bits counter has n FF’s. There are two categories of counters:o Ripple Counterso Synchronous counters
![Page 7: Registers and Counters by Dr. Amin Danial Asham. References Digital Design 5 th Edition, Morris Mano](https://reader035.vdocuments.net/reader035/viewer/2022081421/56649f045503460f94c190dc/html5/thumbnails/7.jpg)
Ripple Counters (Asynchronous)with JK-FF’s Two-bit asynchronous
counter Each FF is connected as a toggle FF triggered by the previous FF. That is:
• Q0 is complemented each time clock goes from 1 to 0.
• Q1 is complemented each time Q0 goes from 1 to 0.
• That means the trigger is propagated through the counter as a ripple fashion from the clock to the most significant bit through FF’s.
• Therefore the transition od from01 to 10 is as follows:
10
![Page 8: Registers and Counters by Dr. Amin Danial Asham. References Digital Design 5 th Edition, Morris Mano](https://reader035.vdocuments.net/reader035/viewer/2022081421/56649f045503460f94c190dc/html5/thumbnails/8.jpg)
Ripple Counters (Asynchronous)with D-FF’s
![Page 9: Registers and Counters by Dr. Amin Danial Asham. References Digital Design 5 th Edition, Morris Mano](https://reader035.vdocuments.net/reader035/viewer/2022081421/56649f045503460f94c190dc/html5/thumbnails/9.jpg)
Ripple Counters (Asynchronous)with T-FF’s
![Page 10: Registers and Counters by Dr. Amin Danial Asham. References Digital Design 5 th Edition, Morris Mano](https://reader035.vdocuments.net/reader035/viewer/2022081421/56649f045503460f94c190dc/html5/thumbnails/10.jpg)
2-bits Ripple countdown counter.
3 2 1 0 3
2-bits ripple count down counter which counter from 3 to 0
All FF’s are positive edge trigger.
The polarity of the clock is essential for ripple counter counter
![Page 11: Registers and Counters by Dr. Amin Danial Asham. References Digital Design 5 th Edition, Morris Mano](https://reader035.vdocuments.net/reader035/viewer/2022081421/56649f045503460f94c190dc/html5/thumbnails/11.jpg)
3 -BCD Ripple Counter (0-999) Noting that BCD counters here are triggered by the
negative edge.
![Page 12: Registers and Counters by Dr. Amin Danial Asham. References Digital Design 5 th Edition, Morris Mano](https://reader035.vdocuments.net/reader035/viewer/2022081421/56649f045503460f94c190dc/html5/thumbnails/12.jpg)
Synchronous counters
A FF in any position is complemented if all the lower significant bits are all 1’a.o For example for output , then the next
count is is complemented by the next count when all the lower significant bits are ones.
When count enable is 0 all J’s and K’s are zeros and hence the clock does not affect the counter state.
The polarity of the clock is not essential for synchronous counters
![Page 13: Registers and Counters by Dr. Amin Danial Asham. References Digital Design 5 th Edition, Morris Mano](https://reader035.vdocuments.net/reader035/viewer/2022081421/56649f045503460f94c190dc/html5/thumbnails/13.jpg)
Up-Down Binary Counter
When the Up enable signal is 1 the counter acts as count-up counter.o A FF in any position is
complemented if all the lower significant bits are all 1’a.
When the Down enable signal is 1 and UP signal is 0 the counter acts as count-Down counter.
o A FF in any position is complemented if all the lower significant bits are all 0’a.
![Page 14: Registers and Counters by Dr. Amin Danial Asham. References Digital Design 5 th Edition, Morris Mano](https://reader035.vdocuments.net/reader035/viewer/2022081421/56649f045503460f94c190dc/html5/thumbnails/14.jpg)
Up-Down Binary Counter (continue)
0 1 2 3 0 3 2 1 0
Binary O/P=
Logic 1
![Page 15: Registers and Counters by Dr. Amin Danial Asham. References Digital Design 5 th Edition, Morris Mano](https://reader035.vdocuments.net/reader035/viewer/2022081421/56649f045503460f94c190dc/html5/thumbnails/15.jpg)
Thanks