Hello Dear friends
I am interfacing with MMC card with CC2530 and used SPI on PORT0 at atlernate -1 position with USART1
when Debug code, I found that cursur keep waiting on SPI_WAIT_RXRDY0(); function in below SPI_Tranfer_Byte(0xFF);
my code for transferring data with mmc card is below :
unsigned char SPI_Transfer_Byte(unsigned char byte)
{
unsigned char received_byte=0x00;
//SPDR=byte;
SPI_TX0(byte);
//while(!(SPSR & (1<<SPIF)));
SPI_WAIT_RXRDY0();
received_byte=SPI_RX0();
return(received_byte);
}
Please help to resolve this issue urgently
thanks and regard