Cirrus Logic EP93xx User Manual

Page 736

Advertising
background image

24-4

DS785UM1

Copyright 2007 Cirrus Logic

Pulse Width Modulator
EP93xx User’s Guide

2

4

2

4

24

Note: All undefined register bits will be read as 0.

Register Descriptions

PWMxTermCnt

Address:

PWM0TermCnt: 0x8091_0000 - Read/Write
PWM1TermCnt: 0x8091_0020 - Read/Write

Default:

0x0000_0000

Definition:

PWMx Terminal Count

Bit Descriptions:

PWM_TC:

PWMxTermCnt is used to adjust the output frequency of
the PWM. PWMxTermCnt gives the PWM up to 16-bit
resolution.

PWMxTermCnt is double buffered to allow it to be
programed statically (PWM is stopped) or dynamically
(PWM is running).

Programmed dynamically, PWMxTermCnt 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.

PWMxDutyCycle

Address:

PWM0DutyCycle: 0x8091_0004 - Read/Write
PWM1DutyCycle: 0x8091_0024 - Read/Write

Default:

0x0000_0000

Definition:

PWMx Duty Cycle

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

PWM_TC

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

PWM_DC

Advertising