cortex-m4-lpc4370-introduction-training-pack_v3.pdf
TRANSCRIPT
High-Performance Data
Acquisition … on a Chip!
Introducing the
LPC4370 Microcontroller
Feature Overview
Competitive Analysis
Software & Tools
Overview
Applications and Solutions
Support, Pricing & Order Info
Today’s Data Acquisition Applications Require
Separate ICs for … Input, Processing, and Output
2
Today’s Data Acquisition Applications Require
Separate ICs for … Input, Processing, and Output
3
High-speed Data Input
(analog & digital)
ADC
SGPIO
analog
digital
camera SCT
Data &/or Signal
Processing
Core(s)
High-Speed Output
& Results Display
Ethernet
LCD
HS USB
Today’s Data Acquisition Applications Require
Separate ICs for … Input, Processing, and Output
4
High-speed Data Input
(analog & digital)
ADC
SGPIO
analog
digital
camera SCT
• Reduce bottlenecks
• Smaller footprint
• Lower BOM
• Lower power
consumption
• Reduced application
complexity
Introducing the LPC4370 Microcontroller
… a complete data acquisition solution on a single chip!
Data &/or Signal
Processing
Core(s)
High-Speed Output
& Results Display
Ethernet
LCD
HS USB
On a Single, Powerful Microcontroller,
LPC4370 Integrates…
5
On a Single, Powerful Microcontroller,
LPC4370 Integrates…
New 80-Msps, 12-bit ADC – fastest on an
MCU – for high-speed analog data conversion
6
On a Single, Powerful Microcontroller,
LPC4370 Integrates…
New 80-Msps, 12-bit ADC – fastest on an
MCU – for high-speed analog data conversion
Dedicated subsystem for handling
programmable digital I/O & pre- or post-processing
7
On a Single, Powerful Microcontroller,
LPC4370 Integrates…
New 80-Msps, 12-bit ADC – fastest on an
MCU – for high-speed analog data conversion
Dedicated subsystem for handling
programmable digital I/O & pre- or post-processing
Dual, 204-MHz cores – ample performance for
complex algorithms & data-intensive applications
8
On a Single, Powerful Microcontroller,
LPC4370 Integrates…
New 80-Msps, 12-bit ADC – fastest on an
MCU – for high-speed analog data conversion
Dedicated subsystem for handling
programmable digital I/O & pre- or post-processing
Dual, 204-MHz cores – ample performance for
complex algorithms & data-intensive applications
Large SRAM & flexible memory expansion to tailor memory type and size to application
requirements
9
On a Single, Powerful Microcontroller,
LPC4370 Integrates…
New 80-Msps, 12-bit ADC – fastest on an
MCU – for high-speed analog data conversion
Dedicated subsystem for handling
programmable digital I/O & pre- or post-processing
Dual, 204-MHz cores – ample performance for
complex algorithms & data-intensive applications
Large SRAM & flexible memory expansion to tailor memory type and size to application
requirements
Advanced peripherals – High-speed USB (with HS PHY) and Ethernet for high-
speed input / output
– Graphics LCD controller for results display
– More for timing, control, input, output
10
For Applications with High Speed
Data Acquisition Requirements Such As …
Spectrum analysis
Current measurement
Digital signal processing, digital
filtering
Industrial automation
Portable and analytical
instrumentation
Audio streaming/processing
Smart metering
And more
11
LPC4370
Feature Overview
LPC43x0 Family Delivers
13
Multi-core performance for complex
algorithms & data-intensive applications – Fastest Cortex-M4 core (204 MHz) on
market
– Cortex-M0 co-processor (204 MHz)
Flexible, scalable memory configurations reduce cost and future-proof designs
– Up to 264-kB SDRAM
– Add external low-cost QSPI Flash with SPIFI
– Expand external SRAM/SDRAM/Nor Flash
through external memory controller
Advanced peripherals to lower cost and
reduce design and board complexity – Dual Hi-Speed USB, HS USB PHY, free
USB libraries
– Ethernet MAC
– Graphics LCD controller, free graphics
library
– SCT, SGPIO
Packages: BGA256/180/100, LQFP208/144
Pin compatible to LPC1800
MEMORY
CORES
Multila
yer
Bus M
atr
ix
SRAM Up to 264 kB
ROM with ROM Drivers
SYSTEM
INTERFACES
HS USB 2.0 (2)
Ethernet MAC Graphic LCD
EMC
SD/MMC
CAN 2.0B (2)
SPIFI
SGPIO
GPDMA
GPIO (146)
SSP/SPI (3) I2C (2)
UART (4) I2S (2)
ARM Cortex-M4 Core
ARM Cortex-M0 Coprocessor
Audio PLL USB PLL
Windowed WDT System PLL
Clock Generation Power Mgmt
TIMERS
SCT
RTC
32-bit Timers (4)
QEI MCPWM
Alarm Timer
ANALOG
ADC (2) DAC
Floating Point Unit
New LPC4370 Family Adds…
New 80-Msps,12-bit ADC for the fastest
data conversion possible on MCU
Dedicated subsystem for handling
programmable digital I/O
– Offloads cores
– Includes SGPIO & SPI
– Driven by dedicated Cortex-M0
– Includes additional 18kB SRAM
Up to 282 kB SRAM
Packages: BGA256/100
14
Mu
ltila
yer
Bu
s M
atri
x
ANALOG
80-Msps ADC 6-channel, 12-bit
SYSTEM
Audio PLL USB PLL
Windowed WDT System PLL
Clock Generation Power Mgmt
TIMERS
SCT
RTC
32-bit Timers (4)
QEI MCPWM
Alarm Timer
ADC (2) DAC
CORES
ARM Cortex-M4 Core
ARM Cortex-M0 Coprocessor
SUBSYSTEM
SGPIO
ARM Cortex-M0
SRAM 16kB SRAM 2kB
SPI
INTERFACES
HS USB 2.0 (2)
Ethernet MAC Graphic LCD
EMC
SD/MMC
CAN 2.0B (2)
SPIFI
GPDMA
GPIO (146)
SSP/SPI (2) I2C (2)
UART (4) I2S (2)
MEMORY
SRAM Up to 264 kB
ROM with ROM Drivers
Floating Point Unit
Fast ADC, dedicated
peripheral handler
LCD
Ethernet
FS USB (LPC4000)
HS USB (4300) I2C, SPI, UARTs,
SPIFI, etc. Flash SRAM
LPC4000 120-MHz Cortex-M4, Cortex-M4F
LPC4300 204-MHz Cortex-M4F & 204-MHz Cortex-M0
LPC4370
LPC4000 & LPC4300 (Cortex-M4) Families
15
LPC4370
LPC4088 LPC4353 LPC4357 LPC4350
LPC4076 LPC4078 LPC4333 LPC4337 LPC4330
LPC4072 LPC4074 LPC4323
LPC4322 LPC4325 LPC4327 LPC4320
LPC4313
LPC4312 LPC4315 LPC4317 LPC4310
64 kB 128 kB 256 kB 512 kB 512 kB 768 kB 1 MB kB Flashless
32 kB 40 kB 80 kB 96 kB 104-136 kB 136 kB 136 kB 168-282 kB
LPC1850
LPC4350
Cortex-M4 Cortex-M0 264kB SRAM Serial GPIO
Cortex-M3 200kB SRAM
Hi-Speed USB (2) Ethernet
LCD Controller CAN (2)
SDIO SCT
SPIFI Etc.
Migration Path: Pin Compatible
LPC1800 LPC4300
LQFP 144/208 BGA 100/180/256
LPC177x LPC407x
LPC178x
LPC408x
Cortex-M4 w/FPU SPIFI 2x Comparators
Cortex-M3
Full Speed USB Ethernet
LCD Controller CAN (2)
SD/MMC Etc.
LQFP 144/208 BGA 180/208
New 80-Msps 12-bit ADC
Fastest Data Conversion on an MCU
LPC4370 supports up to 22 channels with
the addition of new 80-Msps, 12-bit ADC – Sample freq: up to 80 Msps
– Measurement range: 0.1-0.9V
– Conversion time: 12.5 nsec (1/80M)
– Channels: six single-sided or one
differential
– Power down mode
– Output FIFO with DMA support
Other analog components include: – Two 8-ch, 10-bit SAR ADCs, 400 Ksps
– One 10-bit DAC, 40 Ksps
Multi-core Performance
Handles More Complex Algorithms & More Data
204-MHz ARM Cortex-M4F core, fastest on the market – Integrated floating point processor
– Supports DSP & SIMD instructions
204-MHz ARM Cortex-M0 coprocessor,
fastest on the market – More processing for handling I/O and
control tasks
– Code & tool compatible with
Cortex-M4
Dedicated subsystem for handling
programmable digital I/O – Dedicated bus matrix with
Cortex-M0 core (up to 204 MHz)
– Manages SGPIO & SPI I/O
– Direct access to 18kB SRAM
18
master
master
SUBSYSTEM
ARM
CORTEX-M0
ARM
CORTEX-M4
Multilayer Bus Matrix
ARM
CORTEX-M0
Syste
m b
us
D-c
ode b
us
I-code b
us
Syste
m b
us
Multilayer Bus Matrix
Core-Core
Bridge
SRAM 16 KB
ROM Serial
GPIO SPI
master slaves
2 x HS
USB 2.0
Ethernet
MAC
LCD
controller
SRAM 2KB
…
…
master master master
Expandable Memory Architecture Tailor Memory Type, Cost & Footprint to Application
Future-proof memory requirements – Add serial external Flash sized to fit application
• SPIFI interface connects low cost QSPI Flash
• External Flash looks & acts same as 32-bit internal Flash to cores
– Add external SDRAM or NOR Flash via fast external memory controller (EMC)
Choose best memory device for application & footprint
LPC4370
Cortex-M4 Serial
Flash
Memory
4 32
SRAM (Up to 282kB)
SPIFI EMC
Unique SPI Flash interface
allows inexpensive memory
scaling using low-cost QSPI
memory
SRAM/SDRAM
Fast external memory
controller allows scaling
of external SDRAM
(or NOR Flash)
8/16/32
LPC43x0 Advanced Peripherals
Hi-Speed USB
Dual Hi-Speed USB – integrated HS USB PHY reduces cost,
complexity and footprint (USB1 )
– integrated FS USB PHY & ULPI interface to
external HS PHY (USB2)
Support for host and device modes
enables dual-host USB configurations
Free USB stack library
On-chip USB ROM drivers
LPC4370
HS USB1 Vbus
D+
D-
ID
GND
External
HS
ULPI
PHY DATA(7:0)
U
L
P
I
CLK
DIR
NXT
STP
Vbus
D+
D-
ID
GND
HS USB0
Internal
HS PHY
LPC4320 LPC4330 LPC4350 LPC4370
Integrated
Hi-Speed USB PHY ● ● ● ●
Second USB* ● ● ●
* Hi-Speed with external PHY
LPC43x0 Advanced Peripherals
Integrated graphics LCD controller – Programmable resolutions from CGA (320x200) to XGA
(1024x768) and <15fps
– Free Segger Emwin graphics library
10/100 Mbps IEEE 802.3 Ethernet MAC – IEEE 1588-2008 time stamping block
– Supports both full-duplex and half-duplex operation
– DMA support
– External MII and RMII Ethernet PHY
– LWIP stack supported in LPCOpen software
SGPIO: up to 16 channels of configurable I/O for customizing
application-specific serial or parallel interfaces
State configurable timer (SCT): PWM state machine for
advanced timing tasks and special-purpose I/O, e.g. camera
I/F
LPC4300 Series
Applications & Solutions
LPC4370 Application Example
High Speed Data Acquisition
Single MCU collects high-speed inputs from analog, digital or camera
devices and output via Hi-Speed USB
Key blocks – 80-Msps ADC
– Hi-Speed USB
Typical applications: instrumentation, robotics/machine vision, etc.
LPC4370
HS USB
ADC 80 Msps
analog data
digital data
camera input State Config Timer
Cortex-M0 (USB stack)
Cortex-M4 SGPIO
LPC4370 Example Application Mixed-Signal Logic Analyzer/Oscilloscope
Provides logic analyzer, oscilloscope, and
signal/pattern generation functionality
Powered by LPC4370’s Cortex-M cores, 80-Msps
ADC, Hi-Speed USB, and more
Features – Up to 10-channel logic analyzer
– 11-channel digital signal generator
– 2-channel oscilloscope
– Analog & demo signal generators
– Analog calibration (data stored in EEPROM)
– One shot and continous sampling
– Sorting and moving signals
– I2S, I2C and UART protocol analyzers built in!
– Collected data can be exported
Embedded Artists p/n: EA-XPR-202 – www.embeddedartists.com/products/app/labtool.php
LPC4370
80-Msps ADC
GPDMA
Cortex-M4 SGPIO
analog
digital
HS USB
LPC4370 7.1
Multi-
channel
Audio
Codec
LPC4370 Application Example
7.1 Audio / Multimedia Speakers – Cortex-M4 for signal processing
– Cortex-M0 for I/O handling
– Hi-Speed or Full Speed USB for audio streaming
• Host or device USB
• Audio PLL
• I2S x2
• Serial GPIO for emulating I2S
FS or HS USB streaming
SGPIO
Multi-Channel
Audio
25
Cortex-M0 USB
Cortex-M4 Cortex-M4 100%
available for audio
signal processing
Cortex M0
handles interrupt-
intensive I/O
processing
LPC4370
Software & Tools
LPCXpresso IDE v6
Powerful Eclipse-based IDE – Cross platform: Windows, Mac, Linux supported
– C and C++ development
– Supports all 32-bit LPC MCUs
– Supports debugging for multi-core MCUs
– Advanced HW debug capabilities including trace • LPC-Link, Red Probe+, RDB-Link, LPC-Link2, CMSIS-DAP
• MTB, ETB, SWV Trace
Free Edition – 256K download limit
– Simple registration at LPCWare.com
NEW! Pro Edition – All Code Red “Red Suite” features
– No download limit
– Professional customer support
– $495 license fee
* with Red Probe+ and LPC-Link2 debug adapters only
Free Pro (NEW!)
License fee Free $495
Download
limit 256K unlimited
Support forums 1-yr renewable NXP
email ticket-based
Upgradable NA online
LPC-Link2: Demoboard and Debugger
LPC4370 development board and standalone
debugger all in one – Develop applications directly on the host MCU
– Use the programmable images to enable debugging
all other NXP Cortex-M products
Features – 10-pin JTAG/SWD connector
– 20-pin JTAG/SWD/ETM connector
– Analog, digital and serial expansion headers
Configuration Tool enables broad compatibility
with multiple tools/IDEs – CMSIS-DAP
– Segger J-Link (NXP MCUs only)
– Code Red RedLink
– http://www.lpcware.com/lpclink2-config-tool
28
http://www.nxp.com/demoboard/OM13054.html
NXP Partner Ecosystem
29
LPC Microcontroller
LPC4370
SUPPORT, ORDERING INFO
Microcontroller Support
Introduction webpage: – www.nxp.com/campaigns/cortex-m4
Product pages on NXP.com – www.nxp.com/products/microcontrollers/cortex_m4/LPC4370FET256.html
– www.nxp.com/products/microcontrollers/cortex_m4/LPC4370FET100.html
LPC43xx family product page – http://www.lpcware.com/content/device/lpc43xx
Getting answers – www.nxp.com/technicalsupport
– www.lpcware.com/forum
Training videos – www.nxp.com/lpczone
Ordering Information: Parts & Tools
32
PARTS PART NO DETAILS ORDER INFO
LPC4370 LPC4370FET256 BGA256 package www.nxp.com/products/microcontrolle
rs/cortex_m4/LPC4370FET256.html
LPC4370 LPC4370FET100 BGA100 package www.nxp.com/products/microcontrolle
rs/cortex_m4/LPC4370FET100.html
DEVELOPMENT & DEMO TOOLS
Link2 dev board &
debugger OM13054,598
LPC4370 Development board
/ Cortex-M debugger
http://www.embeddedartists.com/prod
ucts/lpcxpresso/lpclink2.php
Keil MCB4357 Eval Board OM13040,598
Evaluation board for
LPC4357 / For Internet radio
solution
http://www.nxp.com/demoboard/OM13
040.html
Oscilloscope Example/
Solution (aka Lab Tool) EA-XPR-201
Add-on board for Link2
available from EA in October
http://www.embeddedartists.com/prod
ucts/app/labtool.php
Oscilloscope Example/
Solution (aka Lab Tool
Plus Link2)
EA-XPR-202 Bundled with Link2, available
in October from EA
http://www.embeddedartists.com/prod
ucts/app/labtool.php
LPCXpresso IDE LPCXpresso IDE v6
Cross platform C/C++
development suite supporting
all 32-bit LPC MCUs
www.nxp.com/lpcxpresso/home
Thanks for attending!
Be one of the first 200! – Get an e-mail
– Click on a link
– Take a (short) quiz
– Get a voucher for a…
LAB TOOL DISCOUNT!
Oscilloscope
Logic analyzer
Signal/pattern generation
Questions? For more information visit:
www.nxp.com/microcontrollers