EmbeddedRelated.com
Forums
Memfault State of IoT Report

Controlling a USB device using a MSP430

Started by mmmew November 24, 2008
I've a USB device that stores data. When it is connected to a PC, I
can pull this data out using a special program.

I need to build a device using a MSP430 that can do what the PC is
doing (i.e. retrieving the data from the USB device).

Technically speaking, is the above scenario possible?
Is there any chip/board/circuit that allows me to control a USB device
from a MSP430?

Any hints will be highly appreciated.

Thanks.

Beginning Microcontrollers with the MSP430

Have a look at this:
http://www.ftdichip.com/FTProducts.htm#Vinculum

Basically, you need an USB host chip. Depending on the chip is how
much it handles on hardware and how much you need to handle by software.
Saelig sells a chip that supports a limited type of USB classes, one
of which is "Mass storage Device". It handles the USB protocol and
communicates with a uC throught SPI inteface.
More info at
http://www.saelig.com/miva/merchant.mvc?Screen=PROD&Product_Code001&Category_Code=UI1W

Regards,
Michael K.

--- In m..., "mmmew" wrote:
>
> I've a USB device that stores data. When it is connected to a PC, I
> can pull this data out using a special program.
>
> I need to build a device using a MSP430 that can do what the PC is
> doing (i.e. retrieving the data from the USB device).
>
> Technically speaking, is the above scenario possible?
> Is there any chip/board/circuit that allows me to control a USB device
> from a MSP430?
>
> Any hints will be highly appreciated.
>
> Thanks.
>

one approach is to use the max3421e device which you can control over SPI -
and can be a USB host or device.

for that you will need a USB host stack running on your MSP430 - no
particular problem with this.

for more information you can look at the max3421e pages at
www.hcc-embedded.com

Regards
Dave


Dave Hughes
HCC-Embedded
On Mon, Nov 24, 2008 at 11:27 AM, mmmew wrote:
> I've a USB device that stores data. When it is connected to a PC, I
> can pull this data out using a special program.
>
> I need to build a device using a MSP430 that can do what the PC is
> doing (i.e. retrieving the data from the USB device).
>
> Technically speaking, is the above scenario possible?
> Is there any chip/board/circuit that allows me to control a USB device
> from a MSP430?

If you _really_ must use a msp430 for this, then the maxim/ftdi/
USB host interface chips others have recommended are likely your best
bet.

If you're open to using other embedded MCUs, you might want to take a
look at either the Atmel AT90USB1286/7 or the Microchip PIC24/32 parts
with Host/OTG support.
--
Andy

An exemple of USB Host Controller

FTDI VNC1L with 2 USB ports : 1 host 1 slave
... and exemples of firmware ready to use
http://www.vinculum.com/

A. Foudhaili
2008/11/24 tintronic

> Basically, you need an USB host chip. Depending on the chip is how
> much it handles on hardware and how much you need to handle by software.
> Saelig sells a chip that supports a limited type of USB classes, one
> of which is "Mass storage Device". It handles the USB protocol and
> communicates with a uC throught SPI inteface.
> More info at
>
> http://www.saelig.com/miva/merchant.mvc?Screen=PROD&Product_Code001&Category_Code=UI1W
>
> Regards,
> Michael K.
> --- In m... , "mmmew"
> wrote:
> >
> > I've a USB device that stores data. When it is connected to a PC, I
> > can pull this data out using a special program.
> >
> > I need to build a device using a MSP430 that can do what the PC is
> > doing (i.e. retrieving the data from the USB device).
> >
> > Technically speaking, is the above scenario possible?
> > Is there any chip/board/circuit that allows me to control a USB device
> > from a MSP430?
> >
> > Any hints will be highly appreciated.
> >
> > Thanks.
> >
>

I agree with Andy et. al. that the FTDI parts are a decent solution.
We made a few MSP430 boards with these parts, and have discontinued all
of them except for one series that we still have stock of:

http://www.softbaugh.com/ProductPage.cfm?strPartNoT245U169

I can give you a discount of 30% on five or more if you want to start
with that one :-), but ...

Although our USBP/UBSL/USBPPRO have FTDI parts inside them for the USB
side, we were about to design in the SiLabs CP2101 as an alternative
before we decided to start moving all USB designs away from the MSP430
entirely. So, you might want to look into that part, and its siblings,
also.

Tom

Tom,

Just wondering - why are you moving away from the MSP430 for this?
I have been 'playing' with a design that is very similar to the 'JTAG
Dongle' that TI has that uses the x161x and TUSB3410. I've been doing
the development on a Vista-64 machine and the HID interface works just
fine. I don't want to go into the tools business per se but I want to
be able to provide this to customers as a matter of convenience.

Microchip also has some pretty decent parts for this solution as well.

Happy Thanksgiving,
John
San Jose, CA

> I agree with Andy et. al. that the FTDI parts are a decent solution.
> We made a few MSP430 boards with these parts, and have discontinued all
> of them except for one series that we still have stock of:
>
> http://www.softbaugh.com/ProductPage.cfm?strPartNoT245U169
>
> I can give you a discount of 30% on five or more if you want to start
> with that one :-), but ...
>
> Although our USBP/UBSL/USBPPRO have FTDI parts inside them for the USB
> side, we were about to design in the SiLabs CP2101 as an alternative
> before we decided to start moving all USB designs away from the MSP430
> entirely. So, you might want to look into that part, and its siblings,
> also.
>
> Tom
>
If you want to stick with an MSP430 for your USB project. I recommend
looking at the FTDI line of USB interface chips. The one thing that I
really like about FTDI is that their drivers are in all Windows, Mac and
Linux installs. Thus, when your device is plugged in, there is no
search for drivers off the host machine. While the USB integrated
microcontrollers are good, driver support must be investigated before
you choose one of these MCUs. I have seen MCU's dropped from project
since no Mac or Linux drivers existed for the USB MCU in question.

Steve
j...@westmorelandengineering.com wrote:
>
> Tom,
>
> Just wondering - why are you moving away from the MSP430 for this?
> I have been 'playing' with a design that is very similar to the 'JTAG
> Dongle' that TI has that uses the x161x and TUSB3410. I've been doing
> the development on a Vista-64 machine and the HID interface works just
> fine. I don't want to go into the tools business per se but I want to
> be able to provide this to customers as a matter of convenience.
>
> Microchip also has some pretty decent parts for this solution as well.
>
> Happy Thanksgiving,
> John
> San Jose, CA
>
> > I agree with Andy et. al. that the FTDI parts are a decent solution.
> > We made a few MSP430 boards with these parts, and have discontinued all
> > of them except for one series that we still have stock of:
> >
> > http://www.softbaugh.com/ProductPage.cfm?strPartNoT245U169
>
> >
> > I can give you a discount of 30% on five or more if you want to start
> > with that one :-), but ...
> >
> > Although our USBP/UBSL/USBPPRO have FTDI parts inside them for the USB
> > side, we were about to design in the SiLabs CP2101 as an alternative
> > before we decided to start moving all USB designs away from the MSP430
> > entirely. So, you might want to look into that part, and its siblings,
> > also.
> >
> > Tom
> >
> >
> >
On Tue, Nov 25, 2008 at 5:03 PM, Steve Sabram wrote:
> If you want to stick with an MSP430 for your USB project. I recommend
> looking at the FTDI line of USB interface chips. The one thing that I
> really like about FTDI is that their drivers are in all Windows, Mac and
> Linux installs. Thus, when your device is plugged in, there is no
> [...]
> j...@westmorelandengineering.com wrote:
>> [...]
>> Dongle' that TI has that uses the x161x and TUSB3410. I've been doing
>> the development on a Vista-64 machine and the HID interface works just
>> fine. I don't want to go into the tools business per se but I want to
>> be able to provide this to customers as a matter of convenience.

All of which strays further from the original request, which was for a
host-side implementation, using the msp430.

Interesting discussion, even if it is taking on a life of it's own.
--
Andy


Memfault State of IoT Report