LPC2917_19_1 © NXP B.V. 2008. All rights reserved.
Product data sheet Rev. 01 — 31 July 2008 37 of 67
NXP Semiconductors
LPC2917/19
ARM9 microcontroller with CAN and LIN
The PWM block diagram in Figure 10 shows the basic architecture of each PWM. PWM
functionality is split into two major parts, a APB domain and a PWM domain, both of which
run on clocks derived from the BASE_MSCSS_CLK. This split into two domains affects
behavior from a system-level perspective. The actual PWM and prescale counters are
located in the PWM domain but system control takes place in the APB domain.
The actual PWM consists of two counters; a 16-bit prescale counter and a 16-bit PWM
counter. The position of the rising and falling edges of the PWM outputs can be
programmed individually. The prescale counter allows high system bus frequencies to be
scaled down to lower PWM periods. Registers are available to capture the PWM counter
values on external events.
Note that in the Modulation and Sampling SubSystem, each PWM has its individual clock
source CLK_MSCSS_PWMx (x runs from 0 to 3). Both the prescale and the timer
counters within each PWM run on this clock CLK_MSCSS_PWMx, and all time references
are related to the period of this clock. See Section 8.8 for information on generation of
these clocks.
8.7.6.3 Synchronizing the PWM counters
A mechanism is included to synchronize the PWM period to other PWMs by providing a
sync input and a sync output with programmable delay. Several PWMs can be
synchronized using the trans_enable_in/trans_enable_out and sync_in/sync_out ports.
See Section 8.7.2.1 for details of the connections of the PWM modules within the MSCSS
in the LPC2917/19. PWM 0 can be master over PWM 1; PWM 1 can be master over
PWM 2, etc.
Fig 10. PWM block diagram
002aad837
APB system bus
IRQ pwm
IRQ capt_match
PWM
CONTROL
&
REGISTERS
update
capture data
PWM counter value
config data
IRQ's
PWM,
COUNTER,
PRESCALE
COUNTER
&
SHADOW
REGISTERS
match outputs
capture inputs
trap input
carrier inputs
sync_in
sync_out
transfer_enable_in
transfer_enable_out
APB DOMAIN
PWM DOMAIN
LPC2917_19_1 © NXP B.V. 2008. All rights reserved.
Product data sheet Rev. 01 — 31 July 2008 38 of 67
NXP Semiconductors
LPC2917/19
ARM9 microcontroller with CAN and LIN
8.7.6.4 Master and slave mode
A PWM module can provide synchronization signals to other modules (also called Master
mode). The signal sync_out is a pulse of one clock cycle generated when the internal
PWM counter (re)starts. The signal trans_enable_out is a pulse synchronous to sync_out,
generated if a transfer from system registers to PWM shadow registers occurred when the
PWM counter restarted. A delay may be inserted between the counter start and
generation of trans_enable_out and sync_out.
A PWM module can use input signals trans_enable_in and sync_in to synchronize its
internal PWM counter and the transfer of shadow registers (Slave mode).
8.7.6.5 PWM pin description
Each of the four PWM modules in the MSCSS has the following pins. These are combined
with other functions on the port pins of the LPC2917/19. Table 21 shows the PWM0 to
PWM3 pins.
8.7.6.6 PWM clock description
The PWM modules are clocked by CLK_MSCSS_PWMx (x = 0-3), see Section 7.2.2.
Note that each PWM has its own CLK_MSCSS_PWMx branch clock for power
management. The frequency of all these clocks is identical to CLK_MSCSS_APB since
they are derived from the same base clock BASE_MSCSS_CLK.
Also note that unlike the timer modules in the Peripheral SubSystem, the actual timer
counter registers of the PWM modules run at the same clock as the APB system interface
CLK_MSCSS_APB. This clock is independent of the AHB system clock.
If a PWM module is not used its CLK_MSCSS_PWMx branch clock can be switched off.
8.7.7 Timers in the MSCSS
8.7.7.1 Overview
The two timers in the MSCSS are functionally identical to the timers in the peripheral
subsystem, see Section 8.4.3. The features of the timers in the MSCSS are the same as
the timers in the peripheral subsystem, but the capture inputs and match outputs are not
available on the device pins. These signals are instead connected to the ADC and PWM
modules as outlined in the description of the MSCSS, see Section 8.7.2.
Table 21. PWM pins
Symbol Direction Description
PWMn CAP[0] IN PWM n capture input 0
PWMn CAP[1] IN PWM n capture input 1
PWMn CAP[2] IN PWM n capture input 2
PWMn MAT[0] OUT PWM n match output 0
PWMn MAT[1] OUT PWM n match output 1
PWMn MAT[2] OUT PWM n match output 2
PWMn MAT[3] OUT PWM n match output 3
PWMn MAT[4] OUT PWM n match output 4
PWMn MAT[5] OUT PWM n match output 5
PWMn TRAP IN PWM n trap input
LPC2917_19_1 © NXP B.V. 2008. All rights reserved.
Product data sheet Rev. 01 — 31 July 2008 39 of 67
NXP Semiconductors
LPC2917/19
ARM9 microcontroller with CAN and LIN
8.7.7.2 Description
See section Section 8.4.3.2 for a description of the timers.
8.7.7.3 MSCSS timer-pin description
MSCSS timer 0 has no external pins.
MSCSS timer 1 has a PAUSE pin available as external pin. The PAUSE pin is combined
with other functions on the port pins of the LPC2917/19. Table 22 shows the MSCSS
timer 1 external pin.
8.7.7.4 MSCSS timer-clock description
The Timer modules in the MSCSS are clocked by CLK_MSCSS_MTMRx (x = 0-1), see
Section 7.2.2. Note that each timer has its own CLK_MSCSS_MTMRx branch clock for
power management. The frequency of all these clocks is identical to CLK_MSCSS_APB
since they are derived from the same base clock BASE_MSCSS_CLK.
Note that, unlike the timer modules in the Peripheral SubSystem, the actual timer counter
registers run at the same clock as the APB system interface CLK_MSCSS_APB. This
clock is independent of the AHB system clock.
If a timer module is not used its CLK_MSCSS_MTMRx branch clock can be switched off.
8.8 Power, clock and reset control subsystem
8.8.1 Overview
The Power, Clock and Reset Control Subsystem (PCRSS) in the LPC2917/19 includes a
Clock Generation Unit (CGU), a Reset Generation Unit (RGU) and a Power Management
Unit (PMU).
8.8.2 Description
Figure 11 provides an overview of the PCRSS. An AHB-to-DTL bridge takes care of
communication with the AHB system bus.
Table 22. MSCSS timer 1 pin
Symbol Direction Description
MSCSS PAUSE IN pause pin for MSCSS timer 1

LPC2919FBD144/01/,

Mfr. #:
Manufacturer:
NXP Semiconductors
Description:
ARM Microcontrollers - MCU ARM968 768K FL/48K
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union