Presentation is loading. Please wait.

Presentation is loading. Please wait.

-AT91SAM7X256 – Pulse Width Modulation YoonMo Yeon 2007. 3. 22.

Similar presentations


Presentation on theme: "-AT91SAM7X256 – Pulse Width Modulation YoonMo Yeon 2007. 3. 22."— Presentation transcript:

1 -AT91SAM7X256 – Pulse Width Modulation YoonMo Yeon 2007. 3. 22.

2 Contents Speed control of DC motor Pulse Width Modulation AT91SAM7X256 PWM Controller & example

3 Speed control of DC motor Analogue type control Varying the voltage applied to motor Simple control circuit Heat problem (resister at voltage dropper) Low power efficiency at low speed Torque also varies Torque ∝ I V ∝ I ∴ It is not proper to vary the voltage

4 Pulse Width Modulation The average voltage applied to the motor is varied by switching the supply voltage very rapidly (ON/OFF) Duty Cycle

5 AT91SAM7X256 - PWMC PWM Controller Four channels, One 16-bit counter per channel Common clock generator providing 13 different clocks 11 : One modulo-n counter 2 : Independent linear dividers working on modulo n counter output

6

7

8 Set up the PWMC in your Application

9 PIO & PWM lines 4 Multiplexed Channel outputs with PIOB lines

10

11

12 Set up the PWMC in your Application

13 Enable the PWM Clock Clock of peripherals Power Management Controller controls the clocks of each embedded peripheral The peripheral clocks are automatically disabled after a reset

14

15

16 Set up the PWMC in your Application

17 Set up the Clock Generator Per each channel Channel Mode Register Duty Cycle Register Period Register Counter Register Update Register

18

19

20

21 CMR = 10 -> CPRE = MCK/1024 CPOL = 0 : start at low level CALG = 0 : left aligned CPRDR = 1024 -> CPRE / 1024 -> MCK / 1024 / 1024 ≒ 48Hz CDTYR = 256 -> Duty Cycle = CDTYR / CPRDR -> D = 256 / 1024 = 1/4

22 Set up the PWMC in your Application

23 Channel Enabling

24

25 Modify a channel period/duty cycle In running mode, modifying the duty cycle or the period value can be done only via PWM_CUPD

26

27

28 End of presentation


Download ppt "-AT91SAM7X256 – Pulse Width Modulation YoonMo Yeon 2007. 3. 22."

Similar presentations


Ads by Google