CPE 323 Introduction to Embedded Computer Systems: MSP430 System Architecture An Overview

Similar documents
MSP430. More on MSP430

CPE 325: Embedded Systems Laboratory Laboratory #7 Tutorial MSP430 Timers, Watchdog Timer, Timers A and B

CPE 323: MSP430 Timers

Alex Milenkovich 1. CPE/EE 421 Microcomputers: The MSP430 Introduction. Outline

CPE/EE 323 Introduction to Embedded Computer Systems Homework V

Getting Started with the Texas Instruments ez430

Network Embedded Systems Sensor Networks Fall Hardware. Marcus Chang,

CPE 323 Introduction to Embedded Computer Systems: ADC12 and DAC12. Instructor: Dr Aleksandar Milenkovic Lecture Notes

ECE PRACTICE EXAM #2 Clocks, Timers, and Digital I/O

CPE 325: Embedded Systems Laboratory Laboratory #11 Tutorial Analog-to-Digital Converter and Digital-to-Analog Converter

Timers and Clocks CS4101 嵌入式系統概論. Prof. Chung-Ta King. Department of Computer Science National Tsing Hua University, Taiwan

MSP430 Microcontroller Basics

@databasescaling Wednesday, 18 th April 2013

ECE2049: Embedded Computing in Engineering Design C Term Spring Lecture #11: More Clocks and Timers

CPE 323: MSP430 Serial Communication

ECE2049: Embedded Computing in Engineering Design C Term Spring 2019 Lecture #22: MSP430F5529 Operating Mode & the WDT

2002 Mixed Signal Products SLAU056B

Block diagram of processor (Harvard)

Lab 1: I/O, timers, interrupts on the ez430-rf2500


Lecture 5: MSP430 Interrupt

Lab 4: Interrupt. CS4101 Introduction to Embedded Systems. Prof. Chung-Ta King. Department of Computer Science National Tsing Hua University, Taiwan

Texas Instruments Mixed Signal Processor Tutorial Abstract

IV B.Tech. I Sem (R13) ECE : Embedded Systems : UNIT -2 1 UNIT 2

6. General purpose Input/Output

University of Texas at El Paso Electrical and Computer Engineering Department. EE 3176 Laboratory for Microprocessors I.

Alex Milenkovich 1. CPE/EE 421 Microcomputers. Course Administration. Review: Outline. Getting Started with EasyWeb2. Review: MSP bit RISC

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

Design and development of embedded systems for the Internet of Things (IoT) Fabio Angeletti Fabrizio Gattuso

Copyright 2015 by Stephen A. Zajac & Gregory M. Wierzba. All rights reserved..spring 2015.

Analog Peripherals. Introduction. Objectives

Interfacing CMA3000-D01 to an MSP430 ultra low-power microcontroller

// Conditions for 9600/4=2400 Baud SW UART, SMCLK = 1MHz #define Bitime_5 0x05*4 // ~ 0.5 bit length + small adjustment #define Bitime 13*4//0x0D

MSP430FG4618 Programming Reference Revision 3

What is an Interrupt?

Microcontroller basics

CPE/EE 421 Microcomputers

The 16-bit timer/counter register, TAR, increments or decrements (depending on mode of operation) with each rising edge of the clock signal.

ECE2049: Embedded Computing in Engineering Design C Term Spring 2018

Hacettepe University

Introduction to ARM LPC2148 Microcontroller

Why embedded systems?

C Language Programming through the ADC and the MSP430 (ESCAPE)

CPE/EE 421 Microcomputers

EasyAVR6 Development System

MIDTERM#1. 2-(3pts) What is the difference between Von Neumann & Harvard processor architectures?

Interconnects, Memory, GPIO

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

Advanced Embedded Systems

Designing for Ultra-Low Power with MSP430

Embedded Systems. 3. Hardware Software Interface. Lothar Thiele. Computer Engineering and Networks Laboratory

Team 3. By: Miriel Garcia. Microcontrollers/ TI MSP430F5438A. ECE 480 senior Design. Application Note 4/3/15

Texas Instruments Microcontroller HOW-TO GUIDE Interfacing Keypad with MSP430F5529

Lab 4 Interrupts ReadMeFirst

MSP430x43x1, MSP430x43x, MSP430x44x1, MSP430x44x MIXED SIGNAL MICROCONTROLLER

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

DEV-1 HamStack Development Board

Wireless Sensor Networks (WSN)

2.996/6.971 Biomedical Devices Design Laboratory Lecture 6: Microprocessors II

2006 Mixed Signal Products SLAU049F

Getting Started with the MSP430 LaunchPad

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

EasyPIC5 Development System

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

ECE2049: Embedded Computing in Engineering Design C Term Spring 2018 Lecture #20: Using SPI The DAC

Interfacing CMR3000-D01 to an MSP430 ultra low-power microcontroller

063[[[0LFURFRQWUROOHUV 63,

MSP430 Ultra-Low-Power Microcontrollers

Edge Power International (HK) Ltd. Product Specification

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

Chapter 1 MSP430 Microcontroller Family

Name: Clint Furrer Project Number: TI003 Project Description: Safety Walking Lights. Description:

MSP430 Interrupts. Change value of internal variable (count) Read a data value (sensor, receive) Write a data value (actuator, send)

Lecture test next week

University of Texas at El Paso Electrical and Computer Engineering Department. EE 3176 Laboratory for Microprocessors I.

EEL 4924 Electrical Engineering Design (Senior Design) Team Baudiophile. Wireless Headphones

嵌入式微處理機 Embedded Microprocessors

AVR XMEGA TM. A New Reference for 8/16-bit Microcontrollers. Ingar Fredriksen AVR Product Marketing Director

2006 Mixed Signal Products SLAU049F

ECGR 4101/5101, Fall 2016: Lab 1 First Embedded Systems Project Learning Objectives:

Microcontrollers. Principles and Applications. Ajit Pal +5 V 2K 8. 8 bit dip switch. P2 8 Reset switch Microcontroller AT89S52 100E +5 V. 2.

ECE 511 Project Group 11: MP3 Boombox 12/03/2013. Carlos R Araujo Divya Chinthalapuri Leegia S Jacob Brian D Jarvis Shawn Wilkinson

SYLLABUS UNIT - I 8086/8088 ARCHITECTURE AND INSTRUCTION SET

Create and Add the Source File

Getting Started with the MSP430 LaunchPad

Cypress PSoC 4 Microcontrollers

Getting Started with the MSP430 IAR Assembly

REDACTION BASED ATM MONITORING SYSTEM USING MSP 430

Bolt 18F2550 System Hardware Manual

8. Power Management and Sleep Modes

Intro. MEB/ Texas Instruments Inc, Slide 1

Hacettepe University

CPE/EE 421 Microcomputers

STM32 Cortex-M3 STM32F STM32L STM32W

Hacettepe University

University Program Advance Material

ootbrobotics.com Electronics and Robotics LLC

An Arduino Controlled 1 Hz to 60 MHz Signal Generator

Doc: page 1 of 8

Microcontrollers. vs Microprocessors

Transcription:

CPE 323 Introduction to Embedded Computer Systems: MSP430 System Architecture An Overview Aleksandar Milenkovic Electrical and Computer Engineering The University of Alabama in Huntsville milenka@ece.uah.edu http://www.ece.uah.edu/~milenka

CPU, Memory, Peripherals, Bus (MAB, MDB) CPE 323 Intro to Embedded Computer Systems 2

MSPx430F2013 Microcontroller CPE 323 Intro to Embedded Computer Systems 3

MSP430xG461x Microcontroller CPE 323 Intro to Embedded Computer Systems 4

MSP430xG461x Microcontroller CPE 323 Intro to Embedded Computer Systems 5

Clock Subsystem Generate clocks used by components on the chip Configured and tuned by software, enable/disable clocks for Low-Power Modes Multiple types (FLL+, Basic Clock Module) Three clocks are available: Main clock (MCLK): CPU, DMA, selected peripherals Sub-system clock (SMCLK): peripherals Auxiliary clock (ACLK): peripherals CPE 323 Intro to Embedded Computer Systems 6

Watchdog Timer Monitors system operation Two modes of operation Watchdog Interval timer Watchdog: performs controlled system reset if a software error occurs Interval timer: generates an regular periodic interrupt Active on power-up CPE 323 Intro to Embedded Computer Systems 7

Timers (Timer_A, Timer_B) Time keeping Timer block: counter Capture&Compare block: logic where action occurs Two main functions Capture Compare Capture: monitor external events (signal transitions) and timestamp them when a change is detected Compare: produce PWM signals, compare running counter to predefined values in CCRx and trigger a change in a signal CPE 323 Intro to Embedded Computer Systems 8

Comparator (Comparator_A) Compare an analog signal to a reference voltage and produces a binary output (1 if Vin Vref, 0 otherwise) Supports precision slope analog-to-digital conversions Supply voltage supervision Monitoring of external analog signals CPE 323 Intro to Embedded Computer Systems 9

Analog-to-Digital Converter (ADC12) Convert analog signals to binary counterparts ADC12: 12-bit resolution 200 Ksamples/s 8 external inputs Local memory Programmable sample time Selectable reference voltages CPE 323 Intro to Embedded Computer Systems 10

Serial Communication Interfaces (USCI, USART, USI) Support for synchronous and asynchronous serial communication UART SPI I2C Infrared CPE 323 Intro to Embedded Computer Systems 11

TI Experimenter s Board: Block Diagram Microcontroller s (F4618, F2013) JTAGs Buttons/Switches Capacitive Touch Pad Microphone Buzzer LCD Wireless Interface RS232 CPE 323 Intro to Embedded Computer Systems 12

TI Experimenter s Board Two on-board CPUs MSP430FG4618 MSP430F2013 The Softbaugh SBLCDA4 LCD display 4-MUX operation and is interfaced to the MSP430FG4618 LCD driver peripheral Momentary Push-ON Buttons S1 and S2 are connected to pins on Port 1 (P1) of the MSP430FG4618 Light Emitting Diodes (LEDs) Four LEDs, three of which are connected to the MSP430FG4618, and one connected to the F2013. Buzzer Connected to one of the MSP430FG4618 port pins and can be disabled using jumper JP1 CPE 323 Intro to Embedded Computer Systems 13

TI Experimenter s Board Single-Touch Capacitive Sensing Interface A 16-segment touch pad in the shape of a 4 is connected to the data pins of the MSP430F2013, which then relays the data to the MSP430FG4618 using the inter-processor communications peripherals on each CPU RS232 Serial Communication Port A standard 9-pin serial communications port is connected to the MSP430FG4618 USCI peripheral and can be used when the USCI is configured in UART mode Microphone & Analog Out A microphone is connected to a port pin of the MSP430FG4618, and the input to the 3.5mm analog out can be connected to the output from the MSP430FG4618 s 12-bit digital to and analog (DAC12) convertor Radio Wireless Communication Module Interface CPE 323 Intro to Embedded Computer Systems 14

Headers CPE 323 Intro to Embedded Computer Systems 15

Capacitive Touch Pad CPE 323 Intro to Embedded Computer Systems 16

Power Supply Configuration, RF Daughter Card Connect, Audio Output CPE 323 Intro to Embedded Computer Systems 17

MSP430FG4618 CPE 323 Intro to Embedded Computer Systems 18

RS232 Connector, LCD Display CPE 323 Intro to Embedded Computer Systems 19

Blink a LED Program /**************************************************************************** ; TI Experimenter board demo, blinking leds LED1 and LED2 (msp430fg4618) ; Description: Toggle P2.1 and P2.2 by xoring P2.1 and P2.2 inside a loop. ; The LEDs are connected to P2.1 and P2.2 and are on when ; P2.1=1 and P2.2=1; ; The LEDs are initialized P2.1 to be off, and P2.2 to be on; ; ACLK = 32.768kHz, MCLK = SMCLK = default DCO ; MSP430xG461x ; ----------------- ; / \ ; ; -- RST ; P2.2 -->LED1(GREEN) ; P2.1 -->LED2(YELLOW) ; Alex Milenkovich, milenkovic@computer.org ;****************************************************************************/ #include "msp430xg46x.h" void main(void) { WDTCTL = WDTPW + WDTHOLD;// Stop watchdog timer P2DIR = 0x06; // Set P2.1&P2.2 to output direction (0000_0110) P2OUT = 0x02; // Set P2OUT to 0x0000_0010 (LED2 is on, LED1 is off) for (;;) { unsigned int i; P2OUT ^= 0x06; // Toggle P2.1 using exclusive-or i = 50000; // Delay do (i--); while (i!= 0); } } CPE 323 Intro to Embedded Computer Systems 20