Jump to content

Search the Community

Showing results for tags 'putty'.



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 2 results

  1. j UART communication - Can't type anything in PuTTY.
  2. Hello, I'm very new to uCs, so please bear with me and my inevitable incorrect use of terminology (corrections appreciated!). I've been doing a lot of reading, and wrote a little program to TX/RX characters from PuTTY over UART. I think maybe I have some inappropriate UART settings, because the very first TX always prints garbage, even on reset. Would someone mind please taking a look for me? I'll just post the UART setup routine, and the print routine unless posting the whole code would be more useful. I've also attached a PuTTY screenshot as an example of the "garbage" I mean, and my PuTTY config. (9600 baud, 8 data bits, 1 stop bit, no parity, no flow) I'm using the launchpad MSP-EXP430G2 v1.5 and the g2553. Windows 7, Code Composer V5.5 Thank you so much for any help! void uart_init() { /*Setup TX/RX for MSP430G2553*/ BCSCTL1 = CALBC1_1MHZ; // Set Basic Clock System (msp430g2553.h - 1MHz bitmask) DCOCTL = CALDCO_1MHZ; // Digitally Controlled Oscillator (msp430g2553.h - 1MHz bitmask) P1SEL |= BIT1 + BIT2; //Set for UART functionality P1SEL2 |= BIT1 + BIT2; //Set for UART functionality // Configure UCA0 control register UCA0CTL0 = 0; // Async, UART, One Stop, 8-bit data, LSB, Odd Parity, Parity Disabled UCA0CTL1 |= UCSSEL_2; // Use SMCLK as USCI clock source UCA0CTL1 &= ~UCSWRST; // Software Reset disabled - USCI reset released for operation /* 16-bit value (UCA0BR0 + UCA0BR1 x 256) = prescaler */ UCA0BR1 = 0; // 0 for prescaler maths? UCA0BR0 = 104; //1MHz (DCO?) So 1MHz/9600 = ~104 UCA0MCTL = UCBRS0; //Modulation Control Register (bitclk timing for bit value sampling?) IE2 |= UCA0RXIE; // Enable USCI_A0 RX interrupt } /*Transmit String byte-by-byte*/ void sendstring(char * str) { char *ptr; unsigned char len = 0; for (ptr = str; *ptr; ++ptr) ++len; //calculate string length int i; for (i=0; i<len; i++) { while (!(IFG2&UCA0TXIFG)); // USCI_A0 TX buffer ready? UCA0TXBUF = str[i]; } } an example, the first sendstring is: sendstring("garbage\n\r");
×
×
  • Create New...