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

  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