• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Microcontrollers » MSP430™ Microcontrollers » MSP430 Ultra-Low Power 16-bit Microcontroller Forum » msp430g2xx1_ta_uart9600.c
Share
MSP430™ Microcontrollers
  • Forum
  • Announcements
  • E2E Wiki
Options
  • Subscribe via RSS
MSP430 Resources
  • MSP430 Product Folder
  • MSP-EXP430G2 - MSP430 LaunchPad Value Line Development kit
  • MSP430 Getting Started Guide
  • MSP430 Microcontroller Projects
  • More Resources >
  • msp430g2xx1_ta_uart9600.c

    msp430g2xx1_ta_uart9600.c

    This question is not answered
    Ramkumar natarajan
    Posted by Ramkumar natarajan
    on Oct 03 2011 13:21 PM
    Prodigy220 points

    hello every one,

    i tried to work the "msp430g2xx1_ta_uart9600.c "  code taken from "msp430G2xx1" code examples in CCS version 4.2.4. with MSP430G2231 device in launch pad kit.

    i understand that MSP430G2231 has only USI and not USCI and do not support UART. i believe the code return in  "msp430g2xx1_ta_uart9600.c "  uses timer A to implement a software functionality and achieve UART. in hardware wise i have connected the TX, RX and GND pins to P1.1, P1.2 and GND to UART of my computer with 9600-8-N settings.

    but i find junk values in my serial window, please help.

     

    regards

    Kumar

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • Jason Kriek
      Posted by Jason Kriek
      on Oct 03 2011 22:13 PM
      Expert3320 points

      Kumar,

      Did you put a RS232 level shifter in between you the pins on the MSP430 and the PC? The signal levels coming out of the MSP430 are TTL, whil the PC expects to see RS232 levels. If you are trying to do this without a dev kit, you can use something like a max3221 to do your level shifting for you:

      http://www.ti.com/product/max3221?qgpn=max3221

      If you are using a launchpad to do your developement, you can use the back channel uart that is available for testing. When you plug the launchpad in, you will see an MSP430 applications uart added to your com port listing. You can send and receive data over this link at 9600 baud.

      By deafult the launchpad has the connections setup for you, you can see the RXD/TXD pins located on the header.

       

      -Jason

       

      ---------------------------------------------------------------------------------------------------------
      Please click the Verify Answer button on this post if it answers your question.
      ---------------------------------------------------------------------------------------------------------

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Ramkumar natarajan
      Posted by Ramkumar natarajan
      on Oct 03 2011 22:32 PM
      Prodigy220 points

      Dear Jason

       Thanks for your lighting quick reply. Actually I use a RS232 to USB converter from computer and connect the RX, TX and GND pins directly to launch pads P1.1, P1.2 and GND pins directly without any level shifter.

       

      when i press my reset button on my launch pad i get only junk messages. loop back ( TX and RX shorted) works properly.

      regards

       kumar

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Andy Neil
      Posted by Andy Neil
      on Oct 04 2011 01:18 AM
      Guru31975 points

      Ramkumar natarajan
      Actually I use a RS232 to USB converter

      If it's really an RS-232 to USB Converter, then you need and RS232 level shifter (or "transceiver") between it and the UART pins.

      "RS-232" means bi-polar signal levels with +/-12V levels - you must never connect that direct to any microcontroller's pins!!

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Jason Kriek
      Posted by Jason Kriek
      on Oct 04 2011 12:52 PM
      Expert3320 points

      Kumar,

      The other option is to use a TTL to USB converter. It is in the same form factor as the 232 to USB, except it takes TTL input instead of 232 input.

      Another option is to get a launchpad board, they are $4.30 on wwwti.com. This has the back channel UART that you can use to communicate back to the PC.

      Even if you didnt wanted to plug an IC into the launchpad, you could attach to the RX/TX lines of the launchpad board to communicate back to the PC over the USB link.

        Here is a link to the launchpad:

      http://www.ti.com/tool/msp-exp430g2

       

      -Jason

       

      ---------------------------------------------------------------------------------------------------------
      Please click the Verify Answer button on this post if it answers your question.
      ---------------------------------------------------------------------------------------------------------

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    TI E2E™ Community
    • Support Forums
    • Blogs
    • Videos
    • Groups
    • Site Support & Feedback
    • Settings
    TI E2E™ Community Groups
    • TI University Program
    • Make the Switch
    • Microcontroller Projects
    • Motor Drive & Control
    Other Communities
    • Deyisupport
    • Designsomething.org
    • beagleboard.org
    • TI on Element 14
    • TI on TechXchangeSM
    Other Technical & Support Resources
    • WEBENCH® Design Center
    • Product Information Centers
    • Technical Documents
    • TI Design Network
    • TI Technical Articles
    • TI Training

    All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

    Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

    Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
    TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

    TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
    embedded processors, along with software, tools and the industry’s largest sales/support staff.

    © Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
    Trademarks | Privacy Policy | Terms of Use