Unformatted text preview:

PROJECTA. Write a program to receive an 8-bit input value from port A and display the input value on port B. B. Write a program such that when bit 0 of port C is cleared, all LEDs connected to Port A & B will start turning on one at a time beginning with RA 0. Note that the speed of lights togging can be about 50usec to 1 sec. Show how you calculate the delay. C. In this part you are about to design a simple calculator. In your design you must receive any two numbers from port A & port B (e.g., Num A & Num B) respectively and perform the following algebraic operation as stated in the table below:Rc1Rc0Operation0 0 ADD0 1 SUBTRACT1 0 DIVIDE1 1 MUTIPLYThe description of inputs and outputs are shown below: REG NAME BIT SIZE VALUE HOLDINGNEG REG 1 Set when results I negative. NODIV REG 1 Set if the result has a remainder. OVER FLOW REG1 If the result is larger than 16 bitsRESULT REG 16 Contains the final resultNUM A 8 Contains the 8-bit inputNUM B 8 Contains the 8-bit inputOPER REG 1 Determines the type of the operationHere is the schematic of your calculator with all its inputs and outputs. Example of operation:Input NUM A = 20H NUM B = 3H RC [0-1] = 000 (indicating ADD operation)Output NEG REG = 0 NODIVFLAG REG = 0 OVERFLOW REG = 0 NUMBER A REG = 20H NUMBER B REG = 3H OPER REG = 000 RESULT REGH = 23 RESULT REGL =


View Full Document

SSU ES 310 - ES 310 PROJECT

Download ES 310 PROJECT
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view ES 310 PROJECT and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view ES 310 PROJECT 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?