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

  Lithium ion battery technology

The paper includes Lithium ion battery technology with its advantages and disadvantages. The paper discusses about the Lithium air battery in which detailed reactions of Lithium with air including nonaqueous as well as aqueous are given.

  Power transformers and tariffs

Construction of different types of power transformer, significant energy savings

  Paper on orthogonal frequency-division multiplexing

This document is shown a paper on Orthogonal frequency-division multiplexing with advantages, disadvantages and uses.

  Function of the hmi in a scada system

This assignment contains electronics engineering questions like State the commonly found components of a SCADA (Supervisory control and data acquisition) system. and decribe the function of the HMI in a SCADA system.

  Resultant waveform of the odd harmonic series

Prepare an Excel graph showing the individual components and summated resultant waveform of the odd harmonic series resulting in an approximate square wave.

  Explain scada system

Explain the function of the HMI in a SCADA system.

  Design a 2-digit 24 second shot-clock

Design a 2-digit 24 second "shot-clock" countdown timer with pushbutton controller.

  Model a discrete-time system

To understand di erent signal models To be able to model a discrete-time system and design simple signal processing algorithms.

  Draw a relay construction diagram

Draw a relay construction diagram and briefly explain the operation of a relay.

  Frequency division multiplexing

Write a short technical report on Frequency Division Multiplexing

  Impact of electron energy

Briefly discuss the impact of electron energy, electron current and target on the Bremsstrahlung generated.

  Traffic light controller

The schematic of the traffic light controller

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