Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations MintJulep on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Microcontroller for writing to Compact Flash cards 1

Status
Not open for further replies.

ChrisKnight

Aerospace
Jun 20, 2002
13
Does anyone know of a microcontroller that can read serial input and write to a CompactFlash (CF) card ?

I would prefer some form of BASIC language but anything will do.

The card requires a 10-12 bit data rate of around 300 Hz.

Regards
Chris
 
Replies continue below

Recommended for you

Hi, almost any micro will do that, the problem is what to do with the data. There are numerous pc based solutions which would be more suitable.
 
Thanks cbarn, unfortunately I am after a portable solution, hence the need for a Compact Flash card for storage. There is also a size issue that rules out the PC based solution.

I am really just after a chip that will take the input data and store it on a CF card. I thoight there may be a chip that already has that output format so I would not have to look into the CF spec to see the writing format.

Cheers
Chris
 
Hi, it's not likely that you will find such a chip. Any micro, PIC, AVR, ect. will do such a simple task. Have you realised that the write rate to flash memory is very slow? I presume this is some kind of data logging app.
 
When writing to a memory card, using a PIC16F877 chip, is it better to operate the chip in True IDE mode or Memory mode? I am asking this because I have to download my data to the PC after everything has been stored. I know that the PC operates on True IDE mode, while the PIC would operate better on the Memmory mode. Which mode is best?
 
I'm also working with the PIC16F877 chip. I'm already set up for serial comm with the PC, is there anyway I can use the serial connection to write to a compact flash card? If not, how are these cards written and how can I interface to them without buying an adapter?
 
I want to make a design with a pic and a Cf. But I wonder how can i do to make the link between the 2 component?
Is there any drive to do this??
 
durdon,
Did you ever get your PIC and CF to work. I'm doing the same thing, and having difficulty. Mikroelektronika supply's CF routines with their board, which work great, but I'm using a different compiler. Mikroelektronika does not supply source code for their routines and I can't seem to duplicate them. I'm at my wits end. Any help would be appreciated.
 
Fetterlabs,

I had a lot more success with the PIC 16F876a (although any will do), using PicBASIC Pro and SD or MMC cards for storage. We can write 3 channels @ 100Hz each, without any difficulties.

Cheers
Chris
 
Thanks Chris,
Do the SD and MMC cards have the same initialization procedure as the CF? That seems to be where I'm having trouble.
 
I did not persevere with the CF as it required a massive number of parallel connections (about 40-50 I think) whereas the MMC and SD only have seven, of which only 2 are data lines, the rest being power, ground and clock etc.

So I dont know the initialisation procedures for the CF but certainly the SD and MMC are very easy. You send a CMD0. However the exceedingly unhelpful product manual at:


needs to be waded through. I have a BASIC program that may help you if you contact me at
chris.knight "at" defence.gov.au

Cheers
Chris
 
It looks like my problem was the 512 byte buffer in the CF. I was only writing 511 bytes. Thanks for your help though.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor