TAMS / Java / Hades / applets: contents | previous | next | ||||
Hades Applets contents visual index introduction std_logic_1164 gatelevel circuits delay models flipflops adders and arithm... counters asynchronous... asynchronous... frequency di... synchronous ... synchronous ... up/down counter asynchrounou... 749x counters 7493 1:16 co... 7490 1:10 co... 7492 1:12 co... 74590 counter 74390 decima... frequency co... pulse-generator digital clock digital clock LFSR and selftest memories programmable logic state-machine editor misc. demos I/O and displays DCF-77 clock relays (switch-le... CMOS circuits (sw... RTLIB logic RTLIB registers Prima processor D*CORE MicroJava Pic16 cosimulation Mips R3000 cosimu... Intel MCS4 (i4004) image processing ... [Sch04] Codeumsetzer [Sch04] Addierer [Sch04] Flipflops [Sch04] Schaltwerke [Sch04] RALU, Min... [Fer05] State-Mac... [Fer05] PIC16F84/... [Fer05] Miscellan... [Fer05] Femtojava FreeTTS | Synchronous Up/Down Counter (JK flipflops)
Circuit Description
A synchronous 4-bit up/down counter
built from JK flipflops.
Depending on the logic value on the Up/nDown input,
the counter will increment or decrement its value on the
falling edge of the clock signal.
The additional enable input enables (1) or disables (0) counting.
To operate the counter,
click the nreset, nclock, enable, and up/down switches,
or type the 'r', 'c', 'e', and 'u' bindkeys.
During up-counting, the stage-n flipflop should toggle when all lower flipflops are 1. Therefore, in each stage, one AND gate is used to calculate this carry signal for the next stage flipflop. Similarly, during down-counting, the stage-n flipflop should toggle when all lower flipflops are 0. This is calculated using AND gates connected to the NQ outputs of the flipflops. Each AND gate has one additional input that takes the corresponding up or down enable signal. The outputs of both AND gates are then ORed together to enable the J=K=1 inputs to toggle the JK flipflops. Exercise: Design the logic required to control the carry-out (or 5th bit) for this counter. | |||
Print version | Run this demo in the Hades editor (via Java WebStart) | ||||
Usage | FAQ | About | License | Feedback | Tutorial (PDF) | Referenzkarte (PDF, in German) | ||||
Impressum | http://tams.informatik.uni-hamburg.de/applets/hades/webdemos/30-counters/40-updown/updown.html |