• 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 » S/W UART
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 >
  • Forums

    S/W UART

    This question is not answered
    1074316
    Posted by 1074316
    on Aug 05 2008 11:32 AM
    Intellectual395 points

    Hi,

     I am new  to MSP430,I need to implement a software UART in MSP430F2xx ,

    the MSP430 will be in low power mode (LPM3 or LPM4) ,and I need to communicate with the

    PC @19200bps.

    The problem is I should do it without 32KHz crystal.Does anybody has an idea about s/w UART.

    Thankyou in advance..

     

    MSP430 UART Timer
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • BrandonElliott
      Posted by BrandonElliott
      on Aug 05 2008 11:37 AM
      Genius13855 points

      Chakra,

       We actually have a code example that implements a software UART using the Timer_A. Please see the follwing zip file from www.MSP430.com for several different examples: http://www.ti.com/lit/zip/slac011 (namely, see msp430x11x1_ta_uart19200_01.c)

       

      MSP430 UART Timer_A
      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • tp-uart
      Posted by tp-uart
      on Sep 11 2008 08:34 AM
      Prodigy30 points

      Dear Brandon,

       

      Since I'm working on a sw-uart for my MSP430F149 for some time (without any success), I tried to run the example program you suggested. It seems to work for single characters, but if you send two or more chars to the sw-uart, it echos only every second char.

      Btw its the same problem with the Timer_A UART Library (http://www.ti.com/litv/zip/slaa307a).

       

      Do you have an idea why it's not working?

       

      Best regards,

      Andi

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • BrandonElliott
      Posted by BrandonElliott
      on Sep 11 2008 09:17 AM
      Genius13855 points

      Andi,

      What baud rate are you trying to acheive? If its different than 2400 how are you altering the code?

      Also what is your intermediate circuitry being used between MSP and the PC? There is a good reference design using the MAX232 chip here: http://www.softbaugh.com/downloads/DIR169_Sch_v1_3.pdf

      As an FYI the F149 does have a hardware USART module which can do this in hardware. Is this an option for you?

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • tp-uart
      Posted by tp-uart
      on Sep 11 2008 10:26 AM
      Prodigy30 points

      Hi,

       

      Thank you for answering this fast!

      I tried to achieve a baudrate of 19200. Since I use an 8MHz quarz I had to alter the constants for the Bittime = 416 and Bittime_5 = 208 (tried to change it a little up and downwards, still the same result). I also include the right headerfile for the F149.

      For level conversion I already use an ST232ABN.

      I'm using the F149 for development purposes only (because i have an evaluation board for this type), the sw-uart will be finally implemented on an F1232 (I need two uarts).

       

      Best Regards,

      Andi

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • tp-uart
      Posted by tp-uart
      on Sep 22 2008 07:16 AM
      Prodigy30 points

      Hi,

       

      Any ideas, yet? I'm still stuck.

       

      Regards,

      Andi

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • aparna vegendla
      Posted by aparna vegendla
      on Jan 14 2013 19:29 PM
      Prodigy110 points

      hello all,

      I am using CC430F5137 (EM-CC430F5137-900) board with MSP- 430FET430UIF debugger for my "C" application in CCSv5 in windows 7 . I could able to check the single byte being sent through UART on the hyperterminal & received byte on PC when i use cc430x513x_uscia0_uart_04.c . Now i need to program for cc430 receive file through UART and  check  the received text file which is sent  through UART on the PC.  would you please help me with the API for CC430 UART ? 

      thanks for your time.

      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 Jan 15 2013 02:01 AM
      Guru32005 points

      aparna vegendla
      I am using CC430F5137 (EM-CC430F5137-900) board with MSP- 430FET430UIF debugger for my "C" application in CCSv5 in windows 7 . I could able to check the single byte being sent through UART on the hyperterminal & received byte on PC when i use cc430x513x_uscia0_uart_04.c . Now i need to program for cc430 receive file through UART and  check  the received text file which is sent  through UART on the PC.  would you please help me with the API for CC430 UART ? 

      This thread is about emulating the function of a UART purely in software - it is not about using the hardware UART!

      http://e2e.ti.com/support/microcontrollers/msp43016-bit_ultra-low_power_mcus/f/166/p/183636/836665.aspx#836665

      Don't Hi-jack Threads With Off-Topic Posts
      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