I'm trying to use SPI to connect an MSP430f2254 with a TMS320F28379s. I am using the MSP as my Master and the TMS as my Slave. I have already been able to transmit data from the MSP to the TMS however I have been unable to do the opposite. Even when I use an external function generator to make a clock and select line input to the TMS there is still no data out from the SPISOMI line. When doing this I see in the debugger (using CCS 6.0) that the data I want to send is sitting in the TXBUF but has not been moved over to the DAT register. Below is my SPI setup code:
//Configure GPIO MUX for SPI
GpioCtrlRegs.GPAMUX2.bit.GPIO16= 0b01;
GpioCtrlRegs.GPAMUX2.bit.GPIO17= 0b01;
GpioCtrlRegs.GPAMUX2.bit.GPIO18= 0b01;
GpioCtrlRegs.GPAMUX2.bit.GPIO19= 0b01;
GpioCtrlRegs.GPADIR.bit.GPIO17 = 1;
//CONFIGURE SPI REGISTERS
SpiaRegs.SPICCR.bit.SPISWRESET = 0;
SpiaRegs.SPICTL.bit.MASTER_SLAVE = 0; //Slave
SpiaRegs.SPICCR.bit.CLKPOLARITY = 0;
SpiaRegs.SPICTL.bit.CLK_PHASE = 1;
SpiaRegs.SPICCR.bit.SPICHAR = 7; //7 bit
SpiaRegs.SPISTS.bit.OVERRUN_FLAG = 0;
SpiaRegs.SPISTS.bit.INT_FLAG = 0;
SpiaRegs.SPICTL.bit.TALK = 1;
SpiaRegs.SPICTL.bit.SPIINTENA = 1;
SpiaRegs.SPICCR.bit.SPISWRESET = 1;
Any help is appreciated, thanks!