Texas Instruments TMS320C64x DSP Reference Manual page 295

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

Advertisement

/* enable three EDMA channels
EDMA_enableChannel(hEdmaVPDispY);
EDMA_enableChannel(hEdmaVPDispCb);
EDMA_enableChannel(hEdmaVPDispCr);
}
/*––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
/* Function : configVPDispEDMAChannel
/*
/* Input(s) :
edmaHandle
/*
eventId
/*
tccNum
/*
srcAddr
/*
dstAddr
/*
frameCount
/*
elementCount
/*
/* Output(s):
edmaHandle
/*
tccNum
/*
/*
/* Description : Configures the given VP display EDMA channel.
/*
The destination address update is fixed because
/*
the displayed data is write to the FIFO.
/*
In this example, the source address mode is
/*
auto–increment. But, in real–time applications
/*
there is lot of flexibility in the way display
/*
buffers can be managed like ping–pong and round
/*
robin, etc.
/*––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
void configVPDispEDMAChannel(EDMA_Handle *edmaHandle,
{
Int32 tcc = 0;
/* Open Y event EDMA channel
*edmaHandle = EDMA_open(eventId, EDMA_OPEN_RESET);
if(*edmaHandle == EDMA_HINV)
test_exit(FAIL);
/* allocate TCC for Y event
if((tcc = EDMA_intAlloc(–1)) == –1)
test_exit(FAIL);
SPRU629
Example 2: Noncontinuous Frame Display for 525/60 Format
– pointer to EDMA handle.
– EDMA eventId.
– pointer to transfer complete number.
– source address for EDMA transfer.
– destination address for EDMA transfer */
– frame count.
– element count(32–bit element size).
– edma Handle of the given event.
– transfer complete code for the given
event.
Int32 eventId, Int32 *tccNum,
Uint32 srcAddr, Uint32 dstAddr,
Uint32 frameCount, Uint32 elementCount)
Video Port Configuration Examples
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
A-19

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tms320c6000

Table of Contents