ece 3130 – digital electronics and design lab 7 binary counter fall 2012 allan guan
TRANSCRIPT
![Page 1: ECE 3130 – Digital Electronics and Design Lab 7 Binary Counter Fall 2012 Allan Guan](https://reader035.vdocuments.net/reader035/viewer/2022081821/56649dc95503460f94abef51/html5/thumbnails/1.jpg)
Allan Guan
ECE 3130 – Digital Electronics and Design
Lab 7Binary Counter
Fall 2012
![Page 2: ECE 3130 – Digital Electronics and Design Lab 7 Binary Counter Fall 2012 Allan Guan](https://reader035.vdocuments.net/reader035/viewer/2022081821/56649dc95503460f94abef51/html5/thumbnails/2.jpg)
Allan Guan
Introduction
• A binary counter is a device that stores the number of times that an event/process occurs
• Up/down counter– When the selector is in the up state, the counter
increments its value– When the selector is in the down state, the
counter decrements its value
![Page 3: ECE 3130 – Digital Electronics and Design Lab 7 Binary Counter Fall 2012 Allan Guan](https://reader035.vdocuments.net/reader035/viewer/2022081821/56649dc95503460f94abef51/html5/thumbnails/3.jpg)
Allan Guan
JK Flip-Flops
• A universal flip-flop – can be configured as a SRFF, DFF, or TFF
• Identical to an SR flip-flop except that S=R=1 is no longer undefined, but rather “toggle/flip”
J/S K/R Qnext
0 0 Q (hold)
0 1 0
1 0 1
1 1 nQ (toggle)
![Page 4: ECE 3130 – Digital Electronics and Design Lab 7 Binary Counter Fall 2012 Allan Guan](https://reader035.vdocuments.net/reader035/viewer/2022081821/56649dc95503460f94abef51/html5/thumbnails/4.jpg)
Allan Guan
Master-Slave JKFF Implementation
![Page 5: ECE 3130 – Digital Electronics and Design Lab 7 Binary Counter Fall 2012 Allan Guan](https://reader035.vdocuments.net/reader035/viewer/2022081821/56649dc95503460f94abef51/html5/thumbnails/5.jpg)
Allan Guan
Up/down counter using T Flip-Flops
Circuit Symbol Truth TableT Q Qnext
0 0 0
0 1 1
1 0 1
1 1 0
Tie the J and K inputs of the JKFF to make a TFF.
![Page 6: ECE 3130 – Digital Electronics and Design Lab 7 Binary Counter Fall 2012 Allan Guan](https://reader035.vdocuments.net/reader035/viewer/2022081821/56649dc95503460f94abef51/html5/thumbnails/6.jpg)
Allan Guan
4-bit Up/Down Binary Counter
![Page 7: ECE 3130 – Digital Electronics and Design Lab 7 Binary Counter Fall 2012 Allan Guan](https://reader035.vdocuments.net/reader035/viewer/2022081821/56649dc95503460f94abef51/html5/thumbnails/7.jpg)
Allan Guan
Analysis
• What are some applications of counters?