Ripple Digital Publishing Popular Books

Ripple Digital Publishing Biography & Facts

In digital logic and computing, a counter is a device which stores (and sometimes displays) the number of times a particular event or process has occurred, often in relationship to a clock. The most common type is a sequential digital logic circuit with an input line called the clock and multiple output lines. The values on the output lines represent a number in the binary or BCD number system. Each pulse applied to the clock input increments or decrements the number in the counter. A counter circuit is usually constructed of several flip-flops connected in a cascade. Counters are a very widely used component in digital circuits, and are manufactured as separate integrated circuits and also incorporated as parts of larger integrated circuits. Electronic counters An electronic counter is a sequential logic circuit that has a clock input signal and a group of output signals that represent an integer "counts" value. Upon each qualified clock edge, the circuit will increment (or decrement, depending on circuit design) the counts. When the counts have reached the end of the counting sequence (maximum counts when incrementing; zero counts when decrementing), the next clock will cause the counts to overflow or underflow, and the counting sequence will start over. Internally, counters use flip-flops to represent the current counts and to retain the counts between clocks. Depending on the type of counter, the output may be a direct representation of the counts (a binary number), or it may be encoded. Examples of the latter include ring counters and counters that output Gray codes. Many counters provide additional input signals to facilitate dynamic control of the counting sequence, such as: Reset – sets counts to zero. Some IC manufacturers name it "clear" or "master reset (MR)". Enable – allows or inhibits counting. Direction – determines whether counts will increment or decrement. Data – parallel input data which represents a particular counts value. Load – copies parallel input data to the counts. Some counters provide a Terminal Count output which indicates that the next clock will cause overflow or underflow. This is commonly used to implement counter cascading (combining two or more counters to create a single, larger counter) by connecting the Terminal Count output of one counter to the Enable input of the next counter. The modulus of a counter is the number of states in its count sequence. The maximum possible modulus is determined by the number of flip-flops. For example, a four-bit counter can have a modulus of up to 16 (2^4). Counters are generally classified as either synchronous or asynchronous. In synchronous counters, all flip-flops share a common clock and change state at the same time. In asynchronous counters, each flip-flop has a unique clock, and the flip-flop states change at different times. Counters are categorized in various ways. For example: Modulus counter – counts through a particular number of states. Decade counter – modulus ten counter (counts through ten states). Up/down counter – counts up and down, as directed by a control input, or by the use of separate "up" and "down" clocks. Ring counter – formed by a "circular" shift register. Johnson counter – a twisted ring counter. Gray-code counter – outputs a sequence of Gray codes. Shift register generator counter – based on a shift register with feedback. Counters are implemented in a variety of ways, including as dedicated MSI and LSI integrated circuits, as embedded counters within ASICs, as general-purpose counter and timer peripherals in microcontrollers, and as IP blocks in FPGAs. Asynchronous (ripple) counter An asynchronous (ripple) counter is a "chain" of toggle (T) flip-flops wherein the least-significant flip-flop (bit 0) is clocked by an external signal (the counter input clock), and all other flip-flops are clocked by the output of the nearest, less significant flip-flop (e.g., bit 0 clocks the bit 1 flip-flop, bit 1 clocks the bit 2 flip-flop, etc.). The first flip-flop is clocked by rising edges; all other flip-flops in the chain are clocked by falling clock edges. Each flip-flop introduces a delay from clock edge to output toggle, thus causing the counter bits to change at different times and producing a ripple effect as the input clock propagates through the chain. When implemented with discrete flip-flops, ripple counters are commonly implemented with JK flip-flops, with each flip-flop configured to toggle when clocked (i.e., J and K are both connected to logic high). In the simplest case, a one-bit counter consists of a single flip-flop. This counter will increment (by toggling its output) once per clock cycle and will count from zero to one before overflowing (starting over at zero). Each output state corresponds to two clock cycles; consequently, the flip-flop output frequency is exactly half the frequency of the input clock. If this output is then used as the clock signal for a second flip-flop, the pair of flip-flops will form a two-bit ripple counter with the following state sequence: Additional flip-flops may be added to the chain to form counters of any arbitrary word size, with the output frequency of each bit equal to exactly half the frequency of the nearest, less significant bit. Ripple counters exhibit unstable output states while the input clock propagates through the circuit. The duration of this instability (the output settling time) is proportional to the number of flip-flops. This makes ripple counters unsuitable for use in synchronous circuits that require the counter to have a fast output settling time. Also, it is often impractical to use ripple counter output bits as clocks for external circuits because the ripple effect causes timing skew between the bits. Ripple counters are commonly used as general-purpose counters and clock frequency dividers in applications where the instantaneous count and timing skew is unimportant. Synchronous counter In a synchronous counter, the clock inputs of the flip-flops are connected, and the common clock simultaneously triggers all flip-flops. Consequently, all of the flip-flops change state at the same time (in parallel). For example, the circuit shown to the right is an ascending (up-counting) four-bit synchronous counter implemented with JK flip-flops. Each bit of this counter is allowed to toggle when all of the less significant bits are at a logic high state. Upon clock rising edge, bit 1 toggles if bit 0 is logic high; bit 2 toggles if bits 0 and 1 are both high; bit 3 toggles if bits 2, 1, and 0 are all high. Decade counter A decade counter counts in decimal digits, rather than binary. A decade counter may have each (that is, it may count in binary-coded decimal, as the 7490 integrated circuit did) or other binary encodings. A decade counter is a binary counter designed to count to 1001 (decimal 9). An ordinary four-stage counter can be easily modified to a decade counter by adding a NAND gate as in the.... Discover the Ripple Digital Publishing popular books. Find the top 100 most popular Ripple Digital Publishing books.

Best Seller Ripple Digital Publishing Books of 2024

  • Red is... synopsis, comments

    Red is...

    Ivy Wong & Ripple Digital Publishing

    2013 Independent Publisher Book Awards – Best Children’s Illustrated eBook Gold Winner 2013 Moonbeam Children's Book Awards – NonFiction eBook Bronze Winner Featured in Communicati...

  • What the Fox Learnt synopsis, comments

    What the Fox Learnt

    Ripple Digital Publishing

    Four fox tales from Aesop's fables presented with modern illustrations: The Fox and the Crow, The Fox and the Goat, The Fox and the Grapes and The Fox and the Cat. These are short ...

  • The Steadfast Tin Soldier synopsis, comments

    The Steadfast Tin Soldier

    Hans Christian Andersen

    A fairy tale by Hans Christian Andersen presented with modern illustrations.  It’s a story about love at first sight.  When the onelegged tin soldier saw the paper baller...

  • The Ugly Duckling synopsis, comments

    The Ugly Duckling

    Hans Christian Andersen

    A classic story by Hans Christian Andersen in its original text presented with modern illustrations. The story of how a little bird endures the abuses and miseries as he was growin...

  • Lessons from the Lion, the Ox and their little friends synopsis, comments

    Lessons from the Lion, the Ox and their little friends

    Ripple Digital Publishing

    Four fables from Aesop's fables presented with modern illustrations: The Lion and the Mouse, The Four Oxen and the Lion, The Ant and the Grasshopper and The Frog and the Ox. These ...