Hi:
I have some problem of muti-spi operation.
1. the spi init configuration as following:
out of reset:three pin operation; muti-buffer enable; no delay; no interrupt; TG type of trigger event: always and one short = 1 enable group 0; enable MbiSPI1;
2. SPI-Transmit function as following:
void spiTransmitData(unsigned group)
{3414.spi.txt
unsigned short transmitData[8] = {0x1100,0x1100,0x1100,0x1100,0x1100,0x1100,0x1100,0x1100};
int i=0;
for(i=0;i<8;i++)
{
Spi_registers1.ENA = 1; /*one short = 1 so enable spi every time*/
Spi_registers1.DAT1 = transmitData[i]; -------------problem : can't write data to Spi_registers1.DAT1
while((Spi_registers1.BUF >> 29)& 1); /*wait TXFULL is zero*/
}
/*TEST TG COMPLETE*/
while((Spi_registers1.INTFLGRDY >> group) & 1);
}
the details of code : please see the attachment :