LPC2138 Philips Semiconductors, LPC2138 Datasheet - Page 24

no-image

LPC2138

Manufacturer Part Number
LPC2138
Description
(LPC2131 - LPC2138) Single-chip 16/32-bit microcontrollers 32/64/512 kB ISP/IAP Flash with 10-bit ADC and DAC
Manufacturer
Philips Semiconductors
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
LPC2138FB064
Manufacturer:
NXP/恩智浦
Quantity:
20 000
Part Number:
LPC2138FBD/01
Manufacturer:
NXP
Quantity:
5 000
Part Number:
LPC2138FBD64
Manufacturer:
NXP/恩智浦
Quantity:
20 000
Part Number:
LPC2138FBD64/01
Manufacturer:
NXP/恩智浦
Quantity:
20 000
Part Number:
LPC2138FBD64/01
0
Company:
Part Number:
LPC2138FBD64/01
Quantity:
10
Part Number:
LPC2138FBD64/01+151
Manufacturer:
NXP/恩智浦
Quantity:
20 000
Part Number:
LPC2138FBD64/01,11
Manufacturer:
NXP Semiconductors
Quantity:
10 000
Part Number:
LPC2138FBD64/01,11
Manufacturer:
NXP
Quantity:
160
Part Number:
LPC2138FBD64/01,15
Manufacturer:
NXP
Quantity:
800
Part Number:
LPC2138FBD64/01,15
Manufacturer:
NXP Semiconductors
Quantity:
10 000
Part Number:
LPC2138FBD64/01,15
Manufacturer:
NXP
0
Part Number:
LPC2138FBD64/01,15
Manufacturer:
NXP
0
Part Number:
LPC2138FBD64/01,15
Manufacturer:
NXP/恩智浦
Quantity:
20 000
Part Number:
LPC2138FBD64/01,151
Quantity:
9 999
Part Number:
LPC2138FHN64
Manufacturer:
NXP
Quantity:
100
Company:
Part Number:
LPC2138FHN64
Quantity:
630
Philips Semiconductors
9397 750 14868
Preliminary data sheet
6.20.1 Features
6.20 Pulse width modulator
The PWM is based on the standard Timer block and inherits all of its features, although
only the PWM function is pinned out on the LPC2131/2132/2134/2136/2138. The Timer is
designed to count cycles of the peripheral clock (PCLK) and optionally generate interrupts
or perform other actions when specified timer values occur, based on seven match
registers. The PWM function is also based on match register events.
The ability to separately control rising and falling edge locations allows the PWM to be
used for more applications. For instance, multi-phase motor control typically requires three
non-overlapping PWM outputs with individual control of all three pulse widths and
positions.
Two match registers can be used to provide a single edge controlled PWM output. One
match register (MR0) controls the PWM cycle rate, by resetting the count upon match.
The other match register controls the PWM edge position. Additional single edge
controlled PWM outputs require only one match register each, since the repetition rate is
the same for all PWM outputs. Multiple single edge controlled PWM outputs will all have a
rising edge at the beginning of each PWM cycle, when an MR0 match occurs.
Three match registers can be used to provide a PWM output with both edges controlled.
Again, the MR0 match register controls the PWM cycle rate. The other match registers
control the two PWM edge positions. Additional double edge controlled PWM outputs
require only two match registers each, since the repetition rate is the same for all PWM
outputs.
With double edge controlled PWM outputs, specific match registers control the rising and
falling edge of the output. This allows both positive going PWM pulses (when the rising
edge occurs prior to the falling edge), and negative going PWM pulses (when the falling
edge occurs prior to the rising edge).
Provides Seconds, Minutes, Hours, Day of Month, Month, Year, Day of Week, and Day
of Year.
Can use either the RTC dedicated 32 kHz oscillator input or clock derived from the
external crystal/oscillator input at XTAL1. Programmable Reference Clock Divider
allows fine adjustment of the RTC.
Dedicated power supply pin can be connected to a battery or the main 3.3 V.
Seven match registers allow up to six single edge controlled or three double edge
controlled PWM outputs, or a mix of both types.
The match registers also allow:
– Continuous operation with optional interrupt generation on match.
– Stop timer on match with optional interrupt generation.
– Reset timer on match with optional interrupt generation.
Rev. 02 — 15 April 2005
LPC2131/2132/2134/2136/2138
Single-chip 16/32-bit microcontrollers
© Koninklijke Philips Electronics N.V. 2005. All rights reserved.
24 of 41

Related parts for LPC2138