This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Serial communication with msp430g2231

Other Parts Discussed in Thread: MSP430G2231

Hey Everybody

I'm doing a project right now where i have to use serial communication between the msp430g2231 launchpad and my pc. I just want to send a character to my hyperterminal to see that my data is send from the micro controller. But i cant figure out how to do it. I have tried to use some of the code examples in ccsv4, but without any luck.

Could somebody please tell me how to do it, and maybe post some code examples?

 

Best regards

Søren

  • Have you seen the Wiki Page on the Launchpad that has quite a bit of material and examples?

    The Virtual UART over the USB interface is implemented on the target MSP430Gxxxx device with a software UART.  The MSP430Gxxxx code examples are found at this site.

    The preprogrammed demo application uses the software UART @ 2400bps.  A link to this project is available from the mentioned Launchpad Wiki Page.

  • Download the samples from the msp430g2231 product  page and find the example named msp430g2xx1_ta_uart9600.c

     

  • Thanks a lot for your answer. That solved my problem. I tried as well to find an example how to recieve a character from the hyper terminal to the msp430g2231. Are there any code examples how to do that. I've already tried to measure the rx pin on the launchpad with an oscilloscope, to see if any signal goes through that. But when i type something in at the hyper terminal nothing happens and nog signal appears..

    any solutions??

  • sorry found it in the example.. thanks a lot;)

  • Hi.

    My name is Matt and I am a student from Slovenia. I found your source code for Software Uart on github and it helped me alot. I was just wondering... Does the 32768khz crystal for calibration need a balast capacitor? Because i did not find them activated in your source code...

    Thank you and have a nice day

  • Matja�� Behek said:
    Does the 32768khz crystal for calibration need a balast capacitor? Because i did not find them activated in your source code...

    According to the users guide, the default setting for th einternal load capacitors is XCAP_1, which is 6pF. For some crystals this will be enough. Others will require the non-default XCAP_2 or even XCAP_3 setting.

**Attention** This is a public forum