a) Develop an assembly language program for 89c51 to do following (Marks 10) 1) Store any...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
a) Develop an assembly language program for 89c51 to do following (Marks 10) 1) Store any 8 values of one byte each anywhere in Scratch Pad area of RAM. You are bound to use loop to store values. 2) Find Mean of these 8 values (use shift operator for division) and send it to port P2 (formula for to find mean is given below) 3) Find the lowest number among the numbers saved in part (1), take its 2's complement and send it to P3 Enrollment Number: Formula for mean Li=1 Xi = n Where X is values, and n is total number of values Page 3 of 4 b) Develop a C language program for 89c51 to generate a square wave which has a frequency of 400Hz and 20% duty cycle on Pin1 of Port 1. You have to use timer 1 of 8051 to achieve this task. Assume that XTAL=11.0592 MHz is used. You have to provide the calculations you did to set values of registers related to timer. (Marks 5) a) Develop an assembly language program for 89c51 to do following (Marks 10) 1) Store any 8 values of one byte each anywhere in Scratch Pad area of RAM. You are bound to use loop to store values. 2) Find Mean of these 8 values (use shift operator for division) and send it to port P2 (formula for to find mean is given below) 3) Find the lowest number among the numbers saved in part (1), take its 2's complement and send it to P3 Enrollment Number: Formula for mean Li=1 Xi = n Where X is values, and n is total number of values Page 3 of 4 b) Develop a C language program for 89c51 to generate a square wave which has a frequency of 400Hz and 20% duty cycle on Pin1 of Port 1. You have to use timer 1 of 8051 to achieve this task. Assume that XTAL=11.0592 MHz is used. You have to provide the calculations you did to set values of registers related to timer. (Marks 5)
Expert Answer:
Related Book For
Cambridge International AS & A Level Computer Science
ISBN: 9781510457591
1st Edition
Authors: David Watson, Helen Williams
Posted Date:
Students also viewed these programming questions
-
can someone solve this Modern workstations typically have memory systems that incorporate two or three levels of caching. Explain why they are designed like this. [4 marks] In order to investigate...
-
) Consider integer division of one two's-complement binary number by another. Programming languages may vary in the result when one argument is negative. What differing conventions might they be...
-
1. Suppose that a stoichiometric mixture of isooctane (C8H18) and air is burned in an engine and then the fuel is changed to 10% (by liquid volume) ethanol and 90% by liquid volume isooctane. If the...
-
You can produce a spectrum by placing a tray of water in bright sunlight. Lean a pocket mirror against the inside edge of the tray and adjust it until a spectrum appears on the wall or ceiling. Aha!...
-
Consider the complex function x(t) = (1 + jt) 2 for < t < . (a) Find the real and the imaginary parts of x(t) and carefully plot them with MATLAB. Try to make MATLAB plot x(t) directly, what do you...
-
When are the four forces in flight in equilibrium?
-
Optimal Capital Structure is there an easily identifiable debt-equity ratio that will maximize the value of a firm? Why or why not?
-
Your grandfather has an annuity that is worth $ 9 9 3 8 4 today. It will give him monthly payments for 2 4 years. If the rate is 4 . 4 5 % , what will be his monthly payment? Show work and formula
-
"Part 1: The Performance Lawn Equipment database contains data needed to develop a pro forma income statement. Dealers selling PLE products all receive 18% of sales revenue for their part of doing...
-
1. Define 'Systems' approach in communication skills. 2. What are all the different types of non-verbal communication forms available? 3. List down the key factors to be considered in gestures...
-
(40) (14) (N) (v) (vi) (7) (1) The construction work and progress bilings would be as follows: Year 1 Year 4 10% 30% Year 2 25% It may be assumed that progress bills would be raised at year end and...
-
Create a marketing plan for Kuwait Flour Mills & Bakeries Company: Define its competitive advantage (a set of unique features of a company and its products that are perceived by the target market as...
-
1. Consider a particle of charge q is moving in an electromagnetic field. Write down the equation of motion in terms of the scalar and vector potentials. Show that velocity dependent potential in...
-
What is the maximum weight of foreign equities in any portfolio on the efficient frontier? (5 points) What are the asset class weights in an efficient portfolio with an expected return of 8.6...
-
Toor Industries Limited (TIL) is engaged in the production and sale of product Y, which is used in hi-tech industries. The following are the extracts from TIL's latest accounts: Sales Cost of sales...
-
Two 100 K and 400 K resistors are connected in parallel and in turn are connected in series to a 40 K resistor. The whole system is connected to an ideal 12 V battery. The electric current coming out...
-
Below is a sample of the data in the file NFLAttendance which contains the 32 teams in the National Football League, their conference affiliation, their division, and their average home attendance....
-
a) A company is developing a new games console. The game will be stored on a ROM chip once the program to run the new game has been fully tested and developed. i) Give two advantages of putting the...
-
A school stores a large amount of data. This includes student attendance, qualification, and contact details. The schools software uses a file-based approach to store this data. a) The school is...
-
In this question, you are shown pseudocode in place of a real high-level language. A compiler uses a keyword table and a symbol table. Part of the keyword table is shown below. Tokens for keywords...
-
Consider a stochastic process such that the underlying security \(S\) follows the model: \[d S_{t}=\mu S_{t} d t+\sigma_{t} S_{t} d Z_{t}\] where \(Z\) is a standard Brownian motion. Suppose the...
-
Calculate the solution to the following SDE: \[d X_{t}=\alpha\left(m-X_{t} ight) d t+\sigma d B_{t}\] with \(X_{0}=x\). The process satisfying this equation is called the meanreverting...
-
If \(X_{t} \sim N\left(0, \sigma^{2} t ight)\) and \(Y_{t}=e^{X_{t}}\), calculate the pdf of \(Y_{t}\). Calculate \(\mathbf{E}\left[Y_{t} ight]\) and \(V\left(Y_{t} ight)\). Calculate the transition...
Study smarter with the SolutionInn App