View previous topic :: View next topic |
Author |
Message |
KONAMI
Joined: 29 Aug 2010 Posts: 11
|
USB MSD |
Posted: Fri Dec 09, 2011 6:32 am |
|
|
Hill all the programmer. I'm looking to write and read some file on USB Mass Storage Device(MSD).Does any have ideas. |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19504
|
|
Posted: Fri Dec 09, 2011 7:44 am |
|
|
Key thing, this requires a USB _master_ device.
Immediately rules out 99% of PIC's. Only ones that can do this are those which support 'USB 'OTG' (on the go). This is designed for things like printers, which can connect both as a slave device, but also directly read things like USB memory cards.
Quite a lot of work involved. USB stack to support the device, then file system support etc. etc..
Simplest solution the FTDI Vinculum devices. These offer a prebuilt stack for this, and direct connection to other devices like a simple PIC.
Probably 5-10% of the actual programming involved using these, compared to trying to do it directly with a suitable PIC.
Downside the cost of the extra part.
YPYM...
Best Wishes |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9225 Location: Greensville,Ontario
|
|
Posted: Fri Dec 09, 2011 8:30 am |
|
|
I've used one of those Vinculum modules for 1/2 year now as a remote data logger with an 18F4550.It looks like a serial port to the PIC, Fast,easy and reliable.Data stored on the flashdrive is easy for any PC to read.
Best $30 I've ever spent on microcomputer 'stuff' ! |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9225 Location: Greensville,Ontario
|
|
Posted: Fri Dec 09, 2011 8:34 am |
|
|
I second the Vinculum device!
Currently using one for remote data logging with an 18F4550. It cost about $30 for the module,looks like a serial device and was easy to get 'up and running'.NO hassles,once the data is store on the flashdrive, any PC can read it ! |
|
|
|