Industrial Reference Design Platform: Microcontroller Core
Industrial Reference Design Platform: Microcontroller Core
Microcontroller Core
Release 1.0
LPC2300/2400 series members
LPC2478
LPC2470
• 96K SRAM
• 512KB Flash
LPC2468
LPC2378 • Ethernet (MII+RMII)
LPC2368 • USB FS Device
Functionality
2
TSC Americas – IRD Platform – Microcontroller Core
IRD LPC2468 Block Diagram
64
64 kB 512
512 kB
RST
Vdd
Vss
kB
TRST
kB
TMS
TDO
X1
X2
TCK
FAST
GPIO
TDI
SRAM
SRAM FLASH
FLASH
System
System
Test/Debug Trace
Trace PLL
PLL
FAST
FAST SRAM
SRAM Memory Functions
Functions
Memory CS 3:0
GPIO
GPIO Controller
Controller Accelerator Brownout
Accelerator ARM
ARM7TDMI-S
7TDMI-S Brownout External
External A 23:0
System Clock Detect
Detect BLS 3:0
Power-On Memory
Memory
Local Bus Power-On
Reset Controller
OE,WE
Reset Controller D 31:0
3x
3x II2CC
2
SPI,
SPI, SSP
SSP SSP
SSP II22SS 4x
4x UART
UART 2x
2x CAN
CAN 2x
2x ADC
ADC DAC
DAC GPIO
GPIO 4x
4x Timer
Timer PWM
PWM
3
TSC Americas – IRD Platform – Microcontroller Core
ARM7TDMI-S
4
TSC Americas – IRD Platform – Microcontroller Core
ARM7 Registers & Modes of Operation
User and System
r0 • Seventeen 32-bit Registers
r1 • Four special purpose registers
r2 • Stack Pointer
r3 • Link Register
r4
• Program Counter
r5
• Program Status Register
r6
• Seven Modes of Operation
r7
r8
•Software selectable
r9
•Each mode has its own set of banked registers
r10
• Modes of Operation
r11 User Supervisor
r12 System Abort
r13 (SP)
FIQ Undefined
r14 (LR)
r15 (PC) IRQ
CPSR
5
TSC Americas – IRD Platform – Microcontroller Core
ARM7 Registers & Modes of Operation
User and System
r0
r1
r2
r3
r4
r5
Banked registers
r6
r7 FIQ IRQ Supervisor Abort Undefined
r8 r8_fiq
r9 r9_fiq
r10 r10_fiq
r11 r11_fiq
r12 r12_fiq
r13 (SP) r13_fiq (SP) r13_irq (SP) r13_svc (SP) r13_abt (SP) r13_und (SP)
r14 (LR) r14_fiq (LR) r14_irq (LR) r14_svc (LR) r14_abt (LR) r14_und (LR)
r15 (PC)
6
TSC Americas – IRD Platform – Microcontroller Core
Vectored Interrupt Controller (VIC)
1
Table of
2 Assert
Interrupt
interrupt Service 3
sources Request
Load an ISR 4 Notify CPU that a
peripheral is
address into
requesting
VIC hardware attention
Enable
Register 5
Change core
operating mode Load PC with
ISR address
6
Perform ISR
Actions
7
Return to prior
operating mode
7
TSC Americas – IRD Platform – Microcontroller Core
LPC23xx/24xx
Interrupt Sources and Vector Assignments
8
TSC Americas – IRD Platform – Microcontroller Core
LPC2468
Memory Map
Ethernet w/DMA & USB (OTG, OHCI w PHY)
4.0 GB 0xFFFF FFFF
AHB Peripherals
0xF000 0000
Timers, PWM, I2C, SPI, I2S, UARTs, CAN,
APB Peripherals 0xE000 0000 SSP, DAC, ADC
0xDFF FFFF
Flash Memory
0.0 GB 0x0000 0000
9
TSC Americas – IRD Platform – Microcontroller Core
LPC2468
System Functions
• Internal Reference Clock (IRC)
• External Clock ( X1/X2)
• Real Time Clock (RTXC1/RTXC2)
• Phase-Locked Loop
• Peripheral & CPU Clock
• Power Control For Each Peripheral
• Power-On/Reset
• Brown-Out Detection
1
0
TSC Americas – IRD Platform – Microcontroller Core
LPC2468
Clock Subsystem
CCLK & PLLCLK
System clock (PLLCLK) can be derived USB
Clock
usbclk
(48 MHz)
USB Block
1
1
TSC Americas – IRD Platform – Microcontroller Core
Independent Peripheral Clocks (PCLK)
PCLKSELx allows
four individual clock
selections for each
peripheral
1
2
TSC Americas – IRD Platform – Microcontroller Core
Watchdog Timer Clock Selection
1
3
TSC Americas – IRD Platform – Microcontroller Core
LPC2468
Power Control
Idle Mode – clock to the core is stopped
– Execution of instructions is suspended until an interrupt or reset occurs
Sleep Mode – PLL is turned off
– Processor state and registers, peripheral registers and RAM values are
preserved
• Flash is left in standby mode
• LPC2468 resumes operation when certain types of interrupts not requiring a
clock occur or a reset happens
Power down Mode – All clocks except for the RTC* are turned off
– Flash memory is turned off
• Minimal power consumption
• LPC2468 wakes up when certain types of interrupts not requiring clock occur
or a reset
* RTC clock pins and VBAT pin connected and RTC mode enabled
1
4
TSC Americas – IRD Platform – Microcontroller Core
Power Control for each Peripheral
1
5
TSC Americas – IRD Platform – Microcontroller Core
Reset
Reset source can be
– External power applied
– External Reset pin
– Watchdog Timer Reset
– Brown-Out Detected
• VDD(3V3) below 2.95V
– Ethernet MAC Wake up
– CAN Wake up
– USB need clock wake up
– Real Time Clock wake up
– External Interrupt wake up
– GPIO Port 0 wake up
– GPIO Port 2 wake up
Brown-Out Detect
– The LPC2468 includes a 2 stage monitoring of
the voltage on VDD(3V3)
1
6
TSC Americas – IRD Platform – Microcontroller Core
External Memory Controller (EMC)
Chip Selects
1
7
TSC Americas – IRD Platform – Microcontroller Core
External Memory Controller
Static Memory Interfacing
1
8
TSC Americas – IRD Platform – Microcontroller Core
External Memory Controller
Dynamic Memory Interfacing
1
9
TSC Americas – IRD Platform – Microcontroller Core
I/O Pin Selection
Each I/O pin can be used for one of several functions
Example:
P0.2 = TXD0 (UART0 TXD)
P0.3 = RXD0 (UART0 RXD)
Other pin selects are GPIO
PINSEL0 =0x00000050
2
0
TSC Americas – IRD Platform – Microcontroller Core
Memory Accelerator Module (MAM)
A patented feature of the LPC2000 family
► Near zero wait state performance from Flash memory
► Independent verification via EEMBC benchmark
► Up to 40% faster than other ARM7 TDMI-S competitors • NXP LPC2129
► Other ARM7 TDMI-S implementations require execution from
RAM to get high performance •Competitor A
► Pre-Fetch Buffer
► Stores up to four ARM or eight Thumb instructions •Competitor B
Data Bypass Buffer
1.8
►
► Stores Flash memory flagged as data 1.6
instructions
1 MicroA
MicroN
0.8 MicroC
0.6
0.4
0.2
autcor
autcor
conven
conven
fbital
fbital
viterbi
viterbi
2
1
TSC Americas – IRD Platform – Microcontroller Core
2
2
TSC Americas – IRD Platform – Microcontroller Core