Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Electrical & Electronics Expert

1. Write a C18 code to perform the same function performed by the following Assembly code.

COUNT EQU 0x08
COUNTER EQU 0x20
NUM_X EQU 0x21
ORG 0
MOVLW 0
MOVWF NUM_X
MOVLW COUNT
MOVWF COUNTER
REPEAT BTFSS 0x10, 0
INCF NUM_X, F
RRNCF 0x10, F
DECF COUNTER, F
BNZ REPEAT
END

2. Assume that XTAL = 4 MHz. Find the TMR0H:TMR0L value needed to generate a:

a. time delay of 2 ms. Use 16-bit mode, no prescaler mode.

b. time delay of 10 ms. Use 16-bit mode, and the largest prescaler possible.

3. Assuming that XTAL = 10 MHz, and we are generating a square wave on pin RB0 (50% Duty Cycle); find the lowest square wave frequency that we can generate using:

a. Timer0 in 16-bit mode.

b. Timer0 in 8-bit mode.

c. Timer 2

d. Write an Assembly code to generate the wave with lowest frequency among the values you found in parts (a), (b) and (c).

e. Repeat part (d) using C.

4. Program Timer2 in (a) Assembly and (b) C to toggle pin RB0 when it counts up for 0 to 150 assuming XTAL = 4 MHz.

5. Calculate the total number of bits transferred if 100 pages of ASCII data are sent using asynchronous serial data transfer. Assume a data size of 8 bits, 1 stop bit, not parity and each page contains 80x25 text characters. How long would it take to transfer the whole 100 pages serially if the baud rate 9600?

6. Write (a) Assembly and (b) C code to transfer serially the message "I HEAR YOU" continuously at baud rate 1200.

7. (a) Write an Assembly program to receive 10 bytes of data serially and send them to PORTC. Set the baud rate at 57,600. There must be a delay of 1 second before sending each byte to PORTC, so the bytes need to be stored in RAM, and then sent to PORTC in the same order in which they were received, (b) write the a program to perform the same using C.

Electrical & Electronics, Engineering

  • Category:- Electrical & Electronics
  • Reference No.:- M91229257
  • Price:- $75

Priced at Now at $75, Verified Solution

Have any Question?


Related Questions in Electrical & Electronics

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 ...

Nanotechnology engineering program assignment - passive

Nanotechnology Engineering Program Assignment - Passive Filters Q1) Determine what type of filter is in circuit shown. Calculate the cutoff frequency f c . Q2) Determine what type of filter is in circuit shown. Calculate ...

Questions -problem 1 - determine the laplace transform ofa

Questions - Problem 1 - Determine the Laplace transform of: (a) cos(ωt + θ) (b) sin(ωt + θ) Problem 2 - Obtain the Laplace transform of each of the following functions: (a) e -2t cos(3t)u(t) (b) e -2t sin(4t)u(t) (c) e - ...

Nanotechnology engineering - resonance circuits questions

Nanotechnology Engineering - Resonance Circuits Questions - Q1) A series RLC network has R = 2KΩ, L = 40mH and C = 1μF. Calculate the impedance at resonance and at one-fourth, one-half, twice, and four times the resonant ...

Questions -problem 1 - a series rlc network has r 2 komega

Questions - Problem 1 - A series RLC network has R = 2 kΩ, L = 40 mH and C = 1μF. Calculate the impedance at resonance and at one-fourth, one-half, twice, and four times the resonant frequency. Problem 2 - Design a serie ...

Question 1 a pnp transistor withnbspbeta 60 is connected

Question 1. A pnp transistor with β = 60 is connected in a common-base configuration as shown in figure P5.8 (a) The emitter is driven by a constant-current source with I E = 0.75 mA. Determine I B , I C , α, and V C . ( ...

Assignment -consider a common emitter amplifiernow lets say

Assignment - Consider a common emitter amplifier: Now let's say that R B and R C do a fine job at DC biasing the BJT but they are large so they can be neglected for small signal (AC) analysis. In that case, the equivalen ...

Questions -q1 a single-phase transformer rated 21 kv130 v

Questions - Q1. A single-phase transformer rated 2.1 kV/130 V, 7.8 kVA has the following winding parameters: r1= 0.7Ω, x1 = 0.9Ω, r2 = 0.04Ω and x2 = 0.05Ω. Determine: a. The combined winding resistance ________ Ω and le ...

Research report1 read 3 to 4 journal articles about digital

Research report 1. Read 3 to 4 journal articles about digital control or industrial control, eg. one particular application, implementation aspect such as selection of sampling time, hardware etc. No text book example is ...

Assignment - power distribution system transformerscomplete

Assignment - Power Distribution System Transformers Complete your calculations, drawings, and answers, neatly handwritten on these sheets and hand in at the start of lecture in week 6. Absolutely no late submissions will ...

  • 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