View previous topic :: View next topic |
Author |
Message |
newby
Joined: 26 Sep 2004 Posts: 32
|
Fat16 write function for compact flash card |
Posted: Thu Dec 30, 2004 2:29 pm |
|
|
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
|
|
|
newby
Joined: 26 Sep 2004 Posts: 32
|
|
Posted: Fri Dec 31, 2004 4:57 am |
|
|
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
|
|
Posted: Fri Dec 31, 2004 5:33 am |
|
|
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
|
|
|
newby
Joined: 26 Sep 2004 Posts: 32
|
CF library |
Posted: Sat Jan 01, 2005 7:06 am |
|
|
@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 |
Posted: Sat Jan 01, 2005 3:49 pm |
|
|
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 |
Posted: Sat Jan 01, 2005 3:54 pm |
|
|
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
|
|
Posted: Fri Feb 18, 2005 10:56 am |
|
|
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
|
|
Posted: Fri Feb 18, 2005 11:05 am |
|
|
.... 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
|
|
Posted: Fri Feb 18, 2005 11:10 am |
|
|
No usb! You would have to implement a USB host with a PIC and then write drivers. |
|
|
Guard
Joined: 20 Jan 2005 Posts: 43
|
|
Posted: Fri Feb 18, 2005 11:18 am |
|
|
ok Thanks! |
|
|
Yashu
Joined: 08 Oct 2003 Posts: 26
|
|
|
lucky
Joined: 12 Sep 2003 Posts: 46 Location: South Coast - England
|
FAT16 Compact Flash Code |
Posted: Mon Feb 21, 2005 3:32 am |
|
|
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 |
|
|
|