SAA7154E; SAA7154H Multistandard video decoder with comb filter, component input and RGB output Rev. 02 -- 6 December 2007 Product data sheet 1. General description The SAA7154E; SAA7154H is a high-quality multistandard video decoder supporting 10-bit Analog-to-Digital Converter (ADC), enhanced PAL/NTSC comb filtering, more versatile Vertical Blanking Interval (VBI) data processing, high-definition component video and picture improvement processing facilities. It targets a variety of performance-conscious applications like e.g. Personal Video Recording (PVR), Set-Top Boxes (STB), LCD projectors, LCD TVs and DVD recordable players. TUNER SCART 1 I-port scaled video output IX-port extension to 24-bit output X-port unscaled digital video output or input H-port extension to 16-bit output or input SCART 2 D-connector SAA7154 (Japan) VGA analog video output 1 analog video output 2 clock (audio, video) interrupt digital OSD I2C-bus control analog 001aab838 Fig 1. System block diagram A video decoder decodes PAL/NTSC/SECAM signals into baseband component video. This video decoder includes adaptive 2-dimensional luminance and chrominance separation; in addition, e.g. baseband component type input signals can be connected directly (RGB or Y-PB-PR, interlaced or progressive). NXP Semiconductors SAA7154E; SAA7154H Multistandard video decoder with comb filter The decoded video (the digitized component video, respectively) can be output on an 8-bit or 10-bit wide ITU-656 expansion port (X-port); alternatively decoded video can be fed to a versatile video scaler to the Image port (I-port), which can be 8-bit, 16-bit or 24-bit wide. An analog On-Screen Display (OSD) interface allows to mix OSD data on the I-port and X-port video data; the digital OSD allows to add OSD data to the I-port video data. 2. Features 2.1 General n Sixteen analog input pins, allowing for multiple combinations of composite, s-video and component video n Eight 3-level capable sensor pins for D-connector or SCART AV- and RGB-switch signals (three of these can be active simultaneously); one fast blanking input n Four studio-quality 10-bit CMOS ADCs at four-fold ITU-656 oversampling (54 MHz) n I2C-bus read back of digital Automatic Gain Control (AGC) gain factor n Two buffered analog CVBS outputs, e.g. to drive teletext decoder or VCR recorder n Several D-terminal and SCART configurations possible n Level sensitive fast blanking (RGB switch control) n Multistandard video decoder PAL/SECAM/NTSC and their sub-standards n Automatic detection of any supported color standard, including 480p, 576p, 720p and 1080i component video n Optional digitizing of VGA (640 x 480) computer graphics with H-sync and V-sync (supports only 60 Hz vertical sync) n Detection of copy protected input signals according to the Macrovision standard, indicating level of protection, including progressive signals 480p and 576p n High-performance super-adaptive 24-line comb filter for 2-dimensional chrominance/luminance separation n HD0 component video input and output; detection of HD0/HD1 signals n Horizontal and vertical down-scaling and up-scaling to randomly sized windows; variable from zoom to 164 size (icon); the transfer data rates limit H-zoom and V-zoom: u Conversion to square pixel format u Vertical scaling with linear phase interpolation and accumulating filter for anti-aliasing (6-bit phase accuracy) u EDge-Guided vertical Interpolation (EDGI) used for zooming up to progressive line counts n Versatile Brightness-Contrast-Saturation (BCS) adjustment n Programmable picture improvements: u Blue stretching u Green enhancement u Automatic skin tone correction u Color Transient Improvement (CTI) u Black and white stretching by histogram evaluation u Luminance sharpness control n RMS noise level estimation possible n Blue screen output in case of absent input signals SAA7154E_SAA7154H_2 Product data sheet (c) NXP B.V. 2007. All rights reserved. Rev. 02 -- 6 December 2007 2 of 90 SAA7154E; SAA7154H NXP Semiconductors Multistandard video decoder with comb filter n Versatile VBI data decoder, slicer, clock regeneration and byte synchronization u I2C-bus read back of most decoded data types (Closed Caption (CC), Gemstar1x, Gemstar2x, WSS625, WSS525 (CGMS), XDS and V-chip) u Optionally, raw data with dedicated gain and offset adjustment is available for software decoding n On-chip Line-Locked Clock (LLC) generation according to ITU-601 (standard definition) or SMPTE-293M/ITU-R BT.1358 (HD0) n Frame locked audio clock generation n CMOS 3.3 V (input/output) and 1.8 V (core) device; digital inputs and I/O ports are not 5 V tolerant n Support for programming through serial I2C-bus, full read back ability by an external controller, bit rate up to 400 kbit/s and auto increment n Software controlled power saving standby modes n Boundary scan test circuit complies to the IEEE Std. 1149.b1 -1994 n Analog OSD input n Two package options: LBGA156 and QFP160 n Lead-free LBGA156 package available 2.2 Improvements over SAA7119 n n n n n n n Advanced 24-bit RGB output De-interlacing for progressive displays: EDGI Programmable cropping and scaling to TFT panel format and resolution Support of panorama scaling and keystone correction YUV to RGB matrix Digital OSD input Additional analog output; configurable to add of Y and C component input 3. Applications n n n n n n n n n n n n n n n PC-video capture and editing Personal Video Recorders (PVR, time shifting) Cable, terrestrial and satellite Set-Top Boxes (STB) Internet terminals Flat-panel monitors LCD projectors LCD TV DVD recordable players AV-ready hard-disk drivers Digital televisions/scan conversion Video surveillance/security Video editing/post production Video phones Video projectors Digital VCRs SAA7154E_SAA7154H_2 Product data sheet (c) NXP B.V. 2007. All rights reserved. Rev. 02 -- 6 December 2007 3 of 90 SAA7154E; SAA7154H NXP Semiconductors Multistandard video decoder with comb filter 4. Ordering information Table 1. Ordering information Type number Package Name Description Version SAA7154E/V2/G LBGA156 plastic low profile ball grid array package; 156 balls; body 15 x 15 x 1.05 mm SOT700-1 SAA7154H/V2 QFP160 plastic quad flat package; 160 leads (lead length 1.6 mm); body 28 x 28 x 3.4 mm; high stand-off height SAA7154E_SAA7154H_2 Product data sheet SOT322-2 (c) NXP B.V. 2007. All rights reserved. Rev. 02 -- 6 December 2007 4 of 90 xxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx x xxxxxxxxxxxxxx xxxxxxxxxx xxx xxxxxx xxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxx xxxxx xxxxxx xx xxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxx xxxxxxx xxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxx xxxxxxxxxxxxxx xxxxxx xx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxx xxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxx xxxxx x x INT_A SDA TMS TDI TRST_N TDO OSD_FSW SAA7154 3-BIT ADC (3) BOUNDARY SCAN CONTROL FAST SWITCH CONTROL NXP Semiconductors TCK SCL CE 5. Block diagram SAA7154E_SAA7154H_2 Product data sheet RES_N GPIN I2C-bus read back R G B AI11 ANALOG INPUT PROCESSING VIDEO ADC1 to ADC4 CVBS Y AI44 COMPONENT PROCESSING CROMINANCE AND LUMINANCE PROCESSING raw data Y-CB-CR ADAPTIVE 2D-COMB FILTER C AGND CONTRAST, BRIGHTNESS, SATURATION AOUT1 IGP1 IGP0 HORIZONTAL AND VERTICAL SCALER Y-CB-CR EDGI PICTURE IMPROVEMENT IGPV IGPH IPD[7:0] IXD[7:0] ICLK IDQ ITRDY Y-CB-CR to RGB MATRIX ITRI HISTOGRAM AOUT2 SYNCHRONIZATION VIDEO CLOCK POWER-ON CONTROL POWER SUPPLY OSD[3:1] OSD GPO CRYSTAL X-PORT H-PORT AUDIO CLOCK 001aab941 5 of 90 (c) NXP B.V. 2007. All rights reserved. VDDA VSSA VDDD VSSD Fig 2. Block diagram VDDA(XTAL) VSSA(XTAL) LLC2_54 LLC RTS1 RTS0 RTCO XTALO XTOUT XTALI XPD[7:0] XRDY XDQ XCLK XRV XRH HPD[7:0] XTRI AMCLK AMXCLK ASCLK ALRCLK SAA7154E; SAA7154H AGNDA Y-CB-CR VBI-DATA SLICER VIDEO/TEXT ARBITER raw data Multistandard video decoder with comb filter Rev. 02 -- 6 December 2007 16 analog input lines OSD COMPONENT Y-CB-CR PROCESSING DECODER OUTPUT CONTROL/FADER AIxD differential input OUTPUTFORMATTER I-PORT 3-BIT ADC (3) SAA7154E; SAA7154H NXP Semiconductors Multistandard video decoder with comb filter 6. Pinning information 6.1 Pinning ball A1 index area 1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D E F G H J K L M N P SAA7154E 001aab943 Transparent top view Fig 3. Pin configuration (LBGA156) Table 2. Pin Pin allocation table LBGA156 package[1] Symbol Pin Symbol Pin Symbol Pin Symbol Row A A2 XTOUT A3 XTALO A4 VSSA(XTAL) A5 TDO A6 XRDY A7 XCLK A8 XPD0 A9 XPD2 A10 XPD4 A11 XPD6 A12 OSD3 A13 IXD1 Row B B1 AI41 B2 i.c. B3 VDDA(XTAL) B4 XTALI B5 TDI B6 TCK B7 XDQ B8 XPD1 B9 XPD3 B10 XPD5 B11 XTRI B12 IXD0 B14 IXD3 - - - - B13 IXD2 Row C C1 VSSA4 C2 AGND C3 n.c. C4 n.c. C5 VDDD13 C6 TRST_N C7 XRH C8 VDDD12 C9 VDDD11 C10 VDDD10 C11 XPD7 C12 IXD5 C14 IXD6 - - - - C13 IXD4 Row D D1 AI43 D2 AI42 D3 AI4D D4 VDDA4 D5 VSSD13 D6 TMS D7 VSSD12 D8 XRV D9 VSSD11 D10 VSSD10 D11 VSSD9 D12 VDDD9 D14 HPD0 - - D13 IXD7 SAA7154E_SAA7154H_2 Product data sheet - - (c) NXP B.V. 2007. All rights reserved. Rev. 02 -- 6 December 2007 6 of 90 SAA7154E; SAA7154H NXP Semiconductors Multistandard video decoder with comb filter Table 2. Pin Pin allocation table LBGA156 package[1] ...continued Symbol Pin Symbol Pin Symbol Pin Symbol E2 VDDA4A E3 AI31 E4 VSSA3 Row E E1 AI44 E11 HPD1 E12 HPD3 E13 HPD2 E14 HPD4 F2 F3 F4 Row F F1 AI3D F11 VSSD8 AI32 AI33 VDDA3 F12 VDDD8 F13 HPD5 F14 HPD6 G2 G3 G4 Row G G1 AI34 G11 VSSD7 VDDA3A AI22 AI21 G12 IPD1 G13 HPD7 G14 IPD0 H2 H3 H4 Row H H1 AI2D H11 IPD2 AI23 VSSA2 VDDA2 H12 VDDD7 H13 IPD4 H14 IPD3 Row J J1 VDDA2A J2 AI11 J3 AI24 J4 VSSA1 J11 VSSD6 J12 VDDD6 J13 IPD6 J14 IPD5 K2 AI13 K3 AI1D K4 VDDA1 Row K K1 AI12 K11 IPD7 K12 IGPH K13 IGP1 K14 IGPV Row L L1 VDDA1A L2 AGNDA L3 AI14 L4 VSSD1 L5 VSSD2 L6 i.c. L7 i.c. L8 VSSD3 L9 VSSD4 L10 RTCO L11 VSSD5 L12 ITRI L14 IGP0 - - - - L13 IDQ Row M M1 AOUT1 M2 VSSA0 M3 VDDA0 M4 VDDD1 M5 VDDD2 M6 i.c. M7 i.c. M8 VDDD3 M9 VDDD4 M10 RTS0 M11 VDDD5 M12 AMXCLK M13 OSD_FSW M14 ICLK - - - - Row N N1 AOUT2 N2 VDDA_C18 N3 i.c. N4 CE N5 LLC2_54 N6 i.c. N7 i.c. N8 i.c. N9 SCL N13 OSD1 N10 RTS1 N11 ASCLK N12 ITRDY N14 n.c. - - - - P3 GPIN P4 LLC P5 RES_N P7 i.c. P8 i.c. P9 INT_A Row P P2 VDDA_A18 P6 i.c. P10 SDA [1] P11 AMCLK P13 OSD2 i.c.: internally connected; leave open. n.c.: not connected. SAA7154E_SAA7154H_2 Product data sheet P12 ALRCLK (c) NXP B.V. 2007. All rights reserved. Rev. 02 -- 6 December 2007 7 of 90 SAA7154E; SAA7154H NXP Semiconductors 121 160 Multistandard video decoder with comb filter 1 120 SAA7154H 80 81 41 40 001aab942 Fig 4. Pin configuration (QFP160) Table 3. Pin allocation table QFP160 package[1] Pin Symbol Pin Symbol Pin Symbol Pin 1 i.c. 41 VDDA_A18 81 n.c. 121 n.c. 2 AI41 42 i.c. 82 n.c. 122 n.c. 3 AGND 43 GPIN 83 OSD_FSW 123 IXD1 4 VSSA4 44 CE 84 ICLK 124 IXD0 5 AI42 45 VDDD1 85 IDQ 125 OSD3 6 AI4D 46 LLC 86 ITRI 126 XTRI 7 AI43 47 VSSD1 87 IGP0 127 XPD7 8 VDDA4 48 LLC2_54 88 VSSD5 128 XPD6 9 VDDA4A 49 RES_N 89 IGP1 129 VSSD9 10 AI44 50 VDDD2 90 IGPV 130 XPD5 11 AI31 51 VSSD2 91 IGPH 131 XPD4 12 VSSA3 52 i.c. 92 IPD7 132 VDDD10 13 AI32 53 i.c. 93 IPD6 133 VSSD10 14 AI3D 54 i.c. 94 IPD5 134 XPD3 15 AI33 55 i.c. 95 VDDD6 135 XPD2 16 VDDA3 56 i.c. 96 VSSD6 136 VDDD11 17 VDDA3A 57 i.c. 97 IPD4 137 VSSD11 18 AI34 58 i.c. 98 IPD3 138 XPD1 19 AI21 59 VDDD3 99 IPD2 139 XPD0 20 VSSA2 60 i.c. 100 IPD1 140 XRV 21 AI22 61 i.c. 101 VDDD7 141 XRH 22 AI2D 62 i.c. 102 IPD0 142 VDDD12 23 AI23 63 VSSD3 103 HPD7 143 XCLK 24 VDDA2 64 INT_A 104 VSSD7 144 XDQ 25 VDDA2A 65 VDDD4 105 HPD6 145 VSSD12 26 AI24 66 SCL 106 VDDD8 146 XRDY 27 AI11 67 VSSD4 107 HPD5 147 TRST_N 28 VSSA1 68 SDA 108 VSSD8 148 TCK SAA7154E_SAA7154H_2 Product data sheet Symbol (c) NXP B.V. 2007. All rights reserved. Rev. 02 -- 6 December 2007 8 of 90 SAA7154E; SAA7154H NXP Semiconductors Multistandard video decoder with comb filter Table 3. Pin allocation table QFP160 package[1] ...continued Pin Symbol Pin Symbol Pin 29 AI12 69 RTS0 109 HPD4 Symbol 149 TMS Pin Symbol 30 AI1D 70 RTS1 110 HPD3 150 TDO 31 AI13 71 RTCO 111 HPD2 151 VDDD13 32 VDDA1 72 AMCLK 112 HPD1 152 TDI 33 VDDA1A 73 VDDD5 113 HPD0 153 VSSD13 34 AI14 74 ASCLK 114 VDDD9 154 VSSA(XTAL) 35 AGNDA 75 ALRCLK 115 IXD7 155 XTALI 36 AOUT1 76 AMXCLK 116 IXD6 156 XTALO 37 VDDA0 77 ITRDY 117 IXD5 157 VDDA(XTAL) 38 VSSA0 78 OSD2 118 IXD4 158 XTOUT 39 AOUT2 79 OSD1 119 IXD3 159 n.c. 40 VDDA_C18 80 n.c. 120 IXD2 160 n.c. [1] i.c.: internally connected; leave open. n.c.: not connected. 6.2 Pin description Pins sorted by functions. Table 4. Symbol Pin description Type[1] Description Pin QFP160 LBGA156 Supplies (analog) AGND 3 C2 P analog signal ground AGNDA 35 L2 P analog signal ground VDDA0 37 M3 P analog supply voltage (3.3 V) VDDA1 32 K4 P analog supply voltage for analog inputs AI1x (3.3 V) VDDA1A 33 L1 P analog supply voltage for analog inputs AI1x (3.3 V) VDDA2 24 H4 P analog supply voltage for analog inputs AI2x (3.3 V) VDDA2A 25 J1 P analog supply voltage for analog inputs AI2x (3.3 V) VDDA3 16 F4 P analog supply voltage for analog inputs AI3x (3.3 V) VDDA3A 17 G2 P analog supply voltage for analog inputs AI3x (3.3 V) VDDA4 8 D4 P analog supply voltage for analog inputs AI4x (3.3 V) VDDA4A 9 E2 P analog supply voltage for analog inputs AI4x (3.3 V) VDDA(XTAL) 157 B3 P crystal analog supply voltage (1.8 V) VDDA_A18 40 N2 P analog supply voltage (1.8 V) VDDA_C18 41 P2 P analog supply voltage (1.8 V) VSSA0 38 M2 P analog ground VSSA1 28 J4 P ground for analog inputs AI1x VSSA2 20 H3 P ground for analog inputs AI2x VSSA3 12 E4 P ground for analog inputs AI3x VSSA4 4 C1 P ground for analog inputs AI4x VSSA(XTAL) 154 A4 P crystal analog ground SAA7154E_SAA7154H_2 Product data sheet (c) NXP B.V. 2007. All rights reserved. Rev. 02 -- 6 December 2007 9 of 90 SAA7154E; SAA7154H NXP Semiconductors Multistandard video decoder with comb filter Table 4. Symbol Pin description ...continued Type[1] Description Pin QFP160 LBGA156 Supplies (digital) VDDD1 45 M4 P digital supply voltage 1 (peripheral cells, 3.3 V) VDDD2 50 M5 P digital supply voltage 2 (core, 1.8 V) VDDD3 59 M8 P digital supply voltage 3 (peripheral cells, 3.3 V) VDDD4 65 M9 P digital supply voltage 4 (core, 1.8 V) VDDD5 73 M11 P digital supply voltage 5 (peripheral cells, 3.3 V) VDDD6 95 J12 P digital supply voltage 6 (peripheral cells, 3.3 V) VDDD7 101 H12 P digital supply voltage 7 (core, 1.8 V) VDDD8 106 F12 P digital supply voltage 8 (core, 1.8 V) VDDD9 114 D12 P digital supply voltage 9 (peripheral cells, 3.3 V) VDDD10 132 C10 P digital supply voltage 10 (core, 1.8 V) VDDD11 136 C9 P digital supply voltage 11 (peripheral cells, 3.3 V) VDDD12 142 C8 P digital supply voltage 12 (core, 1.8 V) VDDD13 151 C5 P digital supply voltage 13 (peripheral cells, 3.3 V) VSSD1 47 L4 P digital ground 1 (peripheral cells) VSSD2 51 L5 P digital ground 2 (core; connects to substrate) VSSD3 63 L8 P digital ground 3 (peripheral cells) VSSD4 67 L9 P digital ground 4 (core; connects to substrate) VSSD5 88 L11 P digital ground 5 (peripheral cells) VSSD6 96 J11 P digital ground 6 (core; connects to substrate) VSSD7 104 G11 P digital ground 7 (peripheral cells) VSSD8 108 F11 P digital ground 8 (core) VSSD9 129 D11 P digital ground 9 (peripheral cells) VSSD10 133 D10 P digital ground 10 (core) VSSD11 137 D9 P digital ground 11 (peripheral cells) VSSD12 145 D7 P digital ground 12 (core; connects to substrate) VSSD13 153 D5 P digital ground 13 (peripheral cells) Analog inputs (see Section 7.14.1) AI11 27 J2 AI analog input 11 AI12 29 K1 AI analog input 12 AI13 31 K2 AI analog input 13 AI14 34 L3 AI analog input 14 AI21 19 G4 AI analog input 21 AI22 21 G3 AI analog input 22; alternatively analog OSD AI23 23 H2 AI analog input 23 AI24 26 J3 AI analog input 24 AI31 11 E3 AI analog input 31 (either video or D1/SCART sensor) AI32 13 F2 AI analog input 32 (either video or D1/SCART sensor or analog OSD) AI33 15 F3 AI analog input 33 (either video or D1/SCART sensor) SAA7154E_SAA7154H_2 Product data sheet (c) NXP B.V. 2007. All rights reserved. Rev. 02 -- 6 December 2007 10 of 90 SAA7154E; SAA7154H NXP Semiconductors Multistandard video decoder with comb filter Table 4. Symbol Pin description ...continued Type[1] Description Pin QFP160 LBGA156 AI34 18 G1 AI analog input 34 (either video or D1/SCART sensor) AI41 2 B1 AI analog input 41 (either video or D1/SCART sensor) AI42 5 D2 AI analog input 42 (either video or D1/SCART sensor or analog OSD) AI43 7 D1 AI analog input 43 (either video or D1/SCART sensor) AI44 10 E1 AI analog input 44 (either video, D1/SCART sensor or analog OSD) AI1D 30 K3 AI differential input for ADC channel 1 (pins AI14 to AI11) AI2D 22 H1 AI differential input for ADC channel 2 (pins AI24 to AI21) AI3D 14 F1 AI differential input for ADC channel 3 (pins AI31 to AI34) AI4D 6 D3 AI differential input for ADC channel 4 (pins AI41 to AI44) Analog outputs (see Section 7.14.1) AOUT1 36 M1 AO analog video output 1 AOUT2 39 N1 AO analog video output 2 Audio clock (see Section 7.14.2) ALRCLK 75 P12 O/st/pd audio left/right clock output[2][3] AMCLK 72 P11 O audio master clock output ASCLK 74 N11 O audio serial clock output AMXCLK 76 M12 I audio master external clock input SCL 66 N9 I/O serial clock input (I2C-bus) with inactive output path SDA 68 P10 I/O/od serial data input/output (I2C-bus) INT_A 64 P9 O/od interrupt flag (LOW if any enabled status bit has changed) P3 I/pu general purpose input (with internal pull-up) I2C-bus General control GPIN 43 CE 44 N4 I/pu chip enable or reset input (with internal pull-up) RES_N 49 P5 O reset output (active LOW) digital OSD input 1 (output in test mode, only) OSD input (see Section 7.14.5.2) OSD1 79 N13 I/O OSD2 78 P13 I/pd digital OSD input 2 OSD3 125 A12 I digital OSD input 3 M13 I/pd switch control of digital OSD port or alternatively legacy FSW function of SAA7118 (with internal pull-down); see Section 7.14.5.2 OSD_FSW 83 Image port 1 (I-port) IPD7 92 K11 O MSB of image port data 1 output IPD6 93 J13 O bit 6 of image port data 1 output SAA7154E_SAA7154H_2 Product data sheet (c) NXP B.V. 2007. All rights reserved. Rev. 02 -- 6 December 2007 11 of 90 SAA7154E; SAA7154H NXP Semiconductors Multistandard video decoder with comb filter Table 4. Symbol Pin description ...continued Type[1] Description Pin QFP160 LBGA156 IPD5 94 J14 O bit 5 of image port data 1 output IPD4 97 H13 O bit 4 of image port data 1 output IPD3 98 H14 O bit 3 of image port data 1 output IPD2 99 H11 O bit 2 of image port data 1 output IPD1 100 G12 O bit 1 of image port data 1 output IPD0 102 G14 O LSB of image port data 1 output ICLK 84 M14 I/O clock output signal for image port or optional asynchronous back-end clock input IDQ 85 L13 O output data qualifier for image port (optional: gated clock output) IGP1 89 K13 O general purpose output signal 1 of image port IGP0 87 L14 O general purpose output signal 0 of image port IGPH 91 K12 O multipurpose horizontal reference output signal of image port IGPV 90 K14 O multipurpose vertical reference output signal of image port ITRDY 77 N12 I/pu target ready input for image port data ITRI 86 L12 I image port output control signal, affects all input port pins and pin ICLK, enable and active polarity is under software control Image I-port 2 (IX-port) IXD7 115 D13 O MSB of image port data 2 IXD6 116 C14 O bit 6 of image port data 2 IXD5 117 C12 O bit 5 of image port data 2 IXD4 118 C13 O bit 4 of image port data 2 IXD3 119 B14 O bit 3 of image port data 2 IXD2 120 B13 O bit 2 of image port data 2 IXD1 123 A13 O bit 1 of image port data 2 IXD0 124 B12 O LSB of image port data 2 Expansion port (X-port; see Section 7.14.4.1 and Section 7.14.4.2) XPD7 127 C11 I/O MSB of expansion port data XPD6 128 A11 I/O bit 6 of expansion port data XPD5 130 B10 I/O bit 5 of expansion port data XPD4 131 A10 I/O bit 4 of expansion port data XPD3 134 B9 I/O bit 3 of expansion port data XPD2 135 A9 I/O bit 2 of expansion port data XPD1 138 B8 I/O bit 1 of expansion port data XPD0 139 A8 I/O LSB of expansion port data XCLK 143 A7 I/O clock I/O expansion port XDQ 144 B7 I/O data qualifier for expansion port or source-select (pixelwise switch between X-port input/decoder output) SAA7154E_SAA7154H_2 Product data sheet (c) NXP B.V. 2007. All rights reserved. Rev. 02 -- 6 December 2007 12 of 90 SAA7154E; SAA7154H NXP Semiconductors Multistandard video decoder with comb filter Table 4. Symbol Pin description ...continued Type[1] Description Pin QFP160 LBGA156 XRDY 146 A6 O task flag or ready signal from scaler, I2C-bus controlled XRH 141 C7 I/O horizontal reference I/O expansion port XRV 140 D8 I/O vertical reference I/O expansion port XTRI 126 B11 I X-port output control signal, affects all X-port pins (XPD7 to XPD0, XRH, XRV, XDQ and XCLK), enable and active polarity is under software control Host port (H-port; see Section 7.14.4.1) HPD7 103 G13 I/O MSB of host port data I/O, extended CB-CR input for expansion port, extended CB-CR output for image port HPD6 105 F14 I/O bit 6 of host port data I/O, extended CB-CR input for expansion port, extended CB-CR output for image port HPD5 107 F13 I/O bit 5 of host port data I/O, extended CB-CR input for expansion port, extended CB-CR output for image port HPD4 109 E14 I/O bit 4 of host port data I/O, extended CB-CR input for expansion port, extended CB-CR output for image port HPD3 110 E12 I/O bit 3 of host port data I/O, extended CB-CR input for expansion port, extended CB-CR output for image port HPD2 111 E13 I/O bit 2 of host port data I/O, extended CB-CR input for expansion port, extended CB-CR output for image port HPD1 112 E11 I/O bit 1 of host port data I/O, extended CB-CR input for expansion port, extended CB-CR output for image port HPD0 113 D14 I/O LSB of host port data I/O, extended CB-CR input for expansion port, extended CB-CR output for image port Real-time clock (see Section 7.14.3 and Section 7.14.4.2) RTCO 71 L10 O/st/pd real-time control output; contains information about actual system clock frequency, field rate, odd/even sequence, decoder status, subcarrier frequency and phase and PAL sequence[2][4] RTS1 70 N10 O real-time status or sync information, controlled by subaddresses 11h and 12h RTS0 69 M10 O real-time status or sync information, controlled by subaddresses 11h and 12h Clocks (see Section 7.14.3) LLC 46 P4 O line-locked system clock output (27 MHz nominal) LLC2_54 48 N5 O line-locked 12 clock output (13.5 MHz nominal) or ADC clock 54 MHz, selectable through I2C-bus XTALI 155 B4 I input terminal for 24.576 MHz (32.11 MHz) crystal oscillator or connection of external oscillator XTALO 156 A3 O 24.576 MHz (32.11 MHz) crystal oscillator output; do not connect if clock input XTALI is used XTOUT 158 A2 O crystal oscillator output signal; auxiliary signal Boundary scan test TCK 148 B6 I/pu test clock for boundary scan test[5] TDI 152 B5 I/pu test data input for boundary scan test[5] SAA7154E_SAA7154H_2 Product data sheet (c) NXP B.V. 2007. All rights reserved. Rev. 02 -- 6 December 2007 13 of 90 SAA7154E; SAA7154H NXP Semiconductors Multistandard video decoder with comb filter Table 4. Symbol Pin description ...continued Type[1] Description Pin QFP160 LBGA156 TDO 150 A5 O test data output for boundary scan test[5] TMS 149 D6 I/pu test mode select input for boundary scan test or scan test[5] TRST_N 147 C6 I/pu test reset input (active LOW), for boundary scan test (with internal pull-up)[5][6][7] Pins not in use i.c. 1 B2 - internally connected; leave open i.c. 42 N3 - internally connected; leave open i.c. 52 N6 - internally connected; leave open i.c. 53 P6 - internally connected; leave open i.c. 54 M6 - internally connected; leave open i.c. 55 L6 - internally connected; leave open i.c. 56 N7 - internally connected; leave open i.c. 57 P7 - internally connected; leave open i.c. 58 L7 - internally connected; leave open i.c. 60 M7 - internally connected; leave open i.c. 61 P8 - internally connected; leave open i.c. 62 N8 - internally connected; leave open n.c. 80 N14 - not connected n.c. 81 - - not connected n.c. 82 - - not connected n.c. 121 - - not connected n.c. 122 - - not connected n.c. 159 C3 - not connected n.c. 160 C4 - not connected [1] A = analog, I = input, O = output, P = power, st = strapping, pu = pull-up, pd = pull-down, od = open-drain. [2] Pin strapping is done by connecting the pin to the supply through a 4.7 k resistor. During the power-up reset sequence the corresponding pins are switched to input mode to read the strapping level. For the default setting, no strapping resistor is necessary (internal pull-down). [3] Pin ALRCLK operates as crystal selector during power-up; ALRCLK strapped to logic 0 for a 24.576 MHz crystal (default); ALRCLK strapped to logic 1 for a 32.110 MHz crystal. [4] Pin RTCO operates as I2C-bus slave address selector during power-up; RTCO strapped to logic 0 for slave addresses 42h/43h and 4Ah/4Bh (default); RTCO strapped to logic 1 for slave address 40h/41h and 48h/49h. [5] In accordance with the IEEE1149.1 standard the pads TDI, TMS, TCK and TRST_N are input pads with an internal pull-up transistor and TDO is a 3-state output pad. [6] For board design without boundary scan implementation connect the TRST_N pin to ground. [7] This pin provides easy initialization of the Boundary Scan Test (BST) circuit. TRST_N can be used to force the Test Access Port (TAP) controller to the TEST_LOGIC_RESET state (normal operation) at once. SAA7154E_SAA7154H_2 Product data sheet (c) NXP B.V. 2007. All rights reserved. Rev. 02 -- 6 December 2007 14 of 90 SAA7154E; SAA7154H NXP Semiconductors Multistandard video decoder with comb filter 7. Functional description 7.1 Analog front-end 7.1.1 Features The SAA7154E; SAA7154H offers sixteen analog signal inputs which supply the signals to four analog main channels with source switches, clamp circuits, analog amplifiers and 10-bit CMOS ADCs with decimation filters. The SAA7154E; SAA7154H has some auxiliary inputs which can be utilized to detect 3-level configuration signals common on SCART- or D-connector (see Section 7.1.1.1 and Section 11.3). Features: * Automatic Gain Control (AGC) for the selected CVBS or Y/C channel or manually adjustable gain for all signal types * * * * * * * * Automatic clamp control for CVBS, Y/C and component video I2C-bus read back of digital AGC gain factor Supporting fast channel switching Automatic detection of activity on fast blanking (RGB-switch control); see Section 7.4 Seamless fast blanking between CVBS input and synchronous RGB-SCART input Support for D-terminal or up to two SCART connectors Buffered analog video output, e.g. to connect CVBS to a peripheral teletext decoder RMS noise level estimation. Another set of four 3-bit ADCs have the function to convert analog RGB signals carrying menu or teletext overlay signals, e.g. from a teletext decoder like SAA5264/65. Figure 5 shows the principle usage of the analog video inputs in an application with SCART and its connections to digital blocks: AV-detect, Fast SWitch (FSW), video decoder and component processing. SAA7154E_SAA7154H_2 Product data sheet (c) NXP B.V. 2007. All rights reserved. Rev. 02 -- 6 December 2007 15 of 90 SAA7154E; SAA7154H NXP Semiconductors Multistandard video decoder with comb filter SAA7154 CONNECTOR SCART 1 SCART 2 CVBS/Y:AI11 R/C:AI21 G:AI31 B:AI41 AV:AI33 FSW:AI34 CVBS:AOUT1 CVBS/Y:AI12 R/C:AI22 G:AI32 B:AI42 AV:AI43 FSW:AI44 CVBS:AOUT2 MUX 1 of 4 3-BIT ADC AI41 AI42 AI43 AI44 select 1 of 4 clamp/ gain MUX 1 of 8 3-BIT ADC AI31 AI32 AI33 AI34 select 1 of 4 clamp/ gain CVBS:AOUT2 TUNER 2 CVBS:AI13 ADC 3 FSW 3-BIT ADC AV1 VSYNC EXTERNAL AOUT2 SELECTOR MUX 1 of 4 TUNER 1 ADC 4 COMPONENT PROCESSING MUX 1 of 4 Y:AI14 Y/C FRONT PANEL C:AI24 CONNECTOR AV2 MUX 1 of 4 AI21 AI22 AI23 AI24 select 1 of 4 clamp/ gain ADC 2 AI11 AI12 AI13 AI14 select 1 of 4 clamp/ gain ADC 1 CVBS:AI23 VIDEO DECODER MUX 1 of 8 CVBS:AOUT1 OSD IN OSD-R: AI22 OSD-G: AI32 OSD-B: AI42 FSW: AI44 AOUT1 SELECTOR OSD-R: AI22 OSD-G: AI32 OSD-B: AI42 FSW: AI44 4x 3-BIT OSD ADC ANALOG OSD PROCESSING 001aab944 Fig 5. Analog front-end 7.1.1.1 D-terminal and SCART configuration Configuration signals of SCART-connector and D-connector: Three pins are sensitive to a 3-level signal (see Section 11.3). So, if used in context with a D-connector three different levels can be distinguished. (As an option pin GPIN of SAA7118 can act as plug insert detect when tied to ground). If used in context with a SCART-connector, two of these pins will be needed to distinguish the three different levels for AV control and to act as a 3-bit ADC for RGB switch control, also known as fast switching. SAA7154E_SAA7154H_2 Product data sheet (c) NXP B.V. 2007. All rights reserved. Rev. 02 -- 6 December 2007 16 of 90 SAA7154E; SAA7154H NXP Semiconductors Multistandard video decoder with comb filter Fast blanking (RGB switch control): The RGB switch control selects on a pixel-by-pixel basis either a CVBS or a RGB signal (which is usually menu information or teletext synchronized with CVBS). Since the switch control signal is generally at a different clock rate than the system clock (although both are line-locked), the sampling instance for this signal sometimes might show some uncertainties if a standard bi-level input is used. The SAA7154E; SAA7154H digitizes the switching signal with 3-bit at a 54 MHz system clock, thus reproducing its transient exactly; the digitized information is used to control a digital fader, resulting in a correctly weighted CVBS and RGB portion at every switching point. Activity on the fast blanking signal is monitored continuously and reflected in a dedicated I2C-bus status bit; the SAA7154E; SAA7154H recognizes even short switch pulses that can occur during text overlay, 7.1.1.2 Buffered analog output The existing SAA7118 provides one out of four selected input signals (used for further digital processing) at a buffered output, but the SAA7154E; SAA7154H is also able to point to any two out of eight analog inputs (which the digital processing unit accepts, if necessary). Additionally, the second buffered output signal might be the summation of an input Y and C signal, thus easily converting these signals to CVBS. For example this buffered output signal can be fed to a teletext decoder such as the SAA5264/65 or it can serve as a CVBS monitoring signal to a video recorder. 7.1.2 Analog input control The Analog Input Control (AIC) has the following key features: * Fully autonomous video gain and clamp control, based on analog (coarse) gain pre-scaling and digital (fine) gain control in CVBS mode * * * * * * * 7.1.2.1 Adaptive (master-slave) mode: manual gain control for Y/C input signals Component input signals (sync RGB, Y-CB-CR) based on manual gain control Access to various special controls like status signals for debugging (expert mode) SAA7118 backward-compatible input mode table with user presets Clamp: gain correction of input signals containing Macrovision copy protection Gain correction for compressed-sync (white peak) events Integrated decimation filters for 4 : 1 (SDTV) and 2 : 1 (HDTV) oversampling modes. Block description The SAA7154E; SAA7154H provides sixteen analog signal inputs, four analog main channels with source switch, clamp circuit, analog amplifier and video 10-bit CMOS ADC. The gain control circuit receives the static gain levels for the four analog amplifiers (through the I2C-bus) or controls one of these amplifiers automatically through a built-in Automatic Gain Control (AGC) as part of the Analog Input Control (AIC). This AGC for luminance is used to amplify a CVBS or Y signal to the required signal amplitude, matched to the ADCs input voltage range. It is not possible to apply AGC to component input signals, therefore the gain of these signals has to be set manually using the corresponding control registers. SAA7154E_SAA7154H_2 Product data sheet (c) NXP B.V. 2007. All rights reserved. Rev. 02 -- 6 December 2007 17 of 90 SAA7154E; SAA7154H NXP Semiconductors Multistandard video decoder with comb filter Decimation filtering is required to remove aliasing artifacts that can result from 4-fold oversampling of SDTV signals (54 MHz sampling frequency and 13.5 MHz pixel rate) and 2-fold oversampling of HDTV signals. CONTROL AI11 AI12 AI13 AI14 INPUT SELECTION 4x MUX ANALOG GAIN ADC1 TO ADC4 CVBS/Y C AI21 AI22 AI23 AI24 A D AI31 AI32 AI33 AI34 DECIMATOR/ DITHER 1 TO 4 CROSSMUX DIGITAL GAIN G/Y R/PR AI41 AI42 AI43 AI44 B/PB 3-BIT ADC FSW 001aaa241 Fig 6. Analog video inputs and analog input control 7.1.2.2 Basic functional modes These are the basic operation modes implemented in the AIC: * CVBS modes: working as fully autonomous AGC (default); can be changed to manual gain control by setting bits GAFIXA = 1b and GAFIXD = 1b * S-video adaptive modes: Y channel acts as autonomous AGC and C channel follows with its digital gain value; can be changed to manual gain control by setting bit GAFIXD = 1b * S-video fixed-gain modes: Y channel running in AGC mode and C channel forced to manual gain control; bits GAFIXA and GAFIXD have influence on Y channel only * Component signal (sync RGB, Y-CB-CR) modes: sync running in AGC mode, forced manual gain control for the component channels; bits GAFIXA and GAFIXD have influence on sync channel only. 7.1.2.3 I2C-bus read back of digital AGC gain factor For certain applications with known and stable signal amplitude, AGC can be set to manual. A single I2C-bus read back on a channel in use will provide the necessary digital gain factor for this channel, which can be stored by the system controller. Afterwards, immediate gain setting is achieved by just restoring the measured value whenever the related channel is active. SAA7154E_SAA7154H_2 Product data sheet (c) NXP B.V. 2007. All rights reserved. Rev. 02 -- 6 December 2007 18 of 90 xxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx x xxxxxxxxxxxxxx xxxxxxxxxx xxx xxxxxx xxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxx xxxxx xxxxxx xx xxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxx xxxxxxx xxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxx xxxxxxxxxxxxxx xxxxxx xx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxx xxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxx xxxxx x x LDEL YCOMB DELAY COMPARATOR CHR INTERPOLATION LOW PASS 3 LUBW LOW PASS 1 DOWN SAMPLING MIXER CHROMINANCE INCREMENT DELAY LCBW[2:0] SUBCARRIER INCREMENT GENERATION AND DIVIDER CDTO INCS CSTD[2:0] FPLL RTCO VEDG[1:0] CCOMB HODG[1:0] YCOMB MEDG[1:0] LDEL VEDT[1:0] BYPS CMBT[1:0] SET_RAW SET_VBI BRIGHTNESS CONTRAST SATURATION CONTROL LOW PASS 2 CHBW SECAM PROCESSING 19 of 90 (c) NXP B.V. 2007. All rights reserved. FCTC ACGC CGAIN[6:0] IDEL[3:0] ACL_ON FSQC FPLL CODE CHROMINANCE GAIN CONTROL, UVADJUSTMENT NOISESHAPING HREF-OUT SET_RAW SET_VBI PAL DELAY LINE SECAMRECOMBINATION SECS DCVF COLOR STRIPE BURSTDETECTOR COLSTR, TYPE3 001aaa242 fH/2 switch signal Fig 7. Chrominance and luminance processing, adaptive comb filter Y-OUT/CVBS-OUT CB-CR-OUT RAW DATA GAIN AND OFFSET CONTROL UV PHASE DEMODULATOR, AMPLITUDE DETECTOR, BURST GATE ACCUMULATOR, LOOP FILTER OFTS3 SAA7154E; SAA7154H DTO RESET HUEC UV LDEL YCOMB CHROMINANCE INCREMENT SUBCARRIER GENERATION 1 DBRI[7:0] DCON[7:0] DSAT[7:0] RAWG[7:0] RAWO[7:0] COLO LUFI[3:0] CSTD[2:0] YDEL[2:0] UV ADAPTIVE COMB FILTER Y/CVBS Multistandard video decoder with comb filter Rev. 02 -- 6 December 2007 SUBCARRIER GENERATION 2 LUMINANCE PEAKING OR LOW PASS, Y-DELAY ADJUSTMENT 7.2 Video decoder UV QUADRATURE MODULATOR CVBS-IN or CHR-IN Y SUBTRACTOR NXP Semiconductors SAA7154E_SAA7154H_2 Product data sheet CVBS-IN or Y-IN SAA7154E; SAA7154H NXP Semiconductors Multistandard video decoder with comb filter 7.2.1 Comb filter operation Super-adaptive 24-line comb filter for two dimensional chrominance and luminance separation for: * Increased luminance and chrominance bandwidth for all PAL and NTSC standards * Reduced cross-color and cross-luminance artifacts, even with critical color patterns. The decision logic of the 2-dimensional comb filter in the SAA7154E; SAA7154H is improved in order to reduce residual artifacts (namely cross-color and cross-luminance (dots)). The bandwidth of the combed luminance and chrominance signals are kept (compared to the SAA7118), such that the overall performance is significantly enhanced. 7.2.2 Automatic color standard detection The result of the automatic color standard detection can be read through I2C-bus read access; the level of detail of the respective status bits includes subcarrier frequency, line frequency and field frequency. Thus all PAL, NTSC and SECAM standards including sub-standards can be distinguished: * * * * * * PAL BGDHIN Combination-PAL N PAL M NTSC M/NTSC-Japan NTSC 4.43 SECAM. Remark: For NTSC-Japan there is no detection of black level offset through color standard detection. 7.2.3 Easy CVBS versus Y/C discrimination The SAA7154E; SAA7154H checks respective channels (under control of firmware) for the actual burst amplitude and writes the result to dedicated I2C-bus status bits. Comparing the actual amplitudes enables the system firmware to determine either a CVBS or s-video input. 7.2.4 Stability of vertical synchronization Stability of vertical synchronization has been improved considerably: * Automatic detection of signals from consumer grade VTRs * Improved lock stability for non-standard sources, e.g. more reliable odd/even detection. Deteriorated signals from VCR tapes might upset the vertical synchronization, resulting in vertical jumping of the displayed picture during pause or even during playback mode. When switching from playback mode to fast forward, the output picture is sensitive to scrolling which requires a certain time until it is stable again. SAA7154E_SAA7154H_2 Product data sheet (c) NXP B.V. 2007. All rights reserved. Rev. 02 -- 6 December 2007 20 of 90 SAA7154E; SAA7154H NXP Semiconductors Multistandard video decoder with comb filter To avoid these undesired effects, the recognition of the vertical synchronization pulse has been improved. A reference for the improved synchronization behavior is the selected tape material. The odd/even field detection has been made more robust. The detection signal is low-pass filtered by a field-count programmable flywheel to exclude all noise peaks of weak VCR signals. RMS noise on sync pulse tips is measured and a status bit is set when the calculated signal-to-noise ratio passes the 20 dB threshold. 7.3 Component processing The SAA7154E; SAA7154H supports Y-PB-PR or RGB component inputs according to: * 480i and 576i (standard definition and interlaced) * 480p and 576p (HD0, double scan rate) at two-fold oversampling (54 MHz) * 1080i and 720p (HD1), downsampled to 27 MHz pixel rate. The SAA7154E; SAA7154H processes Y-PB-PR component video input in double scan representation, also known as 480p or 576p progressive video, at its natural pixel rate of 27 MHz. The SAA7154E; SAA7154H digitizes High Definition video (HD1), known as 1080i and 720p, at 54 MHz and samples it down to a pixel rate of 27 MHz. The SAA7154E; SAA7154H detects HD0 and HD1 signals (separate for 480p, 576p, 1080i, 720p) and sets I2C-bus status bits. The SAA7154E; SAA7154H performs all necessary internal adjustments to support these standards. HD0 signals can be output after the scaler (I-port) either at their natural resolution and bandwidth, e.g. as in ITU-656 on 8 lines at 54 MHz clock rate or in SMPTE293M format (16 lines (Y-CB -CR) and 24 lines (RGB) at 27 MHz clock rate. Or they can be scaled to meet the particular requirements of the following signal processing or display, e.g. downscale to half the number of input lines. HD1 signals (720p, 1080i) can be output after the scaler (I-port) with reduced horizontal resolution. 7.4 Analog OSD processing AI44 AI22 AI32 ADC OSD4 ADC OSD1 ADC OSD2 3-bit R_IN 3-bit G_IN 3-bit OSD_FSW FSW AI42 ADC OSD3 3-bit B_IN from softmixer video decoder / component video processing COMPONENT OSD Y FSW OSD UV Y UV SOFTMIXER OSD Y UV 001aab889 Fig 8. Functional overview of OSD SAA7154E_SAA7154H_2 Product data sheet (c) NXP B.V. 2007. All rights reserved. Rev. 02 -- 6 December 2007 21 of 90 SAA7154E; SAA7154H NXP Semiconductors Multistandard video decoder with comb filter The OSD processing (see Figure 8) mixes the main video signal with an analog RGB OSD signal provided by an external device (e.g. teletext decoder SAA5697). Three ADCs (OSD1, OSD2 and OSD3) convert the three analog RGB inputs AI22, AI32 and AI42 into 3-bit digital streams. The corresponding FSW signal is also converted from the analog input AI44 to a 3-bit digital signal by the separate ADC OSD4. The block FSW OSD processes the 3-bit FSW signal to a 9-bit alpha value, that indicates the ratio to mix the OSD signal with the main video. 7.5 Decoder output control and fader When any valid input signal is missing, a blue screen signal can be inserted under software control in order to get a valid output signal. The function blue screen can be enabled by setting bit BSCR (extended register address 72h). I2C-bus status bits provide criteria like horizontal or vertical lock. 7.6 Picture improvement and scaler 7.6.1 Picture improvement All the picture improvement functions are available for all types of input signals including a digital Y-CB-CR applied to the X-port as an input. 7.6.1.1 Color improvement The gravity functions take place in the CB-CR color domain. Colors in the vicinity of a specified color (e.g. skin tone for skin tone correction or green for green enhancement) are enhanced to be closer to the desired color value (see Figure 9). This gravity function is implemented three times and can be used for skin tone correction, green enhancement or red apple in any order. Only the blue stretch function is fixed since here a different algorithm is necessary. Video Skin tone Green enhancement Blue stretch Red apple GRAVITY 1 GRAVITY 2 GRAVITY 4 (blue) GRAVITY 3 Video Control 001aaa243 Fig 9. Simplified block diagram of gravity functions A center of gravity in CB-CR space is defined. The range defines the zone of gravity impact. Further, the gravity weighting can be forced in four different steps. The strength of gravity is a function of the difference between the center of gravity and the actual CB-CR pixel. SAA7154E_SAA7154H_2 Product data sheet (c) NXP B.V. 2007. All rights reserved. Rev. 02 -- 6 December 2007 22 of 90 SAA7154E; SAA7154H NXP Semiconductors Multistandard video decoder with comb filter Blue stretching: This blue stretch circuit is intended to shift color close to white with sufficient contrast towards more blue to obtain a brighter impression of the picture. The blue stretch gravity block works slightly different to the gravity block described above. The center of gravity here is not the same as the center of the programmable range. The center of range is fixed with CB = CR = 0h whereas the center of gravity is blue. To every CB-CR color vector falling into a range close to CB = CR = 0h and accompanied by a relative luminance of at least 80 %, a certain portion of CB color component is added. The range and strength of this operation is programmable. Green enhancement: Green enhancement makes pictures with green content more vivid. All color vectors whose angles are within a predefined value for green hue are amplified around a center of gravity by a certain amount. The position of the center of gravity, range and strength of this operation is programmable. Adjustable skin tone correction: Automatic skin tone correction, also known as color trek or flesh tone correction, continuously evaluates the angle of the vector in the CB-CR color plane. Whenever particular pixel fall into a skin tone area, their vector is rotated (eventually stretched or squeezed in length), thus pointing into the direction of a programmable target angle and saturation around a center of gravity. The position of the center of gravity, range and strength of this operation is programmable. 7.6.1.2 Color transient improvement Color Transient Improvement (CTI) after the scaler block evaluates transients in the CB-CR domain and, depending on their amplitude, these transients are made steeper without generating overshoot. For a particular high-pass filter, center frequencies of approximately 0.125 x fclk(o)(SC) and 0.17 x fclk(o)(SC) can be selected (fclk(o)(SC) is the frequency of the scaler output clock, normally the clock at pin ICLK); thus the degree of slope improvement is proportional to the output (display) clock fclk(o)(SC). A higher subjective impression of sharpness is achieved especially for SECAM originated test signals. 7.6.1.3 Luminance sharpness control The sharpness control (luminance peaking), also used in the SAA7118, is located after the video decoder block and a more versatile sharpness control has been added to part of the I-port processing chain. Center frequencies of approximately 0.2 x fclk(o)(SC), 0.25 x fclk(o)(SC) and 0.3 x fclk(o)(SC) can be selected as shown in Figure 10; thus, the actual frequencies depend on the output (display) clock fclk(o)(SC). The amount of luminance peaking can be set from 0 dB to 12 dB in 8 steps. SAA7154E_SAA7154H_2 Product data sheet (c) NXP B.V. 2007. All rights reserved. Rev. 02 -- 6 December 2007 23 of 90 SAA7154E; SAA7154H NXP Semiconductors Multistandard video decoder with comb filter dB 12 0 0.2 0.25 0.3 0.5 fcl_sco 001aaa244 Fig 10. Center frequencies of luminance sharpness control 7.6.1.4 Histogram collection The histogram collection provides the following features: * Histogram adaption by means of three programmable Look-Up Tables (LUT) for: - Adaptive black stretch - White stretch - Dynamic Contrast Improvement (DCI) * Black and white stretching by histogram evaluation. Three programmable LUTs (each having 17 x 8-bit entries) after the scaler block can realize piecewise (16 segments) linear transfer characteristics for Y-CB-CR components. Evaluation of the statistical appearance of luminance sample codes over a programmable observation window (maximum of 2 interlaced video fields) by the system microcontroller can be utilized to load values s0 to s16 for the segments of the LUTs accordingly (see Figure 11); the remaining LUT entries are calculated automatically. The histogram result is readable as one byte through the I2C-bus, where the mantissa and exponent values are each represented by 8-bit. s16 255 LUT output s1 s0 0 32 64 511 LUT input 001aaa245 Fig 11. Programmable LUT characteristics SAA7154E_SAA7154H_2 Product data sheet (c) NXP B.V. 2007. All rights reserved. Rev. 02 -- 6 December 2007 24 of 90 SAA7154E; SAA7154H NXP Semiconductors Multistandard video decoder with comb filter 7.6.2 Scaler The high-performance video scaler offers non-linear horizontal scaling, thus enabling e.g. optimized zooming of 4 : 3 sources to a 16 : 9 display (panorama scaling). An intrafield de-interlacer (no external memory needed) converts interlaced sources to progressive format, suitable for direct display on LCD panels. An on-chip display and raster generator enables direct driving of LCD panels. The scaler has the following major blocks (see Figure 12): * Acquisition control (horizontal and vertical timer) and task handling (region/field/frame based processing) * Prescaler, for horizontal down-scaling by an integer factor, combined with appropriate band limiting filters, especially anti-aliasing for CIF format * Brightness, saturation, contrast control to adjust scale-dependent amplification * Line buffer, with asynchronous read and write, to support vertical up-scaling (e.g. for videophone application, converting 240 into 288 lines, Y-CB-CR 4 : 2 : 2) * Vertical scaling, with phase accurate Linear Phase Interpolation (LPI) for zoom and downscale or phase accurate Accumulation Mode (ACM) for large downscaling ratios and better alias suppression * A secondary vertical scaling unit, for EDGI, used for zooming up to progressive line counts * Arithmetic unit, which does the calculations needed to support panorama scaling and keystone compensation * Picture improvement processing (scaler post processing) containing simple peaking functions to improve the sharpness impression in luminance and chrominance, YUV to RGB or RGB to YUV conversions (including 16 segment curves) to support contrast/saturation and color manipulations * Variable Phase Delay (VPD) operates as horizontal phase accurate interpolation for arbitrary non-integer scaling ratios. VPD supports conversion between square pixel sampling and rectangular pixel sampling, panorama scaling and keystone compensation. SAA7154E_SAA7154H_2 Product data sheet (c) NXP B.V. 2007. All rights reserved. Rev. 02 -- 6 December 2007 25 of 90 SAA7154E; SAA7154H NXP Semiconductors Multistandard video decoder with comb filter YUV ADC1, ADC2 H, V input data references data qualifier data request INPUT WINDOW CONTROL page select PAGE (TASK) HANDLING (EVENT HANDLER) FIR PRE-FILTER, PRE-SCALER AND SCALER BCS PROGRAMMING REGISTERS PAGE A/B MUX LINE FIFO BUFFER VERTICAL SCALING EDGI HORIZONTAL FINE (PHASE) SCALING (VPD) SCALER POST PROCESSING SHARPNESS CONTROL YUV2RGB 16 SEGMENT CURVE RGB2YUV OUTPUT WINDOW CONTROL (OUT AQUISITION) 3 x 10 bit data H,V gates, data qualifier 001aab945 Fig 12. Functional block diagram of the scaler data path The input/output data relation limits overall H and V zooming. The video scaler receives its input signal from the video decoder or from the expansion port (X-port). It gets 16-bit Y-CB-CR 4 : 2 : 2 input data at a continuous rate of 13.5 MHz or 27 MHz from the decoder. A discontinuous data stream can be accepted from the expansion port (X-port), normally 8-bit wide ITU-656 like Y-CB-CR data, accompanied by a pixel qualifier on pin XDQ. The scaler operation is defined by two programming pages A and B, representing two different tasks, that can be applied field alternating or to define two regions in a field (e.g. with different scaling range, factors and signal source during odd and even fields). SAA7154E_SAA7154H_2 Product data sheet (c) NXP B.V. 2007. All rights reserved. Rev. 02 -- 6 December 2007 26 of 90 SAA7154E; SAA7154H NXP Semiconductors Multistandard video decoder with comb filter Each programming page contains control for: * * * * Signal source selection and formats Task handling and trigger conditions Input and output acquisition window definition H-prescaler, V-scaler and H-phase scaling. Raw VBI data is handled as specific input format and needs its own programming page (equals own task). 7.7 VBI data decoder and capture The SAA7154E; SAA7154H contains a versatile VBI data decoder and the option of reading back sliced VBI data for low bit rate standards. All sliced VBI data are transported through the I-port and are mixed with the data from the scaler data path. 7.7.1 Versatile VBI data decoder Versatile VBI data decoder, slicer, clock regeneration and byte synchronization e.g. for: * * * * * * * * * * * WST525/WST625 (Chinese Character System Teletext (CCST)) VPS US/European Closed Caption (CC), including XDS and V-chip WSS525, including Copy Generation Management System (CGMS) WSS625 Line 41 CGMS of 480p (HD0) component video US NABTS VITC525/VITC625 Gemstar1x Gemstar2x Moji. 7.7.2 I2C-bus read back I2C-bus read back of the following decoded data types: * * * * * * US Close Caption (CC), including XDS and V-chip European Close Caption (CC) WSS525 (including CGMS) WSS625 Gemstar1x Gemstar2x. 7.7.3 VBI data slicer This circuitry recovers the actual clock phase during the clock run-in period, slices the data bits with the selected data rate and groups them into bytes. The bits are sliced in the order of their occurrence, so that normally the first bit becomes the LSB of the collected bytes. Especially for WSS625, the 6 bits, which represent a single symbol, are packed into SAA7154E_SAA7154H_2 Product data sheet (c) NXP B.V. 2007. All rights reserved. Rev. 02 -- 6 December 2007 27 of 90 SAA7154E; SAA7154H NXP Semiconductors Multistandard video decoder with comb filter separate bytes (where the hardware sets the upper bits to 00b). For transfer over I-port the result is buffered into a dedicated VBI data FIFO with a capacity of 2 x 56 bytes (2 x 14 double words). The programming registers 40h to 5Fh control the VBI data slicing and data transfer. Registers 40h and 58h control the slicing process itself. The Line Control Registers (LCR) define the data type (VBI data standard) to be decoded. The assignment of the LCR registers to the CVBS input lines depends on the parameter VOFF. Table 5 shows the supported VBI standards for 60 Hz/525 lines signals (see Table 6 for 50 Hz/625 lines signals). Table 5. Data type 60 Hz/525 lines VBI data types supported by the data slicer block 60 Hz/525 lines VBI data standards Description Data rate Framing code (Mbit/s) Hamming check Data types for SDTV input (subaddress 48h/4Ah address 09h control bit SEL_HD = 0b) 0h do not acquire (active video) - - - 1h US teletext (WST525) 5.7272 27h always 2h NABTS 5.7272 programmable optional - 3h Moji 5.7272 programmable[1] 4h US Closed Caption (CC 525 and Line 21)[2] 0.503 001b 5h US Wide Screen Signalling (WSS525 and 0.447443 10b CGMS) 6h VITC525 1.7898 10b - 7h Gemstar2x 1.007 4EDh - 8h Gemstar1x 0.503 001b - 9h reserved - - - Ah Open1 5 programmable - Bh Open2 5.7272 programmable - Ch reserved - - - Dh do not acquire (RAW) - - - Eh do not acquire (test) - - - Fh do not acquire (active video) - - - - Data types for HDTV input (subaddress 48h/4Ah address 09h control bit SEL_HD = 1b) 0h do not acquire (active video) - - - 1h to 4h not supported - - - 5h CGMS-A - - - 6h to Ch not supported - - - Dh to Fh do not acquire (active video) - - - [1] Should be set to 47h for Moji. [2] Including eXtended Data Service (XDS), respectively V-chip. SAA7154E_SAA7154H_2 Product data sheet (c) NXP B.V. 2007. All rights reserved. Rev. 02 -- 6 December 2007 28 of 90 SAA7154E; SAA7154H NXP Semiconductors Multistandard video decoder with comb filter Table 6. Data type 50 Hz/625 Lines VBI data types supported by the data slicer block 50 Hz/625 lines VBI data standards Description Data rate Framing code (Mbit/s) Hamming check Data types for SDTV input (subaddress 48h/4Ah address 09h control bit SEL_HD = 0b) 0h do not acquire (active video) 1h - - - European teletext (WST 625) and Chinese 6.9375 teletext (CCST 625) 27h always 2h Euro teletext with programmable Framing Code 6.9375 programmable optional 3h reserved - - - 4h Euro Closed Caption (CC625) 0.500 001b - 5h Euro Wide Screen Signalling (WSS625) 5 1E 3C1Fh - 6h VITC625 1.8125 10b - 7h VPS 5 9951h - 8h reserved - - - 9h reserved - - - Ah open1 5 programmable - Bh open2 5.7272 programmable - Ch reserved - - - Dh do not acquire (RAW) - - - Eh do not acquire (test) - - - Fh do not acquire (active video) - - - 7.8 Image port output interface The output interface consists of an output formatter, a FIFO for video and for sliced text data, an arbitration circuit which controls the mixed transfer of video and sliced text data over the I-port and a decoding and multiplexing unit which generates the 8-bit or 16-bit wide output data stream and the accompanied reference and supporting information. The clock for the output interface can be derived from an internal clock (decoder or X-port), from the second internal PLL set (registers PLL2 and CGC2) or from an externally provided clock which is appropriate for e.g. VGA and frame buffer. The clock can be up to 54 MHz. The scaler provides the following video related timing reference events (signals) through pins IPG0, IGP1, IGPH, IGPV and IDQ: * * * * Output field ID Start and end of vertical active video range Start and end of active video line Data qualifier or gated clock (only for DMSD2-legacy mode, bits ICKS[3:2]; see Table 17) * Actually activated programming page (if CONLH is used) * Threshold controlled FIFO filling flags (empty, full, filled) * Sliced data marker. SAA7154E_SAA7154H_2 Product data sheet (c) NXP B.V. 2007. All rights reserved. Rev. 02 -- 6 December 2007 29 of 90 NXP Semiconductors SAA7154E; SAA7154H Multistandard video decoder with comb filter The data stream at the scaler output is accompanied by a data valid flag (or data qualifier). The discontinuous output data after the scaling process can be output as they occur or the data may be packed to continuous output lines by means of a trigger mechanism, which is controlled by a separate sync generator. Clock cycles with invalid data on the I-port data bus (including pins HPD[7:0] in 16-bit output mode) can be handled in two different ways (controlled by bit INS80). As before, invalid cycles may be marked with 00h, but additionally a blanking value insertion (80h and 10h) is implemented as required by ITU-656. The output interface also arbitrates the transfer between scaled video data and sliced text data over the I-port output. The bits SLDOM and VITX control the arbitration. As a further operation the serialization of the internal double pixel double words to 8-bit, 16-bit or 24-bit output, as well as the insertion of the extended ITU-656 codes (SAV/EAV for video data, ANC or SAV/EAV codes for sliced text data) are done here. Setting bit ICODE = 1b activates the leading/trailing sequences. For 16-bit and 24-bit output modes (bits ICKS[3:2] = 00b) the leading/trailing sequences occur on each 8-bit wide port as a serial byte pattern. When any valid input signal is missing, a blue screen signal can be inserted under software control in order to get a valid output signal. I2C-bus status bits provide criteria like horizontal or vertical lock. 7.9 Digital OSD The SAA7154E; SAA7154H can perform overlay of On-Screen-Display (OSD) information in display (panel) raster timing by using the digital OSD function. For the digital OSD function, a separate combined input port (3-bit data, 1-bit switch control) is available behind the scaler, programmable color mapping of the data bits is provided. Appropriate OSD controllers can insert menu overlay and the like, unaffected of any scaling ratio, thus providing optimum readability. When any valid input signal is missing, a blue screen signal can be inserted under software control in order to get a valid RGB output signal. I2C-bus status bits provide criteria like horizontal or vertical lock. The SAA7154E; SAA7154H can perform overlay of On-Screen-Display (OSD) information for RGB output signals on I-port. The OSD information runs in display panel raster timing. For an application example Figure 24. 7.10 Interrupt control The SAA7154E; SAA7154H is able to generate an interrupt (pin INT_A, open-drain, active LOW) from up to 16 important internal status signals (see Table 7). The usage of these status signals for the interrupt generation must be enabled by writing the interrupt mask registers at 2Dh to 2Fh from the first I2C-bus slave address, except PRDON, which is always enabled. By default all interrupts are disabled (except PRDON). An interrupt will be deasserted once the status register containing the corresponding status bit is read. The status information read after an interrupt will always be the latest state, therefore the status is not frozen when an interrupt is generated. If there is a delay in reading an interrupt status, the interrupt condition may be superseded by the next other one. SAA7154E_SAA7154H_2 Product data sheet (c) NXP B.V. 2007. All rights reserved. Rev. 02 -- 6 December 2007 30 of 90 SAA7154E; SAA7154H NXP Semiconductors Multistandard video decoder with comb filter The exception to the above is the VBI interrupt bit whose status is frozen when a VBI event occurs. It is set only if its mask bit is set and an end of VBI event occurs. An additional interrupt lost signal is available for software to check whether all VBI data has been read. It is asserted if the VBI interrupt bit is still set when the next end of VBI event occurs. Remark: if a new interrupt condition occurs at the same time (at clock enable) as a status is being read, the flag will not be cleared. Table 7. List of status signals for which an interrupt can be initiated Status Description Address Active edge RDCAP ready for capture (all internal loops locked) for SDTV 42h/40h - 1Fh both edges signals COPRO copy protected source detected according to Macrovision version up to 7.01 (SDTV) 42h/40h - 1Fh both edges COLSTR Macrovision encoded color stripe burst detected (any type) 42h/40h - 1Fh both edges TYPE3 Macrovision encoded color stripe burst type 3 (4 line 42h/40h - 1Fh both edges version) detected (SDTV) FIDT identification bit for detected field frequency (SDTV) 42h/40h - 1Fh both edges HLVLN status bit for horizontal and vertical loop (SDTV) 42h/40h - 1Fh both edges INTL status bit for interlace detection (SDTV) 42h/40h - 1Fh both edges DCSTD[1:0] detected color standard (SDTV) 42h/40h - 1Eh both edges HLCK status bit for locked horizontal frequency (SDTV) 42h/40h - 1Eh both edges NFLD status bit for field length (SDTV) 42h/40h - 1Eh both edges ERROF error output formatter scaler 42h/40h - 8Fh rising edge VBI_IRQ end of VBI region interrupt (no status, this bit will only be set if the corresponding mask bit is set and the event occurs) 42h/40h - 8Fh falling edge PRDON power-down status signal 42h/40h - 8Fh falling edge HD_COPRO copy protected HDTV source detected according to Macrovision version up to 7.01 4Ah/48h - 1Fh both edges HD_RDCAP ready for capture (all internal loops locked) (HDTV) 4Ah/48h - 1Fh both edges HD_HL 4Ah/48h - 1Fh both edges horizontal lock flag (HDTV) 7.11 Clock generation A first Clock Generation Circuit (CGC) receives a synthesized reference signal which is line-locked to the active incoming analog video. It acts like an analog tracking filter in order to remove residual jitter from the sampling clock. In a similar way, a second clock generator is capable to output video data in square pixel formats: * PAL video line is output with 768 active video pixel at 29.5 MHz square pixel clock frequency * NTSC Video line is output with 640 active video pixel at 24.54 MHz square pixel clock frequency. SAA7154E_SAA7154H_2 Product data sheet (c) NXP B.V. 2007. All rights reserved. Rev. 02 -- 6 December 2007 31 of 90 SAA7154E; SAA7154H NXP Semiconductors Multistandard video decoder with comb filter An other option is to use the second CGC for jitter removal from the frame-locked audio clock generated inside the SAA7154E; SAA7154H. Supported audio clock frequencies of the low jitter frame locked audio clock from the audio master clock are (with fs = 32 kHz, 44.1 kHz or 48 kHz): * 256 x fs * 384 x fs * 512 x fs. 7.12 I2C-bus slave transmitter Due to the number of new functions in the SAA7154E; SAA7154H, two I2C-bus slave addresses are required for full control of all registers. In order to auto control two decoder devices independently, pin RTCO = logic 0 enables slave addresses (write) 42h and 4Ah and pin RTCO = logic 1 enables slave addresses (write) 40h and 48h. For a read access, addresses are incremented by one as usual. Do not connect the output pin RTCO directly to ground or power supply. Use a pull-down or pull-up resistor of 4.7 k instead. 7.13 Power and reset control 7.13.1 Power-on reset and chip enable input A missing XTAL clock, insufficient digital or analog VDD supply voltages (below 2.0 V for nominal 3.3 V pins and below 1.2 V for nominal 1.8 V supply pins) will start the reset sequence. All outputs are forced to 3-state. The indicator output pin RES_N = logic 0 for approximately 2000 XTAL cycles after the internal reset and can be applied to reset other circuits of the digital TV system. The reset will release if the supply increases above 1.4 V (for 1.8 V supply) and 2.5 V (3.3 V supply). It is possible to force a reset by pulling the chip enable input (pin CE) to ground. After the rising edge of CE and sufficient power supply voltage, the outputs LLC, LLC2_54 and SDA return from 3-state to active, while the other signals have to be activated through programming. With this procedure the order of applying the different voltages is not important: * * * * * * * * Set CE = logic 1 Apply all supplies Wait for 5 ms Set CE = logic 0 Wait for 1 s Set CE = logic 1 Wait for 1 ms Start I2C-bus initialization. SAA7154E_SAA7154H_2 Product data sheet (c) NXP B.V. 2007. All rights reserved. Rev. 02 -- 6 December 2007 32 of 90 SAA7154E; SAA7154H NXP Semiconductors Multistandard video decoder with comb filter ~500 s CE XTALO LLC2_54 RES_N high impedance 001aaa247 Fig 13. Timing diagram of reset sequence 7.13.2 Initial programming sequence after power-on After power-on a sequence of register changes needs to be performed, due to internal dependencies on the clock generation: 1. The first programming of the device needs to be done with slave address 42h/40h, bits XPE[1:0] = 01b 2. Program slave address 42h/40h, bit CG1EN = 0b and afterwards set bit CG1EN = 1b 3. If the X-port is not needed, program slave address 42h/40h, bits XPE[1:0] = 00b 4. To activate the I-port output program slave address 42h/40h, bit SWRST = 0b and afterwards set bit SWRST = 1b. 7.13.3 Power-down Follow this procedure to initiate the power-down mode: * Set MODE[5:0] = 24h * Set pin CE = logic 0. 7.14 Input and output interfaces and ports The SAA7154E; SAA7154H has nine different I/O interfaces: * Analog video input interface, for analog CVBS and/or Y and C input signals and/or component video signals * * * * * * * Analog OSD input interface Digital OSD input interface Audio clock port Digital real-time signal port (RT-port) Digital video expansion port (X-port), for unscaled digital video input and output Digital image port (I-port) for scaled video data output Digital host port (H-port) for extension of the image port or expansion port from 8-bit to 16-bit * Digital I-port extension bus (IX-port) for expansion of the data output to 24-bit. SAA7154E_SAA7154H_2 Product data sheet (c) NXP B.V. 2007. All rights reserved. Rev. 02 -- 6 December 2007 33 of 90 SAA7154E; SAA7154H NXP Semiconductors Multistandard video decoder with comb filter 7.14.1 Analog terminals The SAA7154E; SAA7154H has 16 analog inputs AI41 to AI44, AI31 to AI34, AI21 to AI24 and AI11 to AI14 for composite video CVBS or s-video Y/C signal pairs or component video input signals RGB plus separate sync (or Y-PB-PR plus separate sync). Component signals with e.g. sync-on-Y or sync-on-green are also supported; they are fed to two ADC channels, one for the video content, the other for sync conversion. Additionally, there are four differential reference inputs which must be connected to ground through a capacitor equivalent to the decoupling capacitors at the 16 inputs. There are no peripheral components required other than these decoupling capacitors and termination resistors, one set per connected input signal. When using the OSD feature in combination with the SAA5697HL, the analog pins AI22, AI32, AI42 and AI44 are reserved for analog OSD and can not be used for other input sources. Clamp and gain control for the four ADCs are also integrated. Two analog video outputs (pins AOUT1 and AOUT2) are provided. They can be used for analog output for one of the input signals. In addition, pin AOUT2 can output the sum of two analog input signals. This can be used for CVBS generation from an Y/C signal. Table 8. Analog pin description Pin I/O Description AI11 to AI14 I analog video signal inputs, e.g. 16 CVBS signals or MODE[5:0] eight Y/C pairs or four RGB plus separate sync (or Y-PB-PR plus separate sync) signal groups can be connected simultaneously to this device; many combinations are possible AOUT1 O analog video output 1 AOSL1[3:0] AOUT2 O analog video output 2 AOSL2[1:0], AOSL2A[1:0] and AOSL2B[1:0] AI1D, AI2D, AI3D and AI4D I analog reference pins for differential ADC operation; connect to ground through 47 /22 nF - AI21 to AI24 AI31 to AI34 AI41 to AI44 Control through 7.14.2 Audio clock signals The SAA7154E; SAA7154H also synchronizes the audio clock and sampling rate to the video frame rate through a very slow PLL. This ensures that multimedia capture and compression processes always gather the same predefined number of samples per video frame. An audio master clock AMCLK and two divided clocks ASCLK and ALRCLK are generated: * ASCLK: can be used as audio serial clock * ALRCLK: audio left/right channel clock. The ratios are programmable. SAA7154E_SAA7154H_2 Product data sheet (c) NXP B.V. 2007. All rights reserved. Rev. 02 -- 6 December 2007 34 of 90 SAA7154E; SAA7154H NXP Semiconductors Multistandard video decoder with comb filter Table 9. Audio clock pin description Pin I/O Description Control through AMCLK O audio master clock output ACPF[17:0] and ACNI[21:0] AMXCLK I external audio master clock input for the clock division circuit; can be directly connected to output AMCLK for standard applications - ASCLK O serial audio clock output; can be synchronized to rising or falling edge of AMXCLK SDIV[5:0] and SCPH ALRCLK O[1] audio channel (left/right) clock output; can be synchronized to rising or falling edge of ASCLK LRDIV[5:0] and LRPH [1] See Table 4. 7.14.3 Clock and real-time synchronization signals at the RT-port The generation of the line-locked video clock LLC (pixel clock) and of the frame-locked audio serial bit clock requires a crystal accurate frequency reference. An oscillator is built-in for fundamental or third harmonic crystals (the SAA7154E; SAA7154H supports crystals with 32.11 MHz or 24.576 MHz). Alternatively, pin XTALI can be driven from an external single-ended oscillator. The crystal oscillation can propagate as a clock to other ICs in the system through pin XTOUT. The Line-Locked Clock (LLC) is the double pixel clock of the nominal 27 MHz in case of SDTV signals (pixel clock for HDTV). It is locked to the selected video input, generating baseband video pixel according to ITU recommendation 601. In order to support interfacing circuits, a direct pixel clock (LLC2) for SDTV-signals is also provided. The pins for line and field timing reference signals are RTCO, RTS1 and RTS0. Various real-time status information can be selected for the RTS pins. The signals are always available (output) and reflect the synchronization operation of the decoder part in the SAA7154E; SAA7154H. Table 10. Clock and real-time synchronization signals Pin I/O Description Control through Crystal oscillator XTALI I input for crystal oscillator or reference clock - XTALO O output of crystal oscillator - XTOUT O reference (crystal) clock output drive (optional) XTOUTE Real-time signals (RT-port) LLC O LLC2_54 O line-locked clock, nominal 27 MHz, double pixel clock locked to the selected video input signal (pixel clock in case of HDTV) line-locked pixel clock, nominal 13.5 MHz; or ADC clock SLLC2 54 MHz; selectable through I2C-bus SAA7154E_SAA7154H_2 Product data sheet - (c) NXP B.V. 2007. All rights reserved. Rev. 02 -- 6 December 2007 35 of 90 SAA7154E; SAA7154H NXP Semiconductors Multistandard video decoder with comb filter Table 10. Clock and real-time synchronization signals ...continued Pin I/O Description Control through RTCO O[1] real-time control output, transfers real-time status information supporting RTC level 3.1 - RTS0 O real-time status information line 0, can be programmed to carry various real-time information RTSE0[3:0] RTS1 O real-time status information line 1, can be programmed to carry various real-time information RTSE1[3:0] [1] See Table 4. 7.14.4 Video expansion port through the X-port 7.14.4.1 General The expansion port (X-port) can be used either to output 8-bit or 10-bit video from the comb filter decoder or component path directly or to receive video data from other external digital video sources such as a MPEG decoder for output at the image port (I-port). The X-port output is only capable of delivering SDTV signals; HDTV output is only possible through I-port and H-port. The input and output direction is switched under the control of bits XPE[2:0] and pin XTRI: * Output mode: - 8-bit dithered (noise shaped) or 10-bit data output of component video Y-CB-CR 4 : 2 : 2, i.e. in CB-Y-CR-Y, sequence - The SAV and EAV codes can be inserted optionally for data output, controlled by bit OFTS[3:0] - In 10-bit wide video mode the two data LSBs are output on the XRH and XRV signal lines - Clock, synchronization and auxiliary I/O signals accompany the data stream. * Input mode: - 8-bit data input of component video Y-CB-CR 4 : 2 : 2, i.e. CB-Y-CR-Y, byte serial - In input mode, optionally the data bus can be extended to 16-bit by pins HPD[7:0]. In this mode, pins XPD[7:0] carry the luminance data and pins HPD[7:0] carry the chrominance data - The SAV and EAV codes can be applied optionally for data input, selected by bit XCODE - Clock, synchronization and auxiliary I/O signals accompany the data stream. Remark: The I-port configuration controls the enable of the H-port. Table 11 lists the possible I/O configurations. SAA7154E_SAA7154H_2 Product data sheet (c) NXP B.V. 2007. All rights reserved. Rev. 02 -- 6 December 2007 36 of 90 SAA7154E; SAA7154H NXP Semiconductors Multistandard video decoder with comb filter Table 11. Pin 7.14.4.2 Signals dedicated to the expansion port I/O Description Control through XPD7 to I/O XPD0 OFTS[3:0], CONLV, X-port data: in output mode controlled by decoder section; in input mode Y-CB-CR 4 : 2 : 2 serial input data HLDFV, or luminance part of a 16-bit Y-CB-CR 4 : 2 : 2 data stream SCSRC[1:0], SCRQE and FSC[2:0] HPD7 to I/(O) HPD0 H-port data: with the X-port, these signals are used as input only, for 16-bit Y-CB-CR 4 : 2 : 2 video data. In this case HPD[7:0] carries chrominance data. The output enable is controlled through the output configuration as defined by FSI and SWAPO ICKS[3:0], SCSRC[1:0], FSI[2:0] and SWAPO XCLK I/O clock at expansion port: if output, then copy of LLC; as input normally a double pixel clock of up to 32 MHz or a gated clock (clock gated with a qualifier) XCKS XDQ I/O data valid flag of the expansion port input (qualifier): if output, then decoder (HREF and VGATE) gate - XRDY O data request flag to ready to receive, to work with XRQT optional buffer in external device, to prevent internal buffer overflow; second function: input related task flag A/B XRH I/O horizontal reference signal for the X-port: as output: HREF, HS or HVGATE from the decoder; optionally bit 1 of X-port 10-bit decoder output; as input: a reference edge for horizontal input timing and a polarity for input field ID detection can be defined XRV I/O vertical reference signal for the X-port: as output: V123 or OFTS[3:0], field ID from the decoder (see Figure 14 and 15); XRVS[1:0], XFDV optionally bit 0 of X-port 10-bit decoder output; as input: a and XDV[1:0] reference edge for vertical input timing and for input field ID detection can be defined XTRI I port control: switches X-port input 3-state XPE[2:0] Timing Table 12. Availability of control signals for 50 Hz/625 and 60 Hz/525 line systems Control signal Pin RTS0 RTS1 XRH XRV HREF X X X - F_ITU656 - - - X V123 X X - X VGATE X X - - FID X X - - HS X X X - CREF2 X X - - CREF X X - - SAA7154E_SAA7154H_2 Product data sheet OFTS[3:0], XRHS[1:0], XFDH and XDH (c) NXP B.V. 2007. All rights reserved. Rev. 02 -- 6 December 2007 37 of 90 SAA7154E; SAA7154H NXP Semiconductors Multistandard video decoder with comb filter ITU counting single field counting 622 309 623 310 624 311 625 312 1 1 2 2 3 3 4 4 5 5 6 6 7 7 ... ... 22 22 23 23 CVBS HREF F_ITU656 V123 (1) VSTO [8:0] = 134h VGATE FID VSTA [8:0] = 15h (a) 1st field ITU counting single field counting 309 309 310 310 311 311 312 312 313 313 314 1 315 2 316 3 317 4 318 5 319 6 ... ... 335 22 336 23 CVBS HREF F_ITU656 V123 (1) VSTO [8:0] = 134h VGATE FID (b) 2nd field VSTA [8:0] = 15h mhb540 (1) The signal HREF at the negative edge of signal V123 indicates whether this field is odd or even. If HREF is logic 1, the field is odd (field 1) and if HREF is logic 0, the field is even. The control signals are available on the pins listed in Table 12. The polarity of the signals HREF, HS, CREF2 and CREF can be inverted by bits RTP0 or RTP1. Fig 14. Vertical timing diagram for 50 Hz/625 line systems SAA7154E_SAA7154H_2 Product data sheet (c) NXP B.V. 2007. All rights reserved. Rev. 02 -- 6 December 2007 38 of 90 SAA7154E; SAA7154H NXP Semiconductors Multistandard video decoder with comb filter ITU counting single field counting 525 262 1 1 3 3 2 2 4 4 5 5 6 6 7 7 8 8 9 9 10 10 ... ... 21 21 22 22 CVBS HREF F_ITU656 V123 (1) VSTO [8:0] = 101h VGATE FID VSTA [8:0] = 011h (a) 1st field ITU counting single field counting 262 262 263 263 264 1 265 2 266 3 267 4 268 5 269 6 270 7 271 8 272 9 ... ... 284 21 285 22 CVBS HREF F_ITU656 V123 (1) VSTO [8:0] = 101h VGATE FID (b) 2nd field VSTA [8:0] = 011h mhb541 (1) The signal HREF at the negative edge of signal V123 indicates whether this field is odd or even. If HREF is logic 1, the field is odd (field 1) and if HREF is logic 0, the field is even. The control signals are available on the pins listed in Table 12. The polarity of the signals HREF, HS, CREF2 and CREF can be inverted by bits RTP0 or RTP1. Fig 15. Vertical timing diagram for 60 Hz/525 line systems SAA7154E_SAA7154H_2 Product data sheet (c) NXP B.V. 2007. All rights reserved. Rev. 02 -- 6 December 2007 39 of 90 SAA7154E; SAA7154H NXP Semiconductors Multistandard video decoder with comb filter burst CVBS input processing delay ADC to expansion port: 140 x 1/LLC expansion port data output sync clipped HREF (50 Hz) 12 x 2/LLC 144 x 2/LLC 720 x 2/LLC CREF 50 Hz CREF2 5 x 2/LLC 2 x 2/LLC HS (50 Hz) programming range 108 (step size: 8/LLC) -107 0 HREF (60 Hz) 16 x 2/LLC 720 x 2/LLC 138 x 2/LLC CREF 60 Hz CREF2 1 x 2/LLC 2 x 2/LLC HS (60 Hz) programming range (step size: 8/LLC) 107 0 -106 mhb542 Fig 16. Horizontal timing diagram (50 Hz/60 Hz) 7.14.4.3 X-port configured as output If data output is enabled at the expansion port, then the data stream from the decoder is presented. The data format of the 8-bit/10-bit data bus is dependent on the chosen data type, selectable by the line control registers LCR2 to LCR24. In contrast to the image port, the sliced data format is not available on the expansion port. Instead, raw CVBS samples are always transferred if any sliced data type is selected. Currently only SDTV-signals can be transmitted. HDTV transmission is only possible through I-port and H-port. SAA7154E_SAA7154H_2 Product data sheet (c) NXP B.V. 2007. All rights reserved. Rev. 02 -- 6 December 2007 40 of 90 SAA7154E; SAA7154H NXP Semiconductors Multistandard video decoder with comb filter 7.14.4.4 X-port configured as input If data input mode is selected at the expansion port, then the scaler can choose its input data stream from the on-chip video decoder or from the expansion port (controlled by bits SCSRC[1:0]). Byte serial or 16-bit wide Y-CB-CR 4 : 2 : 2 or subsets for other sampling schemes or raw samples from an external ADC may be input (bits FSC[2:0]; see Table 17), where the H-port serves as the port for the chrominance input path. Optionally, pixelwise switching between video from the decoder and expansion port (X-port) input is also used (special configuration controlled by XPE). As the output configuration (8-bit, 16-bit or 24-bit) has priority and controls the H-port enable, 16-bit input is only supported for 8-bit wide output through the I-port. The input stream must be accompanied by an external clock (pin XCLK), qualifier XDQ and reference signals XRH and XRV. Instead of the reference signal, embedded SAV and EAV codes according to ITU-656 are also accepted. The protection bits are not evaluated. For using the raster generator or PLL2 on the X-port input stream the pins XRH and XRV must be applied with sync signals. 7.14.5 Image port and digital OSD 7.14.5.1 Image port The Image port (I-port) transfers data from the scaler as well as from the VBI data slicer, if selected (maximum 54 MHz). The reference clock is available at the ICLK pin, as an output or as an input (maximum 54 MHz). As output, ICLK is derived from the line-locked decoder, 2nd PLL or expansion port input clock. The data stream from the scaler output is normally discontinuous. Therefore valid data during a clock cycle is accompanied by a data qualifying (data valid) flag on pin IDQ. In the so called DMSD2-legacy mode (ICKS[3:2] = 10b) the IDQ pin carries a gated clock signal. The data formats at the image port are defined in double pixel double words, such as the related internal FIFO structures. However, the physical data stream at the image port is only 24-bit, 16-bit or 8-bit wide. In 16-bit mode, data pins HPD[7:0] are used for chrominance data. In 24-bit mode, pins IPD[7:0], IXD[7:0] and HPD[7:0] can be used to output Y-CB-CR 4 : 4 : 4 or R-G-B 4 : 4 : 4 data. Available formats are as follows: * * * * * * Y-CB-CR 4 : 2 : 2 with 8-bit or 16-bit Y-CB-CR 4 : 1 : 1 with 8-bit Y-CB-CR 4 : 4 : 4 with 24-bit R-G-B 4 : 4 : 4 with 24-bit Raw samples Decoded VBI data. For handshake with the receiving VGA controller or other memory or bus interface circuitry, F, H and V reference signals and programmable FIFO flags are provided. The information is provided on pins IGP0, IGP1, IGPH and IGPV. I2C-bus registers control the functionality of these pins. SAA7154E_SAA7154H_2 Product data sheet (c) NXP B.V. 2007. All rights reserved. Rev. 02 -- 6 December 2007 41 of 90 SAA7154E; SAA7154H NXP Semiconductors Multistandard video decoder with comb filter Table 13. Pin I/O Description Control through IPD7 to IPD0 O I-port data: serial 8-bit YUV 4 : 2 : 2 or luminance (Y) component or green (G) component ICODE, ISWP[1:0] and IPE[1:0] HPD7 to I/O HPD0 H-port data: used in output mode with the I-port, this is the 16-bit extension for digital output (chrominance component (serial UV) or the U or blue (B) component in 4 : 4 : 4 output mode); the output configuration, defined by FSI and SWAPO, controls the output enable FSI[2:0], ICKS[1:0], IPE[1:0] and SWAPO IXD7 to IXD0 O extended I-port data: used in output mode with the I-port, FSI[2:0], ICKS[1:0], IPE[1:0] and this is the 24-bit extension of the digital output (the V or red (R) component in 4 : 4 : 4 output mode), output only SWAPO ICLK I/O continuous reference clock at I-port, can be input or output, as output decoder LLC, 2nd PLL clock or XCLK from X-port IDQ O data valid flag at image port, qualifier, with programmable ICKS2, IDQP and polarity; secondary function: gated clock IPE[1:0] IGPH O horizontal reference output signal, copy of the H-gate signal of the scaler, with programmable polarity; alternative function: HRESET pulse IDH[1:0], IRHP and IPE[1:0] IGPV O vertical reference output signal, copy of the V-gate signal of the scaler, with programmable polarity; alternative function: VRESET pulse IDV[1:0], IRVP and IPE[1:0] IGP1 O general purpose output signal for I-port IDG1[2], IDG1[1:0], IG1P and IPE[1:0] IGP0 O general purpose output signal for I-port IDG0[2], IDG0[1:0], IG0P and IPE[1:0] ITRDY I[1] target ready input signals - ITRI I port control, switches I-port into 3-state IPE[1:0] [1] 7.14.5.2 Signals dedicated to the image port ICKS[1:0] and IPE[1:0] See Table 4. Digital OSD It is possible to insert OSD-information into the I-port video signal. This can be done with an external OSD controller, which is connected to the IPORT clock (ICLK), the I-port sync signals (IGPH and IGPV) and the OSD control pins (OSD[3:0]). Table 14. Digital OSD Symbol I/O Description Control through OSD_FSW I[1] digital OSD on/off OSD_LUT and OSD_CONTROL OSD3 to OSD1 I[1] digital OSD selection of OSD bank OSD_LUT and OSD_CONTROL [1] See Table 4. SAA7154E_SAA7154H_2 Product data sheet (c) NXP B.V. 2007. All rights reserved. Rev. 02 -- 6 December 2007 42 of 90 SAA7154E; SAA7154H NXP Semiconductors Multistandard video decoder with comb filter 7.15 I2C-bus registers 7.15.1 Register overview of basic functions Access the registers from Table 15 through the slave write address 42h/40h. Table 15. Address I2C-bus basic functions overview Basic register function Reference 00h chip version part Table 16 01h to 1Fh video decoder part Table 17 20h to 2Fh component processing and interrupt masking Table 18 30h to 3Fh audio clock generator Table 19 40h to 7Fh general purpose VBI data slicer Table 20 X-port, I-port and scaler 8h0 to 8Fh task independent global settings 1 Table 21 9h0 to BFh task A definition: Table 22 basic settings and acquisition window definition FIR filtering and prescaling horizontal phase scaling vertical scaling C0h to EFh task B definition: Table 23 basic settings and acquisition window definition FIR filtering and prescaling horizontal phase scaling vertical scaling SAA7154E_SAA7154H_2 Product data sheet (c) NXP B.V. 2007. All rights reserved. Rev. 02 -- 6 December 2007 43 of 90 xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxx x x x xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xx xx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxx x x xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxx xxx Register 00h used by chip version part Basic register function Chip [1] NXP Semiconductors SAA7154E_SAA7154H_2 Product data sheet Table 16. version[1] Subaddress D7 D6 D5 00h 0 CV[1:0] 0 D4 D3 D0 D2 D1 D0 GAFIXD AGA2[2] AGA1[2] HPLL VNOI[1:0] DCVF FCTC AUTO[0] CCOMB OFFV[1:0] CHBW LCBW[2:0] RTP1 HDEL[1:0] RTP0 YDEL[2:0] XRHS[0] XRVS[1:0] HLSEL OFTS[2:0] XTOUTE AUTO[1] 0 0 VGPS VSTO[8] VSTA[8] CID[3:0] Registers 01h to 1Fh used by the video decoder part Basic register function Subaddress D7 D6 D5 Increment delay and analog input control 0 01h DFQBP WPOFF PFSL[1:0] Analog input control 1 02h DF1BP DF2BP MODE[5:0] Analog Input control 2 03h XPMODE MVCEN 0 Analog Input control 3 04h AGA1[1:0] DGA1[5:0] Analog Input control 4 05h AGA2[1:0] DGA2[5:0] Horizontal sync start 06h HSB[7:0] D4 GAFIXA 07h HSS[7:0] Sync control 08h AUFD FSEL FOET HTC[1:0] Luminance control 09h BYPS YCOMB LDEL LUBW Luminance brightness adjustment 0Ah DBRI[7:0] Luminance contrast adjustment 0Bh DCON[7:0] Chrominance saturation adjustment 0Ch DSAT[7:0] Chrominance hue control 0Dh HUEC[7:0] Chrominance control 1 0Eh CDTO CSTD[2:0] Chrominance gain control 0Fh ACGC/ CGAIN[7] CGAIN[6:0] Chrominance control 2 10h OFFU[1:0] Mode and delay control 11h COLO 12h RTSE1[3:0] RT-port and X-port output control 13h RTCE Analog output control and automatic 14h standard detection AOSL1[3:0] VGATE start, FID change 15h VSTA[7:0] VGATE stop 16h VSTO[7:0] MISC and VGATE MSBs 17h LLCE HOLDG LUFI[3:0] RTSE0[3:0] LLC2E LATY[2:0] SAA7154E; SAA7154H Horizontal sync stop RT signal control D3 IDEL[3:0] Multistandard video decoder with comb filter 44 of 90 (c) NXP B.V. 2007. All rights reserved. D1 Read only. Table 17. Rev. 02 -- 6 December 2007 D2 xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxx x x x xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xx xx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxx x x xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxx xxx Registers 01h to 1Fh used by the video decoder part ...continued Basic register function Subaddress D7 Raw data gain 18h RAWG[7:0] Raw data offset 19h RAWO[7:0] D6 D5 D4 OFTS[3] Color killer 1Ah QTHR[3:0] MISC and TVVCRDET 1Bh ATVT[1:0] CM99 Enhanced comb control 1 1Ch HODG[1:0] VEDG[1:0] MISC and enhanced comb control 2 1Dh 1[1] Status byte decoder 2[1] Status byte decoder [1] D3 D2 D1 D0 VNOMAX ACOL FSQC NXP Semiconductors SAA7154E_SAA7154H_2 Product data sheet Table 17. STHR[3:0] VNORST MEDG[1:0] ASHORT FPLL CMBT[1:0] VPLLDIS XRHS[1] SLLC2 0 VEDT[1:0] 1Eh NFLD HLCK AGLMT AGLMB DGLMT DGLMB DCSTD[1:0] 1Fh INTL HLVLN FIDT STTB TYPE3 COLSTR COPRO RDCAP Read only. Table 18. Register 20h to 2Fh used for component processing and interrupt masking D6 D5 Fast switch status 20h 0 0 FSWS[5:0] Analog input control 5 21h 0 0 0 Analog input control 6 22h AGA3[1:0] DGA3[5:0] Analog input control 7 23h AGA4[1:0] DGA4[5:0] Fast switch control 1 24h 0 Fast switch control 2 25h FSLEN[1:0] Fast switch control 3 26h FSWSEL FSWI 1 FSDEL[4:0] Overlay control 27h 0 0 0 0 Component dither, peaking, delay 28h 0 0 CDITH[1:0] Component uv offset 29h CUOFF[3:0] Component brightness control 2Ah CBRI[7:0] Component contrast control 2Bh CCON[7:0] Component saturation control 2Ch CSAT[7:0] Interrupt mask 1 2Dh M_VBI M_HD_HL M_HD_ RDCAP 0 0 Interrupt mask 2 2Eh M_NFLD M_HLCK 0 0 Interrupt mask 3 2Fh M_INTL M_HLVLN M_FIDT 0 0 0 D4 D3 D2 D1 D0 0 0 EXMCE AGA4[2] AGA3[2] 0 FSRND FSSHFT[2:0] 0 OVMOD[2:0] CMFI CPDL[2:0] 0 M_HD_ COPRO M_ERROF 0 0 M_DCSTD1 M_DCSTD0 M_TYPE3 M_COLSTR M_COPRO FSOFFS[5:0] CVOFF[3:0] M_RDCAP SAA7154E; SAA7154H 45 of 90 (c) NXP B.V. 2007. All rights reserved. Subaddress D7 Multistandard video decoder with comb filter Rev. 02 -- 6 December 2007 Basic register function xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxx x x x xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xx xx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxx x x xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxx xxx Registers 30h to 3Fh used by audio clock generator Basic register function Subaddress D7 D5 D4 D3 D2 D1 Audio master clock cycles per field 30h ACPF[7:0] Audio master clock cycles per field 31h ACPF[15:8] Audio master clock cycles per field 32h Reserved[1] D0 0 0 0 0 0 0 ACPF[17:16] 33h 0 0 0 0 0 0 0 0 Audio master clock nominal increment 34h ACNI[7:0] Audio master clock nominal increment 35h ACNI[15:8] Audio master clock nominal increment 36h 0 0 ACNI[21:16] Reserved[1] 37h 0 0 0 0 0 0 0 0 Clock ratio AMXCLK to ASCLK 38h 0 0 SDIV[5:0] Clock ratio ASCLK to ALRCLK 39h 0 0 LRDIV[5:0] Audio clock generation basic setup 3Ah UCGC 0 0 0 APLL AMVR LRPH SCPH CG1-feedback-divider 3Bh 0 CG1FBD[6:0] CG1-clock delete, CG1-output-divider 3Ch CG1 DIVRES CG1EN 0 CG1_CKDL[2:0] CG1-PLL-parameters 3Dh CG1_R[3:0] CG1-PLL-parameters 3Eh 0 0 0 CG1_P[4:0] PLL1 digital/analog status 3Fh 0 0 0 0 CG1OD[1:0] CG1_I[3:0] CG1LOCK CG1ACT 0 Do not change these values. Table 20. Registers 40h to 7Fh used by general purpose VBI data slicer 46 of 90 (c) NXP B.V. 2007. All rights reserved. Basic register function Subaddress D7 D6 D5 D4 D3 D2 D1 D0 AC1 40h CHKWSS HAM_N FCE HUNT_N 0 0 0 0 LCR2 41h LCR02[7:0] LCR3 42h LCR03[7:0] to to to LCR23 56h LCR23[7:0] LCR24 57h LCR24[7:0] FC 58h FC[7:0] SAA7154E; SAA7154H 0 Multistandard video decoder with comb filter Rev. 02 -- 6 December 2007 D6 [1] NXP Semiconductors SAA7154E_SAA7154H_2 Product data sheet Table 19. xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxx x x x xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xx xx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxx x x xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxx xxx Registers 40h to 7Fh used by general purpose VBI data slicer ...continued Basic register function Subaddress D7 D6 D5 D4 D3 D2 HOFF 59h HOFF[7:0] VOFF 5Ah VOFF[7:0] HVOFF 5Bh FOFF 0 VEP VOFF8 0 HOFF[10:8] Reserved[1] 5Ch 0 0 0 0 0 0 Sliced data output mode 5Dh SLDOM[7:0] Sliced data 5Eh FC8V[2] FC7V[2] SDID[5:0] D1 D0 0 0 5Fh CDTE[3:0] 0 0 CRNER CSENA Line flags 60h LNFO8 LNFO7 LNFO6 LNFO5 LNFO4 LNFO3 LNFO2 reserved Line flags 61h LNFO16 LNFO15 LNFO14 LNFO13 LNFO12 LNFO11 LNFO10 LNFO9 Line flags 62h LNFO24 LNFO23 LNFO22 LNFO21 LNFO20 LNFO19 LNFO18 LNFO17 Line flags 63 h LNFE8 LNFE7 LNFE6 LNFE5 LNFE4 LNFE3 LNFE2 reserved Line flags 64h LNFE16 LNFE15 LNFE14 LNFE13 LNFE12 LNFE11 LNFE10 LNFE9 Line flags 65h LNFE24 LNFE23 LNFE22 LNFE21 LNFE20 LNFE19 LNFE18 LNFE17 I2C-bus read-back 1 CC-header 66 h CCH[7:0] I2C-bus 67h CCO1[7:0] 68h CCO2[7:0] I2C-bus read-back 4 CC-even byte 1 69h CCE1[7:0] I2C-bus read-back 5 CC-even byte 2 6Ah CCE2[7:0] I2C-bus read-back 6 WSS-header 6Bh WSSH[7:0] I2C-bus read-back 7 WSS-odd byte 1 6Ch WSSO1[7:0] I2C-bus read-back 8 WSS-odd byte 2 6Dh WSSO2[7:0] I2C-bus read-back 9 WSS-odd byte 3 6Eh WSSO3[7:0] I2C-bus 47 of 90 (c) NXP B.V. 2007. All rights reserved. read-back 10 WSS-even byte 1 6Fh WSSE1[7:0] I2C-bus read-back 11 WSS-even byte 2 70h WSSE2[7:0] I2C-bus read-back 12 WSS-even byte 3 71h WSSE3[7:0] I2C-bus read-back 13 GS1-header 72h GS1H[7:0] I2C-bus read-back 14 GS1-odd 1 73h GS1O1[7:0] I2C-bus read-back 15 GS1-odd 2 74h GS1O2[7:0] I2C-bus read-back 16 GS1-even 1 75h GS1E1[7:0] I2C-bus read-back 17 GS1-even 2 76h GS1E2[7:0] I2C-bus read-back 18 GS2-header 77h GS2H[7:0] SAA7154E; SAA7154H read-back 2 CC-odd byte 1 I2C-bus read-back 3 CC-odd byte 2 Multistandard video decoder with comb filter Rev. 02 -- 6 December 2007 GS2 capture control NXP Semiconductors SAA7154E_SAA7154H_2 Product data sheet Table 20. xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxx x x x xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xx xx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxx x x xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxx xxx Registers 40h to 7Fh used by general purpose VBI data slicer ...continued Basic register function Subaddress D7 I2C-bus D6 read-back 19 GS2-data byte 1 78h GS2D1[7:0] I2C-bus read-back 20 GS2-data byte 2 79h GS2D2[7:0] I2C-bus read-back 21 GS2-data byte 3 7Ah GS2D3[7:0] I2C-bus read-back 22 GS2-data byte 4 7Bh GS2D4[7:0] Reserved[1] 7Ch to 7Eh reserved I2C-bus 7Fh GS2ER[7:0] read-back 26 GS2-error byte [1] Do not change these values. [2] Read only. Table 21. D5 D4 D3 D2 D1 D0 D1 D0 Registers 80h to 8Fh used by task independent global settings 1 Subaddress D7 D6 D5 D4 D3 Global control 1 80h CMOD 0 TEB TEA ICKS[3:2] I-port control and definitions 81h ILLV[1:0] SWAPO MAP16 HAM FTIME V_EAV[1:0] Reserved[1] 82h 0 0 0 0 0 0 0 X-port I/O delay and enable control 83h 0 0 XPCK[1:0] XPE[2] XRQT XPE[1:0] I-port signal definitions 84h IDG1[1:0] IDG0[1:0] IDV[1:0] I-port signal polarities 85h ISWP[1:0] 0 IG1P IG0P I-port FIFO flag control and arbitration 86h IMPAK IDG1[2] IDG0[2] FFL[1:0] I-port I/O delay and enable control 87h IPCK[3:2] Power save control 88h 0 0 SWRST Reserved[1] 89h 0 0 0 Panorama-mode and keystone-mode 8Ah SHGRD[1:0] Keystone control 1 left slope 8Bh GRAD_STA[7:0] IPCK[1:0] ICKS[1:0] 0 IDH[1:0] IRVP IRHP IDQP FEL[1:0] 0 0 IPE[1:0] DPROG SLM3 0 SLM1 SLM0 0 0 0 0 0 SCAMOD[1:0] PNLMOD PANMOD[2:0] 48 of 90 (c) NXP B.V. 2007. All rights reserved. Keystone control 2 right slope 8Ch GRAD_SCA[7:0] Reserved[1] 8Dh 0 0 0 0 0 0 0 0 Scaler status 2 8Eh 0 0 FFIL FFOV 0 LLERR EEBFULL EFFULL Scaler status 1 8Fh XTRI ITRI VBILOS VBIIRQ PRDON ERROF FIDSCI FIDSCO Do not change these values. SAA7154E; SAA7154H VITX D2 Multistandard video decoder with comb filter Rev. 02 -- 6 December 2007 Basic register function [1] NXP Semiconductors SAA7154E_SAA7154H_2 Product data sheet Table 20. xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxx x x x xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xx xx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxx x x xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxx xxx NXP Semiconductors SAA7154E_SAA7154H_2 Product data sheet Table 22. Registers 90h to BFh used for task A definition Basic register function Subaddress D7 D6 D5 D4 D3 D2 D1 RPTSK STRC[1:0] D0 Basic settings and acquisition window definition 90h CONLH OFIDC FSKP[2:0] X-port formats and configuration 91h CONLV HLDFV SCSRC[1:0] SCRQE FSC[2:1] X-port Input reference signal definition 92h XFDV XFDH XDV[1:0] XCODE XDH I-port formats and configuration 93h ICODE INS80 FYSK FOI[1:0] Horizontal input window start 94h XO[7:0] 95h 0 0 0 0 XO[11:8] 0 0 0 XS[11:8] 0 0 0 YO[11:8] 0 0 0 YS[11:8] 0 0 0 XD[11:8] 0 YD[11:8] Horizontal input window length Vertical input window start Horizontal output window length Vertical output window length XS[7:0] 0 98h YO[7:0] 99h 0 9Ah YS[7:0] 9Bh FMOD 9Ch XD[7:0] 9Dh 0 9Eh YD[7:0] 9Fh 0 0 0 A0h 0 0 XPSC[5:0] 0 XACL[5:0] XDQ XCKS FSI[2:0] FIR filtering and prescaling Horizontal prescaling 49 of 90 (c) NXP B.V. 2007. All rights reserved. Accumulation length A1h 0 Prescaler DC gain and FIR prefilter control A2h PFUV[1:0] Reserved[1] A3h 0 Luminance brightness A4h BRIG[7:0] Luminance contrast A5h CONT[7:0] Chrominance saturation A6h SATN[7:0] Reserved[1] A7h 0 A8h XSCY[7:0] A9h 0 PFY[1:0] XDCG[2:0] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 XSCY[12:8] Horizontal phase scaling Horizontal scaling increment luminance XC2_1 Multistandard video decoder with comb filter Rev. 02 -- 6 December 2007 Vertical input window length 96h 97h FSC[0] SAA7154E; SAA7154H Task handling control xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxx x x x xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xx xx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxx x x xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxx xxx Registers 90h to BFh used for task A definition ...continued Basic register function Subaddress D7 Horizontal phase offset luminance AAh XPHY[7:0] Reserved[1] ABh 0 Horizontal scaling increment chrominance ACh XSCC[7:0] ADh 0 D6 D5 D4 D3 D2 D1 D0 0 0 0 0 0 0 0 0 0 XSCC[12:8] 0 0 0 0 0 0 0 YMIR 0 0 0 YMODE 0 MACON GACON CSCON Horizontal phase offset chrominance AEh XPHC[7:0] Reserved[1] AFh 0 B0h YSCV[7:0] B1h YSCV[15:8] Edge-guided vertical interpolation scaling increment B2h YSCE[7:0] B3h YSCE[15:8] Edge-guided vertical interpolation, vertical scaling mode control B4h EDON EDBYP 0 Scaler post processing control B5h 0 0 DICON[1:0] NXP Semiconductors SAA7154E_SAA7154H_2 Product data sheet Table 22. Vertical scaling Vertical Scaling Increment LIMOD[1:0] LIFIL[2] LIFIL[1:0] LIWGT[2:0] B7h CIMOD[1:0] CIFIL[2] CIFIL[1:0] CIWGT[2:0] Vertical scaling phase offset 0 B8h YPV0[7:0] Vertical scaling phase offset 1 B9h YPV1[7:0] Vertical scaling phase offset 2 BAh YPV2[7:0] Vertical scaling phase offset 3 BBh YPV3[7:0] Edge-guided vertical interpolation scaling phase offset 0 BCh YPE0[7:0] Edge-guided vertical interpolation scaling phase offset 1 BDh YPE1[7:0] Edge-guided vertical interpolation scaling phase offset 2 BEh YPE2[7:0] Edge-guided vertical interpolation scaling phase offset 3 BFh YPE3[7:0] [1] Do not change these values. SAA7154E; SAA7154H 50 of 90 (c) NXP B.V. 2007. All rights reserved. B6h Chrominance improvement control Multistandard video decoder with comb filter Rev. 02 -- 6 December 2007 Luminance improvement control xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxx x x x xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xx xx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxx x x xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxx xxx NXP Semiconductors SAA7154E_SAA7154H_2 Product data sheet Table 23. Registers C0h to EFh used for task B definition Basic register function Subaddress D7 D6 D5 D4 D3 D2 D1 RPTSK STRC[1:0] D0 Basic settings and acquisition window definition C0h CONLH OFIDC FSKP[2:0] X-port formats and configuration C1h CONLV HLDFV SCSRC[1:0] SCRQE FSC[2:1] Input reference signal definition control C2h XFDV XFDH XDV[1:0] XCODE XDH I-port formats and configuration C3h ICODE INS80 FYSK FOI[1:0] Horizontal input window start C4h XO[7:0] C5h 0 0 0 0 XO[11:8] 0 0 0 XS[11:8] 0 0 0 YO[11:8] 0 0 0 YS[11:8] 0 0 0 XD[11:8] 0 YD[11:8] Horizontal input window length Vertical input window start Horizontal output window length Vertical output window length XS[7:0] 0 C8h YO[7:0] C9h 0 CAh YS[7:0] CBh FMOD CCh XD[7:0] CDh 0 CEh YD[7:0] CFh 0 0 0 D0h 0 0 XPSC[5:0] 0 XACL[5:0] XDQ XCKS FSI[2:0] FIR filtering and prescaling Horizontal prescaling 51 of 90 (c) NXP B.V. 2007. All rights reserved. Accumulation length D1h 0 Prescaler DC gain and FIR prefilter control D2h PFUV[1:0] Reserved[1] D3h 0 Luminance brightness D4h BRIG[7:0] Luminance contrast D5h CONT[7:0] Chrominance saturation D6h SATN[7:0] Reserved[1] D7h 0 D8h XSCY[7:0] D9h 0 PFY[1:0] XDCG[2:0] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 XSCY[12:8] Horizontal phase scaling Horizontal scaling increment luminance XC2_1 Multistandard video decoder with comb filter Rev. 02 -- 6 December 2007 Vertical input window length C6h C7h FSC[0] SAA7154E; SAA7154H Task handling control xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxx x x x xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xx xx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxx x x xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxx xxx Registers C0h to EFh used for task B definition ...continued Basic register function Subaddress D7 Horizontal phase offset luminance DAh XPHY[7:0] Reserved[1] DBh 0 Horizontal scaling increment chrominance DCh XSCC[7:0] DDh 0 D5 D4 D3 D2 D1 D0 0 0 0 0 0 0 0 0 0 XSCC[12:8] 0 0 0 0 0 0 0 YMIR 0 0 0 YMODE 0 MACON GACON CSCON 0 0 Horizontal phase offset chrominance DEh XPHC[7:0] Reserved[1] DFh 0 E0h YSCV[7:0] E1h YSCV[15:8] Edge-guided vertical interpolation scaling increment E2h YSCE[7:0] E3h YSCE[15:8] Edge-guided vertical interpolation, vertical scaling mode control E4h EDON EDBYP 0 Scaler post processing control E5h 0 0 DICON[1:0] Vertical scaling Vertical scaling increment 52 of 90 (c) NXP B.V. 2007. All rights reserved. E6h LIMOD[1:0] LIFIL[2] LIFIL[1:0] LIWGT[2:0] Chrominance improvement control E7h CIMOD[1:0] CIFIL[2] CIFIL[1:0] CIWGT[2:0] Vertical scaling phase offset 0 E8h YPV0[7:0] Vertical scaling phase offset 1 E9h YPV1[7:0] Vertical scaling phase offset 2 EAh YPV2[7:0] Vertical scaling phase offset 3 EBh YPV3[7:0] Edge-guided vertical interpolation scaling phase offset 0 ECh YPE0[7:0] Edge-guided vertical interpolation scaling phase offset 1 EDh YPE1[7:0] Edge-guided vertical interpolation scaling phase offset 2 EEh YPE2[7:0] Edge-guided vertical interpolation scaling phase offset 3 EFh YPE3[7:0] Reserved[1] F0h to FFh 0 0 0 [1] Do not change these values. 0 0 0 Multistandard video decoder with comb filter Rev. 02 -- 6 December 2007 Luminance improvement control SAA7154E; SAA7154H D6 NXP Semiconductors SAA7154E_SAA7154H_2 Product data sheet Table 23. SAA7154E; SAA7154H NXP Semiconductors Multistandard video decoder with comb filter 7.15.2 Register overview extended functions Access the registers from Table 24 through the slave write address 4Ah/48h. Table 24. I2C-bus extended functions overview Address Extended register function Reference 00h to 1Fh HDTV synchronization Table 25 20h to 3Fh Analog Input Control (AIC) expert mode and extended analog input/output functions Table 26 40h to 4Fh Analog Input Control (AIC) expert mode status (read only) Table 27 50h to 59h color improvement (gravity functions) Table 28 60h to 78h OSD Table 29 80h to 8Bh edge-guided interpolation Table 30 8Ch to BFh scaler post processing look-up tables Table 31 C0h to CFh histogram collection Table 32 D0h to DFh histogram status Table 33 E0h to FFh second PLL/CG (PLL2/CG2) and raster Table 34 SAA7154E_SAA7154H_2 Product data sheet (c) NXP B.V. 2007. All rights reserved. Rev. 02 -- 6 December 2007 53 of 90 xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxx x x x xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xx xx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxx x x xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxx xxx Register 00h to 1Fh used by HDTV-synchronization Subaddress D7 D6 D5 D4 D3 D2 D1 D0 Reserved[1] 00h 0 0 0 0 0 0 0 0 Reserved[1] 01h 0 0 0 0 0 0 0 0 MSB horizontal reference stop/start 02h 0 0 HD_HRFF[9:8] 0 0 HD_HRFR[9:8] Horizontal reference stop 03h HD_HRFF[7:0] Horizontal reference start 04h HD_HRFR[7:0] MSB horizontal sync start/stop 05h 0 0 HD_HSB[9:8] 0 0 HD_HSS[9:8] Horizontal sync start 06h HD_HSB[7:0] Horizontal sync stop 07h HD_HSS[7:0] Sync control 08h HD_AUFD HD_FSEL HD_FOET HD_HPLL HD_VNOI[1:0] HD_mode 09h 0 0 SEL_ATSC[1:0] 0 SEL_VEXT SEL_3L SEL_HD Reserved[1] 0Ah to 14h 0 0 0 0 0 0 0 0 VGATE start 15h HD_VSTA[7:0] HD_HTC[1:0] VGATE stop 16h HD_VSTO[7:0] MISC/VGATE MSBs 17h 0 0 HD_VSTO[9:8] 0 HD_VGPS HD_VSTA[9:8] Reserved[1] 0 0 0 0 0 0 HD_ COPRO HD_ RDCAP[3] D1 D0 18h to 1Dh 0 Status byte HD 1[2] 1Eh HOR_M[1:0] Status byte HD 2[2] 1Fh reserved Do not change these values. [2] Read only. [3] HL and VL. VER_M[2:0] HD_HL HD_FIDT reserved reserved Registers 20h to 3Fh used by Analog Input Control (AIC) expert mode and extended analog input/output functions Extended register function Subaddress D7 D6 54 of 90 (c) NXP B.V. 2007. All rights reserved. Bias current analog front-end buffers 20h CUR4_PREMUX[1:0] Target values analog clamping 1 21h F_ANA1_CL[7:0] Target values analog clamping 1, 2 22h F_ANA2_CL[5:0] Target values analog clamping 2, 3 23h F_ANA3_CL[3:0] Target values analog clamping 3, clamp mode, dither disable 24h DITH_DIS Target values digital clamping 1 25h F_DIG1_CL[7:0] CLMP_ BLCK D5 D4 CUR3_PREMUX[1:0] D3 D2 CUR2_PREMUX[1:0] CUR1_PREMUX[1:0] F_ANA1_CL[9:8] F_ANA2_CL[9:6] F_ANA3_CL[9:4] SAA7154E; SAA7154H [1] 0 Multistandard video decoder with comb filter Rev. 02 -- 6 December 2007 Extended register function Table 26. NXP Semiconductors SAA7154E_SAA7154H_2 Product data sheet Table 25. xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxx x x x xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xx xx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxx x x xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxx xxx Registers 20h to 3Fh used by Analog Input Control (AIC) expert mode and extended analog input/output functions ...continued Extended register function Subaddress D7 D6 Target values digital clamping 1, 2 26h F_DIG2_CL[5:0] Target values digital clamping 2, 3 27h F_DIG3_CL[3:0] Target values digital clamping 3, 4 28h F_DIG4_CL[1:0] Target values digital clamping 4 29h F_DIG4_CL[9:2] Target values digital gain 2Ah GAIN_TARG[7:0] Target values digital gain, range parameter analog gain control 2Bh RANGE_LIM[5:0] D5 D4 D3 D2 D1 D0 F_DIG1_CL[9:8] F_DIG2_CL[9:6] F_DIG3_CL[9:4] GAIN_TARG[9:8] T_FIX_ CLAA AGAIN_LIM[2:0] Capture gating window control, clamp test fast 2Dh T_FIX_ CLAF SY_TOFFSET[6:0] Capture gating window control, clamp test up 2Eh T_FIX_ CLAU SY_WIDTH[6:0] RANGE_LIM[9:6] 2Fh 0 BLACK_DIST[6:0] Capture gating window control, analog clamp active 30h A_CL_ACT BLACK_WIDTH[6:0] Clamp inhibit gate (for Macrovision) beginning, end of field 31h F_END_MSK[3:0] Bias current for ADCs 32h ADCSM4_PREMUX[1:0] Line selector for maximum value capturing 33h LINESEL[7:0] Line selector for maximum value capturing, input channel selector for maximum value capturing 34h CHROMA_ OBS_MUX DBG_OBS[1:0] 0 AAGC_AC C ADC_OBS[1:0] LINESEL[8] Reserved[1] 35h to 3Ah 0 0 0 0 0 0 Vref settings, bias current select analog out 1 and 2 3Bh PDIS PRATIO[4:0] Analog output select 2 3Ch 0 0 Reference select 3Dh REFS4[1:0] Input signal detection ADCs disable 3Eh 0 0 Input signal detection ADCs selection 3Fh 0 ISDMUX3[1:0] Do not change these values. VBI_MSK[3:0] ADCSM3_PREMUX[1:0] 0 ADCSM2_PREMUX[1:0] ADCSM1_PREMUX[1:0] 0 AOSC[1:0] AOSL2B[1:0] AOSL2A[1:0] AOSL2[1:0] REFS3[1:0] REFS2[1:0] REFS1[1:0] 0 0 0 ISDMUX2[1:0] ADISD[2:0] ISDMUX1[2:0] SAA7154E; SAA7154H 55 of 90 (c) NXP B.V. 2007. All rights reserved. Capture gating window control Multistandard video decoder with comb filter Rev. 02 -- 6 December 2007 Range parameter analog gain 2Ch control, analog gain limit, clamp test active [1] NXP Semiconductors SAA7154E_SAA7154H_2 Product data sheet Table 26. xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxx x x x xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xx xx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxx x x xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxx xxx Registers 40h to 4Fh used by Analog Input Control (AIC) expert mode status (read only) Extended register function Subaddress D7 D6 D5 Unused lower range of previous field 40h FLD_LOWER_GAP[7:0] Unused lower range of previous field, Unused upper range of previous field 41h FLD_UPPER_GAP[5:0] Flags 42h reserved Line selector for maximum value capturing result 43h LNSL_UPPER_GAP[7:0] Line selector for maximum value capturing result, sync level 44h SYNC_LVL[5:0] Sync level 45h reserved Sync amplitude 46h SYNC_AMP[7:0] Black level, sync amplitude 47h BLACK_LVL[5:0] D4 D3 D2 D1 D0 FLD_LOWER_GAP[9:8] LUM_UND LUM_OVE ERRANGE RRANGE FLD_UPPER_GAP[9:6] LNSL_UPPER_GAP[9:8] SYNC_LVL[9:6] 48h BURST_AMP[3:0] Burst amplitude, digital clamp value 49h FINE_CLMP[1:0] Digital clamp value 4Ah FINE_CLMP[9:2] Digital gain value 4Bh FINE_GAIN[7:0] Digital gain value, gain correction value 4Ch WIPA_CORR[4:0] Gain correction value 4Dh reserved Noise on horizontal sync, DC-values on 4Eh input detection ADCs Input Source Detection ISD1 and ISD2 HNOISE reserved Level on FSW / L4 -input DC-values on 4Fh input detection ADC ISD3 DCS4 reserved SYNC_AMP[9:8] BLACK_LVL[9:6] BURST_AMP[9:4] FINE_GAIN[10:8] WIPA_CORR[10:5] DCS1[2:0] DCS3[2:0] Registers 50h to 59h used by color improvement (gravity functions) 56 of 90 (c) NXP B.V. 2007. All rights reserved. Extended register function Subaddress D7 D6 D5 D3 D2 Gravity 11 50h GR_EN1 0 GR_UV_FORCE1[1:0] 0 GR_UV_RANGE1[2:0] Gravity 12 51h GR_U_CENTER1[7:0] Gravity 13 52h GR_V_CENTER1[7:0] Gravity 21 53h GR_EN2 GR_UV_FORCE2[1:0] 0 GR_UV_RANGE2[2:0] Gravity 22 54h GR_U_CENTER2[7:0] Gravity 23 55h GR_V_CENTER2[7:0] Gravity 31 56h GR_EN3 GR_UV_FORCE3[1:0] 0 GR_UV_RANGE3[2:0] 0 0 D4 D1 D0 SAA7154E; SAA7154H DCS2[2:0] Multistandard video decoder with comb filter Rev. 02 -- 6 December 2007 Black level, burst amplitude Table 28. NXP Semiconductors SAA7154E_SAA7154H_2 Product data sheet Table 27. xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxx x x x xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xx xx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxx x x xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxx xxx Registers 50h to 59h used by color improvement (gravity functions) ...continued Extended register function Subaddress D7 Gravity 32 57h GR_U_CENTER3[7:0] Gravity 33 58h GR_V_CENTER3[7:0] Gravity 4 59h GR_EN4 GR_VSHIFT[1:0] GR_UV_FORCE4[1:0] GR_UV_RANGE4[2:0] Reserved[1] 5Ah to 5Fh 0 0 0 0 0 0 0 0 D6 D5 D4 D3 D2 D1 D0 OS_INV BSCR 0 0 OS_OD_F 0 FSRNDO FSSHFTO[2:0] [1] D6 D5 D4 D3 D2 D1 NXP Semiconductors SAA7154E_SAA7154H_2 Product data sheet Table 28. D0 Do not change these values. Table 29. Registers 60h to 78h used by OSD Extended register function Subaddress D7 Digital OSD OSD RGB look-up table 0 OSD RGB look-up table 2 OSD RGB look-up table 3 OSD RGB look-up table 5 OSD RGB look-up table 6 61h OS_LT0[15:8] 62h OS_LT1[7:0] 63h OS_LT1[15:8] 64h OS_LT2[7:0] 65h OS_LT2[15:8] 66h OS_LT3[7:0] 67h OS_LT3[15:8] 68h OS_LT4[7:0] 69h OS_LT4[15:8] 6Ah OS_LT5[7:0] 6Bh OS_LT5[15:8] 6Ch OS_LT6[7:0] 6Dh OS_LT6[15:8] 6Eh OS_LT7[7:0] 6Fh OS_LT7[15:8] 70h OS_LT8[7:0] 71h OS_LT8[15:8] 72h OS_MD[2:0] Fast switch status OSD 73h 0 0 FSWSO[5:0] FSW OSD control 1 74h 0 0 0 OSD RGB look-up table 7 57 of 90 (c) NXP B.V. 2007. All rights reserved. OSD RGB look-up table 8 OSD_control Analog OSD SAA7154E; SAA7154H OSD RGB look-up table 4 OS_LT0[7:0] Multistandard video decoder with comb filter Rev. 02 -- 6 December 2007 OSD RGB look-up table 1 60h xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxx x x x xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xx xx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxx x x xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxx xxx Registers 60h to 78h used by OSD ...continued Extended register function Subaddress D7 FSW OSD control 2 75h FSLENO[1:0] FSW OSD control 3 76h 0 D6 FSWIO D5 D4 0 FSOFFSO[4:0] 1 FSDELO[4:0] 0 Overlay OSD control 77h 0 0 0 Comp. OSD dither, peaking, delay 78h 0 0 CDITHO[1:0] Reserved[1] 79h to 7Fh 0 0 0 D5 [1] D3 D2 D1 D0 OVMODO[2:0] CMFIO CPDLO[2:0] 0 0 0 0 0 D4 D3 D2 D1 D0 EDTHR3[8] EDTHR2[8] Registers 80h to 8Bh used by edge-guided interpolation Subaddress D7 D6 Edge-guided vertical interpolation threshold 1 80h 0 EDTHR1[6:0] Edge-guided vertical interpolation threshold 2 81h EDTHR2[7:0] Edge-guided vertical interpolation threshold 3 82h EDTHR3[7:0] Edge-guided vertical interpolation threshold 2, 3, 4 83h 0 EDTHR4[2:0] 0 0 Edge-guided vertical interpolation threshold 5, 6 84h 0 EDTHR6[2:0] 0 EDTHR5[2:0] Reserved[1] 85h 0 0 0 0 0 0 0 Edge-guided vertical interpolation function 86h 0 0 0 EDFUN[4:0] Edge-guided vertical interpolation function 1 87h 0 0 0 0 0 0 EDFAEE[1:0] Reserved[1] 88h to 8Bh 0 0 0 0 0 0 0 0 D4 D3 D2 D1 D0 0 Do not change these values. 58 of 90 (c) NXP B.V. 2007. All rights reserved. Table 31. Registers 8Ch to BFh used by scaler post processing look-up tables Extended register function Subaddress D7 Start point green path 8Ch Start point blue path 8Dh P1GST[7:0] Start point red path 8Eh P2GST[7:0] P0GST[7:0] D6 D5 SAA7154E; SAA7154H Extended register function Multistandard video decoder with comb filter Rev. 02 -- 6 December 2007 OSDEN Do not change these values. Table 30. [1] NXP Semiconductors SAA7154E_SAA7154H_2 Product data sheet Table 29. xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxx x x x xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xx xx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxx x x xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxx xxx Registers 8Ch to BFh used by scaler post processing look-up tables ...continued D6 D5 D4 D3 D2 D1 D0 8Fh 0 0 0 0 0 0 0 0 Green path 90h P0GA0[7:0] 91h P0GA1[7:0] 92h P0GA2[7:0] to to 9Dh P0GAD[7:0] 9Eh P0GAE[7:0] 9Fh P0GAF[7:0] A0h P1GA0[7:0] A1h P1GA1[7:0] A2h P1GA2[7:0] to to ADh P1GAD[7:0] AEh P1GAE[7:0] D5 D4 D3 D2 D1 D0 HISCON HISCP[2:0] 0 0 0 0 0 HSTP[10:8] Blue path Rev. 02 -- 6 December 2007 Red path [1] AFh P1GAF[7:0] B0h P2GA0[7:0] B1h P2GA1[7:0] B2h P2GA2[7:0] to to BDh P2GAD[7:0] BEh P2GAE[7:0] BFh P2GAF[7:0] Do not change these values. Table 32. Registers C0h to CFh used by histogram collection 59 of 90 (c) NXP B.V. 2007. All rights reserved. Extended register function Subaddress D7 D6 Histogram control 0 C0h HISTEN/ REPV HISTP[2:0] Reserved[1] C1h 0 0 Histogram control 2 C2h 0 HSFP[10:8] Histogram control 3 C3h HSFP[7:0] 0 0 SAA7154E; SAA7154H Subaddress D7 Reserved[1] Multistandard video decoder with comb filter Extended register function NXP Semiconductors SAA7154E_SAA7154H_2 Product data sheet Table 31. xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxx x x x xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xx xx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxx x x xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxx xxx Registers C0h to CFh used by histogram collection ...continued Extended register function Subaddress D7 Histogram control 4 C4h HSTP[7:0] Histogram control 5 C5h HSFF Histogram control 6 C6h HSFL[7:0] Histogram control 7 C7h HSTL[7:0] Reserved[1] C8h to CFh 0 [1] D6 D5 D4 HSFL[10:8] D3 D2 0 HSTL[10:8] D1 D0 0 0 0 0 0 0 0 D6 D5 D4 D3 D2 D1 D0 NXP Semiconductors SAA7154E_SAA7154H_2 Product data sheet Table 32. Do not change these values. Table 33. Registers D0h to DFh used by histogram status Result bin 0 D0h HSB0[7:0] Result bin 1 D1h HSB1[7:0] Result bin 2 D2h HSB2[7:0] Result bin 3 D3h HSB3[7:0] Result bin 4 D4h HSB4[7:0] Result bin 5 D5h HSB5[7:0] Result bin 6 D6h HSB6[7:0] Result bin 7 D7h HSB7[7:0] Result bin 8 D8h HSB8[7:0] Result bin 9 D9h HSB9[7:0] Result bin 10 DAh HSBA[7:0] Result bin 11 DBh HSBB[7:0] Result bin 12 DCh HSBC[7:0] Result bin 13 DDh HSBD[7:0] Result bin 14 DEh HSBE[7:0] Result bin 15 DFh HSBF[7:0] 60 of 90 (c) NXP B.V. 2007. All rights reserved. SAA7154E; SAA7154H Subaddress D7 Multistandard video decoder with comb filter Rev. 02 -- 6 December 2007 Extended register function xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxx x x x xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xx xx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxx x x xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxx xxx Registers E0h to FFh used by second PLL/CG (PLL2/CG2) and raster generator D6 D5 D4 D3 D2 LFCOs per line E0h SPLPL[7:0] P-/I-parameter select, PLL mode, PLL H-Source, LFCOs per line E1h SPPI[3:0] Nominal PLL2 DTO increment E2h SPNINC[7:0] E3h SPNINC[15:8] S_PLL maximum phase error threshold, PLL2 number of lines threshold E4h SPTHRL[3:0] CG2-feedback-divider E5h SPBYPNS CG2-clock delete, CG2-output-divider E6h CG2DIVRE CG2EN S CG2-PLL-parameters E7h CG2_R[3:0] CG2-PLL-parameters E8h 0 0 0 CG2_P[4:0] PLL2 digital/analog status E9h 0 0 0 0 0 CG2LOCK CG2ACT SPLOCK Raster generation-reference select, raster generation reset EAh PGRES[1:0] PGRSEL PGVED 0 0 0 0 Pulse generation line length EBh PGLLEN[7:0] HPulse A position, pulse generation line length ECh PGHAPS[3:0] HPulse A position EDh PGHAPS[11:4] HPulse B position EEh PGHBPS[7:0] HPulse B/C position EFh PGHCPS[3:0] HPulse C position F0h PGHCPS[11:4] HGate begin F1h PGHGB[7:0] HGate begin/stop F2h PGHGS[3:0] HGate stop F3h PGHGS[11:4] Horizontal raster load F4h PGHRL[7:0] Horizontal/vertical raster load F5h PGVRL[3:0] Vertical raster load F6h PGVRL[11:4] Pulse generator field length F7h PGFLEN[7:0] VPulse A position, pulse generator field length F8h PGVAPS[3:0] VPulse A position F9h PGVAPS[11:4] SPMOD[1:0] D1 D0 SPLPL[9:8] SPTHRM[3:0] CG2FBD[6:0] SPHSEL CG2_CKDL[2:0] CG2OD[1:0] CG2_I[3:0] PGLLEN[11:8] PGHBPS[11:8] PGHGB[11:8] PGHRL[11:8] PGFLEN[11:8] SAA7154E; SAA7154H 61 of 90 (c) NXP B.V. 2007. All rights reserved. Subaddress D7 Multistandard video decoder with comb filter Rev. 02 -- 6 December 2007 Extended register function NXP Semiconductors SAA7154E_SAA7154H_2 Product data sheet Table 34. xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxx x x x xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xx xx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxx x x xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxx xxx Registers E0h to FFh used by second PLL/CG (PLL2/CG2) and raster generator ...continued Extended register function Subaddress D7 D6 HActive begin FAh PGHACB[7:0] HActive begin/stop FBh PGHACS[3:0] HActive stop FCh PGHACS[11:4] VGate begin FDh PGVGB[7:0] VGate begin/stop FEh PGVGS[3:0] VGate stop FFh PGVGS[11:4] D5 D4 D3 D2 D1 NXP Semiconductors SAA7154E_SAA7154H_2 Product data sheet Table 34. D0 PGHACB[11:8] PGVGB[11:8] SAA7154E; SAA7154H 62 of 90 (c) NXP B.V. 2007. All rights reserved. Multistandard video decoder with comb filter Rev. 02 -- 6 December 2007 SAA7154E; SAA7154H NXP Semiconductors Multistandard video decoder with comb filter 8. Limiting values Table 35. Limiting values In accordance with the Absolute Maximum Rating System (IEC 60134). Symbol Parameter Conditions Min Max Unit Analog supply voltage VDDA1 analog supply voltage 1 -0.5 +4.2 V VDDA1A analog supply voltage 1A -0.5 +4.2 V VDDA2 analog supply voltage 2 -0.5 +4.2 V VDDA2A analog supply voltage 2A -0.5 +4.2 V VDDA3 analog supply voltage 3 -0.5 +4.2 V VDDA3A analog supply voltage 3A -0.5 +4.2 V VDDA4 analog supply voltage 4 -0.5 +4.2 V VDDA4A analog supply voltage 4A -0.5 +4.2 V VDDA(XTAL) crystal analog supply voltage -0.5 +2.5 V VDDA_A18 analog supply voltage (1.8 V) -0.5 +2.5 V VDDA_C18 analog supply voltage (1.8 V) -0.5 +2.5 V Core supply voltage, 1.8 V VDDD2 digital supply voltage 2 -0.5 +2.5 V VDDD4 digital supply voltage 4 -0.5 +2.5 V VDDD7 digital supply voltage 7 -0.5 +2.5 V VDDD8 digital supply voltage 8 -0.5 +2.5 V VDDD10 digital supply voltage 10 -0.5 +2.5 V VDDD12 digital supply voltage 12 -0.5 +2.5 V Peripheral cell supply voltage VDDD1 digital supply voltage 1 -0.5 +4.2 V VDDD3 digital supply voltage 3 -0.5 +4.2 V VDDD5 digital supply voltage 5 -0.5 +4.2 V VDDD6 digital supply voltage 6 -0.5 +4.2 V VDDD9 digital supply voltage 9 -0.5 +4.2 V VDDD11 digital supply voltage 11 -0.5 +4.2 V VDDD13 digital supply voltage 13 -0.5 +4.2 V -0.5 VDD + 0.5 V Generic VI input voltage analog and digital inputs between VSSAn and VSSDn [1] VSS ground supply voltage difference - 100 mV Tstg storage temperature -40 +125 C Tamb ambient temperature 0 70 C SAA7154E_SAA7154H_2 Product data sheet (c) NXP B.V. 2007. All rights reserved. Rev. 02 -- 6 December 2007 63 of 90 SAA7154E; SAA7154H NXP Semiconductors Multistandard video decoder with comb filter Table 35. Limiting values ...continued In accordance with the Absolute Maximum Rating System (IEC 60134). Symbol Vesd Conditions electrostatic discharge voltage latch-up current Ilu [1] Parameter Min Max Unit human body model [2] - 2000 V machine model [3] - 200 V keep all supply voltages below the maximum values listed in this table [4] - 100 mA Maximum value is 4.2 V. [2] Class 2 according to JEDEC JESD22-A114. [3] Class B according to JEDEC JESD22-A115. [4] According to NXP General Quality Specification SNW-FQ-611 in compliance with NXP Latch-up Specification SNW-FQ-303. 9. Thermal characteristics Table 36. Thermal characteristics Symbol Parameter Rth(j-a) thermal resistance from junction to ambient in free air [1] Conditions Typ Unit SAA7154E/V2/G 38 K/W SAA7154H/V2 35 K/W [1] The overall Rth(j-a) value can vary depending on the board layout. To minimize the effective Rth(j-a) all power and ground pins must be connected to the power and ground layers directly. An ample copper area direct under the SAA7154E; SAA7154H with a number of through-hole plating, which connect to the ground layer (four-layer board: second layer), can also reduce the effective Rth(j-a). Please do not use any solder-stop varnish under the chip. In addition the usage of soldering glue with a high thermal conductance after curing is recommended. 10. Characteristics Operating conditions for maximum and minimum values in Table 37 to Table 42: peripheral VDDD = 3.0 V to 3.6 V; core VDDD = 1.65 V to 1.95 V; peripheral VDDA = 3.1 V to 3.5 V; core VDDA = 1.65 V to 1.95 V; Tamb = 25 C; timings and levels refer to drawings and conditions illustrated in Figure 17 to Figure 19; unless otherwise specified. Table 37. Symbol Supplies Parameter Conditions Min Typ Max Unit Analog supply voltage VDDA0 analog supply voltage 0 3.1 3.3 3.5 V VDDA1 analog supply voltage 1 3.1 3.3 3.5 V VDDA1A analog supply voltage 1A 3.1 3.3 3.5 V VDDA2 analog supply voltage 2 3.1 3.3 3.5 V VDDA2A analog supply voltage 2A 3.1 3.3 3.5 V VDDA3 analog supply voltage 3 3.1 3.3 3.5 V VDDA3A analog supply voltage 3A 3.1 3.3 3.5 V VDDA4 analog supply voltage 4 3.1 3.3 3.5 V VDDA4A analog supply voltage 4A 3.1 3.3 3.5 V SAA7154E_SAA7154H_2 Product data sheet (c) NXP B.V. 2007. All rights reserved. Rev. 02 -- 6 December 2007 64 of 90 SAA7154E; SAA7154H NXP Semiconductors Multistandard video decoder with comb filter Table 37. Supplies ...continued Symbol Parameter Min Typ Max Unit VDDA(XTAL) crystal analog supply voltage Conditions 1.65 1.8 1.95 V VDDA_A18 analog supply voltage (1.8 V) 1.65 1.8 1.95 V VDDA_C18 analog supply voltage (1.8 V) 1.65 1.8 1.95 V Digital core supply voltage VDDD2 digital supply voltage 2 1.65 1.8 1.95 V VDDD4 digital supply voltage 4 1.65 1.8 1.95 V VDDD7 digital supply voltage 7 1.65 1.8 1.95 V VDDD8 digital supply voltage 8 1.65 1.8 1.95 V VDDD10 digital supply voltage 10 1.65 1.8 1.95 V VDDD12 digital supply voltage 12 1.65 1.8 1.95 V Peripheral digital cell supply voltage VDDD1 digital supply voltage 1 3.0 3.3 3.6 V VDDD3 digital supply voltage 3 3.0 3.3 3.6 V VDDD5 digital supply voltage 5 3.0 3.3 3.6 V VDDD6 digital supply voltage 6 3.0 3.3 3.6 V VDDD9 digital supply voltage 9 3.0 3.3 3.6 V VDDD11 digital supply voltage 11 3.0 3.3 3.6 V VDDD13 digital supply voltage 13 3.0 3.3 3.6 V Power-down mode - - 15 mW CVBS mode - 490 550 mW Y/C mode - 710 780 mW Component mode - 880 960 mW HD component mode - 1290 1440 mW CVBS and Y/C mode - 200 240 mW Component mode - 210 250 mW HD component mode - 290 340 mW CVBS and Y/C mode - 290 310 mW Y/C mode - 510 540 mW Component mode - 670 710 mW HD component mode - 1000 1100 mW Power dissipation total power dissipation Ptot analog plus digital part digital part analog part Table 38. Analog part Symbol Parameter Conditions Min Typ Max Unit Analog part ICL clamping current VI = 1 V (DC) - 4 - A Vi(p-p) peak-to-peak input voltage on pins AIxx; for nominal video levels 1 V (p-p); -4 dB termination 27 /47 and AC coupling with 22 nF required - 0.64 - V SAA7154E_SAA7154H_2 Product data sheet (c) NXP B.V. 2007. All rights reserved. Rev. 02 -- 6 December 2007 65 of 90 SAA7154E; SAA7154H NXP Semiconductors Multistandard video decoder with comb filter Table 38. Analog part ...continued Symbol Parameter Conditions Min Typ Max Unit |Zi| input impedance clamping current off 200 - - k Ci input capacitance - - 10 pF ct(ch) channel crosstalk - - -50 dB Vo(p-p) peak-to-peak output voltage on pin AOUT1 or AOUT2; for normal video levels 1 V (p-p), 75 termination - 1 - V B bandwidth on pin AOUT1 or AOUT2; 75 /20 pF termination at -1 dB - 10 - MHz - 30 - MHz fi < 10 MHz 10-bit ADC (including analog clamp and gain stages) at -1 dB B bandwidth dif differential phase - 2 - deg Gdif differential gain - 2 - % fclk clock frequency - - 58.6 MHz Vi(range) input voltage range 0.4 - 1.6 V DLEDC DC differential linearity error - - 3 LSB ILEDC DC integral linearity error - - 4 LSB - 3 6 % MHz MG(CTC) channel-to-channel gain matching 3-bit ADC (FSW, AV-detect and OSD; see Section 11.3) fclk clock frequency - - 58.6 Vi(range) input voltage range 0 - 1.304 V Min Typ Max pin XTALI -0.5 - +0.2 x VDDA(XTAL) V other inputs -0.5 - +0.8 V pin XTALI 0.8 x VDDA(XTAL) - 1.95 V other inputs Table 39. Digital inputs and outputs Attention: Digital inputs and I/O ports are not 5 V tolerant. Symbol Parameter Conditions Unit Digital inputs (all pins with type I in Table 4) LOW-level input voltage VIL VIH HIGH-level input voltage 2.0 - 3.6 V ILI input leakage current - - 1 A IL(I/O) leakage current (I/O) - - 10 A Ci input capacitance - - 8 pF pin SDA at 3 mA sink current - - 0.4 V for clocks - - 0.4 V other digital outputs - - 0.4 V for clocks VDDD - 0.4 - - V other digital outputs VDDD - 0.4 - - V I/O at high-impedance Digital outputs (all pins with type O in Table VOL LOW-level output voltage VOH [1] HIGH-level output voltage 4)[1] The levels must be measured with load circuits: RL = 1.2 k at 3 V (TTL load) and CL = 50 pF. SAA7154E_SAA7154H_2 Product data sheet (c) NXP B.V. 2007. All rights reserved. Rev. 02 -- 6 December 2007 66 of 90 SAA7154E; SAA7154H NXP Semiconductors Multistandard video decoder with comb filter Table 40. Clocks and oscillators Symbol Parameter Conditions Clock output timing (pins LLC and Min Typ Max Unit LLC2_54)[1] Co(L) output load capacitance Tcy cycle time 15 - 50 pF pin LLC 35 - 39 ns pin LLC2_54 17.5 - 78 ns duty cycle for tLLCH/tLLC and tLLC2H/tLLC2; CL = 40 pF 40 - 60 % tr rise time pins LLC and LLC2_54; 0.2 V to VDDD - 0.2 V - - 5 ns tf fall time pins LLC and LLC2_54; VDDD - 0.2 V to 0.2 V - - 5 ns measured at 1.5 V; CL = 25 pF -4 - +8 ns td(LLC-LLC2_54) delay time from LLC to LLC2_54 Horizontal PLL fnom(line) fhl/fhl(nom) nominal line frequency 50 Hz field/625 lines - 15625 - Hz 60 Hz field/525 lines - 15734 - Hz - - 5.7 % PAL BGHI, PAL44-60, NTSC44-60 - 4433619 - Hz NTSC M/J - 3579545 - Hz PAL M - 3575612 - Hz PAL N - 3582056 - Hz 400 - Hz horizontal line frequency deviation Subcarrier PLL fnom(subc) flock-in nominal subcarrier frequency lock-in frequency range Crystal oscillator for 32.11 - MHz[2] General fnom nominal frequency - 32.11 - MHz fnom nominal frequency deviation 3rd harmonic - - 30 ppm fnom(T) nominal frequency deviation with temperature - - 30 ppm Crystal specification (X1) Tamb ambient temperature 0 - 70 C CL load capacitance 8 - - pF Rs(rsn) resonant series resistor - 40 80 C1 motional capacitance 1.2 1.5 1.8 fF C0 shunt capacitance 3.5 4.3 5.1 pF - 24.576 - MHz Crystal oscillator for 24.576 MHz[2] General fnom nominal frequency 3rd harmonic fnom nominal frequency deviation - - 50 ppm fnom(T) nominal frequency deviation with temperature - - 20 ppm SAA7154E_SAA7154H_2 Product data sheet (c) NXP B.V. 2007. All rights reserved. Rev. 02 -- 6 December 2007 67 of 90 SAA7154E; SAA7154H NXP Semiconductors Multistandard video decoder with comb filter Table 40. Clocks and oscillators ...continued Symbol Parameter Conditions Min Typ Max Unit Crystal specification (X1) Tamb ambient temperature 0 - 70 C CL load capacitance 8 - - pF Rs(rsn) resonant series resistor - 40 80 C1 motional capacitance 1.2 1.5 1.8 fF C0 shunt capacitance 2.8 3.5 4.2 pF [1] The effects of rise and fall times are included in the calculation of th(Q) and tPD. Timings and levels refer to drawings and conditions illustrated in Figure 17. [2] The crystal oscillator drive level is typical 0.28 mW. Table 41. X-port Attention: Digital inputs and I/O ports are not 5 V tolerant. Symbol Parameter Co(L) Conditions output load capacitance Min Typ Max Unit 15 - 30 pF 31 - 45 ns 35 - 39 ns Clock input and output timing (pin XCLK); see Figure 18 Tcy cycle time as input as output duty cycle for tLLCH/tLLC; XCLK as input [1] 40 50 60 % for tXCLKH/Tcy; XCLK as output 35 - 65 % tr rise time 0.6 V to 2.6 V - - 5 ns tf fall time 2.6 V to 0.6 V - - 5 ns 6 - - ns 4 - - ns Data and control signal input timing X-port, related to XCLK input tsu(D) data input set-up time th(D) data input hold time valid for bits XPCK[1:0] = 01b; valid for inputs: XPD[7:0], HPD[7:0], XRV, XRH and XDQ Data and control signal input timing X-port, related to XCLK output th(Q) data output hold time valid for bits XPCK[1:0] = 00b; valid for outputs: XPD[7:0], XRH, XRV and XDQ; CL = 30 pF 2 - - ns tPD propagation delay from positive edge of XCLK output; valid for bits XPCK[1:0] = 00b; valid for outputs: XPD[7:0], XRH, XRV and XDQ; CL = 30 pF - - 25 ns Data and control signal output timing X-port, related to XCLK input th(Q) data output hold time valid for bits XPCK[1:0] = 01b; valid for output XRDY; CL = 30 pF 3 - - ns tPD propagation delay from positive edge of XCLK input; valid for bits XPCK[1:0] = 01b; valid for output XRDY; CL = 30 pF - - 23 ns SAA7154E_SAA7154H_2 Product data sheet (c) NXP B.V. 2007. All rights reserved. Rev. 02 -- 6 December 2007 68 of 90 SAA7154E; SAA7154H NXP Semiconductors Multistandard video decoder with comb filter Table 41. X-port ...continued Attention: Digital inputs and I/O ports are not 5 V tolerant. Symbol Parameter Conditions Data and control signal output timing X-port, related to XCLK Min Typ Max Unit output[2] th(Q) data output hold time valid for bits XPCK[1:0] = 01b; valid for outputs: XPD[7:0], XRH, XRV, XDQ, RTS0, RTS1 and RTCO; CL = 30 pF 2 - - ns tPD propagation delay from positive edge of XCLK output; valid for bits XPCK[1:0] = 01b; valid for outputs: XPD[7:0], XRH, XRV, XDQ, RTS0, RTS1 and RTCO; CL = 30 pF - - 23 ns 4.90 - 5.46 s from ADC to XPD [3] [1] From internal PLL (clock oscillator) [2] The effects of rise and fall times are included in the calculation of th(Q) and tPD. Timings and levels refer to drawings and conditions illustrated in Figure 18. [3] tPD = 140 x Tcy for pin LLC; see Table 40. Table 42. I-port, IX-port and H-port Attention: Digital inputs and I/O ports are not 5 V tolerant. Symbol Parameter Co(L) output load capacitance Conditions Min Typ Max Unit at all outputs 15 - 30 pF ICLK input and output timing; see Figure 19 Tcy cycle time pin ICLK as input 31 - 100 ns pin ICLK as output 18 - 45 ns duty cycle for tICLKH/Tcy 35 - 65 % tr rise time 0.6 V to 2.6 V - - 5 ns tf fall time 2.6 V to 0.6 V - - 5 ns Data and control signal output timing I-port, pins IDQ, IGP1, IPG0, IGPH and IGPV, IX-port and H-port th(Q) data output hold time valid for bits IPCK[1:0] = 01b; CL = 30 pF 2 - - ns tPD propagation delay from positive edge of ICLK output; valid for bits IPCK[1:0] = 01b; CL = 30 pF - - 13 ns SAA7154E_SAA7154H_2 Product data sheet (c) NXP B.V. 2007. All rights reserved. Rev. 02 -- 6 December 2007 69 of 90 SAA7154E; SAA7154H NXP Semiconductors Multistandard video decoder with comb filter Tcy t LLCH 2.6 V clock output LLC 1.5 V 0.6 V tf tr t d(LLC - LLC2_54) Tcy t LLCH2H 2.6 V clock output LLC2_54 1.5 V 0.6 V tf tr 001aae769 Fig 17. Line-Locked Clock (LLC) output timing Tcy t XCLKH 2.6 V clock output XCLK 1.5 V 0.6 V t su(D) tf tr t h(D) 2.0 V data and control inputs (X port)(1) not valid 0.8 V t PD t h(Q) 2.4 V data and control outputs X port(2) 0.6 V 001aae770 (1) See Table 41. (2) See Table 41. Fig 18. X-port input and output timing SAA7154E_SAA7154H_2 Product data sheet (c) NXP B.V. 2007. All rights reserved. Rev. 02 -- 6 December 2007 70 of 90 SAA7154E; SAA7154H NXP Semiconductors Multistandard video decoder with comb filter Tcy t ICLKH 2.6 V clock input or output ICLK 1.5 V 0.6 V tf tr t PD t h(Q) 2.4 V data and control outputs I port(1) 0.6 V 001aae771 (1) See Table 42. Fig 19. I-port, IX-port and H-port output timing 11. Application information 11.1 General schematics The schematics from Figure 20 and Figure 21 describe a simple start configuration where all analog inputs can be used either as CVBS or Y/C inputs. For best performance all analog inputs intended for RGB or YUV components only should be terminated directly by 75 (instead of 27 and 47 voltage divider). Remark: the recommended standard resistor divider combination (27 and 47 ) has been changed from 18 and 56 formerly used with the SAA7118. The recommended input capacity has also been changed from 47 nF (SAA7118) to 22 nF. for input levels 0 dB for input levels +4 dB 22 nF V/R AIx4 (PR) V/R 27 75 AIx3 (PB) U/B 27 75 22 nF AIx3 (PB) 47 22 nF Y/G(Sync) AIx4 (PR) 47 22 nF U/B 22 nF AIx2 (Y) Y/G(Sync) 27 22 nF AIx2 (Y) 27 22 nF 22 nF AIx1 (Sync) 47 AIx1 (Sync) 47 001aab887 Fig 20. Connection of YUV and RGB signal with SYNC on green SAA7154E_SAA7154H_2 Product data sheet (c) NXP B.V. 2007. All rights reserved. Rev. 02 -- 6 December 2007 71 of 90 SAA7154E; SAA7154H NXP Semiconductors Multistandard video decoder with comb filter for input levels 0 dB for input levels +4 dB 22 nF R/C AIx2 R/C 27 75 AIx4 B 27 75 AIx3 G 27 75 SYNC(CVBS)/Y 27 22 nF AIx4 47 22 nF G AIx2 47 22 nF B 22 nF 22 nF AIx3 47 22 nF AIx1 SYNC(CVBS)/Y 47 27 22 nF AIx1 47 001aab888 Fig 21. Connection for RGB with SYNC on separate input SAA7154E_SAA7154H_2 Product data sheet (c) NXP B.V. 2007. All rights reserved. Rev. 02 -- 6 December 2007 72 of 90 SAA7154E; SAA7154H NXP Semiconductors Multistandard video decoder with comb filter 11.2 Oscillator applications SAA7154 SAA7154 B4 (155) A3 (156) XTALI XTALO A3 (156) XTALI B4 (155) XTALO 15 pF 15 pF 33 pF A3 (156) XTALI XTALO 32.11 MHz 32.11 MHz 32.11 MHz 4.7 H B4 (155) SAA7154 33 pF 10 pF 10 pF 1 nF 001aab954 a. With 3rd harmonic quartz crystal. Crystal load CL = 8 pF. 001aab957 b. With fundamental quartz crystal. Crystal load CL = 20 pF. SAA7154 B4 (155) A3 (156) XTALO B4 (155) A3 (156) XTALI 24.576 MHz 18 pF c. With fundamental quartz crystal. Crystal load CL = 8 pF. SAA7154 XTALI 4.7 H 001aab958 XTALO 24.576 MHz 18 pF 15 pF 15 pF 1 nF 001aab960 d. With 3rd harmonic quartz crystal. Crystal load CL = 8 pF. 001aab961 e. With fundamental quartz crystal. Crystal load CL = 8 pF. SAA7154 B4 (155) SAA7154 A3 (156) XTALI XTALO 32.11 MHz or 24.576 MHz B4 (155) XTALI A3 (156) XTALO Rs n.c. clock 001aab962 f. With direct clock. 001aab963 g. With fundamental quartz crystal and restricted drive level. When Pdrive of the internal oscillator is too high, a resistance Rs can be placed in series with the output of the oscillator at pin XTALO. Note that the decreased crystal amplitude results in a lower drive level, but on the other hand the jitter performance will decrease. Fig 22. Oscillator applications SAA7154E_SAA7154H_2 Product data sheet (c) NXP B.V. 2007. All rights reserved. Rev. 02 -- 6 December 2007 73 of 90 SAA7154E; SAA7154H NXP Semiconductors Multistandard video decoder with comb filter 11.3 3-bit ADC application The SAA7154E; SAA7154H has 3-bit ADCs, which can be selected on input groups AI3x and AI4x. They permit many applications (see Figure 23, Section 7.1.1.1, Section 7.4 and Section 7.14.1): * * * * DC-level detection for D-connector and SCART FSW-control external VGA vertical sync input analog OSD-overlay. Table 43. Voltage ranges Application Table 44. Voltage range of input signal AV-mode 0 V to 12 V 0 V to 1.304 V D-terminal 0 V to 5 V 0 V to 1.531 V FSW 0 V to 3 V 0 V to 3 V VGA sync 0 V to 5 V 0 V to 1.4 V analog OSD (teletext decoder) 1.304 V maximum 1.304 V maximum Relationship between logic levels and ADC slices for different applications ADC slices (%)[1] Application 0 to 12.5 12.5 to 25 25 to 37.5 37.5 to 50 50 to 62.5 middle: 37.5 % to 58.3 % - AV mode low: 0 % to 16.7 % - D-terminal low: 0 % to 14.1 % of 1.304 V middle: 32.9 % to 56.3 % of 1.304 V FSW 0.4 V (30.7 %) slope [1] Voltage range at pin 62.5 to 75 75 to 87.5 87.5 to 100 high: 79.2 % to 100 % - high: 82.2 % to > 100 % of 1.304 V > 1 V (76.7 %) The definition, the function and the required ADC slices depend on the application of pins AI3x to AI4x. FSW AI3X, AI4X AV-modesignal 75 8.2 k AI3X, AI4X 1.0 k AGND D-terminalmode-signal (line 1-3) AGND 68 k AI3X, AI4X VGA sync 820 AI3X 330 30 k R, G, B Analog OSD (SAA5697HL) FSW 150 AI22, AI32, AI42 680 AI44 510 AGND AGND 001aaa251 Fig 23. External connection of different signal inputs SAA7154E_SAA7154H_2 Product data sheet (c) NXP B.V. 2007. All rights reserved. Rev. 02 -- 6 December 2007 74 of 90 SAA7154E; SAA7154H NXP Semiconductors Multistandard video decoder with comb filter 11.4 Digital OSD application Figure 24 shows an example of an OSD application with the external OSD controller chip MTV048. IPD[7:0] IXD[7:0] I-port RGB out HPD[7:0] SAA7154 SDA SCL ICLK IGPV IGPH OSD_FSW OSD1 OSD2 OSD3 XIN VFLB HFLB FBKG BOUT ROUT GOUT MTV048 (or another OSD controller) SDA SCL I2C-bus 001aab964 Fig 24. Application of SAA7154E; SAA7154H and an OSD controller chip (e.g. Myson MTV048) 12. Test information 12.1 Boundary scan test The SAA7154E; SAA7154H has built-in logic and 5 dedicated pins to support boundary scan testing which allows board testing without special hardware. The SAA7154E; SAA7154H follows the IEEE Std. 1149.1 - Standard Test Access Port and Boundary-Scan Architecture set by the Joint Test Action Group (JTAG). The 5 special pins are Test Mode Select (TMS), Test Clock (TCK), Test Reset (TRST_N), Test Data Input (TDI) and Test Data Output (TDO). The Boundary Scan Test (BST) functions BYPASS, EXTEST, SAMPLE, CLAMP and IDCODE are all supported (see Table 45). Details about the JTAG BST-TEST can be found in specification IEEE Std. 1149.1. A file containing the detailed Boundary Scan Description Language (BSDL) description of the SAA7154E; SAA7154H is available on request. Table 45. BST instructions supported by the SAA7154E; SAA7154H Instruction Description BYPASS This mandatory instruction provides a minimum length serial path (1-bit) between TDI and TDO when no test operation of the component is required. EXTEST This mandatory instruction allows testing of off-chip circuitry and board level interconnections. SAA7154E_SAA7154H_2 Product data sheet (c) NXP B.V. 2007. All rights reserved. Rev. 02 -- 6 December 2007 75 of 90 SAA7154E; SAA7154H NXP Semiconductors Multistandard video decoder with comb filter Table 45. BST instructions supported by the SAA7154E; SAA7154H ...continued Instruction Description SAMPLE This mandatory instruction can be used to take a sample of the inputs during normal operation of the component. It can also be used to preload data values into the latched outputs of the boundary scan register. CLAMP This optional instruction is useful for testing when not all ICs have BST. This instruction addresses the bypass register while the boundary scan register is in external test mode. IDCODE This optional instruction will provide information on the components manufacturer, part number and version number. 12.1.1 Initialization of boundary scan circuit The Test Access Port (TAP) controller of an IC should be in the reset state (TEST_LOGIC_RESET) when the IC is in functional mode. This reset state also forces the instruction register into a functional instruction such as IDCODE or BYPASS. To solve the power-up reset, the standard specifies that the TAP controller will be forced asynchronously to the TEST_LOGIC_RESET state by setting the TRST_N pin to LOW. 12.1.2 Device identification codes A device identification register is specified in IEEE Std. 1149.1b-1994. It is a 32-bit register which contains fields for the specification of the IC manufacturer, the IC part number and the IC version number. Its biggest advantage is the possibility to check for the correct ICs mounted after production and determination of the version number of ICs during field service. When the IDCODE instruction is loaded into the BST instruction register, the identification register will be connected between TDI and TDO of the IC. The identification register will load a component specific code during the CAPTURE_DATA_REGISTER state of the TAP controller and this code can subsequently be shifted out. At board level this code can be used to verify component manufacturer, type and version number. The device identification register contains 32 bits, numbered 31 to 0, where bit 31 is the most significant bit (closest to TDI) and bit 0 is the least significant bit (closest to TDO); see Figure 25. MSB 31 TDI LSB 28 27 nnnn 12 11 0110 0011 0001 1001 4-bit version code 16-bit part number 1 0000 0010 101 11-bit manufacturer identification 0 1 TDO 001aab946 Fig 25. 32 bits of identification code SAA7154E_SAA7154H_2 Product data sheet (c) NXP B.V. 2007. All rights reserved. Rev. 02 -- 6 December 2007 76 of 90 SAA7154E; SAA7154H NXP Semiconductors Multistandard video decoder with comb filter 13. Package outline LBGA156: plastic low profile ball grid array package; 156 balls; body 15 x 15 x 1.05 mm A B D SOT700-1 ball A1 index area A A2 A1 E detail X C e1 1/2 e e v M C A B b y y1 C w M C P N e M L K J H e2 G 1/2 e F E D C B A ball A1 index area 1 3 2 5 4 7 9 6 8 11 10 13 12 14 X 5 0 10 mm scale DIMENSIONS (mm are the original dimensions) UNIT A max. A1 A2 b D E e e1 e2 v w y y1 mm 1.65 0.45 0.35 1.20 0.95 0.55 0.45 15.2 14.8 15.2 14.8 1 13 13 0.25 0.1 0.12 0.35 REFERENCES OUTLINE VERSION IEC JEDEC JEITA SOT700-1 --- MO-192 --- EUROPEAN PROJECTION ISSUE DATE 01-05-11 01-11-06 Fig 26. Package outline SOT700-1 (LBGA156) SAA7154E_SAA7154H_2 Product data sheet (c) NXP B.V. 2007. All rights reserved. Rev. 02 -- 6 December 2007 77 of 90 SAA7154E; SAA7154H NXP Semiconductors Multistandard video decoder with comb filter QFP160: plastic quad flat package; 160 leads (lead length 1.6 mm); body 28 x 28 x 3.4 mm; high stand-off height SOT322-2 c y X A 120 121 81 80 ZE e E HE A A2 (A 3) A1 wM Lp bp L pin 1 index detail X 41 160 1 40 ZD wM bp e v M A D B HD v M B 0 5 10 mm scale DIMENSIONS (mm are the original dimensions) UNIT A max. A1 A2 A3 bp c D (1) E (1) e mm 4.07 0.50 0.25 3.6 3.2 0.25 0.38 0.22 0.23 0.13 28.1 27.9 28.1 27.9 0.65 HD HE 31.45 31.45 30.95 30.95 L Lp v w y 1.6 1.03 0.73 0.3 0.13 0.1 Z D(1) Z E (1) 1.5 1.1 1.5 1.1 o 7 o 0 Note 1. Plastic or metal protrusions of 0.25 mm maximum per side are not included. REFERENCES OUTLINE VERSION IEC JEDEC SOT322-2 135E12 MS-022 JEITA EUROPEAN PROJECTION ISSUE DATE 00-01-19 03-02-25 Fig 27. Package outline SOT 322-2 (QFP160) SAA7154E_SAA7154H_2 Product data sheet (c) NXP B.V. 2007. All rights reserved. Rev. 02 -- 6 December 2007 78 of 90 SAA7154E; SAA7154H NXP Semiconductors Multistandard video decoder with comb filter 14. Soldering This text provides a very brief insight into a complex technology. A more in-depth account of soldering ICs can be found in Application Note AN10365 "Surface mount reflow soldering description". 14.1 Introduction to soldering Soldering is one of the most common methods through which packages are attached to Printed Circuit Boards (PCBs), to form electrical circuits. The soldered joint provides both the mechanical and the electrical connection. There is no single soldering method that is ideal for all IC packages. Wave soldering is often preferred when through-hole and Surface Mount Devices (SMDs) are mixed on one printed wiring board; however, it is not suitable for fine pitch SMDs. Reflow soldering is ideal for the small pitches and high densities that come with increased miniaturization. 14.2 Wave and reflow soldering Wave soldering is a joining technology in which the joints are made by solder coming from a standing wave of liquid solder. The wave soldering process is suitable for the following: * Through-hole components * Leaded or leadless SMDs, which are glued to the surface of the printed circuit board Not all SMDs can be wave soldered. Packages with solder balls, and some leadless packages which have solder lands underneath the body, cannot be wave soldered. Also, leaded SMDs with leads having a pitch smaller than ~0.6 mm cannot be wave soldered, due to an increased probability of bridging. The reflow soldering process involves applying solder paste to a board, followed by component placement and exposure to a temperature profile. Leaded packages, packages with solder balls, and leadless packages are all reflow solderable. Key characteristics in both wave and reflow soldering are: * * * * * * Board specifications, including the board finish, solder masks and vias Package footprints, including solder thieves and orientation The moisture sensitivity level of the packages Package placement Inspection and repair Lead-free soldering versus PbSn soldering 14.3 Wave soldering Key characteristics in wave soldering are: * Process issues, such as application of adhesive and flux, clinching of leads, board transport, the solder wave parameters, and the time during which components are exposed to the wave * Solder bath specifications, including temperature and impurities SAA7154E_SAA7154H_2 Product data sheet (c) NXP B.V. 2007. All rights reserved. Rev. 02 -- 6 December 2007 79 of 90 SAA7154E; SAA7154H NXP Semiconductors Multistandard video decoder with comb filter 14.4 Reflow soldering Key characteristics in reflow soldering are: * Lead-free versus SnPb soldering; note that a lead-free reflow process usually leads to higher minimum peak temperatures (see Figure 28) than a PbSn process, thus reducing the process window * Solder paste printing issues including smearing, release, and adjusting the process window for a mix of large and small components on one board * Reflow temperature profile; this profile includes preheat, reflow (in which the board is heated to the peak temperature) and cooling down. It is imperative that the peak temperature is high enough for the solder to make reliable solder joints (a solder paste characteristic). In addition, the peak temperature must be low enough that the packages and/or boards are not damaged. The peak temperature of the package depends on package thickness and volume and is classified in accordance with Table 46 and 47 Table 46. SnPb eutectic process (from J-STD-020C) Package thickness (mm) Package reflow temperature (C) Volume (mm3) < 350 350 < 2.5 235 220 2.5 220 220 Table 47. Lead-free process (from J-STD-020C) Package thickness (mm) Package reflow temperature (C) Volume (mm3) < 350 350 to 2000 > 2000 < 1.6 260 260 260 1.6 to 2.5 260 250 245 > 2.5 250 245 245 Moisture sensitivity precautions, as indicated on the packing, must be respected at all times. Studies have shown that small packages reach higher temperatures during reflow soldering, see Figure 28. SAA7154E_SAA7154H_2 Product data sheet (c) NXP B.V. 2007. All rights reserved. Rev. 02 -- 6 December 2007 80 of 90 SAA7154E; SAA7154H NXP Semiconductors Multistandard video decoder with comb filter maximum peak temperature = MSL limit, damage level temperature minimum peak temperature = minimum soldering temperature peak temperature time 001aac844 MSL: Moisture Sensitivity Level Fig 28. Temperature profiles for large and small components For further information on temperature profiles, refer to Application Note AN10365 "Surface mount reflow soldering description". 15. Abbreviations Table 48. Abbreviations Acronym Description ACM ACcumulation Mode ADC Analog-to-Digital Converter AGC Automatic Gain Control AIC Analog Input Control ANC ANCillary data packet[1] AV Audio and Video BCS Brightness-Contrast-Saturation BST Boundary Scan Test CC Closed Caption CCST Chinese Character System Teletext CE Chip Enable CG Clock Generation CGC Clock Generation Circuit CGMS Copy Generation Management System CIF Common Intermediate Format CMOS Complementary MOS CTI Color Transient Improvement CVBS Color Video Blanking Signal DCI Dynamic Contrast Improvement SAA7154E_SAA7154H_2 Product data sheet (c) NXP B.V. 2007. All rights reserved. Rev. 02 -- 6 December 2007 81 of 90 SAA7154E; SAA7154H NXP Semiconductors Multistandard video decoder with comb filter Table 48. Abbreviations ...continued Acronym Description DVD Digital Versatile Disc EAV End of Active Video EDGI EDge-Guided Interpolation (in vertical direction) ESD ElectroStatic Discharge FIFO First-In First-Out FIR Finite Impulse Response FSW Fast SWitch HDTV High Definition TV I2C-bus Inter-Integrated Circuit bus I/O Input/Output ISD Input Source Detection ITU International Telecommunication Union JEDEC Joint Electronic Device Engineering Council JTAG Joint Test Architecture Group LCD Liquid Crystal Display LLC Line-Locked Clock LSB Least Significant Bit LUT Look-Up Table MOS Metal-Oxide-Semiconductor MPEG Motion Picture Estimation Group MSB Most Significant Bit MUX MUltipleXer NABTS North-American Broadcast Text System NTSC National Television Systems Committee OSD On-Screen Display PAL Phase Alternating Line PC Personal Computer PLL Phase-Locked Loop PVR Personal Video Recording RGB Red-Green-Blue RMS Root Mean Square RTC Real-Time Control RTCO Real-Time Control Output SAV Start of Active Video SCART Syndicat des Constructeurs d'Appareils Radiorecepteurs et Televiseurs SECAM Systeme Electronique Couleur Avec Memoire (French color TV standard) SDTV Standard Definition TV SMPTE Society of Motion Picture and Television Engineers STB Set-Top Box SYNC SYNChronization TAP Test Access Port SAA7154E_SAA7154H_2 Product data sheet (c) NXP B.V. 2007. All rights reserved. Rev. 02 -- 6 December 2007 82 of 90 SAA7154E; SAA7154H NXP Semiconductors Multistandard video decoder with comb filter Table 48. Abbreviations ...continued Acronym Description TFT Thin-Film Transistor TTL Transistor-Transistor Logic TV TeleVision VBI Vertical Blanking Interval VCR Video Cassette Recorder VGA Video Graphics Array VITC Vertical Interval Time Code VPD Variable Phase Delay VPS Video Program System VTR Video Tape Recorder WSS Wide Screen Signalling WST World System Teletext XDS eXtended Data Service XTAL CrysTAL[2] [1] For example, VBI data can be inserted as ANC data into the video stream. [2] X became a synonym for Crys. 16. Glossary H-port -- Digital host-port for extension of the image port or expansion port from 8-bit to 16-bit. I-port -- Digital image-port for scaled video data output. IX-port -- Extended I-port. RT-port -- Digital real-time signal port. S-video -- Separate video; an analog video signal, also known as Y/C. V-chip -- Violence chip: allows blocking of TV-programs based on their rating categories. It is intended for use by parents to manage their children's television viewing. X-port -- Digital video expansion port (X-port), for unscaled digital video input and output. Y-CB-CR -- Digital color coding format. Y-PB-PR -- Analog color coding format. SAA7154E_SAA7154H_2 Product data sheet (c) NXP B.V. 2007. All rights reserved. Rev. 02 -- 6 December 2007 83 of 90 SAA7154E; SAA7154H NXP Semiconductors Multistandard video decoder with comb filter 17. Revision history Table 49. Revision history Document ID Release date SAA7154E_SAA7154H_2 20071206 Modifications: * * * * * * * Data sheet status Change notice Supersedes Product data sheet - SAA7154E_SAA7154H_1 Update of active types (see Table 1 and Table 36) Adding limiting values for latch-up currents (see Table 35) Update of ESD related documents (see Table 35) Presenting information more clearly (see Table 35) Adding missing abbreviations Correcting spelling errors Replacing fcl_sco by the certified symbol fclk(o)(SC) (see Section 7.6.1.2 and Section 7.6.1.3) SAA7154E_SAA7154H_1 20070411 (9397 750 13951) Product data sheet SAA7154E_SAA7154H_2 Product data sheet - - (c) NXP B.V. 2007. All rights reserved. Rev. 02 -- 6 December 2007 84 of 90 SAA7154E; SAA7154H NXP Semiconductors Multistandard video decoder with comb filter 18. Legal information 18.1 Data sheet status Document status[1][2] Product status[3] Definition Objective [short] data sheet Development This document contains data from the objective specification for product development. Preliminary [short] data sheet Qualification This document contains data from the preliminary specification. Product [short] data sheet Production This document contains the product specification. [1] Please consult the most recently issued document before initiating or completing a design. [2] The term `short data sheet' is explained in section "Definitions". [3] The product status of device(s) described in this document may have changed since this document was published and may differ in case of multiple devices. The latest product status information is available on the Internet at URL http://www.nxp.com. 18.2 Definitions Draft -- The document is a draft version only. The content is still under internal review and subject to formal approval, which may result in modifications or additions. NXP Semiconductors does not give any representations or warranties as to the accuracy or completeness of information included herein and shall have no liability for the consequences of use of such information. Short data sheet -- A short data sheet is an extract from a full data sheet with the same product type number(s) and title. A short data sheet is intended for quick reference only and should not be relied upon to contain detailed and full information. For detailed and full information see the relevant full data sheet, which is available on request via the local NXP Semiconductors sales office. In case of any inconsistency or conflict with the short data sheet, the full data sheet shall prevail. 18.3 Disclaimers General -- Information in this document is believed to be accurate and reliable. However, NXP Semiconductors does not give any representations or warranties, expressed or implied, as to the accuracy or completeness of such information and shall have no liability for the consequences of use of such information. Right to make changes -- NXP Semiconductors reserves the right to make changes to information published in this document, including without limitation specifications and product descriptions, at any time and without notice. This document supersedes and replaces all information supplied prior to the publication hereof. Suitability for use -- NXP Semiconductors products are not designed, authorized or warranted to be suitable for use in medical, military, aircraft, space or life support equipment, nor in applications where failure or malfunction of an NXP Semiconductors product can reasonably be expected to result in personal injury, death or severe property or environmental damage. NXP Semiconductors accepts no liability for inclusion and/or use of NXP Semiconductors products in such equipment or applications and therefore such inclusion and/or use is at the customer's own risk. Applications -- Applications that are described herein for any of these products are for illustrative purposes only. NXP Semiconductors makes no representation or warranty that such applications will be suitable for the specified use without further testing or modification. Limiting values -- Stress above one or more limiting values (as defined in the Absolute Maximum Ratings System of IEC 60134) may cause permanent damage to the device. Limiting values are stress ratings only and operation of the device at these or any other conditions above those given in the Characteristics sections of this document is not implied. Exposure to limiting values for extended periods may affect device reliability. Terms and conditions of sale -- NXP Semiconductors products are sold subject to the general terms and conditions of commercial sale, as published at http://www.nxp.com/profile/terms, including those pertaining to warranty, intellectual property rights infringement and limitation of liability, unless explicitly otherwise agreed to in writing by NXP Semiconductors. In case of any inconsistency or conflict between information in this document and such terms and conditions, the latter will prevail. No offer to sell or license -- Nothing in this document may be interpreted or construed as an offer to sell products that is open for acceptance or the grant, conveyance or implication of any license under any copyrights, patents or other industrial or intellectual property rights. 18.4 Licenses ICs with Macrovision copyright protection technology This product incorporates copyright protection technology that is protected by method claims of certain U.S. patents and other intellectual property rights owned by Macrovision Corporation and other rights owners. Use of this copyright protection technology must be authorized by Macrovision Corporation and is intended for home and other limited viewing uses only, unless otherwise authorized by Macrovision Corporation. Reverse engineering or disassembly is prohibited. SAA7154E_SAA7154H_2 Product data sheet (c) NXP B.V. 2007. All rights reserved. Rev. 02 -- 6 December 2007 85 of 90 SAA7154E; SAA7154H NXP Semiconductors Multistandard video decoder with comb filter 18.5 Patents 18.6 Trademarks Notice is herewith given that the subject device uses one or more of the following patents and that each of these patents may have corresponding patents in other jurisdictions. Notice: All referenced brands, product names, service names and trademarks are the property of their respective owners. I2C-bus -- logo is a trademark of NXP B.V. US 4,907,093 -- owned by Macrovision Corporation. 19. Contact information For additional information, please visit: http://www.nxp.com For sales office addresses, send an email to: salesaddresses@nxp.com SAA7154E_SAA7154H_2 Product data sheet (c) NXP B.V. 2007. All rights reserved. Rev. 02 -- 6 December 2007 86 of 90 SAA7154E; SAA7154H NXP Semiconductors Multistandard video decoder with comb filter 20. Tables Table 1. Table 2. Table 3. Table 4. Table 5. Table 6. Table 7. Table 8. Table 9. Table 10. Table 11. Table 12. Table 13. Table 14. Table 15. Table 16. Table 17. Table 18. Table 19. Table 20. Table 21. Table 22. Table 23. Table 24. Table 25. Table 26. Table 27. Table 28. Table 29. Table 30. Table 31. Ordering information . . . . . . . . . . . . . . . . . . . . .4 Pin allocation table LBGA156 package[1] . . . . .6 Pin allocation table QFP160 package[1] . . . . . . .8 Pin description . . . . . . . . . . . . . . . . . . . . . . . . . .9 60 Hz/525 lines VBI data types supported by the data slicer block . . . . . . . . . . . . . . . . . . . . .28 50 Hz/625 Lines VBI data types supported by the data slicer block . . . . . . . . . . . . . . . . . . . . .29 List of status signals for which an interrupt can be initiated . . . . . . . . . . . . . . . . . . . . . . . . .31 Analog pin description . . . . . . . . . . . . . . . . . . .34 Audio clock pin description . . . . . . . . . . . . . . .35 Clock and real-time synchronization signals . .35 Signals dedicated to the expansion port . . . . .37 Availability of control signals for 50 Hz/625 and 60 Hz/525 line systems . . . . . . . . . . . . . . .37 Signals dedicated to the image port . . . . . . . .42 Digital OSD . . . . . . . . . . . . . . . . . . . . . . . . . . .42 I2C-bus basic functions overview . . . . . . . . . . .43 Register 00h used by chip version part . . . . . .44 Registers 01h to 1Fh used by the video decoder part . . . . . . . . . . . . . . . . . . . . . . . . . .44 Register 20h to 2Fh used for component processing and interrupt masking . . . . . . . . . .45 Registers 30h to 3Fh used by audio clock generator . . . . . . . . . . . . . . . . . . . . . . . . . . . .46 Registers 40h to 7Fh used by general purpose VBI data slicer . . . . . . . . . . . . . . . . .46 Registers 80h to 8Fh used by task independent global settings 1 . . . . . . . . . . . . .48 Registers 90h to BFh used for task A definition . . . . . . . . . . . . . . . . . . . . . . . . . . . . .49 Registers C0h to EFh used for task B definition . . . . . . . . . . . . . . . . . . . . . . . . . . . . .51 I2C-bus extended functions overview . . . . . . . .53 Register 00h to 1Fh used by HDTV-synchronization . . . . . . . . . . . . . . . . . .54 Registers 20h to 3Fh used by Analog Input Control (AIC) expert mode and extended analog input/output functions . . . . . . . . . . . . .54 Registers 40h to 4Fh used by Analog Input Control (AIC) expert mode status (read only) .56 Registers 50h to 59h used by color improvement (gravity functions) . . . . . . . . . . .56 Registers 60h to 78h used by OSD . . . . . . . .57 Registers 80h to 8Bh used by edge-guided interpolation . . . . . . . . . . . . . . . . . . . . . . . . . .58 Registers 8Ch to BFh used by scaler post processing look-up tables . . . . . . . . . . . . . . . 58 Table 32. Registers C0h to CFh used by histogram collection . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 Table 33. Registers D0h to DFh used by histogram status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 Table 34. Registers E0h to FFh used by second PLL/CG (PLL2/CG2) and raster generator . . . . . . . . . . 61 Table 35. Limiting values . . . . . . . . . . . . . . . . . . . . . . . . . 63 Table 36. Thermal characteristics . . . . . . . . . . . . . . . . . . 64 Table 37. Supplies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64 Table 38. Analog part . . . . . . . . . . . . . . . . . . . . . . . . . . . 65 Table 39. Digital inputs and outputs . . . . . . . . . . . . . . . . 66 Table 40. Clocks and oscillators . . . . . . . . . . . . . . . . . . . 67 Table 41. X-port . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 Table 42. I-port, IX-port and H-port . . . . . . . . . . . . . . . . . 69 Table 43. Voltage ranges . . . . . . . . . . . . . . . . . . . . . . . . 74 Table 44. Relationship between logic levels and ADC slices for different applications . . . . . . . . . . . . 74 Table 45. BST instructions supported by the SAA7154E; SAA7154H . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 Table 46. SnPb eutectic process (from J-STD-020C) . . . 80 Table 47. Lead-free process (from J-STD-020C) . . . . . . 80 Table 48. Abbreviations . . . . . . . . . . . . . . . . . . . . . . . . . . 81 Table 49. Revision history . . . . . . . . . . . . . . . . . . . . . . . . 84 continued >> SAA7154E_SAA7154H_2 Product data sheet (c) NXP B.V. 2007. All rights reserved. Rev. 02 -- 6 December 2007 87 of 90 SAA7154E; SAA7154H NXP Semiconductors Multistandard video decoder with comb filter 21. Figures Fig 1. Fig 2. Fig 3. Fig 4. Fig 5. Fig 6. Fig 7. Fig 8. Fig 9. Fig 10. Fig 11. Fig 12. Fig 13. Fig 14. Fig 15. Fig 16. Fig 17. Fig 18. Fig 19. Fig 20. Fig 21. Fig 22. Fig 23. Fig 24. Fig 25. Fig 26. Fig 27. Fig 28. System block diagram . . . . . . . . . . . . . . . . . . . . . .1 Block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . .5 Pin configuration (LBGA156) . . . . . . . . . . . . . . . . .6 Pin configuration (QFP160) . . . . . . . . . . . . . . . . . .8 Analog front-end . . . . . . . . . . . . . . . . . . . . . . . . .16 Analog video inputs and analog input control . . .18 Chrominance and luminance processing, adaptive comb filter . . . . . . . . . . . . . . . . . . . . . . .19 Functional overview of OSD . . . . . . . . . . . . . . . .21 Simplified block diagram of gravity functions . . . .22 Center frequencies of luminance sharpness control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .24 Programmable LUT characteristics . . . . . . . . . . .24 Functional block diagram of the scaler data path . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .26 Timing diagram of reset sequence. . . . . . . . . . . .33 Vertical timing diagram for 50 Hz/625 line systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .38 Vertical timing diagram for 60 Hz/525 line systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .39 Horizontal timing diagram (50 Hz/60 Hz) . . . . . . .40 Line-Locked Clock (LLC) output timing . . . . . . . .70 X-port input and output timing . . . . . . . . . . . . . . .70 I-port, IX-port and H-port output timing . . . . . . . .71 Connection of YUV and RGB signal with SYNC on green . . . . . . . . . . . . . . . . . . . . . . . . . .71 Connection for RGB with SYNC on separate input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .72 Oscillator applications . . . . . . . . . . . . . . . . . . . . .73 External connection of different signal inputs . . .74 Application of SAA7154E; SAA7154H and an OSD controller chip (e.g. Myson MTV048) . . . . .75 32 bits of identification code. . . . . . . . . . . . . . . . .76 Package outline SOT700-1 (LBGA156) . . . . . . . .77 Package outline SOT 322-2 (QFP160) . . . . . . . .78 Temperature profiles for large and small components . . . . . . . . . . . . . . . . . . . . . . . . . . . . .81 continued >> SAA7154E_SAA7154H_2 Product data sheet (c) NXP B.V. 2007. All rights reserved. Rev. 02 -- 6 December 2007 88 of 90 SAA7154E; SAA7154H NXP Semiconductors Multistandard video decoder with comb filter 22. Contents 1 2 2.1 2.2 3 4 5 6 6.1 6.2 7 7.1 7.1.1 7.1.1.1 7.1.1.2 7.1.2 7.1.2.1 7.1.2.2 7.1.2.3 7.2 7.2.1 7.2.2 7.2.3 7.2.4 7.3 7.4 7.5 7.6 7.6.1 7.6.1.1 7.6.1.2 7.6.1.3 7.6.1.4 7.6.2 7.7 7.7.1 7.7.2 7.7.3 7.8 7.9 7.10 7.11 7.12 7.13 7.13.1 7.13.2 7.13.3 General description . . . . . . . . . . . . . . . . . . . . . . 1 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 General . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 Improvements over SAA7119 . . . . . . . . . . . . . . 3 Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 Ordering information . . . . . . . . . . . . . . . . . . . . . 4 Block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . 5 Pinning information . . . . . . . . . . . . . . . . . . . . . . 6 Pinning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 Pin description . . . . . . . . . . . . . . . . . . . . . . . . . 9 Functional description . . . . . . . . . . . . . . . . . . 15 Analog front-end . . . . . . . . . . . . . . . . . . . . . . . 15 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 D-terminal and SCART configuration . . . . . . . 16 Buffered analog output . . . . . . . . . . . . . . . . . . 17 Analog input control . . . . . . . . . . . . . . . . . . . . 17 Block description. . . . . . . . . . . . . . . . . . . . . . . 17 Basic functional modes. . . . . . . . . . . . . . . . . . 18 I2C-bus read back of digital AGC gain factor . 18 Video decoder. . . . . . . . . . . . . . . . . . . . . . . . . 19 Comb filter operation . . . . . . . . . . . . . . . . . . . 20 Automatic color standard detection . . . . . . . . 20 Easy CVBS versus Y/C discrimination . . . . . . 20 Stability of vertical synchronization. . . . . . . . . 20 Component processing. . . . . . . . . . . . . . . . . . 21 Analog OSD processing . . . . . . . . . . . . . . . . . 21 Decoder output control and fader . . . . . . . . . . 22 Picture improvement and scaler . . . . . . . . . . . 22 Picture improvement . . . . . . . . . . . . . . . . . . . . 22 Color improvement . . . . . . . . . . . . . . . . . . . . . 22 Color transient improvement. . . . . . . . . . . . . . 23 Luminance sharpness control. . . . . . . . . . . . . 23 Histogram collection . . . . . . . . . . . . . . . . . . . . 24 Scaler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 VBI data decoder and capture . . . . . . . . . . . . 27 Versatile VBI data decoder . . . . . . . . . . . . . . . 27 I2C-bus read back . . . . . . . . . . . . . . . . . . . . . . 27 VBI data slicer. . . . . . . . . . . . . . . . . . . . . . . . . 27 Image port output interface. . . . . . . . . . . . . . . 29 Digital OSD . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 Interrupt control . . . . . . . . . . . . . . . . . . . . . . . 30 Clock generation. . . . . . . . . . . . . . . . . . . . . . . 31 I2C-bus slave transmitter. . . . . . . . . . . . . . . . . 32 Power and reset control . . . . . . . . . . . . . . . . . 32 Power-on reset and chip enable input . . . . . . 32 Initial programming sequence after power-on. 33 Power-down . . . . . . . . . . . . . . . . . . . . . . . . . . 33 7.14 7.14.1 7.14.2 7.14.3 Input and output interfaces and ports. . . . . . . Analog terminals . . . . . . . . . . . . . . . . . . . . . . Audio clock signals. . . . . . . . . . . . . . . . . . . . . Clock and real-time synchronization signals at the RT-port . . . . . . . . . . . . . . . . . . . . . . . . . 7.14.4 Video expansion port through the X-port . . . . 7.14.4.1 General . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.14.4.2 Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.14.4.3 X-port configured as output . . . . . . . . . . . . . . 7.14.4.4 X-port configured as input . . . . . . . . . . . . . . . 7.14.5 Image port and digital OSD . . . . . . . . . . . . . . 7.14.5.1 Image port . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.14.5.2 Digital OSD . . . . . . . . . . . . . . . . . . . . . . . . . . 7.15 I2C-bus registers . . . . . . . . . . . . . . . . . . . . . . 7.15.1 Register overview of basic functions . . . . . . . 7.15.2 Register overview extended functions . . . . . . 8 Limiting values . . . . . . . . . . . . . . . . . . . . . . . . 9 Thermal characteristics . . . . . . . . . . . . . . . . . 10 Characteristics . . . . . . . . . . . . . . . . . . . . . . . . 11 Application information . . . . . . . . . . . . . . . . . 11.1 General schematics . . . . . . . . . . . . . . . . . . . . 11.2 Oscillator applications . . . . . . . . . . . . . . . . . . 11.3 3-bit ADC application . . . . . . . . . . . . . . . . . . 11.4 Digital OSD application . . . . . . . . . . . . . . . . . 12 Test information. . . . . . . . . . . . . . . . . . . . . . . . 12.1 Boundary scan test . . . . . . . . . . . . . . . . . . . . 12.1.1 Initialization of boundary scan circuit . . . . . . . 12.1.2 Device identification codes. . . . . . . . . . . . . . . 13 Package outline . . . . . . . . . . . . . . . . . . . . . . . . 14 Soldering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14.1 Introduction to soldering. . . . . . . . . . . . . . . . . 14.2 Wave and reflow soldering . . . . . . . . . . . . . . . 14.3 Wave soldering. . . . . . . . . . . . . . . . . . . . . . . . 14.4 Reflow soldering. . . . . . . . . . . . . . . . . . . . . . . 15 Abbreviations . . . . . . . . . . . . . . . . . . . . . . . . . 16 Glossary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 Revision history . . . . . . . . . . . . . . . . . . . . . . . 18 Legal information . . . . . . . . . . . . . . . . . . . . . . 18.1 Data sheet status . . . . . . . . . . . . . . . . . . . . . . 18.2 Definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . 18.3 Disclaimers. . . . . . . . . . . . . . . . . . . . . . . . . . . 18.4 Licenses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18.5 Patents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18.6 Trademarks . . . . . . . . . . . . . . . . . . . . . . . . . . 19 Contact information . . . . . . . . . . . . . . . . . . . . 33 34 34 35 36 36 37 40 41 41 41 42 43 43 53 63 64 64 71 71 73 74 75 75 75 76 76 77 79 79 79 79 80 81 83 84 85 85 85 85 85 86 86 86 continued >> SAA7154E_SAA7154H_2 Product data sheet (c) NXP B.V. 2007. All rights reserved. Rev. 02 -- 6 December 2007 89 of 90 NXP Semiconductors SAA7154E; SAA7154H Multistandard video decoder with comb filter 20 21 22 Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87 Figures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88 Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89 Please be aware that important notices concerning this document and the product(s) described herein, have been included in section `Legal information'. (c) NXP B.V. 2007. All rights reserved. For more information, please visit: http://www.nxp.com For sales office addresses, please send an email to: salesaddresses@nxp.com Date of release: 6 December 2007 Document identifier: SAA7154E_SAA7154H_2