Dear all ,
Iam trying to transfer the data from a master to slave and receive the data from salve , i gone through the below code , i tried to make it for the slave receive but iam not able to do it , please help me to get this .
*pPORTG_FER =Px8 | Px9 | Px10|Px11;
*pPORTG_MUX = 0x00;
*pSIC_IMASK1 = 0x80;
*pSPI1_CTL &= (~SPE);
*pSPI1_FLG |= (FLS1|FLG1);
*pSPI1_BAUD = 6;
*pSPI1_CTL = MSTR | SIZE | CPOL | TDBR_CORE;
*pSPI1_CTL |= SPE; // enable SPI
if i want to configure the receive part from the spi how do i do that .
Thanks and regards