CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

MMC/SD

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
ahbaba67



Joined: 09 Apr 2006
Posts: 7

View user's profile Send private message

MMC/SD
PostPosted: Sun Apr 09, 2006 3:58 pm     Reply with quote

My thesis is a mobil meteorology station. I need to writing a data in MMC or SD card. Can you help me this problem. But I can write a data in text file(.txt or .dat) form in MMC or SD card.

Note: I use a PIC16F877A.

Thanks a lot.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Apr 09, 2006 4:33 pm     Reply with quote

Just go over to the Code Library forum and look for MMC code that's
posted there. There's a entry for a FAT file system for MMC.
Here's a link to the forum:
http://www.ccsinfo.com/forum/viewforum.php?f=2
ahbaba67



Joined: 09 Apr 2006
Posts: 7

View user's profile Send private message

PostPosted: Sun Apr 09, 2006 4:51 pm     Reply with quote

Do you know another MMC/SD card circuits and programs.

Thank you
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Tue Apr 11, 2006 1:12 am     Reply with quote

The PIC16F877A is a bad choice to use as a processor in combination with an MMC card because of the small memory of this processor. Writing data to an MMC card can only be done in blocks of 512 bytes which is a problem with the 384 bytes of RAM in the PIC16F877A. Some people have found workarounds for the memory limitation by first storing the data in an external memory like FRAM but this will make your design more expensive, more complex and not compatible to standard available driver software.

Reading data from the MMC (MP3 players, etc.) is no problem as this can be done in block sizes from 1 byte upwards.

Save yourself a lot of problems and use a processor with more RAM memory, preferably 1k byte or more.
ahbaba67



Joined: 09 Apr 2006
Posts: 7

View user's profile Send private message

PostPosted: Tue Apr 11, 2006 3:35 am     Reply with quote

then which do you choose a Pic in your project. Can you help me?
asmallri



Joined: 12 Aug 2004
Posts: 1634
Location: Perth, Australia

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Tue Apr 11, 2006 4:03 am     Reply with quote

I suggest you look at the PIC18F4620. It is electrically pin compatible with the PIC16F877 so no hardware changes are required. I use the PIC18F2620 (28 pin version of the PIC18F4620) but also use a FRAM because I require high speed buffering of incoming data and the need to maintain multiple open files concurrently.
_________________
Regards, Andrew

http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!!
SLo
Guest







PostPosted: Tue Apr 11, 2006 1:07 pm     Reply with quote

Be careful with the electrically pin compatible statement, there are some differences such as the available A to D pin combinations and the removal of the open drain output pin. Generally Microchip are good at making devices pinout interchangable, but it always pays to compare the datasheets.

Steve.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group