MSP430 Design Workshop.

Slides:



Advertisements
Similar presentations
Introduction to PIC Microcontrollers
Advertisements

BASICS OF MSP430 & INTERFACING MICRO-SD CARD WITH IT.
System Overview MTT48 V Motorol a MOTOROLA 68HC08 INTRODUCTION AND SYSTEM OVERVIEW.
MC68HC11 System Overview. System block diagram (A8 version)
Microcontroller – PIC – 4 PIC types PIC architecture
ECE 447 Fall 2009 Lecture 9: TI MSP430 Interrupts & Low Power Modes.
Introduction of Holtek HT-46 series MCU
IO Controller Module Arbitrates IO from the CCP Physically separable from CCP –Can be used as independent data logger or used in future projects. Implemented.
HT46 A/D Type MCU Series Data Memory (Byte) Program Memory HT46R22 (OTP) HT46C22 (Mask) 2Kx Kx16 4Kx HT46R23 (OTP) HT46C23 (Mask) HT46R24.
ASPPRATECH.
1 8-bit developers no longer need to sacrifice performance, power efficiency or scalability for price Deliver increased features and functionality with.
MSP Ultra-Low Power | High Integration | Easy-to-Use “How To” Series: Clock System.
BLDC MOTOR SPEED CONTROL USING EMBEDDED PROCESSOR
NS Training Hardware. System Controller Module.
Engineering 1040: Mechanisms & Electric Circuits Fall 2011 Introduction to Embedded Systems.
ATMEL AVR 8 bit RISC MICROCONTROLLERS
3-1 System peripherals & Bus Structure Memory map of the LPC2300 device is one contiguous 32-bit address range. However, the device itself is made up of.
MSP432™ MCUs Training Part 4: Clock System & Memory
Introduction to the Orbit Edu Board Ahmad Rahmati Teaching Assistant, ELEC424 Rice Efficient Computing Group Sep 12, 2007.
Renesas Electronics Europe GmbH A © 2010 Renesas Electronics Corporation. All rights reserved. RL78 Clock Generator.
MSP430 Mixed Signal Microcontroller – Parte 2 Afonso Ferreira Miguel Source: slau056d – Texas instruments.
PS - 87C51Mx2 - SLS-1 Philips Semiconductors 87C51Mx2 Microcontroller.
Clock Options and Sleep Modes. Clock Sources Flash Fuse bits can be programmed to choose one of the following Clock sources: 1. External RC Osc. f = 1/(3RC).
Prepared by Eng. Musa Alyaman1 Chapter Seven Chapter Seven PIC16F87x.
ATMEL AVR 8 bit RISC MICROCONTROLLERS a general comparison.
Chapter 2 Introducing the PIC Mid-Range Family and the 16F84A The aims of this chapter are to introduce: The PIC mid-range family, in overview The overall.
ATtiny23131 A SEMINAR ON AVR MICROCONTROLLER ATtiny2313.
TI MSP430 MICROCONTROLLERS BY ADITYA PATHAK. THE MSP FAMILY Ultra-low power; mixed signal processors Widely used in battery operated applications Uses.
AT91 Products Overview. 2 The Atmel AT91 Series of microcontrollers are based upon the powerful ARM7TDMI processor. Atmel has taken these cores, added.
INTRODUCTION TO PIC MICROCONTROLLER. Overview and Features The term PIC stands for Peripheral Interface Controller. Microchip Technology, USA. Basically.
Network and Systems Laboratory nslab.ee.ntu.edu.tw.
Device Overview 1.  The advantages of all PIC18Fxxxx microcontrollers:  High computational performance  High-endurance  Enhanced Flash program memory.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction Purpose  This course provides an introduction to the peripheral functions.
Components of a typical full-featured microcontroller.
Product Overview 박 유 진박 유 진.  Nordic Semiconductor ASA(Norway 1983)  Ultra Low Power Wireless Communication System Solution  Short Range Radio Communication(20.
NAM S.B MDLAB. Electronic Engineering, Kangwon National University 1.
박 유 진.  2.4-GHz IEEE Compliant RF Transceiver  Excellent Receiver Sensitivity ( -97dBm) and Robustness to Interference  6-mm × 6-mm QFN40.
STM32 및 개발보드 소개 Jang Hyunsung Embedded Systems Lab. Dept. of CSE, PNU
10- Lock Bits, Fuse Bits and Boot Loader. Boot Loader Support – Read-While-Write Self- Programming: The Boot Loader Support provides a real Read-While-Write.
ENERGY METER TO INDICATE BILLING IN RUPEES FOR LOAD WISE OR DAY WISE
Lizard Labs Peripheral Reflex System
Voice Controlled Robot by Cell Phone with Android App
Cypress Roadmap: Platform PSoC®
Popular Microcontrollers and their Selection by Lachit Dutta
Government Engg College Bhuj E. C. Engg. Department
ATMEL AVR 8 bit RISC MICROCONTROLLERS
Microcontrollers, Basics Fundamentals of Designing with Microcontrollers 16 January 2012 Jonathan A. Titus.
Microcontrollers & GPIO
Refer to Chapter 5 in the reference book
Microprocessor Systems Design I
UNIT – Microcontroller.
Microprocessor Systems Design I
Introduction to the Orbit Edu Board
The Arduino Microcontroller: Atmel AVR Atmega 328
Subject Name: Microcontroller Subject Code: 10ES42
Introduction to Microprocessors and Microcontrollers
I/O PORTS : MSP430x5xx devices have up to 12 digital I/O ports :
Future Designs, Inc. Your Development Partner
ریز پردازنده. ریز پردازنده مراجع درس میکروکنترلرهای AVR برنامه نویسی اسمبلی و C محمدعلی مزیدی، سپهر نعیمی و سرمد نعیمی مرجع کامل میکروکنترلرهای AVR.
AT91RM9200 Boot strategies This training module describes the boot strategies on the AT91RM9200 including the internal Boot ROM and the U-Boot program.
Getting the Most Out of Low Power MCUs
Lecturer: Reza Arjmandi Autumn 2015
Introducing the PIC Mid-Range Family and the 16F84A
Lecture 9: TI MSP430 Interrupts & Low Power Modes
MSP432™ MCUs Training Part 6: Analog Peripherals
AVR – ATmega103(ATMEL) Architecture & Summary
EECE.3170 Microprocessor Systems Design I
Wireless Embedded Systems
MSP430 Ultra-Low-Power MCUs
ADSP 21065L.
Presentation transcript:

MSP430 Design Workshop

Low Power + Performance MSP430 Families Ultra Low Power Security + Comm Low Power + Performance

F5xx Key Features Looking at the 'FR59xx... Ultra-Low Power 160 μA/MIPS 2.5 μA standby mode Integrated LDO, BOR, WDT+, RTC 12 MHz @ 1.8V Wake up from standby in <5 μs Increased Performance Up to 25 MHz 1.8V ISP Flash erase and write Fail-safe, flexible clocking system User-defined Bootstrap Loader Up to 1MB linear memory addressing Innovative Features Multi-channel DMA supports data movement in standby mode Industry leading code density More design options including USB, RF, encryption, LCD interface The MSP430F5xx is the next generation technology platform for the MSP430 family and continues to expand on MSP430’s industry leadership in the ultra-low-power 16-bit MCU space. The 5xx family offers improved ultra-low-power performance with innovative new power conserving features such as adjustable core voltage and an integrated low-power LDO. Cutting edge power efficiency is available through an innovative power management system as well as record breaking performance at 160 µA/MIPS with 256-KB flash and 16-KB RAM. The 5xx also offers increased peripheral performance, significantly higher levels of integration and many new features designed for customer ease of use, all while remaining completely compatible with existing MSP430 families. Looking at the 'FR59xx...

MSP430 CPU Efficient, ultra-low power CPU C-compiler friendly RISC architecture 51 instructions 7 addressing modes Constant generator Single-cycle register operations Bit, byte and word processing 1MB unified memory map No paging Extended addressing modes Page-free 20-bit reach Improved code density Faster execution 100% code compatible with earlier versions Modern 16-bit RISC CPU is optimized for modern programming techniques. The MSP430’s architecture provides the flexibility of 16 fully addressable, single-cycle 16-bit CPU registers. The large CPU register file eliminates what is typically a single working file or accumulator bottleneck. The CPU registers are fully accessible including the program counter, stack pointer, status register and 12 working registers. The CPU also integrates a constant generator to automatically generate the six most used immediate values. The constant generator has the effect of reducing code size by generator this common constants (or literals) using hardware, eliminating what would be immediate values embedded in code. The modern Reduced Instruction Set (RISC) design of the CPU offers versatility through simplicity using only 27 easy-to-understand instructions and seven consistent addressing modes. All memory spaces – Flash, RAM, peripherals and CPU registers - use the exact same instructions and addressing modes. All instructions can also be used in a byte format as well. The MSP430 is an orthogonal design because all instructions are used consistently though all areas of the device. Up to 8 MIPS of performance is available today, with more planned. The result is a 16-bit, ultra-low power CPU that has more effective processing throughput, is smaller in size, and more code-efficient than other 8/16-bit microcontrollers. When using the MSP430, this results in programmers writing less lines of code. Now it’s possible to develop ultra-low power, high-performance applications at a fraction of the code size previously possible.

Unified Memory Map MSP430 Memory Main Flash RAM Info Memory In-System Prog (ISP) Write using: User program, JTAG, BSL Byte, word, long-word Erase one (or all) segments at a time ‘F5529 Memory Map 0xFFFF Flash 128K 0xFF80 INT Vectors 80 0x2400 RAM 8K 0x01C0 USB RAM 2K Info Memory 512 Boot Loader 0x0000 Peripherals 4K MSP430 Memory Unified memory map (program or data) Absolutely no paging Bytes Main Flash 512 byte segments Start address moves according to RAM RAM Always a contig. block If enabled, USB port uses first 2K RAM segments can be powered down Info Memory Use for your own calibration data, etc. 4 segments (A-D) 128 byte segments The MSP430 uses a single unified memory address map for code, data and peripherals. There is absolutely no paging with direct access to program and data anywhere throughout the entire address space which include Flash, ROM RAM and peripherals with no restrictions. Support for agile unrestricted code including branching, subroutine calls, function calls and interrupts are supported. All of the Flash and RAM memory can be addressed as either 8-bit bytes or 16-bit words. Peripheral module address are collected below 0x200. The complete instruction set and all addressing modes can be used to with peripherals. Flash is segmented into 512B main memory segments. Additional smaller information memory segments are also available. The only difference between main and information memory is size – code and data can be located anywhere. The total number of main memory segments depends on the device - for example, a 4KB device has eight main memory segments. Flash memory operates from 1.8V – 3.6V. Programming/erase voltage is 2.7V (reduced to 2.2V on 2xx). Flash can be erased and reprogrammed 100k times with 100 year data retention typical. 60kB of Flash can be programmed in as fast as 2 seconds. There are three methods of programming Flash; Out or in-system using JTAG, a Bootstrap Loader (BSL) or in system using normal software. The bootstrap loader is a section of ROM code that resides on the device itself and allows communication using a common 9600 baud UART protocol. Information regarding the BSL is also available on the MSP430 website. The sequence to program Flash is very easy with timing controlled by hardware. For security reasons, Flash can not be programmed or erased unless a password is used when the Flash control registers are accessed.During programming and erase program execution is automatically halted. After the operation software resumes with the next instruction and any enabled interrupts that occurred during the programming or erase operation are automatically serviced. Boot Loader (BSL) Program Flash/RAM with serial (slau319) Password protected 512 byte segments Device Descriptors (TLV) Factory calibration data, periph support,… Found in peripherals (at 0x1A00)

MSP430 GPIO (Chapter 3) GPIO (Chapter 3) GPIO CH 3 Independently programmable Any combination of input, output, interrupt and peripheral is possible Each I/O has an individually programmable pull-up/pull-down resistor Many devices can lock pin values during low-power modes Some devices support touch-sense capability built into the pins ‘F5529 block diagram

MSP430 Timers (Chapters 3, 5, 6, 8) Timers (Chapters 3, 5, 6, 8) Watchdog CH 3 & 5 GPIO CH 3 Timers (Chapters 3, 5, 6, 8) Timer_A: 16-bit timer/counter Multiple capture/compare registers Generates PWM and other complex waveforms & interrupts Directly trigger GPIO, DMA, ADC, etc. Timer_B: Same as A; improved PWM Timer_D: Same as B; with hi-res timing RTC: Real-time clock with calendar & alarms – runs in LPM3 low power mode Watch: Watchdog or interval functions CH 6 Timer A & B ‘F5529 block diagram CH 8 RTC

MSP430 Clocking & Power Mgmt (Ch 4) Clocks CH 4 Power CH 4 Clocking (Chapter 4) Three Internal Clocks provide for CPU, fast and slow peripherals Many clock sources (internal and external) provide cheap and accurate clks with quick wake-up Clock defaults and failsafe’s improve system robustness Power Mgmt Brown-out reset on all devices Many provide LDO’s and power supervisors On-chip power gating drives ULP ‘F5529 block diagram

MSP430 Analog Analog Watchdog CH 3 & 5 Clocks CH 4 Power CH 4 GPIO Families ADC converter options: 10 or 12-bit SAR (ADC10, ADC12) 16 or 24-bit Sigma-Delta (SD16, SD24) Slope converters DAC converters: 12-bit DAC12 Comparators Voltage REFerences Features in common: Analog mux supporting multiple input chan’s DMA can read/write samples without CPU Precise timing when using timer to trigger Generate interrupts to CPU Low power dissipation ‘F5529 block diagram CH 6 Timers

MSP430 Communication Communications Watchdog CH 3 & 5 Clocks CH 4 Power CH 4 GPIO CH 3 USB CH 10 Communications USB (Chapter 10) USB 2.0 at Full speed (12Mbps) Includes PHY, LDO, PLL, PUR Serial ports USI: SPI, I2C USCI: SPI, I2C, IrDA, UART eUSCI: enhanced USCI Radio Frequency CC430 and RF430 devices include Sub-1GHz or NFC radios WiFi, BLE, ANT, Bluetooth & Sub1GHz communications via TI SimpleLink ‘F5529 block diagram CH 6 Timers

MSP430 Accelerators Accelerators Watchdog CH 3 & 5 Clocks CH 4 Power GPIO CH 3 USB CH 10 Accelerators DMA (“hardware memcpy”) Copy from memory to memory Faster copies than with CPU Supports periph’s (ADC, UART) MPY32 (8/16/32 Multiplier) MAC, fractional, saturation support CRC: Single-cycle CRC generation AES: 128, 192, 256 bit encryption LCD: Automatic with up-to 160-bit ‘F5529 block diagram

MSP430 Peripherals (and In-Depth Chapters) Watchdog CH 3 & 5 Clocks CH 4 Power CH 4 GPIO CH 3 USB CH 10 CH 6 Timer A & B ‘F5529 block diagram CH 8 RTC

Ultra-low Power Activity Profile Standby (LPM3) Active 170 A 0.4 A Leave On the Slow Clock Low power clock and peripherals interrupt CPU only for processing On-Demand CPU Clock DCO starts immediately CPU processes data and quickly returns to Low Power Mode The MSP430 is designed specifically for battery-powered measurement applications. The average system power consumption is the absolute lowest, without compromise in performance. The system enters and remains as long as possible in an ultra-low power standby mode and is awoke only to service interrupt and then as fast as possible. Multiple oscillators are utilized to provide both an ultra-low power standby mode, and “on-demand” high-performance processing. The clock system is very flexible and allows the MSP430 to operate optimally from a single 32KHz crystal – with the internal digitally controlled oscillator (DCO) used for the CPU and high-speed peripherals. A low frequency Auxiliary Clock (ACLK) is driven directly from a common 32KHz watch crystal with no additional external components. The ACLK enables the MSP430’s ultra-low-power standby mode (LPM3) and an embedded real-time clock function. In LPM3, the MSP430 typically consumes in the 1uA range. The integrated high-speed DCO can source the master clock (MCLK) used by the CPU and high-speed peripherals. By design, the DCO is active and fully stable in less than 6 µs no intermediate steps. This enables “instant on” high-performance processing – no long start-up for a second crystal or 2-speed start-up required. Because the DCO is digitally adjustable with software and hardware, stability over time and temperature are assured. To service interrupt driven events, the software efficiently uses the 16-bit RISC CPU’s performance in very short, “burst” intervals. Transition from standby to full active is less than 6us. This results in a combination of ultra-low power consumption and very high-performance immediately when needed. To support non-low power applications, a high-speed crystal up to 16Mhz can also be used. The device can also operate with no external crystal using only the internal DCO

External Interrupt, RTC Low-Power Modes Operating Mode CPU (MCLK) SMCLK ACLK RAM Retention BOR Self Wakeup Interrupt Sources Active  Timers, ADC, DMA, WDT, I/0, External Interrupt, COMP, Serial, RTC, other LPM0 LPM1 LPM2 LPM3 LPM3.5 External Interrupt, RTC LPM4 External Interrupt LPM4.5 LPM is great, but waking up...

Further Reading… MSP430 Microcontroller Basics by John H. Davies, (ISBN-10 0750682760) Link Microcontroller Programming and Interfacing: Texas Instruments MSP430 (Synthesis Lectures on Digital Circuits and Systems) by Steven Barrett and Daniel Pack , (ISBN-10 0750682760) Link This list is by no means exhaustive, but these are two highly recommended texts. I’ve read a good portion of the first book, by John Davies, and found it an excellent way to learn more about the MSP430. The book is a couple of years old now, so it doesn’t discuss TI’s latest devices, but the information is so darn good. To tell the truth, the basic lessons don’t vary much anyway. But here’s to hoping that one day John will come out with an updated edition. A college of mine recommended the second book we’ve shown here. I haven’t had the opportunity to review that one, yet. But I’m hoping to one of these days. In any case, here are two good options to take your MSP430 knowledge to another level!

MSP-EXP430F5529LP Launchpad

MSP-EXP430F5529LP Overview

Lab 1 – Run Out-of-Box Demo Verify tool installation Review Launchpad kit contents Connect hardware Try out preloaded software using Quick Start Guide Agenda …