NXP Cortex-M0 LPC1100L Design with a Cortex-M0 in a DIP package ASEE Tech Session. Sergio Scaglia (NXP Semiconductors) August 2012

Similar documents
突破 8-/16-/32- 位和 DSP 界限的 ARM MCU 解决方案

恩智浦 LPC 系列 MCU 全方位支持嵌入式和物联网的应用开发

打破传统设计, LPC 微控制器家族再添新成员 恩智浦半导体 2012 年 11 月

NXP Microcontrollers Selection Guide

Experiment 1. Development Platform. Ahmad Khayyat, Hazem Selmi, Saleh AlSaleh

THE LPC84X MCU FAMILY A MULTI-TESTER TOOL OFFERING FEATURES FOR YOUR NEXT IOT DESIGN

NXP LPC microcontrollers. Innovation at your fingertips

NXP 32-bit microcontrollers Broaden your options. February 2012

STM32 F0 Value Line. Entry-level MCUs

STM32 Cortex-M3 STM32F STM32L STM32W

Course Introduction. Purpose: Objectives: Content: Learning Time:

Renesas Synergy MCUs Build a Foundation for Groundbreaking Integrated Embedded Platform Development

RDB1768 Development Board User Manual

Getting Started With the Stellaris EK-LM4F120XL LaunchPad Workshop. Version 1.05

Cortex M4-based LPC4300 The first asymmetric multi-core MCU for the industry

Lab 1 Introduction to Microcontroller

INNOVATION MADE EASY Advanced microcontroller solutions with remarkable flexibilty

STM32F3. Cuauhtémoc Carbajal ITESM CEM 12/08/2013

User Manual Rev. 0. Freescale Semiconductor Inc. FRDMKL02ZUM

University Program Advance Material

Introduction to ARM LPC2148 Microcontroller

STM32G0 MCU Series Efficiency at its Best

The industrial technology is rapidly moving towards ARM based solutions. Keeping this in mind, we are providing a Embedded ARM Training Suite.

LPC1110/11/12/13/14/15

LPC1110/11/12/13/14/15

Choosing a Micro for an Embedded System Application

Introduction to Microcontroller Apps for Amateur Radio Projects Using the HamStack Platform.

STM32F429 Overview. Steve Miller STMicroelectronics, MMS Applications Team October 26 th 2015

LPC185x-Xplorer++ Quick Start Guide: LPC185x-Xplorer++ User Manuals for LPC185x-Xplorer++: For KEIL MDK-ARM with ULINK2/ME: Click here

LPC-P1227 development board USER S MANUAL Initial release, March 2012 Designed by OLIMEX Ltd, 2011

LPC-P1227 development board USER S MANUAL Revision B, July 2013 Designed by OLIMEX Ltd, 2011

WHICH MICRO? What does MCU needs to do in my system? What are the tasks? Dr. Adriana Becker-Gomez

Hands on Experience with AVR32

LPC-H1343 development board Users Manual

Introducing STM32 L0x Series. April

Approximately half the power consumption of earlier Renesas Technology products and multiple functions in a 14-pin package

Freedom FRDM-KV31F Development Platform User s Guide

Xynergy It really makes the difference!

AVR XMEGA Product Line Introduction AVR XMEGA TM. Product Introduction.

STM32F7 series ARM Cortex -M7 powered Releasing your creativity

Welcome to the Controller Continuum Only from Freescale

Interconnects, Memory, GPIO

CoLinkEx_LPC11C14 EVB Kit User Guide

Introduction to Embedded Programming with ARM Cortex-M3

Hello, and welcome to this presentation of the STM32L4 System Configuration Controller.

MicroBolt. Microcomputer/Controller Featuring the Philips LPC2106 FEATURES

OM13071 LPCXpresso824-MAX Development board

Cypress PSoC 4 Microcontrollers

NXP Unveils Its First ARM Cortex -M4 Based Controller Family

AVR Microcontrollers Architecture

Hello, and welcome to this presentation of the STM32L4 power controller. The STM32L4 s power management functions and all power modes will also be

Laboratory Hardware and Tools

Typical applications where a CPLD may be the best design approach:

VLSI Design Lab., Konkuk Univ. Yong Beom Cho LSI Design Lab

acret Ameya Centre for Robotics & Embedded Technology Syllabus for Diploma in Embedded Systems (Total Eight Modules-4 Months -320 Hrs.

GET STARTED FAST WITH THIS COMPREHENSIVE ENABLEMENT OFFERING FOR LPC800 MCUS

User Manual. LPC-StickView V3.0. for LPC-Stick (LPC2468) LPC2478-Stick LPC3250-Stick. Contents

LPC4370FET256. Features and benefits

Manual of Board ET-PIC STAMP 18F8722-K22 ET-PIC STAMP 18F8722-K22

BLE121LR Bluetooth Smart Long Range Module 5/12/2014 1

AN10955 Full-duplex software UART for LPC111x and LPC13xx

Kinetis EA Ultra-Reliable Microcontrollers. Automotive and Industrial Applications

TEVATRON TECHNOLOGIES PVT. LTD Embedded! Robotics! IoT! VLSI Design! Projects! Technical Consultancy! Education! STEM! Software!

Quick Start Guide for the Turbo upsd DK3300-ELCD Development Kit- RIDE

ARM Cortex-M4 Architecture and Instruction Set 1: Architecture Overview

The World Leader in High Performance Signal Processing Solutions. DSP Processors

Programming in the MAXQ environment

A11L: 78K0R Low Power MCU

ARM Embedded Development Using Oberon-07

STM32F7 series ARM Cortex -M7 powered Releasing your creativity

EE 354 Fall 2015 Lecture 1 Architecture and Introduction

Kinetis KE1xF512 MCUs

Network Embedded Systems Sensor Networks Fall Hardware. Marcus Chang,

Introducing: New Low-Cost & Low Pin Count PIC Microcontrollers for the 8-, 16- & 32-bit Markets

mbed Hello World! Introduction to mbed

Quick Start Guide TWR-S08PT60. 5-Volt S08P Family of 8-bit MCUs for Industrial and Appliance Applications TOWER SYSTEM

ATmega128. Introduction

Low-Cost Microcontrollers

Cypress PSoC 4 Microcontrollers

AVR Training Board-I. VLSI Design Lab., Konkuk Univ. LSI Design Lab

AN LPC1700 secondary USB bootloader. Document information. LPC1700, Secondary USB Bootloader, ISP, IAP

EasyPIC5 Development System

XNUCLEO-F030R8, Improved STM32 NUCLEO Board

Low Power System Design Using Atmel ARM Cortex -based Products Copyright Atmel Corporation

LPCXpresso User Guide. Rev October, 2013

NXP AN11528 sensor Application note

PAC5523EVK1. Power Application Controllers. PAC5523EVK1 User s Guide. Copyright 2017 Active-Semi, Inc.

MICROPROCESSOR BASED SYSTEM DESIGN

ARM Architecture and Assembly Programming Intro

T he key to building a presence in a new market

LPC1788 Mio Board. The functional details of the board are as follows-

联系人黄生 : QQ: General Description The KN02GxxA series are low-cost 32-bit microcontroller with embedded ARM Cortex -M0 core for i

EMBEDDED SYSTEMS WITH ROBOTICS AND SENSORS USING ERLANG

Figure 1. Proper Method of Holding the ToolStick. Figure 2. Improper Method of Holding the ToolStick

TouchCore351-ML16IP. Capacitive Touch Sensor Controller

Arduino Uno R3 INTRODUCTION

MB95260H/MB95270H. MB95280H Series. MB95260H Series/MB95270H Series/

Freescale Semiconductor Inc. Microcontroller Solutions Group. FRDM-KL46Z User s Manual FRDM-KL46Z-UM Rev. 1.0

Future Designs, Inc. Your Development Partner LCD DEMO KITS

LPC-P1114 development board Users Manual

Transcription:

NXP Cortex-M0 LPC1100L Design with a Cortex-M0 in a DIP package ASEE Tech Session Sergio Scaglia (NXP Semiconductors) August 2012

Agenda NXP Microcontroller Portfolio Cortex M0 LPC1100L Family Support/Resources Hands-On Lab Questions 2

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 3

NXP MCU the only complete ARM range of Cortex-M0, Cortex-M3 and Cortex-M4 processors cost performance 8-bit 16-bit 32-bit DSP Entry level Cortex-M0 NXP ARM Cortex-M Continuum Cortex-M0 Cortex-M3 Cortex-M4 Fully featured Cortex-M4 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!! (* Recommended price at 10kpcs) 4 4

Rapidly growing family of ARM Cortex-M MCUs Check pin- and software compatible options: www.nxp.com/microcontrollers Cortex-M4 Up to 204 MHz LPC4300 LPC4000 High Performance Dual Core Cortex-M4/M0 FPU and DSP extensions Cortex-M3 Up to 180MHz LPC1800 LPC1700 LPC1300 Memory options up to 1MB flash, 200k SRAM High-performance with USB, Ethernet, LCD, and more USB solution, incl. on-chip USB drivers 5 5

NXP s Cortex -M0 True 8/16-bit replacement Cortex-M0 was designed to replace 8/16-bit architectures ARM s 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 6 6

Widest Selection of Cortex-M0 Packages Package CSP16 QFN33 QFN33 BGA48 QFP48 QFP64 QFP100 SO20 TSSOP20 TSSOP28 DIP28 Width (mm) Length (mm) Height (mm) 2 5 7 4.5 7 10 14 8 5 5 14 2 5 7 4.5 7 10 14 13 7 10 35 0.60.85.85 0.7 1.40 1.40 1.40 2.45 0.95 0.95 4.00 Sample Picture NXP offers the widest selection of packages for Cortex-M0 devices World s first low-pin-count 32-bit ARM packages World s smallest 32-bit ARM MCU 2 x 2 mm 2 7

USB Solutions for Cortex-M0 LPC11U1x Pin-to-Pin Compatible LPC11U2x 32K Flash, 6K SRAM LPC11U3x 32K Flash, up to 10K SRAM, up to 4K EEPROM LQFP64 package offering LPC134x 40-128K Flash, up to 10K SRAM, up to 4K EEPROM Small sector size (256 bytes) LQFP64 package offering Up to 64K Flash, up to 10K SRAM, up to 4K EEPROM Small sector size (256 bytes) LQFP64 package offering Low cost USB Platform for mbed Platform for LPCXpreso 8 8

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, lowest-power, and most energy-efficient efficient 32- bit-processor core to date 9

CoreMark Benchmarks Performance CoreMark Performance CoreMark Score 1.6 1.4 1.2 1.0 0.8 0.6 0.4 0.2 Power ARM Cortex-M ENERGY EFFICIENT Power 8-bit or 16-bit ENERGY COST LPC1100L 16-bit MSP430 8-bit ATMega Time Time http://www.arm.com/products/processors/cortex-m/index.php 2-10x higher performance than 8/16-bit MCUs 10 10

8- vs. 16-bit vs. Cortex-M0 Current Comparison 11

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 12

Superior Code Density (e.g. 16-bit Multiply) MOV A, XL ; 2 bytes MOV B, YL ; 3 bytes MUL AB; 1 byte MOV R0, A; 1 byte MOV R1, B; 3 bytes MOV A, XL ; 2 bytes MOV B, YH ; 3 bytes MUL AB; 1 byte ADD A, R1; 1 byte MOV R1, A; 1 byte MOV A, B ; 2 bytes ADDC A, #0 ; 2 bytes MOV R2, A; 1 byte MOV A, XH ; 2 bytes MOV B, YL ; 3 bytes ; 1 byte ADD A, R1; 1 byte MOV R1, A; 1 byte MOV A, B ; 2 bytes ADDC A, R2 ; 1 bytes MOV R2, A; 1 byte MOV A, XH ; 2 bytes MOV B, YH ; 3 bytes MUL AB; 1 byte ADD A, R2; 1 byte MOV R2, A; 1 byte MOV A, B ; 2 bytes ADDC A, #0 ; 2 bytes MOV R3, A; 1 byte 8-bit (8051) 16-bit (MSP430) 28 Instructions MOV R4,&0130h MOV R5,&0138h MOV SumLo,R6 MOV SumHi,R7 (Operands are moved to and from a memory mapped hardware multiply unit) 4 Instructions MULS r0,r1,r0 ARM Cortex-M0 1 Instruction Time: 48 clock cycles Code size: 48 bytes Time: 8 clock cycles Code size: 8 bytes Time: 1 clock cycle Code size: 2 bytes 13

CoreMark Benchmarks Code Size 20000 Code Size Comparison 18000 16000 Bytes 14000 12000 10000 8000 6000 4000 2000 LPC1100L 16-bit MSP430 8-bit ATMega http://www.arm.com/products/processors/cortex-m/index.php http://www.coremark.org 40-50% smaller code size than 8-/16-bit 14

Superior Code Density 64 48 Instruction Size for Various Processors 32 16 Leading 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) 8051 PIC18 PIC24 MSP430/ MSP430X Cortex-M0 15

LPC1100L in Low-Pin-Count Packages Cortex-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 16

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 17

Low-Pin-Count Package Options SO20 TSSOP20 (2 Options) TSSOP28 DIP28 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 18

Why Choose LPC Package Devices from NXP Manufacturing Efficiency and Supply Guarantee NXP ships over three billion Low-Pin-Count packages per year, no backend 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 19

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 20

Where to get started? www.nxp.com/microcontrollers MCU homepage www.nxp.com/lpczone Product updates and training www.nxp.com/lpcxpresso Low-cost development www.lpcware.com Engineering community 2 1 21

Objective Using the LPCXpresso Development Platform, and familiarity with the LPC1114 device Integrating the LPC1114 device (DIP package) onto a breadboard Build an application where the LPC1114 drives a 10 LED bar graph controlled by a Potentiometer 22

NXP s Low Cost Development Tool Platform Eclipse-based IDE Development Board Evaluation Product Development 23 23

LPCXpresso Board LPC-Link Target 24 24

LPC-Link LPC-Link is an integrated JTAG/SWD debug interface based on LPC3154 (ARM9) LPC-Link can be used as a standalone JTAG debugger with other LPC target boards. So, no need for a separate debug probe! LPC-Link makes it possible for users to experience the same user interface all the way to final code development and testing 25 25

Evaluate LPCXpresso Development Stages Explore Develop 26 26

LPCXpresso Web Support www.nxp.com/lpcxpresso Main page www.nxp.com/lpcxpresso-support NXP examples page, schematics and FAQ www.nxp.com/lpczone Live training modules www.nxp.com/lpcxpresso-forum Support forum for LPCXpresso supported by NXP and Code Red (main support destination) www.code-red-tech.com/lpcxpresso LPCXpresso IDE downloads and Code Red knowledgebase www.embeddedartists.com/lpcxpresso Base board schematics and even more example projects 27

Components Software LPCXpresso Development Tool (http://lpcxpresso.code-redtech.com/lpcxpresso/) DIP demo-bargraphled.zip file (software project) Hardware LPC1114 DIP part (qty 1) LPC1200 LPCXpresso Board (LPC-LINK debugging module + LPC1227) (qty 1) USB cable (qty 1) Breadboard (qty 1) Potentiometer (10K) (http://www.sparkfun.com/products/9806) (qty 1) 10 Segment LED Bar Graph (http://www.sparkfun.com/products/9935) (qty 1) Resistors (qty 3) Wires 28

LPC1114FN28/102 Pinout 29

Application Block Diagram 30

Application Board 31 31

Schematics Note: Please connect ONLY PIO0_1 (pin 24), PIO0_2 (pin 25), PIO0_3 (pin 26) to the LED bar graph 32

10 Segment LED Bar Graph LPCXpresso Board 10K Potentiometer Note: On the LPCXpresso board, on the J4 connector, remove the headers 33

LPCXpresso IDE Once the hardware is completed, connect the USB from the PC to the LPC-Link. Choose install the software automatically (USB Device with DFU capabilities) Open LPCXpresso now 34 34

LPCXpresso IDE Import Project Select the Quickstart Pan tab In the Start here tab Select Import project(s) 35 35

LPCXpresso IDE Import Project Browse to the ASEE folder on the desktop and select: DIP demo-bargraphled.zip Select All & Finish 36 36

LPCXpresso IDE Navigating Your Project Navigate to the src folder under DIP demo in the Project Explorer view Open (double-click) main.c 37 37

LPCXpresso IDE LPCXpresso Interface Project Explorer Editor Quick Start Console 38 38

LPCXpresso IDE Build Project Build the project 39 39

LPCXpresso IDE Debug Start the debugger Choose install the software automatically (LPC-Link Debug Probe v1.1) The debugger will: Activate the Debug View Break once inside main() 40 40

Running the Application Resume After hitting resume, the application should be running.rotate the pot Suspend, Terminate 41 41

42