DSPRelated.com
Forums

can DMA PPI interrupt occur after receiving 10 frames of entire video....

Started by mall...@yahoo.co.in September 7, 2008
Hi!

I just have a small doubt.....
i want to receive around 10 full frames with all the control information and then
again they have to be displayed...Not at the same time at different times.......

Can i have the DMA configured to generate an interrupt after 10 frames
what i mean is:
Configure PPI for receiving entire field
#define ENTIRE_FLD 4

void Init_PPI(void)
{

//The PPI is set to receive 625 lines for each frame
*pPPI_FRAME = 625;

//PPI enabled, input mode, active video only, receive field 1&2,
//packing enabled, skipping disabled, 8bit data bus, nothing inverted
*pPPI_CONTROL = PORT_EN | FLD_SEL | PACK_EN | DLEN_8 |ENTIRE_FLD ;
}//end Init_PPI

Configure DMA for 10 fileds
#define Line_Length 1728/2
#define Frame_Length 6250

void Init_DMA_Capture(void)
{

//Target address of the DMA
*pDMA0_START_ADDR = 0x0;

//Line_Length 16bit transfers will be executed
*pDMA0_X_COUNT = Line_Length;

//The modifier is set to 2 because of the 16bit transfers
*pDMA0_X_MODIFY = 0x2;

//Frame_Length 16bit transfers will be executed
*pDMA0_Y_COUNT = Frame_Length;

//The modifier is set to 2 because of the 16bit transfers
*pDMA0_Y_MODIFY = 0x2;

//PPI Peripheral is used
*pDMA0_PERIPHERAL_MAP = 0x0;

//DMA Config: Enable DMA | Memory write DMA | 2-D DMA | Discard DMA FIFO before start | enable assertation of interrupt | NDSIZE for stop mode | Enable STOP DMA
*pDMA0_CONFIG = DMAEN | DI_EN | WNR | WDSIZE_16| DMA2D | RESTART | DI_EN;
}//end Init_DMA
i mean Y_Count*625;