Texas Instruments TMS320C64x DSP Reference Manual page 282

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

Advertisement

Example 1: Noncontinuous Frame Capture for 525/60 Format
/* –––––––––––––– */
/* enable capture */
/* –––––––––––––– */
/* set VCEN bit to enable capture
VP_FSETH(vpCaptureHandle, VCACTL, VCEN, VP_VCACTL_VCEN_ENABLE);
/* clear BLKCAP in VCA_CTL to enable capture DMA events
VP_FSETH(vpCaptureHandle, VCACTL, BLKCAP,
VP_VCACTL_BLKCAP_CLEAR);
}
/*–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
/* Function
: VPCapChaAIsr
/* Description : This capture ISR clears FRMC to continue capture
/*
in this non–continuous mode and also clears other */
/*
status bits.
/*–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
interrupt void VPCapChaAIsr(void)
{
Uint32 vpis = 0;
/* Get video port status register value
vpis = VP_RGETH(vpCaptureHandle, VPIS);
if(vpis & _VP_VPIS_CCMPA_MASK) /* capture complete
{
/* Clear frame complete bit in VCX_CTL to
/* continue capture in non–continuous mode
VP_FSETH(vpCaptureHandle, VCASTAT, FRMC,
/* Clear CCMPA to enable next frame complete
/* interrupts
VP_FSETH(vpCaptureHandle, VPIS, CCMPA,VP_VPIS_CCMPA_CLEAR);
capChaAFrameCount++;
}
if(vpis & _VP_VPIS_COVRA_MASK) /* overrun error
{
capChaAOverrun++;
VP_FSETH(vpCaptureHandle, VPIS, COVRA,VP_VPIS_COVRA_CLEAR);
}
if(vpis & _VP_VPIS_SERRA_MASK) /* synchronization error
{
capChaASyncError++;
VP_FSETH(vpCaptureHandle, VPIS, SERRA,VP_VPIS_SERRA_CLEAR);
}
A-6
Video Port Configuration Examples
VP_VCASTAT_FRMC_CLEAR);
/* increment captured frame count
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
SPRU629

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tms320c6000

Table of Contents