NXP Cortex -M0 LPC1100L Design with a Cortex -M0 in a DIP packageASEE Tech Session Sergio Scaglia (NXP Semiconductors)August 2012
2
Agenda
NXP Microcontroller Portfolio
Cortex M0
LPC1100L Family
Support/Resources
Hands-On Lab
Questions
3
NXP is a leader in ARM Flash MCUs
Clear strategy: 100% focus on ARM
Top performance through leading technology & architecture
Design flexibility through pin- and software-compatible solutions
Scalable memory sizes Widest range of peripherals
Unlimited choice through complete families for multiple cores
3
4
8-bit 16-bit 32-bit DSP
cost performance
NXP MCU the only complete ARM range of Cortex-M0, Cortex-M3 and Cortex-M4 processors
NXP ARM Cortex-M Continuum
Cortex-M4Cortex-M3Cortex-M0
True 8/16-bit replacement- low power, low cost, more performance
High performance for communication and control- USB, Ethernet, CAN, and much more
Advanced Digital Signal control- Floating point unit- Dual-core options
Over 250 different ARM based microcontrollers available!!
Entry levelCortex-M0
Fully featured Cortex-M4
(* Recommended price at 10kpcs)
4
5
Cortex-M4Up to 204 MHz
Cortex-M4Up to 204 MHz
Rapidly growing family of ARM Cortex-M MCUs Check pin- and software compatible options: www.nxp.com/microcontrollers
LPC4300LPC4300
Cortex-M3Up to 180MHz
Cortex-M3Up to 180MHz
LPC1300LPC1300
LPC1700LPC1700
LPC1800LPC1800
USB solution, incl. on-chip USB drivers
High-performance with USB, Ethernet, LCD, and more
Memory options up to 1MB flash, 200k SRAM
High Performance Dual Core Cortex-M4/M0
5
LPC4000LPC4000 FPU and DSP extensions
6
Cortex-M0 was designed to replace 8/16-bit architectures
ARMs smallest, lowest-power, and most energy-efficient 32-bit MCU core to date
Simplicity! Small instruction set keeps silicon area and gate count similar to traditional 8/16-bit MCUs
NXPs Cortex -M0 True 8/16-bit replacement
6
7
Widest Selection of Cortex -M0 Packages
NXP offers the widest selection of packages for Cortex-M0 devices
Worlds first low-pin-count 32-bit ARM packages
Worlds smallest 32-bit ARM MCU 2 x 2 mm2
Package CSP16 QFN33 QFN33 BGA48 QFP48 QFP64 QFP100 SO20 TSSOP20 TSSOP28 DIP28
Width(mm)
2 5 7 4.5 7 10 14 8 5 5 14
Length(mm)
2 5 7 4.5 7 10 14 13 7 10 35
Height(mm)
0.60 .85 .85 0.7 1.40 1.40 1.40 2.45 0.95 0.95 4.00
Sample Picture
8
32K Flash, up to 10K SRAM, up to 4K EEPROM
LQFP64 package offering
Platform for mbed
32K Flash, 6K SRAM
Low cost USB
Platform for LPCXpreso
USB Solutions for Cortex-M0
LPC11U1x
LPC11U3x
LPC11U2x
Pin-to-
Pin Co
mpatib
le
40-128K Flash, up to 10K SRAM, up to 4K EEPROM
Small sector size (256 bytes)
LQFP64 package offering
LPC134x
Up to 64K Flash, up to 10K SRAM, up to 4K EEPROM
Small sector size (256 bytes)
LQFP64 package offering
8
9
ARM Cortex -M0 Re-defining 32-bit migration
2-10x higher performance than 8/16-bit MCUs
40-50% smaller code size than 8/16-bit MCUs
2-3x power saving compared to 8/16-bit MCUs
Pin compatible options from M0 to M3
ARM s smallest, lowestsmallest, lowestsmallest, lowestsmallest, lowest----power, power, power, power, and most energyand most energyand most energyand most energy----efficient 32efficient 32efficient 32efficient 32----bitbitbitbit----processor processor processor processor core to date
10
CoreMark Benchmarks Performance
CoreMark Performance
LPC1100L 16-bitMSP430
8-bitATMega
0.2
0.4
0.6
0.8
1.0
1.2
1.4
1.6
Cor
eMar
kS
core
2-10x higher performance than 8/16-bit MCUs
ARM Cortex-M 8-bit or 16-bit
Pow
er
Pow
er
Time Time
EN
ER
GY
E
FF
ICIE
NT
EN
ER
GY
C
OS
T
http://www.arm.com/products/processors/cortex-m/index.php
10
11
8- vs. 16-bit vs. Cortex -M0 Current Comparison
12
Cortex -M0 Has Lower Power Consumption
Cortex-M0 runs at a much slower clock frequency for the same required performance
Cortex-M0 can sleep most of the time, or spare the resource for handling additional tasks
13
Superior Code Density (e.g. 16 -bit Multiply)8888----bit (8051) bit (8051) bit (8051) bit (8051) 16161616----bit (MSP430)bit (MSP430)bit (MSP430)bit (MSP430) ARM CortexARM CortexARM CortexARM Cortex----M0M0M0M0
MOV A, XL ; 2 bytesMOV B, YL ; 3 bytesMUL AB; 1 byteMOV R0, A; 1 byteMOV R1, B; 3 bytesMOV A, XL ; 2 bytesMOV B, YH ; 3 bytesMUL AB; 1 byteADD A, R1; 1 byteMOV R1, A; 1 byteMOV A, B ; 2 bytesADDC A, #0 ; 2 bytesMOV R2, A; 1 byteMOV A, XH ; 2 bytesMOV B, YL ; 3 bytes; 1 byteADD A, R1; 1 byteMOV R1, A; 1 byteMOV A, B ; 2 bytesADDC A, R2 ; 1 bytesMOV R2, A; 1 byteMOV A, XH ; 2 bytesMOV B, YH ; 3 bytesMUL AB; 1 byteADD A, R2; 1 byteMOV R2, A; 1 byteMOV A, B ; 2 bytesADDC A, #0 ; 2 bytesMOV R3, A; 1 byte
MOV R4,&0130hMOV R5,&0138hMOV SumLo,R6 MOV SumHi,R7 (Operands are moved to and from a memory mapped hardware multiply unit)
MULS r0,r1,r0
Time: 48 clock cyclesCode size: 48 bytes
Time: 8 clock cyclesCode size: 8 bytes
Time: 1 clock cycleCode size: 2 bytes
28
Instructions4
Instructions1 1 1 1
Instruction
14
CoreMark Benchmarks Code Size
http://www.arm.com/products/processors/cortex-m/index.php
Code Size Comparison
LPC1100L 16-bitMSP430
8-bitATMega
2000
4000
6000
8000
10000
12000
14000
16000
18000
20000
Byt
es
40-50% smaller code size than 8-/16-bit http://www.coremark.org
15
Superior Code Density
16
32
48
64
Instruction Size for Various Processors
8051 PIC18 PIC24 MSP430/MSP430XLeading to superior code density:
In Cortex-M0 all instructions (except BL) are 16-bit wide instructions
Over 64K of address space, 8- and 16- processors have to introduce paging leading to extra overhead in code
Efficiency of the Cortex-M0 instruction set (next slide)
Cortex-M0
16
LPC1100L in Low -Pin-Count PackagesCortex-M0 Core up to 50 MHz
Lowest Active Current 130 uA/MHz
(LPC1100XL 110 uA/MHz)
Memory: Up to 32 KB on-chip flash
Up to 4 KB SRAM
Peripherals U(S)art (1), SPI/SSP (1), I2C (1)
4x general purpose Timers with PWM
10-bit 5-channel ADC
Programmable WDT and WD Oscillator
+/- 1 % accuracy, 12 MHz IRC Oscillator
Single power supply (1.8 V to 3.6 V)
SO, TSSOP, DIP package options
17
Important Features for 8/16 -bit MCU Customers
Timers with PWM Generation For each timer, up to four match registers can be configured as PWM, each timer supports up to three match outputs as single edge controlled PWM outputs;
Dynamic System Clock Switching Change frequency on the fly depending on processing demand. The LPC1100 current consumption at 50 MHz is specified at 7mA. This can be reduced to a little over 130uA when running at 1 MHz on the low-power internal oscillator;
Clock Output Clock output with divider can reflect the system oscillator clock, IRC clock, CPU clock, and the Watchdog clock. Output can source downstream devices such as other microcontrollers, CPLD or FPGA;
Interrupt via Any GPIO Any GPIO pins can be used as Edge and Level Sensitive interrupt sources;
Programmable Pull Up/Down/Open Drain Internal pull-up/pull-down resistor, pseudo open drain or bus keeper function;
Enhanced GPIO Pin Manipulation Capable of simultaneously reading Bit/Byte/Word or toggling up to 22 I/Os per instruction
18
Low -Pin-Count Package Options
Final Part Number SRAM Flash Package Pin Count I2C SPI UART 16b Timer 32b Timer ADC GPIO
LPC1110FD20 1 4 SO 20 1 1 1 2 2 10b, 5ch 16
LPC1111FDH20 /002 2 8 TSSOP 20 1 1 1 2 2 10b, 5ch 16
LPC1112FD20 /102 4 16 SO 20 1 1 1 2 2 10b, 5ch 16
LPC1112FDH20 /102 4 16 TSSOP 20 0 1 1 2 2 10b, 5ch 14
LPC1112FDH28 /102 4 16 TSSOP 28 1 1 1 2 2 10b, 6ch 22
LPC1114FDH28 /102 4 32 TSSOP 28 1 1 1 2 2 10b, 6ch 22
LPC1114FN28 /102 4 32 DIP 28 1 1 1 2 2 10b, 6ch 22
SO20 TSSOP20(2 Options)
TSSOP28 DIP28
19
Why Choose LPC Package Devices from NXP
Manufacturing Efficiency and Supply Guarantee NXP ships over three billion Low-Pin-Count packages per year, no back-
end capacity constraints High manufacturing efficiency and cost leverage for these MCU devices
Clear Migration Path Firmware compatible with other NXP Cortex-M0 devices Firmware re-usable when upgrade to NXP Cortex-M3 devices
$0.49 Today Low-Pin-Count devices starts at $0.49 for 10Kpc via distribution
20
Targeted Applications
Consumer Electronics Human Input Devices (e.g. mouse) Simple motor control (e.g. fan control) Toys Small appliances
Industrial Control Thermostat Lighting / Home Security
Medical Portable health care products
More
21
Where to get started?
www.nxp.com/microcontrollers MCU homepage
www.nxp.com/lpczone Product updates and training
Top Related