Calculate the total number of bits transferred

Assignment Help Electrical Engineering
Reference no: EM13689655

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.

Reference no: EM13689655

Questions Cloud

The tort of negligence is true : The tort of negligence is true?
Does commodification of a thing change : Does commodification of a thing change
Define the term shear as it relates to an aircraft structure : What are the most common metallic materials used in aircraft construction and what are the nonmetallic materials used in aircraft construction and define the term shear as it relates to an aircraft structure.
Analyze the behavior of the markets for goods : Prepare a two page essay and answer the questions and analyze the behavior of the markets for goods and money for each area.
Calculate the total number of bits transferred : Calculate the total number of bits transferred if 100 pages of ASCII data are sent using asynchronous serial data transfer and write an Assembly program to receive 10 bytes of data serially and send them to PORTC
Does commodification of a thing change the way : Does commodification of a thing change the way
Explore how ethics applies to issues in medicine : Explore how ethics applies to issues in medicine
Which is the worlds largest direct selling company : Which is the worlds largest direct selling company
How would an agreement template facilitate closing : How would an agreement template facilitate closing

Reviews

Write a Review

Electrical Engineering Questions & Answers

  Dynamic microphone changes sound into an electrical signal

Dynamic microphone changes sound into an electrical signal - Determine the Thevenin Equivalent circuit as seen from terminals A and B in the sketch

  Write an assembly code segment that calls the subroutine

Write an assembly code segment that calls the subroutine New Function if bits 5 and 6 of PORTD equal 1. Write the same code segment in part (a) using structured assembly constructs.

  What is the smallest possible load resistor that can be used

Design a 7.5V zener regulator circuit using a 7.5V zener specified at 12mA. The zener has an incremental resistance of r and a knee current of 0.5mA. The regulator operates from a 10V supply and has a 1.2k-ohm load.

  What fraction of the energy in the input signal is contained

A signal with Fourier transform F(jw) = 20/(4+jw) is passed through an ideal low pass filter whose cutoff frequency is 2 rad/sec (i.e., 0

  Determine equivalent circuits per phase as wye connected

Current, voltage, and power to a three phase system are measured and found to be 20 A, 550 V and 10.5kW respectively. Determine equivalent circuits per phase as follows: (a)wye connected series combination of resistance and reactance in each phase.

  What is the pressure on a load cell that can operate

What is the pressure on a load cell that can operate up to a maximum pressure of 500 pounds if its output is 15mV based on a scale factor of 5mV/v of inpur, and the input voltage is 10V.

  Calculate the l and c values of an l network

Calculate the L and C values of an L network that is to match a 9 ohm transistor power amplifier to a 75 ohm antenna at 122 MHZ.

  Use microsoft excel to compare costs from at least three

1. use microsoft excel to compare costs from at least three different vendors and reasons to accept specific bids.

  By using the laplace transform compute the convolution

by using the laplace transform compute the convolution xtvt of the two signals where xte-tut and vtsin

  Draw the state diagram for a fsm that detects the sequence

a) Draw the state diagram for a FSM that detects the sequence r = 0101 (without overlaps). b) The FSM in part a can beimplemented with 3 FFs. Assume the state assignments are A = 000, B= 001, C = 100, D = 110

  Determine the time-dependent voltage and current at the load

A 200-MHz voltage source with output Vg = 200 V 0 and internal impedance of 100 Ω is connected to the input of the line. Determine the time-dependent voltage and current at the load, and the average power delivered to the load.

  Obtain the corresponding iir digital high passs filter

The normalized lowpass filter with a cutoff frequency of 1 rad/sec is given as Hp(s) 1/s+1. Use Hp(s) and the BLT to obtain an corresponding IIR digital high passs filter with a cutoff of 30 Hz, assuming a sampling rate of 200 hz,

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