Register Description - Philips LPC2119 User Manual

Arm-based microcontroller
Hide thumbs Also See for LPC2119:
Table of Contents

Advertisement

Philips Semiconductors
ARM-based Microcontroller

REGISTER DESCRIPTION

The PWM function adds new registers and registers bits as shown in Table 165 below.
Table 165: Pulse Width Modulator Register Map
Address
Name
0xE0014000
PWMIR
0xE0014004 PWMTCR
0xE0014008
PWMTC
0xE001400C
PWMPR
0xE0014010
PWMPC
0xE0014014 PWMMCR
0xE0014018 PWMMR0
0xE001401C PWMMR1
0xE0014020 PWMMR2
0xE0014024 PWMMR3
0xE0014040 PWMMR4
Pulse Width Modulator (PWM)
PWM Interrupt Register. The IR can be written to clear interrupts. The IR can
be read to identify which of the possible interrupt sources are pending.
PWM Timer Control Register. The TCR is used to control the Timer Counter
functions. The Timer Counter can be disabled or reset through the TCR.
PWM Timer Counter. The 32-bit TC is incremented every PR+1 cycles of pclk.
The TC is controlled through the TCR.
PWM Prescale Register. The TC is incremented every PR+1 cycles of pclk.
PWM Prescale Counter. The 32-bit PC is a counter which is incremented to the
value stored in PR. When the value in PR is reached, the TC is incremented.
PWM Match Control Register. The MCR is used to control if an interrupt is
generated and if the TC is reset when a Match occurs.
PWM Match Register 0. MR0 can be enabled through MCR to reset the TC,
stop both the TC and PC, and/or generate an interrupt when it matches the TC.
In addition, a match between MR0 and the TC sets all PWM outputs that are in
single-edge mode, and sets PWM1 if it is in double-edge mode.
PWM Match Register 1. MR1 can be enabled through MCR to reset the TC,
stop both the TC and PC, and/or generate an interrupt when it matches the TC.
In addition, a match between MR1 and the TC clears PWM1 in either single-
edge mode or double-edge mode, and sets PWM2 if it is in double-edge mode.
PWM Match Register 2. MR2 can be enabled through MCR to reset the TC,
stop both the TC and PC, and/or generate an interrupt when it matches the TC.
In addition, a match between MR2 and the TC clears PWM2 in either single-
edge mode or double-edge mode, and sets PWM3 if it is in double-edge mode.
PWM Match Register 3. MR3 can be enabled through MCR to reset the TC,
stop both the TC and PC, and/or generate an interrupt when it matches the TC.
In addition, a match between MR3 and the TC clears PWM3 in either single-
edge mode or double-edge mode, and sets PWM4 if it is in double-edge mode.
PWM Match Register 4. MR4 can be enabled through MCR to reset the TC,
stop both the TC and PC, and/or generate an interrupt when it matches the TC.
In addition, a match between MR4 and the TC clears PWM4 in either single-
edge mode or double-edge mode, and sets PWM5 if it is in double-edge mode.
Description
196
Preliminary User Manual
LPC2119/2129/2292/2294
Access
R/W
R/W
RW
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
January 08, 2004
Reset
Value*
0
0
0
0
0
0
0
0
0
0
0

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Lpc2129Lpc2292Lpc2294

Table of Contents