×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Microcontroller for writing to Compact Flash cards

Microcontroller for writing to Compact Flash cards

Microcontroller for writing to Compact Flash cards

(OP)
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

RE: Microcontroller for writing to Compact Flash cards

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.

RE: Microcontroller for writing to Compact Flash cards

(OP)
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

RE: Microcontroller for writing to Compact Flash cards

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.

RE: Microcontroller for writing to Compact Flash cards

go check www.armanet.com they a a cf wirt pic interface

RE: Microcontroller for writing to Compact Flash cards

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?

RE: Microcontroller for writing to Compact Flash cards

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?

RE: Microcontroller for writing to Compact Flash cards

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??

RE: Microcontroller for writing to Compact Flash cards

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.

RE: Microcontroller for writing to Compact Flash cards

(OP)
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

RE: Microcontroller for writing to Compact Flash cards

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.

RE: Microcontroller for writing to Compact Flash cards

(OP)
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:

http://www.sandisk.com/pdf/oem/ProdManualMMCv5.2.pdf

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

RE: Microcontroller for writing to Compact Flash cards

It looks like my problem was the 512 byte buffer in the CF. I was only writing 511 bytes. Thanks for your help though.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources