Handling Fifo Overrun Condition In Raw Data Mode; Capturing Data In Tsi Capture Mode - Texas Instruments TMS320C64x DSP Reference Manual

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

Advertisement

3.11.1 Handling FIFO Overrun Condition in Raw Data Mode

In case of a FIFO overrun, the COVRx bit is set in VPIS. This condition initiates
an interrupt to the DSP, if the overrun interrupt is enabled (setting the COVRx
bit in VPIE enables overrun interrupt).
The overrun interrupt routine should set the BLKCAP bit in VCxCTL and it
should reconfigure DMA channel settings. The DMA channel must be reconfi-
gured for capture of the next frame since the current frame transfer failed. Set-
ting the BLKCAP bit flushes the capture FIFO and blocks DMA events for the
channel. As long as the BLKCAP bit is set, the video capture channel ignores
the incoming data but the internal data counter continues counting.
The BLKCAP bit should be cleared to 0 in order to continue capture. Clearing
the BLKCAP bit takes effect in the subsequent frame after a raw data sync
period is detected on CAPENx. (DMA events are still going to be blocked in
the frame in which the BLKCAP bit is cleared.)

3.12 Capturing Data in TSI Capture Mode

In order to capture data in TSI capture mode, the following steps are needed:
1) Set VCASTOP1 to specify size of a data packet to be captured (VCXSTOP
2) Write to VCxTHRLD to set the capture threshold to the data packet size.
3) Configure a DMA channel to move data from YSRCA to a destination in
4) Write to TSICTL to:
5) In Sigma-Delta peripheral:
SPRU629
Capturing Video in Raw Data Mode / Capturing Data in TSI Capture Mode
sets the lower 12 bits and VCYSTOP sets the upper 12 bits of the data
packet).
Every time the number of received bytes reaches the number specified by
the VCTHRLD1 bits, a YEVTx is generated by the video capture module.
the DSP memory. The channel transfers should be triggered by the
VIDEVTA. The size of the transfers should be set to the data packet
size + 8 bytes of timestamp information. The DMA must start on a double-
word boundary and move an even number of words.
-
Set TSI capture mode (TCMODE = 0 for parallel data, 1 for serial data)
-
Select counter mode (TCMODE)
-
Enable error packet filtering (ERRFILT) if desired
-
Write to the SDCTL register to set the precision for the Sigma Delta
module.
-
Write to the SDDIV register to set the divider value Sigma Delta inter-
polation frequency.
Capturing Data in TSI Capture Mode
Video Capture Port
3-47

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tms320c6000

Table of Contents