Reply by MOHD AFZAL October 29, 20052005-10-29
Hi,
In my application SPORT is ruuning at 48KHz and i am sending a block
of Data(12 samples in one frame),
DMA is configured in descriptor mode, it counts 12 sample and
transfer to CODEC which is also running at 48K HZ and after each
sample tranfer it should generates an interrrput
and goes in ISR routine to calculates samples. and loop keep on
going!

#pragma ghs section text =".l1_code"
EX_INTERRUPT_HANDLER(Sport0_TX_ISR)
{

----
CODE
----

}
and my dma config is:

*pDMA2_PERIPHERAL_MAP = 0x2000;
*pDMA2_CONFIG = Config;
*pDMA2_START_ADDR = (void **)chan->ulBufA;
*pDMA2_NEXT_DESC_PTR = ddpB;
*pDMA2_X_COUNT = 24;// 12 sample for each left and right
*pDMA2_X_MODIFY = 4;

as per the above confugration interrupt should occure at every 4KHz
(250 micro sec)
but i am gerting interrupt at every 5.1 kHz( 194 micro sec)
my question is how do i fix the interrupt rate so that DMA should
generatee interrupt at every 4kHZ( 250 micro sec)
Kindly suggest me solution for this.

Thanks & Regards,
Mafzal

Thanks and Regards
MAfzal