Академический Документы
Профессиональный Документы
Культура Документы
TITLE:
TWO DIGIT ADDER WITH KEYPAD INPUT AND SEVEN SEGMENT DISPLAY.
CLASS:
S.E. ELECTRONICS (SECTION B)
BATCH:
2006-2007
AKNOWLEDGEMENT
The group members of the project are very thankful to the lab staff of LDST Lab, Microprocessors Lab, Electronic Devices and Circuits Lab and especially Miss Madiha Shabbir , Incharge of Amplifiers and Oscillators Lab in the Electronics Department for their immense cooperation without whom we were unable to complete and implement this project .
We would also like to thank Ms. Maria Waqas who support and help us whenever we need it.
Group Members Faizan Ahmed Muhammad Qasim Muhammad Zubair Umair Arif
COMPONENT LIST:
Push Buttons
Resistors (4.7k) 10 line to 4 line Priority Encoder (74147) Octal D-type Flip-Flop (74LS273)
HEX inverter (74LS04) Quad 2-Input AND Gate (74F08) Quad 2-Input OR Gate (74LS32)
IC PIN CONFIGURATIONS:
SCHEMATIC:
WORKING:
Encoding:
Buttons from 1 to 9 are connected to the encoder IC (74147). Whenever a button is pressed, a 0 is passed to the encoder pin and the encoder produces an equivalent BCD code.
Clock Pulse:
The output of the encoder is first inverted and then OR so that whenever a button is pressed we get a clock pulse used for controlling the input of the register ICs.
IC used for the registering purpose is 74LS273 (Octal D-type Flip-Flop), as the input of this IC are not active low, the inverted output of the encoder is connected to the first four Flip Flops of the OCTAL D-Type Flip Flop IC. The output of first four registers is connected to the input of the other four registers, in this way the BCD codes gets shifted from the first four to the other four Flip Flops when given a clock pulse.
Zero Logic:
When no button is pressed, the register receives no input or we can say a BCD code 0000 is appearing at the input, if we now give a clock pulse to the register, it will save this code. A button is use to for this purpose, when this button is pressed it generates a high low pulse signal which is first ORed with the original clock pulse and then given the register IC.
4-bit Binary Full Adder (74C83) is used for addition. This is BCD addition so we need to do a check and do BCD correction i.e. if the output is greater than 9, a 6 is to be added to it to get the correct BCD code/sum. Another same adder IC is used for this purpose with some extra circuitry to identify whether or not the output is greater than 9.
Display:
Output from the adder circuitry (2 digits) is displayed on 7-segments. BCD to 7segment decoders used are 7447. The final carry out from the adder is connected directly to a 3rd 7-segment used to show only a 0 or a 1 as our final output may consist of 3 digits (if the sum is greater than 99).