dear e2e
i am trying to communicate with spi1 and spi3 by polling method in tms570lc43hdk kit .
i am generated the code in halcogen by following setting :
spi1 - master spi3 - slave ;
1) Driver TAB
- Select SPI3
- Select SPI1
2)SPI3 TAB
- SPI3 Global SubTAB
- Uncheck Master Mode
- Uncheck Internal Clock
- SPI3 Port SubTAB
- Uncheck DIR for CS 0
3) SPI1 TAB
- Have it default
after that generating the code .
CODE COMPOSER :
in function main
- by using a spiTransmitData() function , sending 16 word data
- for reciving i am using spiReceiveData() function
i that function code struck in the below loop
while((spi->FLG & 0x00000100U) != 0x00000100U)
{
}
could you please tell the reason why 8th bit not setting in the spiREG3->FLG. register .