Compact Flash Library (Beta 1)

Author
PIC32 Support
Junior Member
  • Total Posts : 81
  • Reward points : 0
  • Status: offline
2008/09/05 09:38:30 (permalink)
0

Compact Flash Library (Beta 1)

This library includes support for interfacing with Compact Flash cards.

The attached library is provided as a beta release.    This library is intended for evaluation use only and not for use in production intent designs.  This is for experimental use only as Microchip has not decided if the Compact Flash Library will be production released.    

 
Overview (subject to change)

In this release, Beta 1, documentation is limited to the source code only
Includes schematic for user to create own Compact Flash hardware (PICtail Plus format). 


#1

17 Replies Related Threads

    drazen
    Super Member
    • Total Posts : 2847
    • Reward points : 0
    • Joined: 2003/11/07 12:43:09
    • Location: Croatia
    • Status: offline
    RE: Compact Flash Library (Beta 1) 2008/09/08 03:36:52 (permalink)
    0
    Supporting CF means that we could interface HDD?
    #2
    Neiwiertz
    Super Member
    • Total Posts : 2090
    • Reward points : 0
    • Joined: 2004/09/01 02:58:52
    • Status: offline
    RE: Compact Flash Library (Beta 1) 2008/09/08 06:25:25 (permalink)
    0
    No as mentioned above i think it is simular as for sdcard, instead a CF card could be used then.
    But we should create our own CF pictail plus card then i suppose

    Flying With --|Explorer 16|HardWare|SoftWare|-- Fav(s) Gallery Lists
    #3
    bosco
    Super Member
    • Total Posts : 2085
    • Reward points : 0
    • Joined: 2004/07/24 10:17:53
    • Location: Idaho
    • Status: offline
    RE: Compact Flash Library (Beta 1) 2008/09/08 08:03:25 (permalink)
    0
    ORIGINAL: drazen

    Supporting CF means that we could interface HDD?

     
    depends, one can impliment CF with an 8bit data path such that only a few I/O pins are used.  But that is not going to work well with a HDD.  IIR one needs about 30 I/O pins to do it.
    #4
    corvette321
    Super Member
    • Total Posts : 727
    • Reward points : 0
    • Joined: 2006/10/31 19:17:07
    • Location: Florida
    • Status: offline
    RE: Compact Flash Library (Beta 1) 2008/09/08 08:17:34 (permalink)
    0
    will this work with microSD (transflash)?

    yah yah i know its supposed to be the same... but i have never ever seen anyone use this in a PIC project!

    i tried on PIC 18 with the Mass storage driver and i couldnt get it working.

    i just love those microSD nice and small!

    another reason why i wanna use this is that i have like 300 of these sockets sitting around hahahaha....
    post edited by corvette321 - 2008/09/08 08:22:53

    The Silicon Horizon Inc.
     
    #5
    Neiwiertz
    Super Member
    • Total Posts : 2090
    • Reward points : 0
    • Joined: 2004/09/01 02:58:52
    • Status: offline
    RE: Compact Flash Library (Beta 1) 2008/09/08 08:48:00 (permalink)
    0
    i tried on PIC 18 with the Mass storage driver and i couldnt get it working. i just love those microSD nice and small!
    O sure no problem i needed to buy those ones (512MB) todo testing,
    because normal cards of this size couldn't bought eaily at the shop

    Flying With --|Explorer 16|HardWare|SoftWare|-- Fav(s) Gallery Lists
    #6
    bosco
    Super Member
    • Total Posts : 2085
    • Reward points : 0
    • Joined: 2004/07/24 10:17:53
    • Location: Idaho
    • Status: offline
    RE: Compact Flash Library (Beta 1) 2008/09/08 13:24:04 (permalink)
    0
    ORIGINAL: corvette321
    will this work with microSD (transflash)?

     
    Neiwiertz was being kind. 
    CF is parallel; SD is serial regardless of the form factor.  Microchip has working demos of SD on 18F and up.  Perhaps microSD may have some slight differences, but that is why they call it engineering.
    #7
    Neiwiertz
    Super Member
    • Total Posts : 2090
    • Reward points : 0
    • Joined: 2004/09/01 02:58:52
    • Status: offline
    RE: Compact Flash Library (Beta 1) 2008/09/08 14:24:42 (permalink)
    0
    Perhaps microSD may have some slight differences, but that is why they call it engineering.
    Hi Bosco, as far as i know the difference could be the collar of the plastic housing (just joking). Those cards all need to met the sd specification if it are none sdhc cards. Yeah it could be still the fact that other microSD don't work of a specific brand. I tried all kind of brand for sd, mmc and microSD like kingstone, sanddisk, apacer and even none brands card without a sticker just blue for a couple of bucks

    Not to hijack this thread further we go further here for sdcards at
    http://forum.microchip.com/fb.aspx?m=359607

    Flying With --|Explorer 16|HardWare|SoftWare|-- Fav(s) Gallery Lists
    #8
    corvette321
    Super Member
    • Total Posts : 727
    • Reward points : 0
    • Joined: 2006/10/31 19:17:07
    • Location: Florida
    • Status: offline
    RE: Compact Flash Library (Beta 1) 2008/09/08 14:30:48 (permalink)
    0
    lol thanks :)

    actually a good source for cheap SD is alibaba.com

    get your china copy cheap!! lol

    i didnt realize i would piss off all the CF diehards here.

    i am good at pissing people off for some reason.

    i learned how to in IRAQ.

    IN THE DARK IN THE DESERT UNDER FIRE

    BOOYAHHH
    #9
    Neiwiertz
    Super Member
    • Total Posts : 2090
    • Reward points : 0
    • Joined: 2004/09/01 02:58:52
    • Status: offline
    RE: Compact Flash Library (Beta 1) 2008/09/08 14:42:08 (permalink)
    0
    alibaba.com i bet they have two humps camels to accross desertgrin

    I think the beta CF is tested at some E16 CF pictail board, maybe they can provide gerber?

    (to make it for people easier to create a hw for CF by them selfs)

    Flying With --|Explorer 16|HardWare|SoftWare|-- Fav(s) Gallery Lists
    #10
    corvette321
    Super Member
    • Total Posts : 727
    • Reward points : 0
    • Joined: 2006/10/31 19:17:07
    • Location: Florida
    • Status: offline
    RE: Compact Flash Library (Beta 1) 2008/09/08 15:46:44 (permalink)
    0
    hahahahah

    no seriously if u can testout the CF and SD cards you get from them, then they are dirt cheap in bulk!!

    ive never used CF ive always used SD...

    its just the microSD kicked my butt..

    might try the CF in my next pic 32 design :)

    gotta love microchip coming out with all these great drivers!!

    im really happy with them.
    #11
    sinkplaat
    Super Member
    • Total Posts : 228
    • Reward points : 0
    • Joined: 2004/11/15 11:07:50
    • Location: South Africa
    • Status: offline
    RE: Compact Flash Library (Beta 1) 2008/09/09 02:59:02 (permalink)
    0
    its just the microSD kicked my butt..


    I've got a 8GB uSD prototype board running FAT32.

    I did the development on a normal 8GB SD and the same code ran on the uSD no problems.

    I based the low-level SPI code on Lucio's code from his PIC32 book and ported Chan's FatFs filesystem for the FAT32.  You can check it out here: http://elm-chan.org/fsw/ff/00index_e.html.  It's a robust and scalable filesystem, haven't checked out Microchip's FAT32 so I can't really compare it.
    #12
    corvette321
    Super Member
    • Total Posts : 727
    • Reward points : 0
    • Joined: 2006/10/31 19:17:07
    • Location: Florida
    • Status: offline
    RE: Compact Flash Library (Beta 1) 2008/09/09 06:55:25 (permalink)
    0
    thanks for the post!

    yah ive been wanting to buy that book!!

    i guess my china uSD cards just sucked with the timing of that mass storage code...(however i did adjust it..)

    that code was a little picky.
    #13
    PICalyzer
    Starting Member
    • Total Posts : 61
    • Reward points : 0
    • Joined: 2007/03/30 15:51:45
    • Location: Oxford UK
    • Status: offline
    RE: Compact Flash Library (Beta 1) 2008/09/16 07:08:03 (permalink)
    0
    Hi,

    The Microchip FAT32 library supports uSD (transflash) or SD cards. I have a number of working boards with uSD sockets on-board. I have tried the code with a reasonable number of cards ranging from 512 MB to 8 GB and they all worked great. The FAT32 library is not fully implemented yet as it does not allow for formatting but as long as you can live with preformatted cards, it works great.

    Iraklis
    #14
    MrZANE
    New Member
    • Total Posts : 17
    • Reward points : 0
    • Joined: 2007/10/17 00:26:55
    • Location: 0
    • Status: offline
    RE: Compact Flash Library (Beta 1) 2009/08/25 15:17:45 (permalink)
    0
    Hi everyone.

    I would like to point out a problem with the current CF-PMP code.
    There are two macros in the CF-PMP.h file:

    #define MDD_CFPMP_DATABoutput MDD_CFPMP_DATADIR = 0;
    #define MDD_CFPMP_DATABinput MDD_CFPMP_DATADIR = 0xff;


    The problem is that they change the TRIS settings for the whole port not just the PMP data bits.

    Please change this to something like:
    #define MDD_CFPMP_DATABoutput MDD_CFPMP_DATADIR = MDD_CFPMP_DATADIR & 0xFF00;
    #define MDD_CFPMP_DATABinput MDD_CFPMP_DATADIR = MDD_CFPMP_DATADIR | 0x00FF;

    TIA
    Jimmy

    Ps. Otherwise it's a great library.

    post edited by MrZANE - 2009/09/15 05:40:58
    #15
    MrZANE
    New Member
    • Total Posts : 17
    • Reward points : 0
    • Joined: 2007/10/17 00:26:55
    • Location: 0
    • Status: offline
    RE: Compact Flash Library (Beta 1) 2009/09/15 05:43:20 (permalink)
    0
    Anyone at Microchip have a comment to the suggested change/fix?

    I think the change would avoid alot of frustration when starting a project using the library.
    My project did do some quite strange things before changing the code, and I don't think I'm alone.

    TIA
    Jimmy

    #16
    ptal
    New Member
    • Total Posts : 8
    • Reward points : 0
    • Joined: 2008/12/14 20:11:26
    • Location: 0
    • Status: offline
    RE: Compact Flash Library (Beta 1) 2010/03/06 19:26:14 (permalink)
    0
    So what sort of speed are we talking here for read and write functions?

    I'd like to implement a Lexmark CF 300x - but I guess that's doubtful
    #17
    MattBicknell
    New Member
    • Total Posts : 1
    • Reward points : 0
    • Joined: 2010/03/30 21:13:42
    • Location: 0
    • Status: offline
    RE: Compact Flash Library (Beta 1) 2010/03/30 21:47:53 (permalink)
    0
    Thanks for the compact flash library attched fille and this will support to the new system.

    Flash Cards


    post edited by MattBicknell - 2010/03/30 21:54:45
    #18
    Jump to:
    © 2017 APG vNext Commercial Version 4.5