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

  Design a circuit to produce vout as the most negative

Six input voltage sources (V1, V2, V3, V4, V5, V6) have a +/- 1 V range. Design a circuit to produce Vout as the most negative (smallest) of (V1 + 2V2), (V3 - 2V4), (-V5 - 2V6). Your design should specify exact components. Note that diode drop can..

  Operate a satellite transceiver

Two nickel-cadmium batteries provide electrical power to operate a satellite transceiver. If both batteries are operating in parallel, they have an individual failure rate of 0.1 per year.

  Determine how much power is dissipated in the conductor

The resistance of 8 copper wire is 0.64 W per 1000 feet and with a certain type of insulation it can safely carry 40 A without overheating. If the wire is carrying the maximum current. How much power is dissipated in the conductor.

  Write an assembly-language program to add

Write an assembly-language program to add $40 to each element of list1 and store it to the corresponding element of list2. Use a loop. ORG $2000 LIST1 DC.W $21, $442, 3, 4, 5

  What is the energy cost if the motor ran for an hour

an 8 pole synchronous motor produces a full load torque of 25 foot pounds, fed from a 60hz source and is now operating at 60% eff. What is the energy cost if the motor ran for a 8000 hrs/yr and the electrical energy cost were $.09/kWh.

  Find the maximum average power transfer to the load

The phasor voltage Vab in the circuit is 480 /0° V (rms) when no external load is connected to terminals a,b. When a load having an impedance of 100 j0 Ω is connected across a,b, the value of Vab is 252.9822 /-18.3449° V (rms).

  Show that the total stored energy is constant with time

Find i(t), vL(t), v(t), the energy stored in the capacitance, the energy stored in the inductance, and the total stored energy for the circuit of Figure, given that vC(t) = 10 cos(1000t)V. (The argument of the cosine function is in radians.) Show ..

  How to take a decimal number and get it in binary numbers

How to take a decimal number and get it in binary numbers such as  98= 0110 010

  Explain the operating features of an i/o data image table

Describe very briefly the function and essential features of each block - Identify all inputs and outputs by the use of I/O designation charts.

  Derive minimal boolean expressions for circuit outputs

Design a 2-bit counter that, when f = 1, counts in the repeating sequence: 0, 2, 3, and when f = 0, counts in the reverse direction. Use T flip-flops. (a) Construct a state diagram or state table.

  What is the number of bits required to achieve resolution

An absolute encoder is to be used for measurements that require a minimum resolution of 0.05 minute or arc. What is the number of bits required to achieve the specified resolution

  Determine the magnitude of the current

Determine the magnitude of the current when the machine develops its maximum gross power with the excitation held constant.

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