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.

TMS570LS1227: How to clear the TGINTFLG Flag in MibSPI

Part Number: TMS570LS1227

Hello

I'm using the TMS570 as a SPI slave. I'm using the TG0 (transfer Group 0) in the MibSPI1.

The pattern I've used is

1) mibspiSetData

2) mibspiTransfer

3) while (!(mibspiIsTransferComplete(mibspiREG1,0))));

4) mibspiGetData

5) mibspiREG3->TGINTFLG |= 0x00010000U;

Is that correct? Do I need to specify step 5

mibspiREG3->TGINTFLG |= 0x00010000U;

in this way?

Best regards,

  • Hello,
    Yes, you can clear Transfer-group interrupt flag ( INTFLGRDY[n] ) in two ways - by writing 1 to corresponding bit in TGINTFLG register ( for example bit 16 is for TG0 ) or by reading interrupt vector registers TGINTVECT0 or TGINTVECT1.

    Best regards,
    Miro