Create a data set consists of total data number elements

Assignment Help Electrical Engineering
Reference no: EM13206297

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: EM13206297

Questions Cloud

State what is the entropy change for the reaction : What is the entropy change for the reaction 2H(g) + O2(g)-------- 2H2O(l) at 25 degree and 300 atm
Explain the reaction of potassium and bromine : Add electron dots and charges as necessary to show the reaction of potassium and bromine to form an ionic compound.
Gross income after considering passive activity-rental losse : Dave Eichoff had adjusted gross income for 2010 of $122,000 before any passive losses or other rental activities. He owned a mountain cabin in Idaho, which he rented for 125 days and which was not used by him at all during the year.
State what type of intermolecular forces dominate the system : chemical potential that is 1.00 KJ mol lss than an ideal gas under the same conditions. What kind of intermolecular forces dominate the system? what is the fugacity of the gas?
Create a data set consists of total data number elements : 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.
What was the salary before the increase in pay : ployee's new salary is $20,370 after getting a 5% raise. What was the salary before the increase in pay? Last years salary was $
Compute the change in chemical potential of an ideal gas : Calculate the change in chemical potential of an ideal gas when its pressure is decreased isothermally at 30 degree
How many went on the trip : Members of the Ski Club contributed equally to obtain $1800 for a holiday trip. When 6 members found they could not go, their contributions were refunded and each remaining member then had to pay an additional $10 to remain at their goal of $1800...
Explain sterilize surgical tools require a tempereature : Autoclave that are used to sterilize surgical tools require a tempereature of 120 degree to kill bacteria. At what presure must they operate?

Reviews

Write a Review

Electrical Engineering Questions & Answers

  Electronics for recording

Transmit this data wirelessly to a base station for storage. How much bandwidth would you need.

  Define the gain of the antennas must be increased

The gain of the antennas must be increased when the TDMA system described in part (d) is used because the bit rate is higher than with FDMA and the noise power in the receiver is therefore higher

  Explain saturated and unsaturated synchronous reactance

Saturated and unsaturated synchronous reactance, The following readings are taken from the results of an open- and a short-circuit test on a 9375-kVA three-phase Y-connected

  Principles of the super-heterodyne receiver

Write a brief explanation of the principles of the super-heterodyne receiver.  It may help to use a simple block diagram to express the process.  Explain the purpose of the Intermediate Frequency amplifiers,

  Using the nth order term only of the transfer polynomial

Using the Nth order term only of the transfer polynomial, find the Nth order relationship for the Nth order products.

  Define in comparing the behaviour of an n-channel mosfet

In comparing the behaviour of an n-channel MOSFET with a p-channel device having identical geometry and threshold voltage, it is found that the n-channel FET has a greater drain current than that of the p-channel FET.

  Laplace transforms enable interpretation and manipulation

Laplace transforms enable interpretation and manipulation of different signals by viewing these signals as either time domain signals/pulse or else frequency domain representations

  Explain what is the frequency of the rotor currents

What is the frequency of the rotor currents? What is the angular velocity of the stator field with respect to the stator? With respect to the rotor?

  Explain what is the shape of the spectrum of the signal

What is the shape of the spectrum of the signal? What is the extent of the spectrum in the frequency domain? What is the unit that is applied to the magnitude of the spectrum?

  Explain spectrum analyzer

Spectrum Analyzer, A spectrum analyzer is connected to an unknown signal. The spectrum analyzer displays the power level of signals in dBm vertically and frequency horizontally. The spectrum of the unknown signal creates the following display:

  Define design bandpass filter of ''sallen and key'' topology

Design a bandpass filter of 'Sallen and Key' topology and having the following characteristics fo = 3.3 kHz, Q = 2.2

  Explain what is the resolution of each quantizer

Supply the quantisation levels (including zero) that are available. Do this for both the three and 4-bit ADC in table form. What is the resolution of each quantizer?

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