|
If you can't view the Datasheet, Please click here to try to view without PDF Reader . |
|
Datasheet File OCR Text: |
multiformat sdtv video decoder ADV7183B rev. b 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 that may result from its use. specifications subject to change without notice. no license is granted by implication or otherwise under any patent or patent ri ghts of analog devices. trademarks and registered trademarks are the prop erty of their respective owners. one technology way, p.o. box 9106, norwood, ma 02062-9106, u.s.a. tel: 781.329.4700 www.analog.com fax: 781.461.3113 ? 2005 analog devices, inc. all rights reserved. features multiformat video decoder supports ntsc-(j, m, 4.43), pal-(b/d/g/h/i/m/n), secam integrates three 54 mhz, 10-bit adcs clocked from a single 27 mhz crystal line-locked clock-compatible (llc) adaptive digital line length tracking (adllt?), signal processing, and enhanced fifo management give mini- tbc functionality 5-line adaptive comb filters proprietary architecture for locking to weak, noisy, and unstable video sources such as vcrs and tuners subcarrier frequency lock and status information output integrated agc with adaptive peak white mode macrovision? copy protection detection chroma transient improvement (cti) digital noise reduction (dnr) multiple programmable analog input formats composite video (cvbs) s-video (y/c) yprpb component (vesa, mii, smpte, and betacam) 12 analog video input channels automatic ntsc/pal/secam identification digital output formats (8-bit or 16-bit) itu-r bt.656 ycrcb 4:2:2 output + hs, vs, and field 0.5 v to 1.6 v analog signal input range differential gain: 0.5% typ differential phase: 0.5 typ programmable video controls peak white/hue/brightness/saturation/contrast integrated on-chip video timing generator free-run mode (generates stable video output with no i/p) vbi decode support for close captioning, wss, cgms, edtv, gemstar? 1/2 power-down mode 2-wire serial mpu interface (i 2 c?-compatible) 3.3 v analog, 1.8 v digital core; 3.3 v io supply 2 temperature grades: 0c to +70c and C40c to +85c 80-lead lqfp pb-free package applications dvd recorders video projectors hdd-based pvrs/dvdrs lcd tvs set-top boxes security systems digital televisions avr receivers general description the ADV7183B integrated video decoder automatically detects and converts a standard analog baseband television signal- compatible with worldwide standards ntsc, pal, and secam into 4:2:2 component video data-compatible with 16-/8-bit ccir601/ccir656. the advanced and highly flexible digital output interface enables performance video decoding and conversion in line- locked clock-based systems. this makes the device ideally suited for a broad range of applications with diverse analog video characteristics, including tape-based sources, broadcast sources, security/surveillance cameras, and professional systems. the 10-bit accurate a/d conversion provides professional quality video performance and is unmatched. this allows true 8-bit resolution in the 8-bit output mode. the 12 analog input channels accept standard composite, s-video, yprpb video signals in an extensive number of combinations. agc and clamp restore circuitry allow an input video signal peak-to-peak range of 0.5 v up to 1.6 v. alternatively, these can be bypassed for manual settings. the fixed 54 mhz clocking of the adcs and datapath for all modes allows very precise, accurate sampling and digital filtering. the line-locked clock output allows the output data rate, timing signals, and output clock signals to be synchronous, asynchronous, or line locked even with 5% line length variation. the output control signals allow glueless interface connections in almost any application. the ADV7183B modes are set up over a 2-wire, serial, bidirectional port (i 2 c-compatible). the ADV7183B is fabricated in a 3.3 v cmos process. its monolithic cmos construction ensures greater functionality with lower power dissipation. the ADV7183B is packaged in a small 80-lead lqfp pb-free package.
ADV7183B rev. b | page 2 of 100 table of contents introduction ...................................................................................... 4 analog front end ......................................................................... 4 standard definition processor (sdp)........................................ 4 functional block diagram .......................................................... 5 specifications ..................................................................................... 6 electrical characteristics............................................................. 6 video specifications..................................................................... 7 timing specifications .................................................................. 8 analog specifications................................................................... 8 thermal specifications ................................................................ 9 timing diagrams.......................................................................... 9 absolute maximum ratings.......................................................... 10 esd caution................................................................................ 10 pin configuration and function descriptions........................... 11 analog front end ........................................................................... 13 analog input muxing ................................................................ 13 manual input muxing................................................................ 15 global control registers ............................................................... 16 power-save modes...................................................................... 16 reset control .............................................................................. 16 global pin control ..................................................................... 17 global status registers................................................................... 19 identification............................................................................... 19 status 1 ......................................................................................... 19 autodetection result.................................................................. 19 status 2 ......................................................................................... 19 status 3 ......................................................................................... 19 standard definition processor (sdp).......................................... 20 sd luma path ............................................................................. 20 sd chroma path......................................................................... 20 sync processing........................................................................... 21 vbi data recovery..................................................................... 21 general setup.............................................................................. 21 color controls ............................................................................ 23 clamp operation........................................................................ 25 luma filter .................................................................................. 26 chroma filter.............................................................................. 29 gain operation........................................................................... 30 chroma transient improvement (cti) .................................. 33 digital noise reduction (dnr) ............................................... 34 comb filters................................................................................ 35 av code insertion and controls ............................................. 37 synchronization output signals............................................... 39 sync processing .......................................................................... 46 vbi data decode ....................................................................... 47 pixel port configuration ............................................................... 59 mpu port description................................................................... 60 register accesses ........................................................................ 61 register programming............................................................... 61 i 2 c sequencer.............................................................................. 61 ip2pc register maps ..................................................................... 62 i 2 p c register map details ........................................................... 118h 66 52h i 2 c programming examples.......................................................... 119h 88 53h examples in this section use a 28 mhz clock. ...................... 120h 88 54h examples using 27 mhz clock................................................ 121h 92 55h pcb layout recommendations.................................................... 122h 94 56h analog interface inputs ............................................................. 123h 94 57h power supply decoupling ......................................................... 124h 94 58h pll ............................................................................................... 125h 94 59h digital outputs (both data and clocks) ................................ 126h 94 60h digital inputs .............................................................................. 127h 94 61h antialiasing filters ..................................................................... 128h 95 ADV7183B rev. b | page 3 of 100 62h crystal load capacitor value selection................................... 129h 95 63h typical circuit connection ........................................................... 130h 96 64h outline dimensions........................................................................ 131h 98 65h ordering guide ........................................................................... 132h 98 revision history 9/05rev. a to rev. b changes to table 1 ............................................................................6 changes to table 2 ............................................................................7 changes to table 3 and table 4 .......................................................8 changes to table 5 ............................................................................9 change to figure 6 ..........................................................................13 change formatting of table 15 to table 17 .................................19 change to figure 8 ..........................................................................21 changes to lock related controls section..................................24 changes to table 34 ........................................................................32 changes to table reference in betacam section ...................33 change to pal comb filter settings section..............................37 change to nftog section............................................................44 changes to table 85 ........................................................................68 changes to table 86 ........................................................................72 6/05rev. 0 to rev. a changed crystal references to 28 mhz crystal............ universal changes to features section ............................................................1 changes to table 3 and table 4 .......................................................8 changes to analog specifications section.....................................8 changes to table 7 ..........................................................................11 changes to clamp operation section..........................................26 renamed figure 14 and figure 15 ................................................30 changes to table 31 ........................................................................31 changed lagc register address in luma gain section .........32 changed vsbhe vs default .........................................................41 changes to table 55 ........................................................................43 changes to table 56 ........................................................................45 changed comments for ctapsp[1:0] in table 85 ....................81 changes to table 86 ........................................................................89 changes to table 87 ........................................................................90 changes to table 88 ........................................................................91 changes to table 89 ........................................................................92 added examples using 27 mhz clock section..........................93 added xtal load capacitor value selection section..............96 changes to ordering guide...........................................................99 9/04revision 0: initial version ADV7183B rev. b | page 4 of 100 introduction the ADV7183B is a high quality, single chip, multiformat video decoder that automatically detects and converts pal, ntsc, and secam standards in the form of composite, s-video, and component video into a digital itu-r bt.656 format. the advanced and highly flexible digital output interface enables performance video decoding and conversion in line-locked, clock-based systems. this makes the device ideally suited for a broad range of applications with diverse analog video charac- teristics, including tape based sources, broadcast sources, security/surveillance cameras, and professional systems. analog front end the ADV7183B analog front end comprises three 10-bit adcs that digitize the analog video signal before applying it to the standard definition processor. the analog front end uses differential channels to each adc to ensure high performance in mixed-signal applications. the front end also includes a 12-channel input mux that enables multiple video signals to be applied to the ADV7183B. current and voltage clamps are positioned in front of each adc to ensure the video signal remains within the range of the converter. fine clamping of the video signals is performed downstream by digital fine clamping within the ADV7183B. the adcs are configured to run in 4 oversampling mode. standard definition processor (sdp) the ADV7183B is capable of decoding a large selection of baseband video signals in composite, s-video, and component formats. the video standards supported include pal b/d/i/g/h, pal60, pal m, pal n, pal nc, ntsc m/j, ntsc 4.43, and secam b/d/g/k/l. the ADV7183B can automatically detect the video standard and process it accordingly. the ADV7183B has a 5-line, superadaptive, 2d comb filter that gives superior chrominance and luminance separation when decoding a composite video signal. this highly adaptive filter automatically adjusts its processing mode according to video standard and signal quality with no user intervention required. video user controls such as brightness, contrast, saturation, and hue are also available within the ADV7183B. the ADV7183B implements a patented adaptive digital line- length tracking (adllt) algorithm to track varying video line lengths from sources. adllt enables the ADV7183B to track and decode poor quality video sources such as vcrs, noisy sources from tuner outputs, vcd players, and camcorders. the ADV7183B contains a chroma transient improvement (cti) processor that sharpens the edge rate of chroma transitions, resulting in sharper vertical transitions. the ADV7183B can process a variety of vbi data services, such as closed captioning (cc), wide screen signaling (wss), copy generation management system (cgms), edtv, gemstar 1/2, and extended data service (xds). the ADV7183B is fully macrovision? certified; detection circuitry enables type i, ii, and iii protection levels to be identified and reported to the user. the decoder is also fully robust to all macrovision signal inputs. ADV7183B rev. b | page 5 of 100 functional block diagram input mux data preprocessor decimation and downsampling filters standard definition processor luma filter luma digital fine clamp gain control luma resample luma 2d comb (4h max) chroma filter chroma demod f sc recovery chroma digital fine clamp gain control chroma resample chroma 2d comb (4h max) l-dnr output formatter sync extract line length predictor resample control av code insertion cti c-dnr a/d clamp 10 10 10 a/d clamp 10 a/d clamp 10 vbi data recovery global control synthesized llc control macrovision detection standard autodetection free run output control sync processing and clock generation serial interface control and vbi data sclk ain1? ain12 sda alsb ADV7183B control and data sync and clk control 16 hs 8 8 pixel data vs field llc1 llc2 sfl cvbs s-video yprpb 12 intrq 04997-001 figure 1. ADV7183B rev. b | page 6 of 100 specifications electrical characteristics at a vdd = 3.15 v to 3.45 v, d vdd = 1.65 v to 2.0 v, d vddio = 3.0 v to 3.6 v, p vdd = 1.65 v to 2.0 v, operating temperature range, unless otherwise specified. table 1. parameter 0f 1, 1f 2 symbol test conditions min typ max unit static performance resolution (each adc) n 10 bits integral nonlinearity inl bsl at 54 mhz C0.475/+0.6 3 lsb differential nonlinearity dnl bsl at 54 mhz C0.25/+0.5 C0.7/+2 lsb digital inputs input high voltage v ih 2 v input low voltage v il 0.8 v input current i in pins listed in note 2f 3 C50 +50 a all other pins C10 +10 a input capacitance c in 10 pf digital outputs output high voltage v oh i source = 0.4 ma 2.4 v output low voltage v ol i sink = 3.2 ma 0.4 v high impedance leakage current i leak pins listed in note 3f 4 50 a all other pins 10 a output capacitance c out 20 pf power requirements 4f 5 digital core power supply d vdd 1.65 1.8 2 v digital i/o power supply d vddio 3.0 3.3 3.6 v pll power supply p vdd 1.65 1.8 2.0 v analog power supply a vdd 3.15 3.3 3.45 v digital core supply current i dvdd 82 ma digital i/o supply current i dvddio 2 ma pll supply current i pvdd 10.5 ma analog supply current i avdd cvbs input 5f 6 85 ma yprpb input 6f 7 180 ma power-down current i pwrdn 1.5 ma power-up time t pwrup 20 ms 1 temperature range: t min to t max , C40c to +85c (0c to 70c for ADV7183Bkstz). 2 the min/max specifications ar e guaranteed over this range. 3 pins 36 and 79. 4 pins 1, 2, 5, 6, 8, 12, 17, 18 to 24, 32 to 35, 74 to 76, 80. 5 guaranteed by characterization. 6 adc1 powered on. 7 all three adcs powered on. ADV7183B rev. b | page 7 of 100 video specifications at a vdd = 3.15 v to 3.45 v, d vdd = 1.65 v to 2.0 v, d vddio = 3.0 v to 3.6 v, p vdd = 1.65 v to 2.0 v, operating temperature range, unless otherwise specified. table 2. parameter 7f 1, 8f 2 symbol test conditions min typ max unit nonlinear specifications differential phase dp cvbs i/p, modulate 5-step 0.5 0.7 degrees differential gain dg cvbs i/p, modulate 5-step 0.5 0.7 % luma nonlinearity lnl cvbs i/p, 5-step 0.5 0.7 % noise specifications snr unweighted luma ramp 54 56 db luma flat field 58 60 db analog front end crosstalk 60 db lock time specifications horizontal lock range C5 +5 % vertical lock range 40 70 hz f sc subcarrier lock range 1.3 hz color lock in time 60 lines sync depth range 20 200 % color burst range 5 200 % vertical lock time 2 fields autodetection switch speed 100 lines chroma specifications hue accuracy hue 1 degrees color saturation accuracy cl_ac 1 % color agc range 5 400 % chroma amplitude error 0.5 % chroma phase error 0.4 degrees chroma luma intermodulation 0.2 % luma specifications luma brightness accuracy cvbs, 1 v i/p 1 % luma contrast accuracy cvbs, 1 v i/p 1 % 1 temperature range: t min to t max , C40c to +85c (0c to 70c for ADV7183Bkstz). 2 the min/max specifications are guaranteed over this range. ADV7183B rev. b | page 8 of 100 timing specifications guaranteed by characterization. at a vdd = 3.15 v to 3.45 v, d vdd = 1.65 v to 2.0 v, d vddio = 3.0 v to 3.6 v, p vdd = 1.65 v to 2.0 v, operating temperature range, unless otherwise specified. table 3. parameter 9f 1, 10f 2 symbol test conditions min typ max unit system clock and crystal nominal frequency 28.6363 mhz frequency stability 50 ppm i 2 c port sclk frequency 400 khz sclk min pulse width high t 1 0.6 s sclk min pulse width low t 2 1.3 s hold time (start condition) t 3 0.6 s setup time (start condition) t 4 0.6 s sda setup time t 5 100 ns sclk and sda rise time t 6 300 ns sclk and sda fall time t 7 300 ns setup time for stop condition t 8 0.6 s reset feature reset pulse width 5 ms clock outputs llc1 mark space ratio t 9 :t 10 45:55 55:45 % duty cycle llc1 rising to llc2 rising t 11 0.5 ns llc1 rising to llc2 falling t 12 0.5 ns data and control outputs data output transitional time t 13 negative clock edge to start of valid data; (t access = t 10 C t 13 ) 3.4 ns data output transitional time t 14 end of valid data to negative clock edge; (t hold = t 9 + t 14 ) 2.4 ns propagation delay to hi-z t 15 6 ns max output enable access time t 16 7 ns min output enable access time t 17 4 ns 1 temperature range: t min to t max , C40c to +85c (0c to 70c for ADV7183Bkstz). 2 the min/max specifications are guaranteed over this range. analog specifications guaranteed by characterization. a vdd = 3.15 v to 3.45 v, d vdd = 1.65 v to 2.0 v, d vddio = 3.0 v to 3.6 v, p vdd = 1.65 v to 2.0 v (operating temperature range, unless otherwise noted). recommended analog input video signal range: 0.5 v to 1.6 v, typically 1 v p-p. table 4. parameter 11f 1, 12f 2 symbol test conditions min typ max unit clamp circuitry external clamp capacitor 0.1 f input impedance clamps switched off 10 m large clamp source current 0.75 ma large clamp sink current 0.75 ma fine clamp source current 60 a fine clamp sink current 60 a 1 temperature range: t min to t max , C40c to +85c (0c to 70c for ADV7183Bkstz). 2 the min/max specifications are guaranteed over this range. ADV7183B rev. b | page 9 of 100 thermal specifications table 5. parameter 13f 1, 14f 2 symbol test conditions min typ max unit junction-to-case thermal resistance jc 4-layer pcb with solid ground plane 7.6 c/w junction-to-ambient thermal resistance (still air) ja 4-layer pcb with solid ground plane 38.1 c/w 1 temperature range: t min to t max , C40c to +85c (0c to 70c for ADV7183Bkstz). 2 the min/max specifications are guaranteed over this range. timing diagrams sda sclk t 3 t 5 t 3 t 4 t 8 t 6 t 7 t 2 t 1 04997-002 figure 2. i 2 c timing output llc 1 output llc 2 outputs p0?p15, vs, hs, field, sfl t 9 t 11 t 10 t 14 t 13 t 12 04997-003 figure 3. pixel port and control output timing oe p0?p15, hs, vs, field, sfl t 15 t 16 t 17 04997-004 figure 4. oe timing ADV7183B rev. b | page 10 of 100 absolute maximum ratings table 6. parameter rating a vdd to gnd 4 v a vdd to agnd 4 v d vdd to dgnd 2.2 v p vdd to agnd 2.2 v d vddio to dgnd 4 v d vddio to a vdd C0.3 v to +0.3 v p vdd to d vdd C0.3 v to +0.3 v d vddio C p vdd C0.3 v to +2 v d vddio C d vdd C0.3 v to +2 v a vdd C p vdd C0.3 v to +2 v a vdd C d vdd C0.3 v to +2 v digital inputs voltage to dgnd C0.3 v to d vddio + 0.3 v digital output voltage to dgnd C0.3 v to d vddio + 0.3 v analog input to agnd agnd C 0.3 v to a vdd + 0.3 v maximum junction temperature (t j max) 150c storage temperature range C65c to +150c infrared reflow soldering (20 sec) 260c stresses above those listed under absolute maximum ratings may cause permanent damage to the device. this is a stress rating only; functional operation of the device at these or any other conditions above those indicated in the operational section of this specification is not implied. exposure to absolute maximum rating conditions for extended periods may affect device reliability. esd caution esd (electrostatic discharge) sensitive device. electrosta tic charges as high as 4000 v readily accumulate on the human body and test equipment and can discharge with out detection. although this product features proprietary esd protection circuitry, permanent dama ge may occur on devices subjected to high energy electrostatic discharges. therefore, proper esd precautions are recommended to avoid performance degradation or loss of functionality. ADV7183B rev. b | page 11 of 100 pin configuration and fu nction descriptions 04997-005 2 hs 3 dgnd 4 dvddio 7 p9 6 p10 5 p11 1 vs 8 p8 9 dgnd 10 dvdd 12 sfl 13 nc 14 dgnd 15 dvddio 16 nc 17 nc 18 nc 19 p7 20 p6 11 intrq 59 58 57 54 55 56 60 53 52 ain11 ain4 ain10 capc1 capc2 agnd ain5 agnd cml 51 refout 49 capy2 48 capy1 47 agnd 46 ain3 45 ain9 44 ain2 43 ain8 42 ain1 41 ain7 50 avdd nc = no connect 21 p5 22 p4 23 p3 24 p2 25 nc 26 llc2 27 llc1 28 xtal1 29 xtal 30 dvdd 31 dgnd 32 p1 33 p0 34 nc 35 nc 36 pwrdn 37 elpf 38 pvdd 39 agnd 40 agnd 80 field 79 oe 78 nc 77 nc 76 p12 75 p13 74 p14 73 p15 72 dvdd 71 dgnd 70 nc 69 nc 68 sclk 67 sda 66 alsb 65 nc 64 reset 63 nc 62 ain6 61 ain12 pin 1 ADV7183B top view (not to scale) figure 5. 80-lead lqfp pin configuration ADV7183B rev. b | page 12 of 100 table 7. pin function descriptions pin no. mnemonic type description 3, 9, 14, 31, 71 dgnd g digital ground. 39, 40, 47, 53, 56 agnd g analog ground. 4, 15 dvddio p digital i/o supply voltage (3.3 v). 10, 30, 72 dvdd p digital core supply voltage (1.8 v). 50 avdd p analog supply voltage (3.3 v). 38 pvdd p pll supply voltage (1.8 v). 42, 44, 46, 58, 60, 62, 41, 43, 45, 57, 59, 61 ain1 to ain12 i analog video input channels. 11 intrq o interrupt request output. interr upt occurs when certain signals are detected on the input video. see the interrupt register map in 133h table 83. 13, 16 to 18, 25, 34, 35, 63, 65, 69, 70, 77, 78 nc no connect pins. 33, 32, 24, 23, 22, 21, 20, 19, 8, 7, 6, 5, 76, 75, 74, 73 p0 to p15 o video pixel output port. 2 hs o horizontal synchronization output signal. 1 vs o vertical synchronization output signal. 80 field o field synchronization output signal. 67 sda i/o i 2 c port serial data input/output pin. 68 sclk i i 2 c port serial clock input. maximum clock rate of 400 khz. 66 alsb i this pin selects the i 2 c address for the ADV7183B. alsb set to logic 0 sets the address for a write as 0x40; for alsb set to logic high, the address selected is 0x42. 64 reset i system reset input, active low. a minimum low reset pulse width of 5 ms is required to reset the ADV7183B circuitry. 27 llc1 o this is a line-locked output clock for the pixel data output by the ADV7183B. nominally 27 mhz, but varies up or down according to video line length. 26 llc2 o this is a divide-by-2 version of the llc1 output clock for the pixel data output by the ADV7183B. nominally 13.5 mhz, but varies up or down according to video line length. 29 xtal i this is the input pin for the 28.6363 mhz crystal, or can be overdriven by an external 3.3 v, 27 mhz clock oscillator source. in crystal mode, the crystal must be a fundamental crystal. 28 xtal1 o this pin should be connected to the 28.6363 mh z crystal or left as a no connect if an external 3.3 v, 27 mhz clock oscillator source is used to clock the ADV7183B. in crystal mode, the crystal must be a fundamental crystal. 36 pwrdn i a logic low on this pin places the ADV7183B in a power-down mode. refer to the 134h ip2pc register maps section for more options on power-down modes for the ADV7183B. 79 oe i when set to a logic low, oe enables the pixel output bus, p15 to p0 of the ADV7183B. a logic high on the oe pin places pins p15 to p0, hs, vs, sfl into a high impedance state. 37 elpf i the recommended external loop filter must be connected to this elpf pin, as shown in 135h figure 46. 12 sfl o subcarrier frequency lock. this pin contains a se rial output stream that can be used to lock the subcarrier frequency when this decoder is connected to any analog devices, inc. digital video encoder. 51 refout o internal voltage reference output. refer to 136h figure 46 for a recommended capacitor network for this pin. 52 cml o the cml pin is a common-mode level for the internal adcs. refer to 137h figure 46 for a recommended capacitor network for this pin. 48, 49 capy1, capy2 i adcs capacitor network. refer to 138h figure 46 for a recommended capacitor network for this pin. 54, 55 capc1, capc2 i adcs capacitor network. refer to 139h figure 46 for a recommended capacitor network for this pin. ADV7183B rev. b | page 13 of 100 analog front end ain1 ain12 ain7 ain6 ain2 ain11 ain8 ain5 ain3 ain10 ain9 ain4 ain4 ain9 ain10 ain3 ain5 ain8 ain11 ain2 ain6 ain7 ain12 ain1 ain3 ain9 ain4 ain10 ain5 ain11 ain6 ain12 ain2 ain8 ain5 ain11 ain6 ain12 1 0 1 0 1 0 adc_sw_man_en insel[3:0] adc0_sw[3:0] adc1_sw[3:0] adc2_sw[3:0] internal mapping functions adc2 adc1 adc0 04997-006 figure 6. internal pin connections analog input muxing the ADV7183B has an integrated analog muxing section that allows more than one source of video signal to be connected to the decoder. 140h figure 6 outlines the overall structure of the input muxing provided in the ADV7183B. as seen in 141h figure 6, the analog input muxes can be controlled by functional registers (insel) or manually. using insel[3:0] simplifies the setup of the muxes and minimizes crosstalk between channels by pre-assigning the input channels. this is referred to as adi recommended input muxing. control via an i 2 c manual override (adc_sw_man_en, adc0_sw, and adc1_sw, adc2_sw) is provided for applications with special requirements (for example, number/ combinations of signals) that would not be served by the pre- assigned input connections. this is referred to as manual input muxing. refer to 142h figure 7 for an overview of the two methods of controlling the ADV7183Bs input muxing. adi recommended input muxing a maximum of 12 cvbs inputs can be connected and decoded by the ADV7183B. as seen in 143h figure 5, this means the sources will have to be connected to adjacent pins on the ic. this calls for a careful design of the pcb layout, such as ground shielding between all signals routed through tracks that are physically close together. insel[3:0] input selection, address 0x00[3:0] the insel bits allow the user to select an input channel as well as the input format. depending on the pcb connections, only a subset of the insel modes is valid. the insel[3:0] not only switches the analog input muxing, it also configures the standard definition processor core to process cvbs (comp), s-video (y/c), or component (ypbpr) format. ADV7183B rev. b | page 14 of 100 set insel[3:0] to configure ADV7183B to decode video format: cvbs: 0000 yc: 0110 yprpb: 1001 use manual input muxing (adc_sw_man_en, adc0_sw, adc1_sw, adc2_sw) set insel[3:0] for required muxing configuration connecting analog signals to ADV7183B adi recommended input muxing; see table 9 yes no 04997-007 figure 7. input muxing overview table 8. input channel switching using insel[3:0] description insel[3:0] analog input pins video format 0000 (default) cvbs1 = ain1 composite 0001 cvbs2 = ain2 composite 0010 cvbs3 = ain3 composite 0011 cvbs4 = ain4 composite 0100 cvbs5 = ain5 composite 0101 cvbs6 = ain6 composite 0110 y1 = ain1 y/c c1 = ain4 y/c 0111 y2 = ain2 y/c c2 = ain5 y/c 1000 y3 = ain3 y/c c3 = ain6 y/c 1001 y1 = ain1 yprpb pb1 = ain4 yprpb pr1 = ain5 yprpb 1010 y2 = ain2 yprpb pb2 = ain3 yprpb pr2 = ain6 yprpb 1011 cvbs7 = ain7 composite 1100 cvbs8 = ain8 composite 1101 cvbs9 = ain9 composite 1110 cvbs10 = ain10 composite 1111 cvbs11 = ain11 composite table 9. input channel assignments input channel pin no. adi recommended input muxing control insel[3:0] ain7 41 cvbs7 ain1 42 cvbs1 y/c1-y yprpb1-y ain8 43 cvbs8 ain2 44 cvbs2 y/c2-y yprpb2-y ain9 45 cvbs9 ain3 46 cvbs3 y/c3-y yprpb2-pb ain10 57 cvbs10 ain4 58 cvbs4 y/c1-c yprpb1-pb ain11 59 cvbs11 ain5 60 cvbs5 y/c2-c yprpb1-pr ain12 61 not available ain6 62 cvbs6 y/c3-c yprpb2-pr adi recommended input muxing is designed to minimize crosstalk between signal channels and to obtain the highest level of signal integrity. 144h table 9 summarizes how the pcb layout should connect analog video signals to the ADV7183B. it is strongly recommended to connect any unused analog input pins to agnd to act as a shield. inputs ain7 to ain11 should be connected to agnd when only six input channels are used. this improves the quality of the sampling due to better isolation between the channels. ain12 is not under the control of insel[3:0]. it can be routed to adc0/adc1/adc2 only by manual muxing. see 145h table 10 for details. ADV7183B rev. b | page 15 of 100 manual input muxing by accessing a set of manual override muxing registers, the analog input muxes of the ADV7183B can be controlled directly. this is referred to as manual input muxing. manual input muxing overrides other input muxing control bits, such as insel. the manual muxing is activated by setting the adc_sw_man_en bit. it affects only the analog switches in front of the adcs. this means if the settings of insel and the manual input muxing registers (adc0/adc1/adc2_sw) contradict each other, the adc0/adc1/adc2_sw settings apply, and insel is ignored. manual input muxing controls only the analog input muxes. insel[3:0] still has to be set so the follow-on blocks process the video data in the correct format. this means insel must still be used to tell the ADV7183B whether the input signal is of component, y/c, or cvbs format. restrictions in the channel routing are imposed by the analog signal routing inside the ic; every input pin cannot be routed to each adc. refer to 146h figure 6 for an overview on the routing capabilities inside the chip. the three mux sections can be controlled by the reserved control signal buses adc0/adc1/ adc2_sw[3:0]. 147h table 10 explains the control words used. setadc_sw_man_en, manual input muxing enable, address 0xc4[7] adc0_sw[3:0], adc0 mux configuration, address 0xc3[3:0] adc1_sw[3:0], adc1 mux configuration, address 0xc3[7:4] adc2_sw[3:0], adc2 mux configuration, address 0xc4[3:0] table 10. manual mux settings for all adcs (setadc_sw_man_en = 1) adc0_sw[3:0] adc0 connected to adc1_sw[3:0] adc1 connected to adc2_sw[3:0] adc2 connected to 0000 no connection 0000 no connection 0000 no connection 0001 ain1 0001 no connection 0001 no connection 0010 ain2 0010 no connection 0010 ain2 0011 ain3 0011 ain3 0011 no connection 0100 ain4 0100 ain4 0100 no connection 0101 ain5 0101 ain5 0101 ain5 0110 ain6 0110 ain6 0110 ain6 0111 no connection 0111 no connection 0111 no connection 1000 no connection 1000 no connection 1000 no connection 1001 ain7 1001 no connection 1001 no connection 1010 ain8 1010 no connection 1010 ain8 1011 ain9 1011 ain9 1011 no connection 1100 ain10 1100 ain10 1100 no connection 1101 ain11 1101 ain11 1101 ain11 1110 ain12 1110 ain12 1110 ain12 1111 no connection 1111 no connection 1111 no connection ADV7183B rev. b | page 16 of 100 global control registers register control bits listed in this section affect the whole chip. power-save modes power-down pdbp, address 0x0f[2] the digital core of the ADV7183B can be shut down by using the pwrdn pin and the pwrdn bit (see below). the pdbp controls which of the two pins has the higher priority. the default is to give priority to the pwrdn pin. this allows the user to have the ADV7183B powered down by default. when pdbd is 0 (default), the digital core power is controlled by the pwrdn pin (the bit is disregarded). when pdbd is 1, the bit has priority (the pin is disregarded). pwrdn, address 0x0f[5] setting the pwrdn bit switches the ADV7183B into a chip- wide power-down mode. the power-down stops the clock from entering the digital section of the chip, thereby freezing its operation. no i 2 c bits are lost during power-down. the pwrdn bit also affects the analog blocks and switches them into low current modes. the i 2 c interface is unaffected and remains operational in power-down mode. the ADV7183B leaves the power-down state if the pwrdn bit is set to 0 (via i 2 c), or if the overall part is reset using the reset pin. pdbp must be set to 1 for the pwrdn bit to power down the ADV7183B. when pwrdn is 0 (default), the chip is operational. when pwrdn is 1, the ADV7183B is in chip-wide power-down. adc power-down control the ADV7183B contains three 10-bit adcs (adc 0, adc 1, and adc 2). if required, each adc can be powered down individually. the adcs should be powered down when in: ? cvbs mode. adc 1 and adc 2 should be powered down to save on power consumption. ? s-video mode. adc 2 should be powered down to save on power consumption. pwrdn_adc_0, address 0x3a[3] when pwrdn_adc_0 is 0 (default), the adc is in normal operation. when pwrdn_adc_0 is 1, adc 0 is powered down. pwrdn_adc_1, address 0x3a[2] when pwrdn_adc_1 is 0 (default), the adc is in normal operation. when pwrdn_adc_1 is 1, adc 1 is powered down. pwrdn_adc_2, address 0x3a[1] when pwrdn_adc_2 is 0 (default), the adc is in normal operation. when pwrdn_adc_2 is 1, adc 2 is powered down. reset control chip reset (res), address 0x0f[7] setting this bit, equivalent to controlling the reset pin on the ADV7183B, issues a full chip reset. all i 2 c registers are reset to their default values. (some register bits do not have a reset value specified. they keep their last written value. those bits are marked as having a reset value of x in the register table.) after the reset sequence, the part immediately starts to acquire the incoming video signal. after setting the res bit (or initiating a reset via the pin), the part returns to the default mode of operation with respect to its primary mode of operation. all i 2 c bits are loaded with their default values, making this bit self-clearing. executing a software reset takes approximately 2 ms. however, it is recommended to wait 5 ms before any further i 2 c writes are performed. the i 2 c master controller receives a no acknowledge condition on the ninth clock cycle when chip reset is implemented. see the 148h mpu port description section. when res is 0 (default), operation is normal. when res is 1, the reset sequence starts. ADV7183B rev. b | page 17 of 100 global pin control three-state output drivers tod, address 0x03[6] this bit allows the user to three-state the output drivers of the ADV7183B. upon setting the tod bit, the p15 to p0, hs, vs, field, and sfl pins are three-stated. the timing pins (hs/vs/field) can be forced active via the tim_oe bit. for more information on three-state control, refer to the 149h three-state llc driver and the 150h timing signals output enable sections. individual drive strength controls are provided via the dr_str_xx bits. the ADV7183B supports three-stating via a dedicated pin. when set high, the oe pin three-states the output drivers for the p15 to p0, hs, vs, field, and sfl pins. the output drivers are three-stated if the tod bit or the oe pin is set high. when tod is 0 (default), the output drivers are enabled. when tod is 1, the output drivers are three-stated. three-state llc driver tri_llc, address 0x1d[7] this bit allows the output drivers for the llc1 and llc2 pins of the ADV7183B to be three-stated. for more information on three-state control, refer to the 151h three-state output drivers and the 152h timing signals output enable sections. individual drive strength controls are provided via the dr_str_xx bits. when tri_llc is 0 (default), the llc pin drivers work according to the dr_str_c[1:0] setting (pin enabled). when tri_llc is 1, the llc pin drivers are three-stated. timing signals output enable tim_oe, address 0x04[3] the tim_oe bit should be regarded as an addition to the tod bit. setting it high forces the output drivers for hs, vs, and field pins into the active (driving) state even if the tod bit is set. if set to low, the hs, vs, and field pins are three-stated, dependent on the tod bit. this functionality is useful if the decoder is used as a timing generator only. this can happen when only the timing signals are to be extracted from an incoming signal, or if the part is in free-run mode where a separate chip can output, for an example, a company logo. for more information on three-state control, refer to the 153h three- state output drivers and the 154h three-state llc driver sections. individual drive strength controls are provided via the dr_str_xx bits. when tim_oe is 0 (default), the hs, vs, and field pins are three-stated according to the tod bit. when tim_oe is 1, hs, vs, and field are forced active all the time. drive strength selection (data) dr_str[1:0] address 0xf4[5:4] for emc and crosstalk reasons, it can be desirable to strengthen or weaken the drive strength of the output drivers. the dr_str[1:0] bits affect the p[15:0] output drivers. for more information on three-state control, refer to the 155h drive strength selection (clock) and the 156h drive strength selection (sync) sections. table 11. dr_str function dr_str[1:0] description 00 low drive strength (1) 01 (default) medium low drive strength (2) 10 medium high drive strength (3) 11 high drive strength (4) ADV7183B rev. b | page 18 of 100 drive strength selection (clock) dr_str_c[1:0] address 0xf4[3:2] the dr_str_c[1:0] bits can be used to select the strength of the clock signal output driver (llc pin). for more information, refer to the 157h drive strength selection (sync) and the 158h drive strength selection (data) sections. table 12. dr_str_c function dr_str_c[1:0] description 00 low drive strength (1) 01 (default) medium low drive strength (2) 10 medium high drive strength (3) 11 high drive strength (4) drive strength selection (sync) dr_str_s[1:0] address 0xf4[1:0] the dr_str_s[1:0] bits allow the user to select the strength of the synchronization signals with which hs, vs, and f are driven. for more information, refer to the 159h drive strength selection (clock) and the 160h drive strength selection (data) sections. table 13. dr_str_s function dr_str_s[1:0] description 00 low drive strength (1) 01 (default) medium low drive strength (2) 10 medium high drive strength (3) 11 high drive strength (4) enable subcarrier frequency lock pin en_sfl_pin address 0x04[1] the en_sfl_pin bit enables the output of subcarrier lock information (also known as genlock) from the ADV7183B to an encoder in a decoder-encoder back-to-back arrangement. when en_sfl_pin is 0 (default), the subcarrier frequency lock output is disabled. when en_sfl_pin is 1, the subcarrier frequency lock infor- mation is presented on the sfl pin. polarity llc pin pclk address 0x37[0] the polarity of the clock that leaves the ADV7183B via the llc1 and llc2 pins can be inverted using the pclk bit. changing the polarity of the llc clock output can be necessary to meet the setup-and-hold time expectations of follow-on chips. this bit also inverts the polarity of the llc2 clock. when pclk is 0, the llc output polarity is inverted. when pclk is 1 (default), the llc output polarity is normal (as per the timing diagrams). ADV7183B rev. b | page 19 of 100 global status registers four registers provide summary information about the video decoder. the ident register allows the user to identify the revision code of the ADV7183B. the three other registers contain status bits regarding ic operation. identification ident[7:0] address 0x11[7:0] this register provides identification of the revision of the ADV7183B. an identification value of 0x11 indicates the adv7183, released silicon. an identification value of 0x13 indicates the ADV7183B silicon. status 1 status_1[7:0] address 0x10[7:0] this read-only register provides information about the internal status of the ADV7183B. see 161h vs_coast[1:0] address 0xf9[3:2], 162h cil[2:0] count into lock, address 0x51[2:0], and 163h col[2:0] count out-of-lock, address 0x51[5:3] for information on the timing. depending on the setting of the fscle bit, the status[0] and status[1] bits are based solely on horizontal timing information on the horizontal timing and lock status of the color subcarrier. see the 164h fscle fsc lock enable, address 0x51[7] section. autodetection result ad_result[2:0] address 0x10[6:4] the ad_result[2:0] bits report back on the findings from the autodetection block. for more information on enabling the autodetection block, see the 165h general setup section. for information on configuring it, see the 166h autodetection of sd modes section. table 14. ad_result function ad_result[2:0] description 000 ntsm-mj 001 ntsc-443 010 pal-m 011 pal-60 100 pal-bghid 101 secam 110 pal-combination n 111 secam 525 table 15. status 1 function status 1[7:0] bit name description 0 in_lock in lock (right now) 1 lost_lock lost lock (since last read of this register) 2 fsc_lock f sc locked (right now) 3 follow_pw agc follows peak white algorithm 4 ad_result.0 result of autodetection 5 ad_result.1 result of autodetection 6 ad_result.2 result of autodetection 7 col_kill color kill active status 2 status_2[7:0], address 0x12[7:0] table 16. status 2 function status 2[7:0] bit name description 0 mvcs det detected macrovision color striping 1 mvcs t3 macrovision color striping protection. conforms to type 3 if high and to type 2 if low 2 mv_ps det detected macrovision pseudo sync pulses 3 mv_agc det detected macrovision agc pulses 4 ll_nstd line length is nonstandard 5 fsc_nstd f sc frequency is nonstandard 6 reserved 7 reserved status 3 status_3[7:0], address 0x13[7:0] table 17. status 3 function status 3[7:0] bit name description 0 inst_hlock horizontal lock indicator (instantaneous). 1 gemd gemstar detect. 2 sd_op_50hz flags whether 50 hz or 60 hz are present at output. 3 reserved for future use. 4 free_run_act outputs a blue screen (see the 167h def_val_auto_en default value automatic enable, address 0x0c[1] section). 5 std_fld_len field length is correct for currently selected video standard. 6 interlaced interlaced video detected (field sequence found). 7 pal_sw_lock reliable sequence of swinging bursts detected. ADV7183B rev. b | page 20 of 100 standard definition processor (sdp) digitized cvbs digitized y (yc) video data output standard definition processor digitized cvbs digitized c (yc) macrovision detection vbi data recovery standard autodetection luma filter luma digital fine clamp gain control luma resample luma 2d comb sllc control chroma filter chroma demod f sc recovery chroma digital fine clamp gain control chroma resample chroma 2d comb sync extract line length predictor resample control av code insertion measurement block ( i 2 c) video data processing block 04997-008 figure 8. block diagram of the standard definition processor a block diagram of the ADV7183Bs standard definition processor (sdp) is shown in 168h figure 8. the sdp block can handle standard definition video in cvbs, y/c, and yprpb formats. it can be divided into a luminance and a chrominance path. if the input video is of a composite type (cvbs), both processing paths are fed with the cvbs input. sd luma path the input signal is processed by the following blocks: ? digital fine clamp. this block uses a high precision algorithm to clamp the video signal. ? luma filter block. this block contains a luma decimation filter (yaa) with a fixed response and some shaping filters (ysh) that have selectable responses. ? luma gain control. the automatic gain control (agc) can operate on a variety of different modes, including gain based on the depth of the horizontal sync pulse, peak white mode, and fixed manual gain. ? luma resample. to correct for line-length errors as well as dynamic line-length changes, the data is digitally resampled. ? luma 2d comb. the two-dimensional comb filter provides y/c separation. ? av code insertion. at this point, the decoded luma (y) signal is merged with the retrieved chroma values. av codes (as per itu-r. bt-656) can be inserted. sd chroma path the input signal is processed by the following blocks: ? digital fine clamp. this block uses a high precision algorithm to clamp the video signal. ? chroma demodulation. this block uses a color subcarrier (f sc ) recovery unit to regenerate the color subcarrier for any modulated chroma scheme. the demodulation block then performs an am demodulation for pal and ntsc, and an fm demodulation for secam. ? chroma filter block. this block contains a chroma decimation filter (caa) with a fixed response and some shaping filters (csh) that have selectable responses. ? gain control. automatic gain control (agc) can operate on several different modes, including gain based on the color subcarriers amplitude, gain based on the depth of the horizontal sync pulse on the luma channel, or fixed manual gain. ? chroma resample. the chroma data is digitally resampled to keep it perfectly aligned with the luma data. the resampling is done to correct for static and dynamic line- length errors of the incoming video signal. ? chroma 2d comb. the two-dimensional, 5-line, superadaptive comb filter provides high quality y/c separation when the input signal is cvbs. ? av code insertion. at this point, the demodulated chroma (cr and cb) signal is merged with the retrieved luma values. av codes (as per itu-r. bt-656) can be inserted. ADV7183B rev. b | page 21 of 100 sync processing the ADV7183B extracts syncs embedded in the video data stream. there is currently no support for external hs/vs inputs. the sync extraction has been optimized to support imperfect video sources such as vcrs with head switches. the actual algorithm used employs a coarse detection based on a threshold crossing followed by a more detailed detection using an adaptive interpolation algorithm. the raw sync information is sent to a line-length measurement and prediction block. the output of this is then used to drive the digital resampling section to ensure the ADV7183B outputs 720 active pixels per line. the sync processing on the ADV7183B also includes the following specialized postprocessing blocks that filter and condition the raw sync information retrieved from the digitized analog video. ? vsync processor. this block provides extra filtering of the detected vsyncs to give improved vertical lock. ? hsync processor. the hsync processor is designed to filter incoming hsyncs that are corrupted by noise, providing much improved performance for video signals with stable time base but poor snr. vbi data recovery the ADV7183B can retrieve the following information from the input video: ? wide-screen signaling (wss) ? copy generation management system (cgms) ? closed caption (cc) ? macrovision protection presence ? edtv data ? gemstar-compatible data slicing the ADV7183B is also capable of automatically detecting the incoming video standard with respect to ? color subcarrier frequency ? field rate ? line rate the spd can configure itself to support pal-b/g/h/i/d, pal-m/n, pal-combination n, ntsc-m, ntsc-j, secam 50 hz/60 hz, ntsc4.43, and pal60. general setup video standard selection the vid_sel[3:0] bits allows the user to force the digital core into a specific video standard. under normal circumstances, this should not be necessary. the vid_sel[3:0] bits default to an autodetection mode that supports pal, ntsc, secam, and variants thereof. the following section describes the autodetec- tion system. autodetection of sd modes to guide the autodetection system, individual enable bits are provided for each of the supported video standards. setting the relevant bit to 0 inhibits the standard from being detected automatically. instead, the system picks the closest of the remaining enabled standards. the results of the autodetection can be read back via the status registers. see the 169h global status registers section for more information. vid_sel[3:0] address 0x00[7:4] table 18. vid_sel function vid_sel description 0000 (default) autodetect (pal bghid) ADV7183B rev. b | page 22 of 100 ad_secam_en enable autodetection of secam, address 0x07[6] setting ad_secam_en to 0 disables the autodetection of secam. setting ad_secam_en to 1 (default) enables the detection. ad_n443_en enable autodetection of ntsc 443, address 0x07[5] setting ad_n443_en to 0 disables the autodetection of ntsc style systems with a 4.43 mhz color subcarrier. setting ad_n443_en to 1 (default) enables the detection. ad_p60_en enable autodetection of pal60, address 0x07[4] setting ad_p60_en to 0 disables the autodetection of pal systems with a 60 hz field rate. setting ad_p60_en to 1 (default) enables the detection. ad_paln_en enable autodetection of pal n, address 0x07[3] setting ad_paln_en to 0 disables the detection of the pal n standard. setting ad_paln_en to 1 (default) enables the detection. ad_palm_en enable autodetection of pal m, address 0x07[2] setting ad_palm_en to 0 disables the autodetection of pal m. setting ad_palm_en to 1 (default) enables the detection. ad_ntsc_en enable autodetection of ntsc, address 0x07[1] setting ad_ntsc_en to 0 disables the detection of standard ntsc. setting ad_ntsc_en to 1 (default) enables the detection. ad_pal_en enable autodetection of pal, address 0x07[0] setting ad_pal_en to 0 disables the detection of standard pal. setting ad_pal_en to 1 (default) enables the detection. sfl_inv subcarrier freq uency lock inversion this bit controls the behavior of the pal switch bit in the sfl (genlock telegram) data stream. it was implemented to solve some compatibility issues with video encoders. it solves two problems. first, the pal switch bit is only meaningful in pal. some encoders (including adi encoders) also look at the state of this bit in ntsc. second, there was a design change in adi encoders from adv717x to adv719x. the older versions used the sfl (genlock telegram) bit directly, while the later ones invert the bit prior to using it. the reason for this is that the inversion compensated for the 1-line delay of an sfl (genlock telegram) transmission. as a result, adv717x encoders need the pal switch bit in the sfl (genlock telegram) to be 1 for ntsc to work, and adv7190/adv7191/adv7194 encoders need the pal switch bit in the sfl to be 0 to work in ntsc. if the state of the pal switch bit is wrong, a 180 phase shift occurs. in a decoder/encoder back-to-back system in which sfl is used, this bit must be set up properly for the specific encoder used. sfl_inv address 0x41[6] setting sfl_inv to 0 makes the part sfl-compatible with adv7190/adv7191/adv7194 encoders. setting sfl_inv to 1 (default), makes the part sfl-compatible with adv717x/adv7173x encoders. lock-related controls lock information is presented to the user through bits[1:0] of the status 1 register. see the 170h status_1[7:0] address 0x10[7:0] section. 171h figure 9 outlines the signal flow and the controls available to influence the way the lock status information is generated. 1 0 time_win free_run status 1 [0] select the raw lock signal srls filter the raw lock signal cil[2:0], col[2:0] take f sc lock into account fscle status 1 [1] f sc lock 1 0 counter into lock counter out of lock memory 04997-009 figure 9. lock-related signal path ADV7183B rev. b | page 23 of 100 srls select raw lock signal, address 0x51[6] using the srls bit, the user can choose between two sources for determining the lock status (per bits[1:0] in the status 1 register). ? the time_win signal is based on a line-to-line evaluation of the horizontal synchronization pulse of the incoming video. it reacts quite quickly. ? the free_run signal evaluates the properties of the incoming video over several fields and takes vertical synchronization information into account. setting srls to 0 (default) selects the free_run signal. setting srls to 1 selects the time_win signal. fscle f sc lock enable, address 0x51[7] the fscle bit allows the user to choose whether the status of the color subcarrier loop is taken into account when the overall lock status is determined and presented via bits[1:0] in status register 1. this bit must be set to 0 when operating in yprpb component mode to generate a reliable hlock status bit. setting fscle to 0 (default) makes the overall lock status dependent on only horizontal sync lock. setting fscle to 1 makes the overall lock status dependent on horizontal sync lock and f sc lock. vs_coast[1:0] address 0xf9[3:2] these bits are used to set vs free-run (coast) frequency. table 19. vs_coast[1:0] function vs_coast[1:0] description 00 (default) auto coast modefollows vs frequency from last video input 01 forces 50 hz coast mode 10 forces 60 hz coast mode 11 reserved cil[2:0] count into lock, address 0x51[2:0] cil[2:0] determines the number of consecutive lines for which the lock condition must be true before the system switches into the locked state, and reports this via status 0[1:0]. it counts the value in lines of video. table 20. cil function cil[2:0] description 000 1 001 2 010 5 011 10 100 (default) 100 101 500 110 1000 111 100000 col[2:0] count out-of-lock, address 0x51[5:3] col[2:0] determines the number of consecutive lines for which the out-of-lock condition must be true before the system switches into unlocked state, and reports this via status 0[1:0]. it counts the value in lines of video. table 21. col function col[2:0] description 000 1 001 2 010 5 011 10 100 (default) 100 101 500 110 1000 111 100000 color controls these registers allow the user to control the picture appearance, including control of the active data in the event of video being lost. these controls are independent of any other controls. for instance, brightness control is independent from picture clamp- ing, although both controls affect the signals dc level. con[7:0] contrast adjust, address 0x08[7:0] this allows the user to adjust the contrast of the picture. table 22. con function con[7:0] description 0x80 (default) gain on luma channel = 1 0x00 gain on luma channel = 0 0xff gain on luma channel = 2 sd_sat_cb[7:0] sd saturation cb channel, address 0xe3[7:0] this register allows the user to control the gain of the cb channel only. the user can adjust the saturation of the picture. table 23. sd_sat_cb function sd_sat_cb[7:0] description 0x80 (default) gain on cb channel = 0 db 0x00 gain on cb channel = ?42 db 0xff gain on cb channel = +6 db ADV7183B rev. b | page 24 of 100 sd_sat_cr[7:0] sd saturation cr channel, address 0xe4[7:0] this register allows the user to control the gain of the cr channel only. the user can adjust the saturation of the picture. table 24. sd_sat_cr function sd_sat_cr[7:0] description 0x80 (default) gain on cr channel = 0 db 0x00 gain on cb channel = ?42 db 0xff gain on cb channel = +6 db sd_off_cb[7:0] sd offset cb channel, address 0xe1[7:0] this register allows the user to select an offset for data on the cb channel only and adjust the hue of the picture. there is a functional overlap with the hue[7:0] register. table 25.sd_off_cb function sd_off_cb[7:0] description 0x80 (default) 0 offset ap plied to the cb channel 0x00 ?312 mv offset applied to the cb channel 0xff +312 mv offset applied to the cb channel sd_off_cr[7:0] sd offset cr channel, address 0xe2[7:0] this register allows the user to select an offset for data on the cr channel only and adjust the hue of the picture. there is a func- tional overlap with the hue[7:0] register. table 26. sd_off_cr function sd_off_cr[7:0] description 0x80 (default) 0 offset applied to the cr channel 0x00 ?312 mv offset applied to the cr channel 0xff +312 mv offset applied to the cr channel bri[7:0] brightness adjust, address 0x0a[7:0] this register controls the brightness of the video signal. it allows the user to adjust the brightness of the picture. table 27. bri function bri[7:0] description 0x00 (default) offset of the luma channel = 0ire 0x7f offset of the luma channel = +100ire 0xff offset of the luma channel = C100ire hue[7:0] hue adjust, address 0x0b[7:0] this register contains the value for the color hue adjustment. it allows the user to adjust the hue of the picture. hue[7:0] has a range of 90, with 0x00 equivalent to an adjustment of 0. the resolution of hue[7:0] is 1 bit = 0.7. the hue adjustment value is fed into the am color demodulation block. therefore, it applies only to video signals that contain chroma information in the form of an am modulated carrier (cvbs or y/c in pal or ntsc). it does not affect secam and does not work on component video inputs (yprpb). table 28. hue function hue[7:0] description 0x00 (default) phase of the chroma signal = 0 0x7f phase of the chroma signal = C90 0x80 phase of the chroma signal = +90 def_y[5:0] default value y, address 0x0c[7:2] if the ADV7183B loses lock on the incoming video signal or if there is no input signal, the def_y[5:0] bits allow the user to specify a default luma value to be output. this value is used if ? the def_val_auto_en bit is set to high and the ADV7183B lost lock to the input video signal. this is the intended mode of operation (automatic mode). ? the def_val_en bit is set, regardless of the lock status of the video decoder. this is a forced mode that may be useful during configuration. the def_y[5:0] values define the 6 msbs of the output video. the remaining lsbs are padded with 0s. for example, in 8-bit mode, the output is y[7:0] = {def_y[5:0], 0, 0}. def_y[5:0] is 0x0d (blue) is the default value for y. register 0x0c has a default value of 0x36. def_c[7:0] default value c, address 0x0d[7:0] the def_c[7:0] register complements the def_y[5:0] value. it defines the 4 msbs of cr and cb values to be output if ? the def_val_auto_en bit is set to high and the ADV7183B cannot lock to the input video (automatic mode). ? the def_val_en bit is set to high (forced output). the data that is finally output from the ADV7183B for the chroma side is cr[7:0] = {def_c[7:4], 0, 0, 0, 0}, cb[7:0] = {def_c[3:0], 0, 0, 0, 0}. def_c[7:0] is 0x7c (blue) is the default value for cr and cb. ADV7183B rev. b | page 25 of 100 def_val_en default value enable, address 0x0c[0] this bit forces the use of the default values for y, cr, and cb. refer to the descriptions for def_y and def_c for additional information. in this mode, the decoder also outputs a stable 27 mhz clock, hs, and vs. setting def_val_en to 0 (default) outputs a colored screen determined by user-programmable y, cr, and cb values when the decoder free-runs. free-run mode is turned on and off by the def_val_auto_en bit. setting def_val_en to 1 forces a colored screen output determined by user-programmable y, cr, and cb values. this overrides picture data even if the decoder is locked. def_val_auto_en default value automatic enable, address 0x0c[1] this bit enables the automatic usage of the default values for y, cr, and cb when the ADV7183B cannot lock to the video signal. setting def_val_auto_en to 0 disables free-run mode. if the decoder is unlocked, it outputs noise. setting def_val_en to 1 (default) enables free-run mode. a colored screen set by the user-programmable y, cr, and cb values is displayed when the decoder loses lock. clamp operation the input video is ac-coupled into the ADV7183B through a 0.1 f capacitor. the recommended range of the input video signal is 0.5 v to 1.6 v (typically 1 v p-p). if the signal exceeds this range, it cannot be processed correctly in the decoder. since the input signal is ac-coupled into the decoder, its dc value needs to be restored. this process is referred to as clamping the video. this section explains the general process of clamping on the ADV7183B and shows the different ways in which a user can configure its behavior. the ADV7183B uses a combination of current sources and a digital processing block for clamping, as shown in 172h figure 10. the analog processing channel shown is replicated three times inside the ic. while only one single channel (and only one adc) is needed for a cvbs signal, two independent channels are needed for y/c (s-vhs) type signals, and three independent channels are needed to allow component signals (yprpb) to be processed. the clamping can be divided into two sections: ? clamping before the adc (analog domain): current sources ? clamping after the adc (digital domain): digital processing block the adcs can digitize an input si gnal only if it resides within the adcs 1.6 v input voltage range. an input signal with a dc level that is too large or too small is clipped at the top or bottom of the adc range. the primary task of the analog clamping circuits is to ensure the video signal stays within the valid adc input window so that the analog-to-digital conversion can take place. it is not necessary to clamp the input signal with a very high accuracy in the analog domain as long as the video signal fits the adc range. after digitization, the digital fine clamp block corrects for any remaining variations in dc level. since the dc level of an input video signal refers directly to the brightness of the picture transmitted, it is important to perform a fine clamp with high accuracy; otherwise, brightness variations can occur. further- more, dynamic changes in the dc level almost certainly lead to visually objectionable artifacts and must therefore be prohibited. the clamping scheme has to be able to acquire a newly connected video signal with a completely unknown dc level, and it must maintain the dc level during normal operation. for quickly acquiring an unknown video signal, the large cur- rent clamps can be activated. (it is assumed that the amplitude of the video signal at this point is of a nominal value.) control of the coarse and fine current clamp parameters is performed automatically by the decoder. standard definition video signals can have excessive noise on them. in particular, cvbs signals transmitted by terrestrial broadcast and demodulated using a tuner usually show very large levels of noise (>100 mv). a voltage clamp is unsuitable for this type of video signal. instead, the ADV7183B uses a set of four current sources that can cause coarse (>0.5 ma) and fine (<0.1 ma) currents to flow into and away from the high impedance node that carries the video signal (see 173h figure 10). coarse current sources fine current sources data pre- processor (dpp) adc sdp with digital fine clamp clamp control a nalo g video input 04997-010 figure 10. clamping overview ADV7183B rev. b | page 26 of 100 the following sections describe the i 2 c signals that can be used to influence the behavior of the clamps on the ADV7183B. previous revisions of the ADV7183B had controls (facl/ficl, fast and fine clamp length) to allow configuration of the length for which the coarse (fast) and fine current sources are switched on. these controls were removed on the ADV7183B-ft and replaced by an adaptive scheme. cclen current clamp enable, address 0x14[4] the current clamp enable bit allows the user to switch off the current sources in the analog front end altogether. this can be useful if the incoming analog video signal is clamped externally. when cclen is 0, the current sources are switched off. when cclen is 1 (default), the current sources are enabled. dct[1:0] digital clamp timing, address 0x15[6:5] the clamp timing register determines the time constant of the digital fine clamp circuitry. it is important to realize that the digital fine clamp reacts very quickly because it is supposed to immediately correct any residual dc level error for the active line. the time constant of the digital fine clamp must be much faster than the one from the analog blocks. by default, the time constant of the digital fine clamp is adjusted dynamically to suit the currently connected input signal. table 29. dct function dct[1:0] description 00 slow (tc = 1 sec) 01 medium (tc = 0.5 sec) 10 (default) fast (tc = 0.1 sec) 11 determined by the ADV7183B, depending on the i/p video parameters dcfe digital clamp freeze enable, address 0x15[4] this register bit allows the user to freeze the digital clamp loop at any time. it is intended for users who would like to do their own clamping. users should disable the current sources for analog clamping via the appropriate register bits, wait until the digital clamp loop settles, and then freeze it via the dcfe bit. when dcfe is 0 (default), the digital clamp is operational. when dcfe is 1, the digital clamp loop is frozen. luma filter data from the digital fine clamp block is processed by three sets of filters. the data format at this point is cvbs for cvbs input or luma only for y/c and yprpb input formats. ? luma antialias filter (yaa). the ADV7183B receives video at a rate of 27 mhz. (for 4 oversampled video, the adcs sample at 54 mhz, and the first decimation is performed inside the dpp filters. therefore, the data rate into the sdp core is always 27 mhz.) the itu-r bt.601 recommends a sampling frequency of 13.5 mhz. the luma antialias filter decimates the oversampled video using a high quality, linear phase, low-pass filter that preserves the luma signal while at the same time attenuating out-of-band components. the luma antialias filter has a fixed response. ? luma shaping filters (ysh). the shaping filter block is a programmable low-pass filter with a wide variety of responses. it can be used to selectively reduce the luma video signal bandwidth (needed prior to scaling, for example). for some video sources that contain high frequency noise, reducing the bandwidth of the luma signal improves visual picture quality. a follow-on video compression stage can work more efficiently if the video is low-pass filtered. the ADV7183B has two responses for the shaping filter: one that is used for good quality cvbs, component, and s-vhs type sources, and a second for nonstandard cvbs signals. the ysh filter responses also include a set of notches for pal and ntsc. however, using the comb filters for y/c separation is recommended. ? digital resampling filter. this block is used to allow dynamic resampling of the video signal to alter parameters such as the time base of a line of video. fundamentally, the resampler is a set of low-pass filters. the actual response is selected by the system, and user intervention is not required. 174h figure 12 through 175h figure 15 show the overall response of all filters together. unless otherwise noted, the filters are set into a typical wideband mode. ADV7183B rev. b | page 27 of 100 y-shaping filter for input signals in cvbs format, the luma shaping filters play an essential role in removing the chroma component from a composite signal. y/c separation must aim for best possible crosstalk reduction while still retaining as much bandwidth (especially on the luma component) as possible. high quality y/c separation can be achieved by using the internal comb filters of the ADV7183B. comb filtering, however, relies on the frequency relationship of the luma component (multiples of the video line rate) and the color subcarrier (f sc ). for good quality cvbs signals, this relationship is known; the comb filter algorithms can be used to separate out luma and chroma with high accuracy. for nonstandard video signals, the frequency relationship may be disturbed, and the comb filters may not be able to optimally remove all crosstalk artifacts without the assistance of the shaping filter block. an automatic mode is provided. the ADV7183B evaluates the quality of the incoming video signal and selects the filter responses in accordance with the signal quality and video standard. yfsm, wysfmovr, and wysfm allow the user to manually override the automatic decisions in part or in full. the luma shaping filter has three control registers: ? ysfm[4:0] allows the user to manually select a shaping filter mode (applied to all video signals) or to enable an automatic selection (dependent on video quality and video standard). ? wysfmovr allows the user to manually override the wysfm decision. ? wysfm[4:0] allows the user to select a different shaping filter mode for good quality cvbs, component (yprpb), and s-vhs (y/c) input signals. in automatic mode, the system preserves the maximum possible bandwidth for good cvbs sources, since they can successfully be combed, as well as for luma components of yprpb and y/c sources, since they need not be combed. for poor quality signals, the system selects from a set of proprietary shaping filter responses that complements comb filter operation to reduce visual artifacts. the decisions of the control logic are shown in 176h figure 11. ysfm[4:0] y-shaping filter mode, address 0x17[4:0] the y shaping filter mode bits allow the user to select from a wide range of low-pass and notch filters. when switched in automatic mode, the filter is selected based on other register selections (for example, detected video standard) as well as properties extracted from the incoming video itself (for example, quality, time-base stability). the automatic selection always selects the widest possible bandwidth for the video input encountered. if the ysfm settings specify a filter (where ysfm is set to values other than 00000 or 00001), the chosen filter is applied to all video, regardless of its quality. in automatic selection mode, the notch filters are used only for bad quality video signals. for all other video signals, wideband filters are used. wysfmovr wideband y-shaping filter override, address 0x18[7] setting the wysfmovr bit enables the use of the wysfm[4:0] settings for good quality video signals. for more information, refer to the general discussion of the luma shaping filters in the 177h y-shaping filter section and the flowchart shown in 178h figure 11. when wysfmovr is 0, the shaping filter for good quality video signals is selected automatically. setting wysfmovr to 1 enables manual override via wysfm[4:0] (default). ADV7183B rev. b | page 28 of 100 auto select luma shaping filter to complement comb set ysfm ysfm in auto mode? 00000 or 00001 video quality bad good select wideband filter as per wysfm[4:0] select automatic wideband filter wysfmovr 1 0 use ysfm selected filter regardless for good and bad video yes no 04997-011 figure 11. ysfm and wysfm control flowchart table 30. ysfm function ysfm[4:0] description 0'0000 automatic selection including a wide notch response (pal/ntsc/secam) 0'0001 (default) automatic selection including a narrow notch response (pal/ntsc/secam) 0'0010 svhs 1 0'0011 svhs 2 0'0100 svhs 3 0'0101 svhs 4 0'0110 svhs 5 0'0111 svhs 6 0'1000 svhs 7 0'1001 svhs 8 0'1010 svhs 9 0'1011 svhs 10 0'1100 svhs 11 0'1101 svhs 12 0'1110 svhs 13 0'1111 svhs 14 1'0000 svhs 15 1'0001 svhs 16 1'0010 svhs 17 1'0011 svhs 18 (ccir 601) 1'0100 pal nn 1 1'0101 pal nn 2 1'0110 pal nn 3 1'0111 pal wn 1 1'1000 pal wn 2 1'1001 ntsc nn 1 1'1010 ntsc nn 2 1'1011 ntsc nn 3 1'1100 ntsc wn 1 1'1101 ntsc wn 2 1'1110 ntsc wn 3 1'1111 reserved wysfm[4:0] wideband y-shaping filter mode, address 0x18[4:0] the wysfm[4:0] bits allow the user to manually select a shaping filter for good quality video si gnals, for example, cvbs with time-base stability, luma component of yprpb and luma component of y/c. the wysfm bits are active only if the wysfmovr bit is set to 1. see the general discussion of the shaping filter settings in the 179h y-shaping filter section. table 31. wysfm function wysfm[4:0] description 0'0000 do not use 0'0001 do not use 0'0010 svhs 1 0'0011 svhs 2 0'0100 svhs 3 0'0101 svhs 4 0'0110 svhs 5 0'0111 svhs 6 0'1000 svhs 7 0'1001 svhs 8 0'1010 svhs 9 0'1011 svhs 10 0'1100 svhs 11 0'1101 svhs 12 0'1110 svhs 13 0'1111 svhs 14 1'0000 svhs 15 1'0001 svhs 16 1'0010 svhs 17 1'0011 (default) svhs 18 (ccir 601) 1'0100 to 11111 do not use ADV7183B rev. b | page 29 of 100 the filter plots in 180h figure 12 show the s-vhs 1 (narrowest) to s-vhs 18 (widest) shaping filter settings. 181h figure 14 shows the pal notch filter responses. the ntsc-compatible notches are shown in 182h figure 15. 0 ?10 ?20 ?30 ?40 ?50 ?60 ?70 010 8 6 4 212 frequency (mhz) combined y antialias, s-vhs low-pass filters, y resample amplitude (db) 04997-012 figure 12. y s-vhs combined responses 0 ?20 ?40 ?60 ?80 ?100 ?120 010 8 6 4 212 frequency (mhz) amplitude (db) combined y antialias, ccir mode shaping filter, y resample 04997-013 figure 13. y s-vhs 18 extra wideband filter (ccir 601 compliant) 0 ?10 ?20 ?30 ?40 ?50 ?60 ?70 010 8 6 4 212 frequency (mhz) combined y antialias, pal notch filters, y resample amplitude (db) 04997-014 figure 14. pal notch filter response 0 ?10 ?20 ?30 ?40 ?50 ?60 ?70 010 8 6 4 212 frequency (mhz) combined y antialias, ntsc notch filters, y resample amplitude (db) 04997-015 figure 15. ntsc notch filter response chroma filter data from the digital fine clamp block is processed by three sets of filters. the data format at this point is cvbs for cvbs inputs, chroma only for y/c, or u/v interleaved for yprpb input formats. ? chroma antialias filter (caa). the ADV7183B over- samples the cvbs by a factor of 2 and the chroma/prpb by a factor of 4. a decimating filter (caa) is used to preserve the active video band and to remove any out-of- band components. the caa filter has a fixed response. ? chroma shaping filters (csh). the shaping filter block (csh) can be programmed to perform a variety of low- pass responses. it can be used to selectively reduce the bandwidth of the chroma signal for scaling or compression. ? digital resampling filter. this block is used to allow dynamic resampling of the video signal to alter parameters such as the time base of a line of video. fundamentally, the resampler is a set of low-pass filters. the actual response is chosen by the system without user intervention. the plots in 183h figure 16 show the overall response of all filters together. ADV7183B rev. b | page 30 of 100 csfm[2:0] c- shaping filter mode, address 0x17[7] the c-shaping filter mode bits allow the user to select from a range of low-pass filters, sh1 to sh5 and wideband mode for the chrominance signal. the autoselection options automa- tically select from the filter options to give the specified response. (see settings 000 and 001 in 184h table 32). table 32. csfm function csfm[2:0] description 000 (default) autoselect 1.5 mhz bandwidth 001 autoselect 2.17 mhz bandwidth 010 sh1 011 sh2 100 sh3 101 sh4 110 sh5 111 wideband mode 0 ?10 ?20 ?30 ?40 ?50 ?60 05 4 3 2 16 frequency (mhz) combined c antialias, c shaping filter, c resampler attenuation (db) 04997-016 figure 16. chroma shaping filter responses 185h figure 16 shows the responses of sh1 (narrowest) to sh5 (widest) and the wide band mode (in red). gain operation the gain control within the ADV7183B is performed strictly on a digital basis. the input adcs support a 10-bit range, mapped into a 1.6 v analog voltage range. gain correction occurs after the digitization in the form of a digital multiplier. one advantage of this architecture over the commonly used programmable gain amplifier (pga) before the adcs is that the gain is now completely independent of supply, temperature, and process variations. as shown in 186h figure 17, the ADV7183B can decode a video signal providing it fits into the adc window. two components to this are the amplitude of the input signal and the dc level on which it resides. the dc level is set by the clamping circuitry (see the 187h clamp operation section). if the amplitude of the analog video signal is too high, clipping can occur, resulting in visual artifacts. the analog input range of the adc, together with the clamp level, determines the maximum supported amplitude of the video signal. the minimum supported amplitude of the input video is determined by the ADV7183Bs ability to retrieve horizontal and vertical timing and to lock to the color burst, if present. there are two gain control units, one each for luma and chroma data. both can operate independently of each other. the chroma unit, however, can also take its gain value from the luma path. the possible agc modes are summarized in 188h table 33. it is possible to freeze the automatic gain control loops. this causes the loops to stop updating and the agc determined gain, at the time of the freeze, to stay active. the acg determined gain stays active until the automatic gain control loop is either unfrozen, or the gain mode of the operation is changed. the currently active gain from any of the modes can be read back. refer to the description of the dual function manual gain registers, lg[11:0] luma gain and cg[11:0] chroma gain, in the 189h luma gain and 190h chroma gain sections. analog voltage range supported by adc (1.6v range for adv7189b) data pre- processor (dpp) adc sdp (gain selection only) maximum voltage minimum voltage clamp level gain control 04983-017 figure 17. gain control overview ADV7183B rev. b | page 31 of 100 table 33. agc modes input video type luma gain chroma gain any manual gain luma manual gain chroma dependent on color burst amplitude dependent on horizontal sync depth taken from luma path dependent on color burst amplitude cvbs peak white taken from luma path dependent on color burst amplitude dependent on horizontal sync depth taken from luma path dependent on color burst amplitude y/c peak white taken from luma path yprpb dependent on horizontal sync depth taken from luma path luma gain lagc[2:0] luma automatic gain control, address 0x2c[7:0] the luma automatic gain control mode bits select the mode of operation for the gain control in the luma path. adi internal parameters are available to customize the peak white gain control. contact adi sales for more information. table 34. lagc function lagc[2:0] description 000 manual fixed gain (use lmg[11:0]) 001 agc (blank level to sync tip); peak white algorithm off 010 (default) agc (blank level to sync tip); peak white algorithm on 011 reserved 100 reserved 101 reserved 110 reserved 111 freeze gain lagt[1:0] luma automatic gain timing, address 0x2f[7:6] the luma automatic gain timing register allows the user to influence the tracking speed of the luminance automatic gain control. note that this register has an effect only if the lagc[2:0] register is set to 001, 010, 011, or 100 (automatic gain control modes). if peak white agc is enabled and active (see the 191h status_1[7:0] address 0x10[7:0] section), the actual gain update speed is dictated by the peak white agc loop and, as a result, the lagt settings have no effect. as soon as the part leaves peak white agc, lagt becomes relevant again. the update speed for the peak white algorithm can be custom- ized by the use of internal parameters. contact adi sales for more information. table 35. lagt function lagt[1:0] description 00 slow (tc = 2 sec) 01 medium (tc = 1 sec) 10 fast (tc = 0.2 sec) 11 (default) adaptive lg[11:0] luma gain, address 0x2f[3:0]; address 0x30[7:0]; lmg[11:0] luma manual gain, address 0x2f[3:0]; address 0x30[7:0] luma gain[11:0] is a dual-function register. if written to, a desired manual luma gain can be programmed. this gain becomes active if the lagc[2:0] mode is switched to manual fixed gain. equation 1 shows how to calculate a desired gain. if read back, this register returns the current gain value. depending on the setting in the lagc[2:0] bits, one of these gain values is returned ? luma manual gain value (lagc[2:0] set to luma manual gain mode) ? luma automatic gain value (lagc[2:0] set to any of the automatic modes) table 36. lg/lmg function lg[11:0]/lmg[11:0] read/write description lmg[11:0] = x write manual gain for luma path lg[11:0] read actually used gain ( ) = < = lg gain luma 1) ADV7183B rev. b | page 32 of 100 for example, program the ADV7183B into manual fixed gain mode with a desired gain of 0.89. 1. use equation 1 to convert the gain: 0.89 2048 = 1822.72 2. truncate to integer value: 1822.72 = 1822 3. convert to hexadecimal: 1822d = 0x71e 4. split into two registers and program: luma gain control 1[3:0] = 0x7 luma gain control 2[7:0] = 0x1e 5. enable manual fixed gain mode: set lagc[2:0] to 000 betacam enable betacam levels, address 0x01[5] if yprpb data is routed through the ADV7183B, the automatic gain control modes can target different video input levels, as outlined in 192h figure 40. the betacam bit is valid only if the input mode is yprpb (component). the betacam bit sets the target value for agc operation. a review of the following sections is useful: ? 193h insel[3:0] input selection, address 0x00[3:0] to find how component video (yprpb) can be routed through the ADV7183B. ? 194h video standard selection to select the various standards, such as those with and without pedestal. the automatic gain control (agc) algorithms adjust the levels based on the setting of the betacam bit (see 195h table 37). table 37. betacam function betacam description 0 (default) assuming yprpb is selected as input format selecting pal with pedestal selects mii selecting pal without pedestal selects smpte selecting ntsc with pedestal selects mii selecting ntsc without pedestal selects smpte 1 assuming yprpb is selected as input format selecting pal with pedestal selects betacam selecting pal without pedestal selects betacam variant selecting ntsc with pedestal selects betacam selecting ntsc without pedestal selects betacam variant pw_upd peak white update, address 0x2b[0] the peak white and average video algorithms determine the gain based on measurements taken from the active video. the pw_upd bit determines the rate of gain change. the lagc[2:0] must be set to the appropriate mode to enable the peak white or average video mode in the first place. for more information, refer to the 196h lagc[2:0] luma automatic gain control, address 0x2c[7:0] section. setting pw_upd to 0 updates the gain once per video line. setting pw_upd to 1 (default) updates the gain once per field. chroma gain cagc[1:0] chroma automatic gain control, address 0x2c[1:0] the two bits of the color automatic gain control mode select the basic mode of operation for automatic gain control in the chroma path. table 38. cagc function cagc[1:0] description 00 manual fixed gain (use cmg[11:0]) 01 use luma gain for chroma 10 (default) automatic gain (based on color burst) 11 freeze chroma gain cagt[1:0] chroma automatic gain timing, address 0x2d[7:6] the chroma automatic gain timing register allows the user to influence the tracking speed of the chroma automatic gain con- trol. this register has an effect only if the cagc[1:0] register is set to 10 (automatic gain). table 39. cagt function cagt[1:0] description 00 slow (tc = 2 sec) 01 medium (tc = 1 sec) 10 fast (tc = 0.2 sec) 11 (default) adaptive table 40. betacam levels name betacam (mv) betacam variant (mv) smpte (mv) mii (mv) y range 0 to 714 (includes 7.5% pedestal) 0 to 714 0 to 700 0 to 700 (includes 7.5% pedestal) pb and pr range C467 to +467 C505 to +505 C350 to +350 C324 to +324 sync depth 286 286 300 300 ADV7183B rev. b | page 33 of 100 cg[11:0] chroma gain, address 0x2d[3:0]; address 0x2e[7:0] cmg[11:0] chroma manual gain, address 0x2d[3:0]; address 0x2e[7:0] chroma gain[11:0] is a dual-function register. if written to, a desired manual chroma gain can be programmed. this gain becomes active if the cagc[1:0] mode is switched to manual fixed gain. refer to equation 2 for calculating a desired gain. if read back, this register returns the current gain value. depending on the setting in the cagc[1:0] bits, one of these gain values is returned ? chroma manual gain value (cagc[1:0] set to chroma manual gain mode) ? chroma automatic gain value (cagc[1:0] set to any of the automatic modes) table 41. cg/cmg function cg[11:0]/cmg[11:0] read/write description cmg[11:0] write manual gain for chroma path cg[11:0] read currently active gain () 4 ... 0 1024 4095 0 _ = < = cg gain chroma (2) for example, freezing the automatic gain loop and reading back the cg[11:0] register results in a value of 0x47a. 1. convert the readback value to decimal: 0x47a = 1146d 2. apply equation 2 to convert the readback value: 1146/1024 = 1.12 cke color kill enable, address 0x2b[6] the color kill enable bit allows the optional color kill function to be switched on or off. for qam-based video standards (pal and ntsc) and fm- based systems (secam), the threshold for the color kill decision is selectable via the ckillthr[2:0] bits. if color kill is enabled, and if the color carrier of the incoming video signal is less than the threshold for 128 consecutive video lines, color processing is switched off (black and white output). to switch the color processing back on, another 128 consecutive lines with a color burst greater than the threshold are required. the color kill option works only for input signals with a modu- lated chroma part. for component input (yprpb), there is no color kill. setting cke to 0 disables color kill. setting cke to 1 (default) enables color kill. ckillthr[2:0] color kill threshold, address 0x3d[6:4] the ckillthr[2:0] bits allow the user to select a threshold for the color kill function. the threshold applies only to qam based (ntsc and pal) or fm-modulated (secam) video standards. to enable the color kill function, the cke bit must be set. for settings 000, 001, 010, and 011, chroma demodulation inside the ADV7183B may not work satisfactorily for poor input video signals. table 42. ckillthr function description ckillthr[2:0] secam ntsc, pal 000 no color kill kill at < 0.5% 001 kill at < 5% kill at < 1.5% 010 kill at < 7% kill at < 2.5% 011 kill at < 8% kill at < 4.0% 100 (default) kill at < 9.5% kill at < 8.5% 101 kill at < 15% kill at < 16.0% 110 kill at < 32% kill at < 32.0% 111 reserved for adi internal use only; do not select chroma transient improvement (cti) the signal bandwidth allocated for chroma is typically much smaller than that of luminance. in the past, this was a valid way to fit a color video signal into a given overall bandwidth because the human eye is less sensitive to chrominance than to luminance. the uneven bandwidth, however, can lead to visual artifacts in sharp color transitions. at the border of two bars of color, both components (luma and chroma) change at the same time (see 197h figure 18). due to the higher bandwidth, the signal transition of the luma component is usually much sharper than that of the chroma component. the color edge is not sharp but blurred, in the worst case, over several pixels. luma signal demodulated chroma signal luma signal with a transition, accompanied by a chroma transition original, slow chroma transition prior to cti sharpened chroma transition at the output of cti 04997-018 figure 18. cti luma/chroma transition ADV7183B rev. b | page 34 of 100 the chroma transient improvement block examines the input video data. it detects transitions of chroma and can be programmed to steepen the chroma edges in an attempt to artificially restore lost color bandwidth. the cti block, however, operates only on edges above a certain threshold to ensure that noise is not emphasized. care has also been taken to ensure that edge ringing and undesirable saturation or hue distortion are avoided. chroma transient improvements are needed primarily for signals that experienced severe chroma bandwidth limitations. for those types of signals, it is strongly recommended to enable the cti block via cti_en. cti_en chroma transient improvement enable, address 0x4d[0] the cti_en bit enables the cti function. if set to 0, the cti block is inactive and the chroma transients are left untouched. setting cti_en to 0 disables the cti block. setting cti_en to 1 (default) enables the cti block. cti_ab_en chroma transient improvement alpha blend enable, address 0x4d[1] the cti_ab_en bit enables an alpha-blend function within the cti block. if set to 1, the alpha blender mixes the transient improved chroma with the original signal. the sharpness of the alpha blending can be configured via the cti_ab[1:0] bits. for the alpha blender to be active, the cti block must be enabled via the cti_en bit. setting cti_ab_en to 0 disables the cti alpha blender. setting cti_ab_en to 1 (default) enables the cti alpha-blend mixing function. cti_ab[1:0] chroma transient improvement alpha blend, address 0x4d[3:2] the cti_ab[1:0] controls the behavior of alpha-blend circuitry that mixes the sharpened chroma signal with the original one. it thereby controls the visual impact of cti on the output data. for cti_ab[1:0] to become active, the cti block must be enabled via the cti_en bit, and the alpha blender must be switched on via cti_ab_en. sharp blending maximizes the effect of cti on the picture, but can also increase the visual impact of small amplitude, high frequency chroma noise. table 43. cti_ab function cti_ab[1:0] description 00 sharpest mixing between sharpened and original chroma signal 01 sharp mixing 10 smooth mixing 11 (default) smoothest alpha blend function cti_c_th[7:0] cti chroma threshold, address 0x4e[7:0] the cti_c_th[7:0] value is an unsigned, 8-bit number speci- fying how big the amplitude step in a chroma transition must be steepened by the cti block. programming a small value into this register causes even smaller edges to be steepened by the cti block. making cti_c_th[7:0] a large value causes the block to improve large transitions only. the default value for cti_c_th[7:0] is 0x08, indicating the threshold for the chroma edges prior to cti. digital noise reduction (dnr) digital noise reduction is based on the assumption that high frequency signals with low amplitude are probably noise and that their removal, therefore, improves picture quality. dnr_en digital noise reduction enable, address 0x4d[5] the dnr_en bit enables or bypasses the dnr block. setting dnr_en to 0 bypasses dnr (disables it). setting dnr_en to 1 (default) enables digital noise reduction on the luma data. dnr_th[7:0] dnr noise threshold, address 0x50[7:0] the dnr_th[7:0] value is an unsigned 8-bit number used to determine the maximum edge to be interpreted as noise and, therefore, blanked from the luma data. programming a large value into dnr_th[7:0] causes the dnr block to interpret even large transients as noise and remove them. the effect on the video data is, therefore, more visible. programming a small value causes only small transients to be seen as noise and to be removed. the recommended dnr_th[7:0] setting for a/v inputs is 0x04, and the recommended dnr_th[7:0] setting for tuner inputs is 0x0a. the default value for dnr_th[7:0] is 0x08, indicating the threshold for maximum luma edges to be interpreted as noise. ADV7183B rev. b | page 35 of 100 comb filters the comb filters of the ADV7183B have been greatly improved to automatically handle video of all types, standards, and levels of quality. the ntsc and pal configuration registers allow the user to customize comb filter operation, depending on which video standard is detected (by autodetection) or selected (by manual programming). in addition to the bits listed in this section, there are some other adi internal controls; contact adi for more information. ntsc comb filter settings used for ntsc-m/j cvbs inputs. nsfsel[1:0] split filter selection ntsc, address 0x19[3:2] the nsfsel[1:0] control selects how much of the overall signal bandwidth is fed to the combs. a narrow split filter selection gives better performance on diagonal lines, but leaves more dot crawl in the final output image; the opposite is true for selecting a wide bandwidth split filter. table 44. nsfsel function nsfsel[1:0] description 00 (default) narrow 01 medium 10 medium 11 wide ctapsn[1:0] chroma comb taps ntsc, address x38[7:6] table 45. ctapsn function ctapsn[1:0] description 00 do not use 01 ntsc chroma comb adapts 3 lines (3 taps) to 2 lines (2 taps) 10 (default) ntsc chroma comb adapts 5 lines (5 taps) to 3 lines (3 taps) 11 ntsc chroma comb adapts 5 lines (5 taps) to 4 lines (4 taps) ccmn[2:0] chroma comb mode ntsc, address 0x38[5:3] table 46. ccmn function ccmn[2:0] description adaptive 3-line chroma comb for ctapsn = 01 adaptive 4-line chroma comb for ctapsn = 10 0xx (default) adaptive comb mode adaptive 5-line chroma comb for ctapsn = 11 100 disable chroma comb fixed 2-line chroma comb for ctapsn = 01 fixed 3-line chroma comb for ctapsn = 10 101 fixed chroma comb (top lines of line memory) fixed 4-line chroma comb for ctapsn = 11 fixed 3-line chroma comb for ctapsn = 01 fixed 4-line chroma comb for ctapsn = 10 110 fixed chroma comb (all lines of line memory) fixed 5-line chroma comb for ctapsn = 11 fixed 2-line chroma comb for ctapsn = 01 fixed 3-line chroma comb for ctapsn = 10 111 fixed chroma comb (bottom lines of line memory) fixed 4-line chroma comb for ctapsn = 11 ycmn[2:0] luma comb mode ntsc, address 0x38[2:0] table 47.ycmn function ycmn[2:0] description 0xx (default) adaptive comb mode ad aptive 3-line (3 taps) luma comb 100 disable luma comb use low-pass/notch filter; see the 198h y-shaping filter section 101 fixed luma comb (top lines of line memory) fixed 2-line (2 taps) luma comb 110 fixed luma comb (all lines of line me mory) fixed 3-line (3 taps) luma comb 111 fixed luma comb (bottom lines of line memory) fixed 2-line (2 taps) luma comb ADV7183B rev. b | page 36 of 100 pal comb filter settings used for pal-b/g/h/i/d, pal-m, pal-combination n, pal60 and ntsc443 cvbs inputs. psfsel[1:0] split filter selection pal, address 0x19[1:0] the psfsel[1:0] control selects how much of the overall signal bandwidth is fed to the combs. a wide split filter selection eliminates dot crawl, but shows imperfections on diagonal lines; the opposite is true for selecting a narrow bandwidth split filter. table 48. psfsel function psfsel[1:0] description 00 narrow 01 (default) medium 10 wide 11 widest ctapsp[1:0] chroma comb taps pal, address 0x39[7:6] table 49. ctapsp function ctapsp[1:0] description 00 do not use. 01 pal chroma comb adapts 5 lines (3 taps) to 3 lines (2 taps); cancels cross luma only 10 pal chroma comb adapts 5 lines (5 taps) to 3 lines (3 taps); cancels cross luma and hue error less well 11 (default) pal chroma comb adapts 5 lines (5 taps) to 4 lines (4 taps); cancels cross luma and hue error well ccmp[2:0] chroma comb mode pal, address 0x39[5:3] table 50. ccmp function ccmp[2:0] description configuration adaptive 3-line chroma comb for ctapsp = 01 adaptive 4-line chroma comb for ctapsp = 10 0xx (default) adaptive comb mode adaptive 5-line chroma comb for ctapsp = 11 100 disable chroma comb fixed 2-line chroma comb for ctapsp = 01 fixed 3-line chroma comb for ctapsp = 10 101 fixed chroma comb (top lines of line memory) fixed 4-line chroma comb for ctapsp = 11 fixed 3-line chroma comb for ctapsp = 01 fixed 4-line chroma comb for ctapsp = 10 110 fixed chroma comb (all lines of line memory) fixed 5-line chroma comb for ctapsp = 11 fixed 2-line chroma comb for ctapsp = 01 fixed 3-line chroma comb for ctapsp = 10 111 fixed chroma comb (bottom lines of line memory) fixed 4-line chroma comb for ctapsp = 11 ycmp[2:0] luma comb mode pal, address 0x39[2:0] table 51. ycmp function ycmp[2:0] description configuration 0xx (default) adaptive comb mode ad aptive 5 lines (3 taps) luma comb 100 disable luma comb use low-pass/notch filter; see the 199h y-shaping filter section 101 fixed luma comb (top lines of line memory) fixed 3 lines (2 taps) luma comb 110 fixed luma comb (all lines of line memory) fixed 5 lines (3 taps) luma comb 111 fixed luma comb (bottom lines of line memory) fixed 3 lines (2 taps) luma comb ADV7183B rev. b | page 37 of 100 av code insertion and controls this section describes the i 2 c based controls that affect: ? insertion of av codes into the data stream ? data blanking during the vertical blank interval (vbi) ? the range of data values permitted in the output data stream ? the relative delay of luma vs. chroma signals some of the decoded vbi data is inserted during the horizontal blanking interval. see the 200h gemstar data recovery section for more information. bt656-4 itu standard bt-r.656-4 enable, address 0x04[7] the itu has changed the position for toggling of the v bit within the sav eav codes for ntsc between revisions 3 and 4. the bt656-4 standard bit allows the user to select an output mode that is compliant with either the previous or the new standard. for more information, review the standard at www.itu.int. note that the standard change affects ntsc only and has no bearing on pal. when bt656-4 is 0 (default), the bt656-3 specification is used. the v bit goes low at eav of line 10 and line 273. when bt656-4 is 1, the bt656-4 specification is used. the v bit goes low at eav of line 20 and line 283. sd_dup_av duplicate av codes, address 0x03[0] depending on the output interface width, it can be necessary to duplicate the av codes from the luma path into the chroma path. in an 8-bit-wide output interface (cb/y/cr/y interleaved data), the av codes are defined as ff/00/00/av, with av as the transmitted word that contains information about h/v/f. in this output interface mode, the following assignment takes place: cb = ff, y = 00, cr = 00, and y = av. in a 16-bit output interface where y and cr/cb are delivered via separate data buses, the av code is over the whole 16 bits. the sd_dup_av bit allows the user to replicate the av codes on both busses, so the full av sequence can be found on the y bus and on the cr/cb bus. see 201h figure 19. when sd_dup_av is 0 (default), the av codes are in single fashion (for 8-bit interleaved data output). when sd_dup_av is 1, the av codes are duplicated (for 16-bit interfaces). vbi_en vertical blanking interval data enable, address 0x03[7] the vbi enable bit allows data such as intercast and closed caption data to be passed through the luma channel of the decoder with a minimal amount of filtering. all data for line 1 to line 21 is passed through and available at the output port. the ADV7183B does not blank the luma data, and auto- matically switches all filters along the luma data path into their widest bandwidth. for active video, the filter settings for ysh and ypk are restored. refer to the 202h bl_c_vbi blank chroma during vbi, address 0x04[2] section for information on the chroma path. when vbi_en is 0 (default), all video lines are filtered/scaled. when vbi_en is 1, only the active video region is filtered/scaled. y data bus 00 av y ff 00 00 av y ff cr/cb data bus 00 00 av cb ff 00 cb av code section av code section ff 00 00 av cb av code section cb/y/cr/y interleaved 8-bit interface 16-bit interface 16-bit interface sddupav 1 sddupav 0 04997-019 figure 19. av code duplication control ADV7183B rev. b | page 38 of 100 bl_c_vbi blank chroma during vbi, address 0x04[2] setting bl_c_vbi high, the cr and cb values of all vbi lines are blanked. this is done so any data that arrives during vbi is not decoded as color and output through cr and cb. as a result, it should be possible to send vbi lines into the decoder, then output them through an encoder again, undistorted. without this blanking, any wrongly decoded color is encoded by the video encoder; therefore, the vbi lines are distorted. setting bl_c_vbi to 0 decodes and outputs color during vbi. setting bl_c_vbi to 1 (default) blanks cr and cb values during vbi. range range selection, address 0x04[0] av codes (as per itu-r bt-656, formerly known as ccir-656) consist of a fixed header made up of 0xff and 0x00 values. these two values are reserved and therefore cannot be used for active video. additionally, the itu specifies that the nominal range for video should be restricted to values between 16 and 235 for luma and 16 to 240 for chroma. the range bit allows the user to limit the range of values output by the ADV7183B to the recommended value range. in any case, it ensures that the reserved values of 255d (0xff) and 00d (0x00) are not presented on the output pins unless they are part of an av code header. table 52. range function range description 0 16 y 235 16 c/p 240 1 (default) 1 y 254 1 c/p 254 auto_pdc_en automatic programmed delay control, address 0x27[6] enabling the auto_pdc_en function activates a function within the ADV7183B that automatically programs the lta[1:0] and cta[2:0] to have the chroma and luma data match delays for all modes of operation. if set, manual registers lta[1:0] and cta[2:0] are not used. if the automatic mode is disabled (via setting the auto_pdc_en bit to 0), the values programmed into lta[1:0] and cta[2:0] registers become active. when auto_pdc_en is 0, the adv7183 uses the lta[1:0] and cta[2:0] values for delaying luma and chroma samples. refer to the 203h lta[1:0] luma timing adjust, address 0x27[1:0] and the 204h cta[2:0] chroma timing adjust, address 0x27[5:3] sections. when auto_pdc_en is 1 (default), the ADV7183B auto- matically determines the lta and cta values to have luma and chroma aligned at the output. lta[1:0] luma timing adjust, address 0x27[1:0] the luma timing adjust register allows the user to specify a timing difference between chroma and luma samples. there is a certain functionality overlap with the cta[2:0] register. for manual programming, use the following defaults: ? cvbs input lta[1:0] = 00 ? y/c input lta[1:0] = 01 ? yprpb input lta[1:0] = 01 table 53. lta function lta[1:0] description 00 (default) no delay 01 luma 1 clk (37 ns) delayed 10 luma 2 clk (74 ns) early 11 luma 1 clk (37 ns) early cta[2:0] chroma timing adjust, address 0x27[5:3] the chroma timing adjust register allows the user to specify a timing difference between chroma and luma samples. this can be used to compensate for external filter group delay differences in the luma vs. chroma path, and to allow a different number of pipeline delays while processing the video downstream. review this functionality together with the lta[1:0] register. the chroma can only be delayed/advanced in chroma pixel steps. one chroma pixel step is equal to two luma pixels. the programmable delay occurs after demodulation, where one can no longer delay by luma pixel steps. for manual programming, use the following defaults: ? cvbs input cta[2:0] = 011 ? y/c input cta[2:0] = 101 ? yprpb input cta[2:0] =110 table 54. cta function cta[2:0] description 000 not used 001 chroma + 2 chroma pixel (early) 010 chroma + 1 chroma pixel (early) 011 (default) no delay 100 chroma C 1 chroma pixel (late) 101 chroma C 2 chroma pixel (late) 110 chroma C 3 chroma pixel (late) 111 not used ADV7183B rev. b | page 39 of 100 synchronization output signals hs configuration the following controls allow the user to configure the behavior of the hs output pin only: ? beginning of hs signal via hsb[10:0] ? end of hs signal via hse[10:0] ? polarity of hs using phs the hs begin and hs end registers allow the user to freely position the hs output (pin) within the video line. the values in hsb[10:0] and hse[10:0] are measured in pixel units from the falling edge of hs. using both values, the user can program both the position and length of the hs output signal. hsb[10:0] hs begin, address 0x34[6:4], address 0x35[7:0] the position of this edge is controlled by placing a binary number into hsb[10:0]. the number applied offsets the edge with respect to an internal counter that is reset to 0 immediately after eav code ff, 00, 00, xy (see 205h figure 20). hsb is set to 00000000010b, which is 2 llc1 clock cycles from count[0]. the default value of hsb[10:0] is 0x002, indicating the hs pulse starts two pixels after the falling edge of hs. hse[10:0] hs end, address 0x34[2:0], address 0x36[7:0] the position of this edge is controlled by placing a binary number into hse[10:0]. the number applied offsets the edge with respect to an internal counter that is reset to 0 immediately after eav code ff, 00, 00, xy (see 206h figure 20). hse is set to 00000000000b, which is 0 llc1 clock cycles from count[0]. the default value of hse[9:0] is 000, indicating that the hs pulse ends zero pixels after falling edge of hs. for example: 1. to shift the hs toward active video by 20 llc1s, add 20 llc1s to both hsb and hse, that is, hsb[10:0] = [00000010110], hse[10:0] = 00000010100]. 2. to shift the hs away from active video by 20 llc1s, add 1696 llc1s to both hsb and hse (for ntsc), that is, hsb[10:0] = [11010100010], hse[10:0] = [11010100000]. 1696 is derived from the ntsc total number of pixels = 1716. to move 20 llc1s away from active video is equal to subtracting 20 from 1716 and adding the result in binary to both hsb[10:0] and hse[10:0]. phs polarity hs, address 0x37[7] the polarity of the hs pin can be inverted using the phs bit. when phs is 0 (default), hs is active high. when phs is 1, hs is active low. table 55. hs timing parameters (see 207h figure 20) characteristic standard hs begin adjust (hsb[10:0]) (default) hs end adjust (hse[10:0]) (default) hs to active video (llc1 clock cycles) (c in 208h figure 20) (default) active video samples/line (d in 209h figure 20) total llc1 clock cycles (e in 210h figure 20) ntsc 00000000010b 00000000000b 272 720y + 720c = 1440 1716 ntsc square pixel 00000000010b 00000000000b 276 640y + 640c = 1280 1560 pal 00000000010b 00000000000b 284 720y + 720c = 1440 1728 e active video llc1 pixel bus hs cr y ff 00 00 xy 80 10 80 10 80 10 ff 00 00 xy cb y cr y cb y cr 4 llc1 d hsb[10:0] hse[10:0] c e d sav active video h blank eav 04997-020 figure 20. hs timing ADV7183B rev. b | page 40 of 100 vs and field configuration the following controls allow the user to configure the behavior of the vs and field output pins and to generate embedded av codes: ? adv encoder-compatible signals via newavmode ? pvs, pf ? hvstim ? vsbho, vsbhe ? vseho, vsehe ? for ntsc control: ? nvbegdelo, nvbegdele, nvbegsign, nvbeg[4:0] ? nvenddelo, nvenddele, nvendsign, nvend[4:0] ? nftogdelo, nftogdele, nftogsign, nftog[4:0] ? for pal control: ? pvbegdelo, pvbegdele, pvbegsign, pvbeg[4:0] ? pvenddelo, pvenddele, pvendsign, pvend[4:0] ? pftogdelo, pftogdele, pftogsign, pftog[4:0] newavmode new av mode, address 0x31[4] when newavmode is 0, eav/sav codes are generated to suit adi encoders. no adjustments are possible. setting newavmode to 1 (default) enables the manual posi-tion of the vsync, field, and av codes using register 0x34 to register 0x37 and register 0xe5 to register 0xea. default register settings are ccir656-compliant; see 211h figure 21 for ntsc and 212h figure 26 for pal. for recommended manual user settings, see 213h table 56 and 214h figure 22 for ntsc; see 215h table 57 and 216h figure 27 for pal. hvstim horizontal vs timing, address 0x31[3] the hvstim bit allows the user to select where the vs signal is being asserted within a line of video. some interface circuitry can require vs to go low while hs is low. when hvstim is 0 (default), the start of the line is relative to hse. when hvstim is 1, the start of the line is relative to hsb. vsbho vs begin horizontal position odd, address 0x32[7] the vsbho and vsbhe bits select the position within a line at which the vs pin (not the bit in the av code) becomes active. some follow-on chips require the vs pin to change state only when hs is high/low. when vsbho is 0 (default), the vs pin goes high at the middle of a line of video (odd field). when vsbho is 1, the vs pin changes state at the start of a line (odd field). vsbhe vs begin horizontal position even, address 0x32[6] the vsbho and vsbhe bits select the position within a line at which the vs pin (not the bit in the av code) becomes active. some follow-on chips require the vs pin to change state when only hs is high/low. when vsbhe is 0, the vs pin goes high at the middle of a line of video (even field). when vsbhe is 1 (default), the vs pin changes state at the start of a line (even field). vseho vs end horizontal position odd, address 0x33[7] the vseho and vsehe bits select the position within a line at which the vs pin (not the bit in the av code) becomes active. some follow-on chips require the vs pin to change state only when hs is high/low. when vseho is 0 (default), the vs pin goes low (inactive) at the middle of a line of video (odd field). when vseho is 1, the vs pin changes state at the start of a line (odd field). vsehe vs end horizontal position even, address 0x33[6] the vseho and vsehe bits select the position within a line at which the vs pin (not the bit in the av code) becomes active. some follow-on chips require the vs pin to change state only when hs is high/low. when vsehe is 0 (default), the vs pin goes low (inactive) at the middle of a line of video (even field). when vsehe is 1, the vs pin changes state at the start of a line (even field). pvs polarity vs, address 0x37[5] the polarity of the vs pin can be inverted using the pvs bit. when pvs is 0 (default), vs is active high. ADV7183B rev. b | page 41 of 100 when pvs is 1, vs is active low. pf polarity field, address 0x37[3] the polarity of the field pin can be inverted using the pf bit. when pf is 0 (default), field is active high. when pf is 1, field is active low. output video field 1 field 2 h v f output video h v f 525 1 2 3 4 5 6 7 8 9 10 11 12 13 19 20 21 22 nvbeg[4:0] = 0x5 nvbeg[4:0] = 0x5 nvend[4:0] = 0x4 nvend[4:0] = 0x4 nftog[4:0] = 0x3 nftog[4:0] = 0x3 1 bt.656-4 reg 0x04, bit 7 = 1 1 bt.656-4 reg 0x04, bit 7 = 1 1 applies if newavmode = 0: must be manually shifted if newavmode = 1. 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 283 284 285 04997-021 figure 21. ntsc default (bt.656). the polarity of h, v, and f is embedded in the data. nvbeg[4:0] =0x0 nvend[4:0] = 0x3 field 1 output video field output hs output nftog[4:0] = 0x5 vs output 525 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 21 22 field 2 output video field output hs output vs output 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 284 285 nvbeg[4:0] = 0x0 nvend[4:0] = 0x3 nftog[4:0] = 0x5 04997-022 figure 22. ntsc typical vsync/field positions using register writes in 217h table 56 ADV7183B rev. b | page 42 of 100 table 56. recommended user settings for ntsc (see 218h figure 22) register register name write 0x31 vsync field control 1 0x1a 0x32 vsync field control 2 0x81 0x33 vsync field control 3 0x84 0x34 hsync pos. control 1 0x00 0x35 hsync pos. control 2 0x00 0x36 hsync pos. control 3 0x7d 0x37 polarity 0xa1 0xe5 ntsv_v_bit_beg 0x41 0xe6 ntsc_v_bit_end 0x84 0xe7 ntsc_f_bit_tog 0x06 advance begin of vsync by nvbeg[4:0] delay begin of vsync by nvbeg[4:0] vsync begin nvbegsign odd field? 0 1 no yes nvbegdelo vsbho additional delay by 1 line advance by 0.5 line 1 0 1 0 nvbegdele vsbhe additional delay by 1 line advance by 0.5 line 1 0 1 0 not valid for use r programming 04997-023 figure 23. ntsc vsync begin nvbegdelo ntsc vsync begin delay on odd field, address 0xe5[7] when nvbegdelo is 0 (default), there is no delay. setting nvbegdelo to 1, delay vsync going high on an odd field by a line relative to nvbeg. nvbegdele ntsc vsync begin delay on even field, address 0xe5[6] when nvbegdele is 0 (default), there is no delay. setting nvbegdele to 1 delays vsync going high on an even field by a line relative to nvbeg. nvbegsign ntsc vsync begin sign, address 0xe5[5] setting nvbegsign to 0 delays the start of vsync. set for user manual programming. setting nvbegsign to 1 (default), advances the start of vsync. not recommended for user programming. nvbeg[4:0] ntsc vsync begin, address 0xe5[4:0] the default value of nvbeg is 00101, indicating the ntsc vsync begin position. for all ntsc/pal vsync timing controls, both the v bit in the av code and the vsync on the vs pin are modified. ADV7183B rev. b | page 43 of 100 advance end of vsync by nvend[4:0] delay end of vsync by nvend[4:0] vsync end nvendsign odd field? 0 1 no yes nvenddelo vseho additional delay by 1 line advance by 0.5 line 1 0 1 0 nvenddele vsehe additional delay by 1 line advance by 0.5 line 1 0 1 0 not valid for user programming 04997-024 figure 24. ntsc vsync end nvenddelo ntsc vsync end delay on odd field, address 0xe6[7] when nvenddelo is 0 (default), there is no delay. setting nvenddelo to 1 delays vsync from going low on an odd field by a line relative to nvend. nvenddele ntsc vsync end delay on even field, address 0xe6[6] when nvenddele is set to 0 (default), there is no delay. setting nvenddele to 1 delays vsync from going low on an even field by a line relative to nvend. nvendsign ntsc vsync end sign, address 0xe6[5] setting nvendsign to 0 (default) delays the end of vsync (default). set for user manual programming. setting nvendsign to 1 advances the end of vsync. not recommended for user programming. nvend ntsc[4:0] vsync end, address 0xe6[4:0] the default value of nvend is 00100, indicating the ntsc vsync end position. for all ntsc/pal vsync timing controls, both the v bit in the av code and the vsync on the vs pin are modified. nftogdelo ntsc field toggle delay on odd field, address 0xe7[7] when nftogdelo is 0 (default), there is no delay. setting nftogdelo to 1 delays the field toggle/transition on an odd field by a line relative to nftog. nftogdele ntsc field toggle delay on even field, address 0xe7[6] when nftogdele is 0, there is no delay. setting nftogdele to 1 (default) delays the field toggle/ transition on an even field by a line relative to nftog. advance toggle of field by nftog[4:0] delay toggle of field by nftog[4:0] nftogsign odd field? 0 1 no yes nftogdele additional delay by 1 line 1 0 nftogdelo additional delay by 1 line 1 0 field toggle not valid for use r programming 04997-025 figure 25. ntsc field toggle nftogsign ntsc field toggle sign, address 0xe7[5] setting nftogsign to 0 delays the field transition. set for user manual programming. setting nftogsign to 1 (default) advances the field transition. not recommended for user programming. ADV7183B rev. b | page 44 of 100 nftog[4:0] ntsc field toggle, address 0xe7[4:0] the default value of nftog is 00011, indicating the ntsc field toggle position. for all ntsc/pal field timing controls, both the f bit in the av code and the field signal on the field pin are modified. table 57. recommended user settings for pal (see 219h figure 27) register register name write 0x31 vsync field control 1 0x1a 0x32 vsync field control 2 0x81 0x33 vsync field control 3 0x84 0x34 hsync pos. control 1 0x00 0x35 hsync pos. control 2 0x00 0x36 hsync pos. control 3 0x7d 0x37 polarity 0x29 0xe8 pal_v_bit_beg 0x41 0xe9 pal_v_bit_end 0x84 0xea pal_f_bit_tog 0x06 field 1 output video h v f 622 623 624 625 1 2 3 4 5 6 7 8 9 10 22 23 24 pvbeg[4:0] = 0x5 pvend[4:0] = 0x4 pftog[4:0] = 0x3 field 2 output video h v f pvbeg[4:0] = 0x5 pvend[4:0] = 0x4 pftog[4:0] = 0x3 310 311 312 313 314 315 316 317 318 319 320 321 322 335 336 337 04997-026 figure 26. pal default (bt.656). the polarity of h, v, and f is embedded in the data. field 1 622 623 624 625 123 45 678 91011 2324 310 311 312 313 314 315 316 317 318 319 320 321 322 323 336 337 pvbeg[4:0] = 0x1 pvend[4:0] = 0x4 pftog[4:0] = 0x6 field 2 output video field output hs output vs output output video field output hs output vs output pvbeg[4:0] = 0x1 pvend[4:0] = 0x4 pftog[4:0] = 0x6 04997-027 figure 27. pal typical vsync/field positions using register writes in 220h table 57 ADV7183B rev. b | page 45 of 100 advance begin of vsync by pvbeg[4:0] delay begin of vsync by pvbeg[4:0] vsync begin pvbegsign odd field? 0 1 no yes pvbegdelo vsbho additional delay by 1 line advance by 0.5 line 1 0 1 0 pvbegdele vsbhe additional delay by 1 line advance by 0.5 line 1 0 1 0 not valid for use r programming 04997-028 figure 28. pal vsync begin pvbegdelo pal vsync begin delay on odd field, address 0xe8[7] when pvbegdelo is 0 (default), there is no delay. setting pvbegdelo to 1 delays vsync going high on an odd field by a line relative to pvbeg. pvbegdele pal vsync begin delay on even field, address 0xe8[6] when pvbegdele is 0, there is no delay. setting pvbegdele to 1 (default) delays vsync going high on an even field by a line relative to pvbeg. pvbegsign pal vsync begin sign, address 0xe8[5] setting pvbegsign to 0 delays the beginning of vsync. set for user manual programming. setting pvbegsign to 1 (default) advances the beginning of vsync. not recommended for user programming. pvbeg[4:0] pal vsync begin, address 0xe8[4:0] the default value of pvbeg is 00101, indicating the pal vsync begin position. for all ntsc/pal vsync timing controls, both the v bit in the av code and the vsync on the vs pin are modified. advance end of vsync by pvend[4:0] delay end of vsync by pvend[4:0] vsync end pvendsign odd field? 0 1 no yes pvenddelo vseho additional delay by 1 line advance by 0.5 line 1 0 1 0 pvenddele vsehe additional delay by 1 line advance by 0.5 line 1 0 1 0 not valid for user programming 04997-029 figure 29. pal vsync end pvenddelo pal vsync end delay on odd field, address 0xe9[7] when pvenddelo is 0 (default), there is no delay. setting pvenddelo to 1 delays vsync going low on an odd field by a line relative to pvend. pvenddele pal vsync end delay on even field, address 0xe9[6] when pvenddele is 0 (default), there is no delay. setting pvenddele to 1 delays vsync going low on an even field by a line relative to pvend. ADV7183B rev. b | page 46 of 100 pvendsign pal vsync end sign, address 0xe9[5] setting pvendsign to 0 (default) delays the end of vsync. set for user manual programming. setting pvendsign to 1 advances the end of vsync. not recommended for user programming. pvend[4:0] pal vsync end, address 0xe9[4:0] the default value of pvend is 10100, indicating the pal vsync end position. for all ntsc/pal vsync timing controls, both the v bit in the av code and the vsync on the vs pin are modified. pftogdelo pal field toggle delay on odd field, address 0xea[7] when pftogdelo is 0 (default), there is no delay. setting pftogdelo to 1 delays the f toggle/transition on an odd field by a line relative to pftog. pftogdele pal field toggle delay on even field, address 0xea[6] when pftogdele is 0, there is no delay. setting pftogdele to 1 (default) delays the f toggle/ transition on an even field by a line relative to pftog. pftogsign pal field toggle sign, address 0xea[5] setting pftogsign to 0 delays the field transition. set for user manual programming. setting pftogsign to 1 (default) advances the field transition. not recommended for user programming. pftog pal field toggle, address 0xea[4:0] the default value of pftog is 00011, indicating the pal field toggle position. for all ntsc/pal field timing controls, the f bit in the av code and the field signal on the field/de pin are modified. advance toggle of field by ptog[4:0] delay toggle of field by pftog[4:0] pftogsign odd field? 0 1 no yes pftogdele additional delay by 1 line 1 0 pftogdelo additional delay by 1 line 1 0 field toggle not valid for use r programming 04997-030 figure 30. pal f toggle sync processing the ADV7183B has two additional sync processing blocks that postprocess the raw synchronization information extracted from the digitized input video. if desired, the blocks can be disabled via the following two i 2 c bits. enhspll enable hsync processor, address 0x01[6] the hsync processor is designed to filter incoming hsyncs that have been corrupted by noise, providing improved performance for video signals with stable time bases but poor snr. setting enhspll to 0 disables the hsync processor. setting enhspll to 1 (default) enables the hsync processor. envsproc enable vsync processor, address 0x01[3] this block provides extra filtering of the detected vsyncs to give improved vertical lock. setting envsproc to 0 disables the vsync processor. setting envsproc to 1 (default) enables the vsync processor. ADV7183B rev. b | page 47 of 100 vbi data decode the following low data rate vbi signals can be decoded by the ADV7183B: ? wide screen signaling (wss) ? copy generation management systems (cgms) ? closed captioning (ccap) ? edtv ? gemstar 1- and 2-compatible data recovery the presence of any of the above signals is detected and, if applicable, a parity check is performed. the result of this testing is contained in a confidence bit in the vbi info[7:0] register. users are encouraged to first examine the vbi info register before reading the corresponding data registers. all vbi data decode bits are read only. all vbi data registers are double-buffered with the field signals. this means that data is extracted from the video lines and appears in the appropriate i 2 c registers with the next field transition. they are then static until the next field. the user should start an i 2 c read sequence with vs by first examining the vbi info register. then, depending on what data was detected, the appropriate data registers should be read. note that the data registers are filled with decoded vbi data even if their corresponding detection bits are low; it is likely that bits within the decoded data stream are wrong. the closed captioning data (ccap) is available in the i 2 c registers and is also inserted into the output video data stream during horizontal blanking. the gemstar-compatible data is not available in the i 2 c registers and is inserted into the data stream only during horizontal blanking. wssd wide screen signaling detected, address 0x90[0] logic 1 for this bit indicates the data in the wss1 and wss2 registers is valid. the wssd bit goes high if the rising edge of the start bit is detected within a time window and if the polarity of the parity bit matches the data transmitted. when wssd is 0, no wss is detected and confidence in the decoded data is low. when wssd is 1, wss is detected and confidence in the decoded data is high. ccapd closed caption detected, address 0x90[1] a logic 1 for this bit indicates that the data in the ccap1 and ccap2 registers is valid. the ccapd bit goes high if the rising edge of the start bit is detected within a time window and if the polarity of the parity bit matches the data transmitted. when ccapd is 0, no ccap sequences are detected and confidence in the decoded data is low. when ccapd is 1, the ccap sequence is detected and confidence in the decoded data is high. edtvd edtv sequence detected, address 0x90[2] a logic 1 for this bit indicates the data in the edtv1, 2, 3 registers is valid. the edtvd bit goes high if the rising edge of the start bit is detected within a time window and if the polarity of the parity bit matches the data transmitted. when edtvd is 0, no edtv sequence is detected and confidence in the decoded data is low. when edtvd is 1, an edtv sequence is detected and confidence in the decoded data is high. cgmsd cgms-a sequence detected, address 0x90[3] logic 1 for this bit indicates that the data in the cgms1, 2, 3 registers is valid. the cgmsd bit goes high if a valid crc checksum has been calculated from a received cgms packet. when cgmsd is 0, no cgms transmission is detected and confidence in the decoded data is low. when cgmsd is 1, the cgms sequence is decoded and confidence in the decoded data is high. crc_enable crc, address 0xb2[2] for certain video sources, the crc data bits can have an invalid format. in these circumstances, the crc checksum validation procedure can be disabled. the cgmsd bit goes high if the rising edge of the start bit is detected within a time window. when crc_enable is 0, no crc check is performed. the cgmsd bit goes high if the rising edge of the start bit is detected within a time window. when crc_enable is 1 (default), crc checksum is used to validate the cgms sequence. the cgmsd bit goes high for a valid checksum. the default is adis recommended setting. ADV7183B rev. b | page 48 of 100 wide screen signaling data wss1[7:0], address 0x91[7:0], wss2[7:0], address 0x92[7:0] 221h figure 31 shows the bit correspondence between the analog video waveform and the wss1/wss2 registers. wss2[7:6] are undetermined and should be masked out by software. edtv data registers edtv1[7:0], address 0x93[7:0], edtv2[7:0], address 0x94[7:0], edtv3[7:0], address 0x95[7:0] 222h figure 32 shows the bit correspondence between the analog video waveform and the edtv1/edtv2/edtv3 registers. edtv3[7:6] are undetermined and should be masked out by software. edtv3[5] is reserved for future use and, for now, contains 0. the 3 lsbs of the edtv waveform are currently not supported. active video wss2[5:0] wss1[7:0] run-in sequence start code 0 1 2 3 4 5 6 7 0 1 2 3 4 5 11.0 s 38.4 s 42.5 s 04997-031 figure 31. wss data extraction table 58. wss access information signal name register location address register default value wss1[7:0] wss 1[7:0] 145d 0x91 readback only wss2[5:0] wss 2[5:0] 146d 0x92 readback only edtv1[7:0] edtv2[7:0] edtv3[5:0] not supported 01 3456701234567012345 2 04997-032 figure 32. edtv data extraction table 59. edtv access information signal name register location address register default value edtv1[7:0] edtv 1[7:0] 147d 0x93 readback only edtv2[7:0] edtv 2[7:0] 148d 0x94 readback only edtv3[7:0] edtv 3[7:0] 149d 0x95 readback only ADV7183B rev. b | page 49 of 100 cgms data registers cgms1[7:0], address 0x96[7:0], cgms2[7:0], address 0x97[7:0], cgms3[7:0], address 0x98[7:0] 223h figure 33 shows the bit correspondence between the analog video waveform and the cgms1/cgms2/cgms3 registers. cgms3[7:4] are undetermined and should be masked out by software. closed caption data registers ccap1[7:0], address 0x99[7:0], ccap2[7:0], address 0x9a[7:0] 224h figure 34 shows the bit correspondence between the analog video waveform and the ccap1/ccap2 registers. ccap1[7] contains the parity bit from the first word. ccap2[7] contains the parity bit from the second word. refer to the 225h gdecad gemstar decode ancillary data format, address 0x4c[0] section. 01 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 cgms2[7:0] cgms3[3:0] cgms1[7:0] ref +100 ire +70 ire 0 ire ?40 ire 11.2 s 49.1ms 0.5 s crc sequence 2.235 s 20ns 04997-033 figure 33. cgms data extraction table 60. cgms access information signal name register location address register default value cgms1[7:0] cgms 1[7:0] 150d 0x96 readback only cgms2[7:0] cgms 2[7:0] 151d 0x97 readback only cgms3[3:0] cgms 3[3:0] 152d 0x98 readback only 0 reference color burst (9 cycles) frequency = f sc = 3.579545mhz amplitude = 40 ire 1 ccap1[7:0] 7 cycles of 0.5035mhz (clock run-in) ccap2[7:0] 2 3 4 5 6 7 0 1 2 3 4 5 67 p a r i t y s t a r t p a r i t y byte 1 byte 0 33.764 s 10.003 s 10.5 0.25 s 12.91 s 27.382 s 50 ire 40 ire 04997-034 figure 34. closed caption data extraction table 61. ccap access information signal name register location address register default value ccap1[7:0] ccap1[7:0] 153d 0x99 readback only ccap2[7:0] ccap2[7:0] 154d 0x9a readback only ADV7183B rev. b | page 50 of 100 letterbox detection incoming video signals may conform to different aspect ratios (16:9 wide screen of 4:3 standard). for certain transmissions in the wide screen format, a digital sequence (wss) is transmitted with the video signal. if a wss sequence is provided, the aspect ratio of the video can be derived from the digitally decoded bits wss contains. in the absence of a wss sequence, letterbox detection may be used to find wide screen signals. the detection algorithm examines the active video content of lines at the start and end of a field. if black lines are detected, this indicates that the picture currently displayed is in wide screen format. the active video content (luminance magnitude) over a line of video is summed together. at the end of a line, this accumulated value is compared with a threshold, and a decision is made as to whether or not a particular line is black. the threshold value needed depends on the type of input signal; some control is provided via lb_th[4:0]. detection at the start of a field the ADV7183B expects a section of at least six consecutive black lines of video at the top of a field. once those lines are detected, register lb_lct[7:0] reports back the number of black lines actually found. by default, the ADV7183B starts looking for those black lines in sync with the beginning of active video, for example, straight after the last vbi video line. lb_sl[3:0] allows the user to set the start of letterbox detection from the beginning of a frame on a line-by-line basis. the detection window closes in the middle of the field. detection at the end of a field the ADV7183B expects at least six continuous lines of black video at the bottom of a field before reporting back the number of lines actually found via the lb_lcb[7:0] value. the activity window for letterbox detection (end of field) starts in the middle of an active field. its end is programmable via lb_el[3:0]. detection at the midrange some transmissions of wide screen video include subtitles within the lower black box. if the ADV7183B finds at least two black lines followed by some more nonblack video, for example, the subtitle, and is then followed by the remainder of the bottom black block, it reports back a midcount via lb_lcm[7:0]. if no subtitles are found, lb_lcm[7:0] reports the same number as lb_lcb[7:0]. there is a 2-field delay in the reporting of any line count parameters. there is no letterbox detected bit. the user is asked to read the lb_lct[7:0] and lb_lcb[7:0] register values and to conclude whether or not the letterbox-type video is present in software. lb_lct[7:0] letterbox line count top, address 0x9b[7:0], lb_lcm[7:0] letterbox line count mid, address 0x9c[7:0], lb_lcb[7:0] letterbox line count bottom, address 0x9d[7:0] table 62. lb_lcx access information signal name address register default value lb_lct[7:0] 0x9b readback only lb_lcm[7:0] 0x9c readback only lb_lcb[7:0] 0x9d readback only lb_th[4:0] letterbox threshold control, address 0xdc[4:0] table 63. lb_th function lb_th[4:0] description 01100 (default) default threshold for detection of black lines 01101 to 10000 increase threshold (need larger active video content before identifying nonblack lines) 00000 to 01011 decrease threshold (even small noise levels can cause the detection of nonblack lines) lb_sl[3:0] letterbox start line, address 0xdd[7:4] the lb_sl[3:0] bits are set at 0100b by default. this means the letterbox detection window starts after the edtv vbi data line. for an ntsc signal, this window is from line 23 to line 286. changing the bits to 0101, the detection window starts on line 24 and ends on line 287. lb_el[3:0] letterbox end line, address 0xdd[3:0] the lb_el[3:0] bits are set at 1101b by default. this means the letterbox detection window ends with the last active video line. for an ntsc signal, this window is from line 262 to line 525. changing the bits to 1100, the detection window starts on line 261 and ends on line 254. gemstar data recovery the gemstar-compatible data recovery block (gscd) supports 1 and 2 data transmissions. it can also serve as a closed caption decoder. gemstar-compatible data transmissions can occur only in ntsc. closed caption data can be decoded in both pal and ntsc. the block is configured via i 2 c in the following ways: ? gdecel[15:0] allow data recovery on selected video lines on even fields to be enabled and disabled. ? gdecol[15:0] enable the data recovery on selected lines for odd fields. ? gdecad configures the way in which data is embedded in the video data stream. ADV7183B rev. b | page 51 of 100 the recovered data is not available through i 2 c, but is inserted into the horizontal blanking period of an itu-r bt656-com- patible data stream. the data format is intended to comply with the recommendation by the international telecommunications union, itu-r bt.1364. for more information, see the itu website at 66h www.itu.ch. see 226h figure 35. the format of the data packet depends on the following criteria: ? transmission is 1 or 2. ? data is output in 8-bit or 4-bit format (see the description of the 227h gdecad gemstar decode ancillary data format, address 0x4c[0] bit). ? data is closed caption (ccap) or gemstar-compatible. data packets are output if the corresponding enable bit is set (see the gdecel and gdecol descriptions) and if the decoder detects the presence of data. this means that for video lines where no data has been decoded, no data packet is output even if the corresponding line enable bit is set. each data packet starts immediately after the eav code of the preceding line. see 228h figure 35 and 229h table 64, which show the overall structure of the data packet. entries within the packet are as follows: ? fixed preamble sequence of 0x00, 0xff, 0xff. ? data identification word (did). the value for the did marking a gemstar or ccap data packet is 0x140 (10-bit value). ? secondary data identification word (sdid) contains information about the video line from which data was retrieved, whether the gemstar transmission was of 1 or 2 format, and whether it was retrieved from an even or odd field. ? data count byte, giving the number of user data-words that follow. ? user data section. ? optional padding to ensure the length of the user data- word section of a packet is a multiple of four bytes (requirement as set in itu-r bt.1364). ? checksum byte. 230h table 64 lists the values within a generic data packet that is output by the ADV7183B in 8-bit format. 00 ff ff did sdid data count user data optional padding bytes check sum secondary data identification preamble for ancillary data data identification user data (4 or 8 words) 04997-035 figure 35. gemstar and ccap embedded data packet (generic) table 64. generic data output packet byte d[9] d[8] d[7] d[6] d[5] d[4] d[3] d[2] d[1] d[0] description 0 0 0 0 0 0 0 0 0 0 0 fixed preamble 1 1 1 1 1 1 1 1 1 1 1 fixed preamble 2 1 1 1 1 1 1 1 1 1 1 fixed preamble 3 0 1 0 1 0 0 0 0 0 0 did 4 !ep ep ef 2x line[3:0] 0 0 sdid 5 !ep ep 0 0 0 0 dc[1] dc[0] 0 0 data count (dc) 6 !ep ep 0 0 word1[7:4] 0 0 user data-words 7 !ep ep 0 0 word1[3:0] 0 0 user data-words 8 !ep ep 0 0 word2[7:4] 0 0 user data-words 9 !ep ep 0 0 word2[3:0] 0 0 user data-words 10 !ep ep 0 0 word3[7:4] 0 0 user data-words 11 !ep ep 0 0 word3[3:0] 0 0 user data-words 12 !ep ep 0 0 word4[7:4] 0 0 user data-words 13 !ep ep 0 0 word4[3:0] 0 0 user data-words 14 !cs[8] cs[8] cs[7] cs[6] cs[5] cs[4] cs[3] cs[2] 0 0 checksum ADV7183B rev. b | page 52 of 100 table 65. data byte allocation 2 raw information bytes retrieved from the video line gdecad user data-words (including padding) padding bytes dc[1:0] 1 4 0 8 0 10 1 4 1 4 0 01 0 2 0 4 0 01 0 2 1 4 2 01 gemstar bit names ? did. the data identification value is 0x140 (10-bit value). care has been taken that in 8-bit systems, the two lsbs do not carry vital information. ? ep and !ep. the ep bit is set to ensure even parity on the data-word d[8:0]. even parity means there will always be an even number of 1s within the d[8:0] bit arrangement. this includes the ep bit. !ep describes the logic inverse of ep and is output on d[9]. the !ep is output to ensure that the reserved codes of 00 and ff cannot happen. ? ef. even field identifier. ef = 1 indicates that the data was recovered from a video line on an even field. ? 2x. this bit indicates whether the data sliced was in gemstar 1 or 2 format. a high indicates 2 format. ? line[3:0]. this entry provides a code that is unique for each of the possible 16 source lines of video from which gemstar data can be retrieved. refer to 231h table 74 and 232h table 75. ? dc[1:0]. data count value. the number of user data-words in the packet divided by 4. the number of user data-words (udw) in any packet must be an integral number of 4. padding is required at the end, if necessary, as set in itu-r bt.1364. see 233h table 65. ? the 2x bit determines whether the raw information retrieved from the video line was 2 or 4 bytes. the state of the gdecad bit affects whether the bytes are transmitted straight (that is, two bytes transmitted as two bytes) or whether they are split into nibbles (that is, two bytes transmitted as four half bytes). padding bytes are then added where necessary. ? cs[8:2]. the checksum is provided to determine the integrity of the ancillary data packet. it is calculated by summing up d[8:2] of did, sdid, the data count byte, and all udws, and ignoring any overflow during the summation. since all data bytes that are used to calculate the checksum have their two lsbs set to 0, the cs[1:0] bits are also always 0. !cs[8] describes the logic inversion of cs[8]. the value !cs[8] is included in the checksum entry of the data packet to ensure the reserved values of 0x00 and 0xff do not occur. 234h table 66 to 235h table 71 outline the possible data packages. gemstar 2 format, half-byte output mode half-byte output mode is selected by setting cdecad = 0; full-byte output mode is selected by setting cdecad = 1. see the 236h gdecad gemstar decode ancillary data format, address 0x4c[0] section. gemstar 1 format half-byte output mode is selected by setting cdecad = 0; full-byte output mode is selected by setting cdecad = 1. see the 237h gdecad gemstar decode ancillary data format, address 0x4c[0] section. ADV7183B rev. b | page 53 of 100 table 66. gemstar 2 data, half-byte mode byte d[9] d[8] d[7] d[6] d[5] d[4] d[3] d[2] d[1] d[0] description 0 0 0 0 0 0 0 0 0 0 0 fixed preamble 1 1 1 1 1 1 1 1 1 1 1 fixed preamble 2 1 1 1 1 1 1 1 1 1 1 fixed preamble 3 0 1 0 1 0 0 0 0 0 0 did 4 !ep ep ef 1 line[3:0] 0 0 sdid 5 !ep ep 0 0 0 0 1 0 0 0 data count 6 !ep ep 0 0 gemstar word1[7:4] 0 0 user data-words 7 !ep ep 0 0 gemstar word1[3:0] 0 0 user data-words 8 !ep ep 0 0 gemstar word2[7:4] 0 0 user data-words 9 !ep ep 0 0 gemstar word2[3:0] 0 0 user data-words 10 !ep ep 0 0 gemstar word3[7:4] 0 0 user data-words 11 !ep ep 0 0 gemstar word3[3:0] 0 0 user data-words 12 !ep ep 0 0 gemstar word4[7:4] 0 0 user data-words 13 !ep ep 0 0 gemstar word4[3:0] 0 0 user data-words 14 !cs[8] cs[8] cs[7] cs[6] cs[5] cs[4 ] cs[3] cs[2] cs[1] cs[0] checksum table 67. gemstar 2 data, full-byte mode byte d[9] d[8] d[7] d[6] d[5] d[4] d[3] d[2] d[1] d[0] description 0 0 0 0 0 0 0 0 0 0 0 fixed preamble 1 1 1 1 1 1 1 1 1 1 1 fixed preamble 2 1 1 1 1 1 1 1 1 1 1 fixed preamble 3 0 1 0 1 0 0 0 0 0 0 did 4 !ep ep ef 1 line[3:0] 0 0 sdid 5 !ep ep 0 0 0 0 0 1 0 0 data count 6 gemstar word1[7:0] 0 0 user data-words 7 gemstar word2[7:0] 0 0 user data-words 8 gemstar word3[7:0] 0 0 user data-words 9 gemstar word4[7:0] 0 0 user data-words 10 !cs[8] cs[8] cs[7] cs[6] cs[5] cs[4 ] cs[3] cs[2] cs[1] cs[0] checksum table 68. gemstar 1 data, half-byte mode byte d[9] d[8] d[7] d[6] d[5] d[4] d[3] d[2] d[1] d[0] description 0 0 0 0 0 0 0 0 0 0 0 fixed preamble 1 1 1 1 1 1 1 1 1 1 1 fixed preamble 2 1 1 1 1 1 1 1 1 1 1 fixed preamble 3 0 1 0 1 0 0 0 0 0 0 did 4 !ep ep ef 0 line[3:0] 0 0 sdid 5 !ep ep 0 0 0 0 0 1 0 0 data count 6 !ep ep 0 0 gemstar word1[7:4] 0 0 user data-words 7 !ep ep 0 0 gemstar word1[3:0] 0 0 user data-words 8 !ep ep 0 0 gemstar word2[7:4] 0 0 user data-words 9 !ep ep 0 0 gemstar word2[3:0] 0 0 user data-words 10 !cs[8] cs[8] cs[7] cs[6] cs[5] cs[4 ] cs[3] cs[2] cs[1] cs[0] checksum ADV7183B rev. b | page 54 of 100 table 69. gemstar 1 data, full-byte mode byte d[9] d[8] d[7] d[6] d[5] d[4] d[3] d[2] d[1] d[0] description 0 0 0 0 0 0 0 0 0 0 0 fixed preamble 1 1 1 1 1 1 1 1 1 1 1 fixed preamble 2 1 1 1 1 1 1 1 1 1 1 fixed preamble 3 0 1 0 1 0 0 0 0 0 0 did 4 !ep ep ef 0 line[3:0] 0 0 sdid 5 !ep ep 0 0 0 0 0 1 0 0 data count 6 gemstar word1[7:0] 0 0 user data-words 7 gemstar word2[7:0] 0 0 user data-words 8 1 0 0 0 0 0 0 0 0 0 udw padding 0x200 9 1 0 0 0 0 0 0 0 0 0 udw padding 0x200 10 !cs[8] cs[8] cs[7] cs[6] cs[5] cs[4 ] cs[3] cs[2] cs[1] cs[0] checksum table 70. ntsc ccap data, half-byte mode byte d[9] d[8] d[7] d[6] d[5] d[4] d[3] d[2] d[1] d[0] description 0 0 0 0 0 0 0 0 0 0 0 fixed preamble 1 1 1 1 1 1 1 1 1 1 1 fixed preamble 2 1 1 1 1 1 1 1 1 1 1 fixed preamble 3 0 1 0 1 0 0 0 0 0 0 did 4 !ep ep ef 0 1 0 1 1 0 0 sdid 5 !ep ep 0 0 0 0 0 1 0 0 data count 6 !ep ep 0 0 ccap word1[7:4] 0 0 user data-words 7 !ep ep 0 0 ccap word1[3:0] 0 0 user data-words 8 !ep ep 0 0 ccap word2[7:4] 0 0 user data-words 9 !ep ep 0 0 ccap word2[3:0] 0 0 user data-words 10 !cs[8] cs[8] cs[7] cs[6] cs[5] cs[4 ] cs[3] cs[2] cs[1] cs[0] checksum table 71. ntsc ccap data, full-byte mode byte d[9] d[8] d[7] d[6] d[5] d[4] d[3] d[2] d[1] d[0] description 0 0 0 0 0 0 0 0 0 0 0 fixed preamble 1 1 1 1 1 1 1 1 1 1 1 fixed preamble 2 1 1 1 1 1 1 1 1 1 1 fixed preamble 3 0 1 0 1 0 0 0 0 0 0 did 4 !ep ep ef 0 1 0 1 1 0 0 sdid 5 !ep ep 0 0 0 0 0 1 0 0 data count 6 ccap word1[7:0] 0 0 user data-words 7 ccap word2[7:0] 0 0 user data-words 8 1 0 0 0 0 0 0 0 0 0 udw padding 0x200 9 1 0 0 0 0 0 0 0 0 0 udw padding 0x200 10 !cs[8] cs[8] cs[7] cs[6] cs[5] cs[4 ] cs[3] cs[2] cs[1] cs[0] checksum ADV7183B rev. b | page 55 of 100 ntsc ccap data half-byte output mode is selected by setting cdecad = 0; the full-byte mode is enabled by cdecad = 1. see the 238h gdecad gemstar decode ancillary data format, address 0x4c[0] section. the data packet formats are shown in 239h table 72 and 240h table 73. only closed caption data can be embedded in the output data stream. ntsc closed caption data is sliced on line 21d on even and odd fields. the corresponding enable bit has to be set high. see the and the 241h gdecol[15:0] gemstar decoding odd lines, address 0x4a[7:0]; address 0x4b[7:0] sections. pal ccap data half-byte output mode is selected by setting cdecad = 0; full-byte output mode is selected by setting cdecad = 1. see the 242h gdecad gemstar decode ancillary data format, address 0x4c[0] section. 243h table 72 and 244h table 73 list the bytes of the data packet. only closed caption data can be embedded in the output data stream. pal closed caption data is sliced from line 22 and line 335. the corresponding enable bits have to be set. see the 245h gdecad gemstar decode ancillary data format, address 0x4c[0] and gdecol[15:0] gemstar decoding odd lines, address 0x4a[7:0]; address 0x4b[7:0] sections. table 72. pal ccap data, half-byte mode byte d[9] d[8] d[7] d[6] d[5] d[4] d[3] d[2] d[1] d[0] description 0 0 0 0 0 0 0 0 0 0 0 fixed preamble 1 1 1 1 1 1 1 1 1 1 1 fixed preamble 2 1 1 1 1 1 1 1 1 1 1 fixed preamble 3 0 1 0 1 0 0 0 0 0 0 did 4 !ep ep ef 0 1 0 1 0 0 0 sdid 5 !ep ep 0 0 0 0 0 1 0 0 data count 6 !ep ep 0 0 ccap word1[7:4] 0 0 user data-words 7 !ep ep 0 0 ccap word1[3:0] 0 0 user data-words 8 !ep ep 0 0 ccap word2[7:4] 0 0 user data-words 9 !ep ep 0 0 ccap word2[3:0] 0 0 user data-words 10 !cs[8] cs[8] cs[7] cs[6] cs[5] cs[4 ] cs[3] cs[2] cs[1] cs[0] checksum table 73. pal ccap data, full-byte mode byte d[9] d[8] d[7] d[6] d[5] d[4] d[3] d[2] d[1] d[0] description 0 0 0 0 0 0 0 0 0 0 0 fixed preamble 1 1 1 1 1 1 1 1 1 1 1 fixed preamble 2 1 1 1 1 1 1 1 1 1 1 fixed preamble 3 0 1 0 1 0 0 0 0 0 0 did 4 !ep ep ef 0 1 0 1 0 0 0 sdid 5 !ep ep 0 0 0 0 0 1 0 0 data count 6 ccap word1[7:0] 0 0 user data-words 7 ccap word2[7:0] 0 0 user data-words 8 1 0 0 0 0 0 0 0 0 0 udw padding 0x200 9 1 0 0 0 0 0 0 0 0 0 udw padding 0x200 10 !cs[8] cs[8] cs[7] cs[6] cs[5] cs[4 ] cs[3] cs[2] cs[1] cs[0] checksum ADV7183B rev. b | page 56 of 100 gdecel[15:0] gemstar decoding even lines, address 0x48[7:0]; address 0x49[7:0] the 16 bits of the gdecel[15:0] are interpreted as a collection of 16 individual line decode enable signals. each bit refers to a line of video in an even field. setting the bit enables the decoder block trying to find gemstar or closed caption-compatible data on that particular line. setting the bit to 0 prevents the decoder from trying to retrieve data. see 246h table 74 and 247h table 75. to retrieve closed caption data services on ntsc (line 284), gdecel[11] must be set. to retrieve closed caption data services on pal (line 335), gdecel[14] must be set. the default value of gdecel[15:0] is 0x0000. this setting instructs the decoder not to attempt to decode gemstar or ccap data from any line in the even field. gdecol[15:0] gemstar decoding odd lines, address 0x4a[7:0]; address 0x4b[7:0] the 16 bits of the gdecol[15:0] form a collection of 16 individual line decode enable signals. see 248h table 74 and 249h tabl e 7 5. to retrieve closed caption data services on ntsc (line 21), gdecol[11] must be set. to retrieve closed caption data services on pal (line 22), gdecol[14] must be set. the default value of gdecol[15:0] is 0x0000. this setting instructs the decoder not to attempt to decode gemstar or ccap data from any line in the odd field. gdecad gemstar decode ancillary data format, address 0x4c[0] the decoded data from gemstar-compatible transmissions or closed caption is inserted into the horizontal blanking period of the respective line of video. there is a potential problem if the retrieved data bytes have the value 0x00 or 0xff. in an itu-r bt.656-compatible data stream, those values are reserved and used only to form a fixed preamble. the gdecad bit allows the data to be inserted into the horizontal blanking period in two ways: ? insert all data straight into the data stream, even the reserved values of 0x00 and 0xff, if they occur. this can violate the output data format specification itu-r bt.1364. ? split all data into nibbles and insert the half-bytes over double the number of cycles in a 4-bit format. when gdecad is 0, the data is split into half-bytes and inserted (default). when gdecad is 1, the data is output straight in 8-bit format. table 74. ntsc line enable bits and corresponding line numbering line[3:0] line number (itu-r bt.470) enable bit comment 0 10 gdecol[0] gemstar 1 11 gdecol[1] gemstar 2 12 gdecol[2] gemstar 3 13 gdecol[3] gemstar 4 14 gdecol[4] gemstar 5 15 gdecol[5] gemstar 6 16 gdecol[6] gemstar 7 17 gdecol[7] gemstar 8 18 gdecol[8] gemstar 9 19 gdecol[9] gemstar 10 20 gdecol[10] gemstar 11 21 gdecol[11] gemstar or closed caption 12 22 gdecol[12] gemstar 13 23 gdecol[13] gemstar 14 24 gdecol[14] gemstar 15 25 gdecol[15] gemstar 0 273 (10) gdecel[0] gemstar 1 274 (11) gdecel[1] gemstar 2 275 (12) gdecel[2] gemstar 3 276 (13) gdecel[3] gemstar 4 277 (14) gdecel[4] gemstar 5 278 (15) gdecel[5] gemstar 6 279 (16) gdecel[6] gemstar 7 280 (17) gdecel[7] gemstar 8 281 (18) gdecel[8] gemstar 9 282 (19) gdecel[9] gemstar 10 283 (20) gdecel[10] gemstar 11 284 (21) gdecel[11] gemstar or closed caption 12 285 (22) gdecel[12] gemstar 13 286 (23) gdecel[13] gemstar 14 287 (24) gdecel[14] gemstar 15 288 (25) gdecel[15] gemstar ADV7183B rev. b | page 57 of 100 table 75. pal line enable bits and corresponding line numbering line[3:0] line number (itu-r bt.470) enable bit comment 12 8 gdecol[0] not valid 13 9 gdecol[1] not valid 14 10 gdecol[2] not valid 15 11 gdecol[3] not valid 0 12 gdecol[4] not valid 1 13 gdecol[5] not valid 2 14 gdecol[6] not valid 3 15 gdecol[7] not valid 4 16 gdecol[8] not valid 5 17 gdecol[9] not valid 6 18 gdecol[10] not valid 7 19 gdecol[11] not valid 8 20 gdecol[12] not valid 9 21 gdecol[13] not valid 10 22 gdecol[14] closed caption 11 23 gdecol[15] not valid 12 321 (8) gdecel[0] not valid 13 322 (9) gdecel[1] not valid 14 323 (10) gdecel[2] not valid 15 324 (11) gdecel[3] not valid 0 325 (12) gdecel[4] not valid 1 326 (13) gdecel[5] not valid 2 327 (14) gdecel[6] not valid 3 328 (15) gdecel[7] not valid 4 329 (16) gdecel[8] not valid 5 330 (17) gdecel[9] not valid 6 331 (18) gdecel[10] not valid 7 332 (19) gdecel[11] not valid 8 333 (20) gdecel[12] not valid 9 334 (21) gdecel[13] not valid 10 335 (22) gdecel[14] closed caption 11 336 (23) gdecel[15] not valid if compensation filter if filtsel[2:0] if filter select address 0xf8[2:0] the if filtsel[2:0] register allows the user to compensate for saw filter characteristics on a composite input as observed on tuner outputs. 250h figure 36 and 251h figure 37 show if filter compensation for ntsc and pal. the options for this feature are as follows: ? bypass mode (default) ? ntscconsists of three filter characteristics ? palconsists of three filter characteristics frequency (mhz) 2.0 4.0 3.5 3.0 2.5 5.0 4.5 12 10 8 6 4 2 0 2 4 6 amplitude (db) 04997-036 figure 36. ntsc if compensation filter responses frequency (mhz) 3.0 5.0 4.5 4.0 3.5 6.0 5.5 ?8 ?6 ?4 ?2 0 2 4 6 amplitude (db) 04997-037 figure 37. pal if compensation filter responses see 252h table 86 for programming details. i p 2 p c interrupt system the ADV7183B has a comprehensive interrupt register set. this map is located in register access page 2. see 253h table 84 for details of the interrupt register map. how to access this map is described in 254h figure 38. common i 2 c space address 0x00 04997-038 figure 38. register access ?page 1 and page 2 ADV7183B rev. b | page 58 of 100 interrupt request output operation when an interrupt event occurs, the interrupt pin intrq goes low with a programmable duration given by intrq_dur_sel[1:0] intrq_dursel[1:0], interrupt duration select address 0x40 (interrupt space)[7:6] table 76. intrq_dur_sel intrq_dursel[1:0] description 00 (default) 3 xtal periods 01 15 xtal periods 10 63 xtal periods 11 active until cleared when the active until cleared interrupt duration is selected and the event that caused the interrupt is no longer in force, the interrupt persists until it is masked or cleared. for example, if the ADV7183B loses lock, an interrupt is generated and intrq pin goes low. if the ADV7183B returns to the locked state, intrq continues to drive low until the sd_lock bit is either masked or cleared. interrupt drive level the ADV7183B resets with open drain enabled and all interrupts masked off. therefore, intrq is in a high impedance state after reset. 01 or 10 has to be written to intrq_op_sel[1:0] for a logic level to be driven out from the intrq pin. it is also possible to write to a register in the ADV7183B that manually asserts the intrq pin. this bit is mpu_stim_intrq. intrq_op_sel[1:0], interrupt duration select address 0x40 (interrupt space)[1:0] table 77. intrq_op_sel intrq_op_sel[1:0] description 00 (default) open drain 01 drive low when active 10 11 drive high when active reserved multiple interrupt events if interrupt event 1 occurs and then interrupt event 2 occurs before the system controller has cleared or masked interrupt event 1, the ADV7183B will not generate a second interrupt signal. the system controller should check all unmasked interrupt status bits, as more than one can be active. macrovision interrupt selection bits the user can select between pseudo sync pulse and color stripe detection as shown in this section. mv_intrq_sel[1:0], macrovision interrupt selection bits address 0x40 (interrupt space)[5:4] table 78. mv_intrq_sel mv_intrq_sel[1:0] description 00 reserved 01 (default) pseudo sync only 10 11 color stripe only either pseudo sync or color stripe additional information relating to the interrupt system is detailed in 255h table 84. ADV7183B rev. b | page 59 of 100 pixel port configuration the ADV7183B has a very flexible pixel port that can be confi- gured in a variety of formats to accommodate downstream ics. 256h table 79 and 257h table 80 summarize the various functions that the ADV7183Bs pins can have in different modes of operation. the ordering of components (for example, cr versus cb, cha/b/c) can be changed. refer to the section. 258h table 79 indicates the default positions for the cr/cb components. of_sel[3:0] output format selection, address 0x03[5:2] the modes in which the ADV7183B pixel port can be onfigured are under the control of of_sel[3:0]. see 259h table 80 for details. the default llc frequency output on the llc1 pin is approximately 27 mhz. for modes that operate with a nominal data rate of 13.5 mhz (0001, 0010), the clock frequency on the llc1 pin stays at the higher rate of 27 mhz. for information on outputting the nominal 13.5 mhz clock on the llc1 pin, see the 260h pad_sel[2:0], address 0x8f[6:4] section. swpc swap pixel cr/cb, address 0x27[7] this bit allows cr and cb samples to be swapped. when swpc is 0 (default), no swapping is allowed. when swpc is 1, the cr and cb values can be swapped. pad_sel[2:0], address 0x8f[6:4] this i 2 c write allows the user to select between the llc1 (nominally at 27 mhz) and llc2 (nominally at 13.5 mhz). the llc2 signal is useful for llc2-compatible wide bus (16-bit) output modes. see the 261h of_sel[3:0] output format selection, address 0x03[5:2] section for additional information. the llc2 signal and data on the data bus are synchronized. by default, the rising edge of llc1/llc2 is aligned with the y data; the falling edge occurs when the data bus holds c data. the polarity of the clock, and therefore the y/c assignments to the clock edges, can be altered by using the polarity llc pin. when llc_pad_sel[2:0] is 000 (default), the output is nominally 27 mhz llc on the llc1 pin. when llc_pad_sel[2:0] is 101, the output is nominally 13.5 mhz llc on the llc1 pin. table 79. p15 to p0 output/input pin mapping data port pins p[15:0] format, and mode 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 video out, 8-bit, 4:2:2 ycrcb[7:0] out video out, 16-bit, 4:2:2 y[7:0] out crcb[7:0] out table 80. standard definition pixel port modes p[15: 0] of_sel[3:0] format p[15:8] p[7: 0] 0010 16-bit @ llc2 4:2:2 y[7:0] crcb[7:0] 0011 (default) 8-bit @ llc1 4:2:2 (default) ycrcb[7:0] (default) three-state 0110-1111 reserved reserved. do not use. ADV7183B rev. b | page 60 of 100 mpu port description the ADV7183B supports a 2-wire (i 2 c-compatible) serial inter- face. two inputs, serial data (sda) and serial clock (sclk), carry information between the ADV7183B and the system i 2 c master controller. each slave device is recognized by a unique address. the ADV7183Bs i 2 c port allows the user to set up and configure the decoder and to read back captured vbi data. the ADV7183B has two possible slave addresses for both read and write operations, depending on the logic level on the alsb pin. these four unique addresses are shown in 262h table 81. the ADV7183Bs alsb pin controls bit 1 of the slave address. by altering the alsb, it is possible to control two ADV7183Bs in an application without having a conflict with the same slave address. the lsb (bit 0) sets either a read or write operation. logic 1 corresponds to a read operation; logic 0 corresponds to a write operation. table 81. i 2 c address for the ADV7183B alsb r/w slave address 0 0 0x40 0 1 0x41 1 0 0x42 1 1 0x43 to control the device on the bus, a specific protocol must be followed. first, the master initiates a data transfer by establishing a start condition, which is defined by a high-to-low transition on sda while sclk remains high. this indicates that an address/data stream will follow. all peripherals respond to the start condition and shift the next eight bits (7-bit address + r/w bit). the bits are transferred from msb down to lsb. the peripheral that recognizes the transmitted address responds by pulling the data line low during the ninth clock pulse; this is known as an acknowledge bit. all other devices withdraw from the bus at this point and maintain an idle condition. the idle condition is where the device monitors the sda and sclk lines, waiting for the start condition and the correct transmitted address. the r/w bit determines the direction of the data. logic 0 on the lsb of the first byte means the master writes information to the peripheral. logic 1 on the lsb of the first byte means the master reads information from the peripheral. the ADV7183B acts as a standard slave device on the bus. the data on the sda pin is eight bits long, supporting the 7-bit addresses and the r/w bit. the ADV7183B has 249 subad- dresses to enable access to the internal registers. it therefore interprets the first byte as the device address and the second byte as the starting subaddress. the subaddresses auto-increment, which allows data to be written to or read from the starting sub- address. a data transfer is always terminated by a stop condition. the user can also access any unique subaddress register on a one-by-one basis without updating all the registers. stop and start conditions can be detected at any stage during the data transfer. if these conditions are asserted out of sequence with normal read and write operations, they cause an immediate jump to the idle condition. during a given sclk high period, the user should only issue one start condition, one stop condition, or a single stop condition followed by a single start condition. if an invalid subaddress is issued by the user, the ADV7183B does not issue an acknowledge and returns to the idle condition. if the user exceeds the highest subaddress in auto-increment mode, the following occurs: ? in read mode, the highest subaddress register contents continue to be output until the master device issues a no-acknowledge. this indicates the end of a read. a no acknowledge condition is where the sda line is not pulled low on the ninth pulse. ? in write mode, the data for the invalid byte is not loaded into any subaddress register, a no acknowledge is issued by the ADV7183B, and the part returns to the idle condition. sdata s cloc start addr ac ac data ac stop subaddress 17 17 89 8 9 1789 s p r/w 04997-039 figure 39. bus data transfer s write sequence slave addr a(s) sub addr a(s) data a(s) data a(s) p s read sequence slave addr slave addr a(s) sub addr a(s) s a(s) data a(m) data a(m) p s start bit p stop bit a(s) acnowledge by slave a(m) acnowledge by master a(s) no-acnowledge by slave a(m) no-acnowledge by master lsb 1 lsb 0 04997-040 figure 40. read and write sequence ADV7183B rev. b | page 61 of 100 register accesses the mpu can write to or read from most of the ADV7183Bs registers, except the registers that are read only or write only. the subaddress register determines which register the next read or write operation accesses. all communications with the part through the bus start with an access to the subaddress register. next, a read/write operation is performed from/to the target address, which then increments to the next address until a stop command on the bus is performed. register programming this section describes the configuration of each register. the communications register is an 8-bit, write only register. after the part has been accessed over the bus and a read/write operation is selected, the subaddress is set up. the subaddress register determines to/from which register the operation takes place. 263h table 82 lists the various operations under the control of the subaddress register for the control port. register select (sr7 to sr0) these bits are set up to point to the required starting address. i 2 c sequencer an i 2 c sequencer is used when a parameter exceeds eight bits and is, therefore, distributed over two or more i 2 c registers, such as hsb[11:0]. when such a parameter is changed using two or more i 2 c write operations, the parameter can hold an invalid value for the time between the first i 2 c completion and the last i 2 c completion. this means, the top bits of the parameter can already hold the new value while the remaining bits of the parameter still hold the previous value. to avoid this problem, the i 2 c sequencer holds the already updated bits of the parameter in local memory; all bits of the parameter are updated together once the last register write operation has completed. the correct operation of the i 2 c sequencer relies on the following: ? all i 2 c registers for the target parameter must be written to in order of ascending addresses. for example, for hsb[10:0], write to address 0x34 first, followed by 0x35. ? no other i 2 c can take place between the two (or more) i 2 c writes for the sequence. for example, for hsb[10:0], write to address 0x34 first, immediately followed by 0x35. ADV7183B rev. b | page 62 of 100 ip2pc register maps table 82. common and normal (p age 1) register map details subaddress register name reset value rw dec hex input control 0000 0000 rw 0 0x00 video selection 1100 1000 rw 1 0x01 reserved 0000 0100 rw 2 0x02 output control 0000 1100 rw 3 0x03 extended output control 01xx 0101 rw 4 0x04 reserved 0000 0000 rw 5 0x05 reserved 0000 0010 rw 6 0x06 autodetect enable 0111 1111 rw 7 0x07 contrast 1000 0000 rw 8 0x08 reserved 1000 0000 rw 9 0x09 brightness 0000 0000 rw 10 0x0a hue 0000 0000 rw 11 0x0b default value y 0011 0110 rw 12 0x0c default value c 0111 1100 rw 13 0x0d adi control 0000 0000 rw 14 0x0e power management 0000 0000 rw 15 0x0f status 1 xxxx xxxx r 16 0x10 ident xxxx xxxx r 17 0x11 status 2 xxxx xxxx r 18 0x12 status 3 xxxx xxxx r 19 0x13 analog clamp control 0001 0010 rw 20 0x14 digital clamp control 1 0100 xxxx rw 21 0x15 reserved xxxx xxxx rw 22 0x16 shaping filter control 0000 0001 rw 23 0x17 shaping filter control 2 1001 0011 rw 24 0x18 comb filter control 1111 0001 rw 25 0x19 reserved xxxx xxxx rw 26 to 28 0x1a to 0x1c adi control 2 0000 0xxx rw 29 0x1d reserved xxxx xxxx rw 30 to 38 0x1e to 0x26 pixel delay control 0101 1000 rw 39 0x27 reserved xxxx xxxx rw 40 to 42 0x28 to 0x2a misc gain control 1110 0001 rw 43 0x2b agc mode control 1010 1110 rw 44 0x2c chroma gain control 1 1111 0100 rw 45 0x2d chroma gain control 2 0000 0000 rw 46 0x2e luma gain control 1 1111 xxxx rw 47 0x2f luma gain control 2 xxxx xxxx rw 48 0x30 vsync field control 1 0001 0010 rw 49 0x31 vsync field control 2 0100 0001 rw 50 0x32 vsync field control 3 1000 0100 rw 51 0x33 hsync position control 1 0000 0000 rw 52 0x34 hsync position control 2 0000 0010 rw 53 0x35 hsync position control 3 0000 0000 rw 54 0x36 polarity 0000 0001 rw 55 0x37 ntsc comb control 1000 0000 rw 56 0x38 pal comb control 1100 0000 rw 57 0x39 adc control 0001 0000 rw 58 0x3a reserved xxxx xxxx rw 59 to 60 0x3b to 0x3c manual window control 0100 0011 rw 61 0x3d ADV7183B rev. b | page 63 of 100 subaddress register name reset value rw dec hex reserved xxxx xxxx rw 62 to 64 0x3e to 0x40 resample control 0100 0001 rw 65 0x41 reserved xxxx xxxx rw 66 to 71 0x42 to 0x47 gemstar ctrl 1 00000000 rw 72 0x48 gemstar ctrl 2 0000 0000 rw 73 0x49 gemstar ctrl 3 0000 0000 rw 74 0x4a gemstar ctrl 4 0000 0000 rw 75 0x4b gemstar ctrl 5 xxxx xxx0 rw 76 0x4c cti dnr ctrl 1 1110 1111 rw 77 0x4d cti dnr ctrl 2 0000 1000 rw 78 0x4e reserved xxxx xxxx rw 79 0x4f cti dnr ctrl 4 0000 1000 rw 80 0x50 lock count 0010 0100 rw 81 0x51 reserved xxxx xxxx rw 82 to 142 0x52 to 0x8e free-run line length 1 0000 0000 w 143 0x8f reserved 0000 0000 w 144 0x90 vbi info xxxx xxxx r 144 0x90 wss 1 xxxx xxxx r 145 0x91 wss 2 xxxx xxxx r 146 0x92 edtv 1 xxxx xxxx r 147 0x93 edtv 2 xxxx xxxx r 148 0x94 edtv 3 xxxx xxxx r 149 0x95 cgms 1 xxxx xxxx r 150 0x96 cgms 2 xxxx xxxx r 151 0x97 cgms 3 xxxx xxxx r 152 0x98 ccap1 xxxx xxxx r 153 0x99 ccap2 xxxx xxxx r 154 0x9a letterbox 1 xxxx xxxx r 155 0x9b letterbox 2 xxxx xxxx r 156 0x9c letterbox 3 xxxx xxxx r 157 0x9d reserved xxxx xxxx rw 158 to 177 0x9e to 0xb1 crc enable 0001 1100 w 178 0xb2 reserved xxxx xxxx rw 179 to 194 0xb2 to 0xc2 adc switch 1 xxxx xxxx rw 195 0xc3 adc switch 2 0xxx xxxx rw 196 0xc4 reserved xxxx xxxx rw 197 to 219 0xc5 to 0xdb letterbox control 1 1010 1100 rw 220 0xdc letterbox control 2 0100 1100 rw 221 0xdd reserved 0000 0000 rw 222 0xde reserved 0000 0000 rw 223 0xdf reserved 0001 0100 rw 224 0xe0 sd offset cb 1000 0000 rw 225 0xe1 sd offset cr 1000 0000 rw 226 0xe2 sd saturation cb 1000 0000 rw 227 0xe3 sd saturation cr 1000 0000 rw 228 0xe4 ntsc v bit begin 0010 0101 rw 229 0xe5 ntsc v bit end 0000 0100 rw 230 0xe6 ntsc f bit toggle 0110 0011 rw 231 0xe7 pal v bit begin 0110 0101 rw 232 0xe8 pal v bit end 0001 0100 rw 233 0xe9 pal f bit toggle 0110 0011 rw 234 0xea reserved xxxx xxxx rw 235 to 243 0xeb to 0xf3 ADV7183B rev. b | page 64 of 100 subaddress register name reset value rw dec hex drive strength xx01 0101 rw 244 0xf4 reserved xxxx xxxx rw 245 to 247 0xf5 to 0xf7 if comp control 0000 0000 rw 248 0xf8 vs mode control 0000 0000 rw 249 0xf9 table 83. common and normal (p age 1) register map bit names register name bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 input control vid_sel.3 vid_sel.2 vid_sel.1 vid_sel.0 insel.3 insel.2 insel.1 insel.0 video selection enhspll betacam envsproc reserved output control vbi_en tod of_sel.3 of_sel.2 of_sel.1 of_sel.0 sd_dup_av extended output control bt656-4 ti m_oe bl_c_vbi en_sfl_pi range reserved reserved autodetect enable ad_sec525_en ad_secam_en ad_n443_en ad_p60_en ad_paln_en ad _palm_en ad_ntsc_en ad_pal_en contrast con.7 con.6 con.5 co n.4 con.3 con.2 con.1 con.0 reserved brightness bri.7 bri.6 bri.5 bri.4 bri.3 bri.2 bri.1 bri.0 hue hue.7 hue.6 hue.5 hue.4 hue.3 hue.2 hue.1 hue.0 default value y def_y.5 def_ y.4 def_y.3 def_y.2 de f_y.1 def_y.0 def_val_ auto_en def_val_en default value c def_c.7 def_c.6 def_c.5 def_ c.4 def_c.3 def_c.2 def_c.1 def_c.0 adi control sub_usr_en.0 power management res pwrdn pdbp status 1 col_kill ad_result.2 ad _result.1 ad_result.0 follow_pw fsc_lock lost_lock in_lock ident ident.7 ident.6 ident.5 ident.4 ident.3 ident.2 ident.1 ident.0 status 2 fsc nstd ll nstd mv ag c det mv ps det mvcs t3 mvcs det status 3 pal sw lock interlace std fld len free_run_act sd_op_50hz gemd inst_hlock analog clamp control cclen digital clamp control 1 dct.1 dct.0 reserved shaping filter control csfm.2 csfm.1 csfm .0 ysfm.4 ysfm.3 ysfm.2 ysfm.1 ysfm.0 shaping filter control 2 wysfmovr wysfm.4 wysfm.3 wysfm.2 wysfm.1 wysfm.0 comb filter control nsfse l.1 nsfsel.0 psfsel.1 psfsel.0 reserved adi control 2 tri_llc en28xtal vs_jit_ comp_en reserved pixel delay control swpc auto_pdc_en cta.2 cta.1 cta.0 lta.1 lta.0 reserved misc gain control cke pw_upd agc mode control lagc.2 lagc.1 lagc.0 cagc.1 cagc.0 chroma gain control 1 cagt.1 ca gt.0 cmg.11 cmg.10 cmg.9 cmg.8 chroma gain control 2 cmg.7 cmg.6 cmg.5 cmg.4 cmg.3 cmg.2 cmg.1 cmg.0 luma gain control 1 lagt.1 lgat.0 lmg.11 lmg.10 lmg.9 lmg.8 luma gain control 2 lmg.7 lmg.6 lmg.5 lmg.4 lmg.3 lmg.2 lmg.1 lmg.0 vsync field control 1 newavmode hvstim vsync field control 2 vsbho vsbhe vsync field control 3 vseho vsehe hsync position control 1 hsb.10 hsb.9 hsb.8 hse.10 hse.9 hse.8 hsync position control 2 hsb.7 hsb.6 hsb.5 hsb.4 hsb.3 hsb.2 hsb.1 hsb.0 hsync position control 3 hse.7 hse.6 hse.5 hse.4 hse.3 hse.2 hse.1 hse.0 polarity phs pvs pf pclk ntsc comb control ctapsn.1 ctapsn.0 ccmn.2 ccmn.1 ccmn.0 ycmn.2 ycmn.1 ycmn.0 pal comb control ctapsp.1 ctapsp.0 ccm p.2 ccmp.1 ccmp.0 ycmp.2 ycmp.1 ycmp.0 adc control pwrdn_ad c_0 pwrdn_ad c_ 1 pwrdn_adc_2 reserved manual window control ckillthr.2 ckillthr.1 ckillthr.0 ADV7183B rev. b | page 65 of 100 register name bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 reserved resample control sfl_inv reserved gemstar ctrl 1 gdecel.15 gdecel.14 gdecel.13 gdecel.12 gdecel.11 gdecel.10 gdecel.9 gdecel.8 gemstar ctrl 2 gdecel.7 gdecel.6 gdecel.5 gdecel.4 gdecel.3 gdecel.2 gdecel.1 gdecel.0 gemstar ctrl 3 gdecol.15 gdecol.14 gdecol.13 gd ecol.12 gdecol.11 gdecol.10 gdecol.9 gdecol.8 gemstar ctrl 4 gdecol.7 gdecol.6 gdecol.5 gdecol.4 gdecol.3 gdecol.2 gdecol.1 gdecol.0 gemstar ctrl 5 gdecad cti dnr ctrl 1 dnr_en cti_ ab.1 cti_ab.0 cti_ab_en cti_en cti dnr ctrl 2 cti_c_th.7 cti_c_th.6 cti_c_th.5 cti_ c_th.4 cti_c_th.3 cti_c_th.2 cti_c_th.1 cti_c_th.0 reserved cti dnr ctrl 4 dnr_th.7 dnr_th.6 dnr_th.5 dn r_th.4 dnr_th.3 dnr_th .2 dnr_th.1 dnr_th.0 lock count fscle srls col.2 col.1 col.0 cil.2 cil.1 cil.0 reserved free-run line length 1 llc_pad_sel.2 llc_pad_sel.1 llc_pad_sel.0 reserved vbi info cgmsd edtvd ccapd wssd wss 1 wss1.7 wss1.6 wss1.5 wss1.4 wss1.3 wss1.2 wss1.1 wss1.0 wss 2 wss2.7 wss2.6 wss2.5 wss2.4 wss2.3 wss2.2 wss2.1 wss2.0 edtv 1 edtv1.7 edtv1.6 edtv1.5 edtv 1.4 edtv1.3 edtv1.2 edtv1.1 edtv1.0 edtv 2 edtv2.7 edtv2.6 edtv2.5 edtv 2.4 edtv2.3 edtv2.2 edtv2.1 edtv2.0 edtv 3 edtv3.7 edtv3.6 edtv3.5 edtv 3.4 edtv3.3 edtv3.2 edtv3.1 edtv3.0 cgms 1 cgms1.7 cgms1.6 cgms1.5 cgms 1.4 cgms1.3 cgms1.2 cgms1.1 cgms1.0 cgms 2 cgms2.7 cgms2.6 cgms2.5 cgms 2.4 cgms2.3 cgms2.2 cgms2.1 cgms2.0 cgms 3 cgms3.7 cgms3.6 cgms3.5 cgms 3.4 cgms3.3 cgms3.2 cgms3.1 cgms3.0 ccap1 ccap1.7 ccap1.6 ccap1.5 ccap1.4 ccap1.3 ccap1.2 ccap1.1 ccap1.0 ccap2 ccap2.7 ccap2.6 ccap2.5 ccap2.4 ccap2.3 ccap2.2 ccap2.1 ccap2.0 letterbox 1 lb_lct.7 lb_lct.6 lb_lct.5 lb_lct.4 lb_lct.3 lb_lct.2 lb_lct.1 lb_lct.0 letterbox 2 lb_lcm.7 lb_lcm.6 lb_lcm.5 lb_lcm.4 lb_lcm.3 lb_lcm.2 lb_lcm.1 lb_lcm.0 letterbox 3 lb_lcb.7 lb_lcb.6 lb_lcb.5 lb_lcb.4 lb_lcb.3 lb_lcb.2 lb_lcb.1 lb_lcb.0 reserved crc enable crc_enable reserved adc switch 1 adc1_sw.3 adc1_sw.2 adc1_sw.1 adc1_sw.0 adc0_sw.3 adc0_sw.2 adc0_sw.1 adc0_sw.0 adc switch 2 adc_sw_m an adc2_sw.3 adc2_sw.2 adc2_sw.1 adc2_sw.0 reserved letterbox control 1 lb_th.4 lb_th.3 lb_th.2 lb_th.1 lb_th.0 letterbox control 2 lb_sl.3 lb_sl.2 lb_sl.1 lb_sl.0 lb_el.3 lb_el.2 lb_el.1 lb_el.0 reserved reserved reserved sd offset cb sd_off_cb.7 sd_off_cb.6 sd_off_cb.5 sd_o ff_cb.4 sd_off_cb.3 sd_off_cb .2 sd_off_cb.1 sd_off_cb.0 sd offset cr sd_off_cr.7 sd_off_cr.6 sd_off_cr.5 sd_off_ cr.4 sd_off_cr.3 sd_off_cr.2 sd_off_cr .1 sd_off_cr.0 sd saturation cb sd_sat_cb.7 sd_sat_cb.6 sd_sat_cb.5 sd _sat_cb.4 sd_sat_cb.3 sd_sat_cb.2 sd_sat_cb.1 sd_sat_cb.0 sd saturation cr sd_sat_cr.7 sd_sat_cr.6 sd_sat_cr.5 sd _sat_cr.4 sd_sat_cr.3 sd_sat_cr.2 sd_sat_cr.1 sd_sat_cr.0 ntsc v bit begin nvbegdel o nvbegdel e nvbe gsign nvbeg.4 nvbeg.3 nv beg.2 nvbeg.1 nvbeg.0 ntsc v bit end nvenddel o nvenddel e nvends ign nvend.4 nvend.3 nv end.2 nvend.1 nvend.0 ntsc f bit toggle nftogdel o nftogdel e nfto gsign nftog.4 nftog.3 nftog.2 nftog.1 nftog.0 pal v bit begin pvbegdel o pvbegdel e pvbegsign pvbeg.4 pvbeg.3 pvbeg.2 pvbeg.1 pvbeg.0 pal v bit end pvenddel o pvenddel e pvendsign pvend.4 pvend.3 pvend.2 pvend.1 pvend.0 pal f bit toggle pftogdel o pftogdel e pftogsign pftog.4 pftog.3 pftog.2 pftog.1 pftog.0 reserved drive strength dr_str.1 dr_str.0 dr_s tr_c.1 dr_str_c.0 dr _str_s.1 dr_str_s.0 reserved if comp control iffiltsel.2 iffiltsel.1 iffiltsel.0 vs mode control vs_coast_ mode.1 vs_coast_ mode.0 extend_vs_ min_freq extend_vs_ max_freq ADV7183B rev. b | page 66 of 100 i p 2 p c register map details the following registers are located in the common i 2 c map and register access page 2. table 84. interrupt (page 2) register map bit names 15f 1 subaddress register name reset value rw dec hex bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 interrupt config 0 0001 x000 rw 64 0x40 intrq_dur _sel.1 intrq_dur _sel.0 mv_intrq_ sel.1 mv_intrq_ sel.0 mpu_stim_ intrq intrq_op_ sel.1 intrq_op_ sel.0 reserved 65 0x41 interrupt status 1 r 66 0x42 mv_ps_cs_ q sd_fr_chn g_q sd_unlock _q sd_lock_q interrupt clear 1 x000 0000 w 67 0x43 mv_ps_cs_ clr sd_fr_chn g_clr sd_unlock _clr sd_lock_ clr interrupt maskb 1 x000 0000 rw 68 0x44 mv_ps_cs_ mskb sd_fr_chn g_mskb sd_unlock _mskb sd_lock_ mskb reserved 69 0x45 interrupt status 2 r 70 0x46 mpu_stim_ intrq_q wss_ chngd_q cgms_ chngd_q gemd_q ccapd_q interrupt clear 2 0xxx 0000 w 71 0x47 mpu_stim_ intrq_clr wss_ chngd_clr cgms_chn gd_clr gemd_clr ccapd_clr interrupt maskb 2 0xxx 0000 rw 72 0x48 mpu_stim_ intrq_ mskb wss_ chngd_ mskb cgms_ chngd_ mskb gemd_ mskb ccapd_ mskb raw status 3 r 73 0x49 scm_lock sd_h_lock sd_v_lock sd_op_ 50hz interrupt status 3 r 74 0x4a pal_sw_lk _chng_q scm_lock_ chng_q sd_ad_ chng_q sd_h_lock _chng_q sd_v_lock _chng_q sd_op_ chng_q interrupt clear 3 xx00 0000 w 75 0x4b pal_sw_lk _chng_clr scm_lock_ chng_clr sd_ad_ch ng_clr sd_h_lock _chng_clr sd_v_lock _chng_clr sd_op_ chng_clr interrupt maskb 3 xx00 0000 rw 76 0x4c pal_sw_lk _chng_ mskb scm_lock_ chng_ mskb sd_ad_ chng_ mskb sd_h_lock _chng_ mskb sd_v_lock _chng_ mskb sd_op_ chng_ mskb 1 to access the interrupt register map, the register access page[1:0] in register address 0x0e must be programmed to 01b. ADV7183B rev. b | page 67 of 100 table 85. interrupt register map details bit subaddress register bit description 7 6 5 4 3 2 1 0 comments notes 0 0 open drain. 0 1 drive low when active. 1 0 drive high when active. intrq_op_sel[1:0]. interrupt drive level select 1 1 reserved. 0 manual interrupt mode disabled. mpu_stim_intrq[1:0]. manual interrupt set mode 1 manual interrupt mode enabled. reserved x not used. 0 0 reserved. 0 1 pseudo sync only. 1 0 color stripe only. mv_intrq_sel[1:0]. macrovision interrupt select 1 1 pseudo sync or color stripe. 0 0 3 xtal periods. 0 1 15 xtal periods. 1 0 63 xtal periods. 0x40 interrupt config 1 register access page 2 intrq_dur_sel[1:0]. interrupt duration select 1 1 active until cleared. 0x41 reserved x x x x x x x x 0 no change. sd_lock_q 1 sd input has caused the decoder to go from an un-locked state to a locked state. 0 no change. sd_unlock_q 1 sd input has caused the decoder to go from a locked state to an unlocked state. reserved x reserved x reserved x 0 no change. sd_fr_chng_q 1 denotes a change in the free-run status. 0 no change. mv_ps_cs_q 1 pseudo sync/color striping detected. see 264h mv_intrq_sel[1:0], macrovision interrupt selection bits address 0x40 (interrupt space)[5:4] for selection. 0x42 interrupt status 1 read only register access page 2 reserved x these bits can be cleared or masked in registers 0x43 and 0x44, respectively. 0 do not clear. sd_lock_clr 1 clears sd_lock_q bit. 0 do not clear. sd_unlock_clr 1 clears sd_unlock_q bit. reserved 0 not used. reserved 0 not used. reserved 0 not used. 0 do not clear. sd_fr_chng_clr 1 clears sd_fr_chng_q bit. 0 do not clear. mv_ps_cs_clr 1 clears mv_ps_cs_q bit. 0x43 interrupt clear 1 write only register access page 2 reserved x not used. ADV7183B rev. b | page 68 of 100 bit subaddress register bit description 7 6 5 4 3 2 1 0 comments notes 0 masks sd_lock_q bit. sd_lock_mskb 1 unmasks sd_lock_q bit. 0 masks sd_unlock_q bit. sd_unlock_mskb 1 unmasks sd_unlock_q bit reserved 0 not used. reserved 0 not used. reserved 0 not used. 0 masks sd_fr_chng_q bit. sd_fr_chng_mskb 1 unmasks sd_fr_chng_q bit. 0 masks mv_ps_cs_q bit. mv_ps_cs_mskb 1 unmasks mv_ps_cs_q bit. 0x44 interrupt mask 1 read/write register register access page 2 reserved x not used. 0x45 reserved x x x x x x x x 0 closed captioning not detected in the input video signal ccapd_q 1 closed captioning data detected in the video input signal. 0 gemstar data not detected in the input video signal. gemd_q 1 gemstar data detected in the input video signal. 0 no change detected in cgms data in the input video signal. cgms_chngd_q 1 a change is detected in the cgms data in the input video signal. 0 no change detected in wss data in the input video signal. wss_chngd_q 1 a change is detected in the wss data in the input video signal. reserved x not used. reserved x not used. reserved x not used. 0 manual interrupt not set. 0x46 interrupt status 2 read only register register access page 2 mpu_stim_intrq_q 1 manual interrupt set. these bits can be cleared or masked by registers 0x47 and 0x48, respectively. 0 do not clear. ccapd_clr 1 clears ccapd_q bit. 0 do not clear. gemd_clr 1 clears gemd_q bit. 0 do not clear. cgms_chngd_clr 1 clears cgms_chngd_q bit. 0 do not clear. wss_chngd_clr 1 clears wss_chngd_q bit. reserved x not used. reserved x not used. reserved x not used. 0 do not clear. 0x47 interrupt clear 2 write only register access page 2 mpu_stim_intrq_clr 1 clears mpu_stim_intrq_q bit. ADV7183B rev. b | page 69 of 100 bit subaddress register bit description 7 6 5 4 3 2 1 0 comments notes 0 masks ccapd_q bit. ccapd_mskb 1 unmasks ccapd_q bit. 0 masks gemd_q bit. gemd_mskb 1 unmasks gemd_q bit. 0 masks cgms_chngd_q bit. cgms_chngd_mskb 1 unmasks cgms_chngd_q bit. 0 masks wss_chngd_q bit.. wss_chngd_mskb 1 unmasks wss_chngd_q bit. reserved 0 not used. reserved 0 not used. reserved 0 not used. 0 masks mpu_stim_intrq_q bit. 0x48 interrupt mask 2 read/write register access page 2 mpu_stim_intrq_mskb 1 unmasks mpu_stim_intrq_q bit. 0 sd 60 hz signal output. sd_op_50hz sd 60/50hz frame rate at output 1 sd 50 hz signal output. 0 sd vertical sync lock not established. sd_v_lock 1 sd vertical sync lock established. 0 sd horizontal sync lock not established. sd_h_lock 1 sd horizontal sync lock established. reserved x not used. 0 secam lock not established. scm_lock secam lock 1 secam lock established. reserved x not used. reserved x not used. 0x49 raw status 3 read only register register access page 2 reserved x not used. these bits cannot be cleared or masked. register 0x4a is used for this purpose. 0 no change in sd signal standard detected at the input. sd_op_chng_q sd 60/50 hz frame rate at input 1 a change in sd signal standard is detected at the input. 0 no change in sd vertical sync lock status. sd_v_lock_chng_q 1 sd vertical sync lock status has changed. 0 no change in sd horizontal sync lock status. sd_h_lock_chng_q 1 sd horizontal sync lock status has changed. x no change in ad_result[2:0] bits in status register 1. sd_ad_chng_q sd autodetect changed ad_result[2:0] bits in status register 1 have changed. 0 no change in secam lock status. scm_lock_chng_q secam lock 1 secam lock status has changed. x no change in pal swinging burst lock status. pal_sw_lk_chng_q pal swinging burst lock status has changed. reserved x not used. 0x4a interrupt status 3 read only register register access page 2 reserved x not used. these bits can be cleared and masked by registers 0x4b and 0x4c, respectively. ADV7183B rev. b | page 70 of 100 bit subaddress register bit description 7 6 5 4 3 2 1 0 comments notes 0 do not clear. sd_op_chng_clr 1 clears sd_op_chng_q bit. 0 do not clear. sd_v_lock_chng_clr 1 clears sd_v_lock_chng_q bit. 0 do not clear. sd_h_lock_chng_clr 1 clears sd_h_lock_chng_q bit. 0 do not clear. sd_ad_chng_clr 1 clears sd_ad_chng_q bit. 0 do not clear. scm_lock_chng_clr 1 clears scm_lock_chng_q bit. 0 do not clear. pal_sw_lk_chng_clr 1 clears pal_sw_lk_chng_q bit. reserved x not used. 0x4b interrupt clear 3 write only register register access page 2 reserved x not used. 0 masks sd_op_chng_q bit. sd_op_chng_mskb 1 unmasks sd_op_chng_q bit. 0 masks sd_v_lock_chng_q bit. sd_v_lock_chng_ mskb 1 unmasks sd_v_lock_chng_q bit. 0 masks sd_h_lock_chng_q bit. sd_h_lock_chng_ mskb 1 unmasks sd_h_lock_chng_q bit. 0 masks sd_ad_chng_q bit. sd_ad_chng_ mskb 1 unmasks sd_ad_chng_q bit. 0 masks scm_lock_chng_q bit scm_lock_chng_ mskb 1 unmasks scm_lock_chng_q bit. 0 masks pal_sw_lk_chng_q bit. pal_sw_lk_chng_ mskb 1 unmasks pal_sw_lk_chng_q bit. reserved x not used. 0x4c interrupt mask 2 read/write register register access page 2 reserved x not used. ADV7183B rev. b | page 71 of 100 the following registers are located in the common i 2 c map and register access page 1. table 86. interrupt register map details bits subaddress register bit description 7 6 5 4 3 2 1 0 comments notes 0 0 0 0cvbs in on ain1. 0 0 0 1 cvbs in on ain2. 0 0 1 0 cvbs in on ain3. 0 0 1 1 cvbs in on ain4. 0 1 0 0 cvbs in on ain5. 0 1 0 1 cvbs in on ain6. composite. 0 1 1 0 y on ain1, c on ain4. 0 1 1 1 y on ain2, c on ain5. 1 0 0 0 y on ain3, c on ain6. s-video 1 0 0 1 y on ain1, pr on ain4, pb on ain5. 1 0 1 0 y on ain2, pr on ain3, pb on ain6. ypbpr 1 0 1 1 cvbs in on ain7. 1 1 0 0 cvbs in on ain8. 1 1 0 1 cvbs in on ain9. 1 1 1 0 cvbs in on ain10. insel[3:0]. the insel bits allow the user to select an input channel as well as the input format. 1 1 1 1 cvbs in on ain11. composite 0 0 0 0 auto-detect pal (b/g/h/i/d), ntsc (without pedestal), secam. 0 0 0 1 auto-detect pal (b/g/h/i/d), ntsc-m (with pedestal), secam. 0 0 1 0 auto-detect pal-n, ntsc-m (without pedestal), secam. 0 0 1 1 auto-detect pal-n, ntsc-m (with pedestal), secam. 0 1 0 0 ntsc-j. 0 1 0 1 ntsc-m. 0 1 1 0 pal60. 0 1 1 1 ntsc-4.43. 1 0 0 0 pal-b/g/h/i/d. 1 0 0 1 pal-n (b/g/h/i/d without pedestal). 1 0 1 0 pal-m (without pedestal). 1 0 1 1 pal-m. 1 1 0 0 pal combination n. 1 1 0 1 pal combination n. 1 1 1 0 secam (with pedestal). 0x00 input control vid_sel[3:0]. the vid_sel bits allow the user to select the input video standard. 1 1 1 1 secam (with pedestal). ADV7183B rev. b | page 72 of 100 bits subaddress register bit description 7 6 5 4 3 2 1 0 comments notes reserved 0 0 0 set to default. 0 disable vsync processor. envsproc 1 enable vsync processor. reserved 0 set to default. 0 standard video input. betacam 1 betacam input enable. 0 disable hsync processor. enhspll 1 enable hsync processor. 0x01 video selection reserved 1 set to default. 0 av codes to suit 8-bit interleaved data output. sd_dup_av. duplicates the av codes from the luma into the chroma path. 1 av codes duplicated (for 16-bit interfaces). reserved 0 set as default. 0 0 0 0 reserved. 0 0 0 1 reserved. 0 0 1 0 16-bit @ llc1 4:2:2. 0 0 1 1 8-bit @ llc1 4:2:2 itu-r bt.656. 0 1 0 0 not used. 0 1 0 1 not used. 0 1 1 0 not used. 0 1 1 1 not used. 1 0 0 0 not used. 1 0 0 1 not used. 1 0 1 0 not used. 1 0 1 1 not used. 1 1 0 0 not used. 1 1 0 1 not used. 1 1 1 0 not used. of_sel[3:0]. allows the user to choose from a set of output formats. 1 1 1 1 not used. 0 output pins enabled. see 265h tim_oe, address 0x04[3] and 266h introduction. tod. three-state output drivers. this bit allows the user to three- state the output drivers: p[19:0], hs, vs, field, and sfl. 1 drivers three-stated. 0 all lines filtered and scaled. 0x03 output control vbi_en. allows vbi data (lines 1 to 21) to be passed through with only a minimum amount of filtering performed. 1 only active video region filtered. 0 16 < y < 235, 16 < c < 240. itu-r bt.656. range. allows the user to select the range of output values. can be bt656 compliant, or can fill the whole accessible number range. 1 1 < y < 254, 1 < c < 254. extended range. 0 sfl output is disabled. en_sfl_pin 1 sfl information output on the sfl pin. sfl output enables encoder and decoder to be connected directly. 0 decode and output color. bl_c_vbi. blank chroma during vbi. if set, enables data in the vbi region to be passed through the decoder undistorted. 1 blank cr and cb. during vbi. 0 hs, vs, f three-stated. tim_oe. timing signals output enable. 1 hs, vs, f forced active. controlled by tod. reserved x x reserved 1 0 bt656-3-compatible. 0x04 extended output control bt656-4. allows the user to select an output mode-compatible with itu- r bt656-3/4. 1 bt656-4-compatible. ADV7183B rev. b | page 73 of 100 bits subaddress register bit description 7 6 5 4 3 2 1 0 comments notes 0disable. ad_pal_en. pal b/g/i/h autodetect enable. 1enable. 0 disable. ad_ntsc_en. ntsc autodetect enable. 1 enable. 0 disable. ad_palm_en. pal m autodetect enable. 1 enable. 0 disable. ad_paln_en. pal n autodetect enable. 1 enable. 0 disable. ad_p60_en. pal60 autodetect enable. 1 enable. 0 disable. ad_n443_en. ntsc443 autodetect enable. 1 enable. 0 disable. ad_secam_en. secam autodetect enable. 1 enable 0 disable. 0x07 autodetect enable ad_sec525_en. secam 525 autodetect enable. 1 enable. 0x08 contrast register con[7:0]. contrast adjust. this is the user control for contrast adjustment. 1 0 0 0 0 0 0 0 luma gain = 1. 0x00 gain = 0; 0x80 gain = 1; 0xff gain = 2. 0x09 reserved reserved 1 0 0 0 0 0 0 0 0x0a brightness register bri[7:0]. this register controls the brightness of the video signal. 0 0 0 0 0 0 0 0 0x00 = 0ire; 0x7f = +100ire; 0x80 = C100ire. 0x0b hue register hue[7:0]. this register contains the value for the color hue adjustment. 0 0 0 0 0 0 0 0 hue range = C90 to +90. 0x0c default value y 0 free-run mode dependent on def_val_auto_en. def_val_en. default value enable. 1 force free-run mode on and output blue screen. 0 disable free-run mode. def_val_auto_en. default value. 1 enable automatic free- run mode (blue screen). when lock is lost, free- run mode can be enabled to output stable timing, clock, and a set color. 0 0 1 1 0 1 def_y[5:0]. default value y. this register holds the y default value. y[7:0] = {def_y[5:0], 0, 0}. default y value output in free-run mode. 0x0d default value c 0 1 1 1 1 1 0 0 def_c[7:0]. default value c. the cr and cb default values are defined in this register. cr[7:0] = def_c[7:4], 0, 0, 0, 0}; cb[7:0] = def_c[3:0], 0, 0, 0, 0}. default cb/cr value output in free-run mode. default values give blue screen output. 0x0e adi control reserved. 0 0 0 0 0set as default. 0 access user reg map. sub_usr_en. enables the user to access the interrupt map. 1 access interrupt reg map. see 267h figure 38. reserved. 0 0 set as default. ADV7183B rev. b | page 74 of 100 bits subaddress register bit description 7 6 5 4 3 2 1 0 comments notes 0x0f power management reserved 0 0 set to default. 0 chip power-down controlled by pin. pdbp. power-down bit priority selects between pwrdn bit or pin. 1 bit has priority (pin disregarded). reserved 0 0 set to default. 0 system functional. pwrdn. power-down places the decoder in a full power-down mode. 1 powered down. see pdbp, 0x0f bit 2. reserved 0 set to default. 0 normal operation. res. chip reset loads all i 2 c bits with default values. 1 start reset sequ ence. executing reset takes approximately 2 ms. this bit is self-clearing. 0x10 in_lock x in lock (right now) = 1. lost_lock x lost lock (since last read) = 1. status register 1, read only fsc_lock x f sc lock (right now) = 1. follow_pw x peak white agc mode active = 1. provides information about the internal status of the decoder. 0 0 0 ntsm-mj. 0 0 1 ntsc-443. 0 1 0 pal-m. 0 1 1 pal60. 1 0 0 pal-b/g/h/i/d. 1 0 1 secam. 1 1 0 pal-combination n. ad_result[2:0]. autodetection result reports the standard of the input video. 1 1 1 secam 525. detected standard. col_kill x color ki ll is active = 1. color kill. 0x11 ident read only ident[7:0]. provides identification on the revision of the part. x x x x x x x x ADV7183B = 0x13. 0x12 mvcs det x mv color striping detected. 1 = detected. mvcs t3 x mv color striping type. 0 = type 2, 1 = type 3. mv ps det x mv pseudo sync detected. 1 = detected. mv agc det x mv agc pulses detected. 1 = detected. ll nstd x nonstandard line length. 1 = detected. fsc nstd x f sc frequency nonstandard. 1 = detected. status register 2, read only. reserved x x 0x13 inst_hlock x 1 = horizontal lock achieved. unfiltered. gemd x 1 = gemstar data detected. sd_op_50hz x sd 60 hz detected. reserved x sd 50 hz detected. sd field rate detect. free_run_act x 1 = free-run mode active. blue screen output. std fld_len x 1 = field length standard. correct field length found. interlaced x 1 = interlaced video detected. field sequence found. status register 3, read only. pal_sw_lock x 1 = swinging burst detected. reliable swinging burst sequence. reserved 0 0 1 0 set to default. 0 current sources switched off. cclen. current clamp enable allows the user to switch off the current sources in the analog front. 1 current sources enabled. 0x14 analog clamp control reserved 0 0 0 set to default. ADV7183B rev. b | page 75 of 100 bits subaddress register bit description 7 6 5 4 3 2 1 0 comments notes reserved 0 x x x x set to default. 0 0 slow (tc = 1 sec). 0 1 medium (tc = 0.5 sec). 1 0 fast (tc = 0.1 sec). dct[1:0]. digital clamp timing determines the time constant of the digital fine clamp circuitry. 1 1 tc dependent on video. 0x15 digital clamp control 1 reserved 0 set to default. 0 0 0 0 0 auto wide notch for poor quality sources or wide- band filter with comb for good quality input. 0x17 0 0 0 0 1 auto narrow notch for poor quality sources or wideband filter with comb for good quality input. decoder selects optimum y-shaping filter depending on cvbs quality. 0 0 0 1 0 svhs 1. shaping filter control 0 0 0 1 1 svhs 2. 0 0 1 0 0 svhs 3. 0 0 1 0 1 svhs 4. 0 0 1 1 0 svhs 5. 0 0 1 1 1 svhs 6. 0 1 0 0 0 svhs 7. 0 1 0 0 1 svhs 8. 0 1 0 1 0 svhs 9. 0 1 0 1 1 svhs 10. 0 1 1 0 0 svhs 11. 0 1 1 0 1 svhs 12. 0 1 1 1 0 svhs 13. 0 1 1 1 1 svhs 14. 1 0 0 0 0 svhs 15. 1 0 0 0 1 svhs 16. 1 0 0 1 0 svhs 17. 1 0 0 1 1 svhs 18 (ccir601). 1 0 1 0 0 pal nn1. 1 0 1 0 1 pal nn2. 1 0 1 1 0 pal nn3. 1 0 1 1 1 pal wn 1. 1 1 0 0 0 pal wn 2. 1 1 0 0 1 ntsc nn1. 1 1 0 1 0 ntsc nn2. 1 1 0 1 1 ntsc nn3. 1 1 1 0 0 ntsc wn1. 1 1 1 0 1 ntsc wn2. 1 1 1 1 0 ntsc wn3. ysfm[4:0]. selects y-shaping filter mode when in cvbs only mode. allows the user to select a wide range of low-pass and notch filters. if either auto mode is selected, the decoder selects the optimum y filter depending on the cvbs video source quality (good vs. bad). 1 1 1 1 1 reserved. if one of these modes is selected, the decoder does not change filter modes. depending on video quality, a fixed filter response (the one selected) is used for good and bad quality video. 0 0 0 auto selection 1.5 mhz. 0 0 1 auto selection 2.17 mhz. automatically selects a c filter for the specified bandwidth. 0 1 0 sh1. 0 1 1 sh2. 1 0 0 sh3. 1 0 1 sh4. 1 1 0 sh5. csfm[2:0]. c-shaping filter mode allows the selection from a range of low-pass chrominance filters, sh1 to sh5 and wideband mode. 1 1 1 wideband mode. ADV7183B rev. b | page 76 of 100 bits subaddress register bit description 7 6 5 4 3 2 1 0 comments notes 0x18 0 0 0 0 0 reserved. do not use. 0 0 0 0 1 reserved. do not use. shaping filter control 2 0 0 0 1 0 svhs 1. 0 0 0 1 1 svhs 2. 0 0 1 0 0 svhs 3. 0 0 1 0 1svhs 4. 0 0 1 1 0 svhs 5. 0 0 1 1 1 svhs 6. 0 1 0 0 0 svhs 7. 0 1 0 0 1 svhs 8. 0 1 0 1 0 svhs 9. 0 1 0 1 1 svhs 10. 0 1 1 0 0 svhs 11. 0 1 1 0 1 svhs 12. 0 1 1 1 0 svhs 13. 0 1 1 1 1 svhs 14. 1 0 0 0 0 svhs 15. 1 0 0 0 1 svhs 16. 1 0 0 1 0 svhs 17. 1 0 0 1 1 svhs 18 (ccir 601). 1 0 1 0 0 reserved. do not use. ~ ~ ~ ~ ~ reserved. do not use. wysfm[4:0]. wideband y shaping filter mode allows the user to select which y shaping filter is used for the y component of y/c, ypbpr, b/w input signals; it is also used when a good quality input cvbs signal is detected. for all other inputs, the y shaping filter chosen is controlled by ysfm[4:0]. 1 1 1 1 1 reserved. do not use. reserved 0 0 set to default. 0 auto selection of best filter. wysfmovr. enables the use of automatic wysfn filter. 1 manual select filter using wysfm[4:0]. 0 0 narrow. 0 1medium. 1 0 wide. psfsel[1:0]. controls the signal bandwidth that is fed to the comb filters (pal). 1 1 widest. 0 0 narrow. 0 1 medium. 1 0 medium. nsfsel[1:0]. controls the signal bandwidth that is fed to the comb filters (ntsc). 1 1 wide. 0x19 comb filter control reserved 1 1 1 1 set as default. reserved 0 0 x x xset as default. 0 enabled. vs_jit_comp_en 1 disabled. 0 use 27 mhz crystal. en28xtal 1 use 28 mhz crystal. 0 llc pin active. 0x1d adi control 2 tri_llc 1 llc pin three-stated. ADV7183B rev. b | page 77 of 100 bits subaddress register bit description 7 6 5 4 3 2 1 0 comments notes 0 0 no delay. 1 0 luma 1 clk (37 ns) delayed. 1 0 luma 2 clk (74 ns) early. lta[1:0]. luma timing adjust allows the user to specify a timing difference between chroma and luma samples. 1 1 luma 1 clk (37 ns) early. cvbs mode lta[1:0] = 00b; s-video mode lta[1:0]= 01b, yprpb mode lta[1:0] = 01b. reserved 0 set to zero. 0 0 0 not valid setting. 0 0 1 chroma + 2 pixels (early). 0 1 0 chroma + 1 pixel (early). 0 1 1 no delay. 1 0 0 chroma ? 1 pixel (late). 1 0 1 chroma ? 2 pixels (late). 1 1 0 chroma ? 3 pixels (late). cta[2:0]. chroma timing adjust allows a specified timing difference between the luma and chroma samples. 1 1 1 not valid setting. cvbs mode cta[2:0] = 011b. s-video mode cta[2:0] = 101b. yprpb mode cta[2:0] = 110b. 0 use values in lta[1:0] and cta[2:0] for delaying luma/chroma. auto_pdc_en. automatically programs the lta/cta values so that luma and chroma are aligned at the output for all modes of operation. 1 lta and cta values determined automatically. 0 no swapping. 0x27 pixel delay control swpc. allows the cr and cb samples to be swapped. 1 swap the cr and cb o/p samples. 0x2b 0 update once per video line. pw_upd. peak white update determines the rate of gain. 1 update once per field. peak white must be enabled. see 268h lagc[2:0] luma automatic gain control, address 0x2c[7:0] reserved 1 0 0 0 0 set to default. 0 color kill disabled. cke. color kill enable allows the color kill function to be switched on and off. 1 color kill enabled. for secam color kill, threshold is set at 8%. see ckillthr[2:0]. misc gain control reserved 1 set to default. 0 0 manual fixed gain. use cmg[11:0]. 0 1 use luma gain for chroma. 1 0 automatic gain. based on color burst. cagc[1:0]. chroma automatic gain control selects the basic mode of operation for the agc in the chroma path. 1 1 freeze chroma gain. reserved 1 1 set to 1. 0 0 0 manual fixed gain. use lmg[11:0]. 0 0 1 agc peak white algorithm off. blank level to sync tip. 0 1 0 agc peak white algorithm on. blank level to sync tip. 0 1 1 reserved 1 0 0 reserved. 1 0 1 reserved 1 1 0 reserved. lagc[2:0]. luma automatic gain control selects the mode of operation for the gain control in the luma path. 1 1 1 freeze gain. 0x2c agc mode control reserved 1 set to 1. ADV7183B rev. b | page 78 of 100 bits subaddress register bit description 7 6 5 4 3 2 1 0 comments notes cmg[11:8]. chroma manual gain can be used to program a desired manual chroma gain. reading back from this register in agc mode gives the current gain. 0 1 0 0 cagc[1:0] settings decide in which mode cmg[11:0] operates. reserved 1 1 set to 1. 00 slow (tc = 2 sec). 01 medium (tc = 1 sec). 1 0 fast (tc = 0.2 sec). 0x2d chroma gain control 1 cagt[1:0]. chroma automatic gain timing allows adjustment of the chroma agc tracking speed. 1 1 adaptive. has an effect only if cagc[1:0] is set to auto gain (10). 0x2e chroma gain control 2 cmg[7:0]. chroma manual gain lower 8 bits. see cmg[11:8] for description. 0 0 0 0 0 0 0 0 cmg[11:0] = 750d; gain is 1 in ntsc; cmg[11:0] = 741d; gain is 1 in pal. min value is 0d (g = C60 db) max value is 3750 (g = 5). lmg[11:8]. luma manual gain can be used to program a desired manual chroma gain or to read back the actual gain value used. x x x x lagc[1:0] settings decide in which mode lmg[11:0] operates. reserved 1 1 set to 1. 00 slow (tc = 2 sec). 01 medium (tc = 1 sec). 1 0 fast (tc = 0.2 sec). 0x2f luma gain control 1 lagt[1:0]. luma automatic gain timing allows adjustment of the luma agc tracking speed. 1 1 adaptive. has an effect only if lagc[1:0] is set to auto gain (001, 010, 011,or 100). 0x30 luma gain control 2 lmg[7:0]. luma manual gain can be used to program a desired manual chroma gain or read back the actual used gain value. x x x x x x x x lmg[11:0] = 1234 dec; gain is 1 in ntsc. lmg[11:0] = 1266d; gain is 1 in pal. min value: ntsc 1024 (g = 0.85), pal (g = 0.81). max value: ntsc 2468 (g = 2), pal = 2532 (g = 2). 0x31 reserved 0 1 0 set to default. 0 start of line relative to hse. hse = hsync end. hvstim. selects where within a line of video the vs signal is asserted. 1 start of line relative to hsb. hsb = hsync begin. 0 eav/sav codes generated to suit adi encoders. newavmode. sets the eav/sav mode. 1 manual vs/field position controlled by registers 0x32, 0x33, and 0xe5 to 0xea. vs and field control 1 reserved 0 0 0 set to default. 0x32 reserved 0 0 0 0 0 1 set to default. vsbhe 0 vs goes high in the middle of the line (even field). 1 vs changes state at the start of the line (even field). vsbho 0 vs goes high in the middle of the line (odd field). vsync field control 2 1 vs changes state at the start of the line (odd field). newavmode bit must be set high. 0x33 reserved 0 0 0 1 0 0 set to default. vsehe 0 vs goes low in the middle of the line (even field). 1 vs changes state at the start of the line (even field). vseho 0 vs goes low in the middle of the line (odd field). vsync field control 3 1 vs changes state at the start of the line odd field. newavmode bit must be set high. ADV7183B rev. b | page 79 of 100 bits subaddress register bit description 7 6 5 4 3 2 1 0 comments notes hse[10:8]. hs end allows the positioning of the hs output within the video line. 0 0 0 hs output ends hse[10:0] pixels after the falling edge of hsync. reserved 0 set to 0. hsb[10:8]. hs begin allows the positioning of the hs output within the video line. 0 0 0 hs output starts hsb[10:0] pixels after the falling edge of hsync. 0x34 hs position control 1 reserved 0 set to 0. 0x35 hs position control 2 hsb[7:0] using hsb[10:0] and hse[10:0], the user can program the position and length of hs output signal. 0 0 0 0 0 0 1 0 0x36 hs position control 3 hse[7:0] see above. 0 0 0 0 0 0 0 0 using hsb and hse the user can program the position and length of the output hsync. 0 invert polarity. pclk. sets the polarity of llc1. 1 normal polarity as per the timing diagrams. reserved. 0 0 set to 0. 0 active high. pf. sets the field polarity. 1 active low. reserved. 0 set to 0. 0 active high. pvs. sets the vs polarity. 1 active low. reserved 0 set to 0. 0 active high. 0x37 polarity phs. sets hs polarity. 1 active low. 0 0 0 adaptive 3-line, 3-tap luma . 1 0 0 use low-pass notch. 1 0 1 fixed luma comb (2-line). top lines of memory. 1 1 0 fixed luma comb (3-line). all lines of memory. ycmn[2:0]. luma comb mode, ntsc. 1 1 1 fixed luma comb (2-line). bottom lines of memory. 0 0 0 3-line adaptive for ctapsn = 01; 4-line adaptive for ctapsn = 10; 5-line adaptive for ctapsn = 11. 1 0 0 disable chroma comb. 1 0 1 fixed 2-line for ctapsn = 01; fixed 3-line for ctapsn = 10; fixed 4-line for ctapsn = 11. top lines of memory. 1 1 0 fixed 3-line for ctapsn = 01; fixed 4-line for ctapsn = 10; fixed 5-line for ctapsn = 11. all lines of memory. ccmn[2:0]. chroma comb mode, ntsc. 1 1 1 fixed 2-line for ctapsn = 01; fixed 3-line for ctapsn = 10; fixed 4-line for ctapsn = 11. bottom lines of memory. 0 0 adapts 3 lines C 2 lines. 01 not used. 1 0 adapts 5 lines C 3 lines. 0x38 ntsc comb control ctapsn[1:0]. chroma comb taps, ntsc. 1 1 adapts 5 lines C 4 lines. ADV7183B rev. b | page 80 of 100 bits subaddress register bit description 7 6 5 4 3 2 1 0 comments notes 0x39 0 0 0 adaptive 5-line, 3-tap luma comb. 1 0 0 use low-pass notch. 1 1 0 fixed luma comb. top lines of memory. 1 1 0 fixed luma comb (5-line). all lines of memory. ycmp[2:0]. luma comb mode, pal. 1 1 1 fixed luma comb (3-line). bottom lines of memory. 0 0 0 3-line adaptive for ctapsn = 01; 4-line adaptive for ctapsn = 10; 5-line adaptive for ctapsn = 11. 1 0 0 disable chroma comb fixed 2-line for ctapsn = 01. top lines of memory. fixed 3-line for ctapsn = 10. 1 0 1 fixed 4-line for ctapsn = 11. fixed 3-line for ctapsn = 01. all lines of memory. fixed 4-line for ctapsn = 10. 1 1 0 fixed 5-line for ctapsn = 11. fixed 2-line for ctapsn = 01. bottom lines of memory. fixed 3-line for ctapsn = 10. ccmp[2:0]. chroma comb mode, pal. 1 1 1 fixed 4-line for ctapsn = 11. 00 not used. 0 1 adapts 5 lines C 3 lines (2 taps). 1 0 adapts 5 lines C 3 lines (3 taps). pal comb control ctapsp[1:0]. chroma comb taps, pal. 1 1 adapts 5 lines C 4 lines (4 taps). reserved 0set as default. 0 adc2 normal operation. pwrdn_adc_2. enables power- down of adc2. 1 power down adc2. 0 adc1 normal operation. pwrdn_adc_1. enables power- down of adc1. 1 power down adc1. 0 adc0 normal operation. pwrdn_adc_0. enables power- down of adc0. 1 power down adc0. 0x3a reserved 0 0 0 1 set as default. reserved 0 0 1 1 set to default. 0 0 0 kill at 0.5%. 0 0 1 kill at 1.5%. 0 1 0 kill at 2.5%. 0 1 1 kill at 4%. 1 0 0 kill at 8.5%. 1 0 1 kill at 16%. 1 1 0 kill at 32%. ckillthr[2:0]. 1 1 1 reserved. cke = 1 enables the color kill function and must be enabled for ckillthr[2:0] to take effect. 0x3d manual window control reserved 0 set to default. ADV7183B rev. b | page 81 of 100 bits subaddress register bit description 7 6 5 4 3 2 1 0 comments notes reserved 0 1 0 0 0 0 set to default. 0 sfl compatible with adv7190/adv7191/ adv7194 encoders. sfl_inv. controls the behavior of the pal switch bit. 1 sfl compatible with adv717x/adv7173x encoders. 0x41 resample control reserved 0 set to default. 0x48 gemstar control 1 gdecel[15:8]. see the comments column. 0 0 0 0 0 0 0 0 0x49 gemstar control 2 gdecel[7:0]. see comments column. 0 0 0 0 0 0 0 0 gdecel[15:0]. 16 individual enable bits that select the lines of video (even field lines 10 to 25) that the decoder checks for gemstar-compatible data. lsb = line 10; msb = line 25. default = do not check for gemstar- compatible data on any lines[10 to 25] in even fields. 0x4a gemstar control 3 gdecol[15:8]. see the comments column. 0 0 0 0 0 0 0 0 0x4b gemstar control 4 gdecol[7:0]. see comments column. 0 0 0 0 0 0 0 0 gdecol[15:0]. 16 individual enable bits that select the lines of video (odd field lines 10 to 25) that the decoder checks for gemstar-compatible data. lsb = line 10; msb = line 25. default = do not check for gemstar- compatible data on any lines[10 to 25] in odd fields. 0 split data into half byte. to avoid 00/ff code. gdecad. controls the manner in which decoded gemstar data is inserted into the horizontal blanking period. 1 output in straight 8-bit format. 0x4c gemstar control 5 reserved x x x x x x x undefined. 0disable cti. cti_en. cti enable. 1enable cti. 0 disable cti alpha blender. cti_ab_en. enables the mixing of the transient improved chroma with the original signal. 1 enable cti alpha blender. 0 0 sharpest mixing. 0 1 sharp mixing. 1 0 smooth. cti_ab[1:0]. controls the behavior of the alpha-blend circuitry. 1 1 smoothest. reserved 0 set to default. 0 bypass the dnr block. dnr_en. enable or bypass the dnr block. 1 enable the dnr block. 0x4d cti dnr control 1 reserved 1 1 set to default. 0x4e cti dnr control 2 cti_cth[7:0]. specifies how big the amplitude step must be to be steepened by the cti block. 0 0 0 0 1 0 0 0 0x50 cti dnr control 4 dnr_th[7:0]. specifies the maximum edge that is interpreted as noise and is therefore blanked. 0 0 0 0 1 0 0 0 set to 0x04 for a/v input; set to 0x0a for tuner input. ADV7183B rev. b | page 82 of 100 bits subaddress register bit description 7 6 5 4 3 2 1 0 comments notes 0 0 0 1 line of video. 0 0 1 2 lines of video. 0 1 0 5 lines of video. 0 1 1 10 lines of video. 1 0 0 100 lines of video. 1 0 1 500 lines of video. 1 1 0 1000 lines of video. cil[2:0]. count-into-lock determines the number of lines the system must remain in lock before showing a locked status. 1 1 1 100000 lines of video. 0 0 0 1 line of video. 0 0 1 2 lines of video. 0 1 0 5 lines of video. 0 1 1 10 lines of video. 1 0 0 100 lines of video. 1 0 1 500 lines of video. 1 1 0 1000 lines of video. col[2:0]. count-out-of-lock determines the number of lines the system must remain out-of-lock before showing a lost-locked status. 1 1 1 100000 lines of video. 0 over field with vertical info. srls. select raw lock signal. selects the determination of the lock status. 1 line-to-line evaluation. 0 lock status set only by horizontal lock. 0x51 lock count fscle. fsc lock enable. 1 lock status set by horizontal lock and subcarrier lock. reserved 0 0 0 0 set to default. 0 0 0 llc1 (nominal 27 mhz) selected out on llc1 pin. llc_pad_sel[2:0]. enables manual selection of clock for llc1 pin. 1 0 1 llc2 (nominally 13.5 mhz) selected out on llc1 pin. for 16-bit 4:2:2 out, of_sel[3:0] = 0010. 0x8f free run line length 1 reserved 0 set to default. 0 no wss detected. wssd. screen signaling detected. 1 wss detected. 0 no ccap signals detected. ccapd. closed caption data. 1 ccap sequence detected. 0 no edtv sequence detected. edtvd. edtv sequence. 1 edtv sequence detected. 0 no cgms transition detected. cgmsd. cgms sequence. 1 cgms sequence decoded. 0x90 vbi info (read only) reserved. x x x x read only status bits. 0x91 wss1 (read only) wss1[7:0] wide screen signaling data. x x x x x x x x 0x92 wss2 (read only) wss2[7:0] wide screen signaling data. x x x x x x x x wss2[7:6] are undetermined. 0x93 wss2 (read only) wss2[7:0] wide screen signaling data. x x x x x x x x 0x94 edtv2 (read only) edtv2[7:0] edtv data register. x x x x x x x x 0x95 edtv3 (read only) edtv3[7:0] edtv data register. x x x x x x x x edtv3[7:6] are undetermined. edtv3[5] is reserved for future use. 0x96 cgms1 (read only) cgms1[7:0] cgms data register. x x x x x x x x ADV7183B rev. b | page 83 of 100 bits subaddress register bit description 7 6 5 4 3 2 1 0 comments notes 0x97 cgms2 (read only) cgms2[7:0] cgms data register. x x x x x x x x 0x98 cgms3 (read only) cgms3[7:0] cgms data register. x x x x x x x x cgms3[7:4] are undetermined. 0x99 ccap1 (read only) ccap1[7:0] closed caption data register. x x x x x x x x ccap1[7] contains parity bit for byte 0. 0x9a ccap2 (read only) ccap2[7:0] closed caption data register. x x x x x x x x ccap2[7] contains parity bit for byte 0. 0x9b letterbox 1 (read only) lb_lct[7:0] letterbox data register. x x x x x x x x reports the number of black lines detected at the top of active video. 0x9c letterbox 2 (read only) lb_lcm[7:0] letterbox data register. x x x x x x x x reports the number of black lines detected in the bottom half of active video if subtitles are detected. 0x9d letterbox 3 (read only) lb_lcb[7:0] letterbox data register. x x x x x x x x reports the number of black lines detected at the bottom of active video. this feature examines the active video at the start and at the end of each field. it enables format detection even if the video is not accompanied by a cgms or wss sequence. reserved. 0 0set as default. 0 turn off crc check. crc_enable. enable crc checksum decoded from cgms packet to validate cgmsd. 1 cgmsd goes high with valid checksum. 0xb2 crc enable write register reserved 0 0 0 1 1 set as default. ADV7183B rev. b | page 84 of 100 bits subaddress register bit description 7 6 5 4 3 2 1 0 comments notes 0 0 0 0 no connection. 0 0 0 1 ain1. 0 0 1 0 ain2. 0 0 1 1 ain3. 0 1 0 0 ain4. 0 1 0 1 ain5. 0 1 1 0 ain6. 0 1 1 1 no connection. 1 0 0 0 no connection. 1 0 0 1 ain7. 1 0 1 0 ain8. 1 0 1 1 ain9. 1 1 0 0 ain10. 1 1 0 1 ain11. 1 1 1 0 ain12. adc0_sw[3:0]. manual muxing control for adc0. 1 1 1 1 no connection. setadc_sw_man_ en = 1. 0 0 0 0 no connection. 0 0 0 1 no connection. 0 0 1 0 no connection. 0 0 1 1 ain3. 0 1 0 0 ain4. 0 1 0 1 ain5. 0 1 1 0 ain6. 0 1 1 1 no connection. 1 0 0 0 no connection. 1 0 0 1 no connection. 1 0 1 0 no connection. 1 0 1 1 ain9. 1 1 0 0 ain10. 1 1 0 1 ain11. 1 1 1 0 ain12. 0xc3 adc switch 1 adc1_sw[3:0]. manual muxing control for adc1. 1 1 1 1 no connection. setadc_sw_man_ en = 1. 0 0 0 0 no connection. 0 0 0 1 no connection. 0 0 1 0 ain2. 0 0 1 1 no connection. 0 1 0 0 no connection. 0 1 0 1 ain5. 0 1 1 0 ain6. 0 1 1 1 no connection. 1 0 0 0 no connection. 1 0 0 1 no connection. 1 0 1 0 ain8. 1 0 1 1 no connection. 1 1 0 0 no connection. 1 1 0 1 ain11. 1 1 1 0 ain12. adc2_sw[3:0]. manual muxing control for adc2. 1 1 1 1 no connection. setadc_sw_man_ en = 1. reserved x x x 0 disable. 0xc4 adc switch 2 adc_sw_man_en. enable manual setting of the input signal muxing. 1 enable. ADV7183B rev. b | page 85 of 100 bits subaddress register bit description 7 6 5 4 3 2 1 0 comments notes lb_th[4:0]. sets the threshold value that determines if a line is black. 0 1 1 0 0 default threshold for the detection of black lines. 0xdc letterbox control 1 reserved 1 0 1 set as default. lb_el[3:0]. programs the end line of the activity window for lb detection (end of field). 1 1 0 0 lb detection ends with the last line of active video on a field, 1100b: 262/525. 0xdd letterbox control 2 lb_sl[3:0]. program the start line of the activity window for lb detection (start of field). 0 1 0 0 letterbox detection aligned with the start of active video, 0100b: 23/286 ntsc. 0xde reserved 0 0 0 0 0 0 0 0 0xdf reserved 0 0 0 0 0 0 0 0 0xe0 reserved 0 0 0 1 0 1 0 0 0xe1 sd offset cb sd_off_cb[7:0]. adjusts the hue by selecting the offset for the cb channel. 1 0 0 0 0 0 0 0 0xe2 sd offset cr sd_off_cr[7:0]. adjusts the hue by selecting the offset for the cr channel. 1 0 0 0 0 0 0 0 0xe3 sd satura tion cb sd_sat_cb[7:0]. adjusts the saturation of the picture by affecting gain on the cb channel. 1 0 0 0 0 0 0 0chroma gain = 0 db. 0xe4 sd saturation cr sd_sat_cr[7:0]. adjusts the saturation of the picture by affecting gain on the cr channel. 1 0 0 0 0 0 0 0chroma gain = 0 db. nvbeg[4:0]. number of lines after l count rollover to set v high. 0 0 1 0 1 ntsc default (bt.656). 0 set to low when manual programming. nvbegsign 1 not suitable for user programming. 0 no delay. nvbegdele. delay v bit going high by one line relative to nvbeg (even field). 1 additional delay by 1 line. 0 no delay. 0xe5 ntsc v bit begin nvbegdelo. delay v bit going high by one line relative to nvbeg (odd field). 1 additional delay by 1 line. nvend[4:0]. number of lines after l count rollover to set v low. 0 0 1 0 0 ntsc default (bt.656). 0 set to low when manual programming. nvendsign 1 not suitable for user programming. 0 no delay. nvenddele. delay v bit going low by one line relative to nvend (even field). 1 additional delay by 1 line. 0 no delay. 0xe6 ntsc v bit end nvenddelo. delay v bit going low by one line relative to nvend (odd field). 1 additional delay by 1 line. ADV7183B rev. b | page 86 of 100 bits subaddress register bit description 7 6 5 4 3 2 1 0 comments notes nftog[4:0]. number of lines after l count rollover to toggle f signal. 0 0 0 1 1 ntsc default. 0 set to low when manual programming. nftogsign 1 not suitable for user programming. 0 no delay. nftogdele. delay f transition by one line relative to nftog (even field). 1 additional delay by 1 line. 0 no delay. 0xe7 ntsc f bit toggle nftogdelo. delay f transition by one line relative to nftog (odd field). 1 additional delay by 1 line. pvbeg[4:0]. number of lines after l count rollover to set v high. 0 0 1 0 1 pal default (bt.656). 0 set to low when manual programming. pvbegsign 1 not suitable for user programming. 0 no delay. pvbegdele. delay v bit going high by one line relative to pvbeg (even field). 1 additional delay by 1 line. 0 no delay. 0xe8 pal v bit begin pvbegdelo. delay v bit going high by one line relative to pvbeg (odd field). 1 additional delay by 1 line. pvend[4:0]. number of lines after l count rollover to set v low. 1 0 1 0 0 pal default (bt.656). 0 set to low when manual programming. pvendsign 1 not suitable for user programming. 0 no delay. pvenddele. delay v bit going low by one line relative to pvend (even field). 1 additional delay by 1 line. 0 no delay. 0xe9 pal v bit end pvenddelo. delay v bit going low by one line relative to pvend (odd field). 1 additional delay by 1 line. pftog[4:0]. number of lines after l count rollover to toggle f signal. 0 0 0 1 1 pal default (bt.656). 0 set to low when manual programming. pftogsign 1 not suitable for user programming. 0 no delay. pftogdele. delay f transition by one line relative to pftog (even field). 1 additional delay by 1 line. 0 no delay. 0xea pal f bit toggle pftogdelo. delay f transition by one line relative to pftog (odd field). 1 additional delay by 1 line. ADV7183B rev. b | page 87 of 100 bits subaddress register bit description 7 6 5 4 3 2 1 0 comments notes 0 0 low drive strength (1). 0 1 medium-low drive strength (2). 1 0 medium-high drive strength (3). dr_str_s[1:0]. select the drive strength for the sync output signals. 1 1 high drive strength (4). 0 0 low drive strength (1). 0 1 medium-low drive strength (2). 1 0 medium-high drive strength (3). dr_str_c[1:0]. select the drive strength for the clock output signal. 1 1 high drive strength (4). 0 0 low drive strength (1). 0 1 medium-low drive strength (2). 1 0 medium-high drive strength (3). dr_str[1:0]. select the drive strength for the data output signals. can be increased or decreased for emc or crosstalk reasons. 1 1 high drive strength (4). 0xf4 drive strength reserved x x no delay. 0 0 0 bypass mode. 0 db. 2 mhz 5 mhz 0 0 1 ?3 db ?2 db 0 1 0 ?6 db +3.5 db 0 1 1 ?10 db +5 db ntsc filters. 1 0 0 reserved. 3 mhz 6 mhz 1 0 1 ?2 db +2 db 1 1 0 ?5 db +3 db iffiltsel[2:0] if filter selection for pal and ntsc 1 1 1 ?7 db +5 db pal filters. 0xf8 if comp control reserved 0 0 0 0 0 0 limit maximum vsync frequency to 66.25 hz (475 lines/frame). extend_vs_max_freq 1 limit maximum vsync frequency to 70.09 hz (449 lines/frame). 0 limit minimum vsync frequency to 42.75 hz (731 lines/frame). extend_vs_min_freq 1 limit minimum vsync frequency to 39.51 hz (791 lines/frame). 0 0 auto coast mode. 0 1 50 hz coast mode. 1 0 60 hz coast mode. vs_coast_mode[1:0] 1 1 reserved. this value sets up the output coast frequency. 0xf9 vs mode control reserved 0 0 0 0 ADV7183B rev. b | page 88 of 100 i 2 c programming examples examples in this section use a 28 mhz clock. mode 1 cvbs input (composite video on ain5) all standards are supported through autodetect, 8-bit, 4:2:2, itu-r bt.656 output on p15 to p8. table 87. mode 1 cvbs input register address register value notes 0x00 0x04 cvbs input on ain5. 0x15 0x00 slow down digital clamps. 0x17 0x41 set csfm to sh1. 0x1d 0x40 enable 28 mhz crystal. 0x0f 0x40 traq. 0x3a 0x16 power down adc 1 and adc 2. 0x3d 0xc3 mwe enable manual window. 0x3f 0xe4 bgb to 36. 0x50 0x04 set dnr threshold to 4 for flat response. 0x0e 0x80 adi recommended programming sequence. this sequence must be followed exactly when setting up the decoder. 0x50 0x20 recommended setting. 0x52 0x18 recommended setting. 0x58 0xed recommended setting. 0x77 0xc5 recommended setting. 0x7c 0x93 recommended setting. 0x7d 0x00 recommended setting. 0x90 0xc9 recommended setting. 0x91 0x40 recommended setting. 0x92 0x3c recommended setting. 0x93 0xca recommended setting. 0x94 0xdd recommended setting. 0xcf 0x50 recommended setting. 0xd0 0x4e recommended setting. 0xd6 0xdd recommended setting. 0xe5 0x51 recommended setting. 0xd5 0xa0 recommended setting. 0xd7 0xea recommended setting. 0xe4 0x3e recommended setting. 0xe9 0x3e recommended setting. 0xea 0x0f recommended setting. 0x0e 0x00 recommended setting. ADV7183B rev. b | page 89 of 100 mode 2 s-video input (y on ain1 and c on ain4) all standards are supported through autodetect, 8-bit, itu-r bt.656 output on p15 to p8. table 88. mode 2 s-video input register address register value notes 0x00 0x06 y1 = ain1, c1 = ain4. 0x15 0x00 slow down digital clamps. 0x3a 0x12 power down adc 2. 0x1d 0x40 enable 28 mhz crystal. 0x0f 0x40 traq. 0x3d 0xc3 mwe enable manual window. 0x3f 0xe4 bgb to 36. 0x50 0x04 set dnr threshold to 4 for flat response. 0x0e 0x80 adi recommended programming sequence. this sequence must be followed exactly when setting up the decoder. 0x50 0x20 recommended setting. 0x52 0x18 recommended setting. 0x58 0xed recommended setting. 0x77 0xc5 recommended setting. 0x7c 0x93 recommended setting. 0x7d 0x00 recommended setting. 0x90 0xc9 recommended setting. 0x91 0x40 recommended setting. 0x92 0x3c recommended setting. 0x93 0xca recommended setting. 0x 94 0xdd recommended setting. 0xcf 0x50 recommended setting. 0xd0 0x4e recommended setting. 0xd6 0xdd recommended setting. 0xe5 0x51 recommended setting. 0xd5 0xa0 recommended setting. 0xd7 0xea recommended setting. 0xe4 0x3e recommended setting. 0xe9 0x3e recommended setting. 0xea 0x0f recommended setting. 0x0e 0x00 recommended setting. ADV7183B rev. b | page 90 of 100 mode 3 525i/625i yprpb input (y on ai n2, pb on ain3, and pr on ain6) all standards are supported through autodetect, 8-bit, itu-r bt.656 output on p15 to p8. table 89. mode 3 yprpb input 525i/625i register address register value notes 0x00 0x0a y2 = ain2, pb2 = ain3, pr2 = ain6. 0x1d 0x40 enable 28 mhz crystal. 0x0f 0x40 traq. 0x3d 0xc3 mwe enable manual window. 0x3f 0xe4 bgb to 36. 0x50 0x04 set dnr threshold to 4 for flat response. 0x0e 0x80 adi recommended programming sequence. this sequence must be followed exactly when setting up the decoder. 0x52 0x18 recommended setting. 0x58 0xed recommended setting. 0x77 0xc5 recommended setting. 0x7c 0x93 recommended setting. 0x90 0xc9 recommended setting. 0x91 0x40 recommended setting. 0x92 0x3c recommended setting. 0x93 0xca recommended setting. 0x94 0xdd recommended setting. 0xcf 0x50 recommended setting. 0xd0 0x4e recommended setting. 0xd6 0xdd recommended setting. 0xe5 0x51 recommended setting. 0xe9 0x3e recommended setting. 0x0e 0x00 recommended setting. ADV7183B rev. b | page 91 of 100 mode 4 cvbs tuner input pal only on ain4 8-bit, itu-r bt.656 output on p15 to p8. table 90. mode 4 tuner input cvbs pal only register address register value notes 0x00 0x83 cvbs ain4 force pal only mode. 0x07 0x01 enable pal autodetection only. 0x15 0x00 slow down digital clamps. 0x17 0x41 set csfm to sh1. 0x1d 0x40 enable 28 mhz crystal 0x0f 0x40 traq 0x3d 0xc3 mwe enable manual window 0x3f 0xe4 bgb to 36 0x19 0xfa stronger dot crawl reduction. 0x3a 0x16 power down adc 1 and adc 2. 0x50 0x0a set higher dnr threshold. 0x0e 0x80 adi recommended programming sequence. this sequence must be followed exactly when setting up the decoder. 0x50 0x20 recommended setting. 0x52 0x18 recommended setting. 0x58 0xed recommended setting. 0x77 0xc5 recommended setting. 0x7c 0x93 recommended setting. 0x7d 0x00 recommended setting. 0x90 0xc9 recommended setting. 0x91 0x40 recommended setting. 0x92 0x3c recommended setting. 0x93 0xca recommended setting. 0x94 0xdd recommended setting. 0xcf 0x50 recommended setting. 0xd0 0x4e recommended setting. 0xd6 0xdd recommended setting. 0xe5 0x51 recommended setting. 0xd5 0xa0 recommended setting. 0xd7 0xea recommended setting. 0xe4 0x3e recommended setting. 0xe9 0x3e recommended setting. 0xea 0x0f recommended setting. 0x0e 0x00 recommended setting. ADV7183B rev. b | page 92 of 100 examples using 27 mhz clock mode 1 cvbs input (composite video on ain5) all standards are supported through autodetect, 8-bit, 4:2:2, itu-r bt.656 output on p15 to p8. table 91. mode 1 cvbs input register address register value notes 0x00 0x04 cvbs input on ain5. 0x15 0x00 slow down digital clamps. 0x17 0x41 set csfm to sh1. 0x3a 0x16 power down adc 1 and adc 2. 0x50 0x04 set dnr threshold to 4 for flat response. 0x0e 0x80 adi recommended programming sequence. this sequence must be followed exactly when setting up the decoder. 0x50 0x20 recommended setting. 0x52 0x18 recommended setting. 0x58 0xed recommended setting. 0x77 0xc5 recommended setting. 0x7c 0x93 recommended setting. 0x7d 0x00 recommended setting. 0xd0 0x48 recommended setting. 0xd5 0xa0 recommended setting. 0xd7 0xea recommended setting. 0xe4 0x3e recommended setting. 0xe9 0x3e recommended setting 0xea 0x0f recommended setting. 0x0e 0x00 recommended setting. mode 2 s-video input (y on ain1 and c on ain4) all standards are supported through autodetect, 8-bit, itu-r bt.656 output on p15 to p8. table 92. mode 2 s-video input register address register value notes 0x00 0x06 y1 = ain1, c1 = ain4. 0x15 0x00 slow down digital clamps. 0x3a 0x12 power down adc 2. 0x50 0x04 set dnr threshold to 4 for flat response. 0x0e 0x80 adi recommended programming sequence. this sequence must be followed exactly when setting up the decoder. 0x50 0x20 recommended setting. 0x52 0x18 recommended setting. 0x58 0xed recommended setting. 0x77 0xc5 recommended setting. 0x7c 0x93 recommended setting. 0x7d 0x00 recommended setting. 0xd0 0x48 recommended setting. 0xd5 0xa0 recommended setting. 0xd7 0xea recommended setting. 0xe4 0x3e recommended setting. 0xe9 0x3e recommended setting 0xea 0x0f recommended setting. 0x0e 0x00 recommended setting. ADV7183B rev. b | page 93 of 100 mode 3 525i/625i yprpb input (y on ai n2, pb on ain3, and pr on ain6) all standards are supported through autodetect, 8-bit, itu-r bt.656 output on p15 to p8. table 93. mode 3 yprpb input 525i/625i register address register value notes 0x00 0x0a y2 = ain2, pb2 = ain3, pr2 = ain6. 0x50 0x04 set dnr threshold to 4 for flat response. 0x0e 0x80 adi recommended programming sequence. this sequence must be followed exactly when setting up the decoder. 0x52 0x18 recommended setting. 0x58 0xed recommended setting. 0x77 0xc5 recommended setting. 0x7c 0x93 recommended setting. 0x7d 0x00 recommended setting. 0xd0 0x48 recommended setting. 0xd5 0xa0 recommended setting. 0xe4 0x3e recommended setting. 0xe9 0x3e recommended setting 0x0e 0x00 recommended setting. mode 4 cvbs tuner input pal only on ain4 8-bit, itu-r bt.656 output on p15 to p8. table 94. mode 4 tuner input cvbs pal only register address register value notes 0x00 0x83 cvbs ain4 force pal only mode. 0x07 0x01 enable pal autodetection only. 0x15 0x00 slow down digital clamps. 0x17 0x41 set csfm to sh1. 0x19 0xfa stronger dot crawl reduction. 0x3a 0x16 power down adc 1 and adc 2. 0x50 0x0a set higher dnr threshold. 0x0e 0x80 adi recommended programming sequence. this sequence must be followed exactly when setting up the decoder. 0x50 0x20 recommended setting. 0x52 0x18 recommended setting. 0x58 0xed recommended setting. 0x77 0xc5 recommended setting. 0x7c 0x93 recommended setting. 0x7d 0x00 recommended setting. 0xd0 0x48 recommended setting. 0xd5 0xa0 recommended setting. 0xd7 0xea recommended setting. 0xe4 0x3e recommended setting. 0xe9 0x3e recommended setting 0xea 0x0f recommended setting. 0x0e 0x00 recommended setting. ADV7183B rev. b | page 94 of 100 pcb layout recommendations the ADV7183B is a high precision, high speed, mixed-signal device. to achieve the maximum performance from the part, it is important to have a pcb board with a good layout. this section provides guidelines for designing a board using the ADV7183B. analog interface inputs care should be taken when routing the inputs on the pcb. track lengths should be kept to a minimum, and 75 trace impedances should be used when possible. trace impedances other than 75 also increase the chance of reflections. power supply decoupling it is recommended to decouple each power supply pin with 0.1 f and 10 nf capacitors. the fundamental idea is to have a decoupling capacitor within about 0.5 cm of each power pin. also, avoid placing the capacitor on the opposite side of the pc board from the ADV7183B, as doing so interposes resistive vias in the path. the decoupling capacitors should be located between the power plane and the power pin. current should flow from the power plane to the capacitor to the power pin. do not make the power connection between the capacitor and the power pin. placing a via underneath the 100 nf capacitor pads, down to the power plane, is generally the best approach (see 269h figure 41). vdd gnd 10nf 100nf via to supply via to gnd 04997-041 figure 41. recommended power supply decoupling it is very important to maintain low noise and good stability of pvdd. careful attention must be paid to regulation, filtering, and decoupling. it is highly desirable to provide separate regulated supplies for each of the analog circuitry groups (avdd, dvdd, dvddio, and pvdd). some graphic controllers use substantially different levels of power when active (during active picture time) and when idle (during horizontal and vertical sync periods). this can result in a measurable change in the voltage supplied to the analog supply regulator, which can, in turn, produce changes in the regulated analog supply voltage. this can be mitigated by regulating the analog supply, or at least pvdd, from a different, cleaner power source, such as a 12 v supply. it is also recommended to use a single ground plane for the entire board. this ground plane should have a space between the analog and digital sections of the pcb (see 270h figure 42). analog section digital section ADV7183B 04997-042 figure 42. pcb ground layout experience shows that the noise performance is the same or better with a single ground plane. using multiple ground planes can be detrimental because each separate ground plane is smaller, and long ground loops can result. in some cases, using separate ground planes is unavoidable. for those cases, it is recommended to place a single ground plane under the ADV7183B. the location of the split should be under the ADV7183B. for this case, it is even more important to place components wisely because the current loops will be much longer (current takes the path of least resistance). an example of a current loop: power plane to ADV7183B to digital output trace to digital data receiver to digital ground plane to analog ground plane. pll place the pll loop filter components as close as possible to the elpf pin. do not place any digital or other high frequency traces near these components. use the values suggested in 271h figure 46 with tolerances of 10% or less. digital outputs (both data and clocks) try to minimize the trace length the digital outputs have to drive. longer traces have higher capacitance, which requires more current, which causes more internal digital noise. shorter traces reduce the possibility of reflections. adding a 30 to 50 series resistor can suppress reflections, reduce emi, and reduce the current spikes inside the ADV7183B. if series resistors are used, place them as close as possible to the ADV7183B pins. however, try not to add vias or extra length to the output trace to make the resistors closer. if possible, limit the capacitance that each of the digital outputs drive to less than 15 pf. this can easily be accomplished by keeping traces short and by connecting the outputs to only one device. loading the outputs with excessive capacitance increases the current transients inside the ADV7183B, creating more digital noise on its power supplies. digital inputs the digital inputs on the ADV7183B are designed to work with 3.3 v signals, and are not tolerant of 5 v signals. extra compo- nents are needed if 5 v logic signals are required to be applied to the decoder. ADV7183B rev. b | page 95 of 100 antialiasing filters for inputs from some video sources that are not bandwidth limited, signals outside the video band can alias back into the video band during a/d conversion and appear as noise on the output video. the ADV7183B oversamples the analog inputs by a factor of 4. this 54 mhz sampling frequency reduces the requirement for an input filter; for optimal performance, it is recommended that an antialiasing filter be used. the recommended low cost circuit for implementing this buffer and filter circuit for all analog input signals is shown in 272h figure 45. the buffer is a simple emitter-follower using a single npn transistor. the antialiasing filter is implemented using passive components. the passive filter is a third-order butterworth filter with a ?3 db point of 9 mhz. the frequency response of the passive filter is shown in 273h figure 43. the flat pass band up to 6 mhz is essential. the attenuation of the signal at the output of the filter due to the voltage divider of r24 and r63 is compensated for in the ADV7183B part by using the automatic gain control. the ac-coupling capacitor at the input to the buffer creates a high-pass filter with the biasing resistors for the transistor. this filter has a cutoff of {2 ( r39 || r89 ) c93 } C1 = 0.62 hz it is essential that the cutoff of this filter be less than 1 hz to ensure correct operation of the internal clamps within the part. these clamps ensure the video stays within the 5 v range of the op amp used. 0 ?20 ?40 ?60 ?80 ?100 ?120 100k 30m 10m 3m 1m 300k 300m 1g 100m frequency (hz) 04997-043 figure 43. third-order butterworth filter response crystal load capacitor value selection 274h figure 44 shows an example of a reference clock circuit for the ADV7183B. special care must be taken when using a crystal circuit to generate the reference clock for the ADV7183B. small variations in reference clock frequency can cause autodetection issues and impair the ADV7183B performance. load capacitor values are dependant on crystal attributes. the load capacitance given in a crystal data sheet specifies the parallel resonance frequency within the tolerance at 25c. therefore, it is important to design a circuit that matches the load capacitance to achieve the frequency stipulated by the manufacturer. for accurate crystal circuit design and optimization, an applications note on crystal design considerations is available for more information. 04997-047 c1 4 7pf c2 47pf r = 1m xtal 28.63636mhz xtal xtal1 figure 44. crystal circuit follow these guidelines to ensure correct operation: ? use the correct frequency crystal, which is 28.63636 mhz. tolerance is 50 ppm or higher. ? use a parallel-resonant crystal. ? place a 1 m shunt resistor across pins xtal and xtal1, as is shown in 275h figure 44. ? know the c load for the crystal part number selected. the value of capacitor c1 and capacitor c2 must match c load for the specific crystal part number in the users system. ? use the following guideline to find c load : c 1 = c 2 = c c = 2( c load ? c s ) ? c pg where: c pg is the pin-to-ground capacitance, approximately 4 pf to 10 pf. c s is the pcb stray capacitance, approximately 2 pf to 3 pf. for example, c load = 30 pf c = 2(30 ? 3) ? 4 = 50 pf therefore, two 47 pf capacitors may be selected for c1 and c2. ADV7183B rev. b | page 96 of 100 typical circuit connection 276h figure 45 and 277h figure 46 show examples of how to connect the ADV7183B video decoder. for a detailed schematic diagram for the ADV7183B, refer to the ADV7183B evaluation note. b q6 c e r38 75 r89 5.6k r63 820 r43 0 r53 56 r24 470 r39 4.7k c95 22pf c102 10pf c93 100 f avdd_5v l10 12 h filter buffer agnd 04997-044 figure 45. adi recommended antialiasing circuit for all input channels ADV7183B rev. b | page 97 of 100 2k 2k agnd dgnd agnd dgnd 0.1 f dgnd 0.01 f dgnd 33 f dgnd 10 f dgnd ferrite bead dvddio (3.3v) power supply decoupling for each power pin 0.1 f agnd 0.01 f agnd 33 f agnd 10 f agnd ferrite bead pvdd (1.8v) power supply decoupling for each power pin 0.1 f agnd 0.01 f agnd 33 f agnd 10 f agnd ferrite bead avdd (3.3v) power supply decoupling for each power pin 0.1 f dgnd 0.01 f dgnd 33 f dgnd 10 f dgnd ferrite bead dvdd (1.8v) power supply decoupling for each power pin agnd dgnd dvdd avdd pvdd dvddio ain1 100nf ain7 ain2 100nf ain8 ain3 100nf ain9 ain4 100nf ain10 ain5 100nf ain11 ain6 100nf ain12 agnd agnd 75 75 75 75 75 75 + capy1 capy2 agnd 1nf 0.1 f 10 f 0.1 f + capc1 capc2 cml agnd 1nf 0.1 f 10 f 0.1 f llc1 27mhz output clock llc2 13.5mhz output clock sfl sfl o/p hs hs o/p vs vs o/p field field o/p elpf 1.69k 10nf 82nf pvdd dgnd dvddio 100nf oe output enable i/p p0 p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 multi- format pixel port + 10 f 0.1 f refout agnd 0.1 f 10 f + xtal 47pf dgnd xtal1 alsb 47pf dgnd 28.63636mhz ADV7183B dvddio select i 2 c address dvss mpu interface control lines sclk sda 100 100 dvddio dvddio 4.7k reset reset interrupt o/p intrq 04997-045 27mhz @ data pixel bt.656 itu-r 8-bit p8 ? p15 13.5mhz @ data pixel bt.656 itu-r 16-bit cr and cb p0 ? p7 13.5mhz @ data pixel bt.656 itu-r 16-bit y p8 ? p15 s-video y pr pb cbvs anti-alias filter circuit anti-alias filter circuit anti-alias filter circuit anti-alias filter circuit anti-alias filter circuit anti-alias filter circuit recommended anti-alias filter circuit is shown in figure 45 on the previous page. this circuit includes a 75 termination resistor, input buffer and anti-aliasing filter. capacitor values are dependant on xtal attributes. 1m figure 46. typical connection diagram ADV7183B rev. b | page 98 of 100 outline dimensions compliant to jedec standards ms-026-bec 1.45 1.40 1.35 0.15 0.05 0.20 0.09 0.10 max coplanarity view a rotated 90 ccw seating plane 7 3.5 0 61 60 1 80 20 41 21 40 view a 1.60 max 0.75 0.60 0.45 16.20 16.00 sq 15.80 14.20 14.00 sq 13.80 0.65 bsc lead pitch 0.38 0.32 0.22 top view (pins down) pin 1 figure 47. 80-lead low profile quad flat package [lqfp] (st-80-2) dimensions shown in millimeters ordering guide model 16f 1 temperature range package description package option ADV7183Bkstz 17f 2 0c to +70c 80-lead low profile quad flat package (lqfp) st-80-2 ADV7183Bbstz 278h 2 C40c to +85c 80-lead low profile quad flat package (lqfp) st-80-2 eval-ADV7183Beb evaluation board 1 the ADV7183B is a pb-free, envi ronmentally friendly product. it is manufactured using the mo st up-to-date materials and proces ses. the coating on the leads of each device is 100% pure sn electrop late. the device is suitable fo r pb-free applications and can wi thstand surface-mount soldering at up to 255c (5c). in addition, the adv71893b is backward-compatible wi th conventional snpb soldering pr ocesses. this means the electr oplated sn coating can be sol dered with sn/pb solder pastes at conventional reflow temp eratures of 220c to 235c. 2 z = pb-free part. ADV7183B rev. b | page 99 of 100 notes ADV7183B rev. b | page 100 of 100 notes purchase of licensed i 2 c components of analog devices or one of its sublicensed associated companies conveys a license for the purchaser under the phi lips i 2 c patent rights to use these components in an i 2 c system, provided that the system conforms to the i 2 c standard specification as defined by philips. ? 2005 analog devices, inc. all rights reserved. trademarks and registered trademarks are the prop erty of their respective owners. d04997C0C9/05(b) |
Price & Availability of ADV7183B |
|
|
All Rights Reserved © IC-ON-LINE 2003 - 2022 |
[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy] |
Mirror Sites : [www.datasheet.hk]
[www.maxim4u.com] [www.ic-on-line.cn]
[www.ic-on-line.com] [www.ic-on-line.net]
[www.alldatasheet.com.cn]
[www.gdcy.com]
[www.gdcy.net] |