Atmega128+mmc

Status
Not open for further replies.

sminnn

New Member
Hi,
I want to use memory card in my project and connect mmc to Atmega128. I am working with CodeVision 2.05.3 so I used sdcard.h library. I want to run the example code in CodeVision. When I compile it, it seems right but when I run it in Proteus, disk init fails. In addition, when I want to configure mmc in Project|Configure|C Compiler|Libraries|MMC/SD/SD HC Card menu, it asks for two additional bits called: /CD and /WP while in Proteus there are no bits with these names in mmc. The photos of configuring menu and my Proteus simulation are attached. I would be glad if anyone could help with this problem.

Thanks in advance

 
Have you downloaded the MMC image file from the Labcenter website There are two SD images 32M and 128M..
 
I don't know about winimage. but I have used the image from the proteus forum... I don't have the AVR model so I can't help with your simulation... Incidentally.. how big is your image..
 
CD and WP are most likely card detect and write protect mechanical switches. Just tie them high or low according to your code, or comment those sections out.
 
CD and WP are most likely card detect and write protect mechanical switches. Just tie them high or low according to your code, or comment those sections out.
Thanks. I tested them with both high and low values, still it seems not working.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…