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 CCS Technical Support

USB pen drive with pic

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



Joined: 07 Nov 2008
Posts: 60

View user's profile Send private message

USB pen drive with pic
PostPosted: Mon Mar 23, 2009 3:52 am     Reply with quote

I intend to read a pen drive with pic; I need only to read/write in raw format sending address memory and then data.
I cannot use sd or mmc but I must use a normal pen drive.
Any solution?
Thanks and regards
Ttelmah
Guest







PostPosted: Mon Mar 23, 2009 6:15 am     Reply with quote

Realistically, not practical with most PICs.
Do a search here for 'USB master'. Basically, the normal USB PIC is a slave device, as is the pen drive. You need a master device to talk to the drive...
It _may_ be just about possible to generate a sort of USB master, _for a single known device_, but even small changes in the device, make doing it or a generic pen drive, totally impossible.
There are now PICs that can implement a master. Do a search on the Microchip site for 'USB OTG'. These are all 24FJ devices, or the 32MX devices, however code is going to be a lot of work.....

Best Wishes
FvM



Joined: 27 Aug 2008
Posts: 2337
Location: Germany

View user's profile Send private message

PostPosted: Mon Mar 23, 2009 6:43 am     Reply with quote

I basically share the doubts regarding high software effort. But I assume, that a suitable designed mass storage device class host would be able to access different memory devices without difficulties.

Microchip has a package of USB design examples, also including this one USB Host - Mass Storage - Thumb Drive Data Logger. It's C30 code of course, but should be portable to PCD.
test153



Joined: 09 Feb 2009
Posts: 28

View user's profile Send private message

PostPosted: Mon Mar 23, 2009 11:24 am     Reply with quote

You could use the FTDI Vinculum and connect it to a suitable pic.
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