Code Composer Department of Electrical and Computer Engineering

Slides:



Advertisements
Similar presentations
Introduction to Eclipse. Start Eclipse Click and then click Eclipse from the menu: Or open a shell and type eclipse after the prompt.
Advertisements

Getting started with MPLAB Launch MPLAB Set Toolbar as in the next slide by clicking the leftmost icon Open a new Source file by choosing [FILE][NEW] Type.
Introduction to HT-IDE3000 Micro-C development System Department.
Go to ‘Site Actions’ ‘View All Site Content ‘View All Site Content’
The 8051 Microcontroller and Embedded Systems
Lab7: Introduction to Arduino
ITCS 3181 Logic and Computer Systems 2015 B. Wilkinson slides3.ppt Modification date: March 16, Addressing Modes The methods used in machine instructions.
Slide 1CPU Emulator Tutorial This program is part of the software suite that accompanies the book The Digital Core, by Noam Nisan and Shimon Schocken 2003,
Lab6 – Debug Assembly Language Lab
Intoduction First we’ll talk in general about Visual X-Toy Then we’ll input and run a program using switches Then we’ll look at the more advanced editor.
Programming and Problem Solving
LAUNCHXL2-RM57L – Project 0
8051 ASSEMBLY LANGUAGE PROGRAMMING
1 Introduction to Programming Environment Using MetroWerks CodeWarrior and Palm Emulator.
The MSP430xxxx Department of Electrical and Computer Engineering
Part 1 Using the ARM board And start working with C Tutorial 5 and 6
Chapter 2 Software Tools and Assembly Language Syntax.
Silicon Labs ToolStick Development Platform
CHAPTER 1 XNA Game Studio 4.0. Your First Project A computer game is not just a program—it is also lots of other bits and pieces that make playing the.
Renesas Technology America Inc. 1 M16C/Tiny SKP Tutorial 2 Creating A New Project Using HEW4.
Computer Literacy BASICS: A Comprehensive Guide to IC 3, 5 th Edition Lesson 3 Windows File Management 1 Morrison / Wells / Ruffolo.
How to Download and Install a Sharp Print Driver on a Mac.
Lab 1 – Assembly Language and Interfacing Start date: Week 3 Due date: Week 4 1.
1 Chapter 2 & Chapter 4 §Browsers. 2 Terms §Software §Program §Application.
Introduction Purpose This course describes the process of installing the KPIT GNU toolchain on your PC. Objective Learn how easy it is to get information.
Lecture Set 1 Part C: Understanding Visual Studio and.NET – Applications, Solutions, Projects (no longer used – embedded in Lecture Set 2A)
Renesas Technology America Inc. 1 SKP8CMINI Tutorial 2 Creating A New Project Using HEW.
Using OUI to install Oracle9i Release 2 on an OpenVMS System.
CPSC1301 Computer Science 1 Overview of Dr. Java.
Introduction Purpose This training course covers debugging an application on an SH target in the Renesas HEW (High-performance Embedded Workshop) development.
Lecture Set 2 Part A: Creating an Application with Visual Studio – Solutions, Projects, Files.
An Introduction to Designing and Executing Workflows with Taverna Aleksandra Pawlik materials by: Katy Wolstencroft University of Manchester.
Using Microsoft Visual Studio 2005 Original by Suma Rao Revised by John G. McMahon ( 9/6/2008 )
CMPF124: Basics Skills for Knowledge Workers Manipulating Windows GUI.
Bit-DSP-MicrocontrollerTMS320F2812 Texas Instruments Incorporated European Customer Training Center University of Applied Sciences Zwickau (FH)
Renesas Technology America Inc. 1 M16C Seminars Lab 3 Creating Projects Using HEW4 14 March 2005 M16C Seminars Lab 3 Creating Projects Using HEW4 Last.
Separating the Interface from the Engine: Creating Custom Add-in Tasks for SAS Enterprise Guide ® Peter Eberhardt Fernwood Consulting Group Inc.
ECE Lecture 1 1 L15 –I/O Part II Department of Electrical and Computer Engineering The Ohio State University ECE 2560.
Renesas Technology America Inc. 1 SKP8CMINI Tutorial 2 Creating A New Project Using HEW.
Quick guide to ASIMON configuration For version 3.0 or greater SAFETY AT WORK Date: 3/18/2009.
Computer Literacy BASICS: A Comprehensive Guide to IC 3, 5 th Edition Lesson 3 Windows File Management 1 Morrison / Wells / Ruffolo.
Lecture Set 2 Part A: Creating an Application with Visual Studio – Solutions, Projects, Files 8/10/ :35 PM.
ECE 447 Fall 2009 Lecture 4: TI MSP430 Architecture and Instruction Set.
XP New Perspectives on Microsoft Windows XP Tutorial 2 1 Microsoft Windows XP Working with Files Tutorial 2.
Intro Compiler Configuration and Sample Project Walkthrough (For Axiom CME11E9-EVB)
ECE Lecture 1 1 The Hardware Multiplier Department of Electrical and Computer Engineering The Ohio State University ECE 2560.
IE 411/511: Visual Programming for Industrial Applications Lecture Notes #2 Introduction to the Visual Basic Express 2010 Integrated Development Environment.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Introduction Purpose  This training course demonstrates the use of the High-performance.
Lab 1: Using NIOS II processor for code execution on FPGA
ECE 3430 – Intro to Microcomputer Systems
Addressing Modes in Microprocessors
Computer Science 210 Computer Organization
Appendix A Barb Ericson Georgia Institute of Technology May 2006
Introduction to Programming
ACOE301: Computer Architecture II Labs
PRU-ICSS Programming with CCS
Chapter 4 Addressing modes
L7 – Assembler Directives
CS 301 Fall 2001 – Chapter 3 Slides by Prof. Hartman, following “IBM PC Assembly Language Programming” by Peter Abel 9/17/2018.
Computer Science 210 Computer Organization
Windows Internet Explorer 7-Illustrated Essentials
Assembler CASE Tool.
Introduction to Micro Controllers & Embedded System Design Addressing Mode Department of Electrical & Computer Engineering Missouri University of Science.
Instruction encoding We’ve already seen some important aspects of processor design. A datapath contains an ALU, registers and memory. Programmers and compilers.
CPU Emulator Tutorial This program is part of the software suite
ECE 3567 Microcontroller Lab
Introduction to Micro Controllers & Embedded System Design
CSC235 - Visual Studio Tutorial
How to create an Itunes account to your computer
8051 ASSEMBLY LANGUAGE PROGRAMMING
Presentation transcript:

Code Composer Department of Electrical and Computer Engineering ECE 2560 Code Composer Department of Electrical and Computer Engineering The Ohio State University ECE 3561 - Lecture 1

The Code Composer Code Composer An interactive compiler, assembler, debug system for development of programs for the MSP 430. Developing an assembler program in Code Composer Demo of a simple program ECE 3561 - Lecture 1

Documentation You can bring up “help” in CCS Brings up a new window You can do a search on assembler language or 430 Compiler Users Guide Click at top of page on Compiler Version x.x User’s Guide Will allow you to navigate to assembler Language tools users guide In 1.1 is the diagram ECE 3561 - Lecture 1

A top level view Where assembler language fits As the assembler is part of a code development system it is more sophisticated than typical assemblers. ECE 3561 - Lecture 1

CCS assembler Using code composer for assembler Launch CCS Select New Project Give the project a name End name with .asm Output type – leave as Executable Choose a location by unclicking ‘use default’ and select your directory ECE 3561 - Lecture 1

CCS starting project (2) In the device area Choose the MSP 430 for Family: Most likely this is the only option Variant: Leave 1st box blank Variant: 2nd Box should be MSP430G2553 This is the 430 that is on the launchpad As we will be using the debugger this is very important Should be USB1 – the default ECE 3561 - Lecture 1

Under Advanced You need to have the correct linker command file – Here : lnk_msp430g2553 When selected – click OPEN ECE 3561 - Lecture 1

Under Project Templates Choose Empty Assembler-only Project Click on Finish ECE 3561 - Lecture 1

The first window for project Have several areas Project Coding Problems ECE 3561 - Lecture 1

Some first code For first coding load values into some registers $0004 into R4 $F012 into R5 $0066 into R6 ECE 3561 - Lecture 1

The project name Rename main.asm Go to the Project Explorer Window Expand it and you will see main.asm Right click, choose rename and do a rename You will see the new_name.asm at the top of the coding window now. BE SURE YOU HAVE .asm extension ECE 3561 - Lecture 1

The coding window Time to enter code Discussion of code sections Entering code - get some free lines first END CODE WITH INSTRUCTION Loop: JMP Loop This is so the program ends. This instruction is called an endless loop. ECE 3561 - Lecture 1

First Instructions Assembler instruction format Label: Instr op1,op2 ;comment They are MOV #0x0004,R4 ;comment MOV #0xF012,R5 ;note # sign MOV #0x0060,R6 ;note hex representation MOV R4,R7 Enter and compile ECE 3561 - Lecture 1

Chip demo Now compile and download to chip Connect the launchpad Choose DEBUG under RUN selection New window format appears ECE 3561 - Lecture 1

Run code Can run code to end or step instruction by instruction STEP can be done by using F5 as seen in RUN menu Also want to watch registers Expand the core registers listing NOTE: window is CCS Debug – also have the CCS Edit which may be hidden ECE 3561 - Lecture 1

Watch the action Can see PC incrementing Can see SP being set Can see values loaded into registers ECE 3561 - Lecture 1

So what is this showing use When executing To restart your code you can do a hard reset The initial instructions CLR Rx - clears register x to 0’s Register Mode MOV #0xFOO4,R4 Immediate addressing mode MOV #0x0060,R6 Another immediate addressing mode instruction Note way in which hexadecimal is specified ECE 3561 - Lecture 1

More on addressing MOV R4,R7 MOV R7,&buf What is the value of buf Register mode – Copies the value in R4 to R7 so they have the same value MOV R7,&buf Move the contents of R7 to the address indicated by buf. buf is user defined symbol and has a value (next slide) What is the value of buf MOV #buf,R6 shows what the value of buf is Note that buf has a value of 200 And that value is in R6 ECE 3561 - Lecture 1

Data/variables for your progam Where is “buf”? To set up the area for variables/constants After your code, i.e., after Loop: JMP Loop Start line .data buf .word 0 vals .byte 14,3,12 ECE 3561 - Lecture 1

The other addressing modes Indirect Register Mode Example MOV @R6,R4 Note that the address of buf is $0200 and it has been loaded into register R6 The memory location at address buf has contents $F004 Note R4 after execution ECE 3561 - Lecture 1

Indexed mode addressing First clear the registers Memory was set up as follows Address lbl contents 0234h d1 0011h 0022h 0238h d2 0033h 0044h 023Ch d3 0055h 0066h ECE 3561 - Lecture 1

Indexed addressing mode MOV 2(R4),R6 This should move the contents of the word stored at 2 past the value in R4 R4 contains value 0234h which labeled d1 At memory address 0234h 0011h At memory address 0236h 0022h So instruction should move 0022h to R6 ECE 3561 - Lecture 1

Indirect autoincrement Do some loading of R7 using R4 with autoincrement. MOV @R4+,R7 Can watch this in emulation on a chip ECE 3561 - Lecture 1

Summary - Assignment Saw an initial demo of how to use CCS A look ahead Will cover some basics on instructions - Like What is the instruction to load a value of 7h into R8? Write the instruction to add R4 to R9 with the result going to R9. HW 2 is on the webpage ECE 3561 - Lecture 1