Debasis Swain
Member level 2
- Joined
- Feb 2, 2013
- Messages
- 52
- Helped
- 10
- Reputation
- 20
- Reaction score
- 10
- Trophy points
- 1,288
- Activity points
- 1,606
Dear friends,
from last 15 days i am trying to initialize an SD memory with AT89S8252(11.0592mhz) using SPI communication but there is no result.My logics are given below
1- spcr=52h
2- CS lines to logic value 1
3- Toggle SD CLK for at least 80 cycles.
4-CS low
5- send CMD0 with complete frame (40h, 00h, 00h, 00h, 00h, 95h)
6-Then toggle SD CLK for 8 cycle
7- then check the response by spdr=01h or not, if not
8- then toggle SD CLK for 8 cycle and check again for the response(01h)
and continue this process up to 64 clk cycle and check the response after every 8 clk cycle but there no response.
Any body can give suggestion for this.
from last 15 days i am trying to initialize an SD memory with AT89S8252(11.0592mhz) using SPI communication but there is no result.My logics are given below
1- spcr=52h
2- CS lines to logic value 1
3- Toggle SD CLK for at least 80 cycles.
4-CS low
5- send CMD0 with complete frame (40h, 00h, 00h, 00h, 00h, 95h)
6-Then toggle SD CLK for 8 cycle
7- then check the response by spdr=01h or not, if not
8- then toggle SD CLK for 8 cycle and check again for the response(01h)
and continue this process up to 64 clk cycle and check the response after every 8 clk cycle but there no response.
Any body can give suggestion for this.