Showing posts with label Digital. Show all posts
Showing posts with label Digital. Show all posts

Wednesday, November 13, 2013

Zero 2 Nine counter

No comments:
This is a sequential circuit design, Mod10 means it will count from 0-9. This would be probably your first long circuit, but don’t worry because you have a breadboard arrangement ;)
555 timer is in astable mode and it will produce a clock pulse, which is controlled by 100k potentiometer.
This clock pulse is input to 74LS90 which is a decade 0-9 ripple counter. Kindly use the 74LS90 if some one tell you that you can alternatively use 74LS93.. so let me tell you though they have same pin configuration and work same but the thing is 74LS93 is 0-15 ripple counter, so you will face some garbage outputs after counting up 0-9 which you don’t want. I tried my best to use 74LS93 and use reset pins to make it Mod 10
well, 74LS90 is a BCD counter but as we are showing a display on 7 segment so we need a driver IC
74LS90 is cascaded to 74LS47 which is a BCD to 7-segment display driver
and at last the seven outputs of 74LS47 are connected to 7 segment display.
Parts Required:
  1. 100k(potentiometer), 47k & 1k
  2. 0.1mF & 2.2mF
  3. 555 Timer
  4. 74LS90
  5. 74LS47
  6. 7 Segment Display Common Anode
  7. 9V battery with clip
Circuit Diagram:
Bread board Arrangement:
                
Pin Confiiguration:
  

Thursday, October 10, 2013

Digital Stopwatch 0-60sec

2 comments:
Introduction
      By using the same circuit of the Digital Stopwatch 0-99sec we can add an AND gateand transform the 0 – 99sec stopwatch to a 0 – 60sec stopwatch.
                                                                We must find a way to control the RESET function of the BCD counter, which is responsible for the counting of the seconds. As we studied abovethe circuit resets when we have 99 to 100, that is 1001 1001 à 0001 0000 0000. To make a transformation successfully we must force the pulse from 59 to 60 0011 1001 à 0100 0000 on the output of the BCD counter.
     By placing the AND gate, with its inputs on the Qand Qof the BCD counter of the decades, we make sure that when the gate closes, the RST input of the BCD counter will be set to logical “1”, which on its turn, will force the circuit to start over. The transformed circuit appears in picture 2.



  Electronics Lab ,Created By Muhammad Irfan  Electronics Lab ,Created By Muhammad Irfan  Electronics Lab ,Created By Muhammad Irfan

Digital Stopwatch 0-99sec

No comments:
Introduction
            In the present articlewe will describe the function of a digital stopwatch, 0 – 99 secThe function of the stopwatchrelies in the use of 4 integrated circuits, which in this case belong to National Semiconductor (http://www.national.com). It is obvious that other integrated circuits can be used to achieve the same result, however in this case we have used the following parts:

Α. 1 x CD4060BM (14 stage ripple carry binary counter)
B.
 1 x CD4040BM (14 stage ripple carry binary counter)
C.
 1 x MC14518B (BCD counter)
D.
 2 x MC14511B (BCD to seven segment driver)
E.
 2 x 7 segment LED displays
The circuit that has been used is shown in picture 1. Through the experimental part we will explain each of the parts functionbut in order to have a notion of the basic idea, let just say, that this circuit besides the 5V power supply, is fed with a pulse which comes from a crystal. The crystal’s pulse is devided properly in order to obtain the 1 Hz pulse which we need in order for the circuit to work properly, and display the seconds on the 7 segment displays, through a procedure which we will explain through the experimental part.








Description
            We will begin the description of the digital circuit aboveFor our convenience we will devide the circuit to 2 partsthe generator, which produces the pulse of the desired frequency, and the part that does the actual counting.
 
Generator: The generator of the circuit comprises of the integrated circuits CD4040CM and CD4060CM. We use a crystal which oscillates at a frequency of 4,194,304MHz. It is obvious that this frequency is completely useless, as it is too big to be used as it is to our circuit. What we should is devide this frequency, in a way that in its final form, the pulse will have a frequency of 1Hz, which is the desirable frequency. Initially we use the integrated CD4060, which devides the imported frequency in its input, by forces of 2. As we can see on the integrated circuit the outputs are marked as Q4, Q5,… QnBy importing a pulse in the CLK input of the 4060, with a frequency f Hzwe take out of output Qn, a signal which has a frequency equal to f/2n,. So, by exporting the signal out of Q14, knowing that the imported
 signal has a frequency of 4,194,304Hz, we take a signal, which has a frequency of 256Hz.
   By importing this signalto 4040 and by exporting the signal through Q8 we have finally taken an inverted signal, at the frequency of 1Hz. The fact that the signal is inverted, firstly doesn’t affect the proper function of our circuit and secondly is due to the inversion of the CLK input as we can see. This inversion just causesthe following circuit to be triggered with a logical “0”. By putting a LED on the same output, we have a visual of the counting, as in each positive pulse the diode polarizes positively, and a current passes through it.

 
Counter: The signal of 1Hz, which we have taken from the generator, is imported to a BCD counter MC14518. This integrated circuit adds a logical “1” at each pulse, on its output.του. .The MC14518 is virtually divided into two segment. One counts the units of the secondswhile theother the decadesAs we can see in picture 1, the generators pulse is imported to the part which counts the units. This is very logicalas we want in each secont the number of the display to be raised by 1. On the other hand, we want the first display to raise by 1, every 10 seconds. This is whywe ground the CLK inputand we use the signal of Q3 to the CKE input.
 By using this means, we make sure that the first display will be triggered, only when we have a decreasing signal on Q3; that is, only when the signal drops from logical “1” to logical “0”. As we can see, the first display increments every 10 seconds, which means that after 9 on the second display (1001 on the output of the BCD counter) the first display must be set to zero, while the first must be set to +1. That is that from 1001 à 0000, and we have a descending pulse, as the last digit descends from logical “1” to logical “0” and triggers the BCD counter of the decades. When the decades display becomes 9 then the circuit goes to the next state, which is zero, and the counting begins once more.
         
 The integrated circuits MC14511 are BCD to 7 segment drivers. As its name clearly state, their sole purpose is to translate the BCD information of MC14518, to a code understandable by the 7 segment displays. The inputs 
 (Lamp TestBlanking) are used to test the LEDs of the display and pulse modulate the brightness of the display. In this case we these inputs to logical “0”, as we don’t need them. The LE input (Latch Enable) is used to keep the number of the displays while the pulse still runs. It is a HOLD function similar to the one of the modern stopwatches.
            In addition, at any given moment we can restart the counting, by pressing the reset switch. By this means we set the RST input of the MC14518 to logical “1”, which resets the counting to 0000.