Pwm Width Register; Pwm Period Registers; Pwm Width Registers - Motorola M-CORE MMC2001 Series Reference Manual

Table of Contents

Advertisement

PWMPR0 — PWM0 Period Register
PWMPR1 — PWM1 Period Register
PWMPR2 — PWM2 Period Register
PWMPR3 — PWM3 Period Register
PWMPR4 — PWM4 Period Register
PWMPR5 — PWM5 Period Register
15
14
13
12
R
0
0
0
0
W
RESET:
PERIOD — Pulse Period
This value causes the counter to be reset. There is one special case. When PERIOD
= 0, the output is never set high (0% duty cycle). In this case, the comparator is
loaded and the counter is reset on every PCLK. In addition, if enabled, an interrupt
request is generated on every PCLK.
C.6.3 PWM Width Register
The PWM width register (PWMWR) defines the pulse width in PCLKs. When the
counter matches the value in this register, the output is reset for the duration of the
period. Note that if the value in this register is not less than the period register, the
output will never be reset, resulting in a 100% duty cycle.
PWMWR0 — PWM0 Width Register
PWMWR1 — PWM1 Width Register
PWMWR2 — PWM2 Width Register
PWMWR3 — PWM3 Width Register
PWMWR4 — PWM4 Width Register
PWMWR5 — PWM5 Width Register
15
14
13
12
R
0
0
0
0
W
RESET:
WIDTH — Pulse Width
When the counter reaches the value in this register, the output is reset.
MOTOROLA
C-26
Freescale Semiconductor, Inc.
11
10
9
8
0
0
0
0
Figure C-25 PWM Period Registers
11
10
9
8
0
0
0
0
Figure C-26 PWM Width Registers
PROGRAMMING REFERENCE
For More Information On This Product,
Go to: www.freescale.com
7
6
5
4
PERIOD
0
0
0
0
7
6
5
4
WIDTH
0
0
0
0
10005002
1000500A
10005012
1000501A
10005022
1000502A
3
2
1
0
0
0
0
0
10005004
1000500C
10005014
1000501C
10005024
1000502C
3
2
1
0
0
0
0
0
MMC2001
REFERENCE MANUAL

Advertisement

Table of Contents
loading

Table of Contents