Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > PSoC® Software > SD CARD INTERFACE + psoc creator

Bookmark and Share
Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



SD CARD INTERFACE + psoc creator
Moderator:
JFMD

Post Reply
Follow this topic



SD CARD INTERFACE + psoc creator

arvindramana posted on 29 Mar 2010 12:57 AM PST
Member
3 Forum Posts
Hi Guys,
Am trying to interface an SD Card to PSOC3.Using the PSOC Creator software.
The hardware connections are correct.

Am reproducing the same waveform pattern using the SPI Module in the software.Yet the MISO stays low...no response to any of the SPI commands...

Here is my code snippet...

/////////////////////////////////////////////////////////////////////////////////////////////////////////////
SPIM_1_Start();
for(i=0;i<10;i++)
{
SPIM_1_WriteByte(0Xff); //74 clocks
}
Pin_1_Write(0); ////make cs low
SPIM_1_WriteByte(0X40); ///CMD0
for(i=0;i<8;i++)
{
SPIM_1_WriteByte(0Xff); //64 clocks
}
SPIM_1_WriteByte(0X95);
for(i=0;i<4;i++)
{
SPIM_1_WriteByte(0Xff); //8x clocks
}
SPIM_1_WriteByte(0Xff); //8 clocks//data out must be here
Pin_1_Write(1); ////make cs high

/////////////////////////////////////////////////////////////////////////////////////////////////////////////

No clue whats wrong...
please guide


Re: SD CARD INTERFACE + psoc creator

victoraargote posted on 30 Mar 2010 08:47 PM PST
Top Contributor
26 Forum Posts
I have not work with sd cards, but im interested... I just know that some sd cards doesnt support SPI mode, have you check this? If you have some sucess let us know.

Thanks,
Victor Andres

Re: SD CARD INTERFACE + psoc creator

aj posted on 28 Feb 2011 09:35 PM PST

1 Forum Post

Hi MDM .. Did u able to find out the issue with the sd card interface. I am new to PSoC and I am als o facing the same issue with the interface.



Re: SD CARD INTERFACE + psoc creator

Gautam Das posted on 07 Mar 2011 04:26 AM PST
Cypress Employee
742 Forum Posts

Hi,

 

The SPI component in PSoC Creator has Slave Select Pin. This can be used to assert the Slave when Data is being written to it or when Data is read from it.

The MISO pin of SPI component should be unsynchronized. This can be done by unchecking the 'Input Synchronized' for the MISO pin of the SPI master.

Let us know if this helped in getting the SPI communication to work.

 

Regards,

dasg






ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Spec No: None; Sunset Owner: KXP; Secondary Owner: VWA; Sunset Date: 01/01/20