• 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 » Stellaris® ARM® Microcontrollers » Stellaris® ARM® LM3S Microcontrollers Forum » "uartstdio.h" user manual.
Share
Stellaris® ARM® Microcontrollers
  • Forum
Options
  • Subscribe via RSS
Helpful Stellaris® LM4F Series Links
  • LM4F Series
  • Stellaris PinMux Utility
  • Stellaris® LM4F120 LaunchPad
  • LM4F MCU Applications
  • LM4F MCU Video
  • ARM Cortex-M4F Whitepaper
  • Stellaris MCU Brochure
  • LM4F232 Eval Kit
  • Forums

    "uartstdio.h" user manual.

    This question is answered
    Iman Prayudi
    Posted by Iman Prayudi
    on Jun 16 2011 02:22 AM
    Prodigy40 points

    hi, all... 

    does anyone have a user manual for "uartstdio.h" ?

    i found this file at "StellarisWare\utils\" directory. but i didn't find its user manual. 

    thanks

     

    UART FIFO
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • Andy Neil
      Posted by Andy Neil
      on Jun 16 2011 03:24 AM
      Guru31975 points

      See: http://e2e.ti.com/support/microcontrollers/stellaris_arm_cortex-m3_microcontroller/f/474/t/113624.aspx

       

      uartstdio utils
      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Iman Prayudi
      Posted by Iman Prayudi
      on Jun 16 2011 20:54 PM
      Prodigy40 points

      thanks for the response, Andy. 

      i thought i was the only one who couldn't find the user manual. haha.. 

      i was wondering about how to 'UART_BUFFERED' feature in 'uartstdio.h' code. 

      because my LM3s608 microcontroller has to handle 20*8bit incoming UART data, while the RX FIFO is only 16*8bit. 

      have you ever dealt with the same problem?

       

      thanks. 

      UART FIFO
      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 Jun 17 2011 01:47 AM
      Verified Answer
      Verified by Iman Prayudi
      Guru31975 points

      Iman Prayudi
      handle 20*8bit incoming UART data, while the RX FIFO is only 16*8bit. 

      have you ever dealt with the same problem?

      Yes - I've done that on microcontrollers with no FIFO at all!

      The secret is to use interrupts and a so-called Ring-Buffer (aka Circular Buffer) - which is precisely what the  'UART_BUFFERED' feature in 'uartstdio.h' gives you.

      As I said, see one of the DevKit manuals for details - or just look at the code!

      UART interrupt Circular Buffer Ring Buffer uartstdio UART_BUFFERED
      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Iman Prayudi
      Posted by Iman Prayudi
      on Jun 20 2011 00:22 AM
      Prodigy40 points

      dear Andy, 

      i've tried to follow your advice. 

      i found 'UART Standard IO Module' manual in DK-LM3S828 Firmware Development Package User's Guide

      then, i made my own code as follows:

      --------------------------------------------------------------------------

      int main(void)

      {

          SysCtlClockSet(SYSCTL_SYSDIV_4 | SYSCTL_USE_PLL | SYSCTL_OSC_MAIN |

                         SYSCTL_XTAL_8MHZ);


          SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOA);

          GPIOPinTypeUART(GPIO_PORTA_BASE, GPIO_PIN_0 | GPIO_PIN_1);

          UARTStdioInit(0);

          UARTIntEnable(UART0_BASE, UART_INT_RT );

          UARTIntRegister(UART0_BASE, UARTStdioIntHandler);


          while (1)

          {

          }

      }

       

      void UARTStdioIntHandler (void)

      {

      char i;

      i=UARTgetc();

      UARTwrite(&i,1);

      }

       

      --------------------------------------------------------------------------

       

      then, i tried to send 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' to my microcontroller. 

      but, what i got is only 'ABCDEFGHIJKLMNOP' which means i only got 16*8bit of data. 

       

      i still have no idea to use 'UART_BUFFERED' feature since i couldn't find an example about it. 

      please, if you have any example code about it, may i get one?

       

      thanks a lot, Andy

      UART FIFO
      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 Jun 20 2011 01:13 AM
      Guru31975 points

      IIRC, the Serial-to-Ethernet code uses the "Buffered" (interrupt-driven) mode...

      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 Jun 20 2011 03:12 AM
      Guru31975 points

      Your interrupt handler is wrong.

      Look again at the User Manual, and use the provided interrupt handler.

      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