LPC2917/01 NXP [NXP Semiconductors], LPC2917/01 Datasheet - Page 43

no-image

LPC2917/01

Manufacturer Part Number
LPC2917/01
Description
ARM9 microcontroller with CAN and LIN
Manufacturer
NXP [NXP Semiconductors]
Datasheet
NXP Semiconductors
LPC2917_19_01_2
Preliminary data sheet
6.14.5.2 Synchronizing the PWM counters
6.14.5.3 Master and slave mode
6.14.5.4 Pin description
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
these clocks.
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
LPC2917/2919/01. PWM 0 can be master over PWM 1; PWM 1 can be master over
PWM 2, etc.
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).
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/2919/01.
to PWM3 pins.
Table 23.
Symbol
PWMn CAP[0]
PWMn CAP[1]
PWMn CAP[2]
PWMn MAT[0]
PWMn MAT[1]
PWMn MAT[2]
PWMn MAT[3]
PWMn MAT[4]
PWMn MAT[5]
PWMn TRAP
Figure 8
PWM pins
for details of the connections of the PWM modules within the MSCSS in the
Pin name
PCAPn[0]
PCAPn[1]
PCAPn[2]
PMATn[0]
PMATn[1]
PMATn[2]
PMATn[3]
PMATn[4]
PMATn[5]
TRAPn
Rev. 02 — 17 June 2009
Direction
IN
IN
IN
OUT
OUT
OUT
OUT
OUT
OUT
IN
LPC2917/01; LPC2919/01
Section 6.15
Description
PWM n capture input 0
PWM n capture input 1
PWM n capture input 2
PWM n match output 0
PWM n match output 1
PWM n match output 2
PWM n match output 3
PWM n match output 4
PWM n match output 5
PWM n trap input
ARM9 microcontroller with CAN and LIN
for information on generation of
Table 23
© NXP B.V. 2009. All rights reserved.
shows the PWM0
43 of 86

Related parts for LPC2917/01