EmbeddedRelated.com
Forums

USB MSP430 LaunchPad from/to PC communication?

Started by teo2600 April 22, 2012
I'm a Junior Programmer (waiting for my MSP430 LaunchPad kit), but I'm not an expert in Electronics.

How is it possible to make the PC Operating System (Shell or Programming Language) control MSP430 LaunchPad electric/electronic inputs/outputs?

Is it possible to do this using the USB port which is also used for programming the microcontroller?

Is there an easier way to do it?

For example, when an electric/electronic MSP430 LaunchPad input changes its state (receiving or ceasing to receive electric current), the PC Operating System can intercept this event doing something (sending an email), or when a PC Operating System event occurs (receiving an email containing a particular string), it can change a MSP430 LaunchPad electric/electronic output state (turning on a led): how?

Could you tell me where I can find information in this regard?

Thanks.

Beginning Microcontrollers with the MSP430

Hi Matteo,

The simplest way to communicate with the LaunchPad is using the LaunchPad UART. You can send and receive data using the USB virtual COM port. To get this done with the lowest effort, use 4E4th:
http://www.4e4th.eu/ (a click on the British flag switches to English text).
DB.
On Mon, Apr 23, 2012 at 12:18 AM, bluebee2010 wrote:
> Hi Matteo,
>
> The simplest way to communicate with the LaunchPad is using the LaunchPad UART. You can send and receive data using the USB virtual COM port. To get this done with the lowest effort, use 4E4th:
> http://www.4e4th.eu/ (a click on the British flag switches to English text).
> DB.

Thanks for the reference Dirk! I was in the process of debugging my
own port of CamelForth430 to the G2553 on the LaunchPad when I saw
this. You guys (I assume you are involved in the project as there's a
thanks to you in the Acknowledgements) are way ahead of me, so I'll
swing my support to you.

For the sake of completeness, there's another Forth for the G2553 -
Mecrisp (http://mecrisp.sourceforge.net). This is a less conventional
but definitely interesting take on Forth for the MSP430. Mecrisp also
comes with a nice emulator/disassembler tool and a ready-for-download
hex file (as does 4E4th).
> Thanks for the reference Dirk! I was in the process of debugging my
> own port of CamelForth430 to the G2553 on the LaunchPad when I saw
> this. You guys (I assume you are involved in the project as there's a
> thanks to you in the Acknowledgements) are way ahead of me, so I'll
> swing my support to you.
>
> For the sake of completeness, there's another Forth for the G2553 -
> Mecrisp (http://mecrisp.sourceforge.net). This is a less conventional
> but definitely interesting take on Forth for the MSP430. Mecrisp also
> comes with a nice emulator/disassembler tool and a ready-for-download
> hex file (as does 4E4th).


Now I am really glad that I wrote this notice, saving you some work.
I am in contact with Matthias, and checked mecrisp, too. It's a little bit different, but useful. Our goal is to launch 4e4th for education. It is the cheapest start for classroom microprocessor education, and the easiest, because it is Forth. I hope people will recognize that. What's missing is a good tutorial.
Best Regards,
Dirk.
I'm a Junior Programmer (waiting for my MSP430 LaunchPad kit), but I'm not an expert in Electronics.
Hi Junior Programmer,

The simplest way to communicate with the LaunchPad is using the LaunchPad UART. You can send and receive data using the USB virtual COM port.

There are examples in C and Assembler at TI's code page http://www.ti.com/lit/zip/slac485 - a brief introduction you find at http://e2e.ti.com/support/microcontrollers/msp43016-bit_ultra-low_power_mcus/f/166/t/119783.aspx

To get this done with the lowest effort, use 4E4th:
http://www.4e4th.eu/ (a click on the British flag switches to English text).

DB.