CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

USB MSD

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
KONAMI



Joined: 29 Aug 2010
Posts: 11

View user's profile Send private message Send e-mail Yahoo Messenger

USB MSD
PostPosted: Fri Dec 09, 2011 6:32 am     Reply with quote

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: 19328

View user's profile Send private message

PostPosted: Fri Dec 09, 2011 7:44 am     Reply with quote

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: 9162
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Fri Dec 09, 2011 8:30 am     Reply with quote

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: 9162
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Fri Dec 09, 2011 8:34 am     Reply with quote

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 !
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group