Tool/software: Code Composer Studio
Hello
Two TMS570 cpu,use mibspi communication.
A.master
B.slave.
USE four lines.cs somi mosi clk
now A CODE
~~~~~~~~~~~~~~~~~~~~~~
mibspiSetData()
mibspiTransfer();
while(mibspiIsTransferComplete(mibspiREG1, 0) == FALSE);
mibspiGetData();
~~~~~~~~~`
B CODE
mibspiSetData
mibspiTransfer();
while(mibspiIsTransferComplete(mibspiREG1, 0) == FALSE)
{
Delay_times++;
DELAY_US(10);
//TIME OUT
if(Delay_times>5000)
{
//}
}
mibspiGetData();
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
now commucation no problem.
NOW Slave cpu wait master cpu, I want to two cpu Synchronize.master I also want to wait slave .so I use ena (five lines), but master dont wait slave .
How can I achieve code synchronization, and the master also wait slave.
Best