Presentation is loading. Please wait.

Presentation is loading. Please wait.

Team 7 Chaofan Chen Dhruvmin Gandhi Larry Gerhardt Pulse-width Modulation with the TIVA C.

Similar presentations


Presentation on theme: "Team 7 Chaofan Chen Dhruvmin Gandhi Larry Gerhardt Pulse-width Modulation with the TIVA C."— Presentation transcript:

1 Team 7 Chaofan Chen Dhruvmin Gandhi Larry Gerhardt Pulse-width Modulation with the TIVA C

2 Introduction to Pulse-width Modulation (PWM) The Tiva C PWM Module Basic PWM Setup with the Tiva C Example Code Presentation Overview

3 Duty Cycle Period What is Pulse Width Modulation

4 Dimming Motor Control Servo Control Analog wave simulation Why use pulse-width modulation

5 Tiva C Two PWM Modules Four Generators Each generator has Two Outputs Total 16 PWM output The Tiva C PWM Module

6

7

8 Fast PWM Count Down Mode Phase Correct PWM Count Up/Count Down Mode Symmetric vs Asymmetric PWM

9 Count-Down VS Count-Up/Count-Down

10 Count-Up/Count-Down Example

11 Pulse-width Modulation with Tiva C Five Basic Steps 1)Clock Configuration 2)Peripheral Enable 3)GPIO Configuration 4)PWM Configuration 5)PWM Enable

12 First set the system clock In our case at 40MHz Then the PWM clock In our case 1/64 the system clock, 625KHz Clock Configuration

13 First enable the PWM module you would like to use. Then enable the port you would like to use for output. Peripheral Enable

14 Setup the pins for PWM Use default configuration Use PD0 for output Use PWM Module 1 Use Generator 0 Pin Configuration

15 Calculate the period of the signal Setup the desired PWM Mode Setup the calculated period PWM Configure

16 Setup the initial duty cycle Tell the PWM to output to pin 0 Finally enable the Generator That’s It! PWM Enable Output

17 UsageInitialization Tiva C PWM Example

18 Q&A

19 Tiva C PWM Workshop Tiva C User Guide 2014 PWM Team Presentation References


Download ppt "Team 7 Chaofan Chen Dhruvmin Gandhi Larry Gerhardt Pulse-width Modulation with the TIVA C."

Similar presentations


Ads by Google