DR
AFT
DR
AFT
DRAFT
DR
D
RAFT
DRAFT
DRA
FT DRAF
D
RAFT DRAFT DRAFT DRAFT DRAFT D
DRAFT
D
RAFT DRA
FT DRAFT DRAFT DRAFT DRA
UM10316_0
© NXP B.V. 2008. All rights reserved.
User manual
Rev. 00.06 — 17 December 2008
435 of 571
NXP Semiconductors
UM10316
Chapter 25: LPC29xx Pulse Width Modulator (PWM)
5.1 PWM shadow registers
Shadow registers are configured in the system domain but duplicated in the PWM domain
to allow reconfiguration of the PWM ‘on the fly’. A mechanism is provided to modify
configuration of the PWM and control the moment at which the updated configuration is
transferred to the shadow registers in the PWM domain.
The actual moment the PWM shadow registers are updated can be configured to take
place under software control or hardware control (trans_enable_in signal).
5.2 PWM mode control register
The MODECTL register is used to enable or reset the PWM counter and the internal
prescale counter. It also contains the bit fields to control the update of the shadow
registers and bit fields to control synchronization.
shows the bit assignment of the MODECTL register.
A14h
R
0000 0000h MTCHDEACTS(5)
Mirror the de-activation match shadowed
value related to PWM 5 output
see
F90h
W
-
INT_CLR_ENABLE
PWM interrupt clear-enable register
F94h
W
-
INT_SET_ENABLE
PWM interrupt set-enable register
F98h
R
0000 0000h INT_STATUS
PWM interrupt status register
F9Ch
R
0000 0000h INT_ENABLE
PWM interrupt enable register
FA0h
W
-
INT_CLR_STATUS
PWM interrupt clear-status register
FA4h
W
-
INT_SET_STATUS
PWM interrupt set-status register
FA8h
W
-
INT_MTCH_CLR_ENA
BLE
Match interrupt clear-enable register
FACh
W
-
INT_MTCH_SET_ENAB
LE
Match interrupt set enable register
FB0h
R
0000 0000h INT_MTCH_STATUS
Match interrupt status register
FB4h
R
0000 0000h INT_MTCH_ENABLE
Match interrupt enable register
FB8h
W
-
INT_MTCH_CLR_STAT
US
Match interrupt clear-status register
FBCh
W
-
INT_MTCH_SET_STAT
US
Match interrupt set-status register
FC0h
W
-
INT_CAPT_CLR_ENAB
LE
Capture interrupt clear-enable register
FC4h
W
-
INT_CAPT_SET_ENAB
LE
Capture interrupt set-enable register
FC8h
R
0000 0000h INT_CAPT_STATUS
Capture interrupt status register
FCCh
R
0000 0000h INT_CAPT_ENABLE
Capture interrupt enable register
FD0h
W
-
INT_CAPT_CLR_STAT
US
Capture interrupt clear-status register
FD4h
W
-
INT_CAPT_SET_STAT
US
Capture interrupt set-status register
Table 345. PWM register overview
…continued
(base address: 0xE00C 5000 (PWM0), 0xE00C 6000 (PWM1), 0xE00C
7000 (PWM2), 0xE00C 8000 (PWM3))
Address
Access Reset
Value
Name
Description
Reference