This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/TMS570LS0432: MIBSPI COMMUCATION.

Part Number: TMS570LS0432


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