{"id":1,"date":"2012-07-08T03:49:52","date_gmt":"2012-07-08T03:49:52","guid":{"rendered":"http:\/\/msunderman.com\/wordpress\/?p=1"},"modified":"2012-08-22T02:07:39","modified_gmt":"2012-08-22T06:07:39","slug":"hello-world","status":"publish","type":"post","link":"https:\/\/msunderman.com\/wordpress\/2012\/07\/hello-world\/","title":{"rendered":"TI MSP430 LaunchPad Development Kit"},"content":{"rendered":"<p><a href=\"http:\/\/processors.wiki.ti.com\/\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft\" title=\"An image of the original TI MSP430 LaunchPad\" src=\"http:\/\/processors.wiki.ti.com\/images\/thumb\/a\/ad\/LaunchPad_wireframe.PNG\/300px-LaunchPad_wireframe.PNG\" alt=\"TI MSP430 LaunchPad photo\" width=\"180\" height=\"211\" \/><\/a><\/p>\n<p>Welcome! \u00a0Let&#8217;s start today with a review of the Texas Instruments MSP430 LaunchPad kit, aka the <a title=\"Texas Instruments LaunchPad Kit\" href=\"http:\/\/www.ti.com\/tool\/msp-exp430g2\">MSP-EXP430G2<\/a>. \u00a0It&#8217;s a great value for the experimenter at only $4.30. The kit includes a &#8216;G2553, the premier chip in the Value Line of microcontrollers. Almost an oxymoron, isn&#8217;t it. Lucky for us, this chip hits the sweet spot of cheap and loaded with features.<\/p>\n<p>TI upgraded the kit in late 2011 to include this more capable microcontroller and a lesser spare chip, the &#8216;G2452. I&#8217;m not sure why the spare is included, maybe for breadboarders or people who can&#8217;t keep their bug-zappy fingers off the pins.<\/p>\n<p>How do these devices stack up? \u00a0Check out their features in the table below, or on <a title=\"Texas Instruments MSP430 Value Line\" href=\"http:\/\/focus.ti.com\/paramsearch\/docs\/parametricsearch.tsp?familyId=1937&amp;sectionId=95&amp;tabId=2662&amp;family=mcu\" target=\"_blank\">TI&#8217;s Product Search<\/a> page. Future articles will focus on the MSP430G2553, so pay particular attention to the stats on that puppy.<\/p>\n<h1 style=\"text-align: center;\">TI MSP430 LaunchPad Comparison<\/h1>\n<table cellspacing=\"0\" cellpadding=\"0\">\n<thead>\n<tr>\n<th rowspan=\"2\">\n<h2>Feature<\/h2>\n<\/th>\n<th colspan=\"1\">\n<h2>Original Kit<\/h2>\n<\/th>\n<th style=\"text-align: center;\" colspan=\"2\">\n<h2>New Kit<\/h2>\n<\/th>\n<\/tr>\n<tr>\n<th>\n<h2>MSP430G2321<\/h2>\n<\/th>\n<th>\n<h2>MSP430G2452<\/h2>\n<\/th>\n<th>\n<h2>MSP430G2553<\/h2>\n<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<th>Flash ROM<\/th>\n<td>2K<\/td>\n<td>8K<\/td>\n<td>16K<\/td>\n<\/tr>\n<tr>\n<th>SRAM<\/th>\n<td>128 bytes<\/td>\n<td>256 bytes<\/td>\n<td>512 bytes<\/td>\n<\/tr>\n<tr>\n<th>GPIO<\/th>\n<td>10<\/td>\n<td>16<\/td>\n<td>24<\/td>\n<\/tr>\n<tr>\n<th>16-bit Timers<\/th>\n<td>1<\/td>\n<td>1<\/td>\n<td>2<\/td>\n<\/tr>\n<tr>\n<th>UART<\/th>\n<td>0<\/td>\n<td>0<\/td>\n<td>1<\/td>\n<\/tr>\n<tr>\n<th>10-bit ADC Channels<\/th>\n<td>8<\/td>\n<td>8<\/td>\n<td>8<\/td>\n<\/tr>\n<tr>\n<th>Temperature Sensor<\/th>\n<td>Yes<\/td>\n<td>Yes<\/td>\n<td>Yes<\/td>\n<\/tr>\n<tr>\n<th>Max Frequency<\/th>\n<td>16 MHz<\/td>\n<td>16 MHz<\/td>\n<td>16 MHz<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Have I &#8220;sparked&#8221; your interest yet? Alrighty, then. You&#8217;ll need your own board and a little free software to keep up with the program. Do it now, and you&#8217;ll be up and running in a week. I&#8217;ll do my best to keep you afloat as we push the LaunchPad to its limits. These links oughta get you moving&#8230;<\/p>\n<ul>\n<ul>\n<li style=\"text-align: left;\">Texas Instruments\n<ul>\n<li style=\"text-align: left;\"><a title=\"New! MSP430 LaunchPad Portal\" href=\"http:\/\/e2e.ti.com\/group\/msp430launchpad\/w\/default.aspx\" target=\"_blank\">New! MSP430 LaunchPad Portal<\/a><\/li>\n<li style=\"text-align: left;\"><a title=\"MSP430 LaunchPad Wiki\" href=\"http:\/\/processors.wiki.ti.com\/index.php\/MSP430_LaunchPad_(MSP-EXP430G2)\" target=\"_blank\">MSP430 LaunchPad Wiki<\/a><\/li>\n<\/ul>\n<\/li>\n<li style=\"text-align: left;\">Documents\n<ul>\n<li style=\"text-align: left;\"><a title=\"MSP-EXP430G2 LaunchPad Experimenter Board User's Guide\" href=\"http:\/\/www.ti.com\/lit\/ug\/slau318b\/slau318b.pdf\" target=\"_blank\">LaunchPad User&#8217;s Guide<\/a><\/li>\n<li style=\"text-align: left;\"><a title=\"IAR C\/C++ Compiler Reference Guide for MSP430\" href=\"http:\/\/supp.iar.com\/FilesPublic\/UPDINFO\/004968\/EW430_CompilerReference.pdf\" target=\"_blank\">IAR C\/C++ Compiler Reference Guide for MSP430<\/a><\/li>\n<li style=\"text-align: left;\"><a title=\"MSP430Gx2xx Family User's Guide\" href=\"http:\/\/www.ti.com\/lit\/ug\/slau144i\/slau144i.pdf\" target=\"_blank\">MSP430Gx2xx Family User&#8217;s Guide<\/a>\n<ul>\n<li style=\"text-align: left;\">Don&#8217;t let this guide intimidate you, it&#8217;s a reference. \u00a0We&#8217;ll break it down in digestible chunks.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>Software\n<ul>\n<li><a title=\"Code Composer Studio Version 5\" href=\"http:\/\/processors.wiki.ti.com\/index.php\/Download_CCS\" target=\"_blank\">Code Composer Studio<\/a><\/li>\n<li><a style=\"text-align: left;\" title=\"IAR Embedded Workbench for MSP430, Kickstart Edition\" href=\"http:\/\/www.iar.com\/en\/Products\/IAR-Embedded-Workbench\/TI-MSP430\/\" target=\"_blank\">IAR Embedded Workbench for MSP430, Kickstart Edition (alternative)<\/a><\/li>\n<li><a style=\"text-align: left;\" title=\"PuTTY terminal emulator\" href=\"http:\/\/www.chiark.greenend.org.uk\/~sgtatham\/putty\/download.html\" target=\"_blank\">PuTTY<\/a><\/li>\n<li><a title=\"MSP430 Code Examples from Texas Instruments\" href=\"http:\/\/www.ti.com\/lsds\/ti\/microcontroller\/16-bit_msp430\/code.page?DCMP=MSP430&amp;HQS=Other+OT+msp430codeexamples\" target=\"_blank\">MSP430 Code Examples from Texas Instruments<\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/ul>\n<p>If you&#8217;re adventurous, feel free to choose an alternate Integrated Development Environment (IDE) such as IAR Embedded Workbench or Open Source MSPGCC, but you&#8217;ll be on your own (<a title=\"Gekogeek's Code Composer Studio Tutorial\" href=\"http:\/\/gekogeek.com\/embedded\/setting-up-the-ccs-v4-build-and-debug-environment-for-ti-msp430-launchpad\/\" target=\"_blank\">or maybe not&#8230;<\/a>). \u00a0I use Code Composer Studio\u00a0simply because I hit the code size limit on IAR EW. \u00a0The Kickstart compiler is limited to 4 kilobytes of executable code, which can be a problem if you suck in even a few C libraries. \u00a0The code limit in CCS is 16K. \u00a0We&#8217;re building from the ground up, with no cushy libraries. \u00a0Well, maybe some definition files, but NO bloat! \u00a0We&#8217;ll be good for a while.<\/p>\n<p>You&#8217;ll need a decent terminal emulator like HyperTerminal (gone from Windows 7), PuTTY, or Tera Term. \u00a0I prefer PuTTY because it&#8217;s always worked for me, from way back in the terminal days.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignleft\" title=\"New MSP430 LaunchPad\" src=\"http:\/\/www.ti.com\/ww\/en\/community\/launchpad\/launchpad_bkg.jpg\" alt=\"New MSP430 LaunchPad Board\" width=\"360\" height=\"207\" \/> Have you ordered that LaunchPad yet? \u00a0While you&#8217;re waiting on it, see if you can install the IDE and get it working. \u00a0You&#8217;ll want to set it up for the MSP430G2553 target, and select the simulator option for now, rather than the actual hardware. \u00a0Create a project and experiment.<\/p>\n<p>As far as I know, you have to re-do settings every time you make a new project. \u00a0This is my only beef with IAR EW and to some extent CCS. \u00a0[TODO: verify steps to clone project in CCS] \u00a0Other than a few odd crashes&#8230;there is no easy way to clone a project! \u00a0I like to build on past projects, and keep them intact. \u00a0The closest I have come to cloning is to create a new project, change settings, copy files from the old project, ADD files to the new project, and beat on it until it compiles. \u00a0Wheeee!<\/p>\n<p>Next up&#8230;<\/p>\n<p>Blinkety-blinkety-blink. \u00a0We&#8217;re not ready for &#8220;Hello World&#8221; yet. \u00a0Welcome to embedded programming!<\/p>\n<p>And eventually&#8230;<\/p>\n<p>Bit-banging on the serial port when you can&#8217;t find a UART. \u00a0And&#8230;fixing TI&#8217;s mistake. \u00a0Any guesses what it could be?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Welcome! \u00a0Let&#8217;s start today with a review of the Texas Instruments MSP430 LaunchPad kit, aka the MSP-EXP430G2. \u00a0It&#8217;s a great value for the experimenter at only $4.30. The kit includes a &#8216;G2553, the premier chip in the Value Line of &hellip; <a href=\"https:\/\/msunderman.com\/wordpress\/2012\/07\/hello-world\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-1","post","type-post","status-publish","format-standard","hentry","category-ti-launchpad"],"_links":{"self":[{"href":"https:\/\/msunderman.com\/wordpress\/wp-json\/wp\/v2\/posts\/1","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/msunderman.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/msunderman.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/msunderman.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/msunderman.com\/wordpress\/wp-json\/wp\/v2\/comments?post=1"}],"version-history":[{"count":119,"href":"https:\/\/msunderman.com\/wordpress\/wp-json\/wp\/v2\/posts\/1\/revisions"}],"predecessor-version":[{"id":6,"href":"https:\/\/msunderman.com\/wordpress\/wp-json\/wp\/v2\/posts\/1\/revisions\/6"}],"wp:attachment":[{"href":"https:\/\/msunderman.com\/wordpress\/wp-json\/wp\/v2\/media?parent=1"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/msunderman.com\/wordpress\/wp-json\/wp\/v2\/categories?post=1"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/msunderman.com\/wordpress\/wp-json\/wp\/v2\/tags?post=1"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}