Engr 355 Embedded Systems Design. mbed and LPC11U24 Overview. Dr. Curtis Nelson* *Original lecture written by Tim Kyle ARM

Similar documents
Freedom FRDM-KV31F Development Platform User s Guide

XNUCLEO-F030R8, Improved STM32 NUCLEO Board

User Manual For CP-JR ARM7 USB-LPC2148 / EXP

Goal: We want to build an autonomous vehicle (robot)

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

ESPino - Specifications

Advanced Embedded Systems

BLE MODULE SPECIFICATIONS

Hands-On Workshop: ARM mbed : From Rapid Prototyping to Production

TWR-KE18F User's Guide

User Manual Rev. 0. Freescale Semiconductor Inc. FRDMKL02ZUM

LPC1768 Industrial Reference Design Platform System Development Kit Version 1.3. May 2009

Hands-On Workshop: ARM mbed

EE 354 Fall 2015 Lecture 1 Architecture and Introduction

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

Adafruit Metro Mini. Created by lady ada. Last updated on :12:28 PM UTC

mbed Hello World! Introduction to mbed

DEV-1 HamStack Development Board

TWR-KL28Z User s Guide

Ali Karimpour Associate Professor Ferdowsi University of Mashhad

CORRIGENDUM ISSUED FOR NATIONAL COMPETITIVE BIDDING UNDER TEQIP PHASE-II

HVP-KV10Z32 User s Guide

ARDUINO PRIMO. Code: A000135

User Manual Rev. 0. Freescale Semiconductor Inc. FRDMKL02ZUM

mbed Kit User Guide of NQ62x daughter board

Farklı Arduino Boardlar

Adafruit Feather nrf52840 Express

EZ-Bv4 Datasheet v0.7

FRDM-KL26Z User s Guide

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

Kinetis KE1xF512 MCUs

Wireless-Tag WT51822-S1

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

Mercury System SB310

ArduCAM CC3200 UNO board

Chapter 2: Introducing the mbed tw rev

Ali Karimpour Associate Professor Ferdowsi University of Mashhad

ECE 471 Embedded Systems Lecture 2

FRDM-KL03Z User s Guide

AVR Intermediate Development Board. Product Manual. Contents. 1) Overview 2) Features 3) Using the board 4) Troubleshooting and getting help

Introduction to ARM LPC2148 Microcontroller

keyestudio Keyestudio MEGA 2560 R3 Board

8051 Intermidiate Development Board. Product Manual. Contents. 1) Overview 2) Features 3) Using the board 4) Troubleshooting and getting help

Sanguino TSB. Introduction: Features:

Smart Plug Software Design Reference Manual

GUJARAT TECHNOLOGICAL UNIVERSITY

FRDM-KL82Z User s Guide

DevKit7000 Evaluation Kit

CoLinkEx_LPC11C14 EVB Kit User Guide

LPC2148 DEV BOARD. User Manual.

An overview of mobile and embedded platforms

AT89S8252 Development Board V1.0. Manual

Easy Kit Board Manual

Espardino micro2142/8

HVP-KV31F120M User s Guide

CoiNel Technology Solutions LLP. LPC2148 ARTIST Instruction Manual LPC2148 ARTIST. Instruction manual. Revision 1

Future Designs, Inc. Your Development Partner LCD DEMO KITS

Measuring Interrupt Latency

PRODUCT Datasheet TECHNICAL FEATURES

ARDUINO M0 PRO Code: A000111

RDB1768 Development Board User Manual

UM User Manual for LPC54018 IoT Module. Rev November Document information

FRDM-K20D50M User s Manual FRDM-K20D50M-UM Rev. 1.2

w w w. b a s e t r a i n i n g i n s t i t u t e. c o

ACU6. Technical Reference Manual. Specifications Interfacing Dimensions. Document topics. ANSARI Controller Unit Type 6 technical reference manual

OK335xS Users Manual Part I - Introduction

Offline Flash Programmer for Kinetis K- and L-series MCUs

HZX N03 Bluetooth 4.0 Low Energy Module Datasheet

LPC1788 Mio Board. User Manual. Revision 1.0 1

ECE 480 Team 5 Introduction to MAVRK module

Embedded Technosolutions

Introduction to Embedded Programming with ARM Cortex-M3

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

Embest SOC8200 Single Board Computer

NXP Unveils Its First ARM Cortex -M4 Based Controller Family

Bolt 18F2550 System Hardware Manual

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

.org. IoT Development Platform

2-Oct-13. the world s most energy friendly microcontrollers and radios

PROGRAMMING AND CUSTOMIZING

STM32 F4xx Discovery Board Setup Guide

Figure 1.1: Some embedded device. In this course we shall learn microcontroller and FPGA based embedded system.

4D Picaso Touchscreen Display board datasheet EB

ARDUINO BOARD LINE UP

M16C/62P QSK QSK62P Plus Tutorial 1. Software Development Process using HEW4

PBLN52832 DataSheet V Copyright c 2017 Prochild.

Wireless Power Panel Meter (WPPM)

The Freescale MC908JL16 Microcontroller

Husarion CORE2. Husarion CORE2 is a development board for Internet-connected automation & robotic devices.

ARM Cortex core microcontrollers 3. Cortex-M0, M4, M7

TWR-KV58F220M Tower Module User's Guide

Kinetis EA Ultra-Reliable Microcontrollers. Automotive and Industrial Applications

FiO Lite Datasheet FEATURES SAMPLE APPLICATIONS. FiO Lite

New STM32WB Series MCU with built-in Bluetooth 5 and IEEE

8051 Basic Development Board. Product Manual. Contents. 1) Overview 2) Features 3) Using the board 4) Troubleshooting and getting help

UM LPCXpresso845MAX. Document information. LPCXpresso845MAX, OM13097, LPC845, LPC844 LPCXpresso845MAX User Manual

The Information contained herein is subject to change without notice. Revisions may be issued regarding changes and/or additions.

CHAPTER 1 - World of microcontrollers

ARM HOW-TO GUIDE Interfacing Switch with LPC2148 ARM

ARM Embedded Development Using Oberon-07

Transcription:

Engr 355 Embedded Systems Design mbed and LPC11U24 Overview Dr. Curtis Nelson* *Original lecture written by Tim Kyle ARM Produces 32-bit processor core designs Licenses cores to fabrication companies (Freescale, Motorola, TI, NXP, etc.) Fabrication companies bundle additional features (ADC, DAC, DSP, Radios, etc.) 1

ARM Cortex-M M Microcontroller ARM Cortex-R R Real Time Data Processing 2

ARM Cortex-A A - Application ARM Cortex M0 The core in the mbed Physically smallest Lowest power Lowest cost Single clock cycle for most instructions 56 Instructions (RISC) 3

NXP 11u24 The processor in the mbed Contains a Cortex M0 Core 48 MHz Clock 8 KB RAM, 32 KB Flash USB Host or USB Device, 2xSPI, I2C, UART 6xADC, GPIO 3.3V Logic $4 for a standalone processor GPIO Rated for 4mA mbed Several versions of mbeds Class model contains the NXP 11u24 + Magic Chip NXP 11u24 model has a yellow PCB Magic chip Additional flash storage for programming Serial over USB for easy debugging CMSIS-DAP for in-circuit debugging 4 amber LEDs connected to GPIO Reset button Other versions of mbed have different functionalities 4

mbed - Power 5V power from USB Onboard 3.3V voltage regulator 3.3V on Vout Pin, 5V on VB Use an external power supply for > 500mA Drawing too much current causes a USB reset and the power light to extinguish or flash mbed Communications Later in the quarter we will learn about these in more detail Communication between IC s 2x SCI/SSI 1x I2C/TWI USB Host (ie. Computer) Device (ie. Keyboard) UART Natively TTL Simple driver ICs can produce RS232, RS485, Bluetooth 5

Bricking Your mbed Drawing too much current (> 500mA) Overdriving pins 9V max Vin Bending/breaking IC ins Driving coils (inductors) without a protection diode Relays, speakers, electromagnets mbed - Libraries Great resource to prevent brain damage Not always super space or speed efficient Bigger designs will require customization Cookbook libraries vary wildly in quality Problems may not arise until code gets complicated 6

mbed - Programming mbed.org online compiler Drop compiled file on USB drive and click reset button to run Offline using Keil No libraries One button program Additional debugging features Programming in C++ or assembly (if you are brave) mbed Common Programming Mistakes Non-descriptive variable names - Makes troubleshooting more difficult. int jim = 5; float bob = 0.75; int pwmfrequency = 5; float dutycycle = 0.75; 7

mbed Common Programming Mistakes Defining variables inside a loop - the compiler won t throw an error, but it won t behave as expected either. do until (x=10) { int y = x+10; x++; } int y=0; do until (x=10) { y = x+10; x++; } mbed Common Programming Mistakes Using type Float when it isn t needed Loss of precision Processor intensive Worse on 8/16 bit processors Wrap around Don t let the simplicity of C++ fool you. Think about the assembly happening behind the scenes. 8

mbed Common Programming Mistakes Not all commands take the same number of clock cycles Writing to serial, I2C & LCD destinations uses a huge number of clock cycles The command wait(1); utilizes 48 million clock cycles Driving an I/O pin and many other simple tasks take only one or two clock cycles mbed Common Programming Mistakes Timer pins are not identical A good reference for this can be found here: http://mbed.org/handbook/pwmout#lpc11u24 9

Engr355 Achieving Success Test Equipment Debugging Collaboration of ideas mbed web resources Datasheet Think at the assembly level Divide and conquer Comments/documentation 10