musfiq
Newbie level 6
friends,
i am having severe problems with reading (and writing) from sdcard. i am using SD bus mode for communication with the sdcard and NOT using any sort of scard-controller for that.
now i have successfully intialized the sdcard with ACMD41 (with OCR = 0x80FF8000 ), got the RCA and selected the card for data transfer. Now the card is on TRAN state. i have checked the card state by CMD13. everything till now is ok. but...
problem is that the DAT0 pin is always '0' (ie, LOW). so i am not getting the proper start bit '0' to synchronize the data blocks that the card is sending to the host (my code). According to SanDisk product manual v1.9, there must be a stream of '1' when i have issued read command (CMD18) and getting the response. unfortunately, my DAT0 pin is always '0'. but analysing the response packet i have found that there is no error and the state transition is happening according to the documentation (TRAN --> DATA --> TRAN).
another point... i am reading data from address 0x00000000.
can anyone tell my why my DAT0 pin is '0' all the time ? is there any specific configuration for the DAT0 pin ? (i haven't done any configuration for the CMD pin and it worked as i expected)
one more thing, the DAT0 pin is always low '0' even when the initialization was going on. ie, since power-on, i have never got '1' on DAT0 pin.
thank u
i am having severe problems with reading (and writing) from sdcard. i am using SD bus mode for communication with the sdcard and NOT using any sort of scard-controller for that.
now i have successfully intialized the sdcard with ACMD41 (with OCR = 0x80FF8000 ), got the RCA and selected the card for data transfer. Now the card is on TRAN state. i have checked the card state by CMD13. everything till now is ok. but...
problem is that the DAT0 pin is always '0' (ie, LOW). so i am not getting the proper start bit '0' to synchronize the data blocks that the card is sending to the host (my code). According to SanDisk product manual v1.9, there must be a stream of '1' when i have issued read command (CMD18) and getting the response. unfortunately, my DAT0 pin is always '0'. but analysing the response packet i have found that there is no error and the state transition is happening according to the documentation (TRAN --> DATA --> TRAN).
another point... i am reading data from address 0x00000000.
can anyone tell my why my DAT0 pin is '0' all the time ? is there any specific configuration for the DAT0 pin ? (i haven't done any configuration for the CMD pin and it worked as i expected)
one more thing, the DAT0 pin is always low '0' even when the initialization was going on. ie, since power-on, i have never got '1' on DAT0 pin.
thank u