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.

TMS570LS1224: Synch VS Asynch functions FEE

Part Number: TMS570LS1224

Tool/software:

Hi,

An other questions regarding the FEE API, we have the choice to use Sync or Async function for example to Write of Read data in EEPROM.

Looking to the FEE manual, I can see that the Asynch operation needs to be followed by TI_Fee_MainFunction() :

For example : 

TI_Fee_WriteAsync(BlockNumber, &SpecialRamBlock[0]);

do
{
TI_Fee_MainFunction();
delay();
Status=TI_Fee_GetStatus(0);
}
while(Status!=IDLE);

1) What is the advantages compare to the synch functions (ex : TI_Fee_WriteSync) ? Can be interrupted by others tasks ? ,...

2 ) How much shall be the delay(); in between calls of TI_Fee_MainFunction(); ?

Thank you !

Regards,

Marc

  • Hi Marc,

    1) What is the advantages compare to the synch functions (ex : TI_Fee_WriteSync) ? Can be interrupted by others tasks ?

    Fee_WriteSync does not require extra calls. It stays until complete and other operations on the device will be on hold. The advantage of one over the other is that while an Async write is ongoing the device and perform other tasks as well where the sync takes up the primary CPU operating time to fully complete the task upon request (i.e., no background operation).

    2 ) How much shall be the delay(); in between calls of TI_Fee_MainFunction(); ?

    I don't see any specific delay value for this, so that it just depends on the application. The application can call the TI_Fee_MainFunction function at regular intervals until the job gets finished.

    --
    Thanks & regards,
    Jagadish.