Sunday, 22 January 2017

sdcard - What mode of SPI is the standard if nothing regarding the mode is mentioned in the slave datasheet?


I am trying to bit bang SPI for a SD Card, I went through this SD Card datasheet and I couldn't find any information regarding the mode that needs to be used. If I missed, please point it out.


Else what mode would be standard if nothing is mentioned? What CPOL and phase should I use?



Answer



From the datasheet you link to enter image description here


The timing diagram at 3.4.5 shows that the clock idles low (CPOL=0), and that out changes on the clock trailing edge and in gets read on the rising edge (CPHA=0), which is SPI mode 0.


No comments:

Post a Comment