Determine the size of the sfr section and the gpr section

Assignment Help Electrical Engineering
Reference no: EM13670601

1. The figure below shows the file registers of three different microcontrollers. For each of these file registers, determine the size of the SFR section and the GPR section.

1679_Determine the size of the SFR section.png

2. What is the content of WREG and each of the RAM locations after the execution of the following program?

ORG 00

MOVLW 2B

MOVWF

MOVWF 3

MOVWF 4

MOVWF 5

ADDWF, 0

ADDWF 3, 1

ADDWF 4, W

ADDWF 5, 1

MOVLW ' 9 '

ADDLW 10H

MOVWF 6

COMF 3

MOVFF 3, 2

ADDWF 1, F

END

3. Write the machine code along with the ROM addresses for following Assembly code.

LOCI EQU 20H

LOC2 EQU 10H

ORG 00H
MOVLW B110011101'
ADDLW D'25'
MOVWF LOCI
MOVFF LOCI, LOC2

HERE GOTO HERE

END

4. What is the status of the C, Z, DC, and OV flags after the execution of the following lines of code?

MOVLW FIN
ADDLW 1

5. Write an assembly program to add 10 8-bit numbers saved in the RAM location 1-10H. If the sum causes an overflow, the result should be saved in the memory location 11H otherwise it should be saved in location 12H.

6. Write and assembly code to subtract an 8-bit number 10 times from another 8-bit number.

7. Write an assembly program to compare between two 8-bit numbers A and B. If A is larger than B, it should be saved in memory location 10H. Otherwise, B should be saved in that location. Hint: Use the instructions CPFSLT or CPFSGT

Reference no: EM13670601

Questions Cloud

Write an article within the general field of microbiology : You are the science reporter for your local newspaper. Your editor asks you to write an article on a major topic within the general field of microbiology.
The middle of intergalactic space, : A space explorer moving through the middle of intergalactic space, very far from any planet or star, notices a large rock floating around the cabin of the spaceship. The explorer wishes to take it as a specimen from an alien planet. Should he p..
What do you think is his motive behind this idea : What do you think is his motive behind this idea and why does he want formalized policies to be instituted which in effect will lead to a form of internet regulation?
Example strategies for entering new businesses : how to list and how to explain and also pfoviding the example strategies for entering new businesses
Determine the size of the sfr section and the gpr section : Write an assembly program to add 10 8-bit numbers saved in the RAM location 1-10H. If the sum causes an overflow, the result should be saved in the memory location 11H otherwise it should be saved in location 12H - Write and assembly code to subtr..
Create your own psychographic/demographic segments : Create your own psychographic/demographic segments
Negative development for the u.s. economy : The Euro has had many problems during the last few years with the sovereign debt crisis in Greece, Italy, Spain, Portugal, and Ireland. Is this a positive or negative development for the U.S. economy? Why?
Increase product revenue over time : From the scenario, analyze the goals, product, price, and promotion for the new product launch in each stage of the product life cycle. Recommend two (2) marketing tactics and strategies that the marketing intern should consider in order to in..
Describe the cells you were able to see in the blood smear : Describe the cells you were able to see in the blood smear

Reviews

Write a Review

Electrical Engineering Questions & Answers

  How much power is delivered to the end of the combined fiber

Ten multimode glass fibers (n1 = 1.48, n2 = 1.45) are spliced together. Each fiber is 2 km long and has a loss rate 2-dB/km. Each splice adds 1 dB of loss. If the output power of the source is 7 dBm and radiates uniformly in a 60 degree half cone

  Determine what value of fa is perceived from the samples

If a sonusoidal waveform has a frequency fo=1,010Hz and is sampled with fs=100Hz, what value of fa is perceived from the samples

  Calculate the impedance of the combination in polar form

A 100µF capacitance is connected in parallel with the series combination of 10-mH inductance and a 1 ohm resistance. Calculate the impedance of the combination in polar form for angular frequencies of 500, and 1000 radians per second?

  Why flux in primary and secondary winding of the transformer

Why Flux in Primary and Secondary Winding of the Transformer is Same? With a Simple Explanation and Example.

  A student decides to have a little fun and designs an rtd

a student decides to have a little fun and designs an rtd with the pattern shown below. if the rtd is made of ni with

  Modify the above vhdl code so that in addition to 6 outputs

Modify the above VHDL code so that in addition to the 6 outputs listed above, the circuit outputs the largest and the smallest operands on the new outputs ‘largest' and ‘smallest'. Also output the sum, difference and product of the two operands A ..

  Using sr flip-flops and nand gates design a system

Using SR Flip-flops and NAND gates, design a system that outputs 1 if it takes an even number of clock cycles to recognize the pattern 11-0-101. Otherwise it outputs 0.

  How many atoms are there in the unit cell of si lattice

(b) Verify that there are 4.994×(10 to the power 22) atoms per cubic centimeter in the Si lattice at room temperature. (c) Determine the center to center distance between nearest neighbours in the Si lattice.

  Determine what condition must the modulated wave satisfy

In AM, spectral overlap is said to occur if the lower sidebandfor positive frequencies overlaps with its image for negativefrequencies. What condition must the modulated wave satisfy if weare to avoid spectral overlap

  1 add 12ten to 15ten in binary and then subtract 12ten from

1. add 12ten to 15ten in binary and then subtract 12ten from 15ten in binary.2. using 4-bit numbers to save space

  Find the linetoneutral voltage phasors line-to-line voltage

Each phase of the load consists of an impedance of 30 + j40 *. Find the linetoneutral voltage phasors, the line-to-line voltage phasors, the line-current phasors, the power, and the reactive power delivered to the load.

  Find the parameters of the z-parameter two-port

The following measurement were made on a two-port resistive circuit. With port 1 open, V2 =15V, V1 = 10 V, and I2 = 30 A. With port 1 short-circuited, V2 = 10 V, I2 =4 A, and I1 = -5 A. Find the parameters of the z-parameter two-port.

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