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

SPI Microsd PCB layout - pull-up resistor

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



Joined: 09 May 2020
Posts: 126

View user's profile Send private message

SPI Microsd PCB layout - pull-up resistor
PostPosted: Tue Apr 04, 2023 9:05 am     Reply with quote

Hi,

I'm actually using a microsd (SDHC, 32GB) in SPI mode (using PIC18F device).
I have 51K pull-up resistors on MOSI, MISO, CS.
I connected DAT1 and DAT2 to GND.

Is this hw configuration correct ?
I read that also DAT1 and DAT2 should be connected to supply via pull-up resistors.

If I leave them connected to GND, could I experience any problems ?

Regards,

Marco
Ttelmah



Joined: 11 Mar 2010
Posts: 19539

View user's profile Send private message

PostPosted: Wed Apr 05, 2023 3:05 am     Reply with quote

Directly connecting any signal to ground, that may at times output, is
a sure way 'long term', to cause problems.
When running in one bit SPI mode, DAT1` and DAT2, can both output
signals. DAT2 can be the read/wait signal, and DAT1 can be an interrupt
output. It only takes a mode where these are enabled to occur, or these
to momentarily enable on a different make of card during the wake-up,
for a direct connection to result in disaster.
The specification says:
"It is the responsibility of the host designer to connect external
pullup resistors to all data lines even if only DAT0 is to be used".
Marco27293



Joined: 09 May 2020
Posts: 126

View user's profile Send private message

PostPosted: Wed Apr 05, 2023 3:15 am     Reply with quote

Hi Ttelmah,

which specification do you refer ?

Could you give me a pdf or a link to it ?

Regards,

Marco
Ttelmah



Joined: 11 Mar 2010
Posts: 19539

View user's profile Send private message

PostPosted: Wed Apr 05, 2023 3:39 am     Reply with quote

www.sdcard.org

They charge for the full specification, but do a cut down version you should
be able to access. The quote is from version 3 of the full specification.
Marco27293



Joined: 09 May 2020
Posts: 126

View user's profile Send private message

PostPosted: Wed Apr 05, 2023 3:51 am     Reply with quote

Could you give me a direct link for download ?

Or at least the full name of the required doc.

I did not find it...
Ttelmah



Joined: 11 Mar 2010
Posts: 19539

View user's profile Send private message

PostPosted: Wed Apr 05, 2023 4:04 am     Reply with quote

No. As I said, they charge for the full specification. There are cut down
versions from other people. I think National Semi, and Samsung both
do a simplified SD card specification sheet.
jeremiah



Joined: 20 Jul 2010
Posts: 1354

View user's profile Send private message

PostPosted: Wed Apr 05, 2023 9:24 am     Reply with quote

Simplified specifications based on a quick google search:
https://www.sdcard.org/downloads/pls/
Ttelmah



Joined: 11 Mar 2010
Posts: 19539

View user's profile Send private message

PostPosted: Wed Apr 05, 2023 9:42 am     Reply with quote

If he pulls section E1 from there, and looks at page 59, you have the
same message. "All hosts shall provide pull-up resistors on all data lines".
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