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.

Software USB for msp430

Other Parts Discussed in Thread: MSP430G2553, MSP430F5505, MSP430G2452, MSP430F5510

Hi all,

We are using an MSP430g2553 for a project and are looking for an implementation of software USB on the MSP430 platform, something that will allow us to communicate at low speed with the MSP430 without any need for external hardware.

Something like this http://dicks.home.xs4all.nl/avr/usbtiny/ , its for the atmel attiny micro controllers.

Thanks in advance,

Varun

 

  • What consideration have you given to the MSP430F5505? It has USB.  I've attached a comparison with the differences highlighted in yellow.

    3058.msp430 comparison.xlsx

    MSP430 USB Developers Package would be available to you to use if you select a MSP430 device with USB.

  •  Hi Jason, I got an eye to project mentioned, 55 series has internal USB, I am sure cost doesn't differ so much from 2xx but software implementation of USB is an amazing idea.

    After looking to that project I can say yes is feasible but porting is not so easy due to hardware dependance of original code.

  • @ Jason

    Thanks for the suggestion, the F5505 looks like a great ic, the price itself is not too high, but because of the way our project progressed , we have a stock of 1k G2553 units, and have to work out things with them. On a side note though , how difficult would it be to port the code over from the G2553 to the F5505?

    @ Roberto

    Yes, the software USB would be a really powerful library for the MSP430 family, imagine being able to turn these device into USB to TTL/USB to i2c bridges among a bunch of other interesting things you could do. I am thinking of spending some time to work on a port for this. Are there any resources available to read um more in detail about low speed USB communication?

    Thanks,

    Varun

  • varun perumal said:
    we have a stock of 1k G2553 units, and have to work out things with them

    Well, teh G2553 and its brethren are great devices for small projects like door keypad controllers or such. But for a software USB, I feat that the lack of high-speed crystal support (for the USB bus timing), the limited ram (512 bytes only) and the also limited flash that has to hold the software USB stuff along wht tha applicaiton itself, won't ake it an ideal candidate.

    varun perumal said:
    how difficult would it be to port the code over from the G2553 to the F5505

    The whole low-level stuff is of course completely different. But if you make the high-level functionality compatible, at least the application itself won't need too much change.

  • Yes, i do agree that is msp430g2553 is constrained for both code space and ram, but the avr equivalent  (usb tiny) works with about 1800 bytes of code space and 512 bytes of RAM, so i was thinking of getting started on writing a port for the software, though i am not exactly sure where to get started and i dont have much of an idea about the USB protocol.  But if someone can help me out with the basics, i really want to get started.....

  • varun perumal said:
    We are using an MSP430g2553 for a project and are looking for an implementation of software USB on the MSP430 platform

    There is a similar project using the MSP430G2452 MCU: USB v1.1 support on the MSP430 Launchpad

  • Thanks a lot ! thats esactly what i was looking for, though there is no c implementation yet, only assembly code is provided, but it could be  a great starting point...

  • Check out the following link, there is a CCS port for the software USB !!! and it works with the MSP430G2553 !!!!!!!!!! Awesome !!

    http://forum.43oh.com/topic/2962-bit-bang-usb-on-msp430g2452/page-3#entry26565

  •  Hi, I downloaded the code with some interest on using it, I am not an expert on USB, but what you pointed on last message is very good gift. I join project and do some experiment on it.

     I am using msp430F5510 to communicate with pc but I got poor result on Linux with composite devices, I can try this new way for low speed channel, Thank a lot all for info.

**Attention** This is a public forum