LPC2917_19_1 © NXP B.V. 2008. All rights reserved.
Product data sheet Rev. 01 — 31 July 2008 31 of 67
NXP Semiconductors
LPC2917/19
ARM9 microcontroller with CAN and LIN
control. Several other trigger possibilities are provided for the ADCs (external, cascaded
or following a PWM). The capture inputs of both timers can also be used to capture the
start pulse of the ADCs.
The PWMs can be used to generate waveforms in which the frequency, duty cycle and
rising and falling edges can be controlled very precisely. Capture inputs are provided to
measure event phases compared to the main counter. Depending on the applications,
these inputs can be connected to digital sensor motor outputs or digital external signals.
Interrupt signals are generated on several events to closely interact with the CPU.
The ADCs can be used for any application needing accurate digitized data from analog
sources. To support applications like motor control, a mechanism to synchronize several
PWMs and ADCs is available (sync_in and sync_out).
Note that the PWMs run on the PWM clock and the ADCs on the ADC clock, see
Section 8.8.4.
8.7.2.1 Synchronization and trigger features of the MSCSS
The MSCSS contains two internal timers to generate synchronization and carrier pulses
for the ADCs and PWMs. Figure 8 shows how the timers are connected to the ADC and
PWM modules.
Fig 7. Modulation and sampling control subsystem block diagram
002aad348
PWM0 MAT[5:0]
PWM1 MAT[5:0]
PWM2 MAT[5:0]
PWM3 MAT[5:0]
ADC
1
3.3 V
ADC
2
3.3 V
PWM
0
MSCSS
TIMER 1
PWM
CONTROL
CARRIERS
MSCSS
TIMER 0
ADC
CONTROL
SYNCS
AHB2APB
BRIDGE
PWM
1
PWM
2
PWM
3
AHB
system bus
APB sub system bus
(to all sub blocks)
ADC2 IN[7:0]
ADC2_EXT_START
ADC1 IN[7:0]
ADC1_EXT_START
ADC clock
PWM0 TRAP
PWM0 CAP[2:0]
PWM1 TRAP
PWM1 CAP[2:0]
PWM2 TRAP
PWM2 CAP[2:0]
PWM3 TRAP
PWM3 CAP[2:0]
LPC2917_19_1 © NXP B.V. 2008. All rights reserved.
Product data sheet Rev. 01 — 31 July 2008 32 of 67
NXP Semiconductors
LPC2917/19
ARM9 microcontroller with CAN and LIN
Each ADC module has four start inputs. An ADC conversion is started when one of the
start ADC conditions is valid:
Start 0: ADC external start input pin; can be triggered at a positive or negative edge.
Note that this signal is captured in the ADC clock domain
Start 1: If the ‘preceding’ ADC conversion is ended, the sync_out signal starts an ADC
conversion. This signal is captured in the MSCSS subsystem clock domain, see
Section 8.7.5.2. As can be seen in Figure 8, the sync_out of ADC1 is connected to the
start 1 input of ADC2 and the sync_out of ADC2 is connected to the start 1 input of
ADC1.
Start 2: The PWM sync_out can start an ADC conversion. The sync_out signal is
synchronized to the ADC clock in the ADC module. This signal is captured in the
MSCSS subsystem clock domain.
Start 3: The match outputs from MSCSS timer 0 are connected to the start 3 inputs of
the ADCs. This signal is captured in the ADC clock domain.
The PWM_sync and trans_enable_in of PWM 0 are connected to the 4th match output of
MSCSS timer 0 to start the PWM after a pre-programmed delay. This sync signal is
cascaded through all PWMs, allowing a programmable delay offset between subsequent
PWMs. The sync delay of each PWM can be programmed synchronously or with a
different phase for spreading the power load.
The match outputs of MSCSS timer 1 (PWM control) are connected to the corresponding
carrier inputs of the PWM modules. The carrier signal is modulated with the PWM-
generated waveforms.
The pause input of MSCSS timer 1 (PWM Control) is connected to an external input pin.
Generation of the carrier signal is stopped by asserting the pause of this timer.
The pause input of MSCSS timer 0 (ADC Control) is connected to a ‘NOR’ of the
PWM_sync outputs (start 2 input on the ADCs). If the pause feature of this timer is
enabled the timer only counts when one of the PWM_sync outputs is active HIGH. This
feature can be used to start the ADC once every x PWM cycles, where x corresponds to
the value in the match register of the timer. In this case the start 3 input of the ADC should
be enabled (start on match output of MSCSS timer 0).
The signals connected to the capture inputs of the timers (both MSCSS timer 0 and
MSCSS timer 1) are intended for debugging.
LPC2917_19_1 © NXP B.V. 2008. All rights reserved.
Product data sheet Rev. 01 — 31 July 2008 33 of 67
NXP Semiconductors
LPC2917/19
ARM9 microcontroller with CAN and LIN
8.7.3 MSCSS pin description
The pins of the LPC2917/19 MSCSS associated with the two ADC modules are described
in Section 8.7.5.3. Pins directly connected to the four PWM modules are described in
Section 8.7.6.5: pins directly connected to the MSCSS timer 1 module are described in
Section 8.7.7.3.
8.7.4 MSCSS clock description
The MSCSS is clocked from a number of different sources:
(1) Timers:
c0 to c3 = capture in 0 to capture in 3
m0 to m3 = match out 0 to match out 3
(2) ADCs:
st0 to st3 = start 0 to start 3 inputs
s0 to s3 = sync_out 0 to sync_out 3
(3) PWMs:
c_i = carrier in
s_i = sync_in
s_o = sync_out
TE_i = trans_enable_in
TE_o = trans_enable_out
Fig 8. Modulation and sampling-control subsystem synchronization and triggering
002aad347
MSCSS PAUSE
PWM0 TRAP
PWM1 TRAP
PWM2 TRAP
PWM3 TRAP
ADC2_EXT_START
pause_0
pause_0
so2
so1
so0
MSCSS
(1)
TIMER 0
MSCSS
(1)
TIMER 1
ADC1_EXT_START
c0
c1
c2
c3
m0
pause
m1
m2
m3
c0
c1
c2
c3
m0
pause
m1
m2
m3
st0
so
ADC1
(2)
st1
st2
st3
st0
so
ADC2
(2)
st1
st2
st3
s_i
s_o
TE_o
PWM0
(3)
TE_i
c_i
trap
s_i
s_o
TE_o
PWM1
(3)
TE_i
c_i
trap
s_i
s_o
TE_o
PWM2
(3)
TE_i
c_i
trap
s_i
s_o
TE_o
PWM3
(3)
TE_i
c_i
trap

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