sorry, by mistake i have posted same in other thread also....
I am using pic18lf452 to write image data(HEX) on MMC and then read back.
MCC 18 platform is used while ICD 2 is used for programming.
I have simulated code on PROTEUS and its working. But on hardware I am facing the problem.
pic and mmc communicating in SPI mode.
MMC is accepting cmd0(reset) and cmd1(initialization), but not other cmds. I am sending cmd16 after cmd0&1 to set block length but every time i get a timeout.
I have used voltage divider to bring 5v of pic to 3.3v for mmc.
If anybody has any idea regarding this please post.
Thanks in advance.
I am using pic18lf452 to write image data(HEX) on MMC and then read back.
MCC 18 platform is used while ICD 2 is used for programming.
I have simulated code on PROTEUS and its working. But on hardware I am facing the problem.
pic and mmc communicating in SPI mode.
MMC is accepting cmd0(reset) and cmd1(initialization), but not other cmds. I am sending cmd16 after cmd0&1 to set block length but every time i get a timeout.
I have used voltage divider to bring 5v of pic to 3.3v for mmc.
If anybody has any idea regarding this please post.
Thanks in advance.