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

  Write the analytical expression for the waveforms

What would be the initial value of v c (t) when switch is closed and determine the time constants in both cases (switch is open, switch is closed).

  Explain the operation of sequential logic devices

Explain the operation of sequential logic devices and evaluate the output waveform in relation to the clock for QA, QB and QC in the subsequent circuit and show the binary sequence represented by these waveforms

  Power also noise calculations using decibel conversions

A radio receiver has a noise power N = kTB watts, with T = 100 K and B = 1.0 MHz. The value of k is 1.38 x 10^-23 J/K. What is the noise power in dBW?

  Calculate the current in the output of the source

Calculate the current in the output of the source before and after the installation of the new device and The temperature sensor output is a voltage which is equal to the temperature sensed by the sensor. Design an electric circuit which can get th..

  Explain a terrestrial radio link transmits a cdma signal

A terrestrial radio link transmits a CDMA signal from a base station using a spreading code with a chip rate of 1.0 Mchips per seconds. The message data rate of the signal is 10 kbps.

  Explain watts in cassette players

Watts in Cassette Players, A walker's cassette tape player uses 4 AA batteries in series to provide 6V to the player circuit. The four alkaline battery cells store a total of 200 watts-second of energy.

  Solar energy for farms in middle east

Determine the energy uses on farms in middle east and determine whether or not it is better to use a stand alone system or a grid connected system for the application on farms.

  Explain memory storage and bit density

Memory storage and bit density, A hard disk contains four Platters. Each side of the platter is coated with a magnetic oxide, allowing data to be stored on it. The platters are 3.5 inches in diameter.

  Explain what bit pattern

What bit pattern (after you remove the beginning and ending flags and any stuffed bits) will the receiver pass on for higher level processing?

  Explain the signal transmitted by a base station

The signal transmitted by a Base Station has a power of 1 mW at a distance of 1 m from the transmitter. Measurements have shown that the propagation exponent for the path loss is n=3 up to a distance of 1 km and n=4 beyond that.

  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:

  Explain tuning methods for pid controllers

Tuning methods for PID controllers, Investigating tuning methods for PID controllers of 2nd order and 3rd order control systems. Eg. Zieglar Nichols, etc

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