Texas Instruments TMS320C64x DSP Reference Manual page 290

Dsp video port/vcxo interpolated control (vic) port
Hide thumbs Also See for TMS320C64x DSP:
Table of Contents

Advertisement

Example 2: Noncontinuous Frame Display for 525/60 Format
/*–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
/* Function
: bt656_8bit_ncfd
/* Input(s)
: portNumber, video port number i.e. 0, 1 or 2.
/* Description : Configures given video port for 8–bit BT.656 non– */
/*
continuous frame display.
/*–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
void bt656_8bit_ncfd(int portNumber)
{
/* Open video port for display
vpDisplayHandle
if(vpDisplayHandle
test_exit(FAIL);
/* Enable video port functionality in VP Peripheral
/* Control Reg(PCR)
VP_FSETH(vpDisplayHandle , PCR, PEREN, VP_PCR_PEREN_ENABLE);
/* Set this port to display mode
VP_FSETH(vpDisplayHandle , VPCTL, DISP, VP_VPCTL_DISP_DISPLAY);
/* ––––––––––––––––––––– */
/* Enable all interrupts */
/* ––––––––––––––––––––– */
/* enable display complete interrupt
VP_FSETH(vpDisplayHandle , VPIE, DCMP, VP_VPIE_DCMP_ENABLE);
/* enable display underrun interrupt
VP_FSETH(vpDisplayHandle , VPIE, DUND, VP_VPIE_DUND_ENABLE);
/* enable video port global interrupt enable
VP_FSETH(vpDisplayHandle , VPIE, VIE, VP_VPIE_VIE_ENABLE);
/* –––––––––––––––––––– */
/* Set all other fields */
/* –––––––––––––––––––– */
/* set frame size
VP_RSETH(vpDisplayHandle , VDFRMSZ,
VP_VDFRMSZ_RMK(VD_FRM_HEIGHT, VD_FRM_WIDTH));
/* set horizontal blanking
VP_RSETH(vpDisplayHandle , VDHBLNK,
VP_VDHBLNK_RMK(VD_HBLNK_STOP, VP_VDHBLNK_HBDLA_NONE,
VD_HBLNK_START));
/* set vertical blanking start for field1
VP_RSETH(vpDisplayHandle , VDVBLKS1,
VP_VDVBLKS1_RMK(VD_VBLNK_YSTART1,VD_VBLNK_XSTART1));
/* set vertical blanking end for field1
VP_RSETH(vpDisplayHandle , VDVBLKE1,
VP_VDVBLKE1_RMK(VD_VBLNK_YSTOP1, VD_VBLNK_XSTOP1));
A-14
Video Port Configuration Examples
= VP_open(portNumber, VP_OPEN_RESET);
== INV)
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
SPRU629

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tms320c6000

Table of Contents