Difference between revisions of "TI' MSP430 Launchpad"
(15 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
== Introduction == |
== Introduction == |
||
− | Le MSP430 est une gamme de micro-controleurs de Texas Instrument réputés pour consommer très peu d'énergie. Ils sont utilisés dans des compteurs intelligents, des capteurs sans fil, ... |
+ | Le [[MSP430]] est une gamme de micro-controleurs de Texas Instrument réputés pour consommer très peu d'énergie. Ils sont utilisés dans des compteurs intelligents, des capteurs sans fil, ... |
− | [[File:launchpad+breadboard.jpg| |
+ | [[File:launchpad+breadboard.jpg|300px|thumb|right| Launchpad in action ]] |
== Kit d'évaluation == |
== Kit d'évaluation == |
||
Le [http://processors.wiki.ti.com/index.php/MSP430_LaunchPad_%28MSP-EXP430G2%29?DCMP=launchpad&HQS=Other+OT+launchpadwiki TI' MSP430 Launchpad] est un kit d'évaluation à très bas cout (4.30 USD frais de port inclus depuis [https://estore.ti.com/MSP-EXP430G2-MSP430-LaunchPad-Value-Line-Development-kit-P2031.aspx TI eStore]) des micro-controleurs très bas consommation de la gamme MSP430. Le kit contient une carte, 2 micro-controleurs d'entrée de gamme (10 GPIO, 8ch 10-bit ADC), un quartz 32KHz, un cable mini USB. |
Le [http://processors.wiki.ti.com/index.php/MSP430_LaunchPad_%28MSP-EXP430G2%29?DCMP=launchpad&HQS=Other+OT+launchpadwiki TI' MSP430 Launchpad] est un kit d'évaluation à très bas cout (4.30 USD frais de port inclus depuis [https://estore.ti.com/MSP-EXP430G2-MSP430-LaunchPad-Value-Line-Development-kit-P2031.aspx TI eStore]) des micro-controleurs très bas consommation de la gamme MSP430. Le kit contient une carte, 2 micro-controleurs d'entrée de gamme (10 GPIO, 8ch 10-bit ADC), un quartz 32KHz, un cable mini USB. |
||
− | == |
+ | ==Cartes filles== |
+ | * [http://www.ti.com/ww/en/launchpad/boosterpacks_head.html Liste complète] |
||
+ | * [https://estore.ti.com/430BOOST-SENSE1-MSP430-Capacitive-Touch-BoosterPack-P2361.aspx MSP430 Capacitive Touch BoosterPack] qui est un capteur tactile capacitif |
||
+ | * [[CC110L RF Module BoosterPack]] pour l'évaluation des communications sans fil (infra GhZ, low power) du CC110L |
||
+ | |||
+ | ==Outils de développement== |
||
L'environnement de developpement peut etre des versions gratuites de [http://processors.wiki.ti.com/index.php/Code_Composer_Studio_v4 CCS] et de [http://focus.ti.com/docs/toolsw/folders/print/iar-kickstart.html IAR Kickstart]. Il existe des compilateurs en ligne de commande ([http://mspgcc.sourceforge.net/ MSPGCC]). |
L'environnement de developpement peut etre des versions gratuites de [http://processors.wiki.ti.com/index.php/Code_Composer_Studio_v4 CCS] et de [http://focus.ti.com/docs/toolsw/folders/print/iar-kickstart.html IAR Kickstart]. Il existe des compilateurs en ligne de commande ([http://mspgcc.sourceforge.net/ MSPGCC]). |
||
+ | [[Energia]] is a fork of Arduino’s Processing IDE for TI’s [[MSP430]] microcontrollers. |
||
==Exemple de code== |
==Exemple de code== |
||
Line 14: | Line 20: | ||
/* Blink LED */ |
/* Blink LED */ |
||
#include "msp430.h" |
#include "msp430.h" |
||
+ | #include "msp430x20x2.h" |
||
+ | |||
+ | #include "hardware.h" |
||
+ | #include "utilities.h" |
||
+ | |||
+ | |||
+ | #define RED_LED BIT0 |
||
+ | #define GREEN_LED BIT6 |
||
+ | #define LED_DIR P1DIR |
||
+ | #define LED_OUT P1OUT |
||
+ | |||
+ | #define BUTTON BIT3 |
||
+ | #define BUTTON_OUT P1OUT |
||
+ | #define BUTTON_DIR P1DIR |
||
+ | #define BUTTON_IN P1IN |
||
+ | #define BUTTON_REN P1REN |
||
+ | |||
+ | |||
int main(void) |
int main(void) |
||
{ |
{ |
||
WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer |
WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer |
||
− | + | LED_DIR |= 0x01; // Set P1.0 to output direction |
|
for (;;) |
for (;;) |
||
Line 23: | Line 47: | ||
volatile unsigned int i; // volatile to prevent optimization |
volatile unsigned int i; // volatile to prevent optimization |
||
− | + | LED_OUT ^= 0x01; // Toggle P1.0 using exclusive-OR |
|
i = 10000; // SW Delay |
i = 10000; // SW Delay |
||
do i--; |
do i--; |
||
+ | |||
+ | |||
+ | sendByte('.'); |
||
+ | //sendByte(13); |
||
+ | //sendByte(10); |
||
+ | |||
+ | |||
while (i != 0); |
while (i != 0); |
||
} |
} |
||
} |
} |
||
</pre> |
</pre> |
||
+ | |||
+ | ==Programme Arduino sur le Launchpad== |
||
+ | [[Energia]] is a fork of Arduino’s Processing IDE for TI’s [[MSP430]] microcontrollers. |
||
+ | |||
+ | |||
+ | Néanmoins, Ces [https://github.com/chrishulbert/friendly_launchpad/blob/master/friendly_launchpad.h 51 lignes de code] fournissent des macros pour les fonctions Arduino setup(), loop(), delay(), pinMode(), pinBit(), digitalWrite(), et digitalRead() pour le TI'LaunchPad. |
||
+ | Elles permettent d'exécuter des programmes pour l'Arduino sur le TI'Launchpad. |
||
+ | * http://hackaday.com/2011/03/09/header-file-brings-arduino-sketches-to-the-ti-launchpad/ |
||
+ | * https://github.com/chrishulbert/friendly_launchpad |
||
== DIY == |
== DIY == |
||
− | Ce kit (surtout le [http://focus.ti.com/docs/prod/folders/print/msp430g2231.html MSP430G2231])peut être intéressant pour réaliser des manipulations fixes (ie avec soudure) pour moins de 5 euros comme le montrent ces [http://processors.wiki.ti.com/index.php/MSP430_LaunchPad_%28MSP-EXP430G2%29?DCMP=launchpad&HQS=Other+OT+launchpadwiki#Cool_Project_Demonstrations.21 exemples]. |
+ | Ce kit (surtout le [http://focus.ti.com/docs/prod/folders/print/msp430g2231.html MSP430G2231])peut être intéressant pour réaliser des manipulations fixes (ie avec soudure) pour moins de 5 euros (4,30 USD) comme le montrent ces [http://processors.wiki.ti.com/index.php/MSP430_LaunchPad_%28MSP-EXP430G2%29?DCMP=launchpad&HQS=Other+OT+launchpadwiki#Cool_Project_Demonstrations.21 exemples]. |
== Communauté == |
== Communauté == |
||
Line 49: | Line 89: | ||
* [http://www.msp430launchpad.com/2010/07/timers-and-clocks-and-pwm-oh-my.html Timers and Clocks and PWM] |
* [http://www.msp430launchpad.com/2010/07/timers-and-clocks-and-pwm-oh-my.html Timers and Clocks and PWM] |
||
* [http://processors.wiki.ti.com/index.php/Playing_The_Imperial_March Playing The Imperial March] |
* [http://processors.wiki.ti.com/index.php/Playing_The_Imperial_March Playing The Imperial March] |
||
+ | * [http://code.google.com/p/osx-launchpad/ Installeur de la toolchain sur MacOS X] |
||
+ | * http://hackaday.com/2010/08/11/how-to-launchpad-programming-with-linux/ |
||
+ | * [http://www.frank-buss.de/LaunchPad/index.html Simple voltmeter with data output to the serial port (website in German)] |
Latest revision as of 13:15, 26 February 2013
Introduction
Le MSP430 est une gamme de micro-controleurs de Texas Instrument réputés pour consommer très peu d'énergie. Ils sont utilisés dans des compteurs intelligents, des capteurs sans fil, ...
Kit d'évaluation
Le TI' MSP430 Launchpad est un kit d'évaluation à très bas cout (4.30 USD frais de port inclus depuis TI eStore) des micro-controleurs très bas consommation de la gamme MSP430. Le kit contient une carte, 2 micro-controleurs d'entrée de gamme (10 GPIO, 8ch 10-bit ADC), un quartz 32KHz, un cable mini USB.
Cartes filles
- Liste complète
- MSP430 Capacitive Touch BoosterPack qui est un capteur tactile capacitif
- CC110L RF Module BoosterPack pour l'évaluation des communications sans fil (infra GhZ, low power) du CC110L
Outils de développement
L'environnement de developpement peut etre des versions gratuites de CCS et de IAR Kickstart. Il existe des compilateurs en ligne de commande (MSPGCC).
Energia is a fork of Arduino’s Processing IDE for TI’s MSP430 microcontrollers.
Exemple de code
/* Blink LED */ #include "msp430.h" #include "msp430x20x2.h" #include "hardware.h" #include "utilities.h" #define RED_LED BIT0 #define GREEN_LED BIT6 #define LED_DIR P1DIR #define LED_OUT P1OUT #define BUTTON BIT3 #define BUTTON_OUT P1OUT #define BUTTON_DIR P1DIR #define BUTTON_IN P1IN #define BUTTON_REN P1REN int main(void) { WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer LED_DIR |= 0x01; // Set P1.0 to output direction for (;;) { volatile unsigned int i; // volatile to prevent optimization LED_OUT ^= 0x01; // Toggle P1.0 using exclusive-OR i = 10000; // SW Delay do i--; sendByte('.'); //sendByte(13); //sendByte(10); while (i != 0); } }
Programme Arduino sur le Launchpad
Energia is a fork of Arduino’s Processing IDE for TI’s MSP430 microcontrollers.
Néanmoins, Ces 51 lignes de code fournissent des macros pour les fonctions Arduino setup(), loop(), delay(), pinMode(), pinBit(), digitalWrite(), et digitalRead() pour le TI'LaunchPad.
Elles permettent d'exécuter des programmes pour l'Arduino sur le TI'Launchpad.
- http://hackaday.com/2011/03/09/header-file-brings-arduino-sketches-to-the-ti-launchpad/
- https://github.com/chrishulbert/friendly_launchpad
DIY
Ce kit (surtout le MSP430G2231)peut être intéressant pour réaliser des manipulations fixes (ie avec soudure) pour moins de 5 euros (4,30 USD) comme le montrent ces exemples.
Communauté
Exemple de codes
- NJS's MSP430 LaunchPad Oscilloscope (source code)
- MSP-EXP430G2-LaunchPad Software UART Transmission
- Half Duplex Software UART on the LaunchPad
- Timers and Clocks and PWM
- Playing The Imperial March
- Installeur de la toolchain sur MacOS X
- http://hackaday.com/2010/08/11/how-to-launchpad-programming-with-linux/
- Simple voltmeter with data output to the serial port (website in German)