I want to write MMC library . But I have a problem at the beginning . In this code the first level or reset MMC (GO_IDLE_STATE) is successful and MMC return 0x01.but in next level or SEND_OP_COND MMC return 0xFF instead 0x00. Where is the problem? My Compiler is 4.057 and proteus 6.9 here is the like of code and proteus file .
The 8 retries probably are too short for some commands.
Another thing I don't like here is that you have an assignment ('=') inside the while test. This makes your code difficult to read and is difficult to step through with a debugger. Another way to write the same code is:
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum