USB Pen Drive data read and write

Discussion about projects that used PIC Microcontroller, Hardware Interface, Programming Algorithm and etc......

USB Pen Drive data read and write

Postby PICTRAIL » Thu Feb 10, 2011 10:28 pm

I would like to check on possible ways to read from and write to rows and columns of a spreadsheet file in usb a pen drive using PIC16.

This is to replace the use of a SD Card.

Any clue on how to go about it or where to get more info would be highly appreciated.

Thanks .
PICTRAIL
Apprentice
 
Posts: 40
Joined: Mon Dec 27, 2010 3:32 pm

Re: USB Pen Drive data read and write

Postby Brian Griffin » Fri Feb 11, 2011 1:27 am

PICTRAIL WROTE:I would like to check on possible ways to read from and write to rows and columns of a spreadsheet file in usb a pen drive using PIC16.

This is to replace the use of a SD Card.

Any clue on how to go about it or where to get more info would be highly appreciated.

Thanks .


The problem with interfacing the USB thumbdrive is... it's too overwhelming for a low capacity PIC16F. You need a USB Firmware inside and the software on the computer to go with it. And worse, only PIC18F and above contains USB host controllers.

You should start back with the SD card - it's much easier to handle.
PIC - UIC00B from Cytron (replacement for my broken PICKit 2), Pickit 3, MikroC for PIC
dsPIC - MikroC for dsPIC, mikromedia board (dsPIC33)
AVR - AVR Dragon
Parallax - Prop tool
User avatar
Brian Griffin
Enthusiast
 
Posts: 403
Joined: Mon Jan 17, 2011 9:36 am

Re: USB Pen Drive data read and write

Postby PICTRAIL » Fri Feb 11, 2011 2:28 am

Thanks... Is it possible to use SD CARD with PIC16F877A (Just for a single excel file with about 4columns and 20rows). If yes, where can i find information on the setup. Finally, do i require separate drive for the SD CARD or i can just connect ordinary card to the Micro controller.

Regards,
Ebby.
PICTRAIL
Apprentice
 
Posts: 40
Joined: Mon Dec 27, 2010 3:32 pm

Re: USB Pen Drive data read and write

Postby ABSF » Fri Feb 11, 2011 5:57 am

PICTRAIL WROTE:Thanks... Is it possible to use SD CARD with PIC16F877A (Just for a single excel file with about 4columns and 20rows). If yes, where can i find information on the setup. Finally, do i require separate drive for the SD CARD or i can just connect ordinary card to the Micro controller.

Regards,
Ebby.

The problems with interfacing SD cards is the file system FAT16/32 takes up a lot of prgram and data memories of the PIC and normally is implemented with 18F or above high end PIC. But some smart guys here has created a sub-set of FAT16 Libraries to work with mid-range PIC:

http://elm-chan.org/fsw/ff/00index_p.html

There are discussion of interfacing to SD/MMC cards with 18F family chips and might be useful for you when you decided to switch over to 18F:

http://www.edaboard.com/thread75721.html

Watch out that SD cards use 3.3V just like XBee. So you must be carefully when interfacing with them.

Allen
The next war will determine NOT who is right BUT what is left.
User avatar
ABSF
Professional
 
Posts: 810
Joined: Wed Nov 10, 2010 9:32 am
Location: E Malaysia


Return to PIC Microcontroller

Who is online

Users browsing this forum: No registered users and 4 guests

cron