Texas Instruments TMS320C64x DSP Network Card User Manual


 
Example 2: Noncontinuous Frame Display for 525/60 Format
A-13Video Port Configuration ExamplesSPRU629
/******************************************************************/
/* Description : 8bit BT.656 noncontinuous frame display */
/* */
/* Some important field descriptions: */
/* */
/* DMODE = 000, 8bit BT.656 mode */
/* CON = 0 */
/* FRAME = 1, display frame */
/* DF2 = 0 */
/* DF1 = 0, (8bit noncontinuous frame display) */
/* SCALE = 0, no scaling */
/* RESMPL = 0, no resampling */
/* DPK = X, not used in 8bit display */
/* RSYNC = X, used in Raw mode(Enable second synchronized raw */
/* data channel) */
/* RGBX = X, used in Raw mode(RGB extract enable. Perform */
/* 3/4 FIFO unpacking) */
/* VCTL1S = 00, output HSYNC */
/* VCTL2S = 00, output VSYNC */
/* VCTL3S = 0, output CBLNK */
/* HXS = 0, VCTL1 is an output */
/* VXS = 0, VCTL2 is an output */
/* FXS = 0, VCTL3 is an output */
/* PVPSYN = 0, no previous port synchronization */
/******************************************************************/
#include csl_vp.h
#include csl_edma.h
#include csl_irq.h
/*–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
/* global variable declarations */
/* ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
VP_Handle vpDisplayHandle; /* handle of vp that to be configured */
Uint8 dispYSpace[]; /* Display Ydata buffer */
Uint8 dispCbSpace[]; /* Display Cbdata buffer */
Uint8 dispCrSpace[]; /* Display Cbdata buffer */
EDMA_Handle hEdmaVPDispY;
EDMA_Handle hEdmaVPDispCb;
EDMA_Handle hEdmaVPDispCr;
Int32 edmaDispYTccNum = 0; /* EDMA tcc for Y channel */
Int32 edmaDispCbTccNum = 0; /* EDMA tcc for Cb channel */
Int32 edmaDispCrTccNum = 0; /* EDMA tcc for Cb channel */
volatile Uint32 displayFrameCount = 0; /* no of frames that are */
/* displayed */
volatile Uint32 dispUnderrun = 0; /* underrun error flag */