MSP430 Mixed Signal Processor

Slides:



Advertisements
Ähnliche Präsentationen
Geometrische Datenstrukturen Haozhe Chen Aaron Richardson.
Advertisements

Die deutsche Satzstellung
Telling Time in German Deutsch 1 Part 1 Time in German There are two ways to tell time in German. There are two ways to tell time in German. Standard.
Three minutes presentation I ArbeitsschritteW Seminar I-Prax: Inhaltserschließung visueller Medien, Spree WS 2010/2011 Giving directions.
RS232 Register und ihre Bits
Durch die Nacht “through the night” Silbermond
| DC-IAP/SVC3 | © Bosch Rexroth Pneumatics GmbH This document, as well as the data, specifications and other information set forth in.
You need to use your mouse to see this presentation © Heidi Behrens.
You need to use your mouse to see this presentation © Heidi Behrens.
WIE SPÄT IST ES?.
Welcome Instructor: Dominik Dwight Zethmeier
External Labels – The rules For all external labels the following rules apply (external labels are all labels which are not inside of a shape) - all labels.
Launch ON Global.vi System ID object name classname Services to suscribe Observer Control Ref vi-path Service name Step 1 : Objects register to the Global.vi´s,
Universität StuttgartInstitut für Wasserbau, Lehrstuhl für Hydrologie und Geohydrologie Copulas (1) András Bárdossy IWS Universität Stuttgart.
You need to use your mouse to see this presentation © Heidi Behrens.
Der formelle Imperativ – the Imperative
Mikrocomputertechnik Jürgen Walter
As of 1st July 2011 there will be no more "Wehrdienst" in Germany. It still has its place in the German constitution (Grundgesetz) but young men are no.
1IWF/ÖAW GRAZ Data Combination David Fischer, Rumi Nakamura (IWF/OeAW)  Fluxgate: noise + distortion gets worse than the searchcoil at ~ 6 Hz.  Searchcoil:
Die Fragen Wörter Wer? Was? Wann?.
1 Bauhaus-Universität Weimar ArchitekturProgrammierung Generative Entwurfsmethoden Processing Grundlagen Professur Informatik in der Architektur.
Was glaubst du… Was ist ein gutes Geschenk für deine Gastschwester/ Gastbruder? Ein Buch? Ein Radiowecker? Ein Hut? Ohrringe? Eine DVD?
Weak pushover verbs..... lieben kaufen spielen suchen....are verbs that do exactly as they are told. They stick to a regular pattern that does not change!
Schreiben Sie fünf Sätze aus diesen Elementen. [Beispiel
GERMAN WORD ORDER ORDER s. Sentences are made up by placing a variety of words in a specific order. If the order is wrong, the sentence is difficult to.
COMMANDS imperative There are three command forms: formal familiar singular familiar plural.
COMMANDS imperative 1. you (formal): Sie 2. you (familiar plural): ihr
Montag den 8. Juni Lernziel:- To launch a project and receive results.
© Crown copyright 2011, Department for Education These materials have been designed to be reproduced for internal circulation, research and teaching or.
Imperfekt (Simple Past) Irregular or strong verbs
Phonics Lessons Grade 1 Adapted from: Phonics Lessons by Gay Su Pinnell & Irene C. Fountas Grade 1, page 431 caatt If you knowIt helps you know.
Memorisation techniques
Übung Macht den Meister! (Practice Makes Perfect!)
Here‘s what we‘ll do... Talk to the person sitting in front of you. Introduce each other, and ask each other questions concerning the information on your.
Fragen Wo wohnen Chris und Richard? Was bekommt Chris? Woher ist der Brief? Wer arbeitet in Zürich? Wo ist Zürich? Wann fährt ein Zug nach Zürich ab? Wo.
Guten Tag, Deutsch 1! Heute ist der 14. Dezember Jetzt: Mach Übung J im Heft. Später: Stem-changing verbs! das Ziel: Conjugations of stem- changing verbs.
Das Wetter Lernziele: Heute: The „Wenn“ clause! - To describe and report the weather - To discuss activities done in different types of weather - To compare.
BEISPIEL FÜR EIN BMW F10 EXEMPEL FOR A BMW F10 SERIE Interieur.
Essay structure Example: Die fetten Jahre sind vorbei: Was passiert auf der Almhütte? Welche Bedeutung hat sie für jede der vier Personen? Intro: One or.
LLP DE-COMENIUS-CMP Dieses Projekt wurde mit Unterstützung der Europäischen Kommission finanziert. Die Verantwortung für den Inhalt dieser.
Fitness. An english presentation.
C / C++ für das Internet der Dinge und Hausautomatisierung Arduino Uno / Nano / … Input, Interrupts, Timer, Sleepmode Hochschule Fulda – FB AI Sommersemester.
Die Zukunft The future tense.
Volume 1, Chapter 9.
The IT–Information System
Dom zu Lübeck The Lübeck Cathedral (German: Dom zu Lübeck, or colloquially Lübecker Dom) is a large brick Lutheran cathedral in Lübeck, Germany and part.
Angry Olympics Part Three – Going to the Opening Ceremony
Lernziele: Wir üben das Perfekt. Wir spielen Karten auf Deutsch.
you: ihr ( familiar plural ) you: du ( familiar singular)
Deutsch I Telling time….
Formation of Questions in German
Englisch Grundlagen, Modal Verbs
Das Taschentuch-Spiel
Telling Time in German Deutsch 1 Part 1.
Was hast du gemacht? What did you do?
Vom HW-Automaten zum Prozessor
“wish” “as if” “if only it were so”
Wohin bist du gegangen? Where did you go?
THE PERFECT TENSE IN GERMAN
Was hast du gemacht? What did you do?
Outcome: Write a passage about yourself in German.
Wie viel Uhr ist es? Telling Time.
Conjugation of Regular Verbs in the Present Tense
ELECTR IC CARS Karim Aly University of Applied Sciences.
CSL211 Computer Architecture
THE PAST TENSE (Part 3) VERBS WHICH TAKE SEIN
The Conversational Past
The Conversational Past
What do you see? Looks like President Clinton and Vice President Gore, right? Wrong... It's Clinton's face twice, with two different haircuts.
School supplies.
 Präsentation transkript:

MSP430 Mixed Signal Processor Texas Instruments Große Prozessorfamilie Variiert in Peripherie-, Speicherausstattung, Bauform Bekannt für sehr geringe Leisungsaufnahme Geeignet für energy harvesting Sehr preiswerte Entwicklungswerkzeuge Launchpad ca. 5€ incl. 2 Prozessoren Developmentstick ca. 30 € /70 € m. Funk Armbanduhr Kostenlose Entwicklungssoftware

Programmierbare Uhr (http://karuppuswamy

Webserver (http://elmicro.com/de/msp430easyweb.html)

Besondere Merkmale 16-bit Prozessor Flexibles System der Takterzeugung Taktgenerator wird vom Programm eingestellt Geringer Energiebedarf durch niedrige Taktung in sleep modi (bis in nA - Bereich) Einige Geräte arbeiten mit weniger als 1V Gute Peripherieausstattung Vergleichsweise kleiner Speicher (z.T. Nur 128 Byte!) Selbst für kleinste Prozessoren umfasst das Manual fast 700 Seiten

Besondere Merkmale (Befehlssatz) 27 Prozessorbefehle (mit versch. Adressierungsmodi) B/W Byte/Word Ad Destination, As Source http://mspgcc.sourceforge.net/manual/x223.html Sehr gute Einführung zur MSP-Programmierung

Die Prozessorfamilie RAM 128 Byte … 18 KB Flash-Rom 1KB … 256 KB Taktung 12 kHz … 16MHZ/25MHZ (je Modell) Min. Ausstattung 8x10bit ADC, I²C, SPI, 16bit Timer, 8 IO-Lines, WDT, interner Temp. Sensor Umfangr. Ausstattung USB, LCD, 12bit ADC, DMA, Comparator, UART, RealTimeClock Gehäuse Wenige simple Modelle im DIP, meist SMD (http://en.wikipedia.org/wiki/TI_MSP430#MSP430x3xx_Series)

Bezeichnungsschlüssel MSP430G2231 Kennzeichnungssuffix f. Ausstattung Speicherausstattung 3: 2K Flash, 128B Ram Familie, manchmal auch Speicherausst.?? Generation Speichertyp (F: Flash, G:Flash, Value Line) http://en.wikipedia.org/wiki/TI_MSP430#MSP430x3xx_Series (Bei MSP430G2452 klappt das nicht?) Auswahl über: http://www.ti.com/lsds/ti/microcontroller/16-bit_msp430/product_search.page

Allgemeine Merkmale (pi4. informatik. uni-mannheim. de/pi4 Allgemeine Merkmale (pi4.informatik.uni-mannheim.de/pi4.data/content/courses/2004-ss/pk_bachelor/pk2-9-1-v2.pdf) R0: Programmcounter R1: Stackpointer R2: Statusregister (Flags) R3: Konstantenregister (0) R4..R16 16-bit Register

Launchpad MSPG2231 und MSPG2211 2K/1K Flash /128Byte Ram 16-bit Timer mit 3 Compareregs 8x 10bit ADC 8 I/O-Pins MSPG2452 8K/1K Flash /256Byte Ram 16 I/O-Pins Kommunikation mit PC über USB /dev/serial : Programming/debugging /dev/ttyAMC0: serielle Kommunikation (soft UART)

Taktgeneratoren/Taktarten

Kopplung zu PC über RS232 Keine Unterstützung durch die einfachen Prozessoren, softwaretechnische Realisierung Taktung erfolgt durch Timer Bits werden am Ausgangspin ein-/ausgeschaltet Zu übertragendes Byte wird mittels shift-Operation „durchgeschoben“ Start-/Stoppbit müssen ergänzt werden Konstanten für Bitmasken werden über die Werte, nicht über die Bitposition, wie Atmel üblicherweise gebildet!

void ConfigureTimerUart(void) { /* This flag tells us that we're using the timer for communcation * rather than pulse width modulation. */ timerMode = TIMER_UART_MODE; /* Set transmission pin high for now (until we later set it low * to start communication). */ CCTL0 = OUT; /* TimerA is using submain clock (at 1mhz), in continuous mode, * with a clock divider of 2^3=8 TACTL = TASSEL_2 + MC_2 + ID_3; /* Set transmit and receive pins latched to the timer, and the * transmit pin is set as an output pin. P1SEL |= TXD + RXD; P1DIR |= TXD; }

void Transmit() { /* Function Transmits Character from TXByte. We'll have 10 bits total * to communicate, 8 bits of data plus a start bit (zero) and a * stop bit (one). */ BitCnt = 10; /* Make sure we don't catch the TAR register while it is changing. * As long as the difference is only in the lower bits, we'll call * it close enough. do { CCR0 = TAR; } while( (CCR0^TAR) > 3 ); /* Set time when the transmission will actually begin */ CCR0 += Bitime; /* Add a one bit to act as stop bit (least significant bits in the TXByte get sent first) */ TXByte |= 0x100; /* Shift left to make an initial zero bit to act as start bit */ TXByte = TXByte << 1; /* Timer A0 to start triggering interrupts to do the actual sending */ CCTL0 = CCIS0 + OUTMOD0 + CCIE; /* We'll loop and wait for the transmission to finish */ while ( CCTL0 & CCIE ) ; }

// Timer A0 interrupt service routine void Timer_A(void) __attribute__((interrupt(TIMERA0_VECTOR))); void Timer_A(void) { if (timerMode == TIMER_UART_MODE) { /* schedule when the next bit is communicated */ CCR0 += Bitime; /* If the transmission bit is set */ if (CCTL0 & CCIS0) { /* Are there bits left to be transmitted? */ if ( BitCnt == 0) { /* No, disable the interrupt. We're done. */ CCTL0 &= ~ CCIE; } else { /* If the next bit is a one, set pin high/mark */ if (TXByte & 0x01) { CCTL0 &= ~ OUTMOD2; } else {/* Otherwise set pin low/space */ CCTL0 |= OUTMOD2; } /* Shift right to drop the bit we just sent, and update the count. */ TXByte = TXByte >> 1; BitCnt --; } else {. . . } /* Clear the interrupt flag */ TACCTL0 &= ~CCIFG;

links Installationsanleitung Tools: http://paretech.com/?p=161 http://mspgcc.sourceforge.net/manual/c68.html http://www.mathar.com/ Tutorial: http://processors.wiki.ti.com/index.php/MSP430_Laun chPad_%28MSP-EXP430G2%29#Pre- programmed_Demo_Application_- _Internal_Temperature_Measurement

Händler: http://www.watterott.com/de/Texas-Instruments http://de.farnell.com http://shop.embedded- projects.net/index.php?module=artikel&action=gruppe &id=37 Eclipse: http://www.mikrocontroller.net/articles/MSP430_eclipse _helios_mspgcc4_gdb-proxy Entwicklung (Codesammlung) Demo Temperatur/RS232 (Das Original) http://dbindner.freeshell.org/msp430/demo.html#_intern al_temperature_sensor

Launchpad Getting started http://processors.wiki.ti.com/index.php/Getting_Started_ with_the_MSP430_LaunchPad_Workshop