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

  Find expression which represents laplace transformed value

An RLC circuit has an initial voltage across the capacitor and polarity as marked on the circuit shown below. The switch is closed at t = 0 and a current i(t) is assumed to flow clockwise in the circuit.

  Determine the work done in carrying a charge in two points

Determine the work done in carrying a charge -2x10-6C from P1 = (2, 1, -1) to point P2 = (8, 2, -1) (both in cartesians) in the field E = yax + xay (all in SI units) by integrating QE.dL along the straight line connecting the two points. Note: E i..

  Provide percent errors in relation to measurements

You will need to go to a manufacturer's website (ex: Motorola) to get the datasheets. The specifications for the different kinds of diodes vary. Copy all of the specifications for each diode as well as all of the specification definitions.

  At what instant of time is power being extracted from ckts

The voltage and current at the terminals of the circuit element ate zero for t 40 s. In the interval between 0 and 40 s the expressions are. At what instant of time is the power being extracted from the circuit element maximum.

  Find voltage v1 for which the diode just starts to conduct

Given the following circuit, in which R1 = 200 (Ohm), R2 = 100(Ohm), V1 = 6 V, and V2 = 3 V. Assume the diode turn-on voltage is 0.7 V. Find the current through the circuit. Find the voltage V1 for which the diode just starts to conduct.

  Find output signal y if the frequency responses are given

The signal x(t) = 2 - sin(4.5t - pi / 4) + 3 cos (24t + pi / 2) is input into a system with frequency response H(omega). Find the output signal y(t) if: H(omega) = rect(omega/80) H(omega) = 2 - 2rect(omega/8) H(omega) = sin c(omega/20)

  What is the moment of inertia of the door about the hinges

A sheet of plywood 1.39 cm thick is used to make a cabinet door 55.5 cm wide by 69.5 cm tall, with hinges mounted on the vertical edge. A small 181-g handle is mounted 45 cm from the lower hinge at the same height as that hinge.

  Develop a logic circuit using only nand gates to implement

Implement the truth table shown below using the minimum number of NAND gates. Use 2-, 3- , and/or 4-input NAND gates as required to minimize gates. Develop a logic circuit, using only NAND gates, to implement a circuit.

  Can same circuit analysis techniques used for resistive ckts

Can the same circuit analysis techniques used for resistive circuits with DC sources be used when the sources are sinusoidal Why

  Determine the safe level for human exposure to em radiation

A base-station cellular communicationsystem utilizes arrays of f/2 dipoles as transmitting and receiving antennas. Assuming that each element is lossless and that the input power to each of the f/2 dipoles is 1 watt, determine at 1,900 MHz

  Determine the amount of time that devices would have

Determine the amount of time that the following devices would have to be used before 1.0x106 C (1 million Coulombs) of charge passes through them. a. LED night light (I=0.0042 A) b. Incandescent night light (I=0.068 A)

  What is the output error voltage of differential amp

the diff amp pf has Av= 360 lin(bias)=600nA,lin(off) =100nA and Vin(off)=1mV. what is the output error voltage if a matching base resistor is used, what is the output error voltage

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