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

Fat16 write function for compact flash card

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



Joined: 26 Sep 2004
Posts: 32

View user's profile Send private message

Fat16 write function for compact flash card
PostPosted: Thu Dec 30, 2004 2:29 pm     Reply with quote

Iīm looking for a function to write onto a compact flash card using the fat16 file system.
Unfortunately there are some "drivers" available for reading from CF fat16, but no ones for writing.

Does anybody knows a source for such a fat16 CF wrtiting function ?

Is there another fast possibility to get data from a CF card to a PC, without using fat16 ?
Hans Wedemeyer



Joined: 15 Sep 2003
Posts: 226

View user's profile Send private message

Here is a link
PostPosted: Thu Dec 30, 2004 3:57 pm     Reply with quote

I used this library for the SD card. They also do a library for CF cards.

http://www.prllc.com/productcart/pc/viewPrd.asp?idcategory=17&idproduct=51
newby



Joined: 26 Sep 2004
Posts: 32

View user's profile Send private message

PostPosted: Fri Dec 31, 2004 4:57 am     Reply with quote

What do you say about the read / writing speeds ?

prllc writes 1 - 5kB/s for writing SD cards ?

Why is that that much slow ? I know that they save the FAT at every write access but if i compare it with the figures from

http://www.ccsinfo.com/forum/viewtopic.php?t=20340

where several MBits/sec are stated, it should be nevertheless much more faster...

May i ask where do you get your "SD-card holders", i mean the connectors where you can plug in your SD cards ? I didnīt found one, either for the CF-card holders...

Thanks a lot !
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Fri Dec 31, 2004 5:33 am     Reply with quote

Quote:
prllc writes 1 - 5kB/s for writing SD cards ?
Where did you find this data? I couldn't find it.

Quote:
Why is that that much slow ? I know that they save the FAT at every write access but if i compare it with the figures from

http://www.ccsinfo.com/forum/viewtopic.php?t=20340

where several MBits/sec are stated, it should be nevertheless much more faster...
As additional info to that thread: When using the SPI-bus for communication, the maximum SPI clock is 1/4 your CPU clock frequency. The current fastest PIC's run a maximum of 40MHz resulting in a maximum SPI-clock of 10MHz. So any speed over 1,25Mbyte/s is impossible on current PIC's.
Quote:
May i ask where do you get your "SD-card holders", i mean the connectors where you can plug in your SD cards ?
We use www.farnell.com
Guest








PostPosted: Fri Dec 31, 2004 5:46 am     Reply with quote

... i read the FAQs, there you can find it !

http://www.prllc.com/FlashFile-PIC-FAQ.pdf
newby



Joined: 26 Sep 2004
Posts: 32

View user's profile Send private message

CF library
PostPosted: Sat Jan 01, 2005 7:06 am     Reply with quote

@Hans Wedemeyer:
Quote:
... They also do a library for CF cards.

Where did you read that ? I asked the prllc tech support and they told me that they havenīt a CF version...
Guest








Re: CF library
PostPosted: Sat Jan 01, 2005 3:49 pm     Reply with quote

newby wrote:
@Hans Wedemeyer:
Quote:
... They also do a library for CF cards.

Where did you read that ? I asked the prllc tech support and they told me that they havenīt a CF version...


Sure they have a Compact Flash (CF) card version. I have it.

SD card holders are available from Digikey and Mouser.
Guest








Re: CF library
PostPosted: Sat Jan 01, 2005 3:54 pm     Reply with quote

Anonymous wrote:
newby wrote:
@Hans Wedemeyer:
Quote:
... They also do a library for CF cards.

Where did you read that ? I asked the prllc tech support and they told me that they havenīt a CF version...


Sure they have a Compact Flash (CF) card version. I have it.

SD card holders are available from Digikey and Mouser.


OK I cheked again and may be you will have to use the Atmel version
http://www.prllc.com/productcart/pc/viewPrd.asp?idcategory=10&idproduct=30
and port the code ro Microchip.

H'mmm may be I got lucky, I have the PIC version for CF card, perhasp they decided not to publish.
Guard



Joined: 20 Jan 2005
Posts: 43

View user's profile Send private message

PostPosted: Fri Feb 18, 2005 10:56 am     Reply with quote

Hi,

from http://www.prllc.com/FlashFile-PIC-FAQ.pdf

Flashfile works with CompactFlash and Smartmedia Card (FAT12 and
FAT16) ,
---->Can I use Flashfile for USB stick?

Other:
By default, Windows XP will format any CompactFlash card having a capacity greater than 32MB with the FAT32 format.
-------> Dosn't Flash file work with WindowsXP?

thank
Guard



Joined: 20 Jan 2005
Posts: 43

View user's profile Send private message

PostPosted: Fri Feb 18, 2005 11:05 am     Reply with quote

.... I read Faq..!
Yes , Flash file write memory stick.
Memory stick is an USB device , compacf flash uses SPI and parallel bus
I am a little confuse ( i don't konw usb protocol ), How can write usb device by Flashfile ?
Thank!
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

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

PostPosted: Fri Feb 18, 2005 11:10 am     Reply with quote

No usb! You would have to implement a USB host with a PIC and then write drivers.
Guard



Joined: 20 Jan 2005
Posts: 43

View user's profile Send private message

PostPosted: Fri Feb 18, 2005 11:18 am     Reply with quote

ok Thanks!
Yashu



Joined: 08 Oct 2003
Posts: 26

View user's profile Send private message

PostPosted: Sat Feb 19, 2005 10:49 am     Reply with quote

http://www.micrium.com/contents/products/file_system.html
lucky



Joined: 12 Sep 2003
Posts: 46
Location: South Coast - England

View user's profile Send private message Visit poster's website

FAT16 Compact Flash Code
PostPosted: Mon Feb 21, 2005 3:32 am     Reply with quote

www.mpic3.com look in the downloads area. Its free and works great for reads. Adding writes is easy and is just a case of switching the CF commands.
_________________
Lucky
www.mpic3.com - MPIC3 player project, Forum, Downloads, Online Shop
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