Ask Electrical & Electronics Expert

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.

Electrical & Electronics, Engineering

  • Category:- Electrical & Electronics
  • Reference No.:- M91205056
  • Price:- $110

Guranteed 48 Hours Delivery, In Price:- $110

Have any Question?


Related Questions in Electrical & Electronics

Question 1for the ce amplifier in figure 1 given the

Question 1 For the CE amplifier in Figure (1), given the following component parameters: Parameter Value β DC , β AC 150 V BE 0 . 7 V V CC 12 V R C 820 ? R E 1 100 ? R E 2 220 ? R 1 20 k? R 2 5 . 2 k? R L 100 k? C 1 , C ...

Question -i a star-connected three-phase synchronous

Question - (i) A star-connected, three-phase synchronous induction motor takes a current of 10 amps from a 415 volt supply at unity power factor when supplying a steady load. If the synchronous reactance is 5 ohms/phase ...

1 a name the three major groups of contamination and

1. (a) Name the three major groups of contamination and briefly describe their physical characteristics. (b) Where do the above contamination types come from? Give one example of each. 2. Name two processes metrics which ...

Question 1 in the voltage regulator circuit in figure p221

Question 1: In the voltage regulator circuit in Figure P2.21, V 1 = 20 V, V Z = 10 V, R i = 222Ω and P z (max) = 400 mW. (a) Determine I L, I z , and I L , if R L = 380Ω. (b) Determine the value of R L , that will establ ...

Summative assessmentin 2017 sej101 assessment will consist

Summative Assessment In 2017 SEJ101 assessment will consist of nine tasks that will develop a portfolio of your assessed work. Throughout the trimester you will have the opportunity for feedback on all nine tasks before ...

1 a name the three major groups of contamination and

1. (a) Name the three major groups of contamination and briefly describe their physical characteristics. (b) Where do the above contamination types come from? Give one example of each. 2. Name two processes metrics which ...

1 a name the three major groups of contamination and

1. (a) Name the three major groups of contamination and briefly describe their physical characteristics. (b) Where do the above contamination types come from? Give one example of each. 2. Name two processes metrics which ...

Case studythis assignment consists of a written report of

CASE STUDY This assignment consists of a written report of approximately 1000 words and any diagrams in which you are asked to critically compare different process methods used to achieve the same result and show an awar ...

Problem 1 a two-phase servomotor has rated voltage applied

Problem 1: A two-phase servomotor has rated voltage applied to its excitation winding. The torque speed characteristic of the motor with Vc = 220 V, 60 Hz applied to its control phase winding is shown in Fig.1. The momen ...

Electrical engineering questions -q1 two ideal voltage

Electrical Engineering Questions - Q1. Two ideal voltage sources designated as machines 1 and 2 are connected, as shown in the figure below. Given E 1 = 65∠0 o V, E 2 = 65∠30 o V, Z = 3Ω. Determine if Machine 1 is genera ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As