View Single Post
  #5 (permalink)  
Old 04-09-2006, 12:08 AM
[email protected]
Guest
 
Posts: n/a
Default Re: Accessing compact flash?????????


Ray Andraka wrote:
> [email protected] wrote:
>
> > Hi Ray
> > im using CF for only Mass storage
> > it does not have to be read by PC
> > the problem is to address a particular sector
> > will LBA make it easier to address?
> > how do i do this addressing?
> > how does this thing work?
> >

>
> LBA makes it easier. Basically you give it a sector number, which is an
> address to one of the sectors. It will access one sector at at time,
> each sector is 512 bytes, presented two bytes at a time. In order to be
> successful accessing it you really have to pick up the Compact Flash
> specification and study that. I can't adequately describe the interface
> in a post. You'll need either a state machine or a small
> microcontroller to sequence the commands to it. For basic access,
> you'll need at least the identify, read sector and write sector commands.



Thanks, that helps

i have already gone through CF spec
but one thing tht troubles me is this

lets suppose there are some files already in a compact flash
im trying to read those files
how will i know at which adresss or at which sector number or LBA is
tht particular file???
once i know tht particular LBA
i can acceess using read sector commmand
But how will i knw which Sector is tht particular file????

Reply With Quote