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.

TMS570LS3137: SCI Multi buffer mode using DMA and BTC flag

Part Number: TMS570LS3137

Hi,

I configured SCI for Multi buffer mode of LENGTH 8 bytes and I receive 16 bytes at every 5 ms.

DMA CH-1 basic configuration:

1. TTYPE - Frame transfer

2. Frame count - 2

3. Element count - 2

4. Element src index offset - 4

5.  Element dst index offset - 4 

6. Frame dst index offset - 8

I have requirement wherein I need to wait until I receive 'first' set of 16 bytes. 

My understanding of DMA interrupt flags:

1. FTCIntFlg - This flag will be set at the end of 'every' frame and not when total frames (in my case 2 frames) are received.

2. BTCIntFlg - This flag will be set at the end of last frame ( in my case 2 frames) 

As I cannot use FTCIntFlg which gets set after receiving first frame of 8 bytes, Is it correct and safe to poll BTCIntFlg even if the Transfer Type is configured as Frame transfer and not as Block transfer.

Thanks,

Jaiganesh