Pulse width modulatorpart-1introduction a pulse width

Assignment Help Electrical Engineering
Reference no: EM13346812

PULSE WIDTH MODULATOR

Part-1

Introduction:

A pulse width modulation (PWM) circuit works by varying the duty cycle of the square wave while keeping the period fixed. In simple terms, it is a technique to provide a logic "1", and a logic "0" for a controlled period of time.

DUTY CYCLE : The duty cycle is the percentage of the period of a square wave that that signal is high. A 50% duty cycle would be high for 50% of the time and low for 50% of the time. Likewise, a 10% duty cycle would be high for 10% and low for 90%.

2178_Pulse width modulator.png

A block diagram for the system is shown above.

Implementation:

A simple VHDL description of the circuit might look like this:

CONSTANT duty_cycle : INTEGER := A; -- for easy change of duty cycle

Signal count_value      : Integer Range 0 to max_value;

Signal PWM                 : STD_LOGIC;

PROCESS(CLK)
BEGIN
IF RISING_EDGE(CLK) THEN
IF (count_value < max_value) THEN
count_value <= count_value + 1;           -- note that we use a counter to keep track
IF (count_value = A) THEN                      -- of the fraction of the cycle for which PWM is High

PWM <= NOT(PWM);                               -- toggle PWM Bit
END IF;
ELSE
count_value <= 0;
PWM <= '1';                                             -- assuming you want to
start with '1' level
END IF;
END IF;
END PROCESS;

This is just one way of implementing the Pulse Width Modulator.

However, for your lab assignment, implement your circuit according to the flow chart given below.

1924_Pulse width modulator2.png

Write and test the VHDL code that represents a description of this PWM circuit using Quartus II.

Hand in your code and a fully documented simulation, being sure to completely describe your design and test methodology.

Part 2:

Use the clock division code that you designed for the traffic light controller in the first lab and for programming the Altera DE-II board. You should be able to demonstrate the change in the turn on times for the LEDs. Use the toggle switches for changing the duty cycle and LEDs as the respective outputs. Prepare an excel sheet for the relevant error compared to the required duty cycle.

Reference no: EM13346812

Questions Cloud

Ceate an application which represents a simplified course : create an application which represents a simplified course registration system using arraylists and hashmaps.define a
Capital structure and leveragethe effect of financial : capital structure and leveragethe effect of financial leveragebiddle publishing currently is financed with 10 debt and
The role of hr in the 21stnbsp century is becoming : the role of hr in the 21stnbsp century is becoming increasingly vital. a significant claim in support of strategic
Part - 1 object-oriented designwrite a program that allows : part - 1 object-oriented designwrite a program that allows an instructor to keep a grade book. each students has scores
Pulse width modulatorpart-1introduction a pulse width : pulse width modulatorpart-1introduction a pulse width modulation pwm circuit works by varying the duty cycle of the
Write the code and output screendesign a base class shape : write the code and output screendesign a base class shape with virtual functionsvoid drawgrapicwindowamp win constvoid
The open university running club ourc has engaged the : the open university running club ourc has engaged the services of a web design consultancy to develop a dynamic website
The schematic of the traffic light controller is as shown : the schematic of the traffic light controller is as shown in figure. there are three control buttons on the panel haz
Problem build a class for a type called fractionnbspthis : problem build a class for a type called fraction.nbspthis class is used to show a ration of two integers.nbsp include

Reviews

Write a Review

Electrical Engineering Questions & Answers

  Determine the system power factor and the impedance

a capacitor, an electric resistance heater, and an impedance are connected in parallel to a 120 volt, 60 Hz. system. the capacitor draws 50 VARs, the heater draws 100 watts and the impedance coils draws 269 VA at a power factor of 0.74 lagging.

  How the maxwell-boltzmann approximation accurate

The Maxwell-Boltzmann distribution is often used to approximate the Fermi- Dirac distribution function. For what range of (E-Ef)/kT is the Maxwell-Boltzmann approximation accurate to within 10%

  Write function printbinary that displays the number of bits

Write a function printBinary() that displays the number of bits used VB2010. Using 'sizeof()' if the user enters and int 17 the function should display 000000000000000000000000000010001.

  Determine what value does each thread print

Processes P1 and P2 each have a global variable x. Process P1 has threads T1, T3, and T5, while process P2 has threads T2, T4, and T6. The following sequence of assignments is made by various threads in the order shown

  Determine the complex impedance of the material

A sirloin steak (e'r = 52.4, µr = 1, tan dc = 0.33) is to be heated in a microwave oven operating at 2.45 Ghz. (a) Determine the uniform plane wave penetration depth. (b) Determine the complex impedance of the material.

  Design a circuit that given a 4-bit bcd digit will produce

Design a circuit that given a 4-bit BCD digit(0-9) will produce a 2-bit quotient and a 2-bit remainder for a division by3. This circuit will have four inputs--the four bits of the BCD digit--and four outputs--2 bits for the quotient and 2 bits for..

  Calculate the real and reactive power at the sending-end

A 60 Hz, three-phase, transposed transmission line has the following parameters: Z = 13.114+ j52.952, Y = j0.311/1000. The sending-end line-to-line voltage is 161 kV. The total receiving-end load is represented by ZL =143 with an angle

  Draw the admittance diagram

find the voltage E and the current Ir and IL in phasor form

  State whether or not system is linear and time invariant

For each of the following systems with input x(t) and output y(t), state whether or not the system is (i) Linear and (ii) Time Invariant. Note that x(t) could be any complex valued signal.  (a) y(t) = a^2 x(t), where a is a complex number.

  Indicate which bits are the sign-exponent and fraction

Convert the value: $2103.25 using an IEEE standard 4 byte (32 bit) float floating point number representation. Identify every bit of the 32 bit number holding this record by first converting the number 2103.25 from decimal to binary

  Define murray loop test and locating faults

Murray Loop Test and Locating Faults, Q.1 (a) Using the Murray Loop test, determine the distance to an earth fault on one of the cores of a uniform three-core underground cable. Ra = 2 ohms, Rb = 1 ohm

  Determine what is the nominal resistance of the resistor

the color code on a resistor specifies the resistance as4.7kOhms. A multimeter measured the resistance as 4.688kOhms. What is the nominal resistance of the resistor

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