Cirrus Logic EP93xx User Manual

Page 737

Advertising
background image

DS785UM1

24-5

Copyright 2007 Cirrus Logic

Pulse Width Modulator

EP93xx User’s Guide

2

4

2

4

24

Bit Descriptions:

PWM_DC:

PWM_DC is used in conjunction with PWMxTermCnt to
adjust the output duty cycle of PWM. PWMxDutyCycle is
double buffered to allow it to be programed statically
(PWM is stopped) or dynamically (PWM is running).
Programmed dynamically, PWMxDutyCycle is updated at
the end of a PWM cycle to prevent any output glitches or
errors. Reading the register reflects what was written to it,
not the state of the counter.

PWMxEn

Address:

PWM0En: 0x8091_0008 - Read/Write
PWM1En: 0x8091_0028 - Read/Write

Default:

0x0000_0000

Definition:

PWMx Enable

Bit Descriptions:

RSVD:

Reserved. Unknown During Read.

EN: Enable

PWM

0 - Disable/Stop PWM. The PWM is actually stopped when
it reaches the end of its current cycle. PWM output is:
0 - If PWM_INV = 0
1 - if PWM_INV = 1

1 - PWM is Enabled. When in normal mode writing a one
will start the PWM.
PWMxTermCnt is updated with its new buffered value.
PWMxDutyCycle is updated with its new buffered value.

PWMxInvert

Address:

PWM0Invert: 0x8091_000C - Read/Write
PWM1Invert: 0x8091_002C - Read/Write

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

RSVD

EN

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

RSVD

INV

Advertising