renaissanceman 0 Posted July 13, 2012 Share Posted July 13, 2012 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..... :?: Quote Link to post Share on other sites
kylej1050 27 Posted July 13, 2012 Share Posted July 13, 2012 I'm not at a computer so I don't have it with me but there is a pinout.h or .c file with with that in it. We should make this commonly needed info a sticky. Sent from my HTC Arrive using Board Express Quote Link to post Share on other sites
renaissanceman 0 Posted July 13, 2012 Author Share Posted July 13, 2012 Thanks kylej1050, Looking forward to it ! Quote Link to post Share on other sites
Rickta59 589 Posted July 13, 2012 Share Posted July 13, 2012 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 Quote Link to post Share on other sites
renaissanceman 0 Posted July 13, 2012 Author Share Posted July 13, 2012 Thanks Rickta59 !! This will probably answer all my questions !! Great !! Quote Link to post Share on other sites
kylej1050 27 Posted July 13, 2012 Share Posted July 13, 2012 Someone beat me to it! lol I can add a little bit. A10 is the internal temp sensor. Quote Link to post Share on other sites
renaissanceman 0 Posted July 13, 2012 Author Share Posted July 13, 2012 Thanks anyway Kyle ! Quote Link to post Share on other sites
spirilis 1,265 Posted July 13, 2012 Share Posted July 13, 2012 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.) Quote Link to post Share on other sites
energia 485 Posted July 14, 2012 Share Posted July 14, 2012 That would be awesome. One potential catch though. The datasheet states under "Absolute Maximum Ratings" "Voltage applied to any pin (excluding VCORE) Quote Link to post Share on other sites
spirilis 1,265 Posted July 15, 2012 Share Posted July 15, 2012 That would be awesome. One potential catch though. The datasheet states under "Absolute Maximum Ratings""Voltage applied to any pin (excluding VCORE) Quote Link to post Share on other sites
energia 485 Posted July 23, 2012 Share Posted July 23, 2012 Also see PADRINO viewtopic.php?f=9&t=1995. F5172 with Arduino compatible header and 5v I/O. spirilis 1 Quote Link to post Share on other sites
spirilis 1,265 Posted July 23, 2012 Share Posted July 23, 2012 Nice, didn't catch that one, looks like it's already been done! Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.