13.07.2015 Views

Digital Electronics: Principles, Devices and Applications

Digital Electronics: Principles, Devices and Applications

Digital Electronics: Principles, Devices and Applications

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Counters <strong>and</strong> Registers 415Table 11.1 Output logic states for different clock signal transitionsfor a four-bit binary ripple counter.Clock signal transition number Q 0 Q 1 Q 2 Q 3After first clock transition 1 0 0 0After second clock transition 0 1 0 0After third clock transition 1 1 0 0After fourth clock transition 0 0 1 0After fifth clock transition 1 0 1 0After sixth clock transition 0 1 1 0After seventh clock transition 1 1 1 0After eighth clock transition 0 0 0 1After ninth clock transition 1 0 0 1After tenth clock transition 0 1 0 1After eleventh clock transition 1 1 0 1After twelfth clock transition 0 0 1 1After thirteenth clock transition 1 0 1 1After fourteenth clock transition 0 1 1 1After fifteenth clock transition 1 1 1 1After sixteenth clock transition 0 0 0 0in Fig. 11.2(b), that the frequencies of the Q 0 , Q 1 , Q 2 <strong>and</strong> Q 3 waveforms are f/2,f/4, f/8 <strong>and</strong> f/16respectively. Here, f is the frequency of the clock input. This implies that a counter of this type can beused as a divide-by-2 N circuit, where N is the number of flip-flops in the counter chain. In fact, such acounter provides frequency-divided outputs of f/2 N , f/2 N −1 , f/2 N −2 , f/2 N −3 , , f/2 at the outputsof the N th, (N − 1)th, (N − 2)th, (N − 3)th, , first flip-flops. In the case of a four-bit counter of thetype shown in Fig. 11.2(a), outputs are available at f/2 from the Q 0 output, at f/4 from the Q 1 output,at f/8 from the Q 2 output <strong>and</strong> at f/16 from the Q 3 output. It may be noted that frequency division isone of the major applications of counters.Example 11.1A four-bit binary ripple counter of the type shown in Fig. 11.2(a) is initially in the 0000 state beforethe clock input is applied to the counter. The clock pulses are applied to the counter at some timeinstant t 1 <strong>and</strong> then again removed some time later at another time instant t 2 . The counter is observedto read 0011. How many negative-going clock transitions have occurred during the time the clock wasactive at the counter input?SolutionIt is not possible to determine the number of clock edges – it could have been 3, 19, 35, 51, 67,83 – as there is no means of finding out whether the counter has recycled or not from thegiven data. Remember that this counter would come back to the 0000 state after every 16 clockpulses.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!