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

What am I doing wrong? - Connect SD card to PIC
Goto page Previous  1, 2, 3
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
stoyanoff



Joined: 20 Jul 2011
Posts: 375

View user's profile Send private message

PostPosted: Tue May 01, 2012 9:21 am     Reply with quote

It`s not 3 to 5. 18F66J60 works on 3.3V.
I connected PIN_C2(33) to pin 1 of the SD card through pull up resistor.
PIN_C3(34) => pin 5
PIN_C4(35) => pin 7
PIN_C5(36) => pin 2
PINs 3 and 6 of the card to GRD. PIN 4 to Vcc. Pins 8 and 9 through pull up to Vcc.
I think this must be fine.
Ttelmah



Joined: 11 Mar 2010
Posts: 20161

View user's profile Send private message

PostPosted: Tue May 01, 2012 9:29 am     Reply with quote

You need pull up resistors on the CS line, and the data_out line as well. Also pin 12 on the SD card (/WP), or you won't be able to write....
GND should go to pins 3,6,11,13, and to the shield pins.

Best Wishes
stoyanoff



Joined: 20 Jul 2011
Posts: 375

View user's profile Send private message

PostPosted: Tue May 01, 2012 10:36 am     Reply with quote

I have pull-ups on 5, 2 and 7. I didn't connect pins CD, COM and WP. I didn't think I need them because the sd card has only 9 pins. I'll connect them and see what's going to happen.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2, 3
Page 3 of 3

 
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