Blog Arşivleri
A Small Step Through MSP430
Yazan: ozturkgokhan
Hi
I have been using Arduino for along time. For one of my lessons, i have to use MSP430 Launchpad so i ordered from http://www.ti.com. It cost me about $10 includes with shipping. i thinks that is so cheap, in the package it comes with 2 processors, data cable and sticker.
At my first project I wrote an code for blinking a LED. It was can be an easy beginning for you but it is entertaining.
that photo is from my workshop.
Description*
The MSP-EXP430G2 LaunchPad is an easy-to-use flash programmer and debugging tool for the MSP430G2xx Value Line microcontrollers. It features everything you need to start developing on an MSP430 microcontroller device. It has on-board emulation for programming and debugging and features a 14/20-pin DIP socket, on-board buttons and LEDs & BoosterPack-compatible pinouts that support a wide range of plug-in modules for added functionality such as wireless, displays & more.
#include <MSP430.h>; unsigned short wGecikme; void main() { WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer P1SEL &= (~BIT0); // Set P1.0 SEL for GPIO P1DIR |= BIT0; // Set P1.0 as Output while(1){ P1OUT = 0x01; // Set P1.0 HIGH for(wGecikme=0;wGecikme<10000;wGecikme++){ } P1OUT = 0x00; // Set P1.0 HIGH for(wGecikme=0;wGecikme<10000;wGecikme++){ } } }
*http://www.ti.com/tool/msp-exp430g2
MSP430 kategorisinde yayınlandı
Etiketler: Electronics, Embedded systems, MSP430, programming