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.

PC interfacing with TI launchpad (msp430g2452)



hello everyone ,

I want to control the I/O pins of my launchpad through my PC.For example , i want to start and stop my stepper motor connected to the launchpad  when a command is given from PC to the MCU.

Can anyone tell me how to do so ? i am unable to find any useful link or userguide regarding such kind of PC interfacing.

Thanks in advance.

  • amit rohilla said:
    i am unable to find any useful link or userguide regarding such kind of PC interfacing.

    Maybe because it is such an obvious standard problem that nobody bothered to write a specific appnote? There are lots of examples about using a serial connection.

    On the LaunchPad, there's the backchannel UART, which is provided on the PC side as a virtual COM (serial) port.
    It is only available through the programming interface, so it will work only as long as the MSP is used on the LaunchPad board (for a 'real' application, a separate level-shifting hardware would have to be used), and it is limited to 9600Bd. However, once you can send and receive data through a serial connection, it's up to you to 1) provide teh commands on teh PC side and 2) to interpret them on the MSP.

  • Sir 

    Can you please tell me how to create a link between Virtual COM PORT on PC side and back Channel UART on Launchpad side so that I can give a command from PC to do some purpose on MCU side. ??

    Sorry Sir ,  It may seem obvious to you but I am not getting any solution regarding this problem and my PROJECT is also stuck in the way because of this.Simply I want to control the Stepper Motor connected to launchpad through PC .....

  • amit rohilla said:
    how to create a link between Virtual COM PORT on PC side and back Channel UART on Launchpad side

    Install teh USB drivers for the LaunchPad? Then teh virtual COM port will appear that receives teh port pin changes from the MSP. All that's left to do is to toggle the MSP port pins with the proper timing, as it is done in teh example code, and the PC will receive the data on the virtual COM port. And vice versa.

    All this is not a secret knowledge. It is written in the LaunchPad documentation and the supporting documents that you can download from the LaunchPad product page.

    As for controlling the stepper motor: that's your engineering work. If you want me to do this work for you, I want your salary in return - or your university grade (whatever you receive for this project) :)

    But if you have detail question about how to handle certain specifics of the MSP, you're welcome here.

  • hey,

    i think this is smthing really simple. U can write a program to use MSP430's UART (this is in their sample applications.simply downloaded that to LP). then u can change it to do wht ever u want to do. in ur case chking d received character and do the work .

    Few days earlier i was able to implement a serial connection between LP and PC using MATLAB.(i don't know that much of computer languages).

    anyway wht i hav done is,

    create the serial object > Ser = serial('COM4')// com4 is the virtual port that my LP connected

    open it >> fopen (Ser) // u hav to open the serial object to communicate with it

    do wht ever u want  fprintf to send commands to LP, fscanf to read  

     

    do remember to close the serial object after u used it >fclose(Ser)

     

    best regards

     

     

**Attention** This is a public forum