Jump to content
43oh

Energia: compare pinout launchpad with arduino


Recommended Posts

Hi all,

 

I'm an electronics hobbyist with some Arduino code writing experience. With Arduino I'm reasonably comfortable now, I dig the basics. I'm trying out Energia now on my Launchpad board but some things still are not clear. The main thing is the pinout comparison with Launchpad and Arduino. What pins are analog and digital in/out ? The sketches in the Energia compiler are Arduino sketches and it is not clear for me where my wires go. Is there someone who can clearify this for me ?

Sorry for the stupid question but I tried to find it without succes.....

:?:

Link to post
Share on other sites

https://github.com/energia/Energia/blob ... _energia.h

 

//                      +-\/-+
//               VCC   1|    |20  GND
//         (A0)  P1.0  2|    |19  XIN
//         (A1)  P1.1  3|    |18  XOUT
//         (A2)  P1.2  4|    |17  TEST
//         (A3)  P1.3  5|    |16  RST#
//         (A4)  P1.4  6|    |15  P1.7  (A7) (SCL) "(MISO/MOSI) depends on chip"
//         (A5)  P1.5  7|    |14  P1.6  (A6) (SDA) "(MOSI/MISO) depends on chip"
//               P2.0  8|    |13  P2.5
//               P2.1  9|    |12  P2.4
//               P2.2 10|    |11  P2.3
//                      +----+
//

static const uint8_t A0  = 0;
static const uint8_t A1  = 1;
static const uint8_t A2  = 2;
static const uint8_t A3  = 3;
static const uint8_t A4  = 4;
static const uint8_t A5  = 5;
static const uint8_t A6  = 6;
static const uint8_t A7  = 7;
static const uint8_t A10 = 10; // special. This is the internal temp sensor

// Pin names based on the silkscreen
//
static const uint8_t P1_0 = 2;
static const uint8_t P1_1 = 3;
static const uint8_t P1_2 = 4;
static const uint8_t P1_3 = 5;
static const uint8_t P1_4 = 6;
static const uint8_t P1_5 = 7;
static const uint8_t P2_0 = 8;
static const uint8_t P2_1 = 9;
static const uint8_t P2_2 = 10;
static const uint8_t P2_3 = 11;
static const uint8_t P2_4 = 12;
static const uint8_t P2_5 = 13;
static const uint8_t P1_6 = 14;
static const uint8_t P1_7 = 15;

 

RED_LED is on P1.0

GREEN_LED is on P1.6

BUTTON is on P1.3 and needs to have the internal pullup enabled

RESET BUTTON is connected to RST

Link to post
Share on other sites

Tossing in a side note here, I was peeking at the MSP430F5172 (http://www.ti.com/product/msp430f5172) while surfing TI's site the other day, that sounds like a neat chip--has an option of making some I/O's 5V. Would there be any interest in making an Arduino shield-compatible dev board that works with Energia based on that chip? Flash & SRAM are comparable to the ATmega328P used in the Arduino UNO too (32KB flash, 2KB SRAM). Could be cool to use existing 5V arduino shields on it... (assuming some stuff like SPI, I2C actually work with the 5V I/O, which I am not certain of yet.)

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...