Sign in

username:

password:



Not a member?

Search adsp



Search tips

Subscribe to adsp



adsp by Keywords

AD1819 | AD7332 | ADSP-2106 | ADSP-21060 | ADSP-21065L | ADSP-2116 | ADSP-21160M | ADSP-2181 | ADSP-218x | ADSP-219 | ADSP-2199 | ADSP219 | BF531 | BF532 | BF533 | BF535 | Blackfin | FFT | JTAG | LDF | SDRAM | SHARC | SPORT | UART | VDSP++ | VisualDSP

Sponsor

NEW! TMS320C6474: 3x the performance. 1/3 the cost. Three 1 GHz cores on 1 chip.

Discussion Groups

Discussion Groups | Analog Devices DSPs | can DMA PPI interrupt occur after receiving 10 frames of entire video....

Technical discussions related to Analog Devices DSPs (including Blackfin, TigerSHARC, SHARC and ADSP-21xx DSPs).

  

Post a new Thread

can DMA PPI interrupt occur after receiving 10 frames of entire video.... - mall...@yahoo.co.in - Sep 7 8:27:18 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=10*625;

------------------------------------



(You need to be a member of adsp -- send a blank email to adsp-subscribe@yahoogroups.com )