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
437 of 571
NXP Semiconductors
UM10316
Chapter 25: LPC29xx Pulse Width Modulator (PWM)
[1]
Set this bit when an interrupt should be enabled on Transfer_done.
5.3 PWM trap control register
The APB PWM has an external asynchronous input which is used to switch the selected
PWM outputs to the not-active level. The polarity of the active level is defined by bit
ACT_LVL, see
. The possibility of enabling this feature (TRAP_ENA) can be
defined for each output. The trap-signal polarity that triggers the emergency is also
contained in the trap control register.
shows the bit assignment of the TRPCTL register.
2
RUN_ONCE
R/W
1
PWM counter stops at the end of current
cycle
0*
1
CNT_RESET
R/W
1
Synchronously reset PWM counter and
prescale counter. Counters remain reset
when this bit is active
0*
0
CNT_ENA
R/W
1
Enables the PWM counter and prescale
counter
0*
Table 347. Bits involved in shadow register update
SYNC_SEL
TRANS_ENA_SEL
Update of registers
0
x
TRANS_ENA bit
1
0
TRANS_ENA bit (master mode)
1
1
trans_enable_in signal (slave mode)
Table 346. MODECTL register bit description
…continued
* = reset value
Bit
Symbol
Access
Value
Description
Table 348. TRPCTL register bit description
* = reset value
Bit
Symbol
Access
Value
Description
31 to 17 reserved
R
-
Reserved; do not modify. Read as logic 0
16
TRAP_POL
R/W
1*
The asynchronous trap input is active on HIGH
level (rising edge is detected to switch the PWM
outputs to the not-active level as defined by
ACT_LVL)
0
the asynchronous trap input is active on LOW
level (falling edge is detected to switch the
PWM outputs to the not-active level as defined
by ACT_LVL)
15 to 6
reserved
R
-
Reserved; do not modify. Read as logic 0
5
TRAP_ENA[5]
R/W
1*
Trap function is enabled for the corresponding
PWM 5 output
:
:
:
:
:
0
TRAP_ENA[0]
R/W
1*
Trap function is enabled for the corresponding
PWM 0 output