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 support@ccsinfo.com

ex_mmcsd : Init ok with or without card...

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



Joined: 21 Dec 2011
Posts: 42

View user's profile Send private message

ex_mmcsd : Init ok with or without card...
PostPosted: Thu Dec 22, 2011 3:01 pm     Reply with quote

Hi !

I try to connect a sdcard/mmc to a pic (pic18f4550 / CCS 4.114). For that I want use the ex.mmcsd... but I have somethings not expected.

When I call the function mmcsd_init(), she return alway ok... with or without memory card.

It's a another of ccs or I have forgotten something ?
Thanks in advance.
joseph
temtronic



Joined: 01 Jul 2010
Posts: 9178
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Thu Dec 22, 2011 3:26 pm     Reply with quote

Please provide us a schematic diagram of your system.
As well as your 'main' program.
asmallri



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

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

Re: ex_mmcsd : Init ok with or without card...
PostPosted: Thu Dec 22, 2011 5:24 pm     Reply with quote

joseph20480 wrote:
Hi !

I try to connect a sdcard/mmc to a pic (pic18f4550 / CCS 4.114). For that I want use the ex.mmcsd... but I have somethings not expected.

When I call the function mmcsd_init(), she return alway ok... with or without memory card.

It's a another of ccs or I have forgotten something ?
Thanks in advance.
joseph


I cannot speak specifically to the CCS implementation however it maybe that any response other than 0xff from the card is considered to be successful. If you do not have a pull-up resistor on DO of the SD/MMC card socket then without a card the input to the PIC is floating as a consequence the PIC may, and often will, read a non 0xff value.
_________________
Regards, Andrew

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



Joined: 21 Dec 2011
Posts: 42

View user's profile Send private message

PostPosted: Fri Dec 23, 2011 2:38 am     Reply with quote

Thanks for your reply,

I will seen my schematic and post more informations....
About your reflexion, that is the sd card not responding seem to be Ok....i'm not sure...
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