I am currently working on a project where i have to interface PIC to Multi media card. My goal is to save a file in the MMC using the pic. I am a beginner in PIC programming and I have a hard time writing the program that will suit for my project. Any suggestions for the program?
By the way, I will be using PIC16F877 and CCS Compiler IDE version 3.212.
Other Specifications of my project:
UART Communication between PIC and MMC
thanks a lot...
ckielstra
Joined: 18 Mar 2004 Posts: 3680 Location: The Netherlands
Posted: Tue May 08, 2007 2:42 am
Quote:
UART Communication between PIC and MMC
This doesn't sound right. Use SPI to communicate from PIC to MMC. Use the UART to communicate from PIC to a PC.
Save yourself a lot of troubles by upgrading the PIC16 to a PIC18. The MMC card has to be written in blocks of 512 bytes and PIC16 processors don't have that amount of RAM (reading is no problem as this can be done per byte ). Ofcourse there are possible tweaks to use a PIC16 with MMC cards but why start a new project with such a large handicap?
Consider using an LF-version PIC as the MMC cards work at 3.3V or lower. The interface to the PIC will be a lot easier when the PIC is running at the same voltage.
More recent versions of the CCS compiler do include an MMC driver (v3.226 is the oldest version I have installed and has this driver).
Last tip: use the search function of this forum and search for MMC, this topic has been discussed many times before including schematics and example code.
eceeng
Joined: 07 May 2007 Posts: 8
Posted: Tue May 08, 2007 3:29 am
thanks...
eceeng
Joined: 07 May 2007 Posts: 8
follow up
Posted: Tue May 08, 2007 10:10 pm
thank you very much for the information. anyone who can help me write the program using ccs compiler?
thanks guys..
ckielstra
Joined: 18 Mar 2004 Posts: 3680 Location: The Netherlands
Posted: Wed May 09, 2007 2:16 am
In your other post you mention you are using a DOSonCHIP module, this is a complete different setup. Use of a UART and a PIC16 processor are than no problem.
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