Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
10/24/08 21:50
Read: times


 
#159333 - More comments
Responding to: ???'s previous message
2) Yes, I know SPI is synchronous. But I have to assume one of two things. You either added the delay because you considered it needed. Or you added it because you thought it looked neat. If you do need the delay, then modify the delay function so it can be trusted on different compilers (or compiler versions) or with different optimization levels. If you added the delay just for fun - remove it and run full-speed.

6) Ouch. Hard to read the code when unknown parts gets lost in the translation.

7) Are your code to wait for the response correct? You check if the response is =1. Shouldn't you first write 0xff and get back a 0xff, and then write one more 0xff and get back an answer with most significant bit zero and the other flags representing the status?

8) What voltage to you have on your signals?

9) Are the signals looking distinct on the scope?

List of 12 messages in thread
TopicAuthorDate
bit banged spi on ds89C420 for sd card            01/01/70 00:00      
   Some notes about the code            01/01/70 00:00      
      some more details            01/01/70 00:00      
         Have you found the "real" specification?            01/01/70 00:00      
            Keil logic analyzer            01/01/70 00:00      
               GIGO - verify with the so-called standard            01/01/70 00:00      
                  I agree !            01/01/70 00:00      
         More comments            01/01/70 00:00      
            some answers            01/01/70 00:00      
               Have you considered....            01/01/70 00:00      
                  3V3 to 5V is easily accomplished ..            01/01/70 00:00      
               To Show My Point            01/01/70 00:00      

Back to Subject List