© Koninklijke Philips Electronics N.V. 2005. All rights reserved.
User manual
Rev. 01 — 15 August 2005
258
Philips Semiconductors
UM10139
Volume 1
Chapter 16: PWM
Table 247: Pulse Width Modulator (PWM) register map
Name
Description
Access
Reset
value
Address
PWMIR
PWM Interrupt Register. The PWMIR can be written to clear interrupts.
The PWMIR can be read to identify which of the possible interrupt
sources are pending.
R/W
0
0xE001 4000
PWMTCR
PWM Timer Control Register. The PWMTCR is used to control the Timer
Counter functions. The Timer Counter can be disabled or reset through
the PWMTCR.
R/W
0
0xE001 4004
PWMTC
PWM Timer Counter. The 32-bit TC is incremented every PWMPR+1
cycles of PCLK. The PWMTC is controlled through the PWMTCR.
R/W
0
0xE001 4008
PWMPR
PWM Prescale Register. The PWMTC is incremented every PWMPR+1
cycles of PCLK.
R/W
0
0xE001 400C
PWMPC
PWM Prescale Counter. The 32-bit PC is a counter which is incremented
to the value stored in PR. When the value in PWMPR is reached, the
PWMTC is incremented. The PWMPC is observable and controllable
through the bus interface.
R/W
0
0xE001 4010
PWMMCR PWM Match Control Register. The PWMMCR is used to control if an
interrupt is generated and if the PWMTC is reset when a Match occurs.
R/W
0
0xE001 4014
PWMMR0 PWM Match Register 0. PWMMR0 can be enabled through PWMMCR to
reset the PWMTC, stop both the PWMTC and PWMPC, and/or generate
an interrupt when it matches the PWMTC. In addition, a match between
PWMMR0 and the PWMTC sets all PWM outputs that are in single-edge
mode, and sets PWM1 if it is in double-edge mode.
R/W
0
0xE001 4018
PWMMR1 PWM Match Register 1. PWMMR1 can be enabled through PWMMCR to
reset the PWMTC, stop both the PWMTC and PWMPC, and/or generate
an interrupt when it matches the PWMTC. In addition, a match between
PWMMR1 and the PWMTC clears PWM1 in either single-edge mode or
double-edge mode, and sets PWM2 if it is in double-edge mode.
R/W
0
0xE001 401C
PWMMR2 PWM Match Register 2. PWMMR2 can be enabled through PWMMCR to
reset the PWMTC, stop both the PWMTC and PWMPC, and/or generate
an interrupt when it matches the PWMTC. In addition, a match between
PWMMR2 and the PWMTC clears PWM2 in either single-edge mode or
double-edge mode, and sets PWM3 if it is in double-edge mode.
R/W
0
0xE001 4020
PWMMR3 PWM Match Register 3. PWMMR3 can be enabled through PWMMCR to
reset the PWMTC, stop both the PWMTC and PWMPC, and/or generate
an interrupt when it matches the PWMTC. In addition, a match between
PWMMR3 and the PWMTC clears PWM3 in either single-edge mode or
double-edge mode, and sets PWM4 if it is in double-edge mode.
R/W
0
0xE001 4024
PWMMR4 PWM Match Register 4. PWMMR4 can be enabled through PWMMCR to
reset the PWMTC, stop both the PWMTC and PWMPC, and/or generate
an interrupt when it matches the PWMTC. In addition, a match between
PWMMR4 and the PWMTC clears PWM4 in either single-edge mode or
double-edge mode, and sets PWM5 if it is in double-edge mode.
R/W
0
0xE001 4040
PWMMR5 PWM Match Register 5. PWMMR5 can be enabled through PWMMCR to
reset the PWMTC, stop both the PWMTC and PWMPC, and/or generate
an interrupt when it matches the PWMTC. In addition, a match between
PWMMR5 and the PWMTC clears PWM5 in either single-edge mode or
double-edge mode, and sets PWM6 if it is in double-edge mode.
R/W
0
0xE001 4044