Getting Started with the Texas Instruments ez430

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

1.2 - Introduction to the IAR Workbench IDE *

Texas Instruments Mixed Signal Processor Tutorial Abstract

CPE 323: MSP430 Timers

Installation tutorial for the Skomer IDE

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

@databasescaling Wednesday, 18 th April 2013

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

Code Composer Studio. MSP Project Setup

Getting Started in C Programming with Keil MDK-ARM Version 5

Software Setup and Introductory Assembly programs for the MSP430 *

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

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

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

Getting Started in C Programming with Keil MDK-ARM Version 5

Getting Started in C Programming with Keil MDK-ARM Version 5

MSP430. More on MSP430

Create and Add the Source File

Lecture test next week

Introduction to the Texas Instruments ez430. By: Naren Anand

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

MSP430 Interface to LMP91000 Code Library

MSP430 Interface to LMP91000 Code Library

F28069 ControlCard Lab1

Why embedded systems?

Analog Peripherals. Introduction. Objectives

Getting Started Guide: TMS-FET470A256 IAR Kickstart Development Kit

CONTENTS: Program 1 in C:

Lab 0 Introduction to the MSP430F5529 Launchpad-based Lab Board and Code Composer Studio

Getting Started with the MSP430 LaunchPad

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

ECE2049 Homework #2 The MSP430 Architecture & Basic Digital IO (DUE Friday 9/8/17 at 4 pm in class)

F28335 ControlCard Lab1

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

CPE 323: Laboratory Assignment #1 Getting Started with the MSP430 IAR Embedded Workbench

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

6. General purpose Input/Output

ECE2049 Embedded Computing in Engineering Design. Lab #0 Introduction to the MSP430F5529 Launchpad-based Lab Board and Code Composer Studio

CPE/EE 323 Introduction to Embedded Computer Systems Homework V

IAR PowerPac RTOS for Texas Instruments MSP430 Microcontroller Family

Getting Started with the MSP430 LaunchPad

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

Using peripherals on the MSP430 (if time)

Installation and Quick Start of isystem s winidea Open in DAVE. Tutorial Version 1.0, May, 2014

embos Real Time Operating System CPU & Compiler specifics for Texas Instruments MSP430 CPUs and Rowley compiler for MSP430 Document Rev.

Getting Started with the MSP430 IAR Assembly

With the standalone CD, follow the installer dialog.

Review Activity 1 CALL and RET commands in assembler

Lecture 5: MSP430 Interrupt

Getting Started in Assembly Programming with Keil uvision and MSP432

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

CPE/EE 421 Microcomputers

Getting Started with MCUXpresso SDK CMSIS Packs

EZ430-C9. Getting Started with Kionix EZ430-C9 Evaluation Board for the Texas Instruments MSP430 USB Stick Development Tool

Hacettepe University

ECE2049: Embedded Computing in Engineering Design A Term Fall Lecture #8: Making it work: LEDs, Buttons & Keypad

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

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

Using Code Composer Studio IDE with MSP432

Block diagram of processor (Harvard)

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

Physics 319 Spring 2015: Introduction to the Programming and Use of Microprocessors

MSP-430 Host Software Example for the QF4A512

File: /media/j/texas/my msp430/g3tr/g3tr.c Pagina 1 di 5

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

FAE Summit Interfacing the ADS8361 to the MSP430F449 Low Power Micro Controller

Embedded Technosolutions

You have a PC with a USB interface, running Microsoft Windows XP (SP2 or greater) or Vista You have the Workshop Installation Software Flash Drive

BASICS OF THE RENESAS SYNERGY PLATFORM

What is an Interrupt?

IAR EWARM Quick Start for. Holtek s HT32 Series Microcontrollers

Parallel Tools Platform

F28027 USB Stick Lab1_3

AN-2245 MSP430 Interface to DAC161P997 Code Library

BASICS OF THE RENESAS SYNERGY TM

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

Evaluation board for NXP LPC2103. User Guide. Preliminary Version updated 27 th Aug TechToys Company All Rights Reserved

Moses Jones Application Note ECE 480 Design Team 7 Programming Altimeters. Using MSP 430 Launch Pad 11/8/2013

IAR C-SPY Hardware Debugger Systems User Guide

Exercise: PWM Generation using the N2HET

P&E Microcomputer Systems, Inc. PKGPPCNEXUS

Hacettepe University

Microcontrollers. vs Microprocessors

ECE 492 WINTER 2015 GROUP 2. Texas Instruments MSP430-FR Bit ADC Setup Guide

UC Berkeley EE40/100 Lab Lab 6: Microcontroller Input/Output B. Boser, etc.

SKP16C26 Tutorial 1 Software Development Process using HEW. Renesas Technology America Inc.

QUICKSTART CODE COMPOSER STUDIO Stellaris Development and Evaluation Kits for Code Composer Studio

AD5669R - Microcontroller No-OS Driver

Texas Instruments Microcontroller HOW-TO GUIDE Interfacing Keypad with MSP430F5529

Network Embedded Systems Sensor Networks Fall Hardware. Marcus Chang,

TREX Set-Up Guide: Creating a TREX Executable File for Windows

BASICS OF THE RENESAS SYNERGY PLATFORM

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

Wireless Sensor Networks (WSN)

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

MSP430 RF Applications with the MRF1611CC1100. API Reference. Tom Baugh

Interrupts, Low Power Modes

5xx Active & Low Power Mode Operation

Introduction. Key features and lab exercises to familiarize new users to the Visual environment

CodeWarrior Development Studio for etpu v10.x Quick Start SYSTEM REQUIREMENTS

Transcription:

1 of 6 03.01.2009 01:33 HOME Running Your Code>> Getting Started with the Texas Instruments ez430 Working with the Workbench Software Step 1: Each program needs an associated project. The project includes your 'C' file as well as other files created by the system (a project file with the ".eww" extention, a project settings folder, a debug folder which contains compiled code outputted by Workbench etc). If you save and close your project, opening it again is as simple as opening this folder, and doubleclicking on the Workbench project file, which has a ".eww" extention. Using 'Start->My Computer', create a folder to store all your projects named "ez430". NOTE: You should create the folder in your U: drive. Create a folder in the "ez430" folder named "blink" for your first project. Each project should be saved in its own folder (directory). Step 2: KickStart provides an IDE (integrated development environment) where you can configure the hardware, write code, compile code, download and debug code. Start KickStart from the Start menu: 'Start-> Programs -> IAR Systems -> IAR Embedded Workbench KickStart for MSP430 V4 -> IAR Embedded Workbench' A Startup Screen should open. If it does not open, choose: 'Help -> Startup Screen' Step 3: Select "Create new project in current workspace" to begin. A Create New Project Screen will open.

2 of 6 03.01.2009 01:33 Step 4: Select the language in which we shall write our code. Click the '+' next to the 'C' and then the 'main' option. Click 'OK'. A 'Save As' window will open. Select the project folder "blink", you created earlier. Enter the File name "blink_project". NOTE: You may get a system message letting you know that the project file is an old format, asking if you would like to convert it for use with this version. Select 'Yes'. Configure Project Once you have created your project folder, the IDE window is displayed with the Files section on the left column and the source code template main.c displayed in the main window. You now need to configure the project. Step 5: Under the Files pane, select (highlight) the Project (top entry). Select 'File->Save Workspace'. Make sure you are saving in the project folder you created. Enter the project name "blink_workspace". Step 6: Select Project->Options to get the following screen and make the indicated selections:

3 of 6 03.01.2009 01:33 Step 7: Select Debugger in the Category section (left column of the Options window) and make the following selections.

4 of 6 03.01.2009 01:33 Step 8: Select FET Debugger in the Category section and make the following selections for Setup and Download tabs.

5 of 6 03.01.2009 01:33 Click 'OK' when completed. You are now ready to enter your code. The code will be saved in the 'main.c' file. Step 9: Using your mouse, highlight the following text (program), beginning at START HERE and ending at END HERE. Select 'Edit->Copy'. In the Workbench IDE, highlight the text in the 'main.c' window. Select 'edit->paste'. You have just replaced all the text in the 'main.c' window with the program you copied from this web page. // START HERE //****************************************************************************** // MSP430x2xx Demo - Software Toggle P1.0 // // Description; Toggle P1.0 by xor'ing P1.0 inside of a software loop. // ACLK = n/a, MCLK = SMCLK = default DCO // // MSP430x2xx // ----------------- // / \ XIN - // // -- RST XOUT - // // P1.0 -->LED // // A. Dannenberg // Texas Instruments, Inc // January 2006 // Built with IAR Embedded Workbench Version: 3.40A //****************************************************************************** #include "msp430.h"

6 of 6 03.01.2009 01:33 int main(void) { WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer P1DIR = 0x01; // Set P1.0 to output direction for (;;) { volatile unsigned int i; P1OUT ^= 0x01; i = 10000; do i--; while (i!= 0); } } // END HERE // volatile to prevent optimization // Toggle P1.0 using exclusive-or // SW Delay What does this program do? The above program blinks the LED (light emitting diode) on the ez430-f2013. The code may look very strange to you, but it is actually quite simple. When you write source code, you should always be sure to carefully comment your code. In C, comments begin with a // on a line. All text that appears to the right of the // is considered comments. The compiler will ignore that text. Every C program must have a function named main. This lets the operating system know where to start executing your code. This program is very simple, it only has one function, and that function is named main. Within the main function is a for loop. There are no values in the for loop to get it to stop, therefore, it will execute forever. Many embedded systems programs run in this way. Since they have one purpose in life, they start running and simply continue. Inside the for loop is another loop that is controlled by the variable i. The program stays in a tight loop, counting down from the value i to 0. This is called a software delay. Each time the counter gets to 0, the software toggles the light (e.g. if it is on, it turns it off) and starts counting down again. Step 10: In the Workbench IDE, select 'File->Save Workspace' You are now ready to compile, download and run your program. Resources Connexions: Introduction to the Texas Instruments ez430 (Reference material presented here. Some material and screen shots were replicated from this site.) HOME Running Your Code>>