









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










The word ‘synchronous’ literally means in phase, in time, or at the same rate. In digital logic, this term is applied most frequently to clock- dependent operation of operation of digital circuits. This characteristic is obvious, particularly regarding flip-flops, or where ganged processing of inputs occurs at a specified transition or level of the clock signal. Synchronous operation is likewise needed in the transfer of data between two flip-flops. On the other hand, ‘asynchronous’ describes operation that is not clock dependent. The terms synchronous and asynchronous are also applied to counters with the same definition. Asynchronous counters usually use the data from its preceding section as its unique clock or gate signal rather than use a common one. This setup provides a ripple through or asynchronous operation. (fig 1) To minimize propagation delay in high-speed circuits, synchronous change of the output is necessary. This is accomplished by clocking the flip-flops at the same instant/ this is called synchronous counting. A common clock or gate signal is employed for synchronous counters but not for asynchronous types. (fig 2 ) (fig 1) (fig 2) The ring counter is not really a true counter but a ring shift register. Typically, it has a specified number of bits with only one high data bit that shifts from one bit position to another and then back again. It is because of this loop output pattern that this type is called a ring counter. The output waveform is illustrated below for a 4 - bit ring counter.
This configuration looks like a circulating register. However, there is one major difference. The reset circuit was added to allow the ring counter to start by itself once the power is applied. This ring counter is not intended to be controlled externally through continuous resetting and reloading of data because it has only one purpose – generate the circulating but pattern. The reset circuit is connected to the clear inputs (CLR 2 - 0 ) of the best three flip-flops and to the preset input of the P 3 ). The reset circuit’s voltage at power on its initially low and goes high after a certain period. It is assumed in this configuration that at power on, the preset input of flip-flop 3 is a 0. This condition sets flip-flop 3’s output (Q3) to a ‘ 1 ’ – the only high bit that will be moved from one bit position to the other. Another shift register counter that provides an identifiable pattern is the Johnson counter. It is similar in structure to the ring counter except that the complement of the final output of the last flip-flop is fed back to the first. It is for the configuration that this counter is also known as twisted-ring counter. The main advantage of the Johnson counter over the ring counter is the fewer flip-flops required to provide a given number of counts or modulus. A 4 - flip-flop Johnson counter generates eight unique output patterns while a 4-flip-flop ring counter can produce only four.
The DATA input is used for external connections to allow divide by 10, 9, 8, 7, 6, 5, 4, 3, and 2 operation. The connections are tabulated below. Note that an odd divisor requires that two Q’ outputs be ANDed and the output connected to the DATA input. OPERATION CONNECTED DATA INPUT TO Divide by 10 Q5’ Divide by 8 Q4’ Divide by 6 Q3’ Divide by 4 Q2’ Divide by 2 Q1’ Divide by 9 Q 4 ’ AND Q5’ (use 1/4 74C08) Divide by 7 Q 3 ’ AND Q 4 ’ (use 1/4 74C08) Divide by 5 Q 2 ’ AND Q 3 ’ (use 1/4 74C08) Divide by 3 Q 1 ’ AND Q 2 ’ (use 1/4 74C08) The main characteristic that defined this counter is the ‘rippling’ effect of the cascaded flip-flops. Cascaded means that the Q output of one flip-flop is used as a clock of the next. If three flip-flops are cascaded, there will be 8 different output states. The number of output states is called modulo number or simply modulo. A counter with 8 different output states is also referred to as a modulo 8 or MOD-8 counter.
To understand the effect of propagation delay, an exaggerated representation of the tPHL and tPLH are illustrated below. If propagation delay for each flip-flop contributes for 20 ns, the overall effect for Q 2 is a delay of about 60 ns. The effect of the delay with respect to the original clock signal is marked by the shaded portion of the timing diagram. In real-world devices, propagation delays are usually not equal for the rising (tPLH) and falling (tPHL) edges of a pulse. However, for the sake of simplifying the explanation, the example shows equal values for both propagation delays. Using basically the same circuit, one can generate down counting by using the Q’ inputs.
Fig 3. 2 Fig 3. At this stage in learning digital electronics, ne should be aware that in practical applications, it is rare to find situations where the designer is confronted with a need to design a divide-by-n counter using discrete flip- flops and gates. It is more common and cost effective to use an integrated divide-by-n IC counter. The 7493A is one of the more common 4 - bit asynchronous IC binary counter available. Internally, it is composed if four master-slave flip-flops and internal gating to provide the divide-by-eight function.
The 7490A is another popular ripple counter. It is a close relative of the 7493. The main difference is that this IC is intended as a decade counter. In other words, this IC is used primarily to provide 10 counts, 0 to 9. The main intent main is to spare the designer the burden of gating the 7493 or similar counter just to gets a 10 - setp counter. Ten-step counters are generally used in conjunction with binary-to-seven-segment decoders for driving seven-segment displays. Internally, the IC is composed of four JK flip-flops with the appropriate gates to provide the 4 - bit count of 00002 to 10012 or 0 to 9 in decimal. The internal circuit is a lot more complex than the 7493 ’s and additional inputs are provided or more options. The pin configuration and truth tables are shown.
Presentable counters are practically identical to flip-flops whose preset inputs are accessible individually and often controlled by a preset enable input. One reason for the preset enable pin is to give the user the option of disregarding the preset inputs when not needed. Otherwise, each preset bit should be set to the appropriate logic level, increasing the required connections instead of just one control pin. One of the most common means of implementing the preset input internally is using logic gates. In the subsection on asynchronous counters, a down counter was constructed simply by using Q’ outputs rather than the Qs. To implement an up/down counter, the most common technique is to use steering logic to control the count, one for counting and another for counting down, and a control circuit to determine which steering logic is activated.
One typical synchronous 4 - bit decade counter is the 74152A. The main difference with tis counter IC compared to the other ICs introduced earlier is the synchronous preset and clear inputs as well as a ripple carry output that can be disabled. PIN NAMES PIN NAMES VCC - nominal 5V for TTL CLR - synchronous, active low CLK - positive edge triggered LOAD - preset enable, active low QA • QD - Q outputs DATA IN (^) A-D - preset inputs ENABLE P/T - carry output control CO - ripple carry output The IC has a carry look-ahead circuitry that allows cascading counters for n-bit synchronous applications without extra gates. This provides a ripple carry output controlled by two count-enable inputs P and T. Both these pins must be set high to allow counting. Input T is fed forward to enable the ripple carry output. A close relative of the 76162A is the 74161 A/ 163 A IC. The specifications are practically identical except for the count sequence. This IC is a binary counter. Instead of counting from 0 to 9 , its 4 - bit output counts from 0 to
The load input is asynchronous and active low. When the input to this pin goes low, the data input is automatically latched on to the Q outputs regardless of the status of the other pins. As illustrated in the preceding sections, one of the most common applications of counters aside from frequency division for driving numeric displays of various devices. The most common of which is the seven segment LED display. The basic display unit is composed of the counter, the BCD to 7 - segment decoder/driver and the 7 - segment display. The main requirement for a counter for this basic display unit is that its output must be capable of being decoded by the decoded/driver IC. Since the display is limited to 1 digit (0 to 9), the counter should at least be capable of generating or limited to this range of values.
Decade counter Synchronous 4 - Bit Decade Counter with Asynchronous Clear Synchronous 4 - Bit Decade Counter with Synchronous Clear Synchronous 4 - Bit Up/Down Decade Counter Synchronous 4 - Bit Up/Down Decade Counter with Mode Control Decade counter Dual 4 - Bit Binary Counter Synchronous Presettable BCD Counter Synchronous Presettable BCD Counter Presettable BCD Up/Down Counter Dual BCD Counters The LS90 and C90 are basically the same except for the family type and corresponding characteristics. The C90 has a wider voltage range like the CMOS 4XXX series; the LS90 is limited to the TTL range. These ICs are decade counters that can be configured to divide by 2, 5 or 10. They have a gated AND asynchronous master reset as well as a gated AND master set. This IC's Qo output (divide by 2) Is not internally connected, thus, the user should connect this to the CPT input for BCD decimal count. The LS160A and LS162A are identical except that the former has an asynchronous master reset input that is independent of the clock and other inputs. The latter has a synchronous master reset that is active only at the rising clock edge These ICs have parallel load inputs and equipped with enable input pins. The LS168 is a fully synchronous 4 - stage up/down counter with preset enable pin, carry look-ahead for easy cascading, and count up or down selector pin. It has a terminal count (TC) output pin which is normally high and goes low when the counter reaches 0 or 9 in the count down or up modes, respectively. The TC output is, however, not recommended as a clock signal as it is prone to decoding spikes. The LS190 is a synchronous up/down decade counter with asynchronous parallel load (PL). count enable (CE), up/down count mode (U/D), terminal count (TC), and ripple clock (RC) inputs. It is practically the same as the 191 except for the count limit of (0 to 9). The figure also shows how this IC can be used to form an n-stage counter using different control pins.
The LS290 is the 'comer power pin' version of the LS90. It is functionally the same as the 190 but with different pin configuration The LS390 is a dual decade counter. The internal flip flops are triggered by a high-to-low transition of their CP inputs. Each counter has clock pulse input pins CP0, CP1, and a master reset pin, MR. For the CMOS 4XXX counters, they are basically the same as the TTL versions. The 4160B/162B are presettable synchronous counters and functionally equivalent to the 74LS160/162 TTL counters. Refer to the TTL equivalents for details. The main difference is the power supply requirements and other characteristics inherent in the logic family. The 4510B is also a presettable synchronous BCD up/down counter Typical application for a presettable cascaded 8 - bit up/down counter shown below. This setup is normally employed for count up or down timers. The least significant digit (LSD) counts from a preset value once preset enable goes low. The most significant digit (MSD) does not change while Cin is high. When the count of the LSD reaches 0 or 9 in down or up mode, respectively, CO goes low for one complete cycle. This, in turn, allows the next counter to count up or down. The cycle then repeats. The 4518 is a dual BCD up-only counter that is composed of two independent internally synchronous 4 - bit counters. Each is equipped with a clock, enable, and reset pins. The clock and enable pins are interchangeable. The enable pin may be used as the clock input and vice versa. This is done so that the counter may respond to either positive or negative going transistion as required for cascading. This IC is relatively less expensive than two single BCD up/down counters. When the enable pin is high, the count signal is fed to the clock pin and responds to the positive-going transition of the signal. When the clock pin is high, the count signal is fed to the enable pin, the IC responds to the negative-going transition of the signal.