• 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 » UART basics
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

    UART basics

    This question is not answered
    abhishek Sabnis
    Posted by abhishek Sabnis
    on May 08 2012 17:13 PM
    Expert1220 points

    Hi,

    I am new  to MSP430F2132 UART. How can start understanding it. let me know if somebody knows reference app notes.

    Also i want  to do communication between ST micro micro-controller and TI MSP430. Please tell me the starting point.

    Thanks

    MSP430
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • Jens-Michael Gross
      Posted by Jens-Michael Gross
      on May 09 2012 07:48 AM
      Guru141810 points

      The 1232 has an USCI module. How it works is described in the 2x family users guide, "universal serial communications contreoller - UART mode" chapter.
      Demo code should be available from the MSPs product page.

      There are also many threads about serial connections in this forum.

      abhishek Sabnis
      Also I want  to do communication between ST micro micro-controller and TI MSP430. Please tell me the starting point.

      Starting point is to chose a communication protocol.
      You can communicate in a wide adn almost unlimited number of ways. Direct or through RF, using UART, SPI, I2C or GPIO.
      Which one to chose depends on your project parameters.

      Your question is like standing in the middle of a large market place, shouting 'I want to eat! What shall I buy?"

      _____________________________________
      Before posting bug reports or ask for help, do at least quick scan over this article. It applies to any kind of problem reporting. On any forum. And/or look here.
      If you cannot discuss your problem in the public, feel free to start a private conversation: click on my name and then 'start conversation'. But please do so only if you really cannot do it in a public thread, as I usually read all threads. And I prefer to answer where others can profit from it (or contribute to it) too.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • abhishek Sabnis
      Posted by abhishek Sabnis
      on May 09 2012 10:26 AM
      Expert1220 points

      Thanks jens for your reply.

      As far as communication between ST micro and TI msp430 i want to do it through UART. hence, if some one have app notes on communication of msp430 to other micro through UART let me know.

      Thanks,

      abby

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Jens-Michael Gross
      Posted by Jens-Michael Gross
      on May 09 2012 12:01 PM
      Guru141810 points

      abhishek Sabnis
      if some one have app notes on communication of msp430 to other micro through UART let me know.

      UART is UART. It is normed by CCITT. The only uncertain parameters are the voltage levels. RS232 (used by PC COM ports) uses +-3V..12V signals (negative voltages being '1', 0V is invalid) while TTL-like implementations, such as the MSP UARTs use 0V/VCC for '0' and '1'. Mso tother micros do it the same way.
      One possible problem could be if the other micro uses a different VCC (e.g. 5V).

      There's an appnot ont eh Ti website abotu interfacing 5V peripherals with an MSP. Usually, MSP outputs to 5V inputs don't require special attention (as long as the MSPs VCC is above the other side's high threshold - see datasheets). 5V outputs to MSP inputs can be handled in three ways.
      First using a dedicated voltage level shifter. There ar elots of logic ICs wiht two supply voltages, separate for input and output side.
      Second is a diode and a pullup on the MSP side of the diode. So the pullup will pull the input voltage to MSPs VCC, while the 5V peripheral can only pull it low. You'll need a schottky diode, so you won't have too much voltage drop above VSS/GND then.
      Third method is a simpel series resistor that keeps the current low. All MSP port pins have internal clamp diodes which route over/undervoltages to VCC/VSS. The current must not exceed 2mA, So in case of MSP-VCC of 3V, the maximum overvoltage is 5V-3V=2V and a resistor >1k will keep the clamp current below maximum. 4.7k would be a good value.
      The cheaper the method is, the more current it wastes for the signal conversion. :)

      For using (programming)  an UART, there are many threads in thsi forum, and also demo codes which are linked form the MSP product page.

      _____________________________________
      Before posting bug reports or ask for help, do at least quick scan over this article. It applies to any kind of problem reporting. On any forum. And/or look here.
      If you cannot discuss your problem in the public, feel free to start a private conversation: click on my name and then 'start conversation'. But please do so only if you really cannot do it in a public thread, as I usually read all threads. And I prefer to answer where others can profit from it (or contribute to it) too.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • abhishek Sabnis
      Posted by abhishek Sabnis
      on May 09 2012 16:38 PM
      Expert1220 points

      Thanks jens.

      So to start with playing on UART with no external hardware. how can check i have correct firmware and my TX and RX is working? Can i use my computer to send and receive commands? if yes then how?

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Jens-Michael Gross
      Posted by Jens-Michael Gross
      on May 10 2012 08:41 AM
      Guru141810 points

      abhishek Sabnis
      how can check i have correct firmware and my TX and RX is working?

      One option is to enable the loopback function. Then everything sent will be received too. (you may as well connect RX and TX pins externally).

      abhishek Sabnis
      Can i use my computer to send and receive commands? if yes then how?

      Yes, sure. You'll need additional hardware. One option is an USB->serial converter with TTL output signals (put a 4.7k series resistor on the RX and TX connection if the converter has 5V output signals).
      The other option is a level shifter such as the MAX3232. Then you can connext the MAX output signals to a PCs COM port or to a normal USB->RS232 converter.

      On the PC side you can use a terminal program such as the HyperTerm (included in windows up to XP), Putty or any other. Just select the COM port (in case of an USB converter, the virtual COM port provided by the converter driver) and select the same baudrate and communication parameters (data bits, stop bits) as on the MSP (and disable hardware and software handshake).

      _____________________________________
      Before posting bug reports or ask for help, do at least quick scan over this article. It applies to any kind of problem reporting. On any forum. And/or look here.
      If you cannot discuss your problem in the public, feel free to start a private conversation: click on my name and then 'start conversation'. But please do so only if you really cannot do it in a public thread, as I usually read all threads. And I prefer to answer where others can profit from it (or contribute to it) too.

      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