Find the number of ones in file register location

Assignment Help Electrical Engineering
Reference no: EM13675007

Question 1:. Find the duration of the delay of each of the code segments below if the crystal frequency is 16 MHz.

(a)

 

(b)

 

COUNTER EQU 0x40

 

COUNTER1 EQU 0x40

 

COUNT EQU OxAD

 

COUNTER2 EQU 0x41

 

 

 

COUNT1 EQU OxAD

 

DELAY MOVLW COUNT

 

COUNT2 EQU Ox7E

 

MOVWF COUNTER

 

 

 

AGAIN NOP

 

DELAY MOVLW COUNT1

 

NOP

 

MOVWF COUNTER1

 

NOP

 

LOOP1 MOVLW COUNT2

 

DECF COUNTER, BNZ AGAIN

F

MOVWF COUNTER2 LOOP2 NOP

 

RETURN

 

NOP

 

 

 

NOP

 

 

 

DECF COUNTER2,

BNZ LOOP2

F

 

 

DECF COUNTER1,

BNZ LOOP1

F

 

 

RETURN

 

Question 2. What are the values of pons C and ID at the end of each of the following ro

(a)

 

(b)

 

ORG Ox10

 

ORG Ox10

 

CLRF TRISC

 

MOVLW 0x14

 

CLRF TRISD

 

MULLW 0x19

 

MOVLW Ox80

 

MULLW OxIE

 

MOVWF PORTC MOVLW OxAS MOVWF PORTD

 

MOVFF PRODL, MOVFF PRODH, END

PORTC
PORTD

REPEAT RACE PORTC,

F

 

 

BTG PORTD, 5

 

 

 

BTFSS PORTC,

3

 

 

BRA REPEAT

 

 

 

HERE    GOTO HERE

 

 

 

END

 

 

 

Question 3. Three LEDs are connected to pins 5 to 7 of port C. Write an Assembly program that will add 10 values that it receives through port B one value at a time. Once the sum of the values reaches or exceeds 0'100', one LED should turn on. Once the sum reaches or exceeds D'150', two LEDs should turn on. Finally, when the sum reaches or exceeds D'200', all LEDs should turn on. Verify the operation of your programs using MPLAB simulator. Include printout of the list file and file registers after execution.

Question 4. Write an Assembly program to find the number of ones in file register location 10H. Verify the operation of your programs using MPLAB simulator. Include printout of the list file and file registers after execution.

Question 5. Write a NOS Assembly program that will read 30 values through port B one value at a time. The first 10 values should be stored in addresses 50H to 59H, the second 10 values in addresses 60H to 69H, and the last 10 values in addresses 70H to 79H. Verify the operation of your programs using MPLAB simulator. Include printout of the list file and file registers after execution.

Reference no: EM13675007

Questions Cloud

Find what percentage of the molecules has escaped : Air in a cylinder is compressed to one-tenth of its original volume without change in temperature. Find what percentage of the molecules has escaped
What is the net charge of the bar : What is the total charge of all the electrons in 18 kg bar of molybdenum? (Molybdenum has 42 electrons per atom and an atomic mass of 96 u.) What is the net charge of the bar? What is the net charge of the bar if it managed to obtain rid of 7% of the..
Find how close will the helium nucleus come to gold nucleus : In 1911, Ernest Rutherford discovered the nucleus of the atom by observing the scattering of helium nuclei from gold nuclei. find how close will the helium nucleus come to the gold nucleus before it stops and turns around
Decide the rotational inertia of the solid cylinder : Sam wraps a string around the outside of a 0.040 m-radius 0.20 kg solid cylinder and utilizes it like a yo-yo. When released, the cylinder accelerates downwards at 2/3 g. Decide the rotational inertia of the solid cylinder.
Find the number of ones in file register location : Write an Assembly program to find the number of ones in file register location 10H and write a NOS Assembly program that will read 30 values through port B one value at a time.
Obtain how much time is the projectile in the air : A projectile is shot on level ground with a horizontal velocity of 20 m/s and a vertical velocity of 42 m/s. Obtain how much time is the projectile in the air
What was the original mass of the block of ice : A block of ice at 0°C is added to a 150 g aluminum calorimeter cup which holds 210 g of water at 12°C. If all however 2.0 g of ice melt, what was the original mass of the block of ice?
Calculate the temperature of the junction point : Rods of copper, brass, and steel are welded together to form a Y-Shaped figure. The cross-sectional area of each rod is 2 cm2. Calculate the temperature of the junction point
Decide forces that the moon and the sun exert on mass : Some people say that the tides on Earth are caused with the pull of the moon. Is this statement true? Which celestial body, the sun or the moon, has a greater pull on the waters of Earth? Decide the forces that the moon and the sun exert on a mass, m..

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