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

  What is the separation distance of the sources at the height

The thickness variation must be within ±10% across the substrate. Your evaporation chamber consists of two sources separated by a distance D and the substrate is at a height h from the sources.

  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.

  Design a hardware implementation of a binary tree

Design a hardware implementation of a binary tree which functions as follows Each node of the binary tree has a unique address ( as discussed inclass). Given the address (A) of a node, and a datum (I), the machine willwrite I in node A.

  Find the input power in kw and the efficiency in percent

A 440 Vrms (line to line voltage) three phase induction motor runs at 1150 rpm driving a load requiring 15Nm of torque. The line current is 3.4 at a power factor of 80% lagging. Find the input power in Kw, The output power in Kw, and the efficiency..

  Determine size of solar cell that is need to power the lamp

Assuming that solar energy is used to charge a storage battery which then in turn is to power a lamp of 40W. Solar cell obtains power at the rate of 100milliwatts per square centimeter, and the sunlight time is 12 hours.

  Determine the required voltage-current and mva ratings

Consider a bank of three single-phase two-winding transformer whose high-voltage terminals are connected to a three-phase, 13.8 kV feeder. The low-voltage terminals are connected to a three-phase substation load rated 2.4 MVA and 2.3 kV.

  Expected attributes of engineers

Read The Engineer of 2020: Visions of Engineering in the New Century [1]. Identify the expected attributes of engineers in the year 2020 and, in a report, identify how those attributes can be developed and maintained through various lifelong learn..

  Epitaxial growth in thin flims

Epitaxial Growth in Thin Flims - current status and knowledge related to the project, and the strong points of this work

  What environmental factors should you consider

You do some quick measurements and find that the area of the lagoon behind the dam would be about 5m wide by 20m long, and the lagoon would be about 3m deep at high tide, and 1m deep at low tide.

  Report of the beam vibration

1) Given the two beams (Aluminum and steel) (0.125"X 1"X 20"), with the following material properties: For Steel E = 206.8 (10^9) Pa and ρ = 0.7830 kg/cm. E= 30X10^6 psi, ρ =0.00074 lb/ft

  The plates of a parallel plates capacitor are 5mm apart

the plates of a parallel plates capacitor are 5mm apart and2m2 in areathe plates are in a vacum.a potential

  Calculate the inductance of a solenoid with 125 turns

Calculate the inductance of a solenoid with 125 turns if the length of the solenoid is 18 cm and its radius is 1.6 cm

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