LPC2917_19_1 © NXP B.V. 2008. All rights reserved.
Product data sheet Rev. 01 — 31 July 2008 34 of 67
NXP Semiconductors
LPC2917/19
ARM9 microcontroller with CAN and LIN
CLK_SYS_MSCSS_A clocks the AHB side of the AHB-to-APB bus bridge
CLK_MSCSS_APB clocks the subsystem APB bus
CLK_MSCSS_MTMR0/1 clocks the timers
CLK_MSCSS_PWM0..3 clocks the PWMs.
Each ADC has two clock areas; a APB part clocked by CLK_MSCSS_ADCx_APB (x = 1
or 2) and a control part for the analog section clocked by CLK_ADCx = 1 or 2), see
Section 7.2.2.
All clocks are derived from the BASE_MSCSS_CLK, except for CLK_SYS_MSCSS_A
which is derived form BASE_SYS_CLK, and the CLK_ADCx clocks which are derived
from BASE_CLK_ADC. If specific PWM or ADC modules are not used their corresponding
clocks can be switched off.
8.7.5 Analog-to-digital converter
8.7.5.1 Overview
The MSCSS in the LPC2917/19 includes two 10-bit successive-approximation
analog-to-digital converters.
The key features of the ADC interface module are:
ADC1 and ADC2: Eight analog inputs; time-multiplexed; measurement range up to
3.3 V
External reference-level inputs
400 ksample/s at 10-bit resolution up to 1500 ksample/s at 2-bit resolution
Programmable resolution from 2-bit to 10-bit
Single analog-to-digital conversion scan mode and continuous analog-to-digital
conversion scan mode
Optional conversion on transition on external start input, timer capture/match signal,
PWM_sync or ‘previous’ ADC
Converted digital values are stored in a register for each channel
Optional compare condition to generate a ‘less than’ or an ‘equal to or greater than’
compare-value indication for each channel
Power-down mode
8.7.5.2 Description
The ADC block diagram, Figure 9, shows the basic architecture of each ADC. The ADC
functionality is divided into two major parts; one part running on the MSCSS Subsystem
clock, the other on the ADC clock. This split into two clock domains affects the behavior
from a system-level perspective. The actual analog-to-digital conversions take place in the
ADC clock domain, but system control takes place in the system clock domain.
A mechanism is provided to modify configuration of the ADC and control the moment at
which the updated configuration is transferred to the ADC domain.
The ADC clock is limited to 4.5 MHz maximum frequency and should always be lower than
or equal to the system clock frequency. To meet this constraint or to select the desired
lower sampling frequency the clock generation unit provides a programmable fractional
LPC2917_19_1 © NXP B.V. 2008. All rights reserved.
Product data sheet Rev. 01 — 31 July 2008 35 of 67
NXP Semiconductors
LPC2917/19
ARM9 microcontroller with CAN and LIN
system-clock divider dedicated to the ADC clock. Conversion rate is determined by the
ADC clock frequency divided by the number of resolution bits plus one. Accessing ADC
registers requires an enabled ADC clock, which is controllable via the clock generation
unit, see Section 8.8.4.
Each ADC has four start inputs. Note that start 0 and start 2 are captured in the system
clock domain while start 1 and start 3 are captured in the ADC domain. The start inputs
are connected at MSCSS level, see Section 8.7.2.1 for details.
8.7.5.3 ADC pin description
The two ADC modules in the MSCSS have the pins described below. The ADCx input pins
are combined with other functions on the port pins of the LPC2917/19. The VREFN and
VREFP pins are common for both ADCs. Table 20 shows the ADC pins.
8.7.5.4 ADC clock description
The ADC modules are clocked from two different sources; CLK_MSCSS_ADCx_APB and
CLK_ADCx (x = 1 or 2), see Section 7.2.2. Note that each ADC has its own CLK_ADCx
and CLK_MSCSS_ADCx_APB branch clocks for power management. If an ADC is
unused both its CLK_MSCSS_ADCx_APB and CLK_ADCx can be switched off.
Fig 9. ADC block diagram
002aad838
start 2start 0
CLK_ADCx_APB
(MSCSS sub-system clock)
CLK_ADCx
(ADC clock
up to 4.5 MHz)
APB system bus
ADC IRQ
analog inputs
start 1 start 3
sync_out
ADC DOMAIN
APB SUB-SYSTEM
DOMAIN
ADC
CONTROL
AND
REGISTERS
ADC
CONTROL
AND
REGISTERS
3.3 V
ADC
ANALOG
MUX
conversion data
update
configuration data
IRQ
ADC1 IN[0:7]
ADC2 IN[0:7]
Table 20. Analog to digital converter pins
Symbol Direction Description
ADCn IN[7:0] IN analog input for ADCn, channel 7 to channel 0 (n is 1 or 2)
ADCn_EXT_START IN ADC external start-trigger input (n is 1 or 2)
VREFN IN ADC LOW reference level
VREFP IN ADC HIGH reference level
LPC2917_19_1 © NXP B.V. 2008. All rights reserved.
Product data sheet Rev. 01 — 31 July 2008 36 of 67
NXP Semiconductors
LPC2917/19
ARM9 microcontroller with CAN and LIN
The frequency of all the CLK_MSCSS_ADCx_APB clocks is identical to
CLK_MSCSS_APB since they are derived from the same base clock
BASE_MSCSS_CLK. Likewise the frequency of all the CLK_ADCx clocks is identical
since they are derived from the same base clock BASE_ADC_CLK.
The register interface towards the system bus is clocked by CLK_MSCSS_ADCx_APB.
Control logic for the analog section of the ADC is clocked by CLK_ADCx, see also
Figure 9.
8.7.6 PWM
8.7.6.1 Overview
The MSCSS in the LPC2917/19 includes four PWM modules with the following features.
Six pulse-width modulated output signals
Double edge features (rising and falling edges programmed individually)
Optional interrupt generation on match (each edge)
Different operation modes: continuous or run-once
16-bit PWM counter and 16-bit prescale counter allow a large range of PWM periods
A protective mode (TRAP) holding the output in a software-controllable state and with
optional interrupt generation on a trap event
Three capture registers and capture trigger pins with optional interrupt generation on
a capture event
Interrupt generation on match event, capture event, PWM counter overflow or trap
event
A burst mode mixing the external carrier signal with internally generated PWM
Programmable sync-delay output to trigger other PWM modules (master/slave
behavior)
8.7.6.2 Description
The ability to provide flexible waveforms allows PWM blocks to be used in multiple
applications; e.g. automotive dimmer/lamp control and fan control. Pulse-width modulation
is the preferred method for regulating power since no additional heat is generated and it is
energy-efficient when compared with linear-regulating voltage control networks.
The PWM delivers the waveforms/pulses of the desired duty cycles and cycle periods. A
very basic application of these pulses can be in controlling the amount of power
transferred to a load. Since the duty cycle of the pulses can be controlled, the desired
amount of power can be transferred for a controlled duration. Two examples of such
applications are:
Automotive dimmer controller: The flexibility of providing waves of a desired duty cycle
and cycle period allows the PWM to control the amount of power to be transferred to
the load. The PWM functions as a dimmer controller in this application
Motor controller: The PWM provides multi-phase outputs, and these outputs can be
controlled to have a certain pattern sequence. In this way the force/torque of the
motor can be adjusted as desired. This makes the PWM function as a motor drive.

OM11014

Mfr. #:
Manufacturer:
NXP Semiconductors
Description:
LPC2919 EVAL BRD
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union