hello TI :
I want to communicate with TMS570LS1227PEG in mibspi mode.Then I observe that the master and slave can send and recive data through the oscilloscope,but the maser receive error data. I cannot find the reason, please help me.
I use TMS570 mibspi5 in mibspi mode with interrupt
master slave
MISO MISO
MOSI MOSI
CLK CLK
CS0 CS0
master send data to slave , slave recive right . but slave send data to master is wrong . eg:
//////////// slave recive data is ok
master ----------send data : 1 2 3 4 5 6 7 8 9 ----------------> 1 2 3 4 5 6 7 8 9 recive data ----slave
2 3 4 5 6 7 8 9 10 -----------------> 2 3 4 5 6 7 8 9 10
...... ......
////////// master recive data is wrong : every time reciveData[0] is laster recive data ,
slave----------send data : 1 2 3 4 5 6 7 8 9 ----------------> 0 2 3 4 5 6 7 8 9 recive data ----master
2 3 4 5 6 7 8 9 10 -----------------> 1 3 4 5 6 7 8 9 10
...... ......
/// bellow is master mibspi 5 ram rx memmory and , the rx data memmory should be 003C 003D 003E 003F . but the first data always wrong that is 003B 003C 003F . why this happend I am confused .. please help me .
master code :
slave code: