Professional Documents
Culture Documents
Contents
Introduction Memory support Key system blocks Peripheral support Tools
Introduction
Key Family Features Series Overview Bridging ARM7 and Cortex-M3 Block Diagram Cortex-M3 Overview
3
LPC17xx Series
Smooth migration from ARM7 Unique Implementations:
MPU NVIC WIC Flash Accelerator DMA
Tailored for communication with 15 serial interfaces Low power operation Industrys first Cortex-M3 implementation running at 100MHz
4
Series Overview
10
11
Enhanced Instructions
Single cycle multiply & 2-7 cycle hardware divide If then construct targeted for C compiler
12
Bit-Band Regions
13
14
Memory Support
Internal Memories Flash Accelerator Booting Memory Protection Unit (MPU)
15
Memory Support
16
On-Chip SRAM
Total 64 KB 32 KB SRAM accessible by the CPU and DMA controller on a higher speed bus Two additional 16 KB SRAM separate slave port on the AHB multilayer matrix. Allows CPU and DMA accesses to be spread over 3 separate RAMs that can be accessed simultaneously.
On-Chip ROM
8 KB ROM Flash program/erase APIs
17
Flash Accelerator
18
Booting
19
20
http://infocenter.arm.com/help/topic/com.arm.doc.ddi0337e/DDI0337E_cortex_m3_r1p1_trm.pdf
21
22
Main oscillator
Clock source for the CPU, with or without using the PLL. The main oscillator also provides the clock source for the dedicated USB PLL Operates at frequencies of 1 MHz to 25 MHz
RTC oscillator
Clock source for the RTC block, the main PLL, and subsequently the CPU. 1 Hz clock to RTC
23
24
Clocking Explained
25
Clock OUT
26
27
28
Stack Operations
The processor automatically stacks its state on exception entry and unstacks this state on exception exit, with no instruction overhead
29
DMA Support
AHB Bus master Eight DMA channels with a four-word FIFO per channel SSP, I2S, UART, ADC & DAC. DMA can also be triggered by a timer match condition Single and burst requests supported
30
Peripheral Support
15 Serial Interfaces Timers Motor Control Analog Blocks General Purpose IO
31
15 Serial Interfaces
10100101 10110110 01111000 001 00 1 0 0 00 11 01 01
1010010110110110
32
33
I2C Interface
SDA SCL
34
I2S
Supports 3-wire data transmit and receive OR 4-wire combined transmit and receive connections Audio Master Clock input/output (used on many I2S codecs) The I2S input and output can each operate independently in both master and slave mode.
Audio Codec
Digital Interface
LPC1700
CK SD
CK SD WS
NXP
WS MCLK
MCLK
Analog Interface
35
USB
USB 2.0 Full Speed (12 Mbps) Device and On-The-Go/Open Host Control Interface. Built-in on-chip PHY for Device/Host functions Dedicated DMA controller
38
Timers
Four General Purpose timers Watchdog timer Repetitive interrupt timer PWM (Timer operation) Systick timer
39
Timers (1)
General Purpose Timers
Total 8 capture inputs, and 4 external match outputs Timer as counter or timer mode. Selected timer events can selectively generate DMA requests. This allows for timed memory-to-memory transfers. Match output can toggle, go high, go low or do nothing
Watchdog Timer
Enabled by software but requires a hardware reset or a Watchdog reset/interrupt to be disabled Can be used in Deep Sleep mode Debug mode (interrupt)
40
Timers (2)
Repetitive Interrupt Timer (RIT)
An interrupt is generated when the counter value equals the compare value, after masking
PWM timer
Seven match registers allow up to 6 single edge controlled or 3 double edge controlled PWM outputs, or a mix of both types. The match registers also several operations at match May be used as a standard timer if the PWM mode is not enabled Two 32 bit capture channels take a snapshot of the timer value when an input signal transitions. A capture event may also optionally generate an interrupt
41
Timers (3)
Systick Timer
24-bit timer that counts down to zero and provides 10 millisecond time interval between interrupts Can be clocked internally by the CPU clock or by a clock input from a pin (STCLK)
42
43
Channel 1
Channel 2
44
45
46
QEI Explained
47
INX CLK
Position Counter
Digital Filter
Velocity Capture
Quad Encoder
CLK
Velocity Compare
Low Velocity Interrupt
CLK
Index Counter
Index Compare
Revolution Interrupt
Velocity Timer
RST Velocity Interrupt
Index Interrupt
48
12-bit ADC
ADDR7
49
Power-on-Reset (POR)
BOD
Two thresholds- 2.65V & 2.95V
50
RTC Domain
51
RTC Features
Measures the passage of time to maintain a calendar and clock
Provides seconds, minutes, hours, day of month, month, year, day of week, and day of year
Ultra-low power design to support battery powered systems. Less than 1 uA required for battery operation
Uses power from the CPU power supply when it is present
20 bytes of Battery-backed storage and RTC operation when power is removed from the CPU Dedicated 32 kHz ultra low power oscillator with dedicated battery power supply pin RTC power supply is isolated from the rest of the chip RTC will work down as low as 2.1 V
52
53
54
Power Management
Power Domains Power down modes Wakeup Interrupt Controller (WIC)
55
Power domains
Single 3.3 V power supply (2.4 V to 3.6 V)
VDD(reg)(3V3) on-chip voltage regulator VDD(3V3) I/O pads
56
Deep-Sleep
Main oscillator and all internal clocks except the IRC are stopped Flash memory is in standby, ready for immediate use
57
Deep power-down
All clocks including IRC are stopped. Internal voltage is turned off Complete system state is lost, only special registers in the RTC domain are preserved Exit >>> reset, external pin, or RTC Alarm
58
59
Tools
60
61
62
IDEs
JTAG debuggers
All debuggers supporting Cortex-M3
63
64