3-bit and 4-bit adder!!!
Author |
Message |
ne_wage
|
Posted: Mon Dec 15, 2008 1:18 am Post subject: 3-bit and 4-bit adder!!! |
|
|
I need help to make a code for a 3bit adder i dont know how to do it.
This is what we have to do.
Project Overview :
This project involves the design, documenting and building of a hardware circuit controlled by a software program. The program asks the user for two binary numbers (3 bits each) and then outputs these two binary numbers via the parallel port cable to the hardware circuit. The hardware circuit contains a binary adder circuit that adds the two 3 bit binary numbers specified by the user and outputs the result to light up four LEDs representing the binary answer.
Software Program
The software program will ask the user for two numbers between 0 and 7 to be added together. The sum will be output to the screen in the form of a graphical representation of a 7 segment display. The program will also transmit each number over the parallel port cable?s output port to the 3 bit binary adder circuit. Ensure your program has a proper header and is fully commented.
Hardware Circuit
The 3 bit binary adder consists of one half adder and two full adder circuits. See Appendix A for the logic gate circuits required for the half adder, full adder circuit and 7 segment display circuits.
Level 4 : - Instead of using four LEDs to represent the binary output, use a binary to hexadecimal decoder to drive a 7 segment display.
- The user presses a pushbutton connected to a parallel port input pin to indicate that the answer has been read from the 7 segment display.
Construction and Wiring Requirements
?
Draw and label a circuit schematic showing all of the components and wiring connections before you start wiring the circuit. The schematic drawing can be hand written or done using a software program such as Word or a schematic drawing application.
?
Ensure connecting wires are neatly trimmed and organized on the breadboard.
?
Ensure all components are mounted on the breadboard to avoid short circuits.
?
Label your wires with the parallel port pin numbers.
Programming Requirements
?
The program will request the user to input two numbers between 0 and 7 to be added together. Each number will be sent over the parallel port output pins as a 3 bit binary number to the 3 bit adder circuit.
?
The program will display a graphical representation of the sum as displayed by your 3 bit adder circuit. Depending on your hardware circuit, the sum will be displayed either as four LEDs or as a 7 segment display.[/color][/color]
This is what we have to do and can some one help me wit the programing i dont get it ive allready built a serial port and it works. It all has to be programed in turning |
|
|
|
|
|
Sponsor Sponsor
|
|
|
andrew.
|
Posted: Tue Dec 16, 2008 4:35 pm Post subject: RE:3-bit and 4-bit adder!!! |
|
|
Sorry, ne_wage, you have to at least start it yourself. We aren't going to do everything for you. Try writing down on paper in plain English how you're going to go about doing this. I'm sure you will have some idea or method on how to do it. |
|
|
|
|
|
|
|