Top Banner
Intro MSP430 Programming Matt Bauer
15

Intro to MSP430 Programming

Nov 18, 2014

Download

Documents

mrbauer1
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Intro to MSP430 Programming

Intro MSP430 ProgrammingMatt Bauer

Page 2: Intro to MSP430 Programming

What Is A MSP430?

Made By Texas Instruments

Ultra-Low Power

16-bit RISC Mixed Signal Processor

8-27Mhz, 1-256KB Flash, 1-8KB RAM

Multiple Timers, ADC, USART, USB, Realtime Clock, I2C, SPI, Watchdog

Page 3: Intro to MSP430 Programming
Page 4: Intro to MSP430 Programming

Step 0: Get Setup

Eagle

Development Board

Programmer

Compiler

Page 5: Intro to MSP430 Programming

Step 0: Get Setup

Page 6: Intro to MSP430 Programming

Step 0: Get Setup

Page 7: Intro to MSP430 Programming

Step 0: Get Setup

IAR Systems

mspgcc

Rowley

Code Composer Essentials (CCE)

Page 8: Intro to MSP430 Programming

Microcontroller Basics

P4DIR

P4OUT

P4REN

P4DIR

Page 9: Intro to MSP430 Programming

Microcontroller Basics

P4DIR |= BIT2 // On

P4DIR &= ~BIT2 // Off

P4DIR ^= BIT2 // Toggle

P4DIR |= (BIT2 + BIT3 + BIT5) // On

P4DIR &= ~(BIT2 + BIT3 + BIT5) // Off

Page 10: Intro to MSP430 Programming

Microcontroller Basics

Page 11: Intro to MSP430 Programming

Step 1: Set The Clock

Page 12: Intro to MSP430 Programming

Step 2: Setup The Ports

Page 13: Intro to MSP430 Programming

Step 3: The Interrupts

Page 14: Intro to MSP430 Programming

Step 4: Run

Page 15: Intro to MSP430 Programming

Step 5: Expand

I2C

SPI

UART

GPIO