Draw the waveform that results on output

Assignment Help Electrical Engineering
Reference no: EM131024755

Exercise

For each of the three code segments below, draw the waveform that results on output RB7. If the waveform is repeating, then say so and draw at least two cycles. Also, clearly indicate logic '0' and logic `1' on your waveforms. For all code segments, pin RB7 is connected to RBO as shown in Figure 1 below. Be sure to clearly indicate the initial state of the RB7 output.

2321_Draw the waveform.jpg

Code 1

interrupt isr() {

if (INTOIF) (
INTOIF = 0; RB7 = 1;
}
main() (

TRISB = Ox7F; RB7 = 1;

IPEN = 0; INTEDGO = 0; INTOIF = 0; INTOIE = 1; PEIE = 1; GIE = 1; while (1) {

R87 - 0;

while (IFtB0) ;
}

Code 2

interrupt isr() I

if (INTOIF)

INTOIF = 0; RB7 = 1; INTOIE = 0;
main() {
TRISB = Ox7F; RB7 = 1;
IPEN = 0; INTEDGO = 0; INTOIF = 0; INTOIE = 1; PEIE = 1; GIE 1; while (1){
RB7 = 0;
while(!RBO);
}

Code 3

interrupt isr()
if (INTOIF) {
INTOIF = 0; RB7 = 1;
}
1
main() (
TRISB = Ox7F; RB7 = 1;
} IPEN = 0; INTEDGO = 1; INTOIF = 0; INTOIE = 1; PEIE = 1; GIE = 1;
while (1){ RB7 = 0; while(!RBO);
}

Verified Expert

Solution conclusion is presented in the report in both word and pdf format. There were mainly 2 things. Which includes problem statement cum coding, and output waveform.

Reference no: EM131024755

Questions Cloud

Question regarding the difficult to enforce : The law proved difficult to enforce, with many dry cleaners continuing to ignore it years after it was passed.
Journalist timothy noah : Journalist Timothy Noah discovered that when he called up the New York Times and threatened to end his subscription, he was offered a 50 percent discount on the regular subscription price.
Solve using the addition and multiplication principles : Find the coordinates of the point shown on the graph. What are the coordinates of the point?
Problem regarding the departure for international travel : Why would airlines offer their lowest prices so far in advance of the day of the flight? Wouldn't the airlines be better off discounting only just before the day of the flight when they know how many empty seats they have left to fill?
Draw the waveform that results on output : Draw the waveform that results on output RB7. If the waveform is repeating, then say so and draw at least two cycles. Also, clearly indicate logic '0' and logic `1' on your waveforms.
Find the velocity diagrams at the mean and hub : Find the velocity diagrams at the mean, hub and tip diameters of an axial flow water pump based upon the free-vortex design. The mean diameter velocity diagram has an axial inlet with a flow coefficient of 0.3 and a work coefficient if -0.208. The..
Problem regarding the restrictions on a service : But the three-night requirement does limit the utility of discounted fares for road warriors. What is a "road warrior"? Why would a company put restrictions on a service that make the service less desirable to some of its customers?
Determine the initial rate of heat transfer from cylinder : A circular cylinder 0.1ft in outside diameter and initially of temperature 320F is quenched in a batch of engine oil at 140F. The oil moves in cross flow over the cylinder at 5.5ft/s. Determine the initial rate of heat transfer from the cylinder ..
What is the amount of the quota : Let the demand for sweaters in a small open economy be given by Q = 200 - 2P. Let the supply for sweaters in a small open economy be given by Q = 3P - 100. What is the amount of the quota

Reviews

Write a Review

Electrical Engineering Questions & Answers

  Calculate total current flowing through the device

An n-type piece of silicon with a length of .21um and a cross section area of .05x.05 um sustains a voltage difference of 1V. If the doping level is 10^17 cm^-3, Calculate total current flowing through the device at 300K

  Estimate the total charge enclosed within the cube

a)apply gauss's law to find the total flux leaving the closed surface of the cube. b)evaluate - *D at v the center of the cube. c)estimate the total charge enclosed within the cube.

  What clock code is required and what is first null bandwidth

A DS-SS system requires 40 db of CW rejection of an interfering signal. it uses an 8-stage shift register m-sequence generator and transmits 1.5 kbps binary message data an a 2 GHz carrier. What clock code is required and what is the first null ba..

  Induction motor is fundamentally a transformer

Explain the statement that induction motor is fundamentally a Transformer?

  Calculate the value required for the resistor labeled r

On a breadboards, hook up an IR LED to provide an infrared light source for signaling the phototransistor as shown in Figure 2 below. Use a pushbutton switch to turn the IR LED on and off.

  Determine what is the back emf of an ac series circuit

If I have an AC series circuit with a voltage source of 3 Vrms, a frequency of 5 kHz, a 100 mH coil, and a 1 kohm resistor, how do I determine what the back emf is

  What are the sample values at constant time interval

Suppose a certain causal signal f(t) has a Laplace transform F(s) = 1. If f(t) is sampled at times kT where T is a constant time interval and integer k>=0, what are the sample values

  What would be reading of multimeter using ac and dc scales

If the peak-to-peak voltage of a sinusoidal waveform extends vertically 6.4 divisions and the oscilloscope vertical sensitivity was set to 0.5 volts/division, what would be the reading of a multimeter using both the AC and DC scales

  Design of a sustainable energy supply system

The design of a sustainable energy supply system to meet the demands of a small community.

  What value of capacitor must be put in parallel

If you have a purely inductive load with a reactance of 2/377 O connected to the 120Vrms 60 Hz (i.e., f = 377 rad/sec) AC line, what value of capacitor (in Farads) must be put in parallel with it to set the power factor to one

  Calculate copper and core losses in transformer at condition

A 150-MVA 15/200-kV single-phase power transformer has a 0.018ohm resistance and a 0.075ohm reactance. The magnetizing impedance is j80 per unit. a.) Find the equivalent circuit referred to the low-voltage side of this transformer.

  Calculate the speeders speed with respect to the ground

The wave reflects from the speeder's car and returns to the police car, where its frequency is measured to be 322 Hz less than the emitted frequency. Calculate the speeder's speed with respect to the ground.

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