Jump to content

Search the Community

Showing results for tags 'UART BAUD MSP430G2553'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News
    • Announcements
    • Suggestions
    • New users say Hi!
  • Spotlight!
    • Sponsor Spotlight
    • Sponsor Giveaways
  • Energia
    • Energia - MSP
    • Energia - TivaC/CC3XXX
    • Energia - C2000
    • Energia Libraries
  • MSP Technical Forums
    • General
    • Compilers and IDEs
    • Development Kits
    • Programmers and Debuggers
    • Code vault
    • Projects
    • Booster Packs
    • Energia
  • Tiva-C, Hercules, CCXXXX ARM Technical Forums
    • General
    • SensorTag
    • Tiva-C, Hercules, CC3XXX Launchpad Booster Packs
    • Code Vault
    • Projects
    • Compilers and IDEs
    • Development Kits and Custom Boards
  • Beagle ARM Cortex A8 Technical Forums
    • General
    • Code Snippets and Scripts
    • Cases, Capes and Plugin Boards
    • Projects
  • General Electronics Forum
    • General Electronics
    • Other Microcontrollers
  • Connect
    • Embedded Systems/Test Equipment Deals
    • Buy, Trade and Sell
    • The 43oh Store
    • Community Projects
    • Fireside Chat
  • C2000 Technical Forums
    • General
    • Development Kits
    • Code Vault
    • Projects
    • BoosterPacks

Calendars

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Location


Interests


Sparkfun


Github

Found 1 result

  1. I am currently working on a project that is transferring data to a host computer via UART. Standard baud rate is 9600bps, UART is clocked with SMCLK 8MHz (using calibrated DCO values). I am not using the launchpad, the MSP430 is connected to the computer by a Prolific serial to USB converter. So far so good. To speed up the data transfer I implemented the feature to increase the baud rate by a command send from the computer. Target idea was to change from 9600 to 38400. It did not work, the MSP430 changed the baud rate but the PC could not identify the characters (I changed the baud rate on the PC as well). I changed the UART settings to 19200bps and it worked. Back to 38400, same problem. Double checking the settings revealed nothing. The suggested settings for 38400Bps are: UCA0BR0 = 0xD0 UCA0BR1 = 0x00 UCA0MCTL = 0x03 I then added some test code (see below) that looped the UART settings, varying the modulator value since this caused significant distortion at an other issue. It turned out that every time the modulator value has an even number 2, 4, 6, 8 the 38400 setting is working correctly. What can be the reason why the recommended modulator setting is not working? for (i=0; i<16; i++) { IE2 &= ~UCA0RXIE; IE2 &= ~UCA0TXIE; UCA0CTL1 |= UCSWRST; // UART state machine Reset UCA0CTL1 |= UCSSEL_2; // SMCLK UCA0BR0 = 0xD0; //0xD0; // 8 MHz, 38400 Bps UCA0BR1 = 0x00; //0x00; // 8 MHz, 38400 Bps UCA0MCTL = i; //0x03; // 8 MHz, 38400 Bps UCA0CTL1 &= ~UCSWRST; // UART state machine IE2 |= UCA0RXIE + UCA0TXIE; tempChar=i+48; transmitByte_UART(tempChar); transmitBytes_UART ("\r\n", 2); }
×
×
  • Create New...