slide1 n.
Download
Skip this Video
Download Presentation
PWM

Loading in 2 Seconds...

play fullscreen
1 / 11

PWM - PowerPoint PPT Presentation


  • 121 Views
  • Uploaded on

PWM. ECE 4437-Embedded Systems Dr. Glover Christopher Ahn & Khoa Van. What is covered and what is not. Cover: Count down mode and basic configuration to get the motor run. Not cover: Count up/down mode Dead band Interrupt Others. LOAD: Determines PWM period based on system clock.

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about 'PWM' - xuefang-jun


Download Now An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
slide1

PWM

ECE 4437-Embedded Systems

Dr. Glover

Christopher Ahn & Khoa Van

what is covered and what is not
What is covered and what is not
  • Cover:
    • Count down mode and basic configuration to get the motor run.
  • Not cover:
    • Count up/down mode
    • Dead band
    • Interrupt
    • Others
slide6

LOAD: Determines PWM period based on system clock

ADown/BDown: determine pulsewidth

COMPA/COMPB: we set the value to get Adown/BDown

illustration
Illustration
  • Example: System clock is 80[Mhz] (can be reduced).
  • PWM Clock will be:
    • 80[Mhz]/64=1.25[Mhz] (period is 0.8 [us])
  • We want:
    • 2[ms] period. What is the Load value?
  • Answer: LOAD= (2[ms]/0.8[us])-1
illustration1
Illustration
  • Now we need to generate pulse width,
    • We will generate 20% duty cycle for PWMA for this example
  • HOW?
  • Easy: LOAD is 100%, so 20%*LOAD is the value for COMPA.
summary of the code
Summary of the Code:
  • Initialize and enable the Clocks
  • Enable the PWM Modules
  • Configure Pin types
  • Set Duty Cycle
  • Enable the gate
  • Enable generators
slide11

Can be found on page 489 in:

spmu298a_TivaWare_Peripheral_Driver_Lib.pdf