Ask Other Engineering Expert

LAB PROJECT

In the lab project, you will be applying the knowledge acquired in this course to design basic mathematical and signal processing operations. Your system must be able to provide different options, as discussed below, according to the state of Port 0.

 

Input (P0)

Operation

Result (External Memory)

Marks

1

00000000

Dot Product (A.B)

Store Result at 250H...

2

2

00000001

Convolution of same length vectors (A*B)

Store Result at 260H...

3

3

00000010

Convolution of variable length vectors (C*D)

Store Result at 270H...

4

4

00000011

l0, l1, l2, l∞ norm of vector A

Store Result at 280-283H

3

5

00000100

2D Convolution (E*F)

Store Result at 300H...

8

Note that for 2D Convolution, the resultant matrix should be of size 8 x 8. Use the concept of boundary extension, if required.

Inputs:

A = [a1 a2 a3 a4 a5]

B = [b1 b2 b3 b4 b5]

where A and B, both are positive vectors of fixed length 5.

Define two variables, VECTORA and VECTORB, in external RAMto store the input vectors A and B.

                   ORG 100H
VECTORA:    DB a1, a2, a3, a4, a5

                   ORG 110H
VECTORB:    DB b1, b2, b3, b4, b5

For, variable length vectors,

C = [lc c1 c2 . .]

D = [ld d1 d2 . .]

where C and D, both are positive vectors of length lc  and ld.

Define two more variables, VECTORC and VECTORD in external RAM. These vectors can have arbitrary length. The first element of each vector will be the length of that vector.

                   ORG 130H
VECTORC:    DB lc, a1, a2, a3, a4, a5

                   ORG 150H
VECTORD:    DB ld, b1, b2, b3, b4, b5

For 2D convolution,

2074_2-D Convoution Matrix.png

where E and F are positive matrices of size 8 x 8 and 3 x 3

Define two variables, MATRIXE and MATRIXF, in external RAMto store the input matrices.

                ORG 170H
MATRIXE:  DB e11, e12, e13, e14, e15, e16, e17, e18,e21, e22, e23, e24, e25, e26, e27, e28,e31, e32, e33, e34, e35, e36, e37, e38,e41, e42, e43, e44, e45, e46, e47, e48,e51, e52, e53, e54, e55, e56, e57, e58,e61, e62, e63, e64, e65, e66, e67, e68,e71, e72, e73, e74, e75, e76, e77, e78,e81, e82, e83, e84, e85, e86, e87, e88,

               ORG 220H
MATRIXF: DB f11, f12, f13, f21, f22, f23, f31, f32, f33

Example:

C = [5    2    4    6   1   5]

D = [3   1   2    2]

Conv(C, D) = [2     8   18    21   19   12  10]

Initialization:

                ORG 130H
MATRIXA:  DB 5, 2, 4, 6, 1, 5

                ORG 150H
MATRIXB:  DB 3, 1, 2, 2

Result after execution of code

At 270H: 2 8 18 21 19 12 10

You are required to complete the project in following steps.

1. Outline a scheme to do the project and develop an algorithm to accomplish this taskand show using flowchart.

2. Write the assembly language code in Mide-51 simulator.

3. Run the code and check the output

4. Finalize the code, verify all outputs.

5. Write a brief report on your project, defining your methodology to accomplish the task and your code.

6. Demonstrate the code (the date of project exam will be communicated later)

Other Engineering, Engineering

  • Category:- Other Engineering
  • Reference No.:- M91761067

Have any Question?


Related Questions in Other Engineering

Register design a cpu register is simply a row of

Register design A CPU register is simply a row of flip-flops (i.e. SR, JK, T, etc) put side by side in an array to make the size of register required. For example, an 8 bit register has 8 flip-flops side by side for stor ...

A detailed review of spatial modulation and simulation

A Detailed Review of Spatial Modulation and Simulation Learning Outcomes a. Learn how to model mobile communication channels d. Discern knowledge development and directions on the recent advances in 4G to the research pr ...

Mine safety amp environmental engineering assignment -part

Mine Safety & Environmental Engineering Assignment - Part 1 - Questions 1. Occupational health and safety is the primary factor that needs to be considered in the mining industry. Discuss this statement. 2. Define the fo ...

Projectflow processing of liquor in a mineral refining

Project Flow Processing of Liquor in a Mineral Refining Plant The aim of this project is to design a flow processing system of liquor (slurry) in a mineral (aluminum) refining plant. Aluminum is manufactured in two phase ...

Learning outcomes evaluate multiuser communication and

Learning Outcomes Evaluate multiuser communication and resource sharing techniques; Apply the techniques of, and report on, digital communication applications using Matlab and hardware devices. Assignment Description The ...

Operations engineering assignment -please select only one

Operations Engineering Assignment - Please select only one of the following case studies for your assignment: CASE A. Tesla Motors Tesla is an innovative manufacturer that designs, assemble and sells fully electric vehic ...

Select a risk problem from the list below and prepare a

Select a risk problem from the list below and prepare a risk management plan in accordance with AS/NZS ISO 31000:2009. Please ensure that: - Establish the context clearly, in accordance with the Standard; - Define your s ...

Engineering materials term paper assignment -conduct a

ENGINEERING MATERIALS TERM PAPER ASSIGNMENT - Conduct a thorough literature search and write a 15-20 page technical review paper on the evolution of the engineering materials used in the manufacturing of any one of the f ...

Task 1using the lab kit design a circuit for the processor

Task 1: Using the lab kit, design a circuit for the processor to control the output of a connected 7-segment LED display device. You will be provided with a standard common anode 7-segment display of the type FND-507 (or ...

Control theory - lab reportsfor experiments 1 to 4 you must

Control Theory - Lab Reports For experiments 1 to 4 you must undertake the following: a) At the start of each section (including the pre-lab activities) there are a number learning outcomes. That is, what students should ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As