Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to know if the Compact Flash is full ?

Status
Not open for further replies.

Tulkas

Member level 4
Joined
May 30, 2002
Messages
70
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,286
Activity points
646
compactflash question

How can I know when the compactflash is full?. If i wait for an error in the status register (because sectors after last sector not exist) it appears a lot of sectors after last sector.

sorry for my english

thanks.
 

Re: compactflash question

hi,
basically u should check the size of the CF card by reading the CID/CSD regs and ur driver should be able to detect a chang in the chang in the card , thus when u initilise u should always keep the data limit in ur buffer , thus by s/w u should determine the max size of it.
and Dont do what u are doing as when writing a file u should know earlier how much data space is free and only then copy the data into th CF card or else u'll end up erasing the same "HALF file" data u had written and later discovered, wont fit...
i hope u've got the point.. :)
sam
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top