bishopd
Newbie level 1
microsd spi
I am interfacing a MCU to a microSD / transflash card using the SPI bus, but ran into some problems. I start by sending 160 clock with the chip select de-asserted (high) and the asserted the chip select and send CMD0 and correctly got the reponse 0x01. I then followed up by sending a CMD1 to take the card out of idle mode, but the idle bit is still set when I get the reponse 0x01. I then send another CMD1 to try to get the idle bit set to 0, and card stops talking. I have also tried send CMD55 and the ACMD41, but it does the same. I noticed the current draw is raised from ~1mA to ~20mA when I send the CMD1. Sending any command will again drop the current to ~1mA. Any ideas on what I am doing wrong????
I am interfacing a MCU to a microSD / transflash card using the SPI bus, but ran into some problems. I start by sending 160 clock with the chip select de-asserted (high) and the asserted the chip select and send CMD0 and correctly got the reponse 0x01. I then followed up by sending a CMD1 to take the card out of idle mode, but the idle bit is still set when I get the reponse 0x01. I then send another CMD1 to try to get the idle bit set to 0, and card stops talking. I have also tried send CMD55 and the ACMD41, but it does the same. I noticed the current draw is raised from ~1mA to ~20mA when I send the CMD1. Sending any command will again drop the current to ~1mA. Any ideas on what I am doing wrong????