EmbeddedRelated.com
Forums
Memfault Beyond the Launch

8051 Compact Flash Interface

Started by aspirina_69 August 25, 2005
Hi,

I am trying to read/write data at any sector of CF with a 8051 in 
Language.
I don't understand very well how CF works and i need to complete m
project very quickly.
I would like to know if there is anybody that could give some help (
code, for example) to communicate Compact Flash with 8051 at True ID
Mode.
Thank you very much for all attention and help

Best Regards,


Tiago Meireles



		
This message was sent using the comp.arch.embedded web interface o
www.EmbeddedRelated.com
aspirina_69 wrote:
> I am trying to read/write data at any sector of CF with a 8051 in C > Language. > I don't understand very well how CF works and i need to complete my > project very quickly. > I would like to know if there is anybody that could give some help (C > code, for example) to communicate Compact Flash with 8051 at True IDE > Mode.
Why True IDE Mode? You'd need 16-bit addressing interface... 8051 is 8-bit so memory mode would be a lot simpler. Anyways, this application note could help you for the IDE Mode part: http://www.sandisk.com/pdf/oem/AppNote80C51FlashATAv1.0.pdf - Jan
Jan Wagner wrote:
> Why True IDE Mode? You'd need 16-bit addressing interface...
(data interface) - Jan
"Jan Wagner" wrote:
> aspirina_69 wrote: > > I am trying to read/write data at any sector of CF with a 8051 in C > > Language. > > I don't understand very well how CF works and i need to complete my > > project very quickly. > > I would like to know if there is anybody that could give some help (C > > code, for example) to communicate Compact Flash with 8051 at True IDE > > Mode. > > Why True IDE Mode? You'd need 16-bit data interface... 8051 is > 8-bit so memory mode would be a lot simpler. >
There is a command that puts the card (sandisk anyway) in 8-bit mode, it is Feature register = 0x01 then Command Register = 0xEF. Ross
There's an Application full 80c51 asm example and circuit at www.sst.com who 
make Flash memory.

They used to make compact flash also but sold the division off.

JG


"aspirina_69" <aspirina_69@sapo.pt> wrote in message 
news:q9Sdnf6U0uvPapDeRVn_vA@giganews.com...
> Hi, > > I am trying to read/write data at any sector of CF with a 8051 in C > Language. > I don't understand very well how CF works and i need to complete my > project very quickly. > I would like to know if there is anybody that could give some help (C > code, for example) to communicate Compact Flash with 8051 at True IDE > Mode. > Thank you very much for all attention and help > > Best Regards, > > > Tiago Meireles > > > > > This message was sent using the comp.arch.embedded web interface on > www.EmbeddedRelated.com
>There's an Application full 80c51 asm example and circuit at www.sst.co
who
>make Flash memory. > >They used to make compact flash also but sold the division off. > >JG
I am sorry about my ignorance, but i can't find what you told me ... coul you give me the link to download that application? By the way, True IDE Mode isn't the only one that support FAT Files, fo example? What are the main differences between I/O, Memmory and True ID Mode? Thank you very much, once again Tiago Meireles (Portugal)
>"aspirina_69" <aspirina_69@sapo.pt> wrote in message >news:q9Sdnf6U0uvPapDeRVn_vA@giganews.com... >> Hi, >> >> I am trying to read/write data at any sector of CF with a 8051 in C >> Language. >> I don't understand very well how CF works and i need to complete my >> project very quickly. >> I would like to know if there is anybody that could give some help (C >> code, for example) to communicate Compact Flash with 8051 at True IDE >> Mode. >> Thank you very much for all attention and help >> >> Best Regards, >> >> >> Tiago Meireles >> >> >> >> >> This message was sent using the comp.arch.embedded web interface on >> www.EmbeddedRelated.com > > >
This message was sent using the comp.arch.embedded web interface o www.EmbeddedRelated.com
You can forget about the circuit in that app note. The parts are obsolete. 
We can find no datasheets on the parts and calls to the company/reps are met 
with 'we/they must not make that part anymore'.

On a different note, I've been looking for source code to implement FATxx on 
805x with no luck. Seems like a lot of folks think there is nothing to it---  
perhaps they are right because they've done it before. My experience though 
has not been so positive. The FAT libs provided by Xilinx had serious flaws 
(which I think are now resolved by the way), but I'm thinking to myself "if 
Xilinx SW engineers had trouble writing this code, I'm certainly not cocky 
enough to think I could do it easily or quickly"....

If anyone know where I can get either free or commercial FATxx coe for 805x, 
please post a link or code :)

Bo


"aspirina_69" <aspirina_69@sapo.pt> wrote in message 
news:rsGdnR5Sh-pbCoreRVn_vA@giganews.com...
> >There's an Application full 80c51 asm example and circuit at www.sst.com > who >>make Flash memory. >> >>They used to make compact flash also but sold the division off. >> >>JG > > I am sorry about my ignorance, but i can't find what you told me ... could > you give me the link to download that application? > > By the way, True IDE Mode isn't the only one that support FAT Files, for > example? What are the main differences between I/O, Memmory and True IDE > Mode? > > Thank you very much, once again > > > Tiago Meireles (Portugal) > > > > > > > > >>"aspirina_69" <aspirina_69@sapo.pt> wrote in message >>news:q9Sdnf6U0uvPapDeRVn_vA@giganews.com... >>> Hi, >>> >>> I am trying to read/write data at any sector of CF with a 8051 in C >>> Language. >>> I don't understand very well how CF works and i need to complete my >>> project very quickly. >>> I would like to know if there is anybody that could give some help (C >>> code, for example) to communicate Compact Flash with 8051 at True IDE >>> Mode. >>> Thank you very much for all attention and help >>> >>> Best Regards, >>> >>> >>> Tiago Meireles >>> >>> >>> >>> >>> This message was sent using the comp.arch.embedded web interface on >>> www.EmbeddedRelated.com >> >> >> > > > > This message was sent using the comp.arch.embedded web interface on > www.EmbeddedRelated.com

Memfault Beyond the Launch