1 you will create a data set consists of the total data

Assignment Help Electrical Engineering
Reference no: EM13381412

1) You will create a data set consists of the Total Data Number elements. For example, if your Total Data Number is 127, you will create a data set consists of 127 elements for your assignment.

Use the following 40 values (given as decimal numbers) to produce your data set for the assignment. Each value below makes an 8-bit number, or 1 element of the data set, which occupies 1 memory location in the program memory area. When in the memory, every number may represent a signed 8-bit number or an unsigned 8-bit number, as specified in the question. For the data set consists of 127 elements, as mentioned above, you need 3 sets of the 40 values and other first 7 values from the 40 values given below (i.e. 3x40 + 7 = 127).

67, 142, 88, 0, 0, 145, 92, 37, 184, 242, 0, 30, 72, 203, 0, 250, 227, 0, 30, 149, 245, 0, 129, 81,0, 88, 193, 0, 145, 221, 6, 142, 0, 8, 96, 0, 121,216, 15, 0

2) Put your data set in the program memories starting from address 0x180 (labeled as MYDATA). Your can simply put them in the program memories starting from address 0x180 using the appropriate data directives after your main program.

3) For your SID also get a value called Assignment Number. Use this value to determine which one of the following assignments you will need to do, where the assignment number is equal to the value given. If your Assignment Number is 4, then you need to do the assignment number 4.

4) Write an assembly source code for your assigned problem (or question) and use the MPLAB IDE to assemble the source code (ASM) file, and get its listing (LST) file and object code (HEX) file. Use PIC18F458 as your microcontroller. MPLAB IDE can be downloaded from the internet. It is also available in PCs in BL3-010. Your main program starts at address 0x030 in the program memory of PIC18. Put enough comments and use appropriate assembler directives to make your program easily understandable and self-explained. You MUST put your Name and SID number as part of comments in your assembly source code.

a) Your assembly source code (ASM file).
b) Listing (LST file).
c) Object code (HEX file).

d) Simulation result using MPLAB IDE. Your simulation with the data set should be able to produce an expected result which you can explain in the report. Include explanation on how the result is obtained in the report.

You may refer to "Example of report for Assignment" which you can download from EEEB373 website. Send the report within the deadline. Note that you must use data set created using steps 1 to 2 above for the simulation.

7) Explore yourself all of MPLAB IDE's capabilities in order to be able to copy and paste all required files for your report! Some of the capabilities are not taught during class.

Question 0

Write a program to find the biggest number (in term of value) from your data set called MYDATA, which is a set of unsigned single-byte numbers. Save the result in BIGGVAL at address 0x10 in the data memory.

Question 1

Write a program to count how many from your data set called MYDATA, which is a set of signed single-byte numbers, has positive value. Save the result in TOTPOSI at address 0x10 in the data memory.

Question 2

Write a program to count how many from your data set called MYDATA, which is a set of unsigned single-byte numbers, has zero value. Save the result in TOTZERO at address 0x10 in the data memory.

Question 3

Write a program to count how many from your data set called MYDATA, which is a set of signed single-byte numbers, has negative value. Save the result in TOTNEGA at address 0x10 in the data memory.

Question 4

Write a program to count how many from your data set called MYDATA, which is a set of unsigned single-byte numbers, has non-zero value. Save the result in TOTNZERO at address 0x10 in the data memory.

Question 5

Write a program to determine how many from your data set called MYDATA, which is a set of unsigned single-byte numbers, are odd numbers. Save the result in TOTODD at address 0x10 in the data memory.

Question 6

Write a program to count how many from your data set called MYDATA, which is a set of signed single-byte numbers, has positive value and are odd numbers. Save the result in POSODD at address 0x10 in the data memory.

Question 7

Write a program to determine how many from your data set called MYDATA, which is a set of unsigned single-byte numbers, are even numbers. Save the result in TOTEVEN at address 0x10 in the data memory.

Question 8

Write a program to count how many from your data set called MYDATA, which is a set of signed single-byte numbers, has positive value and are even numbers. Save the result in POSEVEN at address 0x10 in the data memory.

Question 9

Write a program to find how many data from your data set called MYDATA, which is a set of unsigned single-byte numbers, has value bigger than 100. Save the result in BIGT100 at address 0x10 in the data memory.

Reference no: EM13381412

Questions Cloud

1 at the bottom left side of the applet set n equal to 10 : 1. at the bottom left side of the applet set n equal to 10 and then check the animate box. now click on flip. record
The hotel oles competitive strategy is to use superior : the hotel oles competitive strategy is to use superior guest service to increase the length of stay and return rate of
Nbspthe last five months has seen inflation rising at a : nbspthe last five months has seen inflation rising at a faster rate. five months ago inflation was rising at an annual
Option 1 note the following is a regression equation : option 1 note the following is a regression equation. standard errors are in parentheses for the demand for widgets.qd
1 you will create a data set consists of the total data : 1 you will create a data set consists of the total data number elements. for example if your total data number is 127
1 what is the organizational culture of southwest airlines : 1. what is the organizational culture of southwest airlines like? how does it affect the way the employees behave?2.
Project on lfc using tuned fopid i have considered a two : project on lfc using tuned fopid. i have considered a two area model. need help regarding implementation of ga matlab
The basis of a design project which will be completed you : the basis of a design project which will be completed. you should therefore think carefully about which of the
The strong dualism position of descartes suggests that the : the strong dualism position of descartes suggests that the mind is fully separate from the brain and that therefore

Reviews

Write a Review

Electrical Engineering Questions & Answers

  Find a complete expression for the velocity of sound in air

A 2-kHz sound wave traveling in the x-direction in air was observed to have a differential pressure p(x,t) = 10 N/m^2 at x = 0 and t = 50 μs. If the reference phase of p(x,t) is 36 degrees, find a complete expression for p(x,t). The velocity of so..

  Presuming that ideal filters are available

Assuming that ideal filters are available, what is the lowest frequency at which the signal can be sampled and subsequently recovered in its analog form without distortion using a low pass filter?

  Determine the probability mass function-pmf

encounter a sequence of birds while walking in the park. The birds can either be blue (B) or red (R). We let X be the random variable corresponding to the number of birds we encounter until seeing the first blue one.

  Determine max efficiency of the transformer at rated voltage

A single phase transformer rated 1.2kV/120V, 7.2kVA hasprimary-referred parameters Req= r1+ a r2= 1Ω andXeq = x1+ a2 x2 =4Ω when neglecting exciting current. At rated voltage itscore loss may be assumed to be 40W for all the load curent.

  A number of students are answering a questionnaire form

a number of students are answering a questionnaire form that has 55 questions. answer to each question is given as an

  Find the minimum product-of-sums expression for the function

Construct a truth table for the following specifications: if any two consecutive switches out of four on-off switches in a row are on, then a light is on; otherwise, the light is off. Denote the switches in order as a, b, c, d,

  Design band pass filter consisting of an rc high pass filter

Design and sketch a band pass filter consisting of an RC high-pass filter with a cutoff frequency of 300 Hz and an RC low-pass filter with a cutoff frequency of 700 Hz. Carefully select the R and C of each filter so that one filter does not load t..

  How many of 16bits of a/d converter are effectively utilized

For the system used in this lab, suppose the voltage tobe measured in a certain experiment is always positive, and neverexceeds 2.5 V. How many of the 16 bits of the A/D converter are effectively utilized

  What is the frequency of the current in radians per second

A 40 kHz sinusoidal voltage has zero phase angle and a maximum amplitude of 2.5 mV. When this voltage is applied across theterminals of a capacitor the resulting steady-statecurrent has a maximum amplitude of 125.67μA

  Specify the functions realized by each function generator

a. Tablulate the truth table for an 8x4 ROM that implements these Boolean functions. b. Tabulate the PLA programming table for these functions. Minimuze the number of product terms. c. Implement this circuit using a PAL with 3 inputs, 4 outputs and 3..

  Estimate the capacitance for 2-percent output voltage ripple

A boost converter is to be employed as part of a power factor correction circuit. The input is 220 v rms 60 Hz single phase and the output is 400 V dc. It is to supply a dc load drawing 10 A.

  Determine how many turns must be in the secondary winding

A certain transformer has 250 turns in its primary winding. In order to double the voltage, how many turns must be in the secondary winding

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd