Skip to content

Hardware

robertinant edited this page Jun 3, 2012 · 19 revisions

Launchpad (MSP-EXP430G2)

Energia supports the LaunchPad with msp430g2231, msp430g2452 and msp430g2553. These are the most popular devices. V1.4 and earlier LaunchPad shipped with msp430g2231. The 430BOOST-SENSE1 ships with the msp430g2452 and LaunchPad v1.5 ships with msp430g2553. Pin numbering for the LaunchPad variant in Energia follows the pin numbering of the header on the LaunchPad (see pin mapping diagram below for details). Example: LED1 can be turned on with:

 pinMode(2, OUTPUT);
 digitalWrite(2, HIGH);

Pins can also be address by there alternative names P1_0 ... P1_7 and P2_0 ... P2_5. See Energia/hardware/msp430/variants/launchpad/pins_energia.h for details. The LaunchPad pins_energia.h is here on github.

 pinMode(P1_0, OUTPUT);
 digitalWrite(P1_0, HIGH);

LED1, LED2, S2 and internal temp sensor can also be addressed by the alternative names:

 RED_LED
 GREEN_LED;
 PUSH2;
 TEMPSENSOR;

To turn on the red LED.

 pinMode(P1_0, OUTPUT);
 digitalWrite(P1_0, HIGH);

This diagram shows the complete pin map for the LaunchPad in Energia. Also see the examples in Energia.

 *(TA0.2): Only flavors with a comparator have TA0.2 on PIN 6
 *(TXD/RXD): TimerSerial: P3 = TXD, P4 = RXD; Hardware Serial: P3 = RXD, P4 = TXD 
Clone this wiki locally