ADV601 AD | Alldatasheet

Document overview

  • Manufacturer or author: Provided By ALLDATASHEET.COM(FREE DATASHEET DOWNLOAD SITE)
  • PDF pages: 52

Technical content

REV. 0 Information furnished by Analog Devices is believed to be accurate and reliable. However, no responsibility is assumed by Analog Devices for its use, nor for any infringements of patents or other rights of third parties which may result from its use. No license is granted by implication or otherwise under any patent or patent rights of Analog Devices. a ADV601 Tel: 617/329-4700 World Wide Web Site: http://www.analog.com Fax: 617/326-8703 © Analog Devices, Inc., 1997 Low Cost Multiformat Video Codec FUNCTIONAL BLOCK DIAGRAM DIGITAL VIDEO I/O PORT WAVELET FILTERS, DECIMATOR, & INTERPOLATOR ADAPTIVE QUANTIZER RUN LENGTH CODER HUFFMAN CODER HOST I/O PORT & FIFO SERIAL PORT DRAM MANAGER ON-CHIP TRANSFORM BUFFER HOST ADV601 LOW COST, MULTIFORMAT VIDEO CODEC 256K X 16-BIT DRAM (FIELD STORE) DSP (OPTIONAL) DIGITAL COMPONENT VIDEO I/O

FEATURES

Precise Compressed Bit Rate Control Field Independent Compression Flexible Video Interface Supports All Common Formats, Including CCIR-656 General Purpose 8-, 16- or 32-Bit Host Interface With

512 Deep 32-Bit FIFO

Real-Time Compression Or Decompression of CCIR-601 And Square Pixel Video: 720 3 288 @ 50 Fields/Sec — PAL 768 3 288 @ 50 Fields/Sec — PAL 720 3 243 @ 60 Fields/Sec — NTSC 640 3 243 @ 60 Fields/Sec — NTSC Compression Ratios from Visually Loss-Less To 350:1 Visually Loss-Less Compression At 4:1 on Natural Images (Typical)

APPLICATIONS

Broadcast Quality Video Distribution Systems Video Insertion Equipment Image And Video Archival Systems Digital Video Tape High Quality Video Teleconferencing GENERAL DESCRIPTION The ADV601 is a very low cost, single chip, dedicated function, all digital CMOS VLSI device capable of supporting visually loss-less to 350:1 real-time compression and decompression of CCIR-601 digital video at very high image quality levels. The chip integrates glueless video and host interfaces with on-chip SRAM to permit low part count, system level implementations suitable for a broad range of applications. The ADV601 is a video encoder/decoder optimized for real-time compression and decompression of interlaced digital video. All features of the ADV601 are designed to yield high performance at a breakthrough systems-level cost. Additionally, the unique sub-band coding architecture of the ADV601 offers you many application-specific advantages. A review of the General Theory of Operation and Applying the ADV601 sections will help you get the most use out of the ADV601 in any given application. The ADV601 accepts component digital video through the Video Interface and outputs a compressed bit stream though the Host Interface in Encode Mode. While in Decode Mode, the ADV601 accepts a compressed bit stream through the Host Interface and outputs component digital video through the Video Interface. The host accesses all of the ADV601’s control and status registers using the Host Interface. An optional Digital Signal Processor (DSP) may be used for calculating quantiza- tion Bin Widths (BW) (instead of the host); the ADV601 sends current field statistics and receives Bin Width results as a packet I/O over the DSP serial port interface. A generic fixed-point DSP (for instance the ADSP-2105) is more than adequate for these calculations. Figure 1 summarizes the basic function of the part. (continued on page 2)

Figure 1. Functional Block Diagram are formed and processed as two independent fields of data. includes a 512 position, 32-bit wide FIFO for compressed video. description of the Host Interface, see the Host Interface section. the Programmable Quantizer section. 1The maximum active field size is 768 by 288. 2The maximum pixel rate is 14.75 MHz.

fixed-point DSP) is more than adequate for these calculations. pressed video stream between the host and the Huffman Coder. reordering and buffering quantizer input and output values. control information between the DSP and the Quantizer block. transforms for horizontally scanned images. ber of bits to allocate to each block (sub-band). data, encoding or decoding for more efficient Huffman coding. depending on the block being coded. cellent performance for wavelet transformed video. provide the ADV601’s data compression. Grossman in their works on geophysics during the mid 80s. stant Shape (journal citation listed in References section). Figure 2. Encode and Decode Paths Square Integrable Wavelets of Constant Shape , Siam. J. Math.

tures possible with little or no computational overhead. original image as is shown in Figure 3 (a modified Mallat Tree). ready for processing in the second block, the quantizer. BLOCK A IS HIGH PASS IN X AND DECIMATED BY TWO. BLOCK B IS HIGH PASS IN X, HIGH PASS IN Y, AND DECIMATED BY EIGHT. BLOCK C IS HIGH PASS IN X, LOW PASS IN Y, AND DECIMATED BY EIGHT. BLOCK D IS LOW PASS IN X, HIGH PASS IN Y, AND DECIMATED BY EIGHT. BLOCK E IS HIGH PASS IN X, HIGH PASS IN Y, AND DECIMATED BY 32. BLOCK F IS HIGH PASS IN X, LOW PASS IN Y, AND DECIMATED BY 32. BLOCK G IS LOW PASS IN X, HIGH PASS IN Y, AND DECIMATED BY 32. BLOCK H IS HIGH PASS IN X, HIGH PASS IN Y, AND DECIMATED BY 128. BLOCK I IS HIGH PASS IN X, LOW PASS IN Y, AND DECIMATED BY 128. BLOCK J IS LOW PASS IN X, HIGH PASS IN Y, AND DECIMATED BY 128. BLOCK K IS HIGH PASS IN X, HIGH PASS IN Y, AND DECIMATED BY 512. BLOCK L IS HIGH PASS IN X, LOW PASS IN Y, AND DECIMATED BY 512. BLOCK M IS LOW PASS IN X, HIGH PASS IN Y, AND DECIMATED BY 512. BLOCK N IS LOW PASS IN X, LOW PASS IN Y, AND DECIMATED BY 512. Figure 3. Modified Mallat Diagram (Block Letters Correspond to Those in Filter Tree)

  • The data in all blocks (except N) for all components are high pass filtered. Therefore, the mean pixel value in those b locks is typically zero and a histogram of the pixel values in these blocks will contain a single “hump” (Laplacian distribution).
  • The data in most blocks is more likely to contain zeros or strings of zeros than unfiltered image data.
  • The human visual system is less sensitive to higher frequency blocks than low ones.
  • Attenuation of the selected blocks in luminance or color com- ponents results in control over sharpness, brightness, contrast and saturation.
  • High quality filtered/decimated images can be extracted/created without computational overhead. Through leverage of these key points, the ADV601 not only compresses video, but offers a host of application features. Please see the Applying the ADV601 section for details on getting the most out of the ADV601’s sub-band coding architecture in different applications.

Figure 6. Wavelet Filter Tree Structure

data formats used by the quantizer. and the Mallat block fill pattern in Figure 8 appears in Table II.

15.17 DATA

15.0 BIN

23.8 DE-QUANTIZED

Figure 7. Programmable Quantizer Data Flow Figure 8. Typical Quantization of Mallat Data Blocks (Graphed)

–8– REV. 0 Table II. ADV601 Typical Quantization of Mallat Data Block Data1 Mallat Bin Width Reciprocal Bin Blocks Factors Width Factors 39 0x007F 0x0810 40 0x009A 0x06a6 41 0x009A 0x06a6 36 0x00BE 0x0564 33 0x00BE 0x0564 30 0x00E4 0x047e 34 0x00E6 0x0474 35 0x00E6 0x0474 37 0x00E6 0x0474 38 0x00E6 0x0474 31 0x0114 0x03b6 32 0x0114 0x03b6 27 0x0281 0x0199 24 0x0281 0x0199 21 0x0301 0x0155 25 0x0306 0x0153 26 0x0306 0x0153 28 0x0306 0x0153 29 0x0306 0x0153 22 0x03A1 0x011a 23 0x03A1 0x011a 5 0x0A16 0x0066 18 0x0A16 0x0066 12 0x0C1A 0x0055 20 0x0C2E 0x0054 19 0x0C2E 0x0054 17 0x0C2E 0x0054 16 0x0C2E 0x0054 14 0x0E9D 0x0046 13 0x0E9D 0x0046 6 0x1DDC 0x0022 9 0x1DDC 0x0022 3 0x23D5 0x001d 11 0x2410 0x001c 10 0x2410 0x001c 8 0x2410 0x001c 7 0x2410 0x001c 5 0x2B46 0x0018 4 0x2B46 0x0018 0 0xA417 0x0006 2 0xC62B 0x0005 1 0xC62B 0x0005 NOTE 1The Mallat block numbers, Bin Width factors, and Reciprocal Bin Width factors in Table II correspond to the shading per-cent fill) of Mallat blocks in Figure 8. THE RUN LENGTH CODER AND HUFFMAN CODER This block contains two types of entropy coders that achieve mathematically loss-less compression: run-length and Huffman. The run-length coder looks for long strings of zeros and replaces it with short hand symbols. Table III illustrates an example of how compression is possible. The Huffman coder is a digital compressor/decompressor that can be used for compressing any type of digital data. Essentially, an ideal Huffman coder creates a table of the most commonly occurring code sequences (typically zero and small values near zero) and then replaces those codes with some shorthand. The ADV601 employs three fixed Huffman tables; it does not create tables. The filters and the quantizer increase the number of zeros and strings of zeros, which improves the performance of the entropy coders. The higher the selected compression ratio, the more zeros and small value sequences the quantizer needs to generate. The transformed image in Figure 5 shows that the filter bank concentrates zeros and small values in the higher frequency blocks. Encoding vs. Decoding The decoding of compressed video follows the exact path as encoding but in reverse order. There is no need to calculate Bin Widths during decode because the Bin Width is stored in the compressed image during encode. PROGRAMMER’S MODEL A host device configures the ADV601 using the Host I/O Port. The host reads from status registers and writes to control regis- ters through the Host I/O Port. An optional DSP can perform Bin Width calculations for the ADV601. The ADV601 can transfer data from component video statistics registers and receive data for Bin Width registers as a packet I/O using the DSP I/O Port. Table IV illustrates the format used to describe the ADV601’s read and write registers. Table IV. Register Description Conventions Register Name Register Type (Indirect or Direct, Read or Write) and Address Register Functional Description Text Bit [#] or Bit or Bit Field Name and Usage Description Bit Range [High:Low]

0 Action or Indication When Bit Is Cleared (Equals 0)

1 Action or Indication When Bit Is Set (Equals 1)

Table III. Uncompressed Versus Compressed Data Using Run-Length Coding 0000000000000000000000000000000000000000000000000000000000000000000(uncompressed)

57 Zeros (Compressed)

Figure 9. Map of ADV601 Direct and Indirect Registers

–10– REV. 0 ADV601 REGISTER DESCRIPTIONS Indirect Address Register Direct (Write) Register Byte Offset 0x00. This register holds a 16-bit value (index) that selects the indirect register accessible to the host through the indirect data register. All indirect write registers are 16-bits wide. The address in this register is auto-incremented on each subsequent access of the in direct data register. This capability enhances I/O performance during modes of operation where the host is calculating Bin Width contr ols. In 8-bit mode, auto-increment occurs after writing to Byte 1 ( BE1 pin asserted) of the Indirect Data Register; always read or write Byte 0 then Byte 1 when in 8-bit mode. [15:0] Indirect Address Register, IAR[15:0]. Holds a 16-bit value (index) that selects the indirect register to read or write through the indirect data register (undefined at reset) [31:16] Reserved (undefined read/write zero) Indirect Register Data Direct (Read/Write) Register Byte Offset 0x04 This register holds a 16-bit value read or written from or to the indirect register indexed by the Indirect Address Register. I n 8-bit mode, Byte 0 is read or written first followed by Byte 1. This ensures correct operation of auto-increment. [15:0] I ndirect Register Data, IRD[15:0]. A 16-bit value read or written to the indexed indirect register. Undefined at reset. [31:16] Reserved (undefined read/write zero) Compressed Data Register Direct (Read/Write) Register Byte Offset 0x08 This register holds a 32-bit sequence from the compressed video bit stream. This register is buffered by a 512 position, 32-bit FIFO. Access bytes in the following order for correct auto-increment: Byte 0, Byte 1, Byte 2, then Byte 3. For Word (16-bit) accesses , ac- cess Word0 (Byte 0 and Byte 1) then Word1 (Byte 2 and Byte 3). For a description of the data sequence, see the Compressed Data Stream Definition section. [31:0] Compressed Data Register, CDR[31:0]. 32-bit value containing compressed video stream data. At reset, contents undefined. Interrupt Mask / Status Register Direct (Read/Write) Register Byte Offset 0x0C This 16-bit register contains interrupt mask and status bits that control the state of the ADV601’s HIRQ pin. With the seven mask bits (IE_LCODE, IE_STATSR, IE_FIFOSTP, IE_FIFOSRQ, IE_FIFOERR, IE_CCIRER, IE_MERR); select the conditions that are ORed together to determine the output of the HIRQ pin. Six of the status bits (LCODE, STATSR, FIFOSTP, MERR, FIFOERR, CCIRER) indicate active interrupt conditions and are sticky bits that stay set until read. Because sticky status bits are cleared when read, and these bits are set on the positive edge of the condition coming true, they cannot be read or tested for stable level true conditions multiple times. The FIFOSRQ bit is not sticky. This bit can be polled to monitor for a FIFOSRQ true condition. Note: Enable this monitoring by using the FIFOSRQ bit and correctly programming DSL and ESL fields within the FIFO control registers. [0] CCIR-656 Error in CCIR-656 data stream, CCIRER. This read only status bit indicates the following:

0 No CCIR-656 Error condition, reset value

1 Unrecoverable error in CCIR-656 data stream (missing sync codes)

[1] Statistics Ready, STATSR. This read only status bit indicates the following:

0 No Statistics Ready condition, reset value (STATS_R pin LO)

1 Statistics Ready for BW calculator (STATS_R pin HI)

[2] Last Code Read, LCODE. This read only status bit indicates the last compressed data word for field will be retrieved from the FIFO on the next read from the host bus.

0 No Last Code condition, reset value (LCODE pin LO)

1 Next read retrieves last word for field in FIFO (LCODE pin HI)

[3] FIFO Service Request, FIFOSRQ. This read only status bit indicates the following:

0 No FIFO Service Request condition, reset value (FIFO_SRQ pin LO)

1 FIFO is nearly full (encode) or nearly empty (decode) (FIFO_SRQ pin HI)

–11–REV. 0 [4] FIFO Error, FIFOERR. This condition indicates that the host has been unable to keep up with the ADV601’s compressed data supply or demand requirements. If this condition occurs during encode, the data stream will not be corrupted until MERR indicates that the DRAM is also overflowed. If this condition occurs during decode, the video output will be corrupted. If the system overflows the FIFO (disregarding a FIFOSTP condition) with too many writes in decode mode, FIFOERR is asserted. This read only status bit indicates the following:

0 No FIFO Error condition, reset value (FIFO_ERR pin LO)

1 FIFO overflow (encode) or underflow (decode) (FIFO_ERR pin HI)

[5] FIFO Stop, FIFOSTP. This condition indicates that the FIFO is full in decode mode and empty in encode mode. In decode mode only, FIFOSTP status actually behaves more conservatively than this. In decode mode, even when FIFOSTP is indicated, there are still 32 empty Dwords available in the FIFO and 32 more Dword writes can safely be performed. This status bit indicates the following:

0 No FIFO Stop condition, reset value (FIFO_STP pin LO)

1 FIFO empty (encode) or full (decode) (FIFO_STP pin HI)

[6] Memory Error, MERR. This condition indicates that an error has occurred at the DRAM memory interface. This condition can be caused by a defective DRAM, the inability of the Host to keep up with the ADV601 compressed data stream, or bit errors in the data stream. Note that the ADV601 recovers from this condition without host intervention.

0 No memory error condition, reset value

1 Memory error

[7] Reserved (always read/write zero) [8] Interrupt Enable on CCIRER, IE_CCIRER. This mask bit selects the following:

0 Disable CCIR-656 data error interrupt, reset value

1 Enable interrupt on error in CCIR-656 data

[9] Interrupt Enable on STATR, IE_STATR. This mask bit selects the following:

0 Disable Statistics Ready interrupt, reset value

1 Enable interrupt on Statistics Ready

[10] Interrupt Enable on LCODE, IE_LCODE. This mask bit selects the following:

0 Disable Last Code Read interrupt, reset value

1 Enable interrupt on Last Code Read from FIFO

[11] Interrupt Enable on FIFOSRQ, IE_FIFOSRQ. This mask bit selects the following:

0 Disable FIFO Service Request interrupt, reset value

1 Enable interrupt on FIFO Service Request

[12] Interrupt Enable on FIFOERR, IE_FIFOERR. This mask bit selects the following:

0 Disable FIFO Stop interrupt, reset value

1 Enable interrupt on FIFO Stop

[13] Interrupt Enable on FIFOSTP, IE_FIFOSTP. This mask bit selects the following:

0 Disable FIFO Error interrupt, reset value

1 Enable interrupt on FIFO Error

[14] Interrupt Enable on MERR, IE_MERR. This mask bit selects the following:

0 Disable memory error interrupt, reset value

1 Enable interrupt on memory error

[15] Reserved (always read/write zero) Mode Control Register Indirect (Write Only) Register Index 0x00 This register holds configuration data for the ADV601’s video interface format and controls several other video interface featu res. For more information on formats and modes, see the Video Interface section. Bits in this register have the following functions: [3:0] Video Interface Format, VIF[3:0]. These bits select the interface format. Valid settings include the following (all other values are reserved): 0x0 CCIR-656 0x2 MLTPX (Philips) 0x3 Philips, reset value 0x8 Gray Scale [4] VCLK Output Divided by two, VCLK2. This bit controls the following:

0 Do not divide VCLK output (VCLKO = VCLK), reset value

1 Divide VCLK output by two (VCLKO = VCLK/2)

–12– REV. 0 [5] Video Interface Master/Slave Mode Select, M/S. This bit selects the following: 0 Slave mode video interface (External control of video timing, HSYNC-VSYNC-FIELD are inputs), reset value

1 Master mode video interface (ADV601 controls video timing, HSYNC-VSYNC are outputs)

[6] Video Interface 525/625 (NTSC/PAL) Mode Select, P/N. This bit selects the following: 0 525 mode video interface, reset value 1 625 mode video interface [7] Video Interface Encode/Decode Mode Select, E/D. This bit selects the following:

0 Decode mode video interface (compressed-to-raw)

1 Encode mode video interface (raw-to-compressed), reset value

[8] Video Interface Square Pixel Mode Enable, SPE. This bit selects the following:

0 Disable Square Pixel mode video interface

1 Enable Square Pixel mode video interface, reset value

[9] Video Interface Bipolar/Unipolar Color Component Select, BUC. This bit selects the following:

0 Bipolar color component mode video interface, reset value

1 Unipolar color component mode video interface

[10] External DSP Select for bin width calculations, DSP. This bit selects the following:

0 Host provides bin width calculation, reset value

1 External DSP provides bin width calculation

[11] Video Interface Software Reset, SWR. This bit has the following effects on ADV601 operations:

0 Normal operation

1 Software Reset. This bit is set on hardware reset and must be cleared before the ADV601 can begin processing. ( reset value) When this bit is set during encode, the ADV601 completes processing the current field then suspends operation until the SWR bit is cleared. When this bit is set during decode, the ADV601 suspends operation immediately and does not resume operation until the SWR bit is cleared. Note that this bit must be set whenever any other bit in the Mode register is changed. [12] HSYNC pin Polarity, PHSYNC. This bit has the following effects on ADV601 operations:

0 HSYNC is HI during blanking, reset value

1 HSYNC is LO during blanking (HI during active)

[13] HIRQ pin Polarity, PHIRQ. This bit has the following effects on ADV601 operations:

0 HIRQ is active LO, reset value

1 HIRQ is active HI

[15:14] Reserved (always write zero) FIFO Control Register Indirect (Read/Write) Register Index 0x01 This register holds the service-request settings for the ADV601’s host interface FIFO, causing interrupts for the “nearly full” and “nearly empty” levels. Because each register is four bits in size, and the FIFO is 512 positions, the 4-bit value must be multi plied by 32 (decimal) to determine the exact value for encode service level (nearly full) and decode service level (nearly empty). The A DV601 uses these setting to determine when to generate a FIFO Service Request related host interrupt (FIFOSRQ bit and FIFO_SRQ pin). [3:0] Encode Service Level, ESL[3:0]. The value in this field determines when the FIFO is considered nearly full on encode; a condi- tion that generates a FIFO service request condition in encode mode. Since this register is four bits (16 states), and the FIFO is 512 positions, the step size for each bit in this register is 32 positions. The following table summarizes sample states of the register and their meaning. ESL Interrupt When . . .

0000 Disables service requests (FIFO_SRQ never goes HI during encode)

0001 FIFO has only 32 positions filled (FIFO_SRQ when >= 32 positions are filled)

1000 FIFO is 1/2 full, reset value

1111 FIFO has only 32 positions empty (480 positions filled)

[7:4] Decode Service Level, DSL[7:4]. The value in this field determines when the FIFO is considered nearly empty in decode; a condition that generates a FIFO service request in decode mode. Because this register is four bits (16 states), and the FIFO is 512 positions, the step size for each bit in this register is 32 positions. The following table summarizes sample states of the register and their meaning. DSL Interrupt When . . .

0000 Disables service requests (FIFO_SRQ never goes HI)

0001 FIFO has only 32 positions filled (480 positions empty)

1000 FIFO is 1/2 empty, reset value

1111 FIFO has only 32 positions empty (FIFO_SRQ when >= 32 positions are empty)

[15:8] Reserved (always write zero)

Figure 10. Video Area and Video Area Registers zero, but in cases where you wish to crop incoming video it is possible to do so by changing HST. selected video mode, the ADV601 uses the max size of the selected mode for HEND. unless you want to crop the active video. ter update process. To perform this dynamic update correctly, the update software must keep track of which field is being processed next. selected video mode, the ADV601 uses the max size of the selected mode for VEND.

–14– REV. 0 Compression Ratio Register Indirect (Write Only) Register Index 0x06 This register holds the value that is used by the DSP to control compression during encode mode. Note that this register should only be used when a DSP is calculating Bin Widths. [7:0] Compression Ratio, CRA[7:0]. Value passed to the DSP during encode operation. The 8-bit value in this field is sent to the DSP through the serial interface during DSP-assisted encode operations. CRA values are zero-filled from the MSB and one each is sent to the DSP as part of the packet of data on which the ratio is applied. The DSP software uses the CRA value and other statistics to calculate BW controls for the ADV601’s quantizer. Note that the relationship between CRA and the actual compression ratio is dependent on the BW control algorithm used in the DSP (undefined at reset). [15:8] Reserved (always write zero) Sum of Squares [0–41] Registers Indirect (Read Only) Register Index 0x080 through 0x0A9 The Sum of Squares [0–41] registers hold values that correspond to the summation of values (squared) in corresponding Mallat blocks [0–41]. These registers let the Host or DSP read sum of squares statistics from the ADV601; using these values (with the Sum of Value, MIN Value, and MAX Value) the host or DSP can then calculate the BW and RBW values. The ADV601 indicates that the sum of squares statistics have been updated by setting (1) the STATR bit and asserting the STAT_R pin. Read the statistics at any time. The Host reads these values through the Host Interface or the DSP receives these values through the serial port. [15:0] Sum of Squares, STS[15:0]. 16-bit values [0-41] for corresponding Mallat blocks [0-41] (undefined at reset). Sum of Square values are 16-bit codes that represent the Most Significant Bits of values ranging from 40 bits for small blocks to 48 bits for large blocks. The 16-bit codes have the following precision: Blocks Precision Sum of Squares Precision Description 0–2 48.–32 48.-bits wide, left shift code by 32-bits, and zero fill 3–11 46.–30 46.-bits wide, left shift code by 30-bits, and zero fill 12–20 44.–28 44.-bits wide, left shift code by 28-bits, and zero fill 21–29 42.–26 42.-bits wide, left shift code by 26-bits, and zero fill 30–41 40.–24 40.-bits wide, left shift code by 24-bits, and zero fill If the Sum of Squares code were 0x0 025 for block 10, the actual value would be 0x000940000000; if using that same code, 0x0025, for block 30, the actual value would be 0x0025000000. [31:0] Reserved (always read zero) Sum of Luma Value Register Indirect (Read Only) Register Index 0x0AA The Sum of Luma Value register lets the host or DSP read the sum of pixel values for the Luma component in block 39. The Host reads these values through the Host Interface or the DSP receives these values through the serial port. [15:0] Sum of Luma, SL[15:0]. 16-bit component pixel values (undefined at reset) [31:0] Reserved (always read zero) Sum of Cb Value Register Indirect (Read Only) Register Index 0x0AB The Sum of Cb Value register lets the host or DSP read the sum of pixel values for the Cb component in block 40. The Host reads these values through the Host Interface or the DSP receives these values through the serial port. [15:0] Sum of Cb, SCB[15:0]. 16-bit component pixel values (undefined at reset) [31:0] Reserved (always read zero) Sum of Cr Value Register Indirect (Read Only) Register Index 0x0AC The Sum of Cr Value register lets the host or DSP read the sum of pixel values for the Cr component in block 41. The Host reads these values through the Host Interface or the DSP receives these values through the serial port. [15:0] Sum of Cr, SCR[15:0]. 16-bit component pixel values (undefined at reset) [31:0] Reserved (always read zero)

–15–REV. 0 MIN Luma Value Register Indirect (Read Only) Register Index 0x0AD The MIN Luma Value register lets the host or DSP read the minimum pixel value for the Luma component in the unprocessed data. The Host reads these values through the Host Interface or the DSP receives these values through the serial port. [15:0] Minimum Luma, MNL[15:0]. 16-bit component pixel value (undefined at reset) [31:0] Reserved (always read zero) MAX Luma Value Register Indirect (Read Only) Register Index 0x0AE The MAX Luma Value register lets the host or DSP read the maximum pixel value for the Luma component in the unprocessed data. The Host reads these values through the Host Interface or the DSP receives these values through the serial port. [15:0] Maximum Luma, MXL[15:0]. 16-bit component pixel value (undefined at reset) [31:0] Reserved (always read zero) MIN Cb Value Register Indirect (Read Only) Register Index 0x0AF The MIN Cb Value register lets the host or DSP read the minimum pixel value for the Cb component in the unprocessed data. The Host reads these values through the Host Interface or the DSP receives these values through the serial port. [15:0] Minimum Cb, MNCB[15:0], 16-bit component pixel value (undefined at reset) [31:0] Reserved (always read zero) MAX Cb Value Register Indirect (Read Only) Register Index 0x0B0 The MAX Cb Value register lets the host or DSP read the maximum pixel value for the Cb component in the unprocessed data. The Host reads these values through the Host Interface or the DSP receives these values through the serial port. [15:0] Maximum Cb, MXCB[15:0].16-bit component pixel value (undefined at reset) [31:0] Reserved (always read zero) MIN Cr Value Register Indirect (Read Only) Register Index 0x0B1 The MIN Cr Value register lets the host or DSP read the minimum pixel value for the Cr component in the unprocessed data. The Host reads these values through the Host Interface or the DSP receives these values through the serial port. [15:0] Minimum Cr, MNCR[15:0]. 16-bit component pixel value (undefined at reset) [31:0] Reserved (always read zero) MAX Cr Value Register Indirect (Read Only) Register Index 0x0B2 The MAX Cr Value register lets the host or DSP read the maximum pixel value for the Cr component in the unprocessed data. The Host reads these values through the Host Interface or the DSP receives these values through the serial port. [15:0] Maximum Cr, MXCR[15:0]. 16-bit component pixel value (undefined at reset) [31:0] Reserved (always read zero) Bin Width and Reciprocal Bin Width Registers Indirect (Read/Write) Register Index 0x0100-0x0153 The RBW and BW values are calculated by the host or DSP from data in the Sum of Squares [0-41], Sum of Value, MIN Value, and MAX Value registers; then are written to RBW and BW registers during encode mode to control the quantizer. The Host writes these values through the Host Interface or the DSP transmits these values through the serial port. These registers contain a 16-bit interleaved table of alternating RBW/BW (RBW-even addresses and BW-odd addresses) values as indexed on writes by address register. Bin Widths are 8.8, unsigned, 16-bit, fixed-point values. Reciprocal Bin Widths are 6.10, unsigned, 16-bit, fixed-point values. Operation of this register is controlled by the host driver or the DSP (84 total en tries) (undefined at reset). [15:0] Bin Width Values, BW[15:0] [15:0] Reciprocal Bin Width Values, RBW[15:0]

–16– REV. 0 PIN FUNCTION DESCRIPTIONS Clock Pins Name Pins I/O Description VCLK/XTAL 2 I A single clock (VCLK) or crystal input (across VCLK and XTAL). Acceptable 50% duty cycle clock signals are as follows:

  • 24.54 MHz (Square Pixel NTSC)
  • 27 MHz (CCIR601 NTSC/PAL)
  • 29.5 MHz (Square Pixel PAL) If using a clock crystal, use a parallel resonant, microprocessor grade clock crystal. If using a clock input, use a TTL level input, 50% duty cycle clock with 1 ns (or less) jitter (measured rising edge to rising edge). Slowly varying, low jitter clocks are acceptable; up to 5% frequency variation in 0.5 sec. VCLKO 1 O VCLK Output or VCLK Output divided by two. Select function using Mode Control register. Video Interface Pins Name Pins I/O Description VSYNC 1 I or O Vertical Sync or Vertical Blank. This pin can be either an output (Master Mode) or an input (Slave Mode). The pin operates as follows:
  • Output (Master) HI during inactive lines of video and LO otherwise
  • Input (Slave) a HI on this input indicates inactive lines of video HSYNC 1 I or O Horizontal Sync or Horizontal Blank. This pin can be either an output (Master Mode) or an input (Slave Mode). The pin operates as follows:
  • Output (Master) HI during inactive portion of video line and LO otherwise
  • Input (Slave) a HI on this input indicates inactive portion of video line Note that the polarity of this signal is modified using the Mode Control register. For detailed timing information, see the Video Interface section. FIELD 1 I or O Field # or Frame Sync. This pin can be either an output (Master Mode) or an input (Slave Mode). The pin operates as follows:
  • Output (Master) HI during Field1 lines of video and LO otherwise
  • Input (Slave) a HI on this input indicates Field1 lines of video ENC 1 O Encode or Decode. This output pin indicates the coding mode of the ADV601 and operates as follows:
  • LO Decode Mode (Video Interface is output)
  • HI Encode Mode (Video Interface is input) Note that this pin can be used to control bus enable pins for devices connected to the ADV601 Video Interface. VDATA[19:0] 20 I/O 4:2:2 Video Data (8-, 10-, or 12-bit digital component video data). These pins are inputs during encode mode and outputs during decode mode. When outputs (de- code) these pins are compatible with 50 pF loads (rather than 30 pF as all other busses) to meet the high performance and large number of typical loads on this bus. The performance of these pins varies with the Video Interface Mode set in the Mode Control register, see the Video Interface section of this data sheet for pin assignments in each mode. Note that the Mode Control register also sets whether the color component is treated as either signed or unsigned. CREF 1 I/O Clock Reference pin for Philips Interface (VCLK qualifier)—This pin can be either an output (Master Mode) or an input (Slave Mode). The pin operates as follows:
  • Output (Master) HI to qualify VCLK during VCLK phases containing valid de- multiplexed digital video and LO otherwise
  • Input (Slave) a HI on this input qualifies VCLK during VCLK phases containing valid de-multiplexed digital video.

–17–REV. 0 DRAM Interface Pins Name Pins I/O Description DDAT[15:0] 16 I/O DRAM Data Bus. The ADV601 uses these pins for 16-bit data read/write operations to the external 256K × 16-bit DRAM. (The operation of the DRAM interface is fully automatic and controlled by internal functionality of the ADV601.) These pins are compatible with 30 pF loads. DADR[8:0] 9 O DRAM Address Bus. The ADV601 uses these pins to form the multiplexed row/column address lines to the external DRAM. (The operation of the DRAM interface is fully automatic and controlled by internal functionality of the ADV601.) These pins are compatible with 30 pF loads. RAS 1 O DRAM Row Address Strobe. This pin is compatible with 30 pF loads. CAS 1 O DRAM Column Address Strobe. This pin is compatible with 30 pF loads. WE 1 O DRAM Write Enable. This pin is compatible with 30 pF loads. Note that the ADV601 does not have a DRAM OE pin. Tie the DRAM’s OE pin to ground. Serial Port Pins and Timing DSP Interface Pins Name Pins I/O Description TXD 1 O Serial Transmit Data. Connect this pin to an optional, external DSP’s serial interface RXData pin. If no DSP is present, this pin may be left unconnected. This pin is compatible with 30 pF loads. The TXD pin is for serial data output from the ADV601. Serial data consists of 16-bit words that are transferred most-significant-bit first. Note that the Mode Control register must be set to indicate whether or not the external DSP is present. RXD 1 I Serial Receive Data. Connect this pin to an optional, external DSP’s serial interface TXData pin. If no DSP is present, tie this pin to ground. This pin is compatible with 30 pF loads. The RXD pin is for serial data input to the ADV601. Serial data consists of 16- bit words that are transferred most-significant-bit first. Note that the Mode Control register must be set to indicate whether or not the external DSP is present. TCLK 1 O Serial Data Clock (VCLK/4). Connect this pin to an optional, external DSP’s serial interface SCLK pin. If no DSP is present, this pin may be left uncon- nected. This pin is compatible with 30 pF loads. The TCLK pin is the serial interface clock. Communication in and out of the ADV601 requires bits of data to be transmitted after a rising edge of TCLK, and sampled on a falling edge of TCLK. The DSP must be in external bit clock mode to use TCLK correctly. The codec drives the TCLK frequency at 1/4 VCLK. Some typical VCLK and TCLK frequencies are as follows:

  • VCLK TCLK (= 1/4 VCLK)
  • 27 MHz 6.75 MHz
  • 29.5 MHz 7.375 MHz
  • 24.54 MHz 6.135 MHz Note that the Mode Control register must be set to indicate whether or not the external DSP is present.

–18– REV. 0 DSP Interface Pins (Continued) Name Pins I/O Description TF 1 O Serial Transmit Frame Sync. Connect this pin to an optional, external DSP’s serial interface RF Sync pin. If no DSP is present, leave this pin unconnected. This pin is compatible with 30 pF loads. The TF pin is the transmit frame synch. When transmitting, the ADV601 marks new frames with a HI pulse driven out on TF one serial clock period before the frame begins. Whether transmitting or receiving, the synch signals may transition back from HI to LO at any time, provided the HI and LO times of TF or RF are at least one TCLK period in duration. Note that the DSP must be set for external framing on receive data. Frame size for ADV601 serial data transmission is 52 slots of 16 bits. Note that the Mode Control register must be set to indicate whether or not the external DSP is present. RF 1 I Receive Frame Sync. Connect this pin to an optional, external DSP’s serial inter- face TF Sync pin. If no DSP is present, tie this pin to ground. This pin is compat- ible with 30 pF loads. The RF pin is the receive frame synch. When receiving, the ADV601 requires that the DSP marks new frames with a LO to HI transition driven in on RF one serial clock period before the frame begins. Whether transmitting or receiving, the synch signals may transition back from HI to LO at any time provided the HI and LO times of TF or RF are at least one TCLK period in duration. Note that the DSP must be set for internal framing on transmit data. When receiving, the frame size for ADV601 serial data is 84 slots of 16 bits. Note that the Mode Control register must be set to indicate whether or not the external DSP is present. DIRQ 1 O DSP Interrupt. Connect this pin to an optional, external DSP’s hardware interrupt pin (IRQ2). If no DSP is present, this pin may be left unconnected. This pin is compatible with 30 pF loads. The DIRQ pin on the ADV601 provides an optional method for signalling the DSP that a new packet of field statistics is being transmitted and can be used system- wide for signalling that a new video field has begun. Because the ADV601 asserts DIRQ throughout statistics transmission and bin width reception, the DSP’s inter- rupts should be set for edge-sensitivity. Note that the Mode Control register must be set to indicate whether or not the external DSP is present. Host Interface Pins Name Pins I/O Description DATA[31:0] 32 I/O Host Data Bus. These pins make up a 32-bit wide host data bus. The host controls this asynchronous bus with the WR, RD, BE, and CS pins to communicate with the ADV601. These pins are compatible with 30 pF loads. ADR[1:0] 2 I Host DWord Address Bus. These two address pins let you address the ADV601’s four directly addressable host interface registers. For an illustration of how this addressing works, see the Control and Write Register Map figure and Status and Read Register Map figure. The ADR bits permit register addressing as follows: ADR1 ADR0 DWord Address Byte Address 0 0 0 0x00 0 1 1 0x04 1 0 2 0x08 1 1 3 0x0C BE0–BE3 4 I Host Byte Enable pins. These four input pins allow selection of which bytes in ADV601 direct and indirect registers will be accessed through the Host Interface; BE0—least significant byte BE3—most significant byte. For a 32-bit interface only, tie these pins to ground, making all bytes available.

–19–REV. 0 Host Interface Pins (Continued) Name Pins I/O Description BE0–BE3 (Cont.) 4 I Some important notes for 8- and 16-bit interfaces are as follows:

  • When using these byte enable pins, the byte order is always the lowest byte
  • to the higher bytes.
  • The ADV601 advances to the next 32-bit compressed data FIFO location
  • after the BE3 pin is asserted then de-asserted (when accessing the Com-
  • pressed Data register); so the FIFO location only advances when and if the
  • host reads or writes the MSB of a FIFO location.
  • The ADV601 advances to the next 16-bit indirect register after the BE1 pin
  • is asserted then de-asserted; so the register selection only advances when
  • and if the host reads or writes the MSB of a 16-bit indirect register. CS 1 I Host Chip Select. This pin operates as follows:
  • LO Qualifies Host Interface control signals
  • HI Three-states DATA[31:0] pins WR 1 I Host Write. Host register writes occur on the rising edge of this signal. RD 1 I Host Read. Host register reads occur on the low true level of this signal. ACK 1 O Host Acknowledge. The ADV601 acknowledges completion of a Host Inter- face access by asserting this pin. Most Host Interface accesses (other than the compressed data register access) result in ACK being held high for at least one wait cycle, but some exceptions to that rule are as follows:
  • A full FIFO during decode operations causes the ADV601 to de-assert
  • (drive HI) the ACK pin, holding off further writes of compressed data until
  • the FIFO has one available location.
  • An empty FIFO during encode operations causes the ADV601 to de-assert (drive HI) the ACK pin, holding off further reads until one location is filled. FIFO_ERR 1 O FIFO Error. This condition indicates that the host has been unable to keep up with the ADV601’s compressed data supply or demand requirements. If this condition occurs for a long time during encode, the data stream may be cor- rupted. If this condition occurs for a long time during decode, the video out- put may be corrupted. The state of this pin also appears in the Interrupt Mask/ Status register. Use the interrupt mask to assert a Host interrupt ( HIRQ pin) based on the state of the FIFO_ERR pin. This pin operates as follows:
  • LO No FIFO Error condition (FIFOERR bit LO)
  • HI FIFO overflow (encode) or underflow (decode) (FIFOERR bit HI) FIFO_SRQ 1 O FIFO Service Request. This pin is an active high signal indicating that the FIFO needs to be serviced by the host. (see FIFO Control register). The state of this pin also appears in the Interrupt Mask/Status register. Use the interrupt mask to assert a Host interrupt (HIRQ pin) based on the state of the FIFO_SRQ pin. This pin operates as follows:
  • LO No FIFO Service Request condition (FIFOSRQ bit LO)
  • HI FIFO needs service is nearly full (encode) or nearly empty (decode) During encode, FIFO_SRQ is LO when the SWR bit is cleared (0) and goes HI when the FIFO is nearly full (see FIFO Control register). During decode, FIFO_SRQ is HI when the SWR bit is cleared (0), because FIFO is empty, and goes LO when the FIFO is filled beyond the nearly empty condition (see FIFO Control register).

–20– REV. 0 Host Interface Pins (Continued) Name Pins I/O Description FIFO_STP 1 O FIFO Stop. This condition indicates that the host is far ahead of the ADV601’s compressed data supply or demand requirements. The state of this pin also appears in the Interrupt Mask/Status register. Use the interrupt mask to assert a Host inter- rupt (HIRQ pin) based on the state of the FIFO_STP pin. This pin operates as follows:

  • LO No FIFO Stop condition (FIFOSTP bit LO)
  • HI FIFO empty (encode) or full (decode) (FIFOSTP bit HI) STATS_R 1 O Statistics Ready. This pin indicates the Wavelet Statistics (contents of Sum of Squares, Sum of Value, MIN Value, MAX Value registers) have been updated and are ready for the Bin Width calculator to read them from the host or DSP interface. The frequency of this interrupt will be equal to the field rate. The state of this pin also appears in the Interrupt Mask/Status register. Use the interrupt mask to assert a Host interrupt (HIRQ pin) based on the state of the STATS_R pin. This pin operates as follows:
  • LO No Statistics Ready condition (STATSR bit LO)
  • HI Statistics Ready for BW calculator (STATSR bit HI) LCODE 1 O Last Compressed Data (for field). This bit indicates the last compressed data word for field will be retrieved from the FIFO on the next read from the host bus. The frequency of this interrupt is similar to the field rate, but varies depending on compression and host response. The state of this pin also appears in the Interrupt Mask/Status register. Use the interrupt mask to assert a Host interrupt ( HIRQ pin) based on the state of the LCODE pin. This pin operates as follows:
  • LO No Last Code condition (LCODE bit LO)
  • HI Last data word for field has been read from FIFO (LCODE bit HI) HIRQ 1 O Host Interrupt Request. This pin indicates an interrupt request to the Host. The Interrupt Mask/Status register can select conditions for this interrupt based on any or all of the following: FIFOSTP, FIFOSRQ, FIFOERR, LCODE, STATR or CCIR656 unrecoverable error. Note that the polarity of the HIRQ pin can be modified using the Mode Control register. RESET 1 I ADV601 Chip Reset. Asserting this pin returns all registers to reset state. Note that the ADV601 must be reset at least once after power-up with this active low signal input. For more information on reset, see the SWR bit description. Power Supply Pins Name Pins I/O Description GND 28 I Ground VDD 21 I +5 V DC Digital Power

–21–REV. 0 Video Interface The ADV601 video interface supports a wide range of compo- nent digital video (D1) interfaces in both compression (input) and decompression (output) modes. These digital video inter- faces include support for the following:

  • Philips 4:2:2
  • Multiplexed Philips 4:2:2
  • CCIR-656/SMPTE125M - international standard
  • Closed Captioning and VITC decode and encode Video interface master and slave modes allow for the generation or receiving of synchronization and blanking signals. Definitions for the different formats can be found later in this section. For recommended connections to popular video decoders and encoders, see the Connecting The ADV601 To Popular Video Decoders and Encoders section. A complete list of supported video interfaces and sampling rates is included in Table V. Table V. Component Digital Video Interfaces Nominal Bits/ Color Date Name Component Space Sampling Rate (MHz) I/F Width CCIR-656 8 or 10 YCrCb 4:2:2 27 8 or 10 Multiplex Philips 8 or 10 YUV 4:2:2 <= 29.5 8 or 10 Philips 8 or 10 YUV 4:2:2 12.27-14.79 16 or 20 Gray Scale 8, 10, or 12 Luma 4:0:0 12.27-14.79 8, 10 or 12 Internally, the video interface translates all video formats to one consistent format to be passed to the wavelet kernel. This con- sistent internal video standard is 4:2:2 at 16 bits accuracy. VITC and Closed Captioning Support The video interface also supports the direct loss-less extraction of 90-bit VITC codes during encode and the insertion of VITC codes during decode. Closed Captioning data (found on active Video Line 21) is handled just as normal active video on an active scan line. As a result, no special dedicated support is necessary for Closed Captioning. The data rates for Closed Captioning data are low enough to ensure robust operation of this mechanism at compression ratios of 50:1 and higher. Note that you must include Video Line 21 in the ADV601’s defined active video area for Closed Caption support.

27 MHz Nominal Sampling

There is one clock input (VCLK) to support all internal process- ing elements. This is a 50% duty cycle signal and must be syn- chronous to the video data. Internally this clock is doubled using a phase locked loop to provide for a 54 MHz internal processing clock. The clock interface is a two pin interface that allows a crystal oscillator to be tied across the pins or a clock oscillator to drive one pin. The nominal clock rate for the video interface is 27 MHz. Note that the ADV601 also supports pixel rates ranging from 12.27 MHz to 14.75 MHz (VCLK rates from 24.54 MHz to 29.5 MHz). Video Interface and Modes In all, there are seven programmable features that configure the video interface. These are:

  • Encode-Decode Control In addition to determining what functions the internal pro- cessing elements must perform, this control determines the direction of the video interface. In decode mode, the video interface outputs data. In encode mode, the interface receives data. The state of the control is reflected on the ENC pin. This pin can be used as an enable input by external line driv- ers. This control is maintained by the host processor.
  • Master-Slave Control This control determines whether the ADV601 generates or receives the VSYNC, HSYNC, CREF, and FIELD signals. In master mode, the ADV601 generates these signals for external hardware synchronization. In slave mode, the ADV601 re- ceives these signals. Note that some video formats require the ADV601 to operate in slave mode only. This control is main- tained by the host processor.
  • 525-625 (NTSC-PAL) Control This control determines whether the ADV601 is operating on 525/NTSC video or 625/PAL video. This information is used when the ADV601 is in master and decode modes so that the ADV601 knows where and when to generate the HSYNC, VSYNC, and FIELD Pulses as well as when to insert the SAV and EAV time codes (for CCIR-656 only) in the data stream. This control is maintained by the host processor. Table VI shows how the 525-625 Control and Square Pixel Control in the Mode Control register work together. Table VI. Square Pixel Control, 525-625 Control, and Video Formats Square Max Max Pixel 525-625 Horizontal Field Control Control Size Size NTSC-PAL 0 0 720 243 CCIR-601 NTSC 0 1 720 288 CCIR-601 PAL 1 0 640 243 Square Pixel NTSC 1 1 768 288 Square Pixel PAL
  • Square Pixel Control This control determines whether the ADV601 is operating on square pixel video. For square pixel NTSC, the 525-625 Control is set to 525 and the Square Pixel Control is asserted. For square pixel PAL, the 525-625 Control is set to 625 and the Square Pixel Control is asserted. Also note that the VCLK input differs for NTSC and PAL video.
  • Bipolar/Unipolar Color Component This mode determines whether offsets are used on color com- ponents. In Philips mode, this control is usually set to Bipo- lar, since the color components are normal twos-compliment signed values. In CCIR-656 mode, this control is set to Uni- polar, since the color components are offset by 128. Note that it is likely the ADV601 will function if this control is in the wrong state, but compression performance will be degraded. It is important to set this bit correctly.

–22– REV. 0

  • Active Area Control Four registers HSTART (horizontal start), HEND (horizon- tal end), VSTART (vertical start) and VEND (vertical end) determine the active video area. The maximum active video area is 768 by 288 pixels for a single field.
  • Video Format This control determines the video format that is supported. In general, the goal of the various video formats is to support glueless interfaces to the wide variety of video formats periph- eral components expect. This control is maintained by the host processor. Table VII shows a synopsis of the supported video formats. Definitions of each format can be found later in this section. For Video Interface pins descriptions, see the Pin Function Descriptions. Table VII. Component Digital Video Formats Nominal Bit/ Color Data Rate Master/ Format Name Component Space Sampling (MHz) Slave I/F Width Number CCIR-656 8 or 10 YCrCb 4:2:2 27 Master 8 or 10 0x0 Multiplex Philips 8 or 10 YUV 4:2:2 <=29.5 Either 8 or 10 0x2 Philips 8 or 10 YUV 4:2:2 29.5 Either 8 or 10 0x3 Gray Scale 8, 10 or 12 Luma 4:0:0 13.5 Either 8, 10, or 12 0x8 Clocks and Strobes All video data, whether 1 or 2 “lanes” of video are used, are synchronous to the video clock (VCLK). The rising edge of VCLK is used to clock all data into the ADV601. Synchronization and Blanking Pins Three signals, which can be configured as inputs or outputs, are used for video frame and field horizontal synchronization and blanking. These signals are VSYNC, HSYNC, and FIELD. VDATA Pins Functions With Differing Video Interface Formats The functionality of the Video Interface pins depends on the current video format. Table VIII defines how Video data pins are used for the various formats. Table VIII. VDATA[0:19] Pin Functions Under CCIR-656, Multiplex Philips, Philips, and Gray Scale Video Interfaces 1 VDATA[19:0] Pins CCIR-656 Multiplex Philips Philips Gray Scale

19 N/C N/C Chrominance Data9 N/C

18 N/C N/C Chrominance Data8 N/C

17 N/C N/C Chrominance Data7 N/C

16 N/C N/C Chrominance Data6 N/C

15 N/C N/C Chrominance Data5 N/C

14 N/C N/C Chrominance Data4 N/C

13 N/C N/C Chrominance Data3 N/C

12 N/C N/C Chrominance Data2 N/C

11 N/C N/C Chrominance Data1 Data11

10 N/C N/C Chrominance Data0 Data10

9 Data9 Data9 Luminance Data9 Data9

8 Data8 Data8 Luminance Data8 Data8

7 Data7 Data7 Luminance Data7 Data7

6 Data6 Data6 Luminance Data6 Data6

5 Data5 Data5 Luminance Data5 Data5

4 Data4 Data4 Luminance Data4 Data4

3 Data3 Data3 Luminance Data3 Data3

2 Data2 Data2 Luminance Data2 Data2

1 Data1 Data1 Luminance Data1 Data1

0 Data0 Data0 Luminance Data0 Data0

1Italic font for an entry in this table indicates that the use of the pin is optional (i.e., bits per component greater than 8 ) . Note that unused optional pins should be tied through a resistor to ground. Also, N/C for an entry in this table indicates that the pin is never used for a particular video format. This nomenclature is consistent with the Video Format Descriptions found later in this section. Note that Data0 is always the LSB for all formats.

–23–REV. 0 Video Formats—CCIR-656 The ADV601 supports a glueless video interface to CCIR-656 devices when the Video Format is programmed to CCIR-656 mode. CCIR-656 requires that 4:2:2 data (8 or 10 bits per com- ponent) be multiplexed and transmitted over a single 8- or 10-bit physical interface. A 27 MHz clock is transmitted along with the data. This clock is synchronous with the data. The color space of CCIR-656 is YCrCb. When in master mode, the CCIR-656 mode does not require any external synchronization or blanking signals to accompany digital video. Instead, CCIR-656 includes special time codes in the stream syntax that define horizontal blanking periods, verti- cal blanking periods, and field synchronization (horizontal and vertical synchronization information can be derived). These time codes are called End-of-Active-Video (EAV) and Start-of- Active-Video (SAV). Each line of video has one EAV and one SAV time code. EAV and SAV have three bits of embedded information to define HSYNC, VSYNC and Field information as well as error detection and correction bits. VCLK is driven with a 27 MHz, 50% duty cycle clock which is synchronous with the video data. Video data is clocked on the rising edge of the VCLK signal. When decoding, the VCLK signal is typically transmitted along with video data in the CCIR-656 physical interface. Electrically, CCIR-656 specifies differential ECL levels to be used for all interfaces. The ADV601, however, only supports unipolar, TTL logic thresholds. Systems designs that interface to strictly conforming CCIR-656 devices (especially when inter- facing over long cable distances) must include ECL level shifters and line drivers. The functionality of HSYNC, VSYNC and FIELD Pins is dependent on three programmable modes of the ADV601: Master-Slave Control, Encode-Decode Control and 525-625 Control. Table IX summarizes the functionality of these pins in various modes. Table IX. CCIR-656 Master and Slave Modes HSYNC, VSYNC, and FIELD Functionality HSYNC, VSYNC and FIELD Master Mode (HSYNC, VSYNC Slave Mode (HSYNC, VSYNC Functionality for CCIR-656 and FIELD Are Outputs) and FIELD Are Inputs) Encode Mode (video data is input Pins are driven to reflect the states of the Undefined—Use Master Mode to the chip) received time codes: EAV and SAV. This functionality is independent of the state of the 525-625 mode control. An encoder is most likely to be in master mode. Decode Mode (video data is output Pins are output to the precise timing definitions Undefined—Use Master Mode from the chip) for CCIR-656 interfaces. The state of the pins reflect the state of the EAV and SAV timing codes that are generated in the output video data. These definitions are different for 525 and 625 line systems. The ADV601 completely manages the generation and timing of these pins. Video Formats—Philips Video Philips video format requires 4:2:2 data (8 bits per component) be transmitted over a two “lane” 16-bit physical interface. A 27 MHz clock is transmitted along with the data. This clock is synchronous with the data and is running at twice the transfer rate of the interface. The color space is YUV. VCLK is driven with a 27 MHz 50% duty cycle clock, which is synchronous with the video data. Philips video format requires external synchroni- zation and blanking signals to accompany digital v ideo. These signals are VSYNC, HSYNC, CREF and FIELD. In general, when the ADV601 is configured as an encoder, these signals will all be inputs. When the ADV601 is configured as a decoder, these signals will be outputs. There are special cases for this described in Table X. The functionality of HSYNC, VSYNC, and FIELD pins is depen- dent on three programmable modes of the ADV601: Master-Slave Control, Encode-Decode Control, and 525-625 Control. Table X summarizes the functionality of these pins in various modes. Table X. Philips Video Master and Slave Modes HSYNC, VSYNC and FIELD Functionality HSYNC, VSYNC and FIELD Master Mode (HSYNC, VSYNC, Slave Mode (HSYNC, VSYNC, Functionality for Philips Video CREF and FIELD Are Outputs) CREF and FIELD Are Inputs) Encode Mode (video data is input The ADV601 completely manages the generation These pins are used to control the to the chip) and timing of these pins. The device driving the blanking of video and sequencing ADV601 video interface must use these outputs to of the YSC, CSC, and LC counters. remain in sync with the ADV601. It is expected that this combination of modes would not be used frequently. Decode Mode (video data is output The ADV601 completely manages the These pins are used to control the from the chip) generation and timing of these pins. blanking of video and sequencing of the YSC, CSC, and LC counters.

–24– REV. 0 Video Formats — Multiplexed Philips Video The ADV601 supports a hybrid mode of operation that is a cross between standard dual lane Philips and single lane CCIR-656. In this mode, video data is multiplexed in the same fashion in CCIR-656, but the values 0 and 255 are not reserved as signaling values. In- stead, external HSYNC and VSYNC pins are used for signaling and video synchronization. VCLK may range up to 29.5 MHz. VCLK is driven with up to a 29.5 MHz 50% duty cycle clock synchronous with the video data. Video data is clocked on the rising edge of the VCLK signal. The functionality of HSYNC, VSYNC, and FIELD pins is dependent on three programmable modes of the ADV601: Master-Slave Control, Encode-Decode Control, and 525-625 Control. Table XI summarizes the func- tionality of these pins in various modes. Table XI. Philips Multiplexed Video Master and Slave Modes HSYNC, VSYNC, and FIELD Functionality HSYNC, VSYNC and FIELD Functionality for Multiplexed Master Mode (HSYNC, VSYNC Slave Mode (HSYNC, VSYNC Philips and FIELD Are Outputs) and FIELD Are Inputs) Encode Mode (video data is input The ADV601 completely manages the generation and These pins are used to control the to the chip) timing of these pins. The device driving the ADV601 blanking of video and sequencing. video interface must use these outputs to remain in sync with the ADV601. It is expected that this com- bination of modes would not be used frequently. Decode Mode (video data is output The ADV601 completely manages the generation These pins are used to control the from the chip) and timing of these pins. blanking of video and sequencing. Video Formats — Gray Scale Video The Gray Scale video format requires 4:0:0 data (up to 12 bits) be transmitted over a one “lane” 8- to 12-bit physical interface. A video clock (typically 27 MHz) is transmitted along with the data. This clock is synchronous with the data and runs at twice the transfer rate of the interface. The color space is Gray Scale. Because the ADV601 internal processing is not dependent on color space, Gray Scale data is processed in the same manner as data in other color spaces. VCLK is driven with a 24.54 MHz–29.5 MHz, 50% duty cycle clock which is synchronous with the video data. Video data is clocked on the second rising edge of the VCLK signal. These video formats require external synchronization and blanking signals to accompany digital video. These signals are VSYNC, HSYNC, and FIELD. In general, when the ADV601 is configured as an encoder, these signals will all be inputs. When the ADV601 is configured as a decoder, these signals will be outputs. There are special cases for this format described in Table XII. Table XII. Gray Scale Video Master and Slave Modes HSYNC, VSYNC and FIELD Functionality HSYNC, VSYNC, and FIELD Functionality for Gray Scale Master Mode (HSYNC, VSYNC, Slave Mode (HSYNC, VSYNC, Format CREF and FIELD Are Outputs) CREF and FIELD Are Inputs) Encode Mode (video data is input The ADV601 completely manages the generation and These pins are used to control the to the chip) timing of these pins. The device driving the ADV601 blanking of video and sequencing. video interface must use these outputs to remain in sync with the ADV601. It is expected that this com- bination of modes would not be used frequently. Decode Mode (video data is output The ADV601 completely manages the generation These pins are used to control the from the chip) and timing of these pins. blanking of video and sequencing. Video Formats—References For more information on video interface standards, see the following reference texts.

  • For the definition of CCIR-601: 1992 – CCIR Recommendations RBT series Broadcasting Service (Television) Rec. 601-3 Encoding Parameters of digital television for studios, page 35, September 15, 1992.
  • For the definition of CCIR-656: 1992 – CCIR Recommendations RBT series Broadcasting Service (Television) Rec. 656-1 Interfaces for digital component video signals in 525 and 626 line television systems operating at the 4:2:2 level of Rec. 601 , page 46, September 15, 1992.

–27–REV. 0 Table XIV. Pseudo-Code Describing a Sequence of Video Fields Complete Sequence: <Field 1 Sequence> “Frame N; Field 1” <Field 2 Sequence> “Frame N; Field 2” <Field 1 Sequence> “Frame N+1; Field 1” <Field 2 Sequence> “Frame N+1; Field 2” (Field Sequences) <Field 1 Sequence> “Frame N+M; Field 1” <Field 2 Sequence> “Frame N+M; Field 2” #EOS “Required in decode to let the ADV601 know the sequence of fields is complete.” Field 1 Sequence: #SOF1 <VITC> <First Block Sequence> <Complete Block Sequence> Field 2 Sequence: #SOF2 <VITC> <First Block Sequence> <Complete Block Sequence> First Block Sequence: <TYPE3> <BW> <Huff_Data> Complete Block Sequence: <Block Sequence> ... (Block Sequences) ... <Block Sequence> Block Sequence: #SOB1, #SOB2, #SOB3, #SOB4 or #SOB5 <BW> <Huff_Data>

Figure 13. Block Order of Wavelet Compressed Field Data (Modified Mallat Diagram) Block Sequence is separate from the Complete Block Sequence. video in ADV601 bitstream format appears in Table XVIII.

–29–REV. 0 Table XV. Pseudo-Code of Compressed Video Data Bitstream for One Field of Video Block Sequence Data For Mallat Block Number . . . #SOFn<VITC><TYPE3><BW><Huff_Data> n indicates field 1 or 2 Huff_Data indicates Mallat block 6 data A typical Bin Width (BW) factor for this block is 0x1DDC #SOB4<BW><Huff_Data> Mallat block 9 data—Typical BW = 0x1DDC #SOB3<BW><Huff_Data> Mallat block 20 data—Typical BW = 0x0C2E #SOB3<BW><Huff_Data> Mallat block 22 data—Typical BW = 0x03A1 #SOB3<BW><Huff_Data> Mallat block 19 data—Typical BW = 0x0C2E #SOB3<BW><Huff_Data> Mallat block 23 data—Typical BW = 0x03A1 #SOB3<BW><Huff_Data> Mallat block 17 data—Typical BW = 0x0C2E #SOB3<BW><Huff_Data> Mallat block 25 data— Typical BW = 0x0306 #SOB3<BW><Huff_Data> Mallat block 16 data—Typical BW = 0x0C2E #SOB3<BW><Huff_Data> Mallat block 26 data —Typical BW = 0x0306 #SOB3<BW><Huff_Data> Mallat block 14 data—Typical BW = 0x0E9D #SOB3<BW><Huff_Data> Mallat block 28 data—Typical BW = 0x0306 #SOB3<BW><Huff_Data> Mallat block 13 data—Typical BW = 0x0E9D #SOB3<BW><Huff_Data> Mallat block 29 data—Typical BW = 0x0306 #SOB1<BW><Huff_Data> Mallat block 11 data—Typical BW = 0x2410 #SOB1<BW><Huff_Data> Mallat block 31 data—Typical BW = 0x0114 #SOB3<BW><Huff_Data> Mallat block 10 data—Typical BW = 0x2410 #SOB1<BW><Huff_Data> Mallat block 32 data—Typical BW = 0x0114 #SOB3<BW><Huff_Data> Mallat block 8 data—Typical BW = 0x2410 #SOB1<BW><Huff_Data> Mallat block 34 data—Typical BW = 0x00E5 #SOB3<BW><Huff_Data> Mallat block 7 data—Typical BW = 0x2410 #SOB1<BW><Huff_Data> Mallat block 35 data—Typical BW = 0x00E6 #SOB3<BW><Huff_Data> Mallat block 5 data—Typical BW = 0x2B46 #SOB1<BW><Huff_Data> Mallat block 37 data—Typical BW = 0x00E6 #SOB3<BW><Huff_Data> Mallat block 4 data—Typical BW = 0x2B46 #SOB1<BW><Huff_Data> Mallat block 38 data—Typical BW = 0x00E6 #SOB3<BW><Huff_Data> Mallat block 2 data—Typical BW = 0xC62B #SOB1<BW><Huff_Data> Mallat block 40 data—Typical BW = 0x009A #SOB3<BW><Huff_Data> Mallat block 1 data—Typical BW = 0xC62B #SOB1<BW><Huff_Data> Mallat block 41 data—Typical BW = 0x009A #SOB4<BW><Huff_Data> Mallat block 0 data—Typical BW = 0xA417 #SOB2<BW><Huff_Data> Mallat block 39 data—Typical BW = 0x007F #SOB4<BW><Huff_Data> Mallat block 12 data—Typical BW = 0x0C1A #SOB2<BW><Huff_Data> Mallat block 36 data—Typical BW = 0x00BE #SOB4<BW><Huff_Data> Mallat block 15 data—Typical BW = 0x0A16 #SOB2<BW><Huff_Data> Mallat block 33 data—Typical BW = 0x00BE #SOB4<BW><Huff_Data> Mallat block 18 data— Typical BW = 0x0A16 #SOB2<BW><Huff_Data> Mallat block 30 data— Typical BW = 0x00E4 #SOB2<BW><Huff_Data> Mallat block 21 data—Typical BW = 0x0301 #SOB2<BW><Huff_Data> Mallat block 27 data—Typical BW = 0x0281 #SOB2<BW><Huff_Data> Mallat block 24 data—Typical BW = 0x0281 #SOB4<BW><Huff_Data> Mallat block 3 data—Typical BW = 0x23D5 Table XVI specifies the Mallat block transfer order and associated Start of Block (SOB) codes. Any of these SOB codes can be replaced with an SOB#5 code for a zero data block. Table XVI. Pseudo-Code of Compressed Video Data Bitstream for One Sequence of Video Fields Block Sequence Data For Mallat Block Number ... (41 #SOBn blocks) ... (41 #SOBn blocks) . (any number of Fields in sequence) #EOS /* Required in decode to end field sequence*/

–30– REV. 0 Table XVII. ADV601 Field and Block Delimiters (Codes) Code Name Code Description (Align all #Delimiter Codes to 32-Bit Boundaries) #SOF1 0xffffffff40000000Start of Field delimiter identifies Field1 data. #SOF1 resets the Huffman decoder and is sufficient on its own to reset the processing of the chip during decode. Please note that this code or #SOF2 are the only delimiters necessary between adjacent fields. #SOF1 operates identically to #SOF2 except that during decode it can be used to differentiate between Field1 and Field2 in the generation of the Field signal (master mode) and/or SAV/EAV codes for CCIR-656 modes. #SOF2 0xffffffff41000000Start of Field delimiter identifies Field2 data. #SOF resets the Huffman decoder and is sufficient on its own to reset the processing of the chip during decode. Please note that this code or #SOF1 are the only delimiters necessary between adjacent fields. #SOF2 operates identically to #SOF1 except that during decode it can be used to differentiate between Field2 and Field1 in the generation of the Field signal (master mode) and/or SAV/EAV codes for CCIR-656 modes. <VITC> (96 bits) This is a 12-byte string of data extracted by the video interface during encode opera- tions and inserted by the video interface into the video data during decode operations. The data content is 90 bits in length. For a complete description of VITC format, see pages 175-178 of Video Demystified: A Handbook For The Digital Engineer (listed in References section). <TYPE1> 0x81 This is an 8-bit delimiter-less type code for the first sub-band block of wavelet data. (Model 1 Chroma) <TYPE2> 0x82 This is an 8-bit delimiter-less type code for the first sub-band block of wavelet data. (Model 1 Luma) <TYPE3> 0x83 This is an 8-bit delimiter-less type code for the first sub-band block of wavelet data. (Model 2 Chroma) <TYPE4> 0x84 This is an 8-bit delimiter-less type code for the first sub-band block of wavelet data. (Model 2 Luma) #SOB1 0xffffffff81Start of Block delimiter identifies the start of Huffman coded sub-band data. This #SOB2 0xffffffff82delimiter will reset the Huffman decoder if a system ever experiences bit errors or gets #SOB3 0xffffffff83out of sync. The order of blocks in the frame is fixed and therefore implied in the bit #SOB4 0xffffffff84stream and no unique #SOB delimiters are needed per block. There are 41 #SOB #SOB5 0xffffffff8fdelimiters and associated BW and Huffman data within a field. #SOB1 is differenti- ated from #SOB2, #SOB3 and #SOB4 in that they indicate which model and Huffman table was used in the Run Length Coder for the particular block: #SOB1 Model 1 Chroma #SOB2 Model 1 Luma #SOB3 Model 2 Chroma #SOB4 Model 2 Luma #SOB5 Zero data block. All data after this delimiter and before the next start of block delimiter is ignored (if present at all) and assumed zero including the BW value.

–31–REV. 0 Table XVIII. ADV601 Field and Block Delimiters (Codes) Code Name Code Description (Align all #Delimiter Codes to 32-Bit Boundaries) (Continued) <BW> (16 bits, 8.8)This data code is not entropy coded, is always 16 bits in length and defines the Bin Width Quantizer control used on all data in the block sub-band. During decode, this value is used by the Quantizer. If this value is set to zero during decode, all Huffman data is presumed to be zero and is ignored, but must be included. During encode, this value is calculated by the external DSP and is inserted into the bit stream by the ADV601 (this value is not used by the quantizer). Another value calculated by the DSP, 1/BW is actually used by the Quantizer during encode. <HUFF_DATA>(Modulo 32)This data is the quantized and entropy coded block sub-band data. The data’s length is dependent on block size and entropy coding so it is therefore variable in length. This field is filled with 1s making it Modulo 32 bits in length. Any Huffman decode process can be interrupted and reset by any unexpectedly received # delimiter following a bit error or synchronization problem. #EOS 0xffffffffc0ffffffThe host sends the #EOS (End of Sequence) to the ADV601 during decode after the last field in a sequence to indicate that the field sequence is complete. The ADV601 does not append this code to the end of encoded field sequences; it must be added by the host. Table XIX. Video Data Bitstream for One Field In a Video Sequence 1 ffff ffff 4000 0000 0000 0000 0000 0000 0000 0000 8400 00ff df0d 8effffff ffff 8400 00ff df0c daffffff ffff 8300 00ff 609f ffffffff ffff 8300 00fe c5af ffff ffff ffff 8300 00ff 609f ffffffff ffff 8300 00fe c5af ffffffff ffff 8300 00ff 609f ffffffff ffff 8300 00fe c70f ffffffff ffff 8300 00ff 609f ffffffff ffff 8300 00fe c70f ffffffff ffff 8300 00ff 609f ffffffff ffff 8300 00fe c78f ffff ffff ffff 8300 00ff 609f ffffffff ffff 8300 00fe c78f ffffffff ffff 8300 00ff 6894 3fffffff ffff 811d 40f0 90ff ffffffff ffff 8300 00ff 6894 3fffffff ffff 811d 40f0 90ff ffffffff ffff 8300 00ff 68aa bfffffff ffff 8116 80f0 9bff ffff ffff ffff 8300 00ff 68aa bfffffff ffff 8116 80f0 9bff ffffffff ffff 8300 00ff 6894 3fffffff ffff 8116 80f0 9fff ffffffff ffff 8300 00ff 6894 3fffffff ffff 8116 80f0 9fff ffffffff ffff 8300 00ff fe62 a2ffffff ffff 8103 e6e9 d74d 75d7 5d75 d75a f8f9 74eb d7af 5ebd 7af5 ebf0 f8f8 f979 7979 7979 7979 79fd 5f5f c7e3 f1f8 fc7e 3f1f 8fc7 e5fa ff6f d5f6 7d9f 67d9 f67d 9f67 d9f6 7edf abec f87c 3e1f 0f87 c3e1 f0f8 fd9f 1f1f 2f2f 2f2f 2f2f 2f2f 2f1f 2ebd 7af5 ebd7 ae9d 74e9 a56d 6b5a d6b5 a2b0 d249 24a5 ce36 db6d b6db 6db7 c6fd fd3d 3d3d 3d3d 3d3d 3d3b 7a7b fbfb fbfb fbfb fbfb fcfd bdfe dfb7 edfb 7eef bbee fbbe dfbb dbe7 f6fd ff7f dff7 fdff 7fdf f7fd feff 3fbb effb feff bfef fbfe ffbf efff ffffffff ffff 8300 00ff fe62 a2ffffff ffff 8103 e6fd bfab f9bf 57d5 f2eb 18f4 f9fd ffb7 f5ff 3feb fafc 7431 e9f4 fbff 77eb fd3f b3ec f2d5 efeb f6fe 1fbb f67e afdb f0f3 aaed edf7 fe3f 57ed fd7f bbe3 d2d3 dfe7 f87e 5f57 eefd 9fbb e5d6 2fdf e7f8 7eff abf7 7ecf ddf2 eb17 eff3 fc3f 7fd5 fbbf 67ee f975 8bf7 f9fe 1fbf eafd dfb3 f77c bac5 fbfc ff0f dff5 7eef d9fb be5d 62fd fe7f 87ef fabf 77ec fddf 2eb1 7eff 3fc3 f7fd 5fbb f67e ef97 58bf 7f9f e1fb feaf ddfb 3f77 cbac 5fbf cff0 fdff 57ee fd9f bbe5 d62f dfe7 f87e ffaf f77e cfab e5d6 2fe9 f3fc 7f7f d9f5 7edf abc7 431e 9f4f c7f8 7fff ffff ffff ffff 8400 00ff dfb7 c5ff df0d 7fffffff ffff 8202 9afc 3eff b7e9 ede9 e9e9 e9e9 e9e9 e9e9 e9e9 e9e9 e9e9 e9e9 dbef fbbe 9efe 9dbb 76ed dbb7 6edd bb76 eddb b76e ddb7 fbbe df9f af6d b6db 6db6 db6d b6db 6db6 db6d aff6 fd3d bbed 7bde f7bd ef7b def7 bdef 75f4 f7f4 dee9 2492 4924 924c fa7b 77da 6991 f4f7 efb4 d323 e9ed df69 a647 d3db bed3 4c8f a7b7 7da6 991f 4f7e fb4d 323e 9edd f69a 647d 3dbb ed34 c8fa 7b77 da69 647c fd7b 6100 0000 0045 bdfd 37bb 8888 8888 8888 8888 8aff ffff ffff ffff 8400 00ff c9a7 1fffffff ffff 820f 00ff 7704 4fffffff ffff 8400 00ff c9a7 1fffffff ffff 820f 00ff 7704 bfffffff ffff 8400 00ff c9a7 1fffffff ffff 8213 80ff 7703 5fffffff ffff 8200 00ff 7743 1fffffff ffff 8200 00ff 7743 1fff ffff ffff 8200 00ff 7745 efffffff ffff 8400 00ff df0c daff NOTE 1This table shows ADV601 compressed data for one field in a color ramp video sequence. The SOF# and SOB# codes in the data are i n bold text. Bit Error Tolerance Bit error tolerance is ensured because a bit error within a Huffman coded stream does not cause #delimiter symbols to be misread by the ADV601 in decode mode. The worst error that can occur is loss of a complete block of Huffman data. With the ADV601, this type of error results only in some blurring of the decoded image, not complete loss of the image.

  • Using the ADV601 in computer applications
  • Using the ADV601 in standalone applications
  • Configuring the host interface for 8-, 16- or 32-bit data paths
  • Connecting the video interface to popular video encoders and decoders
  • Getting the most out of the ADV601 The following Analog Devices products should be considered in ADV601 designs:
  • ADV7175/ADV7176—Digital YUV to analog composite video encoder
  • AD722—Analog RGB to analog composite video encoder
  • AD1843—Audio codec with embedded video synchronization
  • ADSP-21xx—Family of fixed-point digital signal processors
  • AD8xxx—Family of video operational amplifiers Using the ADV601 in Computer Applications Many key features of the ADV601 were driven by the demand- ing cost and performance requirements of computer applica- tions. The following ADV601 features provide key advantages in computer applications:
  • Host Interface The 512 double word FIFO provides necessary buffering of compressed digital video to deal with PCI bus latency.
  • Low Cost External DRAM Unlike many other real-time compression solutions, the ADV601 does not require expensive external SRAM trans- form buffers or VRAM frame stores. D0–D7 D8–D15 D16–D23 D24–D31 A28 A29 A30 A31 DECODE 1 DECODE 2 VCLK CREF VSYNC HSYNC VDATA [2:9] LLC CREF ODD HREF FIELD XTAL SAA7110 29.50000MHz PAL OR 24.54543MHz NTSC ADR0 ADR1 DQ0–DQ7 DQ8–DQ15 DQ16–DQ23 DQ24–DQ31 CS STATS_R LCODE 26.80000MHz XTAL A0–A8 D0–D15 A0–A8 DQ1–DQ16 NOTE: DECODE

1 ASSERTS CS ~ ON THE

Figure 14. A Suggested PC Application Design ADSP-2105) will be available at no cost from Analog Devices. operations occur over the host interface in this design. Devices has not actually built or tested these circuits. output data to the ADV601 data rates. stream of active and blanked data as required by the ADV601. setting the VCLK2 bit in the Mode Control register.

–35–REV. 0 ADV601 GETTING THE MOST OUT OF ADV601 The unique sub-band block structure of luminance and color components in the ADV601 offers many unique application benefits. Analog Devices will offer a Feature Software Library as well as separate feature application documentation to help users exploit these features. The following section provides an o ver- view of only some of the features and how they are achieved with the ADV601. Please refer to Figures 2 and 3 as necessary. Higher Compression With Interfield Techniques The ADV601 normally operates as a field-independent codec. However, through use of the sub-bands it is possible to use the ADV601 with interfield techniques to achieve even higher levels of compression. In such applications, each field is not com- pressed separately, thus accessing the compressed bit stream can only be done at specific points in time. There are two gen- eral ways this can be accomplished:

  • Subsampling high frequency blocks The human visual system is more sensitive to interframe motion of low frequency block than to motion in high fre- quency blocks. The host software driver of the ADV601 allows exploitation of this option to achieve higher com- pression. Note that the compressed bit stream can only be accessed at points where the high frequency blocks have just been updated.
  • Updating the image with motion detection In applications where the video is likely to have no motion for extended periods of time (video surveillance in a vacant build- ing, for instance), it is only necessary to update the image either periodically or when motion occurs. By using the wave- let sub-bands to detect motion (see later in this section), it is possible to achieve very high levels of compression when motion is infrequent. Scalable Compression Technology The ADV601 offers many different options for scaling the im- age, the compressed bit stream bandwidth and the processing horsepower for encode or decode. Because the ADV601 em- ploys decimators, interpolators and filters in the filter bank, the scaling function creates much higher quality images than achieved through pixel dropping. Mixing and matching the many scaling options is useful in network applications where transmission pipes may vary in available bit rate, and decode/ encode capabilities may be a mix of software and hardware. These are the key options:
  • Extract scaled images by factors of 2 from the compressed bit stream This is useful in video editing applications where thumbnail sketches of fields need to be displayed. In this case, editing software can quickly extract and decode the desired image. This technique eliminates the burden of decoding an entire image and then scaling to the desired size.
  • Use software to decode bit stream Decoding an entire CCIR-601 resolution image in real time at 50/60 fields per second does require the ADV601 hard ware. Analog Devices provides a bit-exact ADV601 simulator that can decode a scaled image in real time or a full-size image off- line. Image size and frame rates depend on the performance of the host processor.
  • Scale bit stream The compressed video bit stream was created with simple parsing in mind. This type of parsing means that a lower resolution/lower bandwidth bit stream can be extracted with little computational burden. Generally, this effect is accom- plished by selecting a subset of lower frequency blocks. This technique is useful in applications where the same video source material must be sent over a range of different commu- nication pipes {i.e., ISDN p(128 Kbps), T1 (1.5 Mpbs) or T3 (45 Mbps)}.
  • Use software to encode In this case, a host CPU could encode a smaller image size and fill in high frequency blocks with zeros. Again, image quality would depend on the performance of the host. The Bin Width may be set to zero, zeroing out the data in any particular Mallat block. Parametric Image Filtering The ADV601 offers a unique set of image filtering capabilities not found in other compression technologies. The ADV601 quantizer is capable of attenuating any or all of the luminance or chrominance blocks during encode or decode. Here are some of the possible applications:
  • Parametric softening of color saturation and contrast during encode or decode Trade off image softness for higher compression. Attenuation of the higher frequency blocks during encode leads to softer images, but it can lead to much higher compression perfor- mance.
  • Color saturation control This effect is achieved by controlling gain of low pass chromi- nance blocks during encode or decode.
  • Contrast control This effect is achieved by controlling the gain of the low fre- quency luminance blocks during encode or decode.
  • Fade to black This effect achieved by attenuation of luminance blocks. Mixing of Two or More Images Blocks from different images can be mixed into the bit stream and then sent to the ADV601 during decode. The result is high quality mixing of different images. This also provides the capa- bility to fade from one image to the next. Edge or Motion Detection In certain remote video surveillance and machine vision applica- tions, it is desirable to detect edges or motion. Edges can be quickly found through evaluation of the high frequency blocks. Motion searches can be achieved in two ways:
  • Evaluation of the smallest luminance block . Because the size of the smallest block is from 20 × 15 pixels (for square pixel NTSC) to 24 × 18 pixels (square pixel PAL), the computa- tional burden is significantly less than doing an evaluation over the entire image.
  • Polling the Sum of Squares registers. Because large changes in the video data create patterns, it is possible to detect motion in the video by polling the Sum of Squares registers, looking for patterns and changes.

–36– REV. 0 ADV601–SPECIFICATIONS The ADV601 video codec uses a Bi-Orthogonal (7, 9) Wavelet Transform. RECOMMENDED OPERATING CONDITIONS Parameter Description Min Max Unit VDD Supply Voltage 4.50 5.50 V TAMB Ambient Operating Temperature 0 +70 °C

ELECTRICAL CHARACTERISTICS

Parameter Description Test Conditions Min Max Unit VIH Hi-Level Input Voltage @ V DD = max 2.0 N/A V VIL Lo-Level Input Voltage @ V DD = min N/A 0.8 V VOH Hi-level Output Voltage @ V DD = min, IOH = –0.5 mA 2.4 N/A V VOL Lo-Level Output Voltage @ V DD = min, IOL = 2 mA N/A 0.4 V IIH Hi-Level Input Current @ V DD = max, VIN = VDD max N/A 10 µA IIL Lo-Level Input Current @ V DD = max, VIN = 0 V N/A 10 µA IOZH Three-State Leakage Current @ V DD = max, VIN = VDD max N/A 10 µA IOZL Three-State Leakage Current @ V DD = max, VIN = 0 V N/A 10 µA CI Input Pin Capacitance @ V IN = 2.5 V, fIN = 1.0 MHz, TAMB = 25°C N/A 8* pF CO Output Pin Capacitance @ V IN = 2.5 V, fIN = 1.0 MHz, TAMB = 25°C N/A 8* pF *Guaranteed but not tested. ABSOLUTE MAXIMUM RATINGS* Parameter Description Min Max Unit VDD Supply Voltage –0.3 +7 V VIN Input Voltage N/A V DD ± 0.3 V VOUT Output Voltage N/A V DD ± 0.3 V TAMB Ambient Operating Temperature 0 +70 °C TS Storage Temperature –65 +150 °C TL Lead Temperature (5 sec) PQFP N/A +280 °C *Stresses greater than those listed above under Absolute Maximum Ratings may cause permanent damage to the device. This is a st ress rating only; functional opera- tion of the device at these or any other conditions above those indicated in the Pin Definitions section of this specification is not implied. Exposure to maximum rating conditions for extended periods may affect device reliability. SUPPLY CURRENT AND POWER Parameter Description Test Conditions Min Max Unit IDD Supply Current (Dynamic) @ V DD = max, tVCLK_CYC = 37 ns (at 27 MHz VCLK) 0.11 0.27 A IDD Supply Current (Soft Reset) @ V DD = max, tVCLK_CYC = 37 ns (at 27 MHz VCLK) 0.08 0.17 A IDD Supply Current (Idle) @ V DD = max, tVCLK_CYC = None 0.01 0.02 A ENVIRONMENTAL CONDITIONS Parameter Description Max Unit θCA Case-to-Ambient Thermal Resistance 42 °C/W θJA Junction-to-Ambient Thermal Resistance 60 °C/W θJC Junction-to-Case Thermal Resistance 18 °C/W WARNING! ESD SENSITIVE DEVICE CAUTION The ADV601 is an ESD (electrostatic discharge) sensitive device. Electrostatic charges readily accumulate on the human body and equipment and can discharge without detection. Permanent damage may occur to devices subjected to high energy electrostatic discharges. Proper ESD precautions are strongly recommended to avoid functional damage or performance degradation. The ADV601 latchup immunity has been demonstrated at ≥100 mA/–80 mA on all pins when tested to industry standard/JEDEC methods.

Figure 27. CCIR-656 Video—Line (Horizontal) and Frame (Vertical) Transfer Timing Note that for CCIR-656 Video—Decode and Master Line (Horizontal) timing, VDATA is synchronous with VCLK0.

Figure 32. Gray Scale/Philips Video—Line (Horizontal) and Frame (Vertical) Transfer Timing Note: For CCIR-656 Video—Decode and Master Line (Horizontal) timing, VDATA is synchronous with VCLK0.

Data and Interrupt Mask/Status registers, your system MUST observe ACK and RD or WR assertion timing. 1RD input must be asserted (low) until ACK is asserted (low). 2Maximum tDATA_D_RDD varies with VCLK according to the formula: t DATA_D_RDD (MAX) = 4 (VCLK Period) +16. 3During STATS_R deasserted (low) conditions, t DATA_D_RDD may be as long as 52 VCLK periods. 4Minimum tRD_D_WRT varies with VCLK according to the formula: t RD_D_WRT (MIN) = 1.5 (VCLK Period) –4.1. 5Maximum tACK_D_RDD varies with VCLK according to formula: t ACK_D_RDD (MAX) = 7 (VCLK Period) +14.8. 6During STATS_R deasserted (low) conditions, t ACK_D_RDD may be as long as 52 VCLK periods. Figure 37. Host (Indirect Address, Indirect Register Data, and Interrupt Mask/Status) Read Transfer Timing

1WR input must be asserted (low) until ACK is asserted (low). 2Minimum tWR_D_RDT varies with VCLK according to the formula: t WR_D_RDT (MIN) = 0.8 (VCLK Period) +7.4. 3Maximum tWR_D_WRD varies with VCLK according to the formula: t ACK_D_WRD (MAX) = 4.3 (VCLK Period) +14.8. 4During STATS_R deasserted (low) conditions, t ACK_D_WRD may be as long as 52 VCLK periods. Figure 38. Host (Indirect Address, Indirect Register Data, and Interrupt Mask/Status) Write Transfer Timing

signal assertion timing, your system does NOT have to wait for the ACK signal between new compressed data addresses. Figure 39. Host (Compressed Data) Read Transfer Timing

Figure 40. Host (Compressed Data) Write Transfer Timing

1Maximum tTCLK_TXD_D varies with VCLK according to the formula: t TCLK_TXD_D (MAX) = 0.5 (VCLK Period) +4.7. 2Minimum tTCLK_RXD_H varies with VCLK according to the formula: t TCLK_RXD_H (MIN) = 1.5 (VCLK Period) –36. Figure 41. DSP Read and Write Transfer Timing

–50– REV. 0 Pin Pin Pin Name Type

1 DATA4 I/O

2 DATA3 I/O

3 DATA2 I/O

4 DATA1 I/O

5 DATA0 I/O

6 VDD POWER

7 GND GROUND

8 RD I

9 WR I

10 CS I

11 ADR1 I

12 ADR0 I

13 GND GROUND

14 BE3 I

15 BE2 I

16 BE1 I

17 BE0 I

18 GND GROUND

19 RESET I

20 VDD POWER

21 ACK O

22 VDD POWER

23 GND GROUND

24 HIRQ O

25 LCODE O

26 FIFO_ERR O

27 FIFO_STP O

28 FIFO_SRQ O

29 STATS_R O

30 VDD POWER

31 DIRQ O

32 TXD O

33 TF O

34 TCLK O

35 GND GROUND

36 RXD I

37 RF I

38 GND GROUND

39 VDD POWER

40 DADR8 O

41 DADR7 O

42 DADR6 O

43 DADR5 O

44 DADR4 O

45 DADR3 O

46 VDD POWER

47 GND GROUND

48 DADR2 O

49 DADR1 O

50 DADR0 O

51 VDD POWER

52 GND GROUND

53 RAS O

54 CAS O

55 WE O

56 GND GROUND

57 VDD POWER

58 GND GROUND

59 VDD POWER

60 DDAT15 I/O

61 DDAT14 I/O

62 DDAT13 I/O

63 GND GROUND

64 DDAT12 I/O

65 DDAT11 I/O

66 DDAT10 I/O

67 DDAT9 I/O

68 GND GROUND

69 VDD POWER

70 DDAT8 I/O

71 DDAT7 I/O

72 DDAT6 I/O

73 DDAT5 I/O

74 GND GROUND

75 VDD POWER

76 DDAT4 I/O

77 DDAT3 I/O

78 DDAT2 I/O

79 DDAT1 I/O

80 DDAT0 I/O

81 GND GROUND

82 VDATA19 I/O

83 VDATA18 I/O

84 VDATA17 I/O

85 VDATA16 I/O

86 VDATA15 I/O

87 VDATA14 I/O

88 VDD POWER

89 GND GROUND

90 VDATA13 I/O

91 VDATA12 I/O

92 VDATA11 I/O

93 VDATA10 I/O

94 VDD POWER

95 CREF I/O

96 GND GROUND

97 ENC O

98 VCLKO O

99 VDD POWER

100 XTAL I

101 VCLK I

102 GND GROUND

103 FIELD I OR O

104 HSYNC I OR O

105 VSYNC I OR O

106 GND GROUND

107 VDD POWER

108 VDATA9 I/O

109 VDATA8 I/O

110 VDATA7 I/O

111 VDATA6 I/O

112 GND GROUND

113 VDD POWER

114 VDATA5 I/O

115 VDATA4 I/O

116 VDATA3 I/O

117 VDATA2 I/O

118 VDATA1 I/O

119 VDATA0 I/O

120 GND GROUND

121 DATA31 I/O

122 DATA30 I/O

123 DATA29 I/O

124 DATA28 I/O

125 VDD POWER

126 GND GROUND

127 DATA27 I/O

128 DATA26 I/O

129 DATA25 I/O

130 DATA24 I/O

131 GND GROUND

132 DATA23 I/O

133 DATA22 I/O

134 DATA21 I/O

135 DATA20 I/O

136 GND GROUND

137 VDD POWER

138 DATA19 I/O

139 DATA18 I/O

140 DATA17 I/O

141 DATA16 I/O

142 GND GROUND

143 GND GROUND

144 VDD POWER

145 GND GROUND

146 VDD POWER

147 DATA15 I/O

148 DATA14 I/O

149 DATA13 I/O

150 GND GROUND

151 DATA12 I/O

152 DATA11 I/O

153 DATA10 I/O

154 DATA9 I/O

155 GND GROUND

156 VDD POWER

157 DATA8 I/O

158 DATA7 I/O

159 DATA6 I/O

160 DATA5 I/O

–51–REV. 0 PIN CONFIGURATION 116 117 119 114 115 112 113 111 12 0 110 118 105 106 107 108 103 104 102 100 101 109 160 159 158 157 156 155 154 153 152 151 143 150 149 148 147 146 145 144 142 141 140 139 138 137 136 135 134 133 132 131 130 129 128 127 126 125 124 123 122 12 1 PIN 1 IDENTIFIER PQFP TOP VIEW (Pins Down) DATA5 DATA6 DATA7 DATA8 GND DATA9 DATA10 DATA11 DATA12 GND DATA13 DATA14 DATA15 VDD GND VDD GND GND DATA16 DATA17 DATA18 DATA19 VDD GND DATA20 DATA22 DATA23 GND DATA24 DATA25 DATA26 DATA27 GND VDD DATA28 DATA29 DATA30 DATA31 DATA21 VDD DADR7 DADR6 DADR5 DADR4 DADR3 VDD GND DADR2 DADR1 DADR0 VDD GND DDAT15 DDAT14 DDAT13 GND DDAT12 DDAT11 DDAT10 DDAT9 GND VDD DDAT8 DDAT7 DDAT6 DDAT5 GND VDD DDAT4 DDAT3 RAS CAS WE GND VDD GND VDD DDAT2 DDAT1 DDAT0 GND VDATA0 VDATA1 VDATA2 VDATA3 VDATA4 VDATA5 VDD GND VDATA6 VDATA7 VDATA8 VDATA9 VDD GND VSNYC HSNYC FIELD GND VCLK XTAL VDD VCLKO ENC GND CREF VDD VDATA10 VDATA11 VDATA12 VDATA13 GND VDD VDATA14 VDATA15 VDATA16 VDATA17 VDATA18 VDATA19 GND DATA4 DATA3 DATA2 DATA1 DATA0 VDD GND RD WR CS ADR1 ADR0 GND BE3 BE2 BE1 BE0 GND RESET VDD ACK VDD GND HIRQ LCODE FIFO_ERR FIFO_STP FIFO_SRQ STATS_R VDD DIRQ TXD TF TCLK GND RXD RF GND VDD DADR8 ADV601

–52– REV. 0 OUTLINE DIMENSIONS Dimensions shown in inches and (mm). C3041–12–4/97PRINTED IN U.S.A. 160-Lead PQFP (S-160) TOP VIEW (PINS DOWN) PIN 1 121 160 120 1.238 (31.45) 1.228 (31.20) TYP SQ 1.219 (30.95) 0.028 (0.72) 0.026 (0.65) TYP LEAD 0.023 (0.58)PITCH 1.106 (28.10) 1.102 (28.00) TYP SQ 1.098 (27.90) 1.008 (25.60) 0.998 (25.35) TYP SQ 0.988 (25.10) 0.015 (0.38) 0.012 (0.30) TYP LEAD 0.009 (0.22)WIDTH 0.160 (4.07) MAX 0.041 (1.03) 0.035 (0.88) TYP 0.029 (0.73) SEATING PLANE 0.004 (0.10) MAX 0.010 (0.25) MIN 0.145 (3.67) 0.135 (3.42) TYP 0.125 (3.17) ORDERING GUIDE Part Number Ambient Temperature Range 1 Package Description Package Option 2 ADV601JS 0 °C to +70°C 160-Lead PQFP S-160 NOTES 1J = Commercial temperature range (0 °C to +70°C). 2S = PQFP (Plastic Quad Flatpack).